krl-alfred 2.20.2 → 2.20.4
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/components/Checkbox/Checkbox.js +12 -1
- package/dist/components/Checkbox/Checkbox.styled.d.ts +5 -1
- package/dist/components/Checkbox/Checkbox.styled.js +32 -28
- package/dist/components/DescriptionCard/DescriptionCard.d.ts +1 -1
- package/dist/components/DescriptionCard/DescriptionCard.js +19 -2
- package/dist/components/DescriptionCard/DescriptionCard.styled.d.ts +25 -1
- package/dist/components/DescriptionCard/DescriptionCard.styled.js +50 -21
- package/dist/components/DescriptionCard/props.d.ts +27 -0
- package/dist/components/DescriptionCard/props.js +8 -1
- package/dist/components/DescriptionCard/stories/DescriptionCard.stories.d.ts +7 -1
- package/dist/components/DescriptionCard/stories/DescriptionCard.stories.js +45 -2
- package/dist/components/Icon/iconList/Subcategory.d.ts +3 -0
- package/dist/components/Icon/iconList/Subcategory.js +40 -0
- package/dist/components/Icon/iconList/index.d.ts +5 -1
- package/dist/components/Icon/iconList/index.js +9 -3
- package/dist/components/ProductCardVertical/ProductCardVertical.d.ts +1 -1
- package/dist/components/ProductCardVertical/ProductCardVertical.js +4 -2
- package/dist/components/ProductCardVertical/ProductCardVertical.styled.js +18 -16
- package/dist/components/ProductCardVertical/props.d.ts +4 -0
- package/dist/components/ProductCardVertical/props.js +2 -0
- package/dist/components/ProductCardVertical/stories/ProductCardVertical.stories.d.ts +101 -1
- package/dist/components/ProductCardVertical/stories/ProductCardVertical.stories.js +15 -1
- package/dist/components/ShoppingCartProduct/ShoppingCartProduct.d.ts +1 -1
- package/dist/components/ShoppingCartProduct/ShoppingCartProduct.js +6 -3
- package/dist/components/ShoppingCartProduct/ShoppingCartProduct.styled.d.ts +9 -0
- package/dist/components/ShoppingCartProduct/ShoppingCartProduct.styled.js +12 -3
- package/dist/components/ShoppingCartProduct/props.d.ts +10 -1
- package/dist/components/ShoppingCartProduct/props.js +8 -0
- package/dist/components/ShoppingCartProduct/stories/ShoppingCartProduct.stories.d.ts +165 -0
- package/dist/components/ShoppingCartProduct/stories/ShoppingCartProduct.stories.js +25 -2
- package/package.json +1 -1
|
@@ -416,3 +416,168 @@ export declare const InsuranceType2PriceLoading: {
|
|
|
416
416
|
insuranceTooltipWidth: string;
|
|
417
417
|
};
|
|
418
418
|
};
|
|
419
|
+
export declare const UpfrontAddonWithDiscount: {
|
|
420
|
+
render: (args: any) => React.JSX.Element;
|
|
421
|
+
args: {
|
|
422
|
+
image: React.JSX.Element;
|
|
423
|
+
upfrontAddonDiscountBadge: string;
|
|
424
|
+
upfrontAddonOldPrice: string;
|
|
425
|
+
title: string;
|
|
426
|
+
price: string;
|
|
427
|
+
priceSm: string;
|
|
428
|
+
period: string;
|
|
429
|
+
deliveryText: string;
|
|
430
|
+
deliveryDangerText: any;
|
|
431
|
+
discountRate: number;
|
|
432
|
+
oldPrice: any;
|
|
433
|
+
oldPriceSm: any;
|
|
434
|
+
oldPricePeriod: any;
|
|
435
|
+
hasInsurance: boolean;
|
|
436
|
+
insuranceType: number;
|
|
437
|
+
upfrontAddonTitle: string;
|
|
438
|
+
upfrontAddonSummaryText: string;
|
|
439
|
+
upfrontAddonPrice: string;
|
|
440
|
+
component: ({ children }: any) => React.JSX.Element;
|
|
441
|
+
hasRemove: boolean;
|
|
442
|
+
hasInsuranceTooltipClickAction: boolean;
|
|
443
|
+
quantity: string;
|
|
444
|
+
onRemove: () => void;
|
|
445
|
+
onIncrement: () => void;
|
|
446
|
+
onDecrement: () => void;
|
|
447
|
+
toggleInsurance: () => void;
|
|
448
|
+
hasError: boolean;
|
|
449
|
+
hasLoading: boolean;
|
|
450
|
+
errorText: string;
|
|
451
|
+
insuranceText: string;
|
|
452
|
+
insurancePrice: string;
|
|
453
|
+
insuranceQuantity: string;
|
|
454
|
+
hasInsuranceTooltip: boolean;
|
|
455
|
+
hasDisableActions: boolean;
|
|
456
|
+
insuranceTooltipText: React.JSX.Element;
|
|
457
|
+
insuranceTooltipWidth: string;
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
export declare const UpfrontAddonSimple: {
|
|
461
|
+
render: (args: any) => React.JSX.Element;
|
|
462
|
+
args: {
|
|
463
|
+
image: React.JSX.Element;
|
|
464
|
+
title: string;
|
|
465
|
+
price: string;
|
|
466
|
+
priceSm: string;
|
|
467
|
+
period: string;
|
|
468
|
+
deliveryText: string;
|
|
469
|
+
deliveryDangerText: any;
|
|
470
|
+
discountRate: number;
|
|
471
|
+
oldPrice: any;
|
|
472
|
+
oldPriceSm: any;
|
|
473
|
+
oldPricePeriod: any;
|
|
474
|
+
hasInsurance: boolean;
|
|
475
|
+
insuranceType: number;
|
|
476
|
+
upfrontAddonTitle: string;
|
|
477
|
+
upfrontAddonSummaryText: string;
|
|
478
|
+
upfrontAddonPrice: string;
|
|
479
|
+
component: ({ children }: any) => React.JSX.Element;
|
|
480
|
+
hasRemove: boolean;
|
|
481
|
+
hasInsuranceTooltipClickAction: boolean;
|
|
482
|
+
quantity: string;
|
|
483
|
+
onRemove: () => void;
|
|
484
|
+
onIncrement: () => void;
|
|
485
|
+
onDecrement: () => void;
|
|
486
|
+
toggleInsurance: () => void;
|
|
487
|
+
hasError: boolean;
|
|
488
|
+
hasLoading: boolean;
|
|
489
|
+
errorText: string;
|
|
490
|
+
insuranceText: string;
|
|
491
|
+
insurancePrice: string;
|
|
492
|
+
insuranceQuantity: string;
|
|
493
|
+
hasInsuranceTooltip: boolean;
|
|
494
|
+
hasDisableActions: boolean;
|
|
495
|
+
insuranceTooltipText: React.JSX.Element;
|
|
496
|
+
insuranceTooltipWidth: string;
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
export declare const UpfrontAddonChecked: {
|
|
500
|
+
render: (args: any) => React.JSX.Element;
|
|
501
|
+
args: {
|
|
502
|
+
image: React.JSX.Element;
|
|
503
|
+
upfrontAddonChecked: boolean;
|
|
504
|
+
upfrontAddonDiscountBadge: string;
|
|
505
|
+
upfrontAddonOldPrice: string;
|
|
506
|
+
title: string;
|
|
507
|
+
price: string;
|
|
508
|
+
priceSm: string;
|
|
509
|
+
period: string;
|
|
510
|
+
deliveryText: string;
|
|
511
|
+
deliveryDangerText: any;
|
|
512
|
+
discountRate: number;
|
|
513
|
+
oldPrice: any;
|
|
514
|
+
oldPriceSm: any;
|
|
515
|
+
oldPricePeriod: any;
|
|
516
|
+
hasInsurance: boolean;
|
|
517
|
+
insuranceType: number;
|
|
518
|
+
upfrontAddonTitle: string;
|
|
519
|
+
upfrontAddonSummaryText: string;
|
|
520
|
+
upfrontAddonPrice: string;
|
|
521
|
+
component: ({ children }: any) => React.JSX.Element;
|
|
522
|
+
hasRemove: boolean;
|
|
523
|
+
hasInsuranceTooltipClickAction: boolean;
|
|
524
|
+
quantity: string;
|
|
525
|
+
onRemove: () => void;
|
|
526
|
+
onIncrement: () => void;
|
|
527
|
+
onDecrement: () => void;
|
|
528
|
+
toggleInsurance: () => void;
|
|
529
|
+
hasError: boolean;
|
|
530
|
+
hasLoading: boolean;
|
|
531
|
+
errorText: string;
|
|
532
|
+
insuranceText: string;
|
|
533
|
+
insurancePrice: string;
|
|
534
|
+
insuranceQuantity: string;
|
|
535
|
+
hasInsuranceTooltip: boolean;
|
|
536
|
+
hasDisableActions: boolean;
|
|
537
|
+
insuranceTooltipText: React.JSX.Element;
|
|
538
|
+
insuranceTooltipWidth: string;
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
export declare const UpfrontAddonCheckedLoading: {
|
|
542
|
+
render: (args: any) => React.JSX.Element;
|
|
543
|
+
args: {
|
|
544
|
+
image: React.JSX.Element;
|
|
545
|
+
upfrontAddonChecked: boolean;
|
|
546
|
+
upfrontAddonDiscountBadge: string;
|
|
547
|
+
upfrontAddonOldPrice: string;
|
|
548
|
+
hasUpfrontAddonPriceLoading: boolean;
|
|
549
|
+
title: string;
|
|
550
|
+
price: string;
|
|
551
|
+
priceSm: string;
|
|
552
|
+
period: string;
|
|
553
|
+
deliveryText: string;
|
|
554
|
+
deliveryDangerText: any;
|
|
555
|
+
discountRate: number;
|
|
556
|
+
oldPrice: any;
|
|
557
|
+
oldPriceSm: any;
|
|
558
|
+
oldPricePeriod: any;
|
|
559
|
+
hasInsurance: boolean;
|
|
560
|
+
insuranceType: number;
|
|
561
|
+
upfrontAddonTitle: string;
|
|
562
|
+
upfrontAddonSummaryText: string;
|
|
563
|
+
upfrontAddonPrice: string;
|
|
564
|
+
component: ({ children }: any) => React.JSX.Element;
|
|
565
|
+
hasRemove: boolean;
|
|
566
|
+
hasInsuranceTooltipClickAction: boolean;
|
|
567
|
+
quantity: string;
|
|
568
|
+
onRemove: () => void;
|
|
569
|
+
onIncrement: () => void;
|
|
570
|
+
onDecrement: () => void;
|
|
571
|
+
toggleInsurance: () => void;
|
|
572
|
+
hasError: boolean;
|
|
573
|
+
hasLoading: boolean;
|
|
574
|
+
errorText: string;
|
|
575
|
+
insuranceText: string;
|
|
576
|
+
insurancePrice: string;
|
|
577
|
+
insuranceQuantity: string;
|
|
578
|
+
hasInsuranceTooltip: boolean;
|
|
579
|
+
hasDisableActions: boolean;
|
|
580
|
+
insuranceTooltipText: React.JSX.Element;
|
|
581
|
+
insuranceTooltipWidth: string;
|
|
582
|
+
};
|
|
583
|
+
};
|
|
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.InsuranceType2PriceLoading = exports.InsuranceType2 = exports.Minimal = exports.WithInsurancePrice = exports.DisabledActions = exports.WithoutDiscount = exports.WithError = exports.Loading = exports.WithoutInsurance = exports.WithRemove = exports.Default = void 0;
|
|
17
|
+
exports.UpfrontAddonCheckedLoading = exports.UpfrontAddonChecked = exports.UpfrontAddonSimple = exports.UpfrontAddonWithDiscount = exports.InsuranceType2PriceLoading = exports.InsuranceType2 = exports.Minimal = exports.WithInsurancePrice = exports.DisabledActions = exports.WithoutDiscount = exports.WithError = exports.Loading = exports.WithoutInsurance = exports.WithRemove = exports.Default = void 0;
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
19
|
var react_1 = require("react");
|
|
20
20
|
var ShoppingCartProduct_1 = __importDefault(require("../ShoppingCartProduct"));
|
|
@@ -61,7 +61,7 @@ exports.default = {
|
|
|
61
61
|
argTypes: {
|
|
62
62
|
hasRemove: { control: 'boolean' },
|
|
63
63
|
hasInsurance: { control: 'boolean' },
|
|
64
|
-
insuranceType: { control: 'radio', options: [1, 2] },
|
|
64
|
+
insuranceType: { control: 'radio', options: [1, 2, 3] },
|
|
65
65
|
hasLoading: { control: 'boolean' },
|
|
66
66
|
hasError: { control: 'boolean' },
|
|
67
67
|
hasDisableActions: { control: 'boolean' },
|
|
@@ -106,3 +106,26 @@ exports.InsuranceType2PriceLoading = {
|
|
|
106
106
|
render: InsuranceType2WithState,
|
|
107
107
|
args: __assign(__assign({}, defaultArgs), { title: "Phone 17 Pro Max - Abis", price: "7.000", priceSm: " TL", period: "ay 12 ay boyunca", hasInsurance: true, insuranceType: 2, hasInsuranceOption1PriceLoading: true, insuranceOption1Title: "Hasar güvencesi ekle", insuranceOption1Description: "Troy Artı servislerinde 1 kez ücretsiz cam kırılması onarımı, tüm servis sürecinde ikame cihaz ve öncelikli servis desteği. Unutma, kılcal çizikler hasardan sayılmaz.", insuranceOption2Title: "Hasar güvencesi istemiyorum", insuranceOption2Description: "Hasar güvencesi eklemediğinde yalnızca 5.000 TL'ye kadar olan hasarlar için %100 hasar güvencesi bulunur." }),
|
|
108
108
|
};
|
|
109
|
+
var coffeeImage = (0, jsx_runtime_1.jsx)("img", { src: "https://kiralarsin.s3.eu-central-1.amazonaws.com/products/4MOMSMAMAROOANAKUC_1.jpg", height: "64px", alt: "\u00C7ekirdek kahve" });
|
|
110
|
+
var upfrontAddonBaseArgs = __assign(__assign({}, defaultArgs), { title: "Çekirdek kahve", price: "520", priceSm: " TL", period: "İki ayda bir - 12 ay boyunca", deliveryText: "Tahmini kargoya teslim: 1-2 gün", deliveryDangerText: null, discountRate: 0, oldPrice: null, oldPriceSm: null, oldPricePeriod: null, hasInsurance: true, insuranceType: 3, upfrontAddonTitle: "Tek seferde öde", upfrontAddonSummaryText: "6 sipariş toplamı", upfrontAddonPrice: "2.800 TL" });
|
|
111
|
+
var UpfrontAddonWithState = function (args) {
|
|
112
|
+
var _a;
|
|
113
|
+
var _b = (0, react_1.useState)((_a = args.upfrontAddonChecked) !== null && _a !== void 0 ? _a : false), checked = _b[0], setChecked = _b[1];
|
|
114
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: '368px' } }, { children: (0, jsx_runtime_1.jsx)(ShoppingCartProduct_1.default, __assign({}, args, { upfrontAddonChecked: checked, onUpfrontAddonChange: function () { return setChecked(!checked); } })) })));
|
|
115
|
+
};
|
|
116
|
+
exports.UpfrontAddonWithDiscount = {
|
|
117
|
+
render: UpfrontAddonWithState,
|
|
118
|
+
args: __assign(__assign({}, upfrontAddonBaseArgs), { image: coffeeImage, upfrontAddonDiscountBadge: "%10 indirim", upfrontAddonOldPrice: "3.120 TL" }),
|
|
119
|
+
};
|
|
120
|
+
exports.UpfrontAddonSimple = {
|
|
121
|
+
render: UpfrontAddonWithState,
|
|
122
|
+
args: __assign(__assign({}, upfrontAddonBaseArgs), { image: coffeeImage }),
|
|
123
|
+
};
|
|
124
|
+
exports.UpfrontAddonChecked = {
|
|
125
|
+
render: UpfrontAddonWithState,
|
|
126
|
+
args: __assign(__assign({}, upfrontAddonBaseArgs), { image: coffeeImage, upfrontAddonChecked: true, upfrontAddonDiscountBadge: "%10 indirim", upfrontAddonOldPrice: "3.120 TL" }),
|
|
127
|
+
};
|
|
128
|
+
exports.UpfrontAddonCheckedLoading = {
|
|
129
|
+
render: UpfrontAddonWithState,
|
|
130
|
+
args: __assign(__assign({}, upfrontAddonBaseArgs), { image: coffeeImage, upfrontAddonChecked: true, upfrontAddonDiscountBadge: "%10 indirim", upfrontAddonOldPrice: "3.120 TL", hasUpfrontAddonPriceLoading: true }),
|
|
131
|
+
};
|