@techsio/ui-kit 0.49.0 → 0.51.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.
- package/dist/molecules/combobox.js +204 -50
- package/dist/src/molecules/combobox.d.ts +50 -4
- package/dist/src/molecules/combobox.d.ts.map +1 -1
- package/dist/src/templates/facet-filter-panel.d.ts +96 -0
- package/dist/src/templates/facet-filter-panel.d.ts.map +1 -0
- package/dist/src/templates/search-suggestions.d.ts +23 -0
- package/dist/src/templates/search-suggestions.d.ts.map +1 -0
- package/dist/src/theme/theme-config.d.ts +5 -0
- package/dist/src/theme/theme-config.d.ts.map +1 -1
- package/dist/stories/changelog/changelog.stories.d.ts.map +1 -1
- package/dist/stories/molecules/combobox.stories.d.ts +6 -0
- package/dist/stories/molecules/combobox.stories.d.ts.map +1 -1
- package/dist/stories/pages/akros/banner.stories.d.ts +6 -0
- package/dist/stories/pages/akros/banner.stories.d.ts.map +1 -0
- package/dist/stories/pages/akros/carts.stories.d.ts +7 -0
- package/dist/stories/pages/akros/carts.stories.d.ts.map +1 -0
- package/dist/stories/pages/akros/categories.stories.d.ts +6 -0
- package/dist/stories/pages/akros/categories.stories.d.ts.map +1 -0
- package/dist/stories/pages/akros/content.stories.d.ts +7 -0
- package/dist/stories/pages/akros/content.stories.d.ts.map +1 -0
- package/dist/stories/pages/akros/customers.stories.d.ts +8 -0
- package/dist/stories/pages/akros/customers.stories.d.ts.map +1 -0
- package/dist/stories/pages/akros/dashboard.stories.d.ts +7 -0
- package/dist/stories/pages/akros/dashboard.stories.d.ts.map +1 -0
- package/dist/stories/pages/akros/data.d.ts +247 -0
- package/dist/stories/pages/akros/data.d.ts.map +1 -0
- package/dist/stories/pages/akros/emails.stories.d.ts +7 -0
- package/dist/stories/pages/akros/emails.stories.d.ts.map +1 -0
- package/dist/stories/pages/akros/feeds.stories.d.ts +6 -0
- package/dist/stories/pages/akros/feeds.stories.d.ts.map +1 -0
- package/dist/stories/pages/akros/order-detail.stories.d.ts +8 -0
- package/dist/stories/pages/akros/order-detail.stories.d.ts.map +1 -0
- package/dist/stories/pages/akros/orders.stories.d.ts +8 -0
- package/dist/stories/pages/akros/orders.stories.d.ts.map +1 -0
- package/dist/stories/pages/akros/products.stories.d.ts +9 -0
- package/dist/stories/pages/akros/products.stories.d.ts.map +1 -0
- package/dist/stories/pages/akros/shared.d.ts +69 -0
- package/dist/stories/pages/akros/shared.d.ts.map +1 -0
- package/dist/stories/pages/akros/shipping-payments.stories.d.ts +7 -0
- package/dist/stories/pages/akros/shipping-payments.stories.d.ts.map +1 -0
- package/dist/stories/pages/auth.stories.d.ts +9 -0
- package/dist/stories/pages/auth.stories.d.ts.map +1 -0
- package/dist/stories/pages/board.stories.d.ts +7 -0
- package/dist/stories/pages/board.stories.d.ts.map +1 -0
- package/dist/stories/pages/checkout.stories.d.ts +7 -0
- package/dist/stories/pages/checkout.stories.d.ts.map +1 -0
- package/dist/stories/pages/cms-content-list.stories.d.ts +8 -0
- package/dist/stories/pages/cms-content-list.stories.d.ts.map +1 -0
- package/dist/stories/pages/cms-record-editor.stories.d.ts +7 -0
- package/dist/stories/pages/cms-record-editor.stories.d.ts.map +1 -0
- package/dist/stories/pages/crm-customer-workspace.stories.d.ts +6 -0
- package/dist/stories/pages/crm-customer-workspace.stories.d.ts.map +1 -0
- package/dist/stories/pages/crud-workflow.stories.d.ts +6 -0
- package/dist/stories/pages/crud-workflow.stories.d.ts.map +1 -0
- package/dist/stories/pages/dashboard.stories.d.ts +7 -0
- package/dist/stories/pages/dashboard.stories.d.ts.map +1 -0
- package/dist/stories/pages/data.d.ts +179 -0
- package/dist/stories/pages/data.d.ts.map +1 -0
- package/dist/stories/pages/ecommerce-orders.stories.d.ts +6 -0
- package/dist/stories/pages/ecommerce-orders.stories.d.ts.map +1 -0
- package/dist/stories/pages/frame.d.ts +102 -0
- package/dist/stories/pages/frame.d.ts.map +1 -0
- package/dist/stories/pages/layouts.stories.d.ts +15 -0
- package/dist/stories/pages/layouts.stories.d.ts.map +1 -0
- package/dist/stories/pages/media-library.stories.d.ts +6 -0
- package/dist/stories/pages/media-library.stories.d.ts.map +1 -0
- package/dist/stories/pages/order-detail.stories.d.ts +6 -0
- package/dist/stories/pages/order-detail.stories.d.ts.map +1 -0
- package/dist/stories/pages/settings.stories.d.ts +6 -0
- package/dist/stories/pages/settings.stories.d.ts.map +1 -0
- package/dist/stories/pages/shell.d.ts +115 -0
- package/dist/stories/pages/shell.d.ts.map +1 -0
- package/dist/stories/pages/storefront-category.stories.d.ts +7 -0
- package/dist/stories/pages/storefront-category.stories.d.ts.map +1 -0
- package/dist/stories/pages/storefront-product.stories.d.ts +6 -0
- package/dist/stories/pages/storefront-product.stories.d.ts.map +1 -0
- package/dist/stories/pages/system-states.stories.d.ts +12 -0
- package/dist/stories/pages/system-states.stories.d.ts.map +1 -0
- package/dist/stories/templates/facet-filter-panel.stories.d.ts +17 -0
- package/dist/stories/templates/facet-filter-panel.stories.d.ts.map +1 -0
- package/dist/stories/templates/search-suggestions.stories.d.ts +119 -0
- package/dist/stories/templates/search-suggestions.stories.d.ts.map +1 -0
- package/dist/templates/facet-filter-panel.js +310 -0
- package/dist/templates/search-suggestions.js +14 -0
- package/dist/test/combobox.behavior.spec.d.ts +2 -0
- package/dist/test/combobox.behavior.spec.d.ts.map +1 -0
- package/dist/test/facet-filter-panel.spec.d.ts +2 -0
- package/dist/test/facet-filter-panel.spec.d.ts.map +1 -0
- package/dist/test/search-suggestions.spec.d.ts +2 -0
- package/dist/test/search-suggestions.spec.d.ts.map +1 -0
- package/dist/theme/theme-config.js +7 -0
- package/package.json +1 -1
- package/src/tokens/components/components.css +2 -0
- package/src/tokens/components/molecules/_combobox.css +22 -0
- package/src/tokens/components/templates/_facet-filter-panel.css +43 -0
- package/src/tokens/figma/brand-overrides.css +165 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelog.stories.d.ts","sourceRoot":"","sources":["../../../stories/changelog/changelog.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"changelog.stories.d.ts","sourceRoot":"","sources":["../../../stories/changelog/changelog.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAwRtD,iBAAS,SAAS,4CAUjB;AAED,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAKhC,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,OAAO,SAAS,CAAM,CAAA"}
|
|
@@ -8,4 +8,10 @@ export declare const ValidationStates: Story;
|
|
|
8
8
|
export declare const MultipleSelection: Story;
|
|
9
9
|
export declare const Sizes: Story;
|
|
10
10
|
export declare const ComplexStory: Story;
|
|
11
|
+
export declare const Grouped: Story;
|
|
12
|
+
export declare const ExternalFiltering: Story;
|
|
13
|
+
export declare const Loading: Story;
|
|
14
|
+
export declare const LoadingWithSelection: Story;
|
|
15
|
+
export declare const ErrorRetry: Story;
|
|
16
|
+
export declare const RichItem: Story;
|
|
11
17
|
//# sourceMappingURL=combobox.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.stories.d.ts","sourceRoot":"","sources":["../../../stories/molecules/combobox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"combobox.stories.d.ts","sourceRoot":"","sources":["../../../stories/molecules/combobox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAItD,OAAO,EAAE,QAAQ,EAAqB,MAAM,8BAA8B,CAAA;AAiB1E,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAwE/B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAA;AAEtC,eAAO,MAAM,UAAU,EAAE,KAiBxB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAiC9B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAmD/B,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KA0BnB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAgD1B,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAsBrB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAE/B,CAAA;AAgCD,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,KAQlC,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAsBxB,CAAA;AAQD,eAAO,MAAM,QAAQ,EAAE,KAiBtB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"banner.stories.d.ts","sourceRoot":"","sources":["../../../../stories/pages/akros/banner.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAetD,QAAA,MAAM,IAAI,EAAE,IA6BX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAmQrB,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carts.stories.d.ts","sourceRoot":"","sources":["../../../../stories/pages/akros/carts.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAyBtD,QAAA,MAAM,IAAI,EAAE,IA4BX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAuXrB,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAWzB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"categories.stories.d.ts","sourceRoot":"","sources":["../../../../stories/pages/akros/categories.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAYtD,QAAA,MAAM,IAAI,EAAE,IA2BX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AA0MrB,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.stories.d.ts","sourceRoot":"","sources":["../../../../stories/pages/akros/content.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAgBtD,QAAA,MAAM,IAAI,EAAE,IA0BX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AA2RrB,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAW3B,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: Meta;
|
|
3
|
+
export default meta;
|
|
4
|
+
type Story = StoryObj;
|
|
5
|
+
export declare const Default: Story;
|
|
6
|
+
export declare const MoveToB2B: Story;
|
|
7
|
+
export declare const PossibleDuplicates: Story;
|
|
8
|
+
//# sourceMappingURL=customers.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.stories.d.ts","sourceRoot":"","sources":["../../../../stories/pages/akros/customers.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAoCtD,QAAA,MAAM,IAAI,EAAE,IA8BX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAyerB,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAWvB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAWhC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard.stories.d.ts","sourceRoot":"","sources":["../../../../stories/pages/akros/dashboard.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AA2BtD,QAAA,MAAM,IAAI,EAAE,IA2BX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAkQrB,eAAO,MAAM,OAAO,EAAE,KAErB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAA"}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fixtures for the `Pages/Akros admin/*` stories.
|
|
3
|
+
*
|
|
4
|
+
* Shaped after the Akros back office: orders paid through Comgate or on
|
|
5
|
+
* delivery, shipped to parcel boxes and pickup points with their own IDs,
|
|
6
|
+
* handed to ABRA as a text line; products and the category tree owned by
|
|
7
|
+
* ABRA and completed in the CMS; B2C and B2B customers side by side.
|
|
8
|
+
* Values are fictional but realistic (CZK, Czech carriers, IČO/DIČ).
|
|
9
|
+
*/
|
|
10
|
+
import type { TreeNode } from "../../../src/molecules/tree-view.js";
|
|
11
|
+
export declare const czk: Intl.NumberFormat;
|
|
12
|
+
export declare const count: Intl.NumberFormat;
|
|
13
|
+
export declare const akrosNav: TreeNode[];
|
|
14
|
+
export type DailyMetric = {
|
|
15
|
+
day: string;
|
|
16
|
+
metric: string;
|
|
17
|
+
value: number;
|
|
18
|
+
};
|
|
19
|
+
/** Revenue in thousands of CZK, split B2C / B2B so the chart can stack it. */
|
|
20
|
+
export declare const revenueByDay: DailyMetric[];
|
|
21
|
+
export declare const ordersByDay: DailyMetric[];
|
|
22
|
+
export declare const visitsByDay: DailyMetric[];
|
|
23
|
+
export declare const trafficSources: {
|
|
24
|
+
source: string;
|
|
25
|
+
visits: number;
|
|
26
|
+
}[];
|
|
27
|
+
export declare const customerMix: {
|
|
28
|
+
segment: string;
|
|
29
|
+
customers: number;
|
|
30
|
+
}[];
|
|
31
|
+
export type OrderState = "new" | "processing" | "ready" | "shipped" | "delivered" | "cancelled";
|
|
32
|
+
export type PaymentMethod = "comgate" | "transfer" | "cod" | "invoice";
|
|
33
|
+
export type PaymentState = "paid" | "unpaid" | "pending" | "failed" | "refunded";
|
|
34
|
+
export type AbraState = "not-sent" | "queued" | "sent" | "error";
|
|
35
|
+
export type Carrier = "Zásilkovna" | "PPL ParcelBox" | "PPL" | "Balíkovna" | "Personal pickup";
|
|
36
|
+
export type AkOrder = {
|
|
37
|
+
id: string;
|
|
38
|
+
number: string;
|
|
39
|
+
customer: string;
|
|
40
|
+
company?: string;
|
|
41
|
+
customerType: "B2C" | "B2B";
|
|
42
|
+
email: string;
|
|
43
|
+
phone: string;
|
|
44
|
+
total: number;
|
|
45
|
+
items: number;
|
|
46
|
+
state: OrderState;
|
|
47
|
+
paymentMethod: PaymentMethod;
|
|
48
|
+
payment: PaymentState;
|
|
49
|
+
/** Comgate transaction id — only for online payments. */
|
|
50
|
+
transactionId?: string;
|
|
51
|
+
carrier: Carrier;
|
|
52
|
+
/** Parcel box / pickup point — only for point-based carriers. */
|
|
53
|
+
pointId?: string;
|
|
54
|
+
pointName?: string;
|
|
55
|
+
abra: AbraState;
|
|
56
|
+
abraDocument?: string;
|
|
57
|
+
abraError?: string;
|
|
58
|
+
placedAt: string;
|
|
59
|
+
};
|
|
60
|
+
export declare const paymentMethodLabels: Record<PaymentMethod, string>;
|
|
61
|
+
export declare const orderStateOptions: {
|
|
62
|
+
label: string;
|
|
63
|
+
value: string;
|
|
64
|
+
}[];
|
|
65
|
+
export declare const paymentStateOptions: {
|
|
66
|
+
label: string;
|
|
67
|
+
value: string;
|
|
68
|
+
}[];
|
|
69
|
+
export declare const paymentMethodOptions: {
|
|
70
|
+
label: string;
|
|
71
|
+
value: string;
|
|
72
|
+
}[];
|
|
73
|
+
export declare const carrierOptions: {
|
|
74
|
+
label: string;
|
|
75
|
+
value: string;
|
|
76
|
+
}[];
|
|
77
|
+
export declare const abraStateOptions: {
|
|
78
|
+
label: string;
|
|
79
|
+
value: string;
|
|
80
|
+
}[];
|
|
81
|
+
export declare const akOrders: AkOrder[];
|
|
82
|
+
export type AkOrderLine = {
|
|
83
|
+
code: string;
|
|
84
|
+
name: string;
|
|
85
|
+
saleUnit: number;
|
|
86
|
+
qty: number;
|
|
87
|
+
unitPrice: number;
|
|
88
|
+
};
|
|
89
|
+
export declare const akOrderLines: AkOrderLine[];
|
|
90
|
+
export type OrderEvent = {
|
|
91
|
+
id: string;
|
|
92
|
+
title: string;
|
|
93
|
+
detail: string;
|
|
94
|
+
at: string;
|
|
95
|
+
};
|
|
96
|
+
export declare const unpaidOrderEvents: OrderEvent[];
|
|
97
|
+
export type AkCustomer = {
|
|
98
|
+
id: string;
|
|
99
|
+
name: string;
|
|
100
|
+
email: string;
|
|
101
|
+
phone: string;
|
|
102
|
+
type: "B2C" | "B2B";
|
|
103
|
+
company?: string;
|
|
104
|
+
ico?: string;
|
|
105
|
+
dic?: string;
|
|
106
|
+
city: string;
|
|
107
|
+
orders: number;
|
|
108
|
+
revenue: number;
|
|
109
|
+
lastOrder: string;
|
|
110
|
+
registeredAt: string;
|
|
111
|
+
priceList: string;
|
|
112
|
+
/** Shared key for records that look like the same person. */
|
|
113
|
+
duplicateGroup?: string;
|
|
114
|
+
};
|
|
115
|
+
export declare const customerTypeOptions: {
|
|
116
|
+
label: string;
|
|
117
|
+
value: string;
|
|
118
|
+
}[];
|
|
119
|
+
export declare const akCustomers: AkCustomer[];
|
|
120
|
+
export type CartState = "active" | "saved" | "shared" | "abandoned" | "ordered";
|
|
121
|
+
export type AkCart = {
|
|
122
|
+
id: string;
|
|
123
|
+
name: string;
|
|
124
|
+
customer: string;
|
|
125
|
+
customerType: "B2C" | "B2B";
|
|
126
|
+
items: number;
|
|
127
|
+
total: number;
|
|
128
|
+
state: CartState;
|
|
129
|
+
updatedAt: string;
|
|
130
|
+
/** Staff member who prepared the cart for the customer, if any. */
|
|
131
|
+
preparedBy?: string;
|
|
132
|
+
};
|
|
133
|
+
export declare const cartStateOptions: {
|
|
134
|
+
label: string;
|
|
135
|
+
value: string;
|
|
136
|
+
}[];
|
|
137
|
+
export declare const akCarts: AkCart[];
|
|
138
|
+
export type AkProduct = {
|
|
139
|
+
id: string;
|
|
140
|
+
/** ABRA stock card code — the join key between ABRA and the CMS. */
|
|
141
|
+
code: string;
|
|
142
|
+
name: string;
|
|
143
|
+
category: string;
|
|
144
|
+
price: number;
|
|
145
|
+
stock: number;
|
|
146
|
+
/** Indivisible sale unit — the product is only sold in multiples of this. */
|
|
147
|
+
saleUnit: number;
|
|
148
|
+
minQty: number;
|
|
149
|
+
/** Parcel dimensions in cm and weight in kg, used to pick a carrier. */
|
|
150
|
+
length?: number;
|
|
151
|
+
width?: number;
|
|
152
|
+
height?: number;
|
|
153
|
+
weight?: number;
|
|
154
|
+
hasImage: boolean;
|
|
155
|
+
hasDescription: boolean;
|
|
156
|
+
importedAt: string;
|
|
157
|
+
};
|
|
158
|
+
export declare const akProducts: AkProduct[];
|
|
159
|
+
/** A product is complete in the CMS once every CMS-owned field is filled. */
|
|
160
|
+
export declare function missingCmsFields(product: AkProduct): string[];
|
|
161
|
+
export type AkCategory = {
|
|
162
|
+
id: string;
|
|
163
|
+
name: string;
|
|
164
|
+
abraCode: string;
|
|
165
|
+
products: number;
|
|
166
|
+
hasImage: boolean;
|
|
167
|
+
children?: AkCategory[];
|
|
168
|
+
};
|
|
169
|
+
export declare const akCategories: AkCategory[];
|
|
170
|
+
export type ShippingMethod = {
|
|
171
|
+
id: string;
|
|
172
|
+
name: string;
|
|
173
|
+
carrier: Carrier;
|
|
174
|
+
/** Needs a parcel box / pickup point picked in checkout. */
|
|
175
|
+
pointBased: boolean;
|
|
176
|
+
price: number;
|
|
177
|
+
/** Order total (CZK) from which the method is free; 0 = never free. */
|
|
178
|
+
freeFrom: number;
|
|
179
|
+
maxWeight: number;
|
|
180
|
+
/** Longest parcel side in cm. */
|
|
181
|
+
maxLength: number;
|
|
182
|
+
customers: "all" | "B2C" | "B2B";
|
|
183
|
+
payments: PaymentMethod[];
|
|
184
|
+
enabled: boolean;
|
|
185
|
+
/** The literal line ABRA receives — ABRA knows nothing else about it. */
|
|
186
|
+
abraText: string;
|
|
187
|
+
};
|
|
188
|
+
export declare const shippingMethods: ShippingMethod[];
|
|
189
|
+
export type PaymentConfig = {
|
|
190
|
+
id: PaymentMethod;
|
|
191
|
+
name: string;
|
|
192
|
+
fee: number;
|
|
193
|
+
customers: "all" | "B2C" | "B2B";
|
|
194
|
+
maxOrder: number;
|
|
195
|
+
enabled: boolean;
|
|
196
|
+
abraText: string;
|
|
197
|
+
};
|
|
198
|
+
export declare const paymentConfigs: PaymentConfig[];
|
|
199
|
+
export type BannerSlide = {
|
|
200
|
+
id: string;
|
|
201
|
+
title: string;
|
|
202
|
+
subtitle: string;
|
|
203
|
+
cta: string;
|
|
204
|
+
link: string;
|
|
205
|
+
image: string;
|
|
206
|
+
from: string;
|
|
207
|
+
to: string;
|
|
208
|
+
live: boolean;
|
|
209
|
+
};
|
|
210
|
+
export declare const bannerSlides: BannerSlide[];
|
|
211
|
+
export type AkContent = {
|
|
212
|
+
id: string;
|
|
213
|
+
title: string;
|
|
214
|
+
kind: "page" | "article";
|
|
215
|
+
slug: string;
|
|
216
|
+
status: "published" | "draft" | "scheduled";
|
|
217
|
+
seoOk: boolean;
|
|
218
|
+
updatedAt: string;
|
|
219
|
+
};
|
|
220
|
+
export declare const akContent: AkContent[];
|
|
221
|
+
export type ProductFeed = {
|
|
222
|
+
id: string;
|
|
223
|
+
name: string;
|
|
224
|
+
format: string;
|
|
225
|
+
url: string;
|
|
226
|
+
products: number;
|
|
227
|
+
errors: number;
|
|
228
|
+
generatedAt: string;
|
|
229
|
+
schedule: string;
|
|
230
|
+
healthy: boolean;
|
|
231
|
+
};
|
|
232
|
+
export declare const productFeeds: ProductFeed[];
|
|
233
|
+
export type EmailTemplate = {
|
|
234
|
+
id: string;
|
|
235
|
+
name: string;
|
|
236
|
+
trigger: string;
|
|
237
|
+
audience: "all" | "B2C" | "B2B";
|
|
238
|
+
enabled: boolean;
|
|
239
|
+
subject: string;
|
|
240
|
+
updatedAt: string;
|
|
241
|
+
};
|
|
242
|
+
export declare const emailTemplates: EmailTemplate[];
|
|
243
|
+
export declare const emailVariables: {
|
|
244
|
+
token: string;
|
|
245
|
+
sample: string;
|
|
246
|
+
}[];
|
|
247
|
+
//# sourceMappingURL=data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../stories/pages/akros/data.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAEhE,eAAO,MAAM,GAAG,mBAId,CAAA;AAEF,eAAO,MAAM,KAAK,mBAAiC,CAAA;AAInD,eAAO,MAAM,QAAQ,EAAE,QAAQ,EAyF9B,CAAA;AAID,MAAM,MAAM,WAAW,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AA4BxE,8EAA8E;AAC9E,eAAO,MAAM,YAAY,EAAE,WAAW,EAOpC,CAAA;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,EAIlC,CAAA;AAEH,eAAO,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,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAA;IAC/B,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,aAAa,EAgEzC,CAAA;AAED,eAAO,MAAM,cAAc;;;GAQ1B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emails.stories.d.ts","sourceRoot":"","sources":["../../../../stories/pages/akros/emails.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAiBtD,QAAA,MAAM,IAAI,EAAE,IA4BX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAyQrB,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAWhC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feeds.stories.d.ts","sourceRoot":"","sources":["../../../../stories/pages/akros/feeds.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAYtD,QAAA,MAAM,IAAI,EAAE,IA0BX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAiNrB,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: Meta;
|
|
3
|
+
export default meta;
|
|
4
|
+
type Story = StoryObj;
|
|
5
|
+
export declare const UnpaidComgate: Story;
|
|
6
|
+
export declare const PaidToParcelBox: Story;
|
|
7
|
+
export declare const CashOnDeliveryAbraError: Story;
|
|
8
|
+
//# sourceMappingURL=order-detail.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-detail.stories.d.ts","sourceRoot":"","sources":["../../../../stories/pages/akros/order-detail.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAgCtD,QAAA,MAAM,IAAI,EAAE,IAkCX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AA2frB,eAAO,MAAM,aAAa,EAAE,KAW3B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAW7B,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,KAWrC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: Meta;
|
|
3
|
+
export default meta;
|
|
4
|
+
type Story = StoryObj;
|
|
5
|
+
export declare const Default: Story;
|
|
6
|
+
export declare const UnpaidComgate: Story;
|
|
7
|
+
export declare const NotInAbra: Story;
|
|
8
|
+
//# sourceMappingURL=orders.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orders.stories.d.ts","sourceRoot":"","sources":["../../../../stories/pages/akros/orders.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AA+BtD,QAAA,MAAM,IAAI,EAAE,IA+BX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAuWrB,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAW3B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAWvB,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: Meta;
|
|
3
|
+
export default meta;
|
|
4
|
+
type Story = StoryObj;
|
|
5
|
+
export declare const Default: Story;
|
|
6
|
+
export declare const NeedsCompletion: Story;
|
|
7
|
+
export declare const EditorSoldPerTen: Story;
|
|
8
|
+
export declare const EditorMissingDimensions: Story;
|
|
9
|
+
//# sourceMappingURL=products.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.stories.d.ts","sourceRoot":"","sources":["../../../../stories/pages/akros/products.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAwBtD,QAAA,MAAM,IAAI,EAAE,IA+BX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAugBrB,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAW7B,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAW9B,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,KAWrC,CAAA"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Akros-specific layer on top of the generic `Pages/*` shell.
|
|
3
|
+
*
|
|
4
|
+
* Still no new design-system components: the frame is `AdminShell`, the
|
|
5
|
+
* badges are `Badge`, the notices are `Icon` + `Button` in a bordered row.
|
|
6
|
+
* What lives here is the *vocabulary* every Akros screen shares — how an
|
|
7
|
+
* order state, a payment state, an ABRA transfer and a pickup point look —
|
|
8
|
+
* so the orders list, the order detail and the dashboard tell one story.
|
|
9
|
+
*/
|
|
10
|
+
import type { ReactNode } from "react";
|
|
11
|
+
import { type AbraState, type Carrier, type OrderState, type PaymentMethod, type PaymentState } from "./data.js";
|
|
12
|
+
/**
|
|
13
|
+
* Akros back-office frame. Pages pass the nav id they represent; the shell
|
|
14
|
+
* keeps navigation, global search and account in the same place everywhere.
|
|
15
|
+
*/
|
|
16
|
+
export declare function AkrosShell({ selected, expanded, children, }: {
|
|
17
|
+
selected: string;
|
|
18
|
+
/** Nav branches to open on first render. */
|
|
19
|
+
expanded?: string[];
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function OrderStateBadge({ state }: {
|
|
23
|
+
state: OrderState;
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare function PaymentBadge({ state }: {
|
|
26
|
+
state: PaymentState;
|
|
27
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
/**
|
|
29
|
+
* Payment method + state in one cell. An unpaid online (Comgate) order is
|
|
30
|
+
* the one operators hunt for, so it gets an explicit marker instead of
|
|
31
|
+
* relying on the reader combining two columns in their head.
|
|
32
|
+
*/
|
|
33
|
+
export declare function PaymentCell({ method, state, }: {
|
|
34
|
+
method: PaymentMethod;
|
|
35
|
+
state: PaymentState;
|
|
36
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
/** ABRA transfer state; the ABRA document number shows once one exists. */
|
|
38
|
+
export declare function AbraBadge({ state, document, }: {
|
|
39
|
+
state: AbraState;
|
|
40
|
+
document?: string;
|
|
41
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
/**
|
|
43
|
+
* Carrier + pickup point. The point id is what support reads out on the
|
|
44
|
+
* phone and what the carrier API needs, so it is always shown in full.
|
|
45
|
+
*/
|
|
46
|
+
export declare function ShippingCell({ carrier, pointId, pointName, }: {
|
|
47
|
+
carrier: Carrier;
|
|
48
|
+
pointId?: string;
|
|
49
|
+
pointName?: string;
|
|
50
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
type NoticeTone = "danger" | "warning" | "info" | "success";
|
|
52
|
+
/**
|
|
53
|
+
* A row that says what is wrong and offers the next step. Colour is never
|
|
54
|
+
* the only signal: every tone has its own icon and the text states the fact.
|
|
55
|
+
*/
|
|
56
|
+
export declare function Notice({ tone, title, children, action, }: {
|
|
57
|
+
tone: NoticeTone;
|
|
58
|
+
title: ReactNode;
|
|
59
|
+
children?: ReactNode;
|
|
60
|
+
action?: ReactNode;
|
|
61
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
/**
|
|
63
|
+
* Marks a field whose value is owned by ABRA. The CMS shows it but never
|
|
64
|
+
* edits it — the badge tells the operator where to change it instead.
|
|
65
|
+
*/
|
|
66
|
+
export declare function AbraOwned(): import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
export declare const akrosDocs: (lines: string[]) => string;
|
|
68
|
+
export {};
|
|
69
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../stories/pages/akros/shared.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC,OAAO,EACL,KAAK,SAAS,EAEd,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,QAAQ,CAAA;AAUf;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,MAAM,CAAA;IAChB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,QAAQ,EAAE,SAAS,CAAA;CACpB,2CAYA;AAaD,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,UAAU,CAAA;CAAE,2CAO/D;AAUD,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE,2CAO9D;AASD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,KAAK,GACN,EAAE;IACD,MAAM,EAAE,aAAa,CAAA;IACrB,KAAK,EAAE,YAAY,CAAA;CACpB,2CAsBA;AASD,2EAA2E;AAC3E,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,2CAgBA;AAUD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,OAAO,EACP,SAAS,GACV,EAAE;IACD,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,2CAeA;AAID,KAAK,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;AAgB3D;;;GAGG;AACH,wBAAgB,MAAM,CAAC,EACrB,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,MAAM,GACP,EAAE;IACD,IAAI,EAAE,UAAU,CAAA;IAChB,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB,2CAeA;AAED;;;GAGG;AACH,wBAAgB,SAAS,4CAWxB;AAED,eAAO,MAAM,SAAS,GAAI,OAAO,MAAM,EAAE,WAAqB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: Meta;
|
|
3
|
+
export default meta;
|
|
4
|
+
type Story = StoryObj;
|
|
5
|
+
export declare const Default: Story;
|
|
6
|
+
export declare const EditShipping: Story;
|
|
7
|
+
//# sourceMappingURL=shipping-payments.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shipping-payments.stories.d.ts","sourceRoot":"","sources":["../../../../stories/pages/akros/shipping-payments.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AA6BtD,QAAA,MAAM,IAAI,EAAE,IAgCX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAserB,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAW1B,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: Meta;
|
|
3
|
+
export default meta;
|
|
4
|
+
type Story = StoryObj;
|
|
5
|
+
export declare const Centered: Story;
|
|
6
|
+
export declare const WithError: Story;
|
|
7
|
+
export declare const TwoFactor: Story;
|
|
8
|
+
export declare const Split: Story;
|
|
9
|
+
//# sourceMappingURL=auth.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.stories.d.ts","sourceRoot":"","sources":["../../../stories/pages/auth.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAYtD,QAAA,MAAM,IAAI,EAAE,IAgCX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AA4ErB,eAAO,MAAM,QAAQ,EAAE,KAStB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAiBvB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KA6CvB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KA8CnB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"board.stories.d.ts","sourceRoot":"","sources":["../../../stories/pages/board.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAatD,QAAA,MAAM,IAAI,EAAE,IAiCX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAmLrB,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAW7B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkout.stories.d.ts","sourceRoot":"","sources":["../../../stories/pages/checkout.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAiBtD,QAAA,MAAM,IAAI,EAAE,IA+BX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAmiBrB,eAAO,MAAM,WAAW,EAAE,KAGzB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAWxB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: Meta;
|
|
3
|
+
export default meta;
|
|
4
|
+
type Story = StoryObj;
|
|
5
|
+
export declare const Default: Story;
|
|
6
|
+
export declare const Loading: Story;
|
|
7
|
+
export declare const Empty: Story;
|
|
8
|
+
//# sourceMappingURL=cms-content-list.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cms-content-list.stories.d.ts","sourceRoot":"","sources":["../../../stories/pages/cms-content-list.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAuBtD,QAAA,MAAM,IAAI,EAAE,IAgCX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAkVrB,eAAO,MAAM,OAAO,EAAE,KAErB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAWnB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cms-record-editor.stories.d.ts","sourceRoot":"","sources":["../../../stories/pages/cms-record-editor.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAgBtD,QAAA,MAAM,IAAI,EAAE,IA+BX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AA0UrB,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crm-customer-workspace.stories.d.ts","sourceRoot":"","sources":["../../../stories/pages/crm-customer-workspace.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAgCtD,QAAA,MAAM,IAAI,EAAE,IAkCX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AA0TrB,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crud-workflow.stories.d.ts","sourceRoot":"","sources":["../../../stories/pages/crud-workflow.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AA4BtD,QAAA,MAAM,IAAI,EAAE,IAiCX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAucrB,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard.stories.d.ts","sourceRoot":"","sources":["../../../stories/pages/dashboard.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AA4BtD,QAAA,MAAM,IAAI,EAAE,IAgCX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAgSrB,eAAO,MAAM,OAAO,EAAE,KAErB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAA"}
|