krl-alfred 2.18.17 → 2.18.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/ActionButton/ActionButton.js +1 -1
- package/dist/components/ActionButton/ActionButton.styled.d.ts +14 -0
- package/dist/components/ActionButton/ActionButton.styled.js +17 -3
- package/dist/components/ActionButton/stories/ActionButton.stories.js +1 -1
- package/dist/components/ReviewCard/ReviewCard.d.ts +1 -1
- package/dist/components/ReviewCard/ReviewCard.js +2 -2
- package/dist/components/ReviewCard/ReviewCard.styled.d.ts +1 -0
- package/dist/components/ReviewCard/ReviewCard.styled.js +27 -14
- package/dist/components/ReviewCard/props.d.ts +2 -0
- package/dist/components/ReviewCard/props.js +1 -0
- package/dist/components/ReviewCard/stories/ReviewCard.stories.d.ts +30 -0
- package/dist/components/ReviewCard/stories/ReviewCard.stories.js +8 -1
- package/dist/components/SelectBox/SelectBox.js +22 -10
- package/dist/components/SelectBox/SelectBox.styled.js +2 -2
- package/dist/components/SelectBox/props.d.ts +9 -0
- package/dist/components/SelectBox/props.js +5 -1
- package/dist/components/SelectBox/stories/SelectBox.stories.d.ts +172 -0
- package/dist/components/SelectBox/stories/SelectBox.stories.js +35 -1
- package/package.json +1 -1
|
@@ -59,6 +59,6 @@ var ActionButton = function (_a) {
|
|
|
59
59
|
(0, react_1.useEffect)(function () {
|
|
60
60
|
count();
|
|
61
61
|
}, [date]);
|
|
62
|
-
return ((0, jsx_runtime_1.jsxs)(ActionButton_styled_1.ActionButtonStyled, __assign({ "$width": width, "$hasTimer": hasTimer, "$hasInfo": hasInfo }, other, { children: [hasInfo && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(
|
|
62
|
+
return ((0, jsx_runtime_1.jsxs)(ActionButton_styled_1.ActionButtonStyled, __assign({ "$width": width, "$hasTimer": hasTimer, "$hasInfo": hasInfo }, other, { children: [hasInfo && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ActionButton_styled_1.ActionInfoText, { children: infoText }), (0, jsx_runtime_1.jsx)(ActionButton_styled_1.DashedLine, { children: (0, jsx_runtime_1.jsxs)("svg", __assign({ viewBox: "0 0 335 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M10.0009 0C12.653 0 15.1966 1.05357 17.0719 2.92893C18.9473 4.8043 20.0009 7.34783 20.0009 10C20.0009 12.6522 18.9473 15.1957 17.0719 17.0711C15.1966 18.9464 12.653 20 10.0009 20L10.0009 10V0Z", fill: "white" }), (0, jsx_runtime_1.jsx)("path", { d: "M28.0009 9.5L306.999 10.4925", stroke: "white", "stroke-width": "6", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-dasharray": "12 12" }), (0, jsx_runtime_1.jsx)("path", { d: "M324.999 20C322.347 20 319.804 18.9464 317.928 17.0711C316.053 15.1957 314.999 12.6522 314.999 10C314.999 7.34784 316.053 4.8043 317.928 2.92893C319.804 1.05357 322.347 -3.16267e-08 324.999 0V10V20Z", fill: "white" })] })) })] })), (0, jsx_runtime_1.jsxs)(ActionButton_styled_1.ActionInner, __assign({ "$hasInfo": hasInfo }, { children: [(0, jsx_runtime_1.jsxs)(ActionButton_styled_1.Top, __assign({ "$hasTimer": hasTimer }, { children: [(0, jsx_runtime_1.jsx)(ActionButton_styled_1.IconWrapper, { children: img }), (0, jsx_runtime_1.jsx)(ActionButton_styled_1.Title, { dangerouslySetInnerHTML: { __html: title } }), !hasTimer && ((0, jsx_runtime_1.jsx)(Button_1.default, { size: "xsmall", width: "32px", icon: "ArrowSmallRight", variant: "primary" }))] })), hasTimer && ((0, jsx_runtime_1.jsxs)(ActionButton_styled_1.Bottom, __assign({ "$hasTimer": hasTimer }, { children: [(0, jsx_runtime_1.jsx)(ActionButton_styled_1.EmptySpacer, {}), (0, jsx_runtime_1.jsxs)(ActionButton_styled_1.BottomContent, { children: [(0, jsx_runtime_1.jsxs)(ActionButton_styled_1.Timer, { children: [isMonthVisible && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(ActionButton_styled_1.TimerBox, { children: [(0, jsx_runtime_1.jsx)(ActionButton_styled_1.TimerTitle, { children: months }), (0, jsx_runtime_1.jsx)(ActionButton_styled_1.TimerDescription, { children: t('month') })] }), (0, jsx_runtime_1.jsx)(ActionButton_styled_1.TimerDots, { children: ":" })] })), (0, jsx_runtime_1.jsxs)(ActionButton_styled_1.TimerBox, { children: [(0, jsx_runtime_1.jsx)(ActionButton_styled_1.TimerTitle, { children: days.toString().padStart(2, '0') }), (0, jsx_runtime_1.jsx)(ActionButton_styled_1.TimerDescription, { children: t('day') })] }), (0, jsx_runtime_1.jsx)(ActionButton_styled_1.TimerDots, { children: ":" }), (0, jsx_runtime_1.jsxs)(ActionButton_styled_1.TimerBox, { children: [(0, jsx_runtime_1.jsx)(ActionButton_styled_1.TimerTitle, { children: hours.toString().padStart(2, '0') }), (0, jsx_runtime_1.jsx)(ActionButton_styled_1.TimerDescription, { children: t('hour') })] }), !isMonthVisible && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ActionButton_styled_1.TimerDots, { children: ":" }), (0, jsx_runtime_1.jsxs)(ActionButton_styled_1.TimerBox, { children: [(0, jsx_runtime_1.jsx)(ActionButton_styled_1.TimerTitle, { children: minutes.toString().padStart(2, '0') }), (0, jsx_runtime_1.jsx)(ActionButton_styled_1.TimerDescription, { children: t('minute') })] })] }))] }), (0, jsx_runtime_1.jsx)(Button_1.default, { size: "xsmall", width: "32px", icon: "ArrowSmallRight", variant: "primary", isLoading: isLoading })] })] })))] }))] })));
|
|
63
63
|
};
|
|
64
64
|
exports.default = ActionButton;
|
|
@@ -1,3 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ActionButtonStyledProps } from "./props";
|
|
3
3
|
export declare const ActionButtonStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ActionButtonStyledProps> & ActionButtonStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ActionButtonStyledProps> & ActionButtonStyledProps, never>>> & string;
|
|
4
|
+
export declare const ActionInfoText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
5
|
+
export declare const DashedLine: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
6
|
+
export declare const ActionInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ActionButtonStyledProps> & ActionButtonStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ActionButtonStyledProps> & ActionButtonStyledProps, never>>> & string;
|
|
7
|
+
export declare const Top: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ActionButtonStyledProps> & ActionButtonStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ActionButtonStyledProps> & ActionButtonStyledProps, never>>> & string;
|
|
8
|
+
export declare const Bottom: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ActionButtonStyledProps> & ActionButtonStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ActionButtonStyledProps> & ActionButtonStyledProps, never>>> & string;
|
|
9
|
+
export declare const IconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
10
|
+
export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>>> & string;
|
|
11
|
+
export declare const BottomContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
12
|
+
export declare const Timer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
13
|
+
export declare const TimerBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
14
|
+
export declare const TimerTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
15
|
+
export declare const TimerDescription: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
16
|
+
export declare const TimerDots: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
17
|
+
export declare const EmptySpacer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
@@ -7,8 +7,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
7
7
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
8
|
};
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ActionButtonStyled = void 0;
|
|
10
|
+
exports.EmptySpacer = exports.TimerDots = exports.TimerDescription = exports.TimerTitle = exports.TimerBox = exports.Timer = exports.BottomContent = exports.Title = exports.IconWrapper = exports.Bottom = exports.Top = exports.ActionInner = exports.DashedLine = exports.ActionInfoText = exports.ActionButtonStyled = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
var devices_1 = require("../../constants/devices");
|
|
13
|
-
exports.ActionButtonStyled = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n
|
|
14
|
-
var
|
|
13
|
+
exports.ActionButtonStyled = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n\n"], ["\n width: ", ";\n\n"])), function (props) { return props.$width; });
|
|
14
|
+
exports.ActionInfoText = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: var(--primary-opacity-5);\n font: var(--caption-semi-bold-10-12);\n color: var(--primary);\n padding: 1.5rem 0 0.5rem 1.5rem;\n border-top-left-radius: 0.5rem;\n border-top-right-radius: 0.5rem;\n"], ["\n background-color: var(--primary-opacity-5);\n font: var(--caption-semi-bold-10-12);\n color: var(--primary);\n padding: 1.5rem 0 0.5rem 1.5rem;\n border-top-left-radius: 0.5rem;\n border-top-right-radius: 0.5rem;\n"])));
|
|
15
|
+
exports.DashedLine = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n background: #fbf7ff;\n overflow: hidden;\n height: 22px;\n\n svg {\n height: 22px;\n position: absolute;\n top: 0;\n transform: translateX(-50%);\n left: 50%;\n width: calc(100% + 22px);\n }\n"], ["\n position: relative;\n width: 100%;\n background: #fbf7ff;\n overflow: hidden;\n height: 22px;\n\n svg {\n height: 22px;\n position: absolute;\n top: 0;\n transform: translateX(-50%);\n left: 50%;\n width: calc(100% + 22px);\n }\n"])));
|
|
16
|
+
exports.ActionInner = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 0.5rem;\n background-color: var(--primary-opacity-5);\n padding: 1.5rem;\n align-items: center;\n justify-content: space-between;\n color: var(--dark);\n box-sizing: border-box;\n cursor: pointer;\n\n ", "\n @media only screen and ", " {\n &:hover {\n button {\n background-color: var(--primary-hover);\n }\n }\n }\n\n &:active {\n button {\n background-color: var(--primary-press);\n @media only screen and ", " {\n background-color: var(--primary-hover);\n }\n }\n }\n"], ["\n border-radius: 0.5rem;\n background-color: var(--primary-opacity-5);\n padding: 1.5rem;\n align-items: center;\n justify-content: space-between;\n color: var(--dark);\n box-sizing: border-box;\n cursor: pointer;\n\n ", "\n @media only screen and ", " {\n &:hover {\n button {\n background-color: var(--primary-hover);\n }\n }\n }\n\n &:active {\n button {\n background-color: var(--primary-press);\n @media only screen and ", " {\n background-color: var(--primary-hover);\n }\n }\n }\n"])), function (props) { return props.$hasInfo ? "\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n padding-top: 0.5rem;\n " : ""; }, devices_1.devices.mdUp, devices_1.devices.md);
|
|
17
|
+
exports.Top = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: ", ";\n align-content: center;\n align-items: center;\n"], ["\n display: grid;\n grid-template-columns: ", ";\n align-content: center;\n align-items: center;\n"])), function (props) { return props.$hasTimer ? "61px 1fr" : "61px 1fr auto"; });
|
|
18
|
+
exports.Bottom = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n margin-top: 0.5rem;\n display: grid;\n grid-template-columns: ", ";\n align-content: center;\n align-items: center;\n"], ["\n margin-top: 0.5rem;\n display: grid;\n grid-template-columns: ", ";\n align-content: center;\n align-items: center;\n"])), function (props) { return props.$hasTimer ? "61px 1fr" : "61px 1fr auto"; });
|
|
19
|
+
exports.IconWrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n margin-right: 1rem;\n\n * {\n display: block !important;\n }\n"], ["\n margin-right: 1rem;\n\n * {\n display: block !important;\n }\n"])));
|
|
20
|
+
exports.Title = styled_components_1.default.strong(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: block;\n font: var(--body-bold-14-17);\n"], ["\n display: block;\n font: var(--body-bold-14-17);\n"])));
|
|
21
|
+
exports.BottomContent = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: 1fr auto;\n align-content: center;\n align-items: center;\n justify-content: space-between;\n"], ["\n display: grid;\n grid-template-columns: 1fr auto;\n align-content: center;\n align-items: center;\n justify-content: space-between;\n"])));
|
|
22
|
+
exports.Timer = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: repeat(5, auto);\n align-items: center;\n justify-content: start;\n"], ["\n display: grid;\n grid-template-columns: repeat(5, auto);\n align-items: center;\n justify-content: start;\n"])));
|
|
23
|
+
exports.TimerBox = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n width: 40px;\n height: 48px;\n background-color: white;\n border-radius: 0.25rem;\n text-align: center;\n display: grid;\n align-items: center;\n align-content: center;\n box-shadow: 0 6px 30px 0 var(--box-shadow-color);\n"], ["\n width: 40px;\n height: 48px;\n background-color: white;\n border-radius: 0.25rem;\n text-align: center;\n display: grid;\n align-items: center;\n align-content: center;\n box-shadow: 0 6px 30px 0 var(--box-shadow-color);\n"])));
|
|
24
|
+
exports.TimerTitle = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n font: var(--title-extra-bold-16-19);\n"], ["\n font: var(--title-extra-bold-16-19);\n"])));
|
|
25
|
+
exports.TimerDescription = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n font: var(--caption-regular-10-12);\n"], ["\n font: var(--caption-regular-10-12);\n"])));
|
|
26
|
+
exports.TimerDots = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n margin: 0 4px;\n width: 4px;\n font: var(--caption-bold-12-15);\n"], ["\n margin: 0 4px;\n width: 4px;\n font: var(--caption-bold-12-15);\n"])));
|
|
27
|
+
exports.EmptySpacer = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject([""], [""])));
|
|
28
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15;
|
|
@@ -9,7 +9,7 @@ var ActionButton_1 = __importDefault(require("../ActionButton"));
|
|
|
9
9
|
var iconList_1 = require("../../Icon/iconList");
|
|
10
10
|
var date = new Date();
|
|
11
11
|
date.setFullYear(new Date().getFullYear() + 1);
|
|
12
|
-
var defaultImg = (0, jsx_runtime_1.jsx)("img", { src: "https://www.kiralarsin.com/actionTimeCircle.svg",
|
|
12
|
+
var defaultImg = (0, jsx_runtime_1.jsx)("img", { src: "https://www.kiralarsin.com/actionTimeCircle.svg", alt: "test" });
|
|
13
13
|
exports.default = {
|
|
14
14
|
title: 'Components/Action Button',
|
|
15
15
|
component: ActionButton_1.default,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReviewCardProps } from "./props";
|
|
2
|
-
declare const ReviewCard: ({ image, description, name, logo, star, totalStar, title, onClick, date, }: ReviewCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const ReviewCard: ({ image, description, name, logo, star, totalStar, title, onClick, date, hasBorder, }: ReviewCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ReviewCard;
|
|
@@ -29,7 +29,7 @@ var ReviewCard_styled_1 = require("./ReviewCard.styled");
|
|
|
29
29
|
var Icon_1 = __importDefault(require("../Icon/Icon"));
|
|
30
30
|
var classnames_1 = __importDefault(require("classnames"));
|
|
31
31
|
var ReviewCard = function (_a) {
|
|
32
|
-
var _b = _a.image, image = _b === void 0 ? props_1.ReviewCardDefault.image : _b, _c = _a.description, description = _c === void 0 ? props_1.ReviewCardDefault.description : _c, _d = _a.name, name = _d === void 0 ? props_1.ReviewCardDefault.name : _d, _e = _a.logo, logo = _e === void 0 ? props_1.ReviewCardDefault.logo : _e, _f = _a.star, star = _f === void 0 ? props_1.ReviewCardDefault.star : _f, _g = _a.totalStar, totalStar = _g === void 0 ? props_1.ReviewCardDefault.totalStar : _g, _h = _a.title, title = _h === void 0 ? props_1.ReviewCardDefault.title : _h, _j = _a.onClick, onClick = _j === void 0 ? props_1.ReviewCardDefault.onClick : _j, _k = _a.date, date = _k === void 0 ? props_1.ReviewCardDefault.date : _k;
|
|
33
|
-
return ((0, jsx_runtime_1.jsx)(ReviewCard_styled_1.ReviewCardStyled, __assign({ onClick: onClick }, { children: (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)(ReviewCard_styled_1.ImgWrapper, { children: [(0, jsx_runtime_1.jsx)(
|
|
32
|
+
var _b = _a.image, image = _b === void 0 ? props_1.ReviewCardDefault.image : _b, _c = _a.description, description = _c === void 0 ? props_1.ReviewCardDefault.description : _c, _d = _a.name, name = _d === void 0 ? props_1.ReviewCardDefault.name : _d, _e = _a.logo, logo = _e === void 0 ? props_1.ReviewCardDefault.logo : _e, _f = _a.star, star = _f === void 0 ? props_1.ReviewCardDefault.star : _f, _g = _a.totalStar, totalStar = _g === void 0 ? props_1.ReviewCardDefault.totalStar : _g, _h = _a.title, title = _h === void 0 ? props_1.ReviewCardDefault.title : _h, _j = _a.onClick, onClick = _j === void 0 ? props_1.ReviewCardDefault.onClick : _j, _k = _a.date, date = _k === void 0 ? props_1.ReviewCardDefault.date : _k, _l = _a.hasBorder, hasBorder = _l === void 0 ? props_1.ReviewCardDefault.hasBorder : _l;
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)(ReviewCard_styled_1.ReviewCardStyled, __assign({ onClick: onClick, "$hasBorder": hasBorder }, { children: (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)(ReviewCard_styled_1.ImgWrapper, { children: [image && (0, jsx_runtime_1.jsx)(ReviewCard_styled_1.Image, { children: image }), (0, jsx_runtime_1.jsxs)(ReviewCard_styled_1.Detail, { children: [title && ((0, jsx_runtime_1.jsx)(ReviewCard_styled_1.Title, { children: title })), (0, jsx_runtime_1.jsx)(ReviewCard_styled_1.Stars, { children: __spreadArray([], Array(totalStar), true).map(function (value, key) { return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)('star', { 'isFilled': key < star }) }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { color: key < star ? 'var(--yellowDark)' : 'var(--dark-opacity-10)', name: "StarfullXSmall" }) }), key)); }) })] })] }), (0, jsx_runtime_1.jsx)(ReviewCard_styled_1.Description, __assign({ "$hasBorder": hasBorder }, { children: description })), (0, jsx_runtime_1.jsx)(ReviewCard_styled_1.Line, {}), (0, jsx_runtime_1.jsxs)(ReviewCard_styled_1.Bottom, { children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(ReviewCard_styled_1.CustomerName, { children: name }), logo && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ReviewCard_styled_1.HorizontalLine, {}), (0, jsx_runtime_1.jsx)(ReviewCard_styled_1.Logo, { children: logo })] }))] }), date && (0, jsx_runtime_1.jsx)(ReviewCard_styled_1.Date, { children: date })] })] }) })));
|
|
34
34
|
};
|
|
35
35
|
exports.default = ReviewCard;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { ReviewCardStyledProps } from "./props";
|
|
3
3
|
export declare const ReviewCardStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ReviewCardStyledProps> & ReviewCardStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ReviewCardStyledProps> & ReviewCardStyledProps, never>>> & string;
|
|
4
4
|
export declare const ImgWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ReviewCardStyledProps> & ReviewCardStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ReviewCardStyledProps> & ReviewCardStyledProps, never>>> & string;
|
|
5
|
+
export declare const Image: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ReviewCardStyledProps> & ReviewCardStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ReviewCardStyledProps> & ReviewCardStyledProps, never>>> & string;
|
|
5
6
|
export declare const Detail: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ReviewCardStyledProps> & ReviewCardStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ReviewCardStyledProps> & ReviewCardStyledProps, never>>> & string;
|
|
6
7
|
export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, keyof ReviewCardStyledProps> & ReviewCardStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, keyof ReviewCardStyledProps> & ReviewCardStyledProps, never>>> & string;
|
|
7
8
|
export declare const Stars: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ReviewCardStyledProps> & ReviewCardStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ReviewCardStyledProps> & ReviewCardStyledProps, never>>> & string;
|
|
@@ -7,18 +7,31 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
7
7
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
8
|
};
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.Date = exports.CustomerName = exports.HorizontalLine = exports.Logo = exports.Bottom = exports.Line = exports.Description = exports.Stars = exports.Title = exports.Detail = exports.ImgWrapper = exports.ReviewCardStyled = void 0;
|
|
10
|
+
exports.Date = exports.CustomerName = exports.HorizontalLine = exports.Logo = exports.Bottom = exports.Line = exports.Description = exports.Stars = exports.Title = exports.Detail = exports.Image = exports.ImgWrapper = exports.ReviewCardStyled = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.ReviewCardStyled = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-shadow:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
|
|
12
|
+
exports.ReviewCardStyled = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-shadow: ", ";\n border: ", ";\n border-radius: 0.5rem;\n padding: 1.5rem;\n transition: all .2s ease;\n cursor: pointer;\n &:hover{\n box-shadow: ", ";\n }\n"], ["\n box-shadow: ", ";\n border: ", ";\n border-radius: 0.5rem;\n padding: 1.5rem;\n transition: all .2s ease;\n cursor: pointer;\n &:hover{\n box-shadow: ", ";\n }\n"])), function (_a) {
|
|
13
|
+
var $hasBorder = _a.$hasBorder;
|
|
14
|
+
return ($hasBorder ? 'none' : '0 6px 30px 0 var(--box-shadow-color)');
|
|
15
|
+
}, function (_a) {
|
|
16
|
+
var $hasBorder = _a.$hasBorder;
|
|
17
|
+
return ($hasBorder ? '1px solid var(--dark-opacity-10)' : 'none');
|
|
18
|
+
}, function (_a) {
|
|
19
|
+
var $hasBorder = _a.$hasBorder;
|
|
20
|
+
return ($hasBorder ? 'none' : '0 4px 15px 0 var(--dark-shadow-color)');
|
|
21
|
+
});
|
|
22
|
+
exports.ImgWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: flex-end;\n justify-content: flex-start;\n"], ["\n display: flex;\n align-items: flex-end;\n justify-content: flex-start;\n"])));
|
|
23
|
+
exports.Image = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 64px;\n height: 64px;\n border: 1px solid var(--dark-opacity-5);\n border-radius: 0.5rem;\n position: relative;\n margin-right: 1rem;\n overflow: hidden;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 1 0 auto;\n max-width: 64px;\n * {\n display: block !important;\n padding: 4px;\n }\n"], ["\n width: 64px;\n height: 64px;\n border: 1px solid var(--dark-opacity-5);\n border-radius: 0.5rem;\n position: relative;\n margin-right: 1rem;\n overflow: hidden;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 1 0 auto;\n max-width: 64px;\n * {\n display: block !important;\n padding: 4px;\n }\n"])));
|
|
24
|
+
exports.Detail = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n"], ["\n"])));
|
|
25
|
+
exports.Title = styled_components_1.default.strong(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin-bottom: 0.5rem;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n color: var(--dark-opacity-75);\n font : var(--body-bold-14-17);\n min-height: 34px;\n"], ["\n margin-bottom: 0.5rem;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n color: var(--dark-opacity-75);\n font : var(--body-bold-14-17);\n min-height: 34px;\n"])));
|
|
26
|
+
exports.Stars = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n .star{\n + .star{\n margin-left: -2px;\n }\n div{\n display: block;\n }\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n .star{\n + .star{\n margin-left: -2px;\n }\n div{\n display: block;\n }\n }\n"])));
|
|
27
|
+
exports.Description = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n font: var(--body-medium-14-17);\n color: var(--dark-opacity-75);\n margin: ", ";\n overflow: hidden;\n position: relative;\n min-height: 68px;\n display: -webkit-box;\n -webkit-line-clamp: 4;\n -webkit-box-orient: vertical;\n"], ["\n font: var(--body-medium-14-17);\n color: var(--dark-opacity-75);\n margin: ", ";\n overflow: hidden;\n position: relative;\n min-height: 68px;\n display: -webkit-box;\n -webkit-line-clamp: 4;\n -webkit-box-orient: vertical;\n"])), function (_a) {
|
|
28
|
+
var $hasBorder = _a.$hasBorder;
|
|
29
|
+
return ($hasBorder ? '0.5rem 0 1.5rem 0' : '1rem 0 1.5rem 0');
|
|
30
|
+
});
|
|
31
|
+
exports.Line = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n border-bottom: 1px solid var(--icon-shadow-color);\n margin-bottom: 1rem;\n"], ["\n border-bottom: 1px solid var(--icon-shadow-color);\n margin-bottom: 1rem;\n"])));
|
|
32
|
+
exports.Bottom = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n >div{\n display: flex;\n align-items: center;\n justify-content: flex-start;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n >div{\n display: flex;\n align-items: center;\n justify-content: flex-start;\n }\n"])));
|
|
33
|
+
exports.Logo = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n * {\n display: block !important;\n }\n"], ["\n * {\n display: block !important;\n }\n"])));
|
|
34
|
+
exports.HorizontalLine = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n border-right: 1px solid var(--dark-opacity-75);\n height: 0.5rem;\n margin: 0 0.5rem;\n"], ["\n border-right: 1px solid var(--dark-opacity-75);\n height: 0.5rem;\n margin: 0 0.5rem;\n"])));
|
|
35
|
+
exports.CustomerName = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n font: var(--caption-medium-10-12);\n color: var(--dark-opacity-75);\n"], ["\n font: var(--caption-medium-10-12);\n color: var(--dark-opacity-75);\n"])));
|
|
36
|
+
exports.Date = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n font: var(--caption-medium-10-12);\n color: var(--dark-opacity-75);\n"], ["\n font: var(--caption-medium-10-12);\n color: var(--dark-opacity-75);\n"])));
|
|
37
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13;
|
|
@@ -9,6 +9,7 @@ interface ReviewCard {
|
|
|
9
9
|
title?: string;
|
|
10
10
|
date?: string;
|
|
11
11
|
onClick?: () => void;
|
|
12
|
+
hasBorder?: boolean;
|
|
12
13
|
}
|
|
13
14
|
export declare const ReviewCardDefault: ReviewCard;
|
|
14
15
|
export interface ReviewCardStyledProps {
|
|
@@ -21,6 +22,7 @@ export interface ReviewCardStyledProps {
|
|
|
21
22
|
$title?: string;
|
|
22
23
|
$onClick?: () => void;
|
|
23
24
|
$date?: string;
|
|
25
|
+
$hasBorder?: boolean;
|
|
24
26
|
}
|
|
25
27
|
export type ReviewCardProps = typeof ReviewCardDefault;
|
|
26
28
|
export {};
|
|
@@ -21,6 +21,9 @@ declare const _default: {
|
|
|
21
21
|
date: {
|
|
22
22
|
control: string;
|
|
23
23
|
};
|
|
24
|
+
hasBorder: {
|
|
25
|
+
control: string;
|
|
26
|
+
};
|
|
24
27
|
onClick: {
|
|
25
28
|
action: string;
|
|
26
29
|
};
|
|
@@ -105,6 +108,33 @@ export declare const WithoutDescription: {
|
|
|
105
108
|
onClick: () => void;
|
|
106
109
|
};
|
|
107
110
|
};
|
|
111
|
+
export declare const WithoutImageAndTitle: {
|
|
112
|
+
args: {
|
|
113
|
+
image: any;
|
|
114
|
+
title: any;
|
|
115
|
+
star: number;
|
|
116
|
+
totalStar: number;
|
|
117
|
+
description: string;
|
|
118
|
+
name: string;
|
|
119
|
+
logo: import("react/jsx-runtime").JSX.Element;
|
|
120
|
+
date: string;
|
|
121
|
+
onClick: () => void;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
export declare const WithBorder: {
|
|
125
|
+
args: {
|
|
126
|
+
hasBorder: boolean;
|
|
127
|
+
image: import("react/jsx-runtime").JSX.Element;
|
|
128
|
+
star: number;
|
|
129
|
+
totalStar: number;
|
|
130
|
+
title: string;
|
|
131
|
+
description: string;
|
|
132
|
+
name: string;
|
|
133
|
+
logo: import("react/jsx-runtime").JSX.Element;
|
|
134
|
+
date: string;
|
|
135
|
+
onClick: () => void;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
108
138
|
export declare const ShortDescription: {
|
|
109
139
|
args: {
|
|
110
140
|
description: string;
|
|
@@ -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.Minimal = exports.ShortDescription = exports.WithoutDescription = exports.WithoutDate = exports.WithoutLogo = exports.OneStar = exports.FiveStars = exports.Default = void 0;
|
|
17
|
+
exports.Minimal = exports.ShortDescription = exports.WithBorder = exports.WithoutImageAndTitle = exports.WithoutDescription = exports.WithoutDate = exports.WithoutLogo = exports.OneStar = exports.FiveStars = exports.Default = void 0;
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
19
|
var ReviewCard_1 = __importDefault(require("../ReviewCard"));
|
|
20
20
|
var defaultImage = (0, jsx_runtime_1.jsx)("img", { height: "64px", src: "https://kiralarsin.s3.eu-central-1.amazonaws.com/products/4MOMSMAMAROOANAKUC_1.jpg", alt: "test" });
|
|
@@ -40,6 +40,7 @@ exports.default = {
|
|
|
40
40
|
description: { control: 'text' },
|
|
41
41
|
name: { control: 'text' },
|
|
42
42
|
date: { control: 'text' },
|
|
43
|
+
hasBorder: { control: 'boolean' },
|
|
43
44
|
onClick: { action: 'clicked' },
|
|
44
45
|
}
|
|
45
46
|
};
|
|
@@ -61,6 +62,12 @@ exports.WithoutDate = {
|
|
|
61
62
|
exports.WithoutDescription = {
|
|
62
63
|
args: __assign(__assign({}, defaultArgs), { description: null }),
|
|
63
64
|
};
|
|
65
|
+
exports.WithoutImageAndTitle = {
|
|
66
|
+
args: __assign(__assign({}, defaultArgs), { image: null, title: null }),
|
|
67
|
+
};
|
|
68
|
+
exports.WithBorder = {
|
|
69
|
+
args: __assign(__assign({}, defaultArgs), { hasBorder: true }),
|
|
70
|
+
};
|
|
64
71
|
exports.ShortDescription = {
|
|
65
72
|
args: __assign(__assign({}, defaultArgs), { description: "Kısa bir değerlendirme." }),
|
|
66
73
|
};
|
|
@@ -61,7 +61,7 @@ var Loader_1 = __importDefault(require("../Loader"));
|
|
|
61
61
|
var Checkbox_1 = __importDefault(require("../Checkbox"));
|
|
62
62
|
var SelectBox = (0, react_1.forwardRef)(function (_a, ref) {
|
|
63
63
|
var _b, _c, _d, _e;
|
|
64
|
-
var _f = _a.isSearchable, isSearchable = _f === void 0 ? props_1.SelectBoxDefault.isSearchable : _f, _g = _a.menuIsOpen, menuIsOpen = _g === void 0 ? props_1.SelectBoxDefault.menuIsOpen : _g, _h = _a.label, label = _h === void 0 ? props_1.SelectBoxDefault.label : _h, _j = _a.width, width = _j === void 0 ? props_1.SelectBoxDefault.width : _j, _k = _a.
|
|
64
|
+
var _f = _a.isSearchable, isSearchable = _f === void 0 ? props_1.SelectBoxDefault.isSearchable : _f, _g = _a.menuIsOpen, menuIsOpen = _g === void 0 ? props_1.SelectBoxDefault.menuIsOpen : _g, _h = _a.label, label = _h === void 0 ? props_1.SelectBoxDefault.label : _h, _j = _a.width, width = _j === void 0 ? props_1.SelectBoxDefault.width : _j, _k = _a.menuWidth, menuWidth = _k === void 0 ? props_1.SelectBoxDefault.menuWidth : _k, _l = _a.menuAlign, menuAlign = _l === void 0 ? props_1.SelectBoxDefault.menuAlign : _l, _m = _a.hasMenuShadow, hasMenuShadow = _m === void 0 ? props_1.SelectBoxDefault.hasMenuShadow : _m, _o = _a.name, name = _o === void 0 ? props_1.SelectBoxDefault.name : _o, _p = _a.placeholder, placeholder = _p === void 0 ? props_1.SelectBoxDefault.placeholder : _p, _q = _a.instanceId, instanceId = _q === void 0 ? props_1.SelectBoxDefault.instanceId : _q, _r = _a.options, options = _r === void 0 ? props_1.SelectBoxDefault.options : _r, _s = _a.lightBg, lightBg = _s === void 0 ? props_1.SelectBoxDefault.lightBg : _s, _t = _a.onChange, onChange = _t === void 0 ? props_1.SelectBoxDefault.onChange : _t, _u = _a.filterOption, filterOption = _u === void 0 ? props_1.SelectBoxDefault.filterOption : _u, _v = _a.hasError, hasError = _v === void 0 ? props_1.SelectBoxDefault.hasError : _v, _w = _a.errorMessage, errorMessage = _w === void 0 ? props_1.SelectBoxDefault.errorMessage : _w, _x = _a.maxOptionListHeight, maxOptionListHeight = _x === void 0 ? props_1.SelectBoxDefault.maxOptionListHeight : _x, _y = _a.isAsync, isAsync = _y === void 0 ? props_1.SelectBoxDefault.isAsync : _y, _z = _a.hasShowDropdownIcon, hasShowDropdownIcon = _z === void 0 ? props_1.SelectBoxDefault.hasShowDropdownIcon : _z, _0 = _a.hasShowSearchIcon, hasShowSearchIcon = _0 === void 0 ? props_1.SelectBoxDefault.hasShowSearchIcon : _0, _1 = _a.autoComplete, autoComplete = _1 === void 0 ? props_1.SelectBoxDefault.autoComplete : _1, _2 = _a.menuPlacement, menuPlacement = _2 === void 0 ? props_1.SelectBoxDefault.menuPlacement : _2, _3 = _a.id, id = _3 === void 0 ? props_1.SelectBoxDefault.id : _3, _4 = _a.isClearable, isClearable = _4 === void 0 ? props_1.SelectBoxDefault.isClearable : _4, _5 = _a.size, size = _5 === void 0 ? props_1.SelectBoxDefault.size : _5, _6 = _a.isMulti, isMulti = _6 === void 0 ? props_1.SelectBoxDefault.isMulti : _6, _7 = _a.menuPosition, menuPosition = _7 === void 0 ? props_1.SelectBoxDefault.menuPosition : _7, _8 = _a.hasSelectAll, hasSelectAll = _8 === void 0 ? props_1.SelectBoxDefault.hasSelectAll : _8, _9 = _a.selectAllLabel, selectAllLabel = _9 === void 0 ? props_1.SelectBoxDefault.selectAllLabel : _9, defaultValue = _a.defaultValue, other = __rest(_a, ["isSearchable", "menuIsOpen", "label", "width", "menuWidth", "menuAlign", "hasMenuShadow", "name", "placeholder", "instanceId", "options", "lightBg", "onChange", "filterOption", "hasError", "errorMessage", "maxOptionListHeight", "isAsync", "hasShowDropdownIcon", "hasShowSearchIcon", "autoComplete", "menuPlacement", "id", "isClearable", "size", "isMulti", "menuPosition", "hasSelectAll", "selectAllLabel", "defaultValue"]);
|
|
65
65
|
var CustomOption = react_1.default.forwardRef(function (props, ref) {
|
|
66
66
|
var _a;
|
|
67
67
|
var innerProps = props.innerProps, isDisabled = props.isDisabled, data = props.data, isFocused = props.isFocused, isSelected = props.isSelected, isMulti = props.isMulti, children = props.children // children is part of OptionProps, but we render custom content based on `data`
|
|
@@ -127,7 +127,7 @@ var SelectBox = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
127
127
|
if (!firstOption) {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
130
|
-
var firstLabel = firstOption.label || firstOption.title || '';
|
|
130
|
+
var firstLabel = firstOption.selectedLabel || firstOption.optionLabel || firstOption.label || firstOption.title || '';
|
|
131
131
|
// Add +N indicator if there are additional selections
|
|
132
132
|
var additionalCount = selectedValues.length - 1;
|
|
133
133
|
var additionalText = additionalCount > 0 ? " (+".concat(additionalCount, ")") : '';
|
|
@@ -145,19 +145,31 @@ var SelectBox = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
145
145
|
};
|
|
146
146
|
// Helper function to extract string label from option for search/filtering
|
|
147
147
|
var getOptionLabel = function (option) {
|
|
148
|
-
var _a, _b, _c, _d, _e;
|
|
148
|
+
var _a, _b, _c, _d, _e, _f;
|
|
149
149
|
if (!option)
|
|
150
150
|
return '';
|
|
151
|
+
if (typeof option.selectedLabel === 'string') {
|
|
152
|
+
return option.selectedLabel;
|
|
153
|
+
}
|
|
154
|
+
if (react_1.default.isValidElement(option.selectedLabel)) {
|
|
155
|
+
return ((_a = option.value) === null || _a === void 0 ? void 0 : _a.toString()) || '';
|
|
156
|
+
}
|
|
151
157
|
// If label is a React component, try to extract text or use a fallback
|
|
152
158
|
if (react_1.default.isValidElement(option.label)) {
|
|
153
159
|
// For React components, try to get text content or use value as fallback
|
|
154
|
-
return ((
|
|
160
|
+
return ((_b = option.value) === null || _b === void 0 ? void 0 : _b.toString()) || '';
|
|
155
161
|
}
|
|
156
162
|
if (react_1.default.isValidElement(option.optionLabel)) {
|
|
157
|
-
return ((
|
|
163
|
+
return ((_c = option.value) === null || _c === void 0 ? void 0 : _c.toString()) || '';
|
|
158
164
|
}
|
|
159
165
|
// Return string label or optionLabel
|
|
160
|
-
return ((
|
|
166
|
+
return ((_d = option.optionLabel) === null || _d === void 0 ? void 0 : _d.toString()) || ((_e = option.label) === null || _e === void 0 ? void 0 : _e.toString()) || ((_f = option.value) === null || _f === void 0 ? void 0 : _f.toString()) || '';
|
|
167
|
+
};
|
|
168
|
+
var formatOptionLabel = function (option, meta) {
|
|
169
|
+
if (meta.context === 'value') {
|
|
170
|
+
return (option === null || option === void 0 ? void 0 : option.selectedLabel) || (option === null || option === void 0 ? void 0 : option.optionLabel) || (option === null || option === void 0 ? void 0 : option.label);
|
|
171
|
+
}
|
|
172
|
+
return option === null || option === void 0 ? void 0 : option.label;
|
|
161
173
|
};
|
|
162
174
|
// Wrapper for filterOption to handle React component labels
|
|
163
175
|
var wrappedFilterOption = filterOption ? function (option, inputValue) {
|
|
@@ -166,21 +178,21 @@ var SelectBox = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
166
178
|
return filterOption(normalizedOption, inputValue);
|
|
167
179
|
} : undefined;
|
|
168
180
|
// Remove filterOption from other to avoid duplicate props
|
|
169
|
-
var
|
|
170
|
-
return ((0, jsx_runtime_1.jsxs)(SelectBox_styled_1.Container, __assign({ "$width": width, "$hasError": hasError, "$maxOptionListHeight": maxOptionListHeight, "$hasShowDropdownIcon": hasShowDropdownIcon, "$MenuPlacement": menuPlacement, "$size": size, "$isMulti": isMulti, "$menuPosition": menuPosition }, { children: [label && ((0, jsx_runtime_1.jsx)("div", __assign({ className: "top" }, { children: (0, jsx_runtime_1.jsx)("label", __assign({ htmlFor: id }, { children: label })) }))), (0, jsx_runtime_1.jsx)("div", __assign({ className: "select" }, { children: isAsync ? ((0, jsx_runtime_1.jsx)(async_1.default, __assign({ components: {
|
|
181
|
+
var _10 = other, _ = _10.filterOption, restOther = __rest(_10, ["filterOption"]);
|
|
182
|
+
return ((0, jsx_runtime_1.jsxs)(SelectBox_styled_1.Container, __assign({ "$width": width, "$menuWidth": menuWidth, "$menuAlign": menuAlign, "$hasMenuShadow": hasMenuShadow, "$hasError": hasError, "$maxOptionListHeight": maxOptionListHeight, "$hasShowDropdownIcon": hasShowDropdownIcon, "$MenuPlacement": menuPlacement, "$size": size, "$isMulti": isMulti, "$menuPosition": menuPosition }, { children: [label && ((0, jsx_runtime_1.jsx)("div", __assign({ className: "top" }, { children: (0, jsx_runtime_1.jsx)("label", __assign({ htmlFor: id }, { children: label })) }))), (0, jsx_runtime_1.jsx)("div", __assign({ className: "select" }, { children: isAsync ? ((0, jsx_runtime_1.jsx)(async_1.default, __assign({ components: {
|
|
171
183
|
Option: CustomOption,
|
|
172
184
|
Input: Input,
|
|
173
185
|
DropdownIndicator: DropdownIndicator,
|
|
174
186
|
MenuList: MenuList,
|
|
175
187
|
LoadingIndicator: LoadingIndicator,
|
|
176
188
|
MultiValue: MultiValue
|
|
177
|
-
}, options: options || [], instanceId: instanceId, getOptionLabel: getOptionLabel, filterOption: wrappedFilterOption, isSearchable: isSearchable, name: name, menuIsOpen: menuIsOpen, onChange: onChange, classNamePrefix: "customSelect", className: (0, classnames_1.default)("customSelect", (_b = {}, _b['isSearchable'] = isSearchable && hasShowSearchIcon, _b), (_c = {}, _c['lightBg'] = lightBg, _c)), placeholder: placeholder, noOptionsMessage: function () { return 'Sonuç bulunamadı'; }, loadingMessage: function () { return 'Sonuç bulunamadı'; }, captureMenuScroll: false, isClearable: isClearable, defaultValue: defaultValue, isMulti: isMulti, closeMenuOnSelect: !isMulti }, restOther, { ref: ref, id: id }))) : ((0, jsx_runtime_1.jsx)(react_select_1.default, __assign({ components: {
|
|
189
|
+
}, options: options || [], instanceId: instanceId, getOptionLabel: getOptionLabel, formatOptionLabel: formatOptionLabel, filterOption: wrappedFilterOption, isSearchable: isSearchable, name: name, menuIsOpen: menuIsOpen, onChange: onChange, classNamePrefix: "customSelect", className: (0, classnames_1.default)("customSelect", (_b = {}, _b['isSearchable'] = isSearchable && hasShowSearchIcon, _b), (_c = {}, _c['lightBg'] = lightBg, _c)), placeholder: placeholder, noOptionsMessage: function () { return 'Sonuç bulunamadı'; }, loadingMessage: function () { return 'Sonuç bulunamadı'; }, captureMenuScroll: false, isClearable: isClearable, defaultValue: defaultValue, isMulti: isMulti, closeMenuOnSelect: !isMulti }, restOther, { ref: ref, id: id }))) : ((0, jsx_runtime_1.jsx)(react_select_1.default, __assign({ components: {
|
|
178
190
|
Option: CustomOption,
|
|
179
191
|
Input: Input,
|
|
180
192
|
DropdownIndicator: DropdownIndicator,
|
|
181
193
|
MenuList: MenuList,
|
|
182
194
|
LoadingIndicator: LoadingIndicator,
|
|
183
195
|
MultiValue: MultiValue
|
|
184
|
-
}, options: options || [], instanceId: instanceId, getOptionLabel: getOptionLabel, filterOption: wrappedFilterOption, isSearchable: isSearchable, name: name, menuIsOpen: menuIsOpen, onChange: onChange, classNamePrefix: "customSelect", className: (0, classnames_1.default)("customSelect", (_d = {}, _d['isSearchable'] = isSearchable && hasShowSearchIcon, _d), (_e = {}, _e['lightBg'] = lightBg, _e)), placeholder: placeholder, noOptionsMessage: function () { return 'Sonuç bulunamadı'; }, captureMenuScroll: false, isClearable: isClearable, defaultValue: defaultValue, isMulti: isMulti, closeMenuOnSelect: !isMulti, hideSelectedOptions: false }, restOther, { ref: ref, id: id }))) })), hasError && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: "error" }, { children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { name: "SwitchPassive" }), (0, jsx_runtime_1.jsx)("p", { children: errorMessage })] })))] })));
|
|
196
|
+
}, options: options || [], instanceId: instanceId, getOptionLabel: getOptionLabel, formatOptionLabel: formatOptionLabel, filterOption: wrappedFilterOption, isSearchable: isSearchable, name: name, menuIsOpen: menuIsOpen, onChange: onChange, classNamePrefix: "customSelect", className: (0, classnames_1.default)("customSelect", (_d = {}, _d['isSearchable'] = isSearchable && hasShowSearchIcon, _d), (_e = {}, _e['lightBg'] = lightBg, _e)), placeholder: placeholder, noOptionsMessage: function () { return 'Sonuç bulunamadı'; }, captureMenuScroll: false, isClearable: isClearable, defaultValue: defaultValue, isMulti: isMulti, closeMenuOnSelect: !isMulti, hideSelectedOptions: false }, restOther, { ref: ref, id: id }))) })), hasError && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: "error" }, { children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { name: "SwitchPassive" }), (0, jsx_runtime_1.jsx)("p", { children: errorMessage })] })))] })));
|
|
185
197
|
});
|
|
186
198
|
exports.default = SelectBox;
|
|
@@ -14,7 +14,7 @@ var styled_components_1 = __importDefault(require("styled-components"));
|
|
|
14
14
|
var Icon_1 = __importDefault(require("../Icon/Icon"));
|
|
15
15
|
var svgToBase64_1 = __importDefault(require("./../../utils/svgToBase64"));
|
|
16
16
|
var devices_1 = require("../../constants/devices");
|
|
17
|
-
exports.Container = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* Checkbox styling for multi-select options */\n .option-container {\n display: flex;\n align-items: center;\n width: 100%;\n }\n \n .checkbox-container {\n display: flex;\n align-items: center;\n }\n \n .custom-checkbox {\n width: 16px;\n height: 16px;\n border: 1px solid var(--dark-opacity-10);\n border-radius: 3px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: white;\n }\n \n .custom-checkbox.checked {\n background-color: var(--primary);\n border-color: var(--primary);\n }\n \n .option-content {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n }\n display: flex;\n flex-direction: column;\n width: ", ";\n\n .top {\n display: flex;\n margin-bottom: 16px;\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 [data-simplebar] {\n max-height: ", " !important;\n height: auto !important;\n padding: 0 !important;\n\n .simplebar-track.simplebar-vertical {\n width: 9px !important;\n }\n }\n\n .error {\n display: flex;\n align-items: center;\n margin-top: 8px;\n color: var(--red);\n\n svg {\n margin-right: 8px;\n }\n\n p {\n margin: 0;\n font: var(--caption-semi-bold-11-13);\n }\n }\n\n .select {\n position: relative;\n z-index: 2;\n .customSelect {\n &:is(.lightBg) {\n .customSelect__control {\n background-color: white;\n }\n }\n\n .customSelect__control {\n background-color: var(--dark-opacity-3);\n border: 0;\n padding: ", ";\n cursor: pointer;\n\n &:before {\n content: \"\";\n position: absolute;\n inset: 0;\n user-select: none;\n pointer-events: none;\n border-width: ", ";\n border-style: solid;\n border-radius: 0.5rem;\n border-color: ", ";\n }\n ", "\n /*&:hover {\n &:before{\n border-color: var(--primary);\n border-width: 2px;\n }\n }*/\n\n .customSelect__value-container {\n padding: 0;\n min-height: ", ";\n\n &:is(.customSelect__value-container--is-multi) {\n display: block;\n padding: 1rem 0;\n }\n\n .customSelect__multi-value {\n border: 1px solid var(--grey-10);\n border-radius: 0.25rem;\n background-color: var(--dark-opacity-3);\n margin: 0;\n justify-content: space-between;\n display: grid;\n grid-template-columns: 1fr auto;\n position: relative;\n z-index: 5;\n + .customSelect__multi-value {\n margin-top: 0.5rem;\n }\n\n .customSelect__multi-value__label {\n font: var(--body-semi-bold-13-16); \n white-space: nowrap;\n border-radius: 2px;\n color: hsl(0, 0%, 20%);\n padding: 3px 3px 3px 6px;\n box-sizing: border-box;\n display: grid;\n align-items: center;\n grid-template-columns: auto auto;\n justify-content: flex-start;\n span{\n overflow: hidden;\n text-overflow: ellipsis;\n &:nth-child(2){\n margin-left: 0.25rem;\n }\n }\n }\n\n .customSelect__multi-value__remove {\n background-color: transparent !important;\n color: var(--dark) !important;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n border-radius: 2px;\n padding-left: 4px;\n padding-right: 4px;\n box-sizing: border-box;\n svg{\n width: 1rem;\n height: 1rem;\n }\n }\n }\n\n .customSelect__placeholder {\n font: var(--body-semi-bold-14-17);\n color: ", ";\n margin: 0;\n line-height: 1.5rem;\n }\n\n .customSelect__single-value {\n margin: 0;\n padding: 0;\n font: var(--body-semi-bold-14-17);\n color: ", ";\n }\n\n .customSelect__input-container {\n margin: 0;\n padding: 0;\n position: absolute;\n bottom: 0;\n top: 0;\n margin-top: 0;\n width: 100% !important;\n display: block !important;\n &:after {\n display: none;\n }\n\n input {\n font: var(--body-semi-bold-14-17) !important;\n width: 100% !important;\n display: block !important;\n height: 100% !important;\n }\n }\n }\n .customSelect__value-container--has-value{\n .customSelect__input-container {\n margin-top: ", " !important;\n //position: static !important;\n }\n }\n .customSelect__indicators{\n height: ", ";\n }\n .customSelect__indicator {\n padding: 0;\n //margin: 0 0 0 0.5rem;\n width: 1.5rem;\n height: 1.5rem;\n transition: all .2s ease;\n align-items: center;\n justify-content: center;\n &:is(.customSelect__dropdown-indicator) {\n ", ";\n }\n\n &:is(.customSelect__clear-indicator) {\n width: 1.5rem;\n height: 1.5rem;\n display: block !important;\n background-image: url('", "');\n background-repeat: no-repeat;\n background-position: center center;\n svg {\n display: none;\n }\n\n ~ .customSelect__dropdown-indicator {\n display: none;\n }\n }\n\n div {\n display: block;\n }\n }\n\n .customSelect__indicator-separator {\n display: none;\n }\n .customSelect__loading-indicator{\n width: 1.5rem;\n span{\n display: none;\n }\n ~ *{\n display: none !important;\n ~ *{\n display: none !important;\n }\n }\n }\n }\n\n &:is(.isSearchable) {\n .customSelect__value-container {\n background-image: url('data:image/svg+xml;charset=utf-8,%3C%3Fxml%20version%3D%221.0%22%20standalone%3D%22no%22%3F%3E%0D%0A%3Csvg%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%2216px%22%20height%3D%2216px%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20name%3D%22Search%22%3E%3Cg%20id%3D%22Search%22%3E%3Ccircle%20id%3D%22Ellipse_739%22%20cx%3D%227.33203%22%20cy%3D%227.33398%22%20r%3D%226%22%20stroke%3D%22%23", "%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C%2Fcircle%3E%3Cpath%20id%3D%22Line_181%22%20d%3D%22M12%2012L14.6667%2014.6667%22%20stroke%3D%22%23", "%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E');\n background-repeat: no-repeat;\n background-position: 0 center;\n padding: 11px 24px 11px 2rem;\n\n &.customSelect__value-container--has-value {\n background-image: ", ";\n }\n }\n }\n .customSelect__control--is-focused {\n border-color: var(--primary);\n box-shadow: none;\n .customSelect__input-container {\n margin-top: 0 !important;\n }\n .customSelect__value-container--has-value{\n .customSelect__input-container {\n margin-top: ", ";\n position: static;\n\n input {\n\n }\n }\n }\n }\n\n .customSelect__menu-notice {\n text-align: start;\n padding: 1rem 1.5rem;\n font: var(--body-medium-14-17);\n color: var(--dark-opacity-50);\n }\n\n .customSelect__menu {\n margin: 0;\n border-radius: 0 0 0.5rem 0.5rem;\n box-shadow: none;\n border: 1px solid var(--dark-opacity-10);\n overflow: hidden;\n position: ", ";\n .customSelect__menu-list {\n padding: 0;\n max-height: ", ";\n //max-height: initial !important;\n //scroll-margin: 0 10px 30px 0;\n //scrollbar-color: var(--dark-opacity-10) var(--dark-opacity-10);\n //scrollbar-width: thin;\n\n &::-webkit-scrollbar {\n width: 4px;\n background-color: #ffffff;\n }\n\n &::-webkit-scrollbar-track {\n border-radius: 10px;\n background: white;\n }\n\n &::-webkit-scrollbar-thumb {\n border-radius: 10px;\n background: var(--dark-opacity-10);\n }\n\n .option {\n height: 70px;\n padding: 0 1.5rem;\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #fff;\n position: relative;\n color: var(--dark);\n cursor: pointer;\n box-sizing: border-box;\n\n &:hover, &:is(.customSelect__option--is-selected) {\n background-color: var(--dark-opacity-3) !important;\n\n @media only screen and ", " {\n //background-color: transparent !important;\n }\n }\n\n &:is(.customSelect__option--is-focused) {\n background-color: transparent;\n }\n\n &:active {\n background-color: var(--dark-opacity-3);\n\n @media only screen and ", " {\n background-color: transparent !important;\n }\n }\n\n &:is(.optionSm) {\n height: auto;\n min-height: 51px;\n padding: 1rem 1.5rem;\n }\n\n &:is(.fixedBottom) {\n position: sticky;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 4;\n\n strong {\n color: var(--dark-opacity-50);\n }\n }\n\n &:is(.fixedTop) {\n position: sticky;\n top: 0;\n left: 0;\n right: 0;\n z-index: 4;\n background-color: #fff;\n border-bottom: 1px solid var(--dark-opacity-10);\n \n &:hover {\n background-color: var(--dark-opacity-3) !important;\n }\n }\n\n > div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n\n .left {\n strong {\n display: block;\n font: var(--title-bold-16-19);\n }\n\n span {\n display: block;\n font: var(--body-medium-13-16);\n }\n }\n\n .right {\n display: flex;\n align-items: end;\n justify-content: flex-end;\n\n strong {\n display: block;\n font: var(--title-extra-bold-16-19);\n line-height: 17px;\n\n small {\n font: var(--body-extra-bold-14-17);\n }\n }\n\n span {\n display: block;\n font: var(--body-regular-13-16);\n margin-left: 0.2rem;\n }\n }\n }\n\n }\n }\n }\n\n &:is(.isSearchable) {\n .customSelect__control--menu-is-open {\n .customSelect__value-container {\n background-image: url('", "') !important;\n }\n }\n }\n\n .customSelect__control--menu-is-open {\n &:before {\n border-color: var(--primary);\n border-width: 2px;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n box-shadow: none;\n\n .customSelect__indicator {\n &:is(.customSelect__dropdown-indicator) {\n transform: rotate(180deg);\n }\n }\n\n .customSelect__value-container {\n .customSelect__placeholder {\n color: var(--dark-opacity-50);\n }\n }\n\n\n .customSelect__clear-indicator {\n display: none !important;\n }\n\n\n .customSelect__single-value {\n color: var(--dark) !important;\n }\n }\n }\n }\n\n .placement-top {\n .customSelect__menu {\n border-radius: 0.5rem 0.5rem 0 0 !important;\n top: auto !important;\n bottom: 100% !important;\n }\n\n .customSelect__control--menu-is-open {\n &:before {\n border-radius: 0 0 0.5rem 0.5rem !important;\n }\n }\n }\n"], ["\n /* Checkbox styling for multi-select options */\n .option-container {\n display: flex;\n align-items: center;\n width: 100%;\n }\n \n .checkbox-container {\n display: flex;\n align-items: center;\n }\n \n .custom-checkbox {\n width: 16px;\n height: 16px;\n border: 1px solid var(--dark-opacity-10);\n border-radius: 3px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: white;\n }\n \n .custom-checkbox.checked {\n background-color: var(--primary);\n border-color: var(--primary);\n }\n \n .option-content {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n }\n display: flex;\n flex-direction: column;\n width: ", ";\n\n .top {\n display: flex;\n margin-bottom: 16px;\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 [data-simplebar] {\n max-height: ", " !important;\n height: auto !important;\n padding: 0 !important;\n\n .simplebar-track.simplebar-vertical {\n width: 9px !important;\n }\n }\n\n .error {\n display: flex;\n align-items: center;\n margin-top: 8px;\n color: var(--red);\n\n svg {\n margin-right: 8px;\n }\n\n p {\n margin: 0;\n font: var(--caption-semi-bold-11-13);\n }\n }\n\n .select {\n position: relative;\n z-index: 2;\n .customSelect {\n &:is(.lightBg) {\n .customSelect__control {\n background-color: white;\n }\n }\n\n .customSelect__control {\n background-color: var(--dark-opacity-3);\n border: 0;\n padding: ", ";\n cursor: pointer;\n\n &:before {\n content: \"\";\n position: absolute;\n inset: 0;\n user-select: none;\n pointer-events: none;\n border-width: ", ";\n border-style: solid;\n border-radius: 0.5rem;\n border-color: ", ";\n }\n ", "\n /*&:hover {\n &:before{\n border-color: var(--primary);\n border-width: 2px;\n }\n }*/\n\n .customSelect__value-container {\n padding: 0;\n min-height: ", ";\n\n &:is(.customSelect__value-container--is-multi) {\n display: block;\n padding: 1rem 0;\n }\n\n .customSelect__multi-value {\n border: 1px solid var(--grey-10);\n border-radius: 0.25rem;\n background-color: var(--dark-opacity-3);\n margin: 0;\n justify-content: space-between;\n display: grid;\n grid-template-columns: 1fr auto;\n position: relative;\n z-index: 5;\n + .customSelect__multi-value {\n margin-top: 0.5rem;\n }\n\n .customSelect__multi-value__label {\n font: var(--body-semi-bold-13-16); \n white-space: nowrap;\n border-radius: 2px;\n color: hsl(0, 0%, 20%);\n padding: 3px 3px 3px 6px;\n box-sizing: border-box;\n display: grid;\n align-items: center;\n grid-template-columns: auto auto;\n justify-content: flex-start;\n span{\n overflow: hidden;\n text-overflow: ellipsis;\n &:nth-child(2){\n margin-left: 0.25rem;\n }\n }\n }\n\n .customSelect__multi-value__remove {\n background-color: transparent !important;\n color: var(--dark) !important;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n border-radius: 2px;\n padding-left: 4px;\n padding-right: 4px;\n box-sizing: border-box;\n svg{\n width: 1rem;\n height: 1rem;\n }\n }\n }\n\n .customSelect__placeholder {\n font: var(--body-semi-bold-14-17);\n color: ", ";\n margin: 0;\n line-height: 1.5rem;\n }\n\n .customSelect__single-value {\n margin: 0;\n padding: 0;\n font: var(--body-semi-bold-14-17);\n color: ", ";\n }\n\n .customSelect__input-container {\n margin: 0;\n padding: 0;\n position: absolute;\n bottom: 0;\n top: 0;\n margin-top: 0;\n width: 100% !important;\n display: block !important;\n &:after {\n display: none;\n }\n\n input {\n font: var(--body-semi-bold-14-17) !important;\n width: 100% !important;\n display: block !important;\n height: 100% !important;\n }\n }\n }\n .customSelect__value-container--has-value{\n .customSelect__input-container {\n margin-top: ", " !important;\n //position: static !important;\n }\n }\n .customSelect__indicators{\n height: ", ";\n }\n .customSelect__indicator {\n padding: 0;\n //margin: 0 0 0 0.5rem;\n width: 1.5rem;\n height: 1.5rem;\n transition: all .2s ease;\n align-items: center;\n justify-content: center;\n &:is(.customSelect__dropdown-indicator) {\n ", ";\n }\n\n &:is(.customSelect__clear-indicator) {\n width: 1.5rem;\n height: 1.5rem;\n display: block !important;\n background-image: url('", "');\n background-repeat: no-repeat;\n background-position: center center;\n svg {\n display: none;\n }\n\n ~ .customSelect__dropdown-indicator {\n display: none;\n }\n }\n\n div {\n display: block;\n }\n }\n\n .customSelect__indicator-separator {\n display: none;\n }\n .customSelect__loading-indicator{\n width: 1.5rem;\n span{\n display: none;\n }\n ~ *{\n display: none !important;\n ~ *{\n display: none !important;\n }\n }\n }\n }\n\n &:is(.isSearchable) {\n .customSelect__value-container {\n background-image: url('data:image/svg+xml;charset=utf-8,%3C%3Fxml%20version%3D%221.0%22%20standalone%3D%22no%22%3F%3E%0D%0A%3Csvg%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%2216px%22%20height%3D%2216px%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20name%3D%22Search%22%3E%3Cg%20id%3D%22Search%22%3E%3Ccircle%20id%3D%22Ellipse_739%22%20cx%3D%227.33203%22%20cy%3D%227.33398%22%20r%3D%226%22%20stroke%3D%22%23", "%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C%2Fcircle%3E%3Cpath%20id%3D%22Line_181%22%20d%3D%22M12%2012L14.6667%2014.6667%22%20stroke%3D%22%23", "%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E');\n background-repeat: no-repeat;\n background-position: 0 center;\n padding: 11px 24px 11px 2rem;\n\n &.customSelect__value-container--has-value {\n background-image: ", ";\n }\n }\n }\n .customSelect__control--is-focused {\n border-color: var(--primary);\n box-shadow: none;\n .customSelect__input-container {\n margin-top: 0 !important;\n }\n .customSelect__value-container--has-value{\n .customSelect__input-container {\n margin-top: ", ";\n position: static;\n\n input {\n\n }\n }\n }\n }\n\n .customSelect__menu-notice {\n text-align: start;\n padding: 1rem 1.5rem;\n font: var(--body-medium-14-17);\n color: var(--dark-opacity-50);\n }\n\n .customSelect__menu {\n margin: 0;\n border-radius: 0 0 0.5rem 0.5rem;\n box-shadow: none;\n border: 1px solid var(--dark-opacity-10);\n overflow: hidden;\n position: ", ";\n .customSelect__menu-list {\n padding: 0;\n max-height: ", ";\n //max-height: initial !important;\n //scroll-margin: 0 10px 30px 0;\n //scrollbar-color: var(--dark-opacity-10) var(--dark-opacity-10);\n //scrollbar-width: thin;\n\n &::-webkit-scrollbar {\n width: 4px;\n background-color: #ffffff;\n }\n\n &::-webkit-scrollbar-track {\n border-radius: 10px;\n background: white;\n }\n\n &::-webkit-scrollbar-thumb {\n border-radius: 10px;\n background: var(--dark-opacity-10);\n }\n\n .option {\n height: 70px;\n padding: 0 1.5rem;\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #fff;\n position: relative;\n color: var(--dark);\n cursor: pointer;\n box-sizing: border-box;\n\n &:hover, &:is(.customSelect__option--is-selected) {\n background-color: var(--dark-opacity-3) !important;\n\n @media only screen and ", " {\n //background-color: transparent !important;\n }\n }\n\n &:is(.customSelect__option--is-focused) {\n background-color: transparent;\n }\n\n &:active {\n background-color: var(--dark-opacity-3);\n\n @media only screen and ", " {\n background-color: transparent !important;\n }\n }\n\n &:is(.optionSm) {\n height: auto;\n min-height: 51px;\n padding: 1rem 1.5rem;\n }\n\n &:is(.fixedBottom) {\n position: sticky;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 4;\n\n strong {\n color: var(--dark-opacity-50);\n }\n }\n\n &:is(.fixedTop) {\n position: sticky;\n top: 0;\n left: 0;\n right: 0;\n z-index: 4;\n background-color: #fff;\n border-bottom: 1px solid var(--dark-opacity-10);\n \n &:hover {\n background-color: var(--dark-opacity-3) !important;\n }\n }\n\n > div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n\n .left {\n strong {\n display: block;\n font: var(--title-bold-16-19);\n }\n\n span {\n display: block;\n font: var(--body-medium-13-16);\n }\n }\n\n .right {\n display: flex;\n align-items: end;\n justify-content: flex-end;\n\n strong {\n display: block;\n font: var(--title-extra-bold-16-19);\n line-height: 17px;\n\n small {\n font: var(--body-extra-bold-14-17);\n }\n }\n\n span {\n display: block;\n font: var(--body-regular-13-16);\n margin-left: 0.2rem;\n }\n }\n }\n\n }\n }\n }\n\n &:is(.isSearchable) {\n .customSelect__control--menu-is-open {\n .customSelect__value-container {\n background-image: url('", "') !important;\n }\n }\n }\n\n .customSelect__control--menu-is-open {\n &:before {\n border-color: var(--primary);\n border-width: 2px;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n box-shadow: none;\n\n .customSelect__indicator {\n &:is(.customSelect__dropdown-indicator) {\n transform: rotate(180deg);\n }\n }\n\n .customSelect__value-container {\n .customSelect__placeholder {\n color: var(--dark-opacity-50);\n }\n }\n\n\n .customSelect__clear-indicator {\n display: none !important;\n }\n\n\n .customSelect__single-value {\n color: var(--dark) !important;\n }\n }\n }\n }\n\n .placement-top {\n .customSelect__menu {\n border-radius: 0.5rem 0.5rem 0 0 !important;\n top: auto !important;\n bottom: 100% !important;\n }\n\n .customSelect__control--menu-is-open {\n &:before {\n border-radius: 0 0 0.5rem 0.5rem !important;\n }\n }\n }\n"])), function (props) { return props.$width || '370px'; }, function (props) { return props.$maxOptionListHeight && props.$maxOptionListHeight; }, function (props) { return props.$hasShowDropdownIcon ? "0 1rem 0 1.5rem" : "0 1.5rem"; }, function (props) { return props.$hasError ? "2px" : "1px"; }, function (props) { return props.$hasError ? "var(--red)" : "var(--dark-opacity-10)"; }, function (props) { return props.$isMulti ? "\n &:is(.customSelect__control--menu-is-open){\n background-color: white !important;\n }\n " : ""; }, function (props) {
|
|
17
|
+
exports.Container = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* Checkbox styling for multi-select options */\n .option-container {\n display: flex;\n align-items: center;\n width: 100%;\n }\n \n .checkbox-container {\n display: flex;\n align-items: center;\n }\n \n .custom-checkbox {\n width: 16px;\n height: 16px;\n border: 1px solid var(--dark-opacity-10);\n border-radius: 3px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: white;\n }\n \n .custom-checkbox.checked {\n background-color: var(--primary);\n border-color: var(--primary);\n }\n \n .option-content {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n }\n display: flex;\n flex-direction: column;\n width: ", ";\n\n .top {\n display: flex;\n margin-bottom: 16px;\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 [data-simplebar] {\n max-height: ", " !important;\n height: auto !important;\n padding: 0 !important;\n\n .simplebar-track.simplebar-vertical {\n width: 9px !important;\n }\n }\n\n .error {\n display: flex;\n align-items: center;\n margin-top: 8px;\n color: var(--red);\n\n svg {\n margin-right: 8px;\n }\n\n p {\n margin: 0;\n font: var(--caption-semi-bold-11-13);\n }\n }\n\n .select {\n position: relative;\n z-index: 2;\n .customSelect {\n &:is(.lightBg) {\n .customSelect__control {\n background-color: white;\n }\n }\n\n .customSelect__control {\n background-color: var(--dark-opacity-3);\n border: 0;\n padding: ", ";\n cursor: pointer;\n\n &:before {\n content: \"\";\n position: absolute;\n inset: 0;\n user-select: none;\n pointer-events: none;\n border-width: ", ";\n border-style: solid;\n border-radius: 0.5rem;\n border-color: ", ";\n }\n ", "\n /*&:hover {\n &:before{\n border-color: var(--primary);\n border-width: 2px;\n }\n }*/\n\n .customSelect__value-container {\n padding: 0;\n min-height: ", ";\n\n &:is(.customSelect__value-container--is-multi) {\n display: block;\n padding: 1rem 0;\n }\n\n .customSelect__multi-value {\n border: 1px solid var(--grey-10);\n border-radius: 0.25rem;\n background-color: var(--dark-opacity-3);\n margin: 0;\n justify-content: space-between;\n display: grid;\n grid-template-columns: 1fr auto;\n position: relative;\n z-index: 5;\n + .customSelect__multi-value {\n margin-top: 0.5rem;\n }\n\n .customSelect__multi-value__label {\n font: var(--body-semi-bold-13-16); \n white-space: nowrap;\n border-radius: 2px;\n color: hsl(0, 0%, 20%);\n padding: 3px 3px 3px 6px;\n box-sizing: border-box;\n display: grid;\n align-items: center;\n grid-template-columns: auto auto;\n justify-content: flex-start;\n span{\n overflow: hidden;\n text-overflow: ellipsis;\n &:nth-child(2){\n margin-left: 0.25rem;\n }\n }\n }\n\n .customSelect__multi-value__remove {\n background-color: transparent !important;\n color: var(--dark) !important;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n border-radius: 2px;\n padding-left: 4px;\n padding-right: 4px;\n box-sizing: border-box;\n svg{\n width: 1rem;\n height: 1rem;\n }\n }\n }\n\n .customSelect__placeholder {\n font: var(--body-semi-bold-14-17);\n color: ", ";\n margin: 0;\n line-height: 1.5rem;\n }\n\n .customSelect__single-value {\n margin: 0;\n padding: 0;\n font: var(--body-semi-bold-14-17);\n color: ", ";\n }\n\n .customSelect__input-container {\n margin: 0;\n padding: 0;\n position: absolute;\n bottom: 0;\n top: 0;\n margin-top: 0;\n width: 100% !important;\n display: block !important;\n &:after {\n display: none;\n }\n\n input {\n font: var(--body-semi-bold-14-17) !important;\n width: 100% !important;\n display: block !important;\n height: 100% !important;\n }\n }\n }\n .customSelect__value-container--has-value{\n .customSelect__input-container {\n margin-top: ", " !important;\n //position: static !important;\n }\n }\n .customSelect__indicators{\n height: ", ";\n }\n .customSelect__indicator {\n padding: 0;\n //margin: 0 0 0 0.5rem;\n width: 1.5rem;\n height: 1.5rem;\n transition: all .2s ease;\n align-items: center;\n justify-content: center;\n &:is(.customSelect__dropdown-indicator) {\n ", ";\n }\n\n &:is(.customSelect__clear-indicator) {\n width: 1.5rem;\n height: 1.5rem;\n display: block !important;\n background-image: url('", "');\n background-repeat: no-repeat;\n background-position: center center;\n svg {\n display: none;\n }\n\n ~ .customSelect__dropdown-indicator {\n display: none;\n }\n }\n\n div {\n display: block;\n }\n }\n\n .customSelect__indicator-separator {\n display: none;\n }\n .customSelect__loading-indicator{\n width: 1.5rem;\n span{\n display: none;\n }\n ~ *{\n display: none !important;\n ~ *{\n display: none !important;\n }\n }\n }\n }\n\n &:is(.isSearchable) {\n .customSelect__value-container {\n background-image: url('data:image/svg+xml;charset=utf-8,%3C%3Fxml%20version%3D%221.0%22%20standalone%3D%22no%22%3F%3E%0D%0A%3Csvg%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%2216px%22%20height%3D%2216px%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20name%3D%22Search%22%3E%3Cg%20id%3D%22Search%22%3E%3Ccircle%20id%3D%22Ellipse_739%22%20cx%3D%227.33203%22%20cy%3D%227.33398%22%20r%3D%226%22%20stroke%3D%22%23", "%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C%2Fcircle%3E%3Cpath%20id%3D%22Line_181%22%20d%3D%22M12%2012L14.6667%2014.6667%22%20stroke%3D%22%23", "%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E');\n background-repeat: no-repeat;\n background-position: 0 center;\n padding: 11px 24px 11px 2rem;\n\n &.customSelect__value-container--has-value {\n background-image: ", ";\n }\n }\n }\n .customSelect__control--is-focused {\n border-color: var(--primary);\n box-shadow: none;\n .customSelect__input-container {\n margin-top: 0 !important;\n }\n .customSelect__value-container--has-value{\n .customSelect__input-container {\n margin-top: ", ";\n position: static;\n\n input {\n\n }\n }\n }\n }\n\n .customSelect__menu-notice {\n text-align: start;\n padding: 1rem 1.5rem;\n font: var(--body-medium-14-17);\n color: var(--dark-opacity-50);\n }\n\n .customSelect__menu {\n margin: 0;\n border-radius: 0 0 0.5rem 0.5rem;\n box-shadow: ", ";\n border: ", ";\n overflow: hidden;\n position: ", ";\n min-width: ", ";\n left: ", ";\n right: ", ";\n .customSelect__menu-list {\n padding: 0;\n max-height: ", ";\n //max-height: initial !important;\n //scroll-margin: 0 10px 30px 0;\n //scrollbar-color: var(--dark-opacity-10) var(--dark-opacity-10);\n //scrollbar-width: thin;\n\n &::-webkit-scrollbar {\n width: 4px;\n background-color: #ffffff;\n }\n\n &::-webkit-scrollbar-track {\n border-radius: 10px;\n background: white;\n }\n\n &::-webkit-scrollbar-thumb {\n border-radius: 10px;\n background: var(--dark-opacity-10);\n }\n\n .option {\n height: 70px;\n padding: 0 1.5rem;\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #fff;\n position: relative;\n color: var(--dark);\n cursor: pointer;\n box-sizing: border-box;\n\n &:hover, &:is(.customSelect__option--is-selected) {\n background-color: var(--dark-opacity-3) !important;\n\n @media only screen and ", " {\n //background-color: transparent !important;\n }\n }\n\n &:is(.customSelect__option--is-focused) {\n background-color: transparent;\n }\n\n &:active {\n background-color: var(--dark-opacity-3);\n\n @media only screen and ", " {\n background-color: transparent !important;\n }\n }\n\n &:is(.optionSm) {\n height: auto;\n min-height: 51px;\n padding: 1rem 1.5rem;\n }\n\n &:is(.fixedBottom) {\n position: sticky;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 4;\n\n strong {\n color: var(--dark-opacity-50);\n }\n }\n\n &:is(.fixedTop) {\n position: sticky;\n top: 0;\n left: 0;\n right: 0;\n z-index: 4;\n background-color: #fff;\n border-bottom: 1px solid var(--dark-opacity-10);\n \n &:hover {\n background-color: var(--dark-opacity-3) !important;\n }\n }\n\n > div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n\n .left {\n strong {\n display: block;\n font: var(--title-bold-16-19);\n }\n\n span {\n display: block;\n font: var(--body-medium-13-16);\n }\n }\n\n .right {\n display: flex;\n align-items: end;\n justify-content: flex-end;\n\n strong {\n display: block;\n font: var(--title-extra-bold-16-19);\n line-height: 17px;\n\n small {\n font: var(--body-extra-bold-14-17);\n }\n }\n\n span {\n display: block;\n font: var(--body-regular-13-16);\n margin-left: 0.2rem;\n }\n }\n }\n\n }\n }\n }\n\n &:is(.isSearchable) {\n .customSelect__control--menu-is-open {\n .customSelect__value-container {\n background-image: url('", "') !important;\n }\n }\n }\n\n .customSelect__control--menu-is-open {\n &:before {\n border-color: var(--primary);\n border-width: 2px;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n box-shadow: none;\n\n .customSelect__indicator {\n &:is(.customSelect__dropdown-indicator) {\n transform: rotate(180deg);\n }\n }\n\n .customSelect__value-container {\n .customSelect__placeholder {\n color: var(--dark-opacity-50);\n }\n }\n\n\n .customSelect__clear-indicator {\n display: none !important;\n }\n\n\n .customSelect__single-value {\n color: var(--dark) !important;\n }\n }\n }\n }\n\n .placement-top {\n .customSelect__menu {\n border-radius: 0.5rem 0.5rem 0 0 !important;\n top: auto !important;\n bottom: 100% !important;\n }\n\n .customSelect__control--menu-is-open {\n &:before {\n border-radius: 0 0 0.5rem 0.5rem !important;\n }\n }\n }\n"], ["\n /* Checkbox styling for multi-select options */\n .option-container {\n display: flex;\n align-items: center;\n width: 100%;\n }\n \n .checkbox-container {\n display: flex;\n align-items: center;\n }\n \n .custom-checkbox {\n width: 16px;\n height: 16px;\n border: 1px solid var(--dark-opacity-10);\n border-radius: 3px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: white;\n }\n \n .custom-checkbox.checked {\n background-color: var(--primary);\n border-color: var(--primary);\n }\n \n .option-content {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n }\n display: flex;\n flex-direction: column;\n width: ", ";\n\n .top {\n display: flex;\n margin-bottom: 16px;\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 [data-simplebar] {\n max-height: ", " !important;\n height: auto !important;\n padding: 0 !important;\n\n .simplebar-track.simplebar-vertical {\n width: 9px !important;\n }\n }\n\n .error {\n display: flex;\n align-items: center;\n margin-top: 8px;\n color: var(--red);\n\n svg {\n margin-right: 8px;\n }\n\n p {\n margin: 0;\n font: var(--caption-semi-bold-11-13);\n }\n }\n\n .select {\n position: relative;\n z-index: 2;\n .customSelect {\n &:is(.lightBg) {\n .customSelect__control {\n background-color: white;\n }\n }\n\n .customSelect__control {\n background-color: var(--dark-opacity-3);\n border: 0;\n padding: ", ";\n cursor: pointer;\n\n &:before {\n content: \"\";\n position: absolute;\n inset: 0;\n user-select: none;\n pointer-events: none;\n border-width: ", ";\n border-style: solid;\n border-radius: 0.5rem;\n border-color: ", ";\n }\n ", "\n /*&:hover {\n &:before{\n border-color: var(--primary);\n border-width: 2px;\n }\n }*/\n\n .customSelect__value-container {\n padding: 0;\n min-height: ", ";\n\n &:is(.customSelect__value-container--is-multi) {\n display: block;\n padding: 1rem 0;\n }\n\n .customSelect__multi-value {\n border: 1px solid var(--grey-10);\n border-radius: 0.25rem;\n background-color: var(--dark-opacity-3);\n margin: 0;\n justify-content: space-between;\n display: grid;\n grid-template-columns: 1fr auto;\n position: relative;\n z-index: 5;\n + .customSelect__multi-value {\n margin-top: 0.5rem;\n }\n\n .customSelect__multi-value__label {\n font: var(--body-semi-bold-13-16); \n white-space: nowrap;\n border-radius: 2px;\n color: hsl(0, 0%, 20%);\n padding: 3px 3px 3px 6px;\n box-sizing: border-box;\n display: grid;\n align-items: center;\n grid-template-columns: auto auto;\n justify-content: flex-start;\n span{\n overflow: hidden;\n text-overflow: ellipsis;\n &:nth-child(2){\n margin-left: 0.25rem;\n }\n }\n }\n\n .customSelect__multi-value__remove {\n background-color: transparent !important;\n color: var(--dark) !important;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n border-radius: 2px;\n padding-left: 4px;\n padding-right: 4px;\n box-sizing: border-box;\n svg{\n width: 1rem;\n height: 1rem;\n }\n }\n }\n\n .customSelect__placeholder {\n font: var(--body-semi-bold-14-17);\n color: ", ";\n margin: 0;\n line-height: 1.5rem;\n }\n\n .customSelect__single-value {\n margin: 0;\n padding: 0;\n font: var(--body-semi-bold-14-17);\n color: ", ";\n }\n\n .customSelect__input-container {\n margin: 0;\n padding: 0;\n position: absolute;\n bottom: 0;\n top: 0;\n margin-top: 0;\n width: 100% !important;\n display: block !important;\n &:after {\n display: none;\n }\n\n input {\n font: var(--body-semi-bold-14-17) !important;\n width: 100% !important;\n display: block !important;\n height: 100% !important;\n }\n }\n }\n .customSelect__value-container--has-value{\n .customSelect__input-container {\n margin-top: ", " !important;\n //position: static !important;\n }\n }\n .customSelect__indicators{\n height: ", ";\n }\n .customSelect__indicator {\n padding: 0;\n //margin: 0 0 0 0.5rem;\n width: 1.5rem;\n height: 1.5rem;\n transition: all .2s ease;\n align-items: center;\n justify-content: center;\n &:is(.customSelect__dropdown-indicator) {\n ", ";\n }\n\n &:is(.customSelect__clear-indicator) {\n width: 1.5rem;\n height: 1.5rem;\n display: block !important;\n background-image: url('", "');\n background-repeat: no-repeat;\n background-position: center center;\n svg {\n display: none;\n }\n\n ~ .customSelect__dropdown-indicator {\n display: none;\n }\n }\n\n div {\n display: block;\n }\n }\n\n .customSelect__indicator-separator {\n display: none;\n }\n .customSelect__loading-indicator{\n width: 1.5rem;\n span{\n display: none;\n }\n ~ *{\n display: none !important;\n ~ *{\n display: none !important;\n }\n }\n }\n }\n\n &:is(.isSearchable) {\n .customSelect__value-container {\n background-image: url('data:image/svg+xml;charset=utf-8,%3C%3Fxml%20version%3D%221.0%22%20standalone%3D%22no%22%3F%3E%0D%0A%3Csvg%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%2216px%22%20height%3D%2216px%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20name%3D%22Search%22%3E%3Cg%20id%3D%22Search%22%3E%3Ccircle%20id%3D%22Ellipse_739%22%20cx%3D%227.33203%22%20cy%3D%227.33398%22%20r%3D%226%22%20stroke%3D%22%23", "%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C%2Fcircle%3E%3Cpath%20id%3D%22Line_181%22%20d%3D%22M12%2012L14.6667%2014.6667%22%20stroke%3D%22%23", "%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E');\n background-repeat: no-repeat;\n background-position: 0 center;\n padding: 11px 24px 11px 2rem;\n\n &.customSelect__value-container--has-value {\n background-image: ", ";\n }\n }\n }\n .customSelect__control--is-focused {\n border-color: var(--primary);\n box-shadow: none;\n .customSelect__input-container {\n margin-top: 0 !important;\n }\n .customSelect__value-container--has-value{\n .customSelect__input-container {\n margin-top: ", ";\n position: static;\n\n input {\n\n }\n }\n }\n }\n\n .customSelect__menu-notice {\n text-align: start;\n padding: 1rem 1.5rem;\n font: var(--body-medium-14-17);\n color: var(--dark-opacity-50);\n }\n\n .customSelect__menu {\n margin: 0;\n border-radius: 0 0 0.5rem 0.5rem;\n box-shadow: ", ";\n border: ", ";\n overflow: hidden;\n position: ", ";\n min-width: ", ";\n left: ", ";\n right: ", ";\n .customSelect__menu-list {\n padding: 0;\n max-height: ", ";\n //max-height: initial !important;\n //scroll-margin: 0 10px 30px 0;\n //scrollbar-color: var(--dark-opacity-10) var(--dark-opacity-10);\n //scrollbar-width: thin;\n\n &::-webkit-scrollbar {\n width: 4px;\n background-color: #ffffff;\n }\n\n &::-webkit-scrollbar-track {\n border-radius: 10px;\n background: white;\n }\n\n &::-webkit-scrollbar-thumb {\n border-radius: 10px;\n background: var(--dark-opacity-10);\n }\n\n .option {\n height: 70px;\n padding: 0 1.5rem;\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #fff;\n position: relative;\n color: var(--dark);\n cursor: pointer;\n box-sizing: border-box;\n\n &:hover, &:is(.customSelect__option--is-selected) {\n background-color: var(--dark-opacity-3) !important;\n\n @media only screen and ", " {\n //background-color: transparent !important;\n }\n }\n\n &:is(.customSelect__option--is-focused) {\n background-color: transparent;\n }\n\n &:active {\n background-color: var(--dark-opacity-3);\n\n @media only screen and ", " {\n background-color: transparent !important;\n }\n }\n\n &:is(.optionSm) {\n height: auto;\n min-height: 51px;\n padding: 1rem 1.5rem;\n }\n\n &:is(.fixedBottom) {\n position: sticky;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 4;\n\n strong {\n color: var(--dark-opacity-50);\n }\n }\n\n &:is(.fixedTop) {\n position: sticky;\n top: 0;\n left: 0;\n right: 0;\n z-index: 4;\n background-color: #fff;\n border-bottom: 1px solid var(--dark-opacity-10);\n \n &:hover {\n background-color: var(--dark-opacity-3) !important;\n }\n }\n\n > div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n\n .left {\n strong {\n display: block;\n font: var(--title-bold-16-19);\n }\n\n span {\n display: block;\n font: var(--body-medium-13-16);\n }\n }\n\n .right {\n display: flex;\n align-items: end;\n justify-content: flex-end;\n\n strong {\n display: block;\n font: var(--title-extra-bold-16-19);\n line-height: 17px;\n\n small {\n font: var(--body-extra-bold-14-17);\n }\n }\n\n span {\n display: block;\n font: var(--body-regular-13-16);\n margin-left: 0.2rem;\n }\n }\n }\n\n }\n }\n }\n\n &:is(.isSearchable) {\n .customSelect__control--menu-is-open {\n .customSelect__value-container {\n background-image: url('", "') !important;\n }\n }\n }\n\n .customSelect__control--menu-is-open {\n &:before {\n border-color: var(--primary);\n border-width: 2px;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n box-shadow: none;\n\n .customSelect__indicator {\n &:is(.customSelect__dropdown-indicator) {\n transform: rotate(180deg);\n }\n }\n\n .customSelect__value-container {\n .customSelect__placeholder {\n color: var(--dark-opacity-50);\n }\n }\n\n\n .customSelect__clear-indicator {\n display: none !important;\n }\n\n\n .customSelect__single-value {\n color: var(--dark) !important;\n }\n }\n }\n }\n\n .placement-top {\n .customSelect__menu {\n border-radius: 0.5rem 0.5rem 0 0 !important;\n top: auto !important;\n bottom: 100% !important;\n }\n\n .customSelect__control--menu-is-open {\n &:before {\n border-radius: 0 0 0.5rem 0.5rem !important;\n }\n }\n }\n"])), function (props) { return props.$width || '370px'; }, function (props) { return props.$maxOptionListHeight && props.$maxOptionListHeight; }, function (props) { return props.$hasShowDropdownIcon ? "0 1rem 0 1.5rem" : "0 1.5rem"; }, function (props) { return props.$hasError ? "2px" : "1px"; }, function (props) { return props.$hasError ? "var(--red)" : "var(--dark-opacity-10)"; }, function (props) { return props.$isMulti ? "\n &:is(.customSelect__control--menu-is-open){\n background-color: white !important;\n }\n " : ""; }, function (props) {
|
|
18
18
|
switch (props.$size) {
|
|
19
19
|
case 'medium':
|
|
20
20
|
return "56px";
|
|
@@ -32,5 +32,5 @@ exports.Container = styled_components_1.default.div(templateObject_1 || (templat
|
|
|
32
32
|
default:
|
|
33
33
|
return "56px";
|
|
34
34
|
}
|
|
35
|
-
}, function (props) { return props.$hasShowDropdownIcon ? "display:flex" : "display:none"; }, (0, svgToBase64_1.default)((0, jsx_runtime_1.jsx)(Icon_1.default, { name: "Closebig", hasWrapper: false })), function (props) { return props.$hasError ? "FF1F1F" : "84879E"; }, function (props) { return props.$hasError ? "FF1F1F" : "84879E"; }, function (props) { return !props.$hasError && "url('data:image/svg+xml;charset=utf-8,%3C%3Fxml%20version%3D%221.0%22%20standalone%3D%22no%22%3F%3E%0D%0A%3Csvg%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%2216px%22%20height%3D%2216px%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20name%3D%22Search%22%3E%3Cg%20id%3D%22Search%22%3E%3Ccircle%20id%3D%22Ellipse_739%22%20cx%3D%227.33203%22%20cy%3D%227.33398%22%20r%3D%226%22%20stroke%3D%22%230A103D%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C%2Fcircle%3E%3Cpath%20id%3D%22Line_181%22%20d%3D%22M12%2012L14.6667%2014.6667%22%20stroke%3D%22%230A103D%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E')"; }, function (props) { return props.$isMulti ? "0.5rem !important" : "0 !important"; }, function (props) { return props.$menuPosition; }, function (props) { return props.$maxOptionListHeight; }, devices_1.devices.lg, devices_1.devices.lg, (0, svgToBase64_1.default)((0, jsx_runtime_1.jsx)(Icon_1.default, { name: "Searchsmall", hasWrapper: false })));
|
|
35
|
+
}, function (props) { return props.$hasShowDropdownIcon ? "display:flex" : "display:none"; }, (0, svgToBase64_1.default)((0, jsx_runtime_1.jsx)(Icon_1.default, { name: "Closebig", hasWrapper: false })), function (props) { return props.$hasError ? "FF1F1F" : "84879E"; }, function (props) { return props.$hasError ? "FF1F1F" : "84879E"; }, function (props) { return !props.$hasError && "url('data:image/svg+xml;charset=utf-8,%3C%3Fxml%20version%3D%221.0%22%20standalone%3D%22no%22%3F%3E%0D%0A%3Csvg%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%2216px%22%20height%3D%2216px%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20name%3D%22Search%22%3E%3Cg%20id%3D%22Search%22%3E%3Ccircle%20id%3D%22Ellipse_739%22%20cx%3D%227.33203%22%20cy%3D%227.33398%22%20r%3D%226%22%20stroke%3D%22%230A103D%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C%2Fcircle%3E%3Cpath%20id%3D%22Line_181%22%20d%3D%22M12%2012L14.6667%2014.6667%22%20stroke%3D%22%230A103D%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E')"; }, function (props) { return props.$isMulti ? "0.5rem !important" : "0 !important"; }, function (props) { return props.$hasMenuShadow ? "0 6px 30px 0 var(--box-shadow-color)" : "none"; }, function (props) { return props.$hasMenuShadow ? "none" : "1px solid var(--dark-opacity-10)"; }, function (props) { return props.$menuPosition; }, function (props) { return props.$menuWidth || "100%"; }, function (props) { return props.$menuAlign === "right" ? "auto" : "0"; }, function (props) { return props.$menuAlign === "right" ? "0" : "auto"; }, function (props) { return props.$maxOptionListHeight; }, devices_1.devices.lg, devices_1.devices.lg, (0, svgToBase64_1.default)((0, jsx_runtime_1.jsx)(Icon_1.default, { name: "Searchsmall", hasWrapper: false })));
|
|
36
36
|
var templateObject_1;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export declare const sizes: string[];
|
|
3
3
|
type SIZES = typeof sizes[number];
|
|
4
|
+
export declare const menuAligns: readonly ["left", "right"];
|
|
5
|
+
type MENU_ALIGN = typeof menuAligns[number];
|
|
4
6
|
export interface SelectBoxOption {
|
|
5
7
|
label?: string | React.ReactNode;
|
|
8
|
+
selectedLabel?: string | React.ReactNode;
|
|
6
9
|
value?: any;
|
|
7
10
|
optionLabel?: string | React.ReactNode;
|
|
8
11
|
labelBottom?: string | React.ReactNode;
|
|
@@ -22,6 +25,9 @@ export interface SelectBox {
|
|
|
22
25
|
menuIsOpen?: boolean;
|
|
23
26
|
label: string;
|
|
24
27
|
width?: string;
|
|
28
|
+
menuWidth?: string;
|
|
29
|
+
menuAlign?: MENU_ALIGN;
|
|
30
|
+
hasMenuShadow?: boolean;
|
|
25
31
|
name?: string;
|
|
26
32
|
placeholder?: string;
|
|
27
33
|
instanceId?: string;
|
|
@@ -48,6 +54,9 @@ export interface SelectBox {
|
|
|
48
54
|
export interface ContainerProps {
|
|
49
55
|
$size?: SIZES;
|
|
50
56
|
$width?: string;
|
|
57
|
+
$menuWidth?: string;
|
|
58
|
+
$menuAlign?: MENU_ALIGN;
|
|
59
|
+
$hasMenuShadow?: boolean;
|
|
51
60
|
$hasError?: boolean;
|
|
52
61
|
$maxOptionListHeight?: string;
|
|
53
62
|
$hasShowDropdownIcon?: boolean;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SelectBoxDefault = exports.sizes = void 0;
|
|
3
|
+
exports.SelectBoxDefault = exports.menuAligns = exports.sizes = void 0;
|
|
4
4
|
exports.sizes = ['medium', 'small'];
|
|
5
|
+
exports.menuAligns = ['left', 'right'];
|
|
5
6
|
exports.SelectBoxDefault = {
|
|
6
7
|
size: "medium",
|
|
7
8
|
isSearchable: undefined,
|
|
8
9
|
menuIsOpen: undefined,
|
|
9
10
|
label: undefined,
|
|
10
11
|
width: "370px",
|
|
12
|
+
menuWidth: undefined,
|
|
13
|
+
menuAlign: "left",
|
|
14
|
+
hasMenuShadow: false,
|
|
11
15
|
name: undefined,
|
|
12
16
|
placeholder: "İstediğiniz tarihi seçin...",
|
|
13
17
|
instanceId: undefined,
|
|
@@ -29,6 +29,16 @@ declare const _default: {
|
|
|
29
29
|
isClearable: {
|
|
30
30
|
control: string;
|
|
31
31
|
};
|
|
32
|
+
menuWidth: {
|
|
33
|
+
control: string;
|
|
34
|
+
};
|
|
35
|
+
menuAlign: {
|
|
36
|
+
control: string;
|
|
37
|
+
options: readonly ["left", "right"];
|
|
38
|
+
};
|
|
39
|
+
hasMenuShadow: {
|
|
40
|
+
control: string;
|
|
41
|
+
};
|
|
32
42
|
};
|
|
33
43
|
};
|
|
34
44
|
export default _default;
|
|
@@ -57,6 +67,9 @@ export declare const Default: {
|
|
|
57
67
|
period?: undefined;
|
|
58
68
|
})[];
|
|
59
69
|
width: string;
|
|
70
|
+
menuWidth: any;
|
|
71
|
+
menuAlign: string;
|
|
72
|
+
hasMenuShadow: boolean;
|
|
60
73
|
hasError: boolean;
|
|
61
74
|
errorMessage: string;
|
|
62
75
|
maxOptionListHeight: string;
|
|
@@ -90,6 +103,9 @@ export declare const Small: {
|
|
|
90
103
|
period?: undefined;
|
|
91
104
|
})[];
|
|
92
105
|
width: string;
|
|
106
|
+
menuWidth: any;
|
|
107
|
+
menuAlign: string;
|
|
108
|
+
hasMenuShadow: boolean;
|
|
93
109
|
hasError: boolean;
|
|
94
110
|
errorMessage: string;
|
|
95
111
|
maxOptionListHeight: string;
|
|
@@ -123,6 +139,9 @@ export declare const Medium: {
|
|
|
123
139
|
period?: undefined;
|
|
124
140
|
})[];
|
|
125
141
|
width: string;
|
|
142
|
+
menuWidth: any;
|
|
143
|
+
menuAlign: string;
|
|
144
|
+
hasMenuShadow: boolean;
|
|
126
145
|
hasError: boolean;
|
|
127
146
|
errorMessage: string;
|
|
128
147
|
maxOptionListHeight: string;
|
|
@@ -157,6 +176,9 @@ export declare const WithError: {
|
|
|
157
176
|
period?: undefined;
|
|
158
177
|
})[];
|
|
159
178
|
width: string;
|
|
179
|
+
menuWidth: any;
|
|
180
|
+
menuAlign: string;
|
|
181
|
+
hasMenuShadow: boolean;
|
|
160
182
|
maxOptionListHeight: string;
|
|
161
183
|
id: string;
|
|
162
184
|
isMulti: boolean;
|
|
@@ -187,6 +209,9 @@ export declare const Searchable: {
|
|
|
187
209
|
period?: undefined;
|
|
188
210
|
})[];
|
|
189
211
|
width: string;
|
|
212
|
+
menuWidth: any;
|
|
213
|
+
menuAlign: string;
|
|
214
|
+
hasMenuShadow: boolean;
|
|
190
215
|
hasError: boolean;
|
|
191
216
|
errorMessage: string;
|
|
192
217
|
maxOptionListHeight: string;
|
|
@@ -219,6 +244,9 @@ export declare const Clearable: {
|
|
|
219
244
|
period?: undefined;
|
|
220
245
|
})[];
|
|
221
246
|
width: string;
|
|
247
|
+
menuWidth: any;
|
|
248
|
+
menuAlign: string;
|
|
249
|
+
hasMenuShadow: boolean;
|
|
222
250
|
hasError: boolean;
|
|
223
251
|
errorMessage: string;
|
|
224
252
|
maxOptionListHeight: string;
|
|
@@ -254,6 +282,9 @@ export declare const Multiple: {
|
|
|
254
282
|
period?: undefined;
|
|
255
283
|
})[];
|
|
256
284
|
width: string;
|
|
285
|
+
menuWidth: any;
|
|
286
|
+
menuAlign: string;
|
|
287
|
+
hasMenuShadow: boolean;
|
|
257
288
|
hasError: boolean;
|
|
258
289
|
errorMessage: string;
|
|
259
290
|
maxOptionListHeight: string;
|
|
@@ -290,6 +321,9 @@ export declare const MultipleWithSelectAll: {
|
|
|
290
321
|
period?: undefined;
|
|
291
322
|
})[];
|
|
292
323
|
width: string;
|
|
324
|
+
menuWidth: any;
|
|
325
|
+
menuAlign: string;
|
|
326
|
+
hasMenuShadow: boolean;
|
|
293
327
|
hasError: boolean;
|
|
294
328
|
errorMessage: string;
|
|
295
329
|
maxOptionListHeight: string;
|
|
@@ -321,6 +355,9 @@ export declare const WithoutLabel: {
|
|
|
321
355
|
period?: undefined;
|
|
322
356
|
})[];
|
|
323
357
|
width: string;
|
|
358
|
+
menuWidth: any;
|
|
359
|
+
menuAlign: string;
|
|
360
|
+
hasMenuShadow: boolean;
|
|
324
361
|
hasError: boolean;
|
|
325
362
|
errorMessage: string;
|
|
326
363
|
maxOptionListHeight: string;
|
|
@@ -353,6 +390,141 @@ export declare const DarkBg: {
|
|
|
353
390
|
period?: undefined;
|
|
354
391
|
})[];
|
|
355
392
|
width: string;
|
|
393
|
+
menuWidth: any;
|
|
394
|
+
menuAlign: string;
|
|
395
|
+
hasMenuShadow: boolean;
|
|
396
|
+
hasError: boolean;
|
|
397
|
+
errorMessage: string;
|
|
398
|
+
maxOptionListHeight: string;
|
|
399
|
+
id: string;
|
|
400
|
+
isMulti: boolean;
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
export declare const CustomMenuWidth: {
|
|
404
|
+
args: {
|
|
405
|
+
width: string;
|
|
406
|
+
menuWidth: string;
|
|
407
|
+
menuAlign: string;
|
|
408
|
+
placeholder: string;
|
|
409
|
+
isSearchable: boolean;
|
|
410
|
+
hasShowSearchIcon: boolean;
|
|
411
|
+
isClearable: boolean;
|
|
412
|
+
lightBg: boolean;
|
|
413
|
+
label: string;
|
|
414
|
+
name: string;
|
|
415
|
+
options: ({
|
|
416
|
+
value: string;
|
|
417
|
+
label: string;
|
|
418
|
+
price: string;
|
|
419
|
+
priceSm: string;
|
|
420
|
+
period: string;
|
|
421
|
+
labelBottom?: undefined;
|
|
422
|
+
} | {
|
|
423
|
+
value: string;
|
|
424
|
+
label: string;
|
|
425
|
+
labelBottom: string;
|
|
426
|
+
price?: undefined;
|
|
427
|
+
priceSm?: undefined;
|
|
428
|
+
period?: undefined;
|
|
429
|
+
})[];
|
|
430
|
+
hasMenuShadow: boolean;
|
|
431
|
+
hasError: boolean;
|
|
432
|
+
errorMessage: string;
|
|
433
|
+
maxOptionListHeight: string;
|
|
434
|
+
id: string;
|
|
435
|
+
isMulti: boolean;
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
export declare const CustomMenuWidthRight: {
|
|
439
|
+
args: {
|
|
440
|
+
width: string;
|
|
441
|
+
menuWidth: string;
|
|
442
|
+
menuAlign: string;
|
|
443
|
+
placeholder: string;
|
|
444
|
+
isSearchable: boolean;
|
|
445
|
+
hasShowSearchIcon: boolean;
|
|
446
|
+
isClearable: boolean;
|
|
447
|
+
lightBg: boolean;
|
|
448
|
+
label: string;
|
|
449
|
+
name: string;
|
|
450
|
+
options: ({
|
|
451
|
+
value: string;
|
|
452
|
+
label: string;
|
|
453
|
+
price: string;
|
|
454
|
+
priceSm: string;
|
|
455
|
+
period: string;
|
|
456
|
+
labelBottom?: undefined;
|
|
457
|
+
} | {
|
|
458
|
+
value: string;
|
|
459
|
+
label: string;
|
|
460
|
+
labelBottom: string;
|
|
461
|
+
price?: undefined;
|
|
462
|
+
priceSm?: undefined;
|
|
463
|
+
period?: undefined;
|
|
464
|
+
})[];
|
|
465
|
+
hasMenuShadow: boolean;
|
|
466
|
+
hasError: boolean;
|
|
467
|
+
errorMessage: string;
|
|
468
|
+
maxOptionListHeight: string;
|
|
469
|
+
id: string;
|
|
470
|
+
isMulti: boolean;
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
export declare const CustomMenuShadow: {
|
|
474
|
+
args: {
|
|
475
|
+
width: string;
|
|
476
|
+
menuWidth: string;
|
|
477
|
+
menuAlign: string;
|
|
478
|
+
hasMenuShadow: boolean;
|
|
479
|
+
placeholder: string;
|
|
480
|
+
isSearchable: boolean;
|
|
481
|
+
hasShowSearchIcon: boolean;
|
|
482
|
+
isClearable: boolean;
|
|
483
|
+
lightBg: boolean;
|
|
484
|
+
label: string;
|
|
485
|
+
name: string;
|
|
486
|
+
options: ({
|
|
487
|
+
value: string;
|
|
488
|
+
label: string;
|
|
489
|
+
price: string;
|
|
490
|
+
priceSm: string;
|
|
491
|
+
period: string;
|
|
492
|
+
labelBottom?: undefined;
|
|
493
|
+
} | {
|
|
494
|
+
value: string;
|
|
495
|
+
label: string;
|
|
496
|
+
labelBottom: string;
|
|
497
|
+
price?: undefined;
|
|
498
|
+
priceSm?: undefined;
|
|
499
|
+
period?: undefined;
|
|
500
|
+
})[];
|
|
501
|
+
hasError: boolean;
|
|
502
|
+
errorMessage: string;
|
|
503
|
+
maxOptionListHeight: string;
|
|
504
|
+
id: string;
|
|
505
|
+
isMulti: boolean;
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
export declare const WithSelectedLabel: {
|
|
509
|
+
args: {
|
|
510
|
+
options: {
|
|
511
|
+
label: string;
|
|
512
|
+
selectedLabel: string;
|
|
513
|
+
value: string;
|
|
514
|
+
price: string;
|
|
515
|
+
period: string;
|
|
516
|
+
}[];
|
|
517
|
+
placeholder: string;
|
|
518
|
+
isSearchable: boolean;
|
|
519
|
+
hasShowSearchIcon: boolean;
|
|
520
|
+
isClearable: boolean;
|
|
521
|
+
lightBg: boolean;
|
|
522
|
+
label: string;
|
|
523
|
+
name: string;
|
|
524
|
+
width: string;
|
|
525
|
+
menuWidth: any;
|
|
526
|
+
menuAlign: string;
|
|
527
|
+
hasMenuShadow: boolean;
|
|
356
528
|
hasError: boolean;
|
|
357
529
|
errorMessage: string;
|
|
358
530
|
maxOptionListHeight: string;
|
|
@@ -14,10 +14,26 @@ 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.DarkBg = exports.WithoutLabel = exports.MultipleWithSelectAll = exports.Multiple = exports.Clearable = exports.Searchable = exports.WithError = exports.Medium = exports.Small = exports.Default = void 0;
|
|
17
|
+
exports.WithSelectedLabel = exports.CustomMenuShadow = exports.CustomMenuWidthRight = exports.CustomMenuWidth = exports.DarkBg = exports.WithoutLabel = exports.MultipleWithSelectAll = exports.Multiple = exports.Clearable = exports.Searchable = exports.WithError = exports.Medium = exports.Small = exports.Default = void 0;
|
|
18
18
|
var SelectBox_1 = __importDefault(require("../SelectBox"));
|
|
19
19
|
var SelectValues_json_1 = __importDefault(require("./../../../jsons/SelectValues.json"));
|
|
20
20
|
var props_1 = require("../props");
|
|
21
|
+
var optionsWithSelectedLabel = [
|
|
22
|
+
{
|
|
23
|
+
label: "Çok Uzun Kampanya Adı - 12 Ay Kiralama",
|
|
24
|
+
selectedLabel: "12 Ay Kiralama",
|
|
25
|
+
value: "rental-12",
|
|
26
|
+
price: "1.250,00",
|
|
27
|
+
period: "/ay",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: "Premium Paket - Tüm Özellikler Dahil",
|
|
31
|
+
selectedLabel: "Premium Paket",
|
|
32
|
+
value: "premium",
|
|
33
|
+
price: "2.100,00",
|
|
34
|
+
period: "/ay",
|
|
35
|
+
},
|
|
36
|
+
];
|
|
21
37
|
var defaultArgs = {
|
|
22
38
|
placeholder: "Placeholder",
|
|
23
39
|
isSearchable: false,
|
|
@@ -28,6 +44,9 @@ var defaultArgs = {
|
|
|
28
44
|
name: "name",
|
|
29
45
|
options: SelectValues_json_1.default,
|
|
30
46
|
width: "400px",
|
|
47
|
+
menuWidth: undefined,
|
|
48
|
+
menuAlign: "left",
|
|
49
|
+
hasMenuShadow: false,
|
|
31
50
|
hasError: false,
|
|
32
51
|
errorMessage: "Error message.",
|
|
33
52
|
maxOptionListHeight: "200px",
|
|
@@ -47,6 +66,9 @@ exports.default = {
|
|
|
47
66
|
selectAllLabel: { control: 'text' },
|
|
48
67
|
isSearchable: { control: 'boolean' },
|
|
49
68
|
isClearable: { control: 'boolean' },
|
|
69
|
+
menuWidth: { control: 'text' },
|
|
70
|
+
menuAlign: { control: 'select', options: props_1.menuAligns },
|
|
71
|
+
hasMenuShadow: { control: 'boolean' },
|
|
50
72
|
}
|
|
51
73
|
};
|
|
52
74
|
exports.Default = {
|
|
@@ -79,3 +101,15 @@ exports.WithoutLabel = {
|
|
|
79
101
|
exports.DarkBg = {
|
|
80
102
|
args: __assign(__assign({}, defaultArgs), { lightBg: false }),
|
|
81
103
|
};
|
|
104
|
+
exports.CustomMenuWidth = {
|
|
105
|
+
args: __assign(__assign({}, defaultArgs), { width: "400px", menuWidth: "620px", menuAlign: "left" }),
|
|
106
|
+
};
|
|
107
|
+
exports.CustomMenuWidthRight = {
|
|
108
|
+
args: __assign(__assign({}, defaultArgs), { width: "400px", menuWidth: "620px", menuAlign: "right" }),
|
|
109
|
+
};
|
|
110
|
+
exports.CustomMenuShadow = {
|
|
111
|
+
args: __assign(__assign({}, defaultArgs), { width: "400px", menuWidth: "620px", menuAlign: "right", hasMenuShadow: true }),
|
|
112
|
+
};
|
|
113
|
+
exports.WithSelectedLabel = {
|
|
114
|
+
args: __assign(__assign({}, defaultArgs), { options: optionsWithSelectedLabel, placeholder: "Paket seçin" }),
|
|
115
|
+
};
|