@nok-integration/storefront-react 0.19.35 → 0.19.37
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/index.d.ts +19 -1
- package/dist/index.mjs +34 -26
- package/dist/standalone/storefront.mjs +34 -26
- package/dist/standalone/styles.css +24 -22
- package/dist/styles.css +24 -22
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2875,6 +2875,7 @@ declare function createClient(options: ClientOptions): {
|
|
|
2875
2875
|
item_count: number;
|
|
2876
2876
|
image?: string | undefined;
|
|
2877
2877
|
images?: string[] | undefined;
|
|
2878
|
+
return_status?: "reported" | "package_received" | "completed" | undefined;
|
|
2878
2879
|
}[];
|
|
2879
2880
|
}>;
|
|
2880
2881
|
get: (orderRef: string) => Promise<{
|
|
@@ -4237,10 +4238,16 @@ declare const OrderStatus: z.ZodEnum<["confirmed", "packed", "shipped", "deliver
|
|
|
4237
4238
|
|
|
4238
4239
|
declare type OrderStatus = z.infer<typeof OrderStatus>;
|
|
4239
4240
|
|
|
4240
|
-
export declare function OrderStatusBadge({ status }: OrderStatusBadgeProps): JSX.Element;
|
|
4241
|
+
export declare function OrderStatusBadge({ status, returnStatus }: OrderStatusBadgeProps): JSX.Element;
|
|
4241
4242
|
|
|
4242
4243
|
export declare interface OrderStatusBadgeProps {
|
|
4243
4244
|
status: OrderProgressStep;
|
|
4245
|
+
/**
|
|
4246
|
+
* An open return against this order, when there is one. The engine omits it once every
|
|
4247
|
+
* return has completed, so a value here always means "still outstanding" — this component
|
|
4248
|
+
* does not have to decide which return statuses count as started.
|
|
4249
|
+
*/
|
|
4250
|
+
returnStatus?: ReturnStatus;
|
|
4244
4251
|
}
|
|
4245
4252
|
|
|
4246
4253
|
/**
|
|
@@ -5412,6 +5419,17 @@ declare const ReturnRequestItem: z.ZodObject<{
|
|
|
5412
5419
|
|
|
5413
5420
|
declare type ReturnRequestItem = z.infer<typeof ReturnRequestItem>;
|
|
5414
5421
|
|
|
5422
|
+
/**
|
|
5423
|
+
* Where a return has got to.
|
|
5424
|
+
*
|
|
5425
|
+
* Three steps, which is what the frame draws — reported, received, completed. The parcel
|
|
5426
|
+
* is in the post for most of that time and nobody can say more than "we have not got it
|
|
5427
|
+
* yet", so a finer breakdown would be invented rather than observed.
|
|
5428
|
+
*/
|
|
5429
|
+
declare const ReturnStatus: z.ZodEnum<["reported", "package_received", "completed"]>;
|
|
5430
|
+
|
|
5431
|
+
declare type ReturnStatus = z.infer<typeof ReturnStatus>;
|
|
5432
|
+
|
|
5415
5433
|
export declare function ReturnTrackingView({ ret, locale: localeProp }: ReturnTrackingViewProps): JSX.Element;
|
|
5416
5434
|
|
|
5417
5435
|
export declare interface ReturnTrackingViewProps {
|
package/dist/index.mjs
CHANGED
|
@@ -4647,7 +4647,7 @@ function requireOrderTracking() {
|
|
|
4647
4647
|
Object.defineProperty(exports, "__esModule", {
|
|
4648
4648
|
value: true
|
|
4649
4649
|
});
|
|
4650
|
-
exports.ReturnDetail = exports.ReturnItem = exports.ReturnProgressEntry = exports.CreateReturnRequest = exports.ReturnRequestItem = exports.FanReturnReason = exports.RequestCancellationRequest = exports.FanCancelReason = exports.OrderDetail = exports.ReturnSummary = exports.
|
|
4650
|
+
exports.ReturnDetail = exports.ReturnItem = exports.ReturnProgressEntry = exports.CreateReturnRequest = exports.ReturnRequestItem = exports.FanReturnReason = exports.RequestCancellationRequest = exports.FanCancelReason = exports.OrderDetail = exports.ReturnSummary = exports.OrderList = exports.OrderSummaryItem = exports.ReturnStatus = exports.OrderItem = exports.OrderTracking = exports.OrderProgressEntry = exports.OrderProgressStep = void 0;
|
|
4651
4651
|
const zod_1 = requireZod();
|
|
4652
4652
|
const money_1 = requireMoney();
|
|
4653
4653
|
const ids_1 = requireIds();
|
|
@@ -4679,6 +4679,7 @@ function requireOrderTracking() {
|
|
|
4679
4679
|
refunded_qty: zod_1.z.number().int().nonnegative(),
|
|
4680
4680
|
returned_qty: zod_1.z.number().int().nonnegative().optional()
|
|
4681
4681
|
});
|
|
4682
|
+
exports.ReturnStatus = zod_1.z.enum(["reported", "package_received", "completed"]);
|
|
4682
4683
|
exports.OrderSummaryItem = zod_1.z.object({
|
|
4683
4684
|
order_ref: ids_1.OrderRef,
|
|
4684
4685
|
placed_at: common_1.Timestamp,
|
|
@@ -4688,12 +4689,12 @@ function requireOrderTracking() {
|
|
|
4688
4689
|
total: money_1.Money,
|
|
4689
4690
|
item_count: zod_1.z.number().int().nonnegative(),
|
|
4690
4691
|
image: common_1.Url.optional(),
|
|
4691
|
-
images: zod_1.z.array(common_1.Url).max(3).optional()
|
|
4692
|
+
images: zod_1.z.array(common_1.Url).max(3).optional(),
|
|
4693
|
+
return_status: exports.ReturnStatus.optional()
|
|
4692
4694
|
});
|
|
4693
4695
|
exports.OrderList = zod_1.z.object({
|
|
4694
4696
|
orders: zod_1.z.array(exports.OrderSummaryItem)
|
|
4695
4697
|
});
|
|
4696
|
-
exports.ReturnStatus = zod_1.z.enum(["reported", "package_received", "completed"]);
|
|
4697
4698
|
exports.ReturnSummary = zod_1.z.object({
|
|
4698
4699
|
return_ref: zod_1.z.string().min(1),
|
|
4699
4700
|
status: exports.ReturnStatus,
|
|
@@ -5411,13 +5412,13 @@ function ShopVideo({ src, poster, fill: fill2 = false, className, style, priorit
|
|
|
5411
5412
|
const badge$5 = "_badge_1bagf_1";
|
|
5412
5413
|
const neutral$1 = "_neutral_1bagf_12";
|
|
5413
5414
|
const success$1 = "_success_1bagf_17";
|
|
5414
|
-
const critical$
|
|
5415
|
+
const critical$2 = "_critical_1bagf_22";
|
|
5415
5416
|
const promo = "_promo_1bagf_27";
|
|
5416
5417
|
const styles$R = {
|
|
5417
5418
|
badge: badge$5,
|
|
5418
5419
|
neutral: neutral$1,
|
|
5419
5420
|
success: success$1,
|
|
5420
|
-
critical: critical$
|
|
5421
|
+
critical: critical$2,
|
|
5421
5422
|
promo
|
|
5422
5423
|
};
|
|
5423
5424
|
function Badge({ tone = "neutral", children }) {
|
|
@@ -6014,7 +6015,7 @@ const message$1 = "_message_1tc1q_120";
|
|
|
6014
6015
|
const action = "_action_1tc1q_133";
|
|
6015
6016
|
const neutral = "_neutral_1tc1q_158";
|
|
6016
6017
|
const success = "_success_1tc1q_163";
|
|
6017
|
-
const critical = "_critical_1tc1q_168";
|
|
6018
|
+
const critical$1 = "_critical_1tc1q_168";
|
|
6018
6019
|
const rich = "_rich_1tc1q_183";
|
|
6019
6020
|
const description = "_description_1tc1q_198";
|
|
6020
6021
|
const thumb$3 = "_thumb_1tc1q_216";
|
|
@@ -6029,7 +6030,7 @@ const styles$K = {
|
|
|
6029
6030
|
action,
|
|
6030
6031
|
neutral,
|
|
6031
6032
|
success,
|
|
6032
|
-
critical,
|
|
6033
|
+
critical: critical$1,
|
|
6033
6034
|
rich,
|
|
6034
6035
|
description,
|
|
6035
6036
|
thumb: thumb$3,
|
|
@@ -6977,17 +6978,17 @@ function ReturnItemRow({ item: item2, className }) {
|
|
|
6977
6978
|
})]
|
|
6978
6979
|
});
|
|
6979
6980
|
}
|
|
6980
|
-
const page$6 = "
|
|
6981
|
-
const titles$2 = "
|
|
6982
|
-
const title$k = "
|
|
6983
|
-
const subtitle$7 = "
|
|
6984
|
-
const list$2 = "
|
|
6985
|
-
const card$3 = "
|
|
6986
|
-
const checkSlot = "
|
|
6987
|
-
const check = "
|
|
6988
|
-
const row$6 = "
|
|
6989
|
-
const reason = "
|
|
6990
|
-
const reasonSet = "
|
|
6981
|
+
const page$6 = "_page_j1rbn_7";
|
|
6982
|
+
const titles$2 = "_titles_j1rbn_15";
|
|
6983
|
+
const title$k = "_title_j1rbn_15";
|
|
6984
|
+
const subtitle$7 = "_subtitle_j1rbn_30";
|
|
6985
|
+
const list$2 = "_list_j1rbn_38";
|
|
6986
|
+
const card$3 = "_card_j1rbn_48";
|
|
6987
|
+
const checkSlot = "_checkSlot_j1rbn_61";
|
|
6988
|
+
const check = "_check_j1rbn_61";
|
|
6989
|
+
const row$6 = "_row_j1rbn_105";
|
|
6990
|
+
const reason = "_reason_j1rbn_130";
|
|
6991
|
+
const reasonSet = "_reasonSet_j1rbn_150";
|
|
6991
6992
|
const styles$B = {
|
|
6992
6993
|
page: page$6,
|
|
6993
6994
|
titles: titles$2,
|
|
@@ -7983,15 +7984,15 @@ function OrderConfirmationContent({ orderRef, locale: localeProp, onDone }) {
|
|
|
7983
7984
|
})]
|
|
7984
7985
|
});
|
|
7985
7986
|
}
|
|
7986
|
-
const badge$2 = "
|
|
7987
|
-
const progress = "
|
|
7988
|
-
const delivered = "
|
|
7989
|
-
const
|
|
7987
|
+
const badge$2 = "_badge_1w0zn_6";
|
|
7988
|
+
const progress = "_progress_1w0zn_22";
|
|
7989
|
+
const delivered = "_delivered_1w0zn_27";
|
|
7990
|
+
const critical = "_critical_1w0zn_36";
|
|
7990
7991
|
const styles$w = {
|
|
7991
7992
|
badge: badge$2,
|
|
7992
7993
|
progress,
|
|
7993
7994
|
delivered,
|
|
7994
|
-
|
|
7995
|
+
critical
|
|
7995
7996
|
};
|
|
7996
7997
|
const LABEL = {
|
|
7997
7998
|
packing: "In progress",
|
|
@@ -8005,10 +8006,16 @@ const TONE = {
|
|
|
8005
8006
|
on_its_way: "progress",
|
|
8006
8007
|
out_for_delivery: "progress",
|
|
8007
8008
|
delivered: "delivered",
|
|
8008
|
-
cancelled: "
|
|
8009
|
+
cancelled: "critical"
|
|
8009
8010
|
};
|
|
8010
|
-
function OrderStatusBadge({ status }) {
|
|
8011
|
+
function OrderStatusBadge({ status, returnStatus }) {
|
|
8011
8012
|
const t = useT();
|
|
8013
|
+
if (returnStatus) {
|
|
8014
|
+
return jsx("span", {
|
|
8015
|
+
className: [styles$w.badge, styles$w.critical].join(" "),
|
|
8016
|
+
children: t("Return started")
|
|
8017
|
+
});
|
|
8018
|
+
}
|
|
8012
8019
|
const label2 = LABEL[status] ?? status.replace(/_/g, " ");
|
|
8013
8020
|
const tone = TONE[status] ?? "progress";
|
|
8014
8021
|
return jsx("span", {
|
|
@@ -8162,7 +8169,8 @@ function OrderCard({ order, locale, onOpen }) {
|
|
|
8162
8169
|
children: formatPlaced(order.placed_at, locale)
|
|
8163
8170
|
})]
|
|
8164
8171
|
}), jsx(OrderStatusBadge, {
|
|
8165
|
-
status: order.status
|
|
8172
|
+
status: order.status,
|
|
8173
|
+
returnStatus: order.return_status
|
|
8166
8174
|
})]
|
|
8167
8175
|
}), jsxs("div", {
|
|
8168
8176
|
className: styles$v.bottom,
|
|
@@ -4647,7 +4647,7 @@ function requireOrderTracking() {
|
|
|
4647
4647
|
Object.defineProperty(exports, "__esModule", {
|
|
4648
4648
|
value: true
|
|
4649
4649
|
});
|
|
4650
|
-
exports.ReturnDetail = exports.ReturnItem = exports.ReturnProgressEntry = exports.CreateReturnRequest = exports.ReturnRequestItem = exports.FanReturnReason = exports.RequestCancellationRequest = exports.FanCancelReason = exports.OrderDetail = exports.ReturnSummary = exports.
|
|
4650
|
+
exports.ReturnDetail = exports.ReturnItem = exports.ReturnProgressEntry = exports.CreateReturnRequest = exports.ReturnRequestItem = exports.FanReturnReason = exports.RequestCancellationRequest = exports.FanCancelReason = exports.OrderDetail = exports.ReturnSummary = exports.OrderList = exports.OrderSummaryItem = exports.ReturnStatus = exports.OrderItem = exports.OrderTracking = exports.OrderProgressEntry = exports.OrderProgressStep = void 0;
|
|
4651
4651
|
const zod_1 = requireZod();
|
|
4652
4652
|
const money_1 = requireMoney();
|
|
4653
4653
|
const ids_1 = requireIds();
|
|
@@ -4679,6 +4679,7 @@ function requireOrderTracking() {
|
|
|
4679
4679
|
refunded_qty: zod_1.z.number().int().nonnegative(),
|
|
4680
4680
|
returned_qty: zod_1.z.number().int().nonnegative().optional()
|
|
4681
4681
|
});
|
|
4682
|
+
exports.ReturnStatus = zod_1.z.enum(["reported", "package_received", "completed"]);
|
|
4682
4683
|
exports.OrderSummaryItem = zod_1.z.object({
|
|
4683
4684
|
order_ref: ids_1.OrderRef,
|
|
4684
4685
|
placed_at: common_1.Timestamp,
|
|
@@ -4688,12 +4689,12 @@ function requireOrderTracking() {
|
|
|
4688
4689
|
total: money_1.Money,
|
|
4689
4690
|
item_count: zod_1.z.number().int().nonnegative(),
|
|
4690
4691
|
image: common_1.Url.optional(),
|
|
4691
|
-
images: zod_1.z.array(common_1.Url).max(3).optional()
|
|
4692
|
+
images: zod_1.z.array(common_1.Url).max(3).optional(),
|
|
4693
|
+
return_status: exports.ReturnStatus.optional()
|
|
4692
4694
|
});
|
|
4693
4695
|
exports.OrderList = zod_1.z.object({
|
|
4694
4696
|
orders: zod_1.z.array(exports.OrderSummaryItem)
|
|
4695
4697
|
});
|
|
4696
|
-
exports.ReturnStatus = zod_1.z.enum(["reported", "package_received", "completed"]);
|
|
4697
4698
|
exports.ReturnSummary = zod_1.z.object({
|
|
4698
4699
|
return_ref: zod_1.z.string().min(1),
|
|
4699
4700
|
status: exports.ReturnStatus,
|
|
@@ -5411,13 +5412,13 @@ function ShopVideo({ src, poster, fill: fill2 = false, className, style, priorit
|
|
|
5411
5412
|
const badge$5 = "_badge_1bagf_1";
|
|
5412
5413
|
const neutral$1 = "_neutral_1bagf_12";
|
|
5413
5414
|
const success$1 = "_success_1bagf_17";
|
|
5414
|
-
const critical$
|
|
5415
|
+
const critical$2 = "_critical_1bagf_22";
|
|
5415
5416
|
const promo = "_promo_1bagf_27";
|
|
5416
5417
|
const styles$R = {
|
|
5417
5418
|
badge: badge$5,
|
|
5418
5419
|
neutral: neutral$1,
|
|
5419
5420
|
success: success$1,
|
|
5420
|
-
critical: critical$
|
|
5421
|
+
critical: critical$2,
|
|
5421
5422
|
promo
|
|
5422
5423
|
};
|
|
5423
5424
|
function Badge({ tone = "neutral", children }) {
|
|
@@ -6014,7 +6015,7 @@ const message$1 = "_message_1tc1q_120";
|
|
|
6014
6015
|
const action = "_action_1tc1q_133";
|
|
6015
6016
|
const neutral = "_neutral_1tc1q_158";
|
|
6016
6017
|
const success = "_success_1tc1q_163";
|
|
6017
|
-
const critical = "_critical_1tc1q_168";
|
|
6018
|
+
const critical$1 = "_critical_1tc1q_168";
|
|
6018
6019
|
const rich = "_rich_1tc1q_183";
|
|
6019
6020
|
const description = "_description_1tc1q_198";
|
|
6020
6021
|
const thumb$3 = "_thumb_1tc1q_216";
|
|
@@ -6029,7 +6030,7 @@ const styles$K = {
|
|
|
6029
6030
|
action,
|
|
6030
6031
|
neutral,
|
|
6031
6032
|
success,
|
|
6032
|
-
critical,
|
|
6033
|
+
critical: critical$1,
|
|
6033
6034
|
rich,
|
|
6034
6035
|
description,
|
|
6035
6036
|
thumb: thumb$3,
|
|
@@ -6977,17 +6978,17 @@ function ReturnItemRow({ item: item2, className }) {
|
|
|
6977
6978
|
})]
|
|
6978
6979
|
});
|
|
6979
6980
|
}
|
|
6980
|
-
const page$6 = "
|
|
6981
|
-
const titles$2 = "
|
|
6982
|
-
const title$k = "
|
|
6983
|
-
const subtitle$7 = "
|
|
6984
|
-
const list$2 = "
|
|
6985
|
-
const card$3 = "
|
|
6986
|
-
const checkSlot = "
|
|
6987
|
-
const check = "
|
|
6988
|
-
const row$6 = "
|
|
6989
|
-
const reason = "
|
|
6990
|
-
const reasonSet = "
|
|
6981
|
+
const page$6 = "_page_j1rbn_7";
|
|
6982
|
+
const titles$2 = "_titles_j1rbn_15";
|
|
6983
|
+
const title$k = "_title_j1rbn_15";
|
|
6984
|
+
const subtitle$7 = "_subtitle_j1rbn_30";
|
|
6985
|
+
const list$2 = "_list_j1rbn_38";
|
|
6986
|
+
const card$3 = "_card_j1rbn_48";
|
|
6987
|
+
const checkSlot = "_checkSlot_j1rbn_61";
|
|
6988
|
+
const check = "_check_j1rbn_61";
|
|
6989
|
+
const row$6 = "_row_j1rbn_105";
|
|
6990
|
+
const reason = "_reason_j1rbn_130";
|
|
6991
|
+
const reasonSet = "_reasonSet_j1rbn_150";
|
|
6991
6992
|
const styles$B = {
|
|
6992
6993
|
page: page$6,
|
|
6993
6994
|
titles: titles$2,
|
|
@@ -7983,15 +7984,15 @@ function OrderConfirmationContent({ orderRef, locale: localeProp, onDone }) {
|
|
|
7983
7984
|
})]
|
|
7984
7985
|
});
|
|
7985
7986
|
}
|
|
7986
|
-
const badge$2 = "
|
|
7987
|
-
const progress = "
|
|
7988
|
-
const delivered = "
|
|
7989
|
-
const
|
|
7987
|
+
const badge$2 = "_badge_1w0zn_6";
|
|
7988
|
+
const progress = "_progress_1w0zn_22";
|
|
7989
|
+
const delivered = "_delivered_1w0zn_27";
|
|
7990
|
+
const critical = "_critical_1w0zn_36";
|
|
7990
7991
|
const styles$w = {
|
|
7991
7992
|
badge: badge$2,
|
|
7992
7993
|
progress,
|
|
7993
7994
|
delivered,
|
|
7994
|
-
|
|
7995
|
+
critical
|
|
7995
7996
|
};
|
|
7996
7997
|
const LABEL = {
|
|
7997
7998
|
packing: "In progress",
|
|
@@ -8005,10 +8006,16 @@ const TONE = {
|
|
|
8005
8006
|
on_its_way: "progress",
|
|
8006
8007
|
out_for_delivery: "progress",
|
|
8007
8008
|
delivered: "delivered",
|
|
8008
|
-
cancelled: "
|
|
8009
|
+
cancelled: "critical"
|
|
8009
8010
|
};
|
|
8010
|
-
function OrderStatusBadge({ status }) {
|
|
8011
|
+
function OrderStatusBadge({ status, returnStatus }) {
|
|
8011
8012
|
const t = useT();
|
|
8013
|
+
if (returnStatus) {
|
|
8014
|
+
return jsx("span", {
|
|
8015
|
+
className: [styles$w.badge, styles$w.critical].join(" "),
|
|
8016
|
+
children: t("Return started")
|
|
8017
|
+
});
|
|
8018
|
+
}
|
|
8012
8019
|
const label2 = LABEL[status] ?? status.replace(/_/g, " ");
|
|
8013
8020
|
const tone = TONE[status] ?? "progress";
|
|
8014
8021
|
return jsx("span", {
|
|
@@ -8162,7 +8169,8 @@ function OrderCard({ order, locale, onOpen }) {
|
|
|
8162
8169
|
children: formatPlaced(order.placed_at, locale)
|
|
8163
8170
|
})]
|
|
8164
8171
|
}), jsx(OrderStatusBadge, {
|
|
8165
|
-
status: order.status
|
|
8172
|
+
status: order.status,
|
|
8173
|
+
returnStatus: order.return_status
|
|
8166
8174
|
})]
|
|
8167
8175
|
}), jsxs("div", {
|
|
8168
8176
|
className: styles$v.bottom,
|
|
@@ -1056,38 +1056,38 @@
|
|
|
1056
1056
|
text-decoration: line-through;
|
|
1057
1057
|
font-variant-numeric: tabular-nums;
|
|
1058
1058
|
}
|
|
1059
|
-
.
|
|
1059
|
+
._page_j1rbn_7 {
|
|
1060
1060
|
display: flex;
|
|
1061
1061
|
flex-direction: column;
|
|
1062
1062
|
gap: var(--space-24);
|
|
1063
1063
|
padding: var(--space-20) var(--space-16);
|
|
1064
1064
|
background: var(--color-surface-default);
|
|
1065
1065
|
}
|
|
1066
|
-
.
|
|
1066
|
+
._titles_j1rbn_15 {
|
|
1067
1067
|
display: flex;
|
|
1068
1068
|
flex-direction: column;
|
|
1069
1069
|
gap: var(--space-8);
|
|
1070
1070
|
}
|
|
1071
|
-
.
|
|
1071
|
+
._title_j1rbn_15 {
|
|
1072
1072
|
margin: 0;
|
|
1073
1073
|
font-size: var(--type-heading-md-size);
|
|
1074
1074
|
line-height: 1.32;
|
|
1075
1075
|
font-weight: var(--font-weight-bold);
|
|
1076
1076
|
color: var(--color-text-default);
|
|
1077
1077
|
}
|
|
1078
|
-
.
|
|
1078
|
+
._subtitle_j1rbn_30 {
|
|
1079
1079
|
font-size: var(--type-trimmed-sm-size);
|
|
1080
1080
|
line-height: 10px;
|
|
1081
1081
|
padding: 5px 0;
|
|
1082
1082
|
margin: -5px 0;
|
|
1083
1083
|
color: var(--color-text-subtle);
|
|
1084
1084
|
}
|
|
1085
|
-
.
|
|
1085
|
+
._list_j1rbn_38 {
|
|
1086
1086
|
display: flex;
|
|
1087
1087
|
flex-direction: column;
|
|
1088
1088
|
gap: var(--space-12);
|
|
1089
1089
|
}
|
|
1090
|
-
.
|
|
1090
|
+
._card_j1rbn_48 {
|
|
1091
1091
|
display: flex;
|
|
1092
1092
|
align-items: flex-start;
|
|
1093
1093
|
gap: var(--space-12);
|
|
@@ -1095,7 +1095,7 @@
|
|
|
1095
1095
|
border-radius: var(--radius-18);
|
|
1096
1096
|
background: var(--color-surface-soft);
|
|
1097
1097
|
}
|
|
1098
|
-
.
|
|
1098
|
+
._checkSlot_j1rbn_61 {
|
|
1099
1099
|
display: inline-flex;
|
|
1100
1100
|
align-items: flex-start;
|
|
1101
1101
|
flex-shrink: 0;
|
|
@@ -1105,12 +1105,12 @@
|
|
|
1105
1105
|
color: var(--color-surface-max);
|
|
1106
1106
|
cursor: pointer;
|
|
1107
1107
|
}
|
|
1108
|
-
.
|
|
1108
|
+
._checkSlot_j1rbn_61:focus-visible {
|
|
1109
1109
|
outline: none;
|
|
1110
1110
|
box-shadow: var(--focus-ring);
|
|
1111
1111
|
border-radius: var(--radius-4);
|
|
1112
1112
|
}
|
|
1113
|
-
.
|
|
1113
|
+
._check_j1rbn_61 {
|
|
1114
1114
|
position: relative;
|
|
1115
1115
|
display: inline-flex;
|
|
1116
1116
|
align-items: center;
|
|
@@ -1118,7 +1118,7 @@
|
|
|
1118
1118
|
width: 24px;
|
|
1119
1119
|
height: 24px;
|
|
1120
1120
|
}
|
|
1121
|
-
.
|
|
1121
|
+
._check_j1rbn_61::before {
|
|
1122
1122
|
content: "";
|
|
1123
1123
|
position: absolute;
|
|
1124
1124
|
width: 20px;
|
|
@@ -1126,25 +1126,26 @@
|
|
|
1126
1126
|
border: 1px solid var(--color-border-default);
|
|
1127
1127
|
border-radius: var(--radius-full);
|
|
1128
1128
|
}
|
|
1129
|
-
.
|
|
1129
|
+
._checkSlot_j1rbn_61[aria-checked=true] ._check_j1rbn_61::before {
|
|
1130
1130
|
border-color: transparent;
|
|
1131
1131
|
}
|
|
1132
|
-
.
|
|
1132
|
+
._check_j1rbn_61 svg {
|
|
1133
1133
|
position: relative;
|
|
1134
1134
|
}
|
|
1135
|
-
.
|
|
1135
|
+
._row_j1rbn_105 {
|
|
1136
1136
|
display: flex;
|
|
1137
1137
|
flex-direction: column;
|
|
1138
1138
|
gap: var(--space-12);
|
|
1139
1139
|
flex: 1 1 0;
|
|
1140
1140
|
min-width: 0;
|
|
1141
1141
|
}
|
|
1142
|
-
.
|
|
1142
|
+
._reason_j1rbn_130 {
|
|
1143
1143
|
display: inline-flex;
|
|
1144
1144
|
align-items: center;
|
|
1145
1145
|
justify-content: space-between;
|
|
1146
|
+
gap: var(--space-4);
|
|
1146
1147
|
width: 154px;
|
|
1147
|
-
height: 32px;
|
|
1148
|
+
min-height: 32px;
|
|
1148
1149
|
padding: var(--space-4) var(--space-8) var(--space-4) var(--space-12);
|
|
1149
1150
|
border: 1px solid var(--color-border-default);
|
|
1150
1151
|
border-radius: var(--radius-6);
|
|
@@ -1152,14 +1153,15 @@
|
|
|
1152
1153
|
color: var(--color-text-disabled);
|
|
1153
1154
|
font-family: inherit;
|
|
1154
1155
|
font-size: var(--type-trimmed-sm-size);
|
|
1155
|
-
line-height:
|
|
1156
|
+
line-height: 1.15;
|
|
1156
1157
|
font-weight: var(--font-weight-bold);
|
|
1158
|
+
text-align: left;
|
|
1157
1159
|
cursor: pointer;
|
|
1158
1160
|
}
|
|
1159
|
-
.
|
|
1161
|
+
._reasonSet_j1rbn_150 {
|
|
1160
1162
|
color: var(--color-text-default);
|
|
1161
1163
|
}
|
|
1162
|
-
.
|
|
1164
|
+
._reason_j1rbn_130:focus-visible {
|
|
1163
1165
|
outline: none;
|
|
1164
1166
|
box-shadow: var(--focus-ring);
|
|
1165
1167
|
}
|
|
@@ -1580,7 +1582,7 @@
|
|
|
1580
1582
|
._done_2uqhz_107 {
|
|
1581
1583
|
border-color: var(--color-surface-max);
|
|
1582
1584
|
}
|
|
1583
|
-
.
|
|
1585
|
+
._badge_1w0zn_6 {
|
|
1584
1586
|
display: inline-flex;
|
|
1585
1587
|
align-items: center;
|
|
1586
1588
|
justify-content: center;
|
|
@@ -1595,15 +1597,15 @@
|
|
|
1595
1597
|
text-transform: uppercase;
|
|
1596
1598
|
white-space: nowrap;
|
|
1597
1599
|
}
|
|
1598
|
-
.
|
|
1600
|
+
._progress_1w0zn_22 {
|
|
1599
1601
|
background: var(--color-state-surface-warning-soft);
|
|
1600
1602
|
color: var(--color-state-text-warning);
|
|
1601
1603
|
}
|
|
1602
|
-
.
|
|
1604
|
+
._delivered_1w0zn_27 {
|
|
1603
1605
|
background: var(--color-state-surface-success-soft);
|
|
1604
1606
|
color: var(--color-state-text-success);
|
|
1605
1607
|
}
|
|
1606
|
-
.
|
|
1608
|
+
._critical_1w0zn_36 {
|
|
1607
1609
|
background: var(--color-state-surface-critical-soft);
|
|
1608
1610
|
color: var(--color-state-text-critical);
|
|
1609
1611
|
}
|
package/dist/styles.css
CHANGED
|
@@ -1056,38 +1056,38 @@
|
|
|
1056
1056
|
text-decoration: line-through;
|
|
1057
1057
|
font-variant-numeric: tabular-nums;
|
|
1058
1058
|
}
|
|
1059
|
-
.
|
|
1059
|
+
._page_j1rbn_7 {
|
|
1060
1060
|
display: flex;
|
|
1061
1061
|
flex-direction: column;
|
|
1062
1062
|
gap: var(--space-24);
|
|
1063
1063
|
padding: var(--space-20) var(--space-16);
|
|
1064
1064
|
background: var(--color-surface-default);
|
|
1065
1065
|
}
|
|
1066
|
-
.
|
|
1066
|
+
._titles_j1rbn_15 {
|
|
1067
1067
|
display: flex;
|
|
1068
1068
|
flex-direction: column;
|
|
1069
1069
|
gap: var(--space-8);
|
|
1070
1070
|
}
|
|
1071
|
-
.
|
|
1071
|
+
._title_j1rbn_15 {
|
|
1072
1072
|
margin: 0;
|
|
1073
1073
|
font-size: var(--type-heading-md-size);
|
|
1074
1074
|
line-height: 1.32;
|
|
1075
1075
|
font-weight: var(--font-weight-bold);
|
|
1076
1076
|
color: var(--color-text-default);
|
|
1077
1077
|
}
|
|
1078
|
-
.
|
|
1078
|
+
._subtitle_j1rbn_30 {
|
|
1079
1079
|
font-size: var(--type-trimmed-sm-size);
|
|
1080
1080
|
line-height: 10px;
|
|
1081
1081
|
padding: 5px 0;
|
|
1082
1082
|
margin: -5px 0;
|
|
1083
1083
|
color: var(--color-text-subtle);
|
|
1084
1084
|
}
|
|
1085
|
-
.
|
|
1085
|
+
._list_j1rbn_38 {
|
|
1086
1086
|
display: flex;
|
|
1087
1087
|
flex-direction: column;
|
|
1088
1088
|
gap: var(--space-12);
|
|
1089
1089
|
}
|
|
1090
|
-
.
|
|
1090
|
+
._card_j1rbn_48 {
|
|
1091
1091
|
display: flex;
|
|
1092
1092
|
align-items: flex-start;
|
|
1093
1093
|
gap: var(--space-12);
|
|
@@ -1095,7 +1095,7 @@
|
|
|
1095
1095
|
border-radius: var(--radius-18);
|
|
1096
1096
|
background: var(--color-surface-soft);
|
|
1097
1097
|
}
|
|
1098
|
-
.
|
|
1098
|
+
._checkSlot_j1rbn_61 {
|
|
1099
1099
|
display: inline-flex;
|
|
1100
1100
|
align-items: flex-start;
|
|
1101
1101
|
flex-shrink: 0;
|
|
@@ -1105,12 +1105,12 @@
|
|
|
1105
1105
|
color: var(--color-surface-max);
|
|
1106
1106
|
cursor: pointer;
|
|
1107
1107
|
}
|
|
1108
|
-
.
|
|
1108
|
+
._checkSlot_j1rbn_61:focus-visible {
|
|
1109
1109
|
outline: none;
|
|
1110
1110
|
box-shadow: var(--focus-ring);
|
|
1111
1111
|
border-radius: var(--radius-4);
|
|
1112
1112
|
}
|
|
1113
|
-
.
|
|
1113
|
+
._check_j1rbn_61 {
|
|
1114
1114
|
position: relative;
|
|
1115
1115
|
display: inline-flex;
|
|
1116
1116
|
align-items: center;
|
|
@@ -1118,7 +1118,7 @@
|
|
|
1118
1118
|
width: 24px;
|
|
1119
1119
|
height: 24px;
|
|
1120
1120
|
}
|
|
1121
|
-
.
|
|
1121
|
+
._check_j1rbn_61::before {
|
|
1122
1122
|
content: "";
|
|
1123
1123
|
position: absolute;
|
|
1124
1124
|
width: 20px;
|
|
@@ -1126,25 +1126,26 @@
|
|
|
1126
1126
|
border: 1px solid var(--color-border-default);
|
|
1127
1127
|
border-radius: var(--radius-full);
|
|
1128
1128
|
}
|
|
1129
|
-
.
|
|
1129
|
+
._checkSlot_j1rbn_61[aria-checked=true] ._check_j1rbn_61::before {
|
|
1130
1130
|
border-color: transparent;
|
|
1131
1131
|
}
|
|
1132
|
-
.
|
|
1132
|
+
._check_j1rbn_61 svg {
|
|
1133
1133
|
position: relative;
|
|
1134
1134
|
}
|
|
1135
|
-
.
|
|
1135
|
+
._row_j1rbn_105 {
|
|
1136
1136
|
display: flex;
|
|
1137
1137
|
flex-direction: column;
|
|
1138
1138
|
gap: var(--space-12);
|
|
1139
1139
|
flex: 1 1 0;
|
|
1140
1140
|
min-width: 0;
|
|
1141
1141
|
}
|
|
1142
|
-
.
|
|
1142
|
+
._reason_j1rbn_130 {
|
|
1143
1143
|
display: inline-flex;
|
|
1144
1144
|
align-items: center;
|
|
1145
1145
|
justify-content: space-between;
|
|
1146
|
+
gap: var(--space-4);
|
|
1146
1147
|
width: 154px;
|
|
1147
|
-
height: 32px;
|
|
1148
|
+
min-height: 32px;
|
|
1148
1149
|
padding: var(--space-4) var(--space-8) var(--space-4) var(--space-12);
|
|
1149
1150
|
border: 1px solid var(--color-border-default);
|
|
1150
1151
|
border-radius: var(--radius-6);
|
|
@@ -1152,14 +1153,15 @@
|
|
|
1152
1153
|
color: var(--color-text-disabled);
|
|
1153
1154
|
font-family: inherit;
|
|
1154
1155
|
font-size: var(--type-trimmed-sm-size);
|
|
1155
|
-
line-height:
|
|
1156
|
+
line-height: 1.15;
|
|
1156
1157
|
font-weight: var(--font-weight-bold);
|
|
1158
|
+
text-align: left;
|
|
1157
1159
|
cursor: pointer;
|
|
1158
1160
|
}
|
|
1159
|
-
.
|
|
1161
|
+
._reasonSet_j1rbn_150 {
|
|
1160
1162
|
color: var(--color-text-default);
|
|
1161
1163
|
}
|
|
1162
|
-
.
|
|
1164
|
+
._reason_j1rbn_130:focus-visible {
|
|
1163
1165
|
outline: none;
|
|
1164
1166
|
box-shadow: var(--focus-ring);
|
|
1165
1167
|
}
|
|
@@ -1580,7 +1582,7 @@
|
|
|
1580
1582
|
._done_2uqhz_107 {
|
|
1581
1583
|
border-color: var(--color-surface-max);
|
|
1582
1584
|
}
|
|
1583
|
-
.
|
|
1585
|
+
._badge_1w0zn_6 {
|
|
1584
1586
|
display: inline-flex;
|
|
1585
1587
|
align-items: center;
|
|
1586
1588
|
justify-content: center;
|
|
@@ -1595,15 +1597,15 @@
|
|
|
1595
1597
|
text-transform: uppercase;
|
|
1596
1598
|
white-space: nowrap;
|
|
1597
1599
|
}
|
|
1598
|
-
.
|
|
1600
|
+
._progress_1w0zn_22 {
|
|
1599
1601
|
background: var(--color-state-surface-warning-soft);
|
|
1600
1602
|
color: var(--color-state-text-warning);
|
|
1601
1603
|
}
|
|
1602
|
-
.
|
|
1604
|
+
._delivered_1w0zn_27 {
|
|
1603
1605
|
background: var(--color-state-surface-success-soft);
|
|
1604
1606
|
color: var(--color-state-text-success);
|
|
1605
1607
|
}
|
|
1606
|
-
.
|
|
1608
|
+
._critical_1w0zn_36 {
|
|
1607
1609
|
background: var(--color-state-surface-critical-soft);
|
|
1608
1610
|
color: var(--color-state-text-critical);
|
|
1609
1611
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nok-integration/storefront-react",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.37",
|
|
4
4
|
"description": "Mountable React storefront components: catalogue, product detail and cart, mounted directly into a host DOM tree. No iframe.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|