krl-alfred 2.17.17 → 2.17.19
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/CategoryMenu/CategoryMenu.styled.js +1 -1
- package/dist/components/CategoryMenu/stories/CategoryMenu.stories.d.ts +8 -66
- package/dist/components/Icon/iconList/DownloadMini.d.ts +2 -0
- package/dist/components/Icon/iconList/DownloadMini.js +40 -0
- package/dist/components/Icon/iconList/index.d.ts +5 -1
- package/dist/components/Icon/iconList/index.js +10 -4
- package/dist/components/OptionMenu/stories/OptionMenu.stories.d.ts +5 -28
- package/dist/components/ProductCardHorizontal/ProductCardHorizontal.js +1 -1
- package/dist/components/ProductCardHorizontal/stories/ProductCardHorizontal.stories.d.ts +6 -1
- package/dist/components/ProductCardHorizontal/stories/ProductCardHorizontal.stories.js +5 -2
- package/dist/components/SearchBox/SearchBox.js +1 -1
- package/dist/components/StepSlider/StepSlider.js +1 -1
- package/dist/components/StepSlider/StepSlider.styled.js +2 -2
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +3 -3
- package/dist/components/Tooltip/props.d.ts +1 -0
- package/dist/components/Tooltip/props.js +1 -0
- package/dist/jsons/categories.d.ts +8 -66
- package/dist/jsons/categories.js +227 -257
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ exports.SubMenu = exports.CategoryItemButtonTitle = exports.CategoryItemButtonBa
|
|
|
31
31
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
32
32
|
exports.CategoryMenuWrapper = styled_components_1.default.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n padding:0;\n margin: 12.5px auto;\n max-width: 1050px;\n a {\n text-decoration:none;\n &:not([href]){\n cursor: initial;\n *{\n cursor: initial;\n }\n }\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n padding:0;\n margin: 12.5px auto;\n max-width: 1050px;\n a {\n text-decoration:none;\n &:not([href]){\n cursor: initial;\n *{\n cursor: initial;\n }\n }\n }\n"])));
|
|
33
33
|
var hoverAndActive = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: var(--dark);\n &:before{\n border-color: var(--grey-10);\n box-shadow: 0 6px 30px 0 var(--box-shadow-color);\n color: var(--dark);\n }\n"], ["\n color: var(--dark);\n &:before{\n border-color: var(--grey-10);\n box-shadow: 0 6px 30px 0 var(--box-shadow-color);\n color: var(--dark);\n }\n"])));
|
|
34
|
-
exports.CategoryItem = styled_components_1.default.li(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: block;\n position: relative;\n margin: 0;\n padding-bottom: 8px;\n padding-top: 8px;\n &:not(:last-child):not(:nth-last-child(2)){\n path, circle, rect {\n color : var(--dark-opacity-75);\n }\n }\n &:hover{\n &:not(:last-child):not(:nth-last-child(2)){\n path , circle, rect {\n color : var(--dark);\n }\n }\n > ul{\n opacity: 1;\n visibility: visible;\n transform: translateY(0);\n transition-delay: 0.3s;\n }\n .componentWrapper {\n > span{\n ", "\n }\n }\n }\n &:last-child , &:nth-last-child(2){\n ul{\n left: auto;\n right: 0;\n }\n }\n ", "\n ", "\n"], ["\n display: block;\n position: relative;\n margin: 0;\n padding-bottom: 8px;\n padding-top: 8px;\n &:not(:last-child):not(:nth-last-child(2)){\n path, circle, rect {\n color : var(--dark-opacity-75);\n }\n }\n &:hover{\n &:not(:last-child):not(:nth-last-child(2)){\n path , circle, rect {\n color : var(--dark);\n }\n }\n > ul{\n opacity: 1;\n visibility: visible;\n transform: translateY(0);\n transition-delay: 0.3s;\n }\n .componentWrapper {\n > span{\n ", "\n }\n }\n }\n &:last-child , &:nth-last-child(2){\n ul{\n left: auto;\n right: 0;\n }\n }\n ", "\n ", "\n"])), hoverAndActive, function (props) { return props.$isActiveCategory ? "\n .componentWrapper > span{\n ".concat(hoverAndActive, "\n }\n ") : ""; }, function (props) { return props.$hasCustomItem ? "\n display: flex;\n align-items: center;\n justify-content: center;\n &:before{\n content: '';\n background-color:var(--grey-10);\n height: 39px;\n width: 2px;\n display: block;\n vertical-align: middle;\n border-radius: 8px;\n margin-right: 15px;\n }\n " : ""; });
|
|
34
|
+
exports.CategoryItem = styled_components_1.default.li(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: block;\n position: relative;\n margin: 0;\n padding-bottom: 8px;\n padding-top: 8px;\n &:not(:last-child):not(:nth-last-child(2)){\n path, circle, rect {\n color : var(--dark-opacity-75);\n }\n }\n &:hover{\n &:not(:last-child):not(:nth-last-child(2)){\n path , circle, rect {\n color : var(--dark);\n }\n }\n > ul{\n opacity: 1;\n visibility: visible;\n transform: translateY(0);\n transition-delay: 0.3s;\n }\n .componentWrapper {\n > span{\n ", "\n }\n }\n }\n &:last-child , &:nth-last-child(2){\n ul{\n left: auto;\n right: 0;\n }\n }\n ", "\n ", "\n"], ["\n display: block;\n position: relative;\n margin: 0;\n padding-bottom: 8px;\n padding-top: 8px;\n &:not(:last-child):not(:nth-last-child(2)){\n path, circle, rect {\n color : var(--dark-opacity-75);\n }\n }\n &:hover{\n &:not(:last-child):not(:nth-last-child(2)){\n path , circle, rect {\n color : var(--dark);\n }\n }\n > ul{\n opacity: 1;\n visibility: visible;\n transform: translateY(0);\n transition-delay: 0.3s;\n }\n .componentWrapper {\n > span{\n ", "\n }\n }\n }\n &:last-child , &:nth-last-child(2){\n ul{\n left: auto;\n right: 0;\n }\n }\n ", "\n ", "\n"])), hoverAndActive, function (props) { return props.$isActiveCategory ? "\n .componentWrapper > span{\n ".concat(hoverAndActive, "\n }\n ") : ""; }, function (props) { return props.$hasCustomItem ? "\n display: flex;\n align-items: center;\n justify-content: center;\n &:before{\n content: '';\n background-color:var(--grey-10);\n height: 39px;\n width: 2px;\n display: block;\n vertical-align: middle;\n border-radius: 8px;\n margin-right: 15px;\n margin-left: 15px;\n }\n " : ""; });
|
|
35
35
|
exports.CategoryItemButtonInner = styled_components_1.default.span(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n text-decoration: none;\n padding: 12px 16px;\n color: var(--dark-opacity-75);\n margin: 0;\n transition: all 0.2s ease-in-out;\n text-align: center;\n outline: none;\n display: block;\n position: relative;\n border: 0;\n background: transparent;\n outline: 0;\n width: 100%;\n font-family:inherit;\n cursor:pointer;\n box-sizing: border-box;\n &:before{\n content: \"\";\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n border: 1px solid transparent;\n color: var(--dark-opacity-75);\n background-color: transparent;\n border-radius: 0.5rem;\n z-index: -1;\n transition: all 0.2s ease-in-out;\n }\n"], ["\n text-decoration: none;\n padding: 12px 16px;\n color: var(--dark-opacity-75);\n margin: 0;\n transition: all 0.2s ease-in-out;\n text-align: center;\n outline: none;\n display: block;\n position: relative;\n border: 0;\n background: transparent;\n outline: 0;\n width: 100%;\n font-family:inherit;\n cursor:pointer;\n box-sizing: border-box;\n &:before{\n content: \"\";\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n border: 1px solid transparent;\n color: var(--dark-opacity-75);\n background-color: transparent;\n border-radius: 0.5rem;\n z-index: -1;\n transition: all 0.2s ease-in-out;\n }\n"])));
|
|
36
36
|
exports.CategoryItemButtonIcon = styled_components_1.default.span(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n @keyframes tada_category {\n 0% {\n transform: scaleX(1)\n }\n\n 10%,20% {\n transform: rotate(-2deg)\n }\n\n 30%,50%,70%,90% {\n transform: rotate(2deg)\n }\n\n 40%,60%,80% {\n transform: rotate(-2deg)\n }\n\n to {\n transform: scaleX(1)\n }\n }\n\n ", "\n height: 24px;\n display:flex;\n position: relative;\n align-items: center;\n justify-content: center;\n"], ["\n @keyframes tada_category {\n 0% {\n transform: scaleX(1)\n }\n\n 10%,20% {\n transform: rotate(-2deg)\n }\n\n 30%,50%,70%,90% {\n transform: rotate(2deg)\n }\n\n 40%,60%,80% {\n transform: rotate(-2deg)\n }\n\n to {\n transform: scaleX(1)\n }\n }\n\n ", "\n height: 24px;\n display:flex;\n position: relative;\n align-items: center;\n justify-content: center;\n"])), function (props) { return props.$hasAnimation ? "\n animation: tada_category 1.5s infinite;\n animation-iteration-count: 10;\n " : ""; });
|
|
37
37
|
exports.CategoryItemButtonBadge = styled_components_1.default.span(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font: var(--caption-bold-10-12);\n line-height: 17px;\n border-radius: 3px;\n background-color: var(--primary);\n color: white;\n padding: 0 0.5rem;\n display: inline-block;\n margin-top: 2px;\n"], ["\n font: var(--caption-bold-10-12);\n line-height: 17px;\n border-radius: 3px;\n background-color: var(--primary);\n color: white;\n padding: 0 0.5rem;\n display: inline-block;\n margin-top: 2px;\n"])));
|
|
@@ -24,22 +24,6 @@ export declare const Default: {
|
|
|
24
24
|
args: {
|
|
25
25
|
subMenuRowLength: number;
|
|
26
26
|
data: ({
|
|
27
|
-
id: number;
|
|
28
|
-
parentId: number;
|
|
29
|
-
name: string;
|
|
30
|
-
filterName: any;
|
|
31
|
-
isShowHeader: boolean;
|
|
32
|
-
slug: string;
|
|
33
|
-
productCount: number;
|
|
34
|
-
headerMediaUrl: any;
|
|
35
|
-
medias: any[];
|
|
36
|
-
icon: string;
|
|
37
|
-
children: any[];
|
|
38
|
-
isActive: boolean;
|
|
39
|
-
component?: undefined;
|
|
40
|
-
badgeText?: undefined;
|
|
41
|
-
hasCustomItem?: undefined;
|
|
42
|
-
} | {
|
|
43
27
|
id: number;
|
|
44
28
|
parentId: number;
|
|
45
29
|
name: string;
|
|
@@ -50,7 +34,7 @@ export declare const Default: {
|
|
|
50
34
|
headerMediaUrl: string;
|
|
51
35
|
medias: any[];
|
|
52
36
|
icon: string;
|
|
53
|
-
children:
|
|
37
|
+
children: {
|
|
54
38
|
id: number;
|
|
55
39
|
parentId: number;
|
|
56
40
|
name: string;
|
|
@@ -58,37 +42,13 @@ export declare const Default: {
|
|
|
58
42
|
isShowHeader: boolean;
|
|
59
43
|
slug: string;
|
|
60
44
|
productCount: number;
|
|
61
|
-
headerMediaUrl:
|
|
45
|
+
headerMediaUrl: string;
|
|
62
46
|
medias: any[];
|
|
63
|
-
children:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
filterName: any;
|
|
68
|
-
isShowHeader: boolean;
|
|
69
|
-
slug: string;
|
|
70
|
-
productCount: number;
|
|
71
|
-
headerMediaUrl: any;
|
|
72
|
-
medias: any[];
|
|
73
|
-
children: any[];
|
|
74
|
-
}[];
|
|
75
|
-
isSeeAll?: undefined;
|
|
76
|
-
} | {
|
|
77
|
-
id: number;
|
|
78
|
-
name: string;
|
|
79
|
-
isSeeAll: boolean;
|
|
80
|
-
slug: string;
|
|
81
|
-
parentId?: undefined;
|
|
82
|
-
filterName?: undefined;
|
|
83
|
-
isShowHeader?: undefined;
|
|
84
|
-
productCount?: undefined;
|
|
85
|
-
headerMediaUrl?: undefined;
|
|
86
|
-
medias?: undefined;
|
|
87
|
-
children?: undefined;
|
|
88
|
-
})[];
|
|
89
|
-
isActive?: undefined;
|
|
47
|
+
children: any[];
|
|
48
|
+
parent: any[];
|
|
49
|
+
}[];
|
|
50
|
+
parent: any[];
|
|
90
51
|
component?: undefined;
|
|
91
|
-
badgeText?: undefined;
|
|
92
52
|
hasCustomItem?: undefined;
|
|
93
53
|
} | {
|
|
94
54
|
id: number;
|
|
@@ -116,24 +76,7 @@ export declare const Default: {
|
|
|
116
76
|
medias: any[];
|
|
117
77
|
children: any[];
|
|
118
78
|
}[];
|
|
119
|
-
|
|
120
|
-
badgeText?: undefined;
|
|
121
|
-
hasCustomItem?: undefined;
|
|
122
|
-
} | {
|
|
123
|
-
id: number;
|
|
124
|
-
parentId: number;
|
|
125
|
-
name: string;
|
|
126
|
-
filterName: any;
|
|
127
|
-
isShowHeader: boolean;
|
|
128
|
-
slug: string;
|
|
129
|
-
productCount: number;
|
|
130
|
-
headerMediaUrl: any;
|
|
131
|
-
medias: any[];
|
|
132
|
-
icon: string;
|
|
133
|
-
children: any[];
|
|
134
|
-
badgeText: string;
|
|
135
|
-
isActive?: undefined;
|
|
136
|
-
component?: undefined;
|
|
79
|
+
parent?: undefined;
|
|
137
80
|
hasCustomItem?: undefined;
|
|
138
81
|
} | {
|
|
139
82
|
id: number;
|
|
@@ -148,9 +91,8 @@ export declare const Default: {
|
|
|
148
91
|
icon: string;
|
|
149
92
|
children: any[];
|
|
150
93
|
hasCustomItem: boolean;
|
|
151
|
-
|
|
94
|
+
parent?: undefined;
|
|
152
95
|
component?: undefined;
|
|
153
|
-
badgeText?: undefined;
|
|
154
96
|
})[];
|
|
155
97
|
};
|
|
156
98
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
|
+
var React = __importStar(require("react"));
|
|
39
|
+
var SvgDownloadMini = function (props) { return ((0, jsx_runtime_1.jsxs)("svg", __assign({ width: 17, height: 16, viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M8.58122 10.291L8.58122 2.26367", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M10.5254 8.33789L8.58139 10.2899L6.63739 8.33789", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M11.67 5.41797H12.292C13.6487 5.41797 14.748 6.5173 14.748 7.87464L14.748 11.1306C14.748 12.484 13.6514 13.5806 12.298 13.5806L4.87138 13.5806C3.51471 13.5806 2.41471 12.4806 2.41471 11.124L2.41471 7.8673C2.41471 6.51464 3.51205 5.41797 4.86471 5.41797H5.49271", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })] }))); };
|
|
40
|
+
exports.default = SvgDownloadMini;
|
|
@@ -251,6 +251,9 @@ export namespace iconList {
|
|
|
251
251
|
function Download({ ...props }: {
|
|
252
252
|
[x: string]: any;
|
|
253
253
|
}): import("react/jsx-runtime").JSX.Element;
|
|
254
|
+
function DownloadMini({ ...props }: {
|
|
255
|
+
[x: string]: any;
|
|
256
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
254
257
|
function Dublearrrowrightbig({ ...props }: {
|
|
255
258
|
[x: string]: any;
|
|
256
259
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -816,6 +819,7 @@ import { default as Dislike } from "./Dislike";
|
|
|
816
819
|
import { default as DislikeLg } from "./DislikeLg";
|
|
817
820
|
import { default as Document } from "./Document";
|
|
818
821
|
import { default as Download } from "./Download";
|
|
822
|
+
import { default as DownloadMini } from "./DownloadMini";
|
|
819
823
|
import { default as Dublearrrowrightbig } from "./Dublearrrowrightbig";
|
|
820
824
|
import { default as Edit } from "./Edit";
|
|
821
825
|
import { default as EditSquare } from "./EditSquare";
|
|
@@ -976,4 +980,4 @@ import { default as UserPlus } from "./UserPlus";
|
|
|
976
980
|
import { default as Wphk } from "./Wphk";
|
|
977
981
|
import { default as Youtubehk } from "./Youtubehk";
|
|
978
982
|
import { default as Youtubewithfooter } from "./Youtubewithfooter";
|
|
979
|
-
export { Activity, Announcement, ArrowDown, ArrowDownAnimate, ArrowDownBig, ArrowDownCircle, ArrowDownSquare, ArrowGoSmall, ArrowLeft, ArrowLeftAnimate, ArrowLeftBig, ArrowLeftCircle, ArrowLeftSquare, ArrowRight, ArrowRightAnimate, ArrowRightBig, ArrowRightCircle, ArrowRightSquare, ArrowShare, ArrowSharemini, ArrowSmallDown, ArrowSmallDownStroke, ArrowSmallLeft, ArrowSmallLeftStroke, ArrowSmallRight, ArrowSmallRightBackground, ArrowSmallRightStroke, ArrowSmallUp, ArrowUp, ArrowUpAnimate, ArrowUpBig, ArrowUpCircle, ArrowUpSquare, AskedQuestions, Baby, BackCargo2, BackCargosmall, Backcargo, Bag2, Bag, BagStar, Bookmark, Box, Buy, BuyXl, Calendar, CalenderArrowleftsmall, Calenderarrowrightsmall, Call, CallMissed, CallSilent, Calling, Camera, Campaign, CampaignColorful, CarbonNautral, Cargo, Cargo2, Category, Chart, Chat, CheckMark, CheckboxElementChecked, CheckboxElementDisabled, CheckboxElementInvalid, CheckboxElementUncheck, CihazTeslimAlindi, ClickOnclick, CloseMedium, CloseSmall, CloseSquare, Closebig, Completed, Copy, Danger, DarkBadge, Delete, DeleteSmall, Discount, Discovery, Dislike, DislikeLg, Document, Download, Dublearrrowrightbig, Edit, EditSquare, ElSatis, Facebook, Filter, Filter2, FilterDown, FilterSmall, FilterUp, Flash, Folder, Game, Gift, Graph, Heart, HeartLg, Hide, Home, House, Image, InfoCircle, InfoSquare, InfoSquareSmall, Instagram, InstagramNegative, Instagramwithfooter, Keyboard, KeyboardClose, Language2, Laptop, Like, LikeV1, Likesmall, Link, LinkSm, LinkedIn, Loading, LoadingDefault, Loadingsmall, Location, Lock, Login, Logout, MasterCard, Message, Minus, Money, MoreCircle, MoreSquare, NegativeBig, NegativeSmall, Notification, NotificationBigwith16, NotificationBigwith24, NotificationSmallwith16, NotificationSmallwith24, Operation, OrderProgressIcons, Paper, PaperDownload, PaperFail, PaperNegative, PaperPlus, PaperUpload, Password, Pause, PlusBig, PlusCircle, PlusSmall, PlusSquare, PriceTag, Profile, RadioButtonElementChecked, RadioButtonElementDisabled, RadioButtonElementInvalid, RadioButtonElementUnchecked, Rectangle, Sandwatch, Scan, Search, Searchsmall, Security, Send, Setting, SettingCircle, ShieldDone, ShieldFail, Show, ShufflePlay, SignLanguage, Star, StarCircle, Starfull, StarfullSmall, StarfullXSmall, Swap, SwitchPassive, Tamamlarsin, Tick, TickSquare, TicketStar, Ticket, TimeCircle, TimeSquare, Trash, Twitter, TwitterFilled, Twitterhk, Twitterwithfooter, Unlock, Upload, User2, User3, Valentine, Video, Visa, Voice, Voice2, VolumeDown, VolumeOff, VolumeOffSm, VolumeUp, VolumeUpSm, Wallet, Wallet2, Watch, WaveArrowDown, WaveArrowUp, Whatsapp, Work, Wp, Wpfooter, Youtube, CircleFilled, Clab1, ClabFilled, ClabHands, Dislikesmall, Dublearrowleftbig, Facebookhk, Facebookwithfooter, Grid, Instagramhk, Konfeti, Konfeti2, Linkedinhk, Linkedinwithfooter, List, Live, More, NewYear, Play, RotateRight, TextLoading, Tiktok, UserPlus, Wphk, Youtubehk, Youtubewithfooter };
|
|
983
|
+
export { Activity, Announcement, ArrowDown, ArrowDownAnimate, ArrowDownBig, ArrowDownCircle, ArrowDownSquare, ArrowGoSmall, ArrowLeft, ArrowLeftAnimate, ArrowLeftBig, ArrowLeftCircle, ArrowLeftSquare, ArrowRight, ArrowRightAnimate, ArrowRightBig, ArrowRightCircle, ArrowRightSquare, ArrowShare, ArrowSharemini, ArrowSmallDown, ArrowSmallDownStroke, ArrowSmallLeft, ArrowSmallLeftStroke, ArrowSmallRight, ArrowSmallRightBackground, ArrowSmallRightStroke, ArrowSmallUp, ArrowUp, ArrowUpAnimate, ArrowUpBig, ArrowUpCircle, ArrowUpSquare, AskedQuestions, Baby, BackCargo2, BackCargosmall, Backcargo, Bag2, Bag, BagStar, Bookmark, Box, Buy, BuyXl, Calendar, CalenderArrowleftsmall, Calenderarrowrightsmall, Call, CallMissed, CallSilent, Calling, Camera, Campaign, CampaignColorful, CarbonNautral, Cargo, Cargo2, Category, Chart, Chat, CheckMark, CheckboxElementChecked, CheckboxElementDisabled, CheckboxElementInvalid, CheckboxElementUncheck, CihazTeslimAlindi, ClickOnclick, CloseMedium, CloseSmall, CloseSquare, Closebig, Completed, Copy, Danger, DarkBadge, Delete, DeleteSmall, Discount, Discovery, Dislike, DislikeLg, Document, Download, DownloadMini, Dublearrrowrightbig, Edit, EditSquare, ElSatis, Facebook, Filter, Filter2, FilterDown, FilterSmall, FilterUp, Flash, Folder, Game, Gift, Graph, Heart, HeartLg, Hide, Home, House, Image, InfoCircle, InfoSquare, InfoSquareSmall, Instagram, InstagramNegative, Instagramwithfooter, Keyboard, KeyboardClose, Language2, Laptop, Like, LikeV1, Likesmall, Link, LinkSm, LinkedIn, Loading, LoadingDefault, Loadingsmall, Location, Lock, Login, Logout, MasterCard, Message, Minus, Money, MoreCircle, MoreSquare, NegativeBig, NegativeSmall, Notification, NotificationBigwith16, NotificationBigwith24, NotificationSmallwith16, NotificationSmallwith24, Operation, OrderProgressIcons, Paper, PaperDownload, PaperFail, PaperNegative, PaperPlus, PaperUpload, Password, Pause, PlusBig, PlusCircle, PlusSmall, PlusSquare, PriceTag, Profile, RadioButtonElementChecked, RadioButtonElementDisabled, RadioButtonElementInvalid, RadioButtonElementUnchecked, Rectangle, Sandwatch, Scan, Search, Searchsmall, Security, Send, Setting, SettingCircle, ShieldDone, ShieldFail, Show, ShufflePlay, SignLanguage, Star, StarCircle, Starfull, StarfullSmall, StarfullXSmall, Swap, SwitchPassive, Tamamlarsin, Tick, TickSquare, TicketStar, Ticket, TimeCircle, TimeSquare, Trash, Twitter, TwitterFilled, Twitterhk, Twitterwithfooter, Unlock, Upload, User2, User3, Valentine, Video, Visa, Voice, Voice2, VolumeDown, VolumeOff, VolumeOffSm, VolumeUp, VolumeUpSm, Wallet, Wallet2, Watch, WaveArrowDown, WaveArrowUp, Whatsapp, Work, Wp, Wpfooter, Youtube, CircleFilled, Clab1, ClabFilled, ClabHands, Dislikesmall, Dublearrowleftbig, Facebookhk, Facebookwithfooter, Grid, Instagramhk, Konfeti, Konfeti2, Linkedinhk, Linkedinwithfooter, List, Live, More, NewYear, Play, RotateRight, TextLoading, Tiktok, UserPlus, Wphk, Youtubehk, Youtubewithfooter };
|
|
@@ -26,10 +26,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
exports.CallMissed = exports.Call = exports.Calenderarrowrightsmall = exports.CalenderArrowleftsmall = exports.Calendar = exports.BuyXl = exports.Buy = exports.Box = exports.Bookmark = exports.BagStar = exports.Bag = exports.Bag2 = exports.Backcargo = exports.BackCargosmall = exports.BackCargo2 = exports.Baby = exports.AskedQuestions = exports.ArrowUpSquare = exports.ArrowUpCircle = exports.ArrowUpBig = exports.ArrowUpAnimate = exports.ArrowUp = exports.ArrowSmallUp = exports.ArrowSmallRightStroke = exports.ArrowSmallRightBackground = exports.ArrowSmallRight = exports.ArrowSmallLeftStroke = exports.ArrowSmallLeft = exports.ArrowSmallDownStroke = exports.ArrowSmallDown = exports.ArrowSharemini = exports.ArrowShare = exports.ArrowRightSquare = exports.ArrowRightCircle = exports.ArrowRightBig = exports.ArrowRightAnimate = exports.ArrowRight = exports.ArrowLeftSquare = exports.ArrowLeftCircle = exports.ArrowLeftBig = exports.ArrowLeftAnimate = exports.ArrowLeft = exports.ArrowGoSmall = exports.ArrowDownSquare = exports.ArrowDownCircle = exports.ArrowDownBig = exports.ArrowDownAnimate = exports.ArrowDown = exports.Announcement = exports.Activity = void 0;
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.iconList = exports.Youtubewithfooter = exports.Youtubehk = exports.Wphk = exports.UserPlus = exports.Tiktok = exports.TextLoading = exports.RotateRight = exports.Play = exports.NewYear = exports.More = exports.Live = exports.List = exports.Linkedinwithfooter = exports.Linkedinhk = exports.Konfeti2 = exports.Konfeti = exports.Instagramhk = exports.Grid = exports.Facebookwithfooter = exports.Facebookhk = exports.Dublearrowleftbig = exports.Dislikesmall = exports.ClabHands = exports.ClabFilled = exports.Clab1 = exports.CircleFilled = exports.Youtube = exports.Wpfooter = exports.Wp = exports.Work = exports.Whatsapp = exports.WaveArrowUp = exports.WaveArrowDown = exports.Watch = exports.Wallet2 = exports.Wallet = exports.VolumeUpSm = exports.VolumeUp = exports.VolumeOffSm = exports.VolumeOff = exports.VolumeDown = exports.Voice2 = exports.Voice = exports.Visa = void 0;
|
|
29
|
+
exports.Graph = exports.Gift = exports.Game = exports.Folder = exports.Flash = exports.FilterUp = exports.FilterSmall = exports.FilterDown = exports.Filter2 = exports.Filter = exports.Facebook = exports.ElSatis = exports.EditSquare = exports.Edit = exports.Dublearrrowrightbig = exports.DownloadMini = exports.Download = exports.Document = exports.DislikeLg = exports.Dislike = exports.Discovery = exports.Discount = exports.DeleteSmall = exports.Delete = exports.DarkBadge = exports.Danger = exports.Copy = exports.Completed = exports.Closebig = exports.CloseSquare = exports.CloseSmall = exports.CloseMedium = exports.ClickOnclick = exports.CihazTeslimAlindi = exports.CheckboxElementUncheck = exports.CheckboxElementInvalid = exports.CheckboxElementDisabled = exports.CheckboxElementChecked = exports.CheckMark = exports.Chat = exports.Chart = exports.Category = exports.Cargo2 = exports.Cargo = exports.CarbonNautral = exports.CampaignColorful = exports.Campaign = exports.Camera = exports.Calling = exports.CallSilent = void 0;
|
|
30
|
+
exports.PaperUpload = exports.PaperPlus = exports.PaperNegative = exports.PaperFail = exports.PaperDownload = exports.Paper = exports.OrderProgressIcons = exports.Operation = exports.NotificationSmallwith24 = exports.NotificationSmallwith16 = exports.NotificationBigwith24 = exports.NotificationBigwith16 = exports.Notification = exports.NegativeSmall = exports.NegativeBig = exports.MoreSquare = exports.MoreCircle = exports.Money = exports.Minus = exports.Message = exports.MasterCard = exports.Logout = exports.Login = exports.Lock = exports.Location = exports.Loadingsmall = exports.LoadingDefault = exports.Loading = exports.LinkedIn = exports.LinkSm = exports.Link = exports.Likesmall = exports.LikeV1 = exports.Like = exports.Laptop = exports.Language2 = exports.KeyboardClose = exports.Keyboard = exports.Instagramwithfooter = exports.InstagramNegative = exports.Instagram = exports.InfoSquareSmall = exports.InfoSquare = exports.InfoCircle = exports.Image = exports.House = exports.Home = exports.Hide = exports.HeartLg = exports.Heart = void 0;
|
|
31
|
+
exports.Valentine = exports.User3 = exports.User2 = exports.Upload = exports.Unlock = exports.Twitterwithfooter = exports.Twitterhk = exports.TwitterFilled = exports.Twitter = exports.Trash = exports.TimeSquare = exports.TimeCircle = exports.Ticket = exports.TicketStar = exports.TickSquare = exports.Tick = exports.Tamamlarsin = exports.SwitchPassive = exports.Swap = exports.StarfullXSmall = exports.StarfullSmall = exports.Starfull = exports.StarCircle = exports.Star = exports.SignLanguage = exports.ShufflePlay = exports.Show = exports.ShieldFail = exports.ShieldDone = exports.SettingCircle = exports.Setting = exports.Send = exports.Security = exports.Searchsmall = exports.Search = exports.Scan = exports.Sandwatch = exports.Rectangle = exports.RadioButtonElementUnchecked = exports.RadioButtonElementInvalid = exports.RadioButtonElementDisabled = exports.RadioButtonElementChecked = exports.Profile = exports.PriceTag = exports.PlusSquare = exports.PlusSmall = exports.PlusCircle = exports.PlusBig = exports.Pause = exports.Password = void 0;
|
|
32
|
+
exports.iconList = exports.Youtubewithfooter = exports.Youtubehk = exports.Wphk = exports.UserPlus = exports.Tiktok = exports.TextLoading = exports.RotateRight = exports.Play = exports.NewYear = exports.More = exports.Live = exports.List = exports.Linkedinwithfooter = exports.Linkedinhk = exports.Konfeti2 = exports.Konfeti = exports.Instagramhk = exports.Grid = exports.Facebookwithfooter = exports.Facebookhk = exports.Dublearrowleftbig = exports.Dislikesmall = exports.ClabHands = exports.ClabFilled = exports.Clab1 = exports.CircleFilled = exports.Youtube = exports.Wpfooter = exports.Wp = exports.Work = exports.Whatsapp = exports.WaveArrowUp = exports.WaveArrowDown = exports.Watch = exports.Wallet2 = exports.Wallet = exports.VolumeUpSm = exports.VolumeUp = exports.VolumeOffSm = exports.VolumeOff = exports.VolumeDown = exports.Voice2 = exports.Voice = exports.Visa = exports.Video = void 0;
|
|
33
33
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
34
34
|
var Activity_1 = __importDefault(require("./Activity"));
|
|
35
35
|
Object.defineProperty(exports, "Activity", { enumerable: true, get: function () { return Activity_1.default; } });
|
|
@@ -199,6 +199,8 @@ var Document_1 = __importDefault(require("./Document"));
|
|
|
199
199
|
Object.defineProperty(exports, "Document", { enumerable: true, get: function () { return Document_1.default; } });
|
|
200
200
|
var Download_1 = __importDefault(require("./Download"));
|
|
201
201
|
Object.defineProperty(exports, "Download", { enumerable: true, get: function () { return Download_1.default; } });
|
|
202
|
+
var DownloadMini_1 = __importDefault(require("./DownloadMini"));
|
|
203
|
+
Object.defineProperty(exports, "DownloadMini", { enumerable: true, get: function () { return DownloadMini_1.default; } });
|
|
202
204
|
var Dublearrrowrightbig_1 = __importDefault(require("./Dublearrrowrightbig"));
|
|
203
205
|
Object.defineProperty(exports, "Dublearrrowrightbig", { enumerable: true, get: function () { return Dublearrrowrightbig_1.default; } });
|
|
204
206
|
var Edit_1 = __importDefault(require("./Edit"));
|
|
@@ -856,6 +858,10 @@ exports.iconList = {
|
|
|
856
858
|
var props = __rest(_a, []);
|
|
857
859
|
return (0, jsx_runtime_1.jsx)(Download_1.default, __assign({}, props));
|
|
858
860
|
},
|
|
861
|
+
DownloadMini: function (_a) {
|
|
862
|
+
var props = __rest(_a, []);
|
|
863
|
+
return (0, jsx_runtime_1.jsx)(DownloadMini_1.default, __assign({}, props));
|
|
864
|
+
},
|
|
859
865
|
Dublearrrowrightbig: function (_a) {
|
|
860
866
|
var props = __rest(_a, []);
|
|
861
867
|
return (0, jsx_runtime_1.jsx)(Dublearrrowrightbig_1.default, __assign({}, props));
|
|
@@ -7,7 +7,7 @@ declare const _default: {
|
|
|
7
7
|
export default _default;
|
|
8
8
|
export declare const Default: {
|
|
9
9
|
args: {
|
|
10
|
-
data: any[] |
|
|
10
|
+
data: any[] | {
|
|
11
11
|
id: number;
|
|
12
12
|
parentId: number;
|
|
13
13
|
name: string;
|
|
@@ -15,34 +15,11 @@ export declare const Default: {
|
|
|
15
15
|
isShowHeader: boolean;
|
|
16
16
|
slug: string;
|
|
17
17
|
productCount: number;
|
|
18
|
-
headerMediaUrl:
|
|
18
|
+
headerMediaUrl: string;
|
|
19
19
|
medias: any[];
|
|
20
|
-
children:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
name: string;
|
|
24
|
-
filterName: any;
|
|
25
|
-
isShowHeader: boolean;
|
|
26
|
-
slug: string;
|
|
27
|
-
productCount: number;
|
|
28
|
-
headerMediaUrl: any;
|
|
29
|
-
medias: any[];
|
|
30
|
-
children: any[];
|
|
31
|
-
}[];
|
|
32
|
-
isSeeAll?: undefined;
|
|
33
|
-
} | {
|
|
34
|
-
id: number;
|
|
35
|
-
name: string;
|
|
36
|
-
isSeeAll: boolean;
|
|
37
|
-
slug: string;
|
|
38
|
-
parentId?: undefined;
|
|
39
|
-
filterName?: undefined;
|
|
40
|
-
isShowHeader?: undefined;
|
|
41
|
-
productCount?: undefined;
|
|
42
|
-
headerMediaUrl?: undefined;
|
|
43
|
-
medias?: undefined;
|
|
44
|
-
children?: undefined;
|
|
45
|
-
})[] | {
|
|
20
|
+
children: any[];
|
|
21
|
+
parent: any[];
|
|
22
|
+
}[] | {
|
|
46
23
|
id: number;
|
|
47
24
|
parentId: number;
|
|
48
25
|
name: string;
|
|
@@ -24,6 +24,6 @@ var ProductCardHorizontal = function (_a) {
|
|
|
24
24
|
var item = _a.item, children = _a.children;
|
|
25
25
|
return item.component ? ((0, jsx_runtime_1.jsx)(item.component, { children: children })) : ((0, jsx_runtime_1.jsx)("a", __assign({ href: item.slug }, { children: children })));
|
|
26
26
|
};
|
|
27
|
-
return (hasLoading ? ((0, jsx_runtime_1.jsx)(ProductCardHorizontal_styled_1.ProductCardHorizontalStyled, __assign({ "$size": size, "$hasLoading": hasLoading }, { children: (0, jsx_runtime_1.jsx)("a", { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: "horizontalWrapper" }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: "img" }, { children: ["x", (0, jsx_runtime_1.jsx)(SkeletonLoader_1.default, { width: "142px", height: "77px", hasInset: true })] })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: "text" }, { children: [(0, jsx_runtime_1.jsxs)("strong", __assign({ className: "title" }, { children: ["x", (0, jsx_runtime_1.jsx)(SkeletonLoader_1.default, { width: "400px", height: "19px", hasInset: true })] })), (0, jsx_runtime_1.jsxs)("p", __assign({ className: "description" }, { children: ["x", (0, jsx_runtime_1.jsx)(SkeletonLoader_1.default, { width: "300px", height: "17px", hasInset: true })] })), (0, jsx_runtime_1.
|
|
27
|
+
return (hasLoading ? ((0, jsx_runtime_1.jsx)(ProductCardHorizontal_styled_1.ProductCardHorizontalStyled, __assign({ "$size": size, "$hasLoading": hasLoading }, { children: (0, jsx_runtime_1.jsx)("a", { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: "horizontalWrapper" }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: "img" }, { children: ["x", (0, jsx_runtime_1.jsx)(SkeletonLoader_1.default, { width: size === "small" ? "71px" : "142px", height: size === "small" ? "50px" : "77px", hasInset: true })] })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: "text" }, { children: [(0, jsx_runtime_1.jsxs)("strong", __assign({ className: "title" }, { children: ["x", (0, jsx_runtime_1.jsx)(SkeletonLoader_1.default, { width: "400px", height: size === "small" ? "15px" : "19px", hasInset: true })] })), (0, jsx_runtime_1.jsxs)("p", __assign({ className: "description" }, { children: ["x", (0, jsx_runtime_1.jsx)(SkeletonLoader_1.default, { width: "300px", height: "17px", hasInset: true })] })), (0, jsx_runtime_1.jsx)("div", __assign({ className: "priceContent" }, { children: (0, jsx_runtime_1.jsx)(SkeletonLoader_1.default, { width: "150px", height: size === "small" ? "15px" : "17px" }) }))] }))] })) }) }))) : ((0, jsx_runtime_1.jsx)(ProductCardHorizontal_styled_1.ProductCardHorizontalStyled, __assign({ "$size": size, onClick: onClick }, { children: (0, jsx_runtime_1.jsx)(LinkComponent, __assign({ item: { component: component, slug: slug } }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: "horizontalWrapper" }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: "img" }, { children: image })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: "text" }, { children: [(0, jsx_runtime_1.jsx)("strong", __assign({ className: "title" }, { children: title })), (0, jsx_runtime_1.jsx)("p", __assign({ className: "description" }, { children: description })), price && period && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: "priceContent" }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: "price" }, { children: price })), (0, jsx_runtime_1.jsx)("div", __assign({ className: "period" }, { children: "/".concat(period) }))] })))] }))] })) })) }))));
|
|
28
28
|
};
|
|
29
29
|
exports.default = ProductCardHorizontal;
|
|
@@ -2,7 +2,12 @@ declare const _default: {
|
|
|
2
2
|
title: string;
|
|
3
3
|
component: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
tags: string[];
|
|
5
|
-
argTypes: {
|
|
5
|
+
argTypes: {
|
|
6
|
+
size: {
|
|
7
|
+
control: string;
|
|
8
|
+
options: readonly ["medium", "small"];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
6
11
|
};
|
|
7
12
|
export default _default;
|
|
8
13
|
export declare const Default: {
|
|
@@ -17,11 +17,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.Default = void 0;
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
19
|
var ProductCardHorizontal_1 = __importDefault(require("../ProductCardHorizontal"));
|
|
20
|
+
var props_1 = require("../props");
|
|
20
21
|
exports.default = {
|
|
21
22
|
title: 'Components/ProductCard/ProductCard Horizontal',
|
|
22
23
|
component: function (props) { return (0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: "700px" } }, { children: (0, jsx_runtime_1.jsx)(ProductCardHorizontal_1.default, __assign({}, props)) })); },
|
|
23
24
|
tags: ['autodocs'],
|
|
24
|
-
argTypes: {
|
|
25
|
+
argTypes: {
|
|
26
|
+
size: { control: 'select', options: props_1.sizes },
|
|
27
|
+
}
|
|
25
28
|
};
|
|
26
29
|
exports.Default = {
|
|
27
30
|
args: {
|
|
@@ -34,6 +37,6 @@ exports.Default = {
|
|
|
34
37
|
},
|
|
35
38
|
period: "hafta",
|
|
36
39
|
image: (0, jsx_runtime_1.jsx)("img", { src: "https://kiralarsin.s3.eu-central-1.amazonaws.com/products/4MOMSMAMAROOANAKUC_1.jpg", alt: "test" }),
|
|
37
|
-
hasLoading: false
|
|
40
|
+
hasLoading: false,
|
|
38
41
|
},
|
|
39
42
|
};
|
|
@@ -136,7 +136,7 @@ var SearchBox = react_1.default.forwardRef(function (_a, ref) {
|
|
|
136
136
|
}, [selectedIndex]);
|
|
137
137
|
var shouldShowResults = showResultList &&
|
|
138
138
|
(!minSearchLength || ((_b = value === null || value === void 0 ? void 0 : value.length) !== null && _b !== void 0 ? _b : 0) >= minSearchLength);
|
|
139
|
-
return ((0, jsx_runtime_1.jsxs)(SearchBox_styled_1.SearchBoxStyled, __assign({ "$showResultList": shouldShowResults, "$size": size, "$disabled": disabled, className: className }, { children: [(0, jsx_runtime_1.jsx)("div", { className: "shadowBox" }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: "inputWrapper" }, { children: [(0, jsx_runtime_1.jsx)("input", { ref: handleRef, type: "text", id: id, "aria-label": ariaLabel, "aria-expanded": shouldShowResults, "aria-controls": shouldShowResults ? "".concat(id, "-results") : undefined, "aria-activedescendant": selectedIndex !== null ? "".concat(id, "-result-").concat(selectedIndex) : undefined, role: "combobox", placeholder: placeholder, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, onBlur: onBlur, onFocus: onFocus, value: value, onChange: onChange, disabled: disabled, autoComplete: "off" }), (0, jsx_runtime_1.jsx)("button", __assign({ onClick: onButtonClick, className: "icon", "aria-label": t("SEARCH"), disabled: disabled }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: "Searchsmall" }) }))] })), shouldShowResults && ((0, jsx_runtime_1.jsx)("div", __assign({ ref: resultRef, className: "resultList", id: "".concat(id, "-results"), role: "listbox" }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "resultListInner" }, { children: (0, jsx_runtime_1.jsx)(simplebar_react_1.default, __assign({ ref: simplebarRef, autoHide: false, style: { maxHeight: maxResultHeight } }, { children: isLoading ? (Array.from({ length: 4 }, function (_, index) { return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "productCard", "data-id": "".concat(id, "-result-").concat(index), "data-role": "option", "data-selected": selectedIndex === index }, { children: (0, jsx_runtime_1.jsx)(ProductCardHorizontal_1.default, { hasLoading: true }) }), index)); })) : (react_1.default.Children.map(children, function (child, index) {
|
|
139
|
+
return ((0, jsx_runtime_1.jsxs)(SearchBox_styled_1.SearchBoxStyled, __assign({ "$showResultList": shouldShowResults, "$size": size, "$disabled": disabled, className: className }, { children: [(0, jsx_runtime_1.jsx)("div", { className: "shadowBox" }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: "inputWrapper" }, { children: [(0, jsx_runtime_1.jsx)("input", { ref: handleRef, type: "text", id: id, "aria-label": ariaLabel, "aria-expanded": shouldShowResults, "aria-controls": shouldShowResults ? "".concat(id, "-results") : undefined, "aria-activedescendant": selectedIndex !== null ? "".concat(id, "-result-").concat(selectedIndex) : undefined, role: "combobox", placeholder: placeholder, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, onBlur: onBlur, onFocus: onFocus, value: value, onChange: onChange, disabled: disabled, autoComplete: "off" }), (0, jsx_runtime_1.jsx)("button", __assign({ onClick: onButtonClick, className: "icon", "aria-label": t("SEARCH"), disabled: disabled }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: "Searchsmall" }) }))] })), shouldShowResults && ((0, jsx_runtime_1.jsx)("div", __assign({ ref: resultRef, className: "resultList", id: "".concat(id, "-results"), role: "listbox" }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "resultListInner" }, { children: (0, jsx_runtime_1.jsx)(simplebar_react_1.default, __assign({ ref: simplebarRef, autoHide: false, style: { maxHeight: maxResultHeight } }, { children: isLoading ? (Array.from({ length: 4 }, function (_, index) { return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "productCard", "data-id": "".concat(id, "-result-").concat(index), "data-role": "option", "data-selected": selectedIndex === index }, { children: (0, jsx_runtime_1.jsx)(ProductCardHorizontal_1.default, { hasLoading: true, size: size }) }), index)); })) : (react_1.default.Children.map(children, function (child, index) {
|
|
140
140
|
if (!react_1.default.isValidElement(child))
|
|
141
141
|
return child;
|
|
142
142
|
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "productCard", "data-id": "".concat(id, "-result-").concat(index), "data-role": "option", "data-selected": selectedIndex === index, tabIndex: -1 }, { children: child }), index));
|
|
@@ -25,7 +25,7 @@ var StepSlider = function (_a) {
|
|
|
25
25
|
var selectedOptionElement = sliderRef.current.children[selectedIndex + 1];
|
|
26
26
|
if (selectedOptionElement) {
|
|
27
27
|
setIndicatorStyle({
|
|
28
|
-
left: "".concat(selectedOptionElement.offsetLeft, "px"),
|
|
28
|
+
left: "".concat(selectedOptionElement.offsetLeft + 1, "px"),
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -9,8 +9,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.StepOptionStyled = exports.IndicatorStyled = exports.StepSliderStyled = exports.Container = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.Container = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .top {\n display: flex;\n margin-bottom:
|
|
12
|
+
exports.Container = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .top {\n display: flex;\n margin-bottom: 1rem;\n font: var(--caption-bold-12-15);\n\n &.justify-between {\n justify-content: space-between;\n }\n\n label {\n margin: 0;\n color: var(--dark-opacity-50);\n display: block;\n }\n }\n"], ["\n .top {\n display: flex;\n margin-bottom: 1rem;\n font: var(--caption-bold-12-15);\n\n &.justify-between {\n justify-content: space-between;\n }\n\n label {\n margin: 0;\n color: var(--dark-opacity-50);\n display: block;\n }\n }\n"])));
|
|
13
13
|
exports.StepSliderStyled = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: relative;\n background-color: white;\n border-radius: 0.5rem;\n border: 1px solid var(--grey-10);\n height: 48px;\n padding: 0 1.5rem;\n box-shadow: 0 6px 30px 0 var(--box-shadow-color);\n margin-bottom: 0.5rem;\n"], ["\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: relative;\n background-color: white;\n border-radius: 0.5rem;\n border: 1px solid var(--grey-10);\n height: 48px;\n padding: 0 1.5rem;\n box-shadow: 0 6px 30px 0 var(--box-shadow-color);\n margin-bottom: 0.5rem;\n"])));
|
|
14
14
|
exports.IndicatorStyled = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: absolute;\n top: 50%;\n transform: translateY(-50%) translateX(-16px);\n background-color: white;\n border-radius: 6px;\n transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);\n z-index: 0;\n width: 64px !important;\n height: 64px;\n box-shadow: 0 6px 30px 0 var(--box-shadow-color);\n"], ["\n position: absolute;\n top: 50%;\n transform: translateY(-50%) translateX(-16px);\n background-color: white;\n border-radius: 6px;\n transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);\n z-index: 0;\n width: 64px !important;\n height: 64px;\n box-shadow: 0 6px 30px 0 var(--box-shadow-color);\n"])));
|
|
15
|
-
exports.StepOptionStyled = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n text-align: center;\n padding: 8px 0;\n border-radius: 6px;\n cursor: pointer;\n color: var(--grey-50);\n background-color: transparent;\n transition: color 0.3s ease;\n z-index: 1;\n font: var(--caption-semi-bold-11-13);\n min-width: 34px;\n span {\n display: block;\n text-align: center;\n font: var(--
|
|
15
|
+
exports.StepOptionStyled = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n text-align: center;\n padding: 8px 0;\n border-radius: 6px;\n cursor: pointer;\n color: var(--grey-50);\n background-color: transparent;\n transition: color 0.3s ease;\n z-index: 1;\n font: var(--caption-semi-bold-11-13);\n min-width: 34px;\n span {\n display: block;\n text-align: center;\n font: var(--body-semi-bold-14-17);\n color: var(--grey-50);\n b {\n display: block;\n font: var(--headline-extra-bold-18-22);\n color: var(--dark);\n }\n }\n"], ["\n text-align: center;\n padding: 8px 0;\n border-radius: 6px;\n cursor: pointer;\n color: var(--grey-50);\n background-color: transparent;\n transition: color 0.3s ease;\n z-index: 1;\n font: var(--caption-semi-bold-11-13);\n min-width: 34px;\n span {\n display: block;\n text-align: center;\n font: var(--body-semi-bold-14-17);\n color: var(--grey-50);\n b {\n display: block;\n font: var(--headline-extra-bold-18-22);\n color: var(--dark);\n }\n }\n"])));
|
|
16
16
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TooltipProps } from "./props";
|
|
2
|
-
declare const Tooltip: ({ iconWidth, iconHeight, children, title, popupWidth, hasClickAction, hasCloseOnOutsideClick, isOpen, position, popupSize, popupLeft, popupRight, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const Tooltip: ({ iconWidth, iconHeight, children, title, popupWidth, hasClickAction, hasCloseOnOutsideClick, isOpen, position, popupSize, popupLeft, popupRight, id, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Tooltip;
|
|
@@ -21,13 +21,13 @@ var Tooltip_styled_1 = require("./Tooltip.styled");
|
|
|
21
21
|
var Icon_1 = __importDefault(require("../Icon/Icon"));
|
|
22
22
|
var useOnClickOutside_1 = __importDefault(require("../../hooks/useOnClickOutside"));
|
|
23
23
|
var Tooltip = function (_a) {
|
|
24
|
-
var _b = _a.iconWidth, iconWidth = _b === void 0 ? props_1.TooltipDefault.iconWidth : _b, _c = _a.iconHeight, iconHeight = _c === void 0 ? props_1.TooltipDefault.iconHeight : _c, _d = _a.children, children = _d === void 0 ? props_1.TooltipDefault.children : _d, _e = _a.title, title = _e === void 0 ? props_1.TooltipDefault.title : _e, _f = _a.popupWidth, popupWidth = _f === void 0 ? props_1.TooltipDefault.popupWidth : _f, _g = _a.hasClickAction, hasClickAction = _g === void 0 ? props_1.TooltipDefault.hasClickAction : _g, _h = _a.hasCloseOnOutsideClick, hasCloseOnOutsideClick = _h === void 0 ? props_1.TooltipDefault.hasCloseOnOutsideClick : _h, _j = _a.isOpen, isOpen = _j === void 0 ? props_1.TooltipDefault.isOpen : _j, _k = _a.position, position = _k === void 0 ? props_1.TooltipDefault.position : _k, _l = _a.popupSize, popupSize = _l === void 0 ? props_1.TooltipDefault.popupSize : _l, _m = _a.popupLeft, popupLeft = _m === void 0 ? props_1.TooltipDefault.popupLeft : _m, _o = _a.popupRight, popupRight = _o === void 0 ? props_1.TooltipDefault.popupRight : _o;
|
|
25
|
-
var
|
|
24
|
+
var _b = _a.iconWidth, iconWidth = _b === void 0 ? props_1.TooltipDefault.iconWidth : _b, _c = _a.iconHeight, iconHeight = _c === void 0 ? props_1.TooltipDefault.iconHeight : _c, _d = _a.children, children = _d === void 0 ? props_1.TooltipDefault.children : _d, _e = _a.title, title = _e === void 0 ? props_1.TooltipDefault.title : _e, _f = _a.popupWidth, popupWidth = _f === void 0 ? props_1.TooltipDefault.popupWidth : _f, _g = _a.hasClickAction, hasClickAction = _g === void 0 ? props_1.TooltipDefault.hasClickAction : _g, _h = _a.hasCloseOnOutsideClick, hasCloseOnOutsideClick = _h === void 0 ? props_1.TooltipDefault.hasCloseOnOutsideClick : _h, _j = _a.isOpen, isOpen = _j === void 0 ? props_1.TooltipDefault.isOpen : _j, _k = _a.position, position = _k === void 0 ? props_1.TooltipDefault.position : _k, _l = _a.popupSize, popupSize = _l === void 0 ? props_1.TooltipDefault.popupSize : _l, _m = _a.popupLeft, popupLeft = _m === void 0 ? props_1.TooltipDefault.popupLeft : _m, _o = _a.popupRight, popupRight = _o === void 0 ? props_1.TooltipDefault.popupRight : _o, _p = _a.id, id = _p === void 0 ? props_1.TooltipDefault.id : _p;
|
|
25
|
+
var _q = (0, react_1.useState)(isOpen), isOpenTooltip = _q[0], setIsOpenTooltip = _q[1];
|
|
26
26
|
(0, react_1.useEffect)(function () {
|
|
27
27
|
setIsOpenTooltip(isOpen);
|
|
28
28
|
}, [isOpen]);
|
|
29
29
|
var tooltipRef = (0, react_1.useRef)();
|
|
30
30
|
(0, useOnClickOutside_1.default)(tooltipRef, function () { return setIsOpenTooltip(false); }, hasCloseOnOutsideClick);
|
|
31
|
-
return ((0, jsx_runtime_1.jsxs)(Tooltip_styled_1.TooltipStyled, __assign({ ref: tooltipRef, "$hasClickAction": hasClickAction }, { children: [(0, jsx_runtime_1.jsx)(Tooltip_styled_1.Selector, __assign({ "$isOpen": isOpenTooltip, "$position": position, "$hasClickAction": hasClickAction, onClick: function () { return setIsOpenTooltip(!isOpenTooltip); } }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: iconWidth === "16px" ? "InfoSquareSmall" : "InfoSquare", width: iconWidth, height: iconHeight }) })), (0, jsx_runtime_1.jsxs)(Tooltip_styled_1.Popup, __assign({ "$popupSize": popupSize, "$position": position, "$popupWidth": popupWidth, "$isOpen": isOpenTooltip, "$hasClickAction": hasClickAction, "$popupLeft": popupLeft, "$popupRight": popupRight }, { children: [title && (0, jsx_runtime_1.jsx)(Tooltip_styled_1.Title, { children: title }), children] }))] })));
|
|
31
|
+
return ((0, jsx_runtime_1.jsxs)(Tooltip_styled_1.TooltipStyled, __assign({ id: id, ref: tooltipRef, "$hasClickAction": hasClickAction }, { children: [(0, jsx_runtime_1.jsx)(Tooltip_styled_1.Selector, __assign({ "$isOpen": isOpenTooltip, "$position": position, "$hasClickAction": hasClickAction, onClick: function () { return setIsOpenTooltip(!isOpenTooltip); } }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: iconWidth === "16px" ? "InfoSquareSmall" : "InfoSquare", width: iconWidth, height: iconHeight }) })), (0, jsx_runtime_1.jsxs)(Tooltip_styled_1.Popup, __assign({ "$popupSize": popupSize, "$position": position, "$popupWidth": popupWidth, "$isOpen": isOpenTooltip, "$hasClickAction": hasClickAction, "$popupLeft": popupLeft, "$popupRight": popupRight, className: "customPopup" }, { children: [title && (0, jsx_runtime_1.jsx)(Tooltip_styled_1.Title, { children: title }), children] }))] })));
|
|
32
32
|
};
|
|
33
33
|
exports.default = Tooltip;
|
|
@@ -1,20 +1,4 @@
|
|
|
1
1
|
declare const _default: ({
|
|
2
|
-
id: number;
|
|
3
|
-
parentId: number;
|
|
4
|
-
name: string;
|
|
5
|
-
filterName: any;
|
|
6
|
-
isShowHeader: boolean;
|
|
7
|
-
slug: string;
|
|
8
|
-
productCount: number;
|
|
9
|
-
headerMediaUrl: any;
|
|
10
|
-
medias: any[];
|
|
11
|
-
icon: string;
|
|
12
|
-
children: any[];
|
|
13
|
-
isActive: boolean;
|
|
14
|
-
component?: undefined;
|
|
15
|
-
badgeText?: undefined;
|
|
16
|
-
hasCustomItem?: undefined;
|
|
17
|
-
} | {
|
|
18
2
|
id: number;
|
|
19
3
|
parentId: number;
|
|
20
4
|
name: string;
|
|
@@ -25,7 +9,7 @@ declare const _default: ({
|
|
|
25
9
|
headerMediaUrl: string;
|
|
26
10
|
medias: any[];
|
|
27
11
|
icon: string;
|
|
28
|
-
children:
|
|
12
|
+
children: {
|
|
29
13
|
id: number;
|
|
30
14
|
parentId: number;
|
|
31
15
|
name: string;
|
|
@@ -33,37 +17,13 @@ declare const _default: ({
|
|
|
33
17
|
isShowHeader: boolean;
|
|
34
18
|
slug: string;
|
|
35
19
|
productCount: number;
|
|
36
|
-
headerMediaUrl:
|
|
20
|
+
headerMediaUrl: string;
|
|
37
21
|
medias: any[];
|
|
38
|
-
children:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
filterName: any;
|
|
43
|
-
isShowHeader: boolean;
|
|
44
|
-
slug: string;
|
|
45
|
-
productCount: number;
|
|
46
|
-
headerMediaUrl: any;
|
|
47
|
-
medias: any[];
|
|
48
|
-
children: any[];
|
|
49
|
-
}[];
|
|
50
|
-
isSeeAll?: undefined;
|
|
51
|
-
} | {
|
|
52
|
-
id: number;
|
|
53
|
-
name: string;
|
|
54
|
-
isSeeAll: boolean;
|
|
55
|
-
slug: string;
|
|
56
|
-
parentId?: undefined;
|
|
57
|
-
filterName?: undefined;
|
|
58
|
-
isShowHeader?: undefined;
|
|
59
|
-
productCount?: undefined;
|
|
60
|
-
headerMediaUrl?: undefined;
|
|
61
|
-
medias?: undefined;
|
|
62
|
-
children?: undefined;
|
|
63
|
-
})[];
|
|
64
|
-
isActive?: undefined;
|
|
22
|
+
children: any[];
|
|
23
|
+
parent: any[];
|
|
24
|
+
}[];
|
|
25
|
+
parent: any[];
|
|
65
26
|
component?: undefined;
|
|
66
|
-
badgeText?: undefined;
|
|
67
27
|
hasCustomItem?: undefined;
|
|
68
28
|
} | {
|
|
69
29
|
id: number;
|
|
@@ -91,24 +51,7 @@ declare const _default: ({
|
|
|
91
51
|
medias: any[];
|
|
92
52
|
children: any[];
|
|
93
53
|
}[];
|
|
94
|
-
|
|
95
|
-
badgeText?: undefined;
|
|
96
|
-
hasCustomItem?: undefined;
|
|
97
|
-
} | {
|
|
98
|
-
id: number;
|
|
99
|
-
parentId: number;
|
|
100
|
-
name: string;
|
|
101
|
-
filterName: any;
|
|
102
|
-
isShowHeader: boolean;
|
|
103
|
-
slug: string;
|
|
104
|
-
productCount: number;
|
|
105
|
-
headerMediaUrl: any;
|
|
106
|
-
medias: any[];
|
|
107
|
-
icon: string;
|
|
108
|
-
children: any[];
|
|
109
|
-
badgeText: string;
|
|
110
|
-
isActive?: undefined;
|
|
111
|
-
component?: undefined;
|
|
54
|
+
parent?: undefined;
|
|
112
55
|
hasCustomItem?: undefined;
|
|
113
56
|
} | {
|
|
114
57
|
id: number;
|
|
@@ -123,8 +66,7 @@ declare const _default: ({
|
|
|
123
66
|
icon: string;
|
|
124
67
|
children: any[];
|
|
125
68
|
hasCustomItem: boolean;
|
|
126
|
-
|
|
69
|
+
parent?: undefined;
|
|
127
70
|
component?: undefined;
|
|
128
|
-
badgeText?: undefined;
|
|
129
71
|
})[];
|
|
130
72
|
export default _default;
|