oolib 2.151.0 → 2.152.1
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/HomeCover/index.js +3 -2
- package/dist/components/Typo/index.styled.js +1 -1
- package/dist/icons/custom/index.d.ts +1 -0
- package/dist/icons/custom/index.js +11 -2
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/index.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/stories/Oolib/components/Icons.stories.js +5 -24
- package/dist/stories/v2/components/TextInputs.stories.d.ts +20 -7
- package/dist/stories/v2/components/TextInputs.stories.js +21 -8
- package/dist/v2/components/Buttons/derivedComps/ActionButton.d.ts +7 -0
- package/dist/v2/components/Buttons/derivedComps/ActionButton.js +43 -0
- package/dist/v2/components/Buttons/derivedComps/ClearButton.d.ts +6 -0
- package/dist/v2/components/Buttons/derivedComps/ClearButton.js +36 -0
- package/dist/v2/components/OKELink/comps/AvatarDisplay/index.d.ts +27 -0
- package/dist/v2/components/OKELink/comps/AvatarDisplay/index.js +29 -0
- package/dist/v2/components/OKELink/comps/AvatarDisplay/styled.d.ts +8 -0
- package/dist/v2/components/OKELink/comps/AvatarDisplay/styled.js +64 -0
- package/dist/v2/components/OKELink/index.d.ts +42 -0
- package/dist/v2/components/OKELink/index.js +128 -0
- package/dist/v2/components/OKELink/styled.d.ts +15 -0
- package/dist/v2/components/OKELink/styled.js +62 -0
- package/dist/v2/components/OKELink/utils/index.d.ts +11 -0
- package/dist/v2/components/OKELink/utils/index.js +20 -0
- package/dist/v2/components/TextInputs/derivedComps/EmailInput.d.ts +5 -0
- package/dist/v2/components/TextInputs/derivedComps/EmailInput.js +45 -0
- package/dist/v2/components/TextInputs/derivedComps/NumberInput.d.ts +5 -0
- package/dist/v2/components/TextInputs/derivedComps/NumberInput.js +70 -0
- package/dist/v2/components/TextInputs/derivedComps/PasswordInput.d.ts +4 -0
- package/dist/v2/components/TextInputs/derivedComps/PasswordInput.js +63 -0
- package/dist/v2/components/TextInputs/derivedComps/PhoneInput.d.ts +5 -0
- package/dist/v2/components/TextInputs/derivedComps/PhoneInput.js +53 -0
- package/dist/v2/components/TextInputs/derivedComps/URLInput.d.ts +8 -0
- package/dist/v2/components/TextInputs/derivedComps/URLInput.js +129 -0
- package/dist/v2/components/TextInputs/index.d.ts +8 -23
- package/dist/v2/components/TextInputs/index.js +42 -187
- package/dist/v2/components/TextInputs/index.styled.js +5 -2
- package/dist/v2/components/Typo2/index.d.ts +1 -0
- package/dist/v2/components/Typo2/index.js +3 -1
- package/dist/v2/components/Typo2/index.styled.d.ts +1 -0
- package/dist/v2/components/Typo2/index.styled.js +18 -17
- package/dist/v2/themes/globalStyles.d.ts +0 -1
- package/dist/v2/themes/globalStyles.js +1 -2
- package/dist/v2/themes/typo.d.ts +1 -0
- package/dist/v2/themes/typo.js +17 -15
- package/package.json +1 -1
|
@@ -48,7 +48,8 @@ var HomeCover = function (_a) {
|
|
|
48
48
|
var title = _a.title, subtitle = _a.subtitle, desc = _a.desc, CTALink = _a.CTALink, customComp = _a.customComp, coverImagesConfig = _a.coverImagesConfig, _b = _a.variant, variant = _b === void 0 ? "default" : _b;
|
|
49
49
|
var screenWidth = (0, useScreenWidth_1.useScreenWidth)();
|
|
50
50
|
var isDesktop = screenWidth > (0, mixins_1.getBreakPoint)("md");
|
|
51
|
-
var history = (0, react_router_dom_1.useHistory)();
|
|
51
|
+
var history = react_router_dom_1.useHistory ? (0, react_router_dom_1.useHistory)() : undefined;
|
|
52
|
+
var navigate = react_router_dom_1.useNavigate ? (0, react_router_dom_1.useNavigate)() : undefined;
|
|
52
53
|
// const {deployment: {_CoverImages : coverImagesConfig}} = useGetQueryData('platformConfigs');
|
|
53
54
|
//backwards compat
|
|
54
55
|
var _CoverImages = coverImagesConfig.every(function (c) { return typeof c === "string"; })
|
|
@@ -132,7 +133,7 @@ var HomeCover = function (_a) {
|
|
|
132
133
|
var genCTALink = function (_a) {
|
|
133
134
|
var CTALink = _a.CTALink, variant = _a.variant, isDesktop = _a.isDesktop;
|
|
134
135
|
return CTALink && (react_1.default.createElement(Buttons_1.ButtonPrimary, { className: "HomeCover__cta", icon: "CaretRight", M: variant === "small" && !isDesktop && true, style: __assign({ position: "absolute", bottom: 0, borderRadius: 0, right: variant === "small" && !isDesktop ? "2rem" : 0 }, (variant === "small" && !isDesktop ? { zIndex: 100 } : {})), onClick: function () {
|
|
135
|
-
history.push(CTALink);
|
|
136
|
+
history ? history.push(CTALink) : navigate(CTALink);
|
|
136
137
|
} }));
|
|
137
138
|
};
|
|
138
139
|
var TitleTypoComp = variant === "small" ? Typo_1.SERIF_8_9 : Typo_1.SERIF_9_10;
|
|
@@ -28,5 +28,5 @@ exports.SERIF_8_9_STYLED = styled_components_1.default.h2(templateObject_15 || (
|
|
|
28
28
|
exports.SERIF_9_10_STYLED = styled_components_1.default.h1(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), index_1.typo.SERIF_9_10);
|
|
29
29
|
exports.LABEL_STYLED = styled_components_1.default.h6(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), index_1.typo.LABEL);
|
|
30
30
|
exports.BLOCKQUOTE_STYLED = styled_components_1.default.h3(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), index_1.typo.BLOCKQUOTE);
|
|
31
|
-
exports.TYPOCLASSES = styled_components_1.default.div(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n .SANS_0 {\n ", "\n }\n\n .SANS_2 {\n ", "\n }\n\n .SANS_3 {\n ", "\n }\n\n .SANS_4 {\n ", "\n }\n\n .SERIF_3 {\n ", "\n }\n\n .SANS_4_5 {\n ", "\n }\n\n .SANS_5_6 {\n ", "\n }\n\n .SERIF_3_4 {\n ", "\n }\n\n .SERIF_4_5 {\n ", "\n }\n\n .SERIF_5_6 {\n ", "\n }\n\n .SERIF_6_7 {\n ", "\n }\n\n .SERIF_7_8 {\n ", "\n }\n\n .SERIF_8_9 {\n ", "\n }\n\n .SERIF_9_10 {\n ", "\n }\n\n .LABEL {\n ", "\n }\n\n .SANS_7_8 {\n ", "\n }\n\n .BLOCKQUOTE {\n ", "\n }\n\n
|
|
31
|
+
exports.TYPOCLASSES = styled_components_1.default.div(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n .SANS_0 {\n ", "\n }\n\n .SANS_2 {\n ", "\n }\n\n .SANS_3 {\n ", "\n }\n\n .SANS_4 {\n ", "\n }\n\n .SERIF_3 {\n ", "\n }\n\n .SANS_4_5 {\n ", "\n }\n\n .SANS_5_6 {\n ", "\n }\n\n .SERIF_3_4 {\n ", "\n }\n\n .SERIF_4_5 {\n ", "\n }\n\n .SERIF_5_6 {\n ", "\n }\n\n .SERIF_6_7 {\n ", "\n }\n\n .SERIF_7_8 {\n ", "\n }\n\n .SERIF_8_9 {\n ", "\n }\n\n .SERIF_9_10 {\n ", "\n }\n\n .LABEL {\n ", "\n }\n\n .SANS_7_8 {\n ", "\n }\n\n .BLOCKQUOTE {\n ", "\n }\n\n"], ["\n .SANS_0 {\n ", "\n }\n\n .SANS_2 {\n ", "\n }\n\n .SANS_3 {\n ", "\n }\n\n .SANS_4 {\n ", "\n }\n\n .SERIF_3 {\n ", "\n }\n\n .SANS_4_5 {\n ", "\n }\n\n .SANS_5_6 {\n ", "\n }\n\n .SERIF_3_4 {\n ", "\n }\n\n .SERIF_4_5 {\n ", "\n }\n\n .SERIF_5_6 {\n ", "\n }\n\n .SERIF_6_7 {\n ", "\n }\n\n .SERIF_7_8 {\n ", "\n }\n\n .SERIF_8_9 {\n ", "\n }\n\n .SERIF_9_10 {\n ", "\n }\n\n .LABEL {\n ", "\n }\n\n .SANS_7_8 {\n ", "\n }\n\n .BLOCKQUOTE {\n ", "\n }\n\n"])), index_1.typo.SANS_0, index_1.typo.SANS_2, index_1.typo.SANS_3, index_1.typo.SANS_4, index_1.typo.SERIF_3, index_1.typo.SANS_4_5, index_1.typo.SANS_5_6, index_1.typo.SERIF_3_4, index_1.typo.SERIF_4_5, index_1.typo.SERIF_5_6, index_1.typo.SERIF_6_7, index_1.typo.SERIF_7_8, index_1.typo.SERIF_8_9, index_1.typo.SERIF_9_10, index_1.typo.LABEL, index_1.typo.SANS_7_8, index_1.typo.BLOCKQUOTE);
|
|
32
32
|
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, templateObject_16, templateObject_17, templateObject_18, templateObject_19;
|
|
@@ -69,3 +69,4 @@ export declare const Inspiring: (props: any) => React.JSX.Element;
|
|
|
69
69
|
export declare const Learning: (props: any) => React.JSX.Element;
|
|
70
70
|
export declare const Like: (props: any) => React.JSX.Element;
|
|
71
71
|
export declare const Reactions: (props: any) => React.JSX.Element;
|
|
72
|
+
export declare const WarningDiamond: (props: any) => React.JSX.Element;
|
|
@@ -15,7 +15,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.UKFlag = exports.MalaysiaFlag = exports.ColombiaFlag = exports.BrazilFlag = exports.AudioEmbedIcon = exports.VideoEmbedIcon = exports.Attachment2 = exports.PDFIcon = exports.RichFormatToolOrderedList = exports.RichFormatToolUnorderedList = exports.RichFormatToolH2 = exports.RichFormatToolBlockquote = exports.LinkIcon = exports.UnderlineBtn = exports.ItalicBtn = exports.BoldBtn = exports.SettingsSM = exports.Close_S = exports.UploadImage = exports.KebabMenu = exports.Website_solid_SM = exports.Phone_solid_SM = exports.Mail_solid_SM = exports.Youtube_solid_SM = exports.Instagram_solid_SM = exports.Twitter_solid_SM = exports.Linkedin_solid_SM = exports.Facebook_solid_SM = exports.EditSM = exports.AddXS = exports.UploadSM = exports.Download = exports.Download__nofill = exports.Index = exports.Person14 = exports.Location14 = exports.ModalBulbIcon = exports.SenegalFlag = exports.KenyaFlag = exports.NigeriaFlag = exports.IndiaFlag = exports.BadgeVetted = exports.BadgeMod = exports.BadgeSuperAdmin = exports.BadgeAdmin = exports.OkeGoogleIcon = exports.LetterH = exports.LanguageIcon = exports.MultipleImages = exports.IndexIcon = void 0;
|
|
18
|
-
exports.Reactions = exports.Like = exports.Learning = exports.Inspiring = exports.Celebrate = exports.Stars = exports.SpainFlag = exports.PakistanFlag = exports.ChileFlag = exports.IndonesiaFlag = exports.USAFlag = void 0;
|
|
18
|
+
exports.WarningDiamond = exports.Reactions = exports.Like = exports.Learning = exports.Inspiring = exports.Celebrate = exports.Stars = exports.SpainFlag = exports.PakistanFlag = exports.ChileFlag = exports.IndonesiaFlag = exports.USAFlag = void 0;
|
|
19
19
|
var react_1 = __importDefault(require("react"));
|
|
20
20
|
var themes_1 = require("../../themes");
|
|
21
21
|
var DisplayIcon_1 = require("../../utils/comps/DisplayIcon");
|
|
@@ -86,7 +86,7 @@ var BadgeMod = function (props) {
|
|
|
86
86
|
exports.BadgeMod = BadgeMod;
|
|
87
87
|
var BadgeVetted = function (props) {
|
|
88
88
|
return (react_1.default.createElement("svg", __assign({ width: 17, height: 17, viewBox: "0 0 17 17", fill: "none" }, props),
|
|
89
|
-
react_1.default.createElement("circle", { cx: 8.324, cy: 8.401, r: 8, fill: "#
|
|
89
|
+
react_1.default.createElement("circle", { cx: 8.324, cy: 8.401, r: 8, fill: "#53AC00" }),
|
|
90
90
|
react_1.default.createElement("path", { d: "M5.324 8.774l1.79 2.127c1.678-1.992 2.755-3.27 4.21-5", stroke: "#fff", strokeLinecap: "round", strokeLinejoin: "round" })));
|
|
91
91
|
};
|
|
92
92
|
exports.BadgeVetted = BadgeVetted;
|
|
@@ -483,3 +483,12 @@ var Reactions = function (props) {
|
|
|
483
483
|
react_1.default.createElement("rect", { width: "256", height: "256", fill: "white" })))));
|
|
484
484
|
};
|
|
485
485
|
exports.Reactions = Reactions;
|
|
486
|
+
var WarningDiamond = function (props) {
|
|
487
|
+
return (react_1.default.createElement("svg", { width: props.size || 30, height: props.size || 30, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
488
|
+
react_1.default.createElement("g", { id: "WarningDiamond", "clip-path": "url(#clip0_3079_1091)" },
|
|
489
|
+
react_1.default.createElement("path", { id: "Vector", d: "M11.0311 5.47125L6.52877 0.968438C6.38825 0.82875 6.19816 0.750343 6.00002 0.750343C5.80188 0.750343 5.61179 0.82875 5.47127 0.968438L0.971268 5.47125C0.83158 5.61177 0.753174 5.80186 0.753174 6C0.753174 6.19814 0.83158 6.38823 0.971268 6.52875L5.47361 11.0316C5.61413 11.1713 5.80422 11.2497 6.00236 11.2497C6.2005 11.2497 6.39059 11.1713 6.53111 11.0316L11.0335 6.52875C11.1731 6.38823 11.2516 6.19814 11.2516 6C11.2516 5.80186 11.1731 5.61177 11.0335 5.47125H11.0311ZM5.62502 3.75C5.62502 3.65054 5.66453 3.55516 5.73485 3.48484C5.80518 3.41451 5.90056 3.375 6.00002 3.375C6.09947 3.375 6.19486 3.41451 6.26518 3.48484C6.33551 3.55516 6.37502 3.65054 6.37502 3.75V6.375C6.37502 6.47446 6.33551 6.56984 6.26518 6.64017C6.19486 6.71049 6.09947 6.75 6.00002 6.75C5.90056 6.75 5.80518 6.71049 5.73485 6.64017C5.66453 6.56984 5.62502 6.47446 5.62502 6.375V3.75ZM6.00002 8.625C5.88877 8.625 5.78001 8.59201 5.68751 8.5302C5.59501 8.46839 5.52291 8.38054 5.48034 8.27776C5.43776 8.17498 5.42662 8.06188 5.44833 7.95276C5.47003 7.84365 5.5236 7.74342 5.60227 7.66475C5.68094 7.58609 5.78117 7.53251 5.89028 7.51081C5.99939 7.4891 6.11249 7.50024 6.21528 7.54282C6.31806 7.58539 6.40591 7.65749 6.46772 7.74999C6.52953 7.84249 6.56252 7.95125 6.56252 8.0625C6.56252 8.21168 6.50326 8.35476 6.39777 8.46025C6.29228 8.56574 6.1492 8.625 6.00002 8.625Z", fill: "#C41717" })),
|
|
490
|
+
react_1.default.createElement("defs", null,
|
|
491
|
+
react_1.default.createElement("clipPath", { id: "clip0_3079_1091" },
|
|
492
|
+
react_1.default.createElement("rect", { width: "12", height: "12", fill: "white" })))));
|
|
493
|
+
};
|
|
494
|
+
exports.WarningDiamond = WarningDiamond;
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -179,6 +179,7 @@ export namespace icons {
|
|
|
179
179
|
export { Learning };
|
|
180
180
|
export { Like };
|
|
181
181
|
export { Reactions };
|
|
182
|
+
export { WarningDiamond };
|
|
182
183
|
}
|
|
183
184
|
import { PencilSimple } from 'phosphor-react';
|
|
184
185
|
import { PencilLine } from 'phosphor-react';
|
|
@@ -360,3 +361,4 @@ import { Inspiring } from "./custom";
|
|
|
360
361
|
import { Learning } from "./custom";
|
|
361
362
|
import { Like } from "./custom";
|
|
362
363
|
import { Reactions } from "./custom";
|
|
364
|
+
import { WarningDiamond } from "./custom";
|
package/dist/icons/index.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export * from "./v2/components/BlockLabel";
|
|
|
21
21
|
export * from "./v2/components/cards/CardContent";
|
|
22
22
|
export * from "./v2/components/Tags";
|
|
23
23
|
export * from "./v2/components/ImagePlaceholder";
|
|
24
|
+
export * from "./v2/components/TextInputs";
|
|
24
25
|
export { colors } from "./themes";
|
|
25
26
|
export { icons } from "./icons";
|
|
26
27
|
export { Section } from "./components/Section";
|
package/dist/index.js
CHANGED
|
@@ -178,6 +178,7 @@ __exportStar(require("./v2/components/BlockLabel"), exports);
|
|
|
178
178
|
__exportStar(require("./v2/components/cards/CardContent"), exports);
|
|
179
179
|
__exportStar(require("./v2/components/Tags"), exports);
|
|
180
180
|
__exportStar(require("./v2/components/ImagePlaceholder"), exports);
|
|
181
|
+
__exportStar(require("./v2/components/TextInputs"), exports);
|
|
181
182
|
var themes_2 = require("./v2/themes");
|
|
182
183
|
Object.defineProperty(exports, "colors2", { enumerable: true, get: function () { return themes_2.colors; } });
|
|
183
184
|
// v2 contexts
|
|
@@ -38,18 +38,16 @@ var Icons = function (args) {
|
|
|
38
38
|
var filterIcons = function (value) {
|
|
39
39
|
setSearchIcon(value);
|
|
40
40
|
};
|
|
41
|
-
var filteredIcons = iconArray.filter(function (icon) {
|
|
42
|
-
return icon.key.toLowerCase().includes(searchIcon.toLowerCase());
|
|
43
|
-
});
|
|
41
|
+
var filteredIcons = iconArray.filter(function (icon) { var _a; return (_a = icon.key) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(searchIcon === null || searchIcon === void 0 ? void 0 : searchIcon.toLowerCase()); });
|
|
44
42
|
var handleIconClick = function (key, iconComponent) {
|
|
45
43
|
setSelectedIcon(selectedIcon === key ? null : key);
|
|
46
44
|
setSelectedWeight('regular');
|
|
47
45
|
};
|
|
48
46
|
return (React.createElement(React.Fragment, null,
|
|
49
47
|
React.createElement(TextInputs_1.TextInput, { value: searchIcon, onChange: function (id, value) { return filterIcons(value); }, label: "Search Icon" }),
|
|
50
|
-
React.createElement(StyledWrapperIconsGrid, { minWidth: "10rem" }, filteredIcons.map(function (_a) {
|
|
48
|
+
React.createElement(StyledWrapperIconsGrid, { minWidth: "10rem" }, filteredIcons === null || filteredIcons === void 0 ? void 0 : filteredIcons.map(function (_a) {
|
|
51
49
|
var key = _a.key, Icon = _a.value;
|
|
52
|
-
return (React.createElement("div", { key: key },
|
|
50
|
+
return (Icon ? (React.createElement("div", { key: key },
|
|
53
51
|
React.createElement("div", { style: {
|
|
54
52
|
display: "flex",
|
|
55
53
|
flexDirection: 'column',
|
|
@@ -58,25 +56,8 @@ var Icons = function (args) {
|
|
|
58
56
|
cursor: "pointer",
|
|
59
57
|
border: selectedIcon === key ? '2px solid blue' : 'none',
|
|
60
58
|
}, onClick: function () { return handleIconClick(key, Icon); } },
|
|
61
|
-
React.createElement(Icon, { size: 24
|
|
62
|
-
React.createElement(Typo2_1.UI_CAPTION, null, key))
|
|
63
|
-
selectedIcon === key && (React.createElement("div", { style: {
|
|
64
|
-
marginTop: '1rem',
|
|
65
|
-
padding: '1rem',
|
|
66
|
-
border: '1px solid #ccc',
|
|
67
|
-
borderRadius: '4px',
|
|
68
|
-
backgroundColor: '#f9f9f9',
|
|
69
|
-
width: '100svw'
|
|
70
|
-
} },
|
|
71
|
-
React.createElement("h4", { style: { marginBottom: '0.5rem' } }, "Select Weight:"),
|
|
72
|
-
React.createElement("select", { value: selectedWeight, onChange: function (e) { return setSelectedWeight(e.target.value); }, style: {
|
|
73
|
-
width: '100%',
|
|
74
|
-
padding: '0.5rem',
|
|
75
|
-
marginBottom: '1rem'
|
|
76
|
-
} }, weightOptions.map(function (weight) { return (React.createElement("option", { key: weight, value: weight }, weight)); })),
|
|
77
|
-
React.createElement("div", { style: { display: 'flex', justifyContent: 'center' } },
|
|
78
|
-
React.createElement(Icon, { size: 32, weight: selectedWeight === 'regular' ? undefined : selectedWeight })),
|
|
79
|
-
React.createElement(Typo2_1.UI_CAPTION, { style: { textAlign: 'center', marginTop: '0.5rem' } }, "<".concat(key, " size={32} ").concat(selectedWeight !== 'regular' ? "weight=\"".concat(selectedWeight, "\"") : '', " />"))))));
|
|
59
|
+
React.createElement(Icon, { size: 24 }),
|
|
60
|
+
React.createElement(Typo2_1.UI_CAPTION, null, key)))) : null);
|
|
80
61
|
}))));
|
|
81
62
|
};
|
|
82
63
|
exports.Icons = Icons;
|
|
@@ -49,10 +49,18 @@ declare namespace _default {
|
|
|
49
49
|
let name_10: string;
|
|
50
50
|
export { name_10 as name };
|
|
51
51
|
}
|
|
52
|
-
namespace
|
|
52
|
+
namespace customErrorMsg {
|
|
53
53
|
let name_11: string;
|
|
54
54
|
export { name_11 as name };
|
|
55
55
|
}
|
|
56
|
+
namespace errorLinkText {
|
|
57
|
+
let name_12: string;
|
|
58
|
+
export { name_12 as name };
|
|
59
|
+
}
|
|
60
|
+
namespace S {
|
|
61
|
+
let name_13: string;
|
|
62
|
+
export { name_13 as name };
|
|
63
|
+
}
|
|
56
64
|
}
|
|
57
65
|
namespace args {
|
|
58
66
|
let icon_1: any;
|
|
@@ -77,8 +85,13 @@ declare namespace _default {
|
|
|
77
85
|
export { isRequired_1 as isRequired };
|
|
78
86
|
let disabled_1: boolean;
|
|
79
87
|
export { disabled_1 as disabled };
|
|
80
|
-
let
|
|
81
|
-
|
|
88
|
+
export let invert: boolean;
|
|
89
|
+
let customErrorMsg_1: string;
|
|
90
|
+
export { customErrorMsg_1 as customErrorMsg };
|
|
91
|
+
let errorLinkText_1: string;
|
|
92
|
+
export { errorLinkText_1 as errorLinkText };
|
|
93
|
+
let S_1: boolean;
|
|
94
|
+
export { S_1 as S };
|
|
82
95
|
}
|
|
83
96
|
}
|
|
84
97
|
export default _default;
|
|
@@ -96,13 +109,13 @@ export namespace Number_ {
|
|
|
96
109
|
export { args_1 as args };
|
|
97
110
|
export namespace argTypes_1 {
|
|
98
111
|
export namespace min_1 {
|
|
99
|
-
let
|
|
100
|
-
export {
|
|
112
|
+
let name_14: string;
|
|
113
|
+
export { name_14 as name };
|
|
101
114
|
}
|
|
102
115
|
export { min_1 as min };
|
|
103
116
|
export namespace max_1 {
|
|
104
|
-
let
|
|
105
|
-
export {
|
|
117
|
+
let name_15: string;
|
|
118
|
+
export { name_15 as name };
|
|
106
119
|
}
|
|
107
120
|
export { max_1 as max };
|
|
108
121
|
}
|
|
@@ -79,8 +79,14 @@ exports.default = {
|
|
|
79
79
|
disabled: {
|
|
80
80
|
name: "Disabled"
|
|
81
81
|
},
|
|
82
|
-
|
|
83
|
-
name: "
|
|
82
|
+
customErrorMsg: {
|
|
83
|
+
name: "Custom Error Message"
|
|
84
|
+
},
|
|
85
|
+
errorLinkText: {
|
|
86
|
+
name: "Error link text"
|
|
87
|
+
},
|
|
88
|
+
S: {
|
|
89
|
+
name: "Small"
|
|
84
90
|
}
|
|
85
91
|
},
|
|
86
92
|
args: {
|
|
@@ -96,11 +102,15 @@ exports.default = {
|
|
|
96
102
|
isRequired: false,
|
|
97
103
|
disabled: false,
|
|
98
104
|
invert: false,
|
|
105
|
+
customErrorMsg: 'This is custom error message',
|
|
106
|
+
errorLinkText: "Error Link",
|
|
107
|
+
S: false,
|
|
99
108
|
},
|
|
100
109
|
};
|
|
101
110
|
var GenInputStories = function (_a) {
|
|
102
111
|
var args = _a.args, Comp = _a.Comp, searchUrl = _a.searchUrl;
|
|
103
112
|
var _b = (0, react_1.useState)(''), value = _b[0], setValue = _b[1];
|
|
113
|
+
var _c = (0, react_1.useState)({}), formValidation = _c[0], setFormValidation = _c[1];
|
|
104
114
|
var handleOnChange = function (key, value) {
|
|
105
115
|
setValue(value);
|
|
106
116
|
};
|
|
@@ -132,14 +142,17 @@ var GenInputStories = function (_a) {
|
|
|
132
142
|
backgroundColor: args.invert ? themes_1.colors.greyColor100 : '',
|
|
133
143
|
padding: '10px',
|
|
134
144
|
} },
|
|
135
|
-
react_1.default.createElement(Comp, __assign({}, newProps, { onChange: handleOnChange, value: value, actionBtn: actionBtn, clearBtn: clearBtn
|
|
145
|
+
react_1.default.createElement(Comp, __assign({}, newProps, { onChange: handleOnChange, value: value, actionBtn: actionBtn, clearBtn: clearBtn, passValidationErrorToFormValidation: function (status) {
|
|
146
|
+
if (status === "error") {
|
|
147
|
+
setFormValidation &&
|
|
148
|
+
setFormValidation(function (prev) { return (__assign(__assign({}, prev), { type: 'error', msg: args.customErrorMsg, link: {
|
|
149
|
+
to: "https://google.com",
|
|
150
|
+
text: args.errorLinkText
|
|
151
|
+
} })); });
|
|
152
|
+
}
|
|
153
|
+
}, validationStatus: formValidation }))));
|
|
136
154
|
};
|
|
137
155
|
var Text = function (args) { return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
138
|
-
react_1.default.createElement(GenInputStories, { args: __assign(__assign({}, args), { label: 'text input', sublabel: 'some sub label' }), Comp: TextInputs_1.TextInput }),
|
|
139
|
-
react_1.default.createElement(GenInputStories, { args: __assign(__assign({}, args), { label: 'text input', sublabel: 'some sub label' }), Comp: TextInputs_1.TextInput }),
|
|
140
|
-
react_1.default.createElement(GenInputStories, { args: __assign(__assign({}, args), { label: 'text input', sublabel: 'some sub label' }), Comp: TextInputs_1.TextInput }),
|
|
141
|
-
react_1.default.createElement(GenInputStories, { args: __assign(__assign({}, args), { label: 'text input', sublabel: 'some sub label' }), Comp: TextInputs_1.TextInput }),
|
|
142
|
-
react_1.default.createElement(GenInputStories, { args: __assign(__assign({}, args), { label: 'text input', sublabel: 'some sub label' }), Comp: TextInputs_1.TextInput }),
|
|
143
156
|
react_1.default.createElement(GenInputStories, { args: __assign(__assign({}, args), { label: 'text input', sublabel: 'some sub label' }), Comp: TextInputs_1.TextInput }))); };
|
|
144
157
|
exports.Text = Text;
|
|
145
158
|
var Email_ = function (args) {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ButtonStyledProps } from "../styled";
|
|
3
|
+
export declare const StyledOriginalButton: import("styled-components").StyledComponent<"button", any, ButtonStyledProps, never>;
|
|
4
|
+
export interface ActionButtonInterface extends ButtonStyledProps {
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const ActionButton: React.FunctionComponent<ActionButtonInterface>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.ActionButton = exports.StyledOriginalButton = void 0;
|
|
33
|
+
var react_1 = __importDefault(require("react"));
|
|
34
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
35
|
+
var styled_1 = require("../styled");
|
|
36
|
+
var Typo2_1 = require("../../Typo2");
|
|
37
|
+
exports.StyledOriginalButton = (0, styled_components_1.default)(styled_1.ButtonStyled)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 14px;\n cursor: pointer;\n border: 0;\n padding: 4px 10px;\n"], ["\n border-radius: 14px;\n cursor: pointer;\n border: 0;\n padding: 4px 10px;\n"])));
|
|
38
|
+
var ActionButton = function (_a) {
|
|
39
|
+
var value = _a.value, props = __rest(_a, ["value"]);
|
|
40
|
+
return (react_1.default.createElement(exports.StyledOriginalButton, __assign({}, props, { variant: "primary" }), value && react_1.default.createElement(Typo2_1.UI_CAPTION_BOLD, { semibold: true }, value)));
|
|
41
|
+
};
|
|
42
|
+
exports.ActionButton = ActionButton;
|
|
43
|
+
var templateObject_1;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.ClearButton = void 0;
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var Typo2_1 = require("../../Typo2");
|
|
31
|
+
var ActionButton_1 = require("./ActionButton");
|
|
32
|
+
var ClearButton = function (_a) {
|
|
33
|
+
var value = _a.value, props = __rest(_a, ["value"]);
|
|
34
|
+
return (react_1.default.createElement(ActionButton_1.StyledOriginalButton, __assign({}, props, { variant: "secondary" }), value && react_1.default.createElement(Typo2_1.UI_CAPTION_BOLD, { semibold: true }, value)));
|
|
35
|
+
};
|
|
36
|
+
exports.ClearButton = ClearButton;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface AvatarDisplayProps {
|
|
3
|
+
value: {
|
|
4
|
+
title?: string;
|
|
5
|
+
userUploaded?: {
|
|
6
|
+
publicUrl: string;
|
|
7
|
+
}[];
|
|
8
|
+
};
|
|
9
|
+
title?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
size?: number;
|
|
12
|
+
invert?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @component Renders an AvatarDisplay component with customizable text, style and user uploaded image.
|
|
16
|
+
*
|
|
17
|
+
* - The props object containing the following properties:
|
|
18
|
+
* @prop {Object} value: An object containing the title and user uploaded images.
|
|
19
|
+
* @prop {string} value.title: The title to be displayed in the AvatarDisplay.
|
|
20
|
+
* @prop {Array} value.userUploaded: An array of objects containing the public URL of the user uploaded images.
|
|
21
|
+
* @prop {string} title: The title to be displayed in the AvatarDisplay.
|
|
22
|
+
* @prop {React.CSSProperties} style: Additional CSS styles to apply to the AvatarDisplay.
|
|
23
|
+
* @prop {number} size: The size of the AvatarDisplay. Defaults to 2.5.
|
|
24
|
+
* @prop {boolean} invert: A boolean indicating whether to invert the AvatarDisplay colors. Defaults to false.
|
|
25
|
+
* @return {ReactElement} The rendered AvatarDisplay component.
|
|
26
|
+
*/
|
|
27
|
+
export declare const AvatarDisplay: FunctionComponent<AvatarDisplayProps>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AvatarDisplay = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var styled_1 = require("./styled");
|
|
9
|
+
/**
|
|
10
|
+
* @component Renders an AvatarDisplay component with customizable text, style and user uploaded image.
|
|
11
|
+
*
|
|
12
|
+
* - The props object containing the following properties:
|
|
13
|
+
* @prop {Object} value: An object containing the title and user uploaded images.
|
|
14
|
+
* @prop {string} value.title: The title to be displayed in the AvatarDisplay.
|
|
15
|
+
* @prop {Array} value.userUploaded: An array of objects containing the public URL of the user uploaded images.
|
|
16
|
+
* @prop {string} title: The title to be displayed in the AvatarDisplay.
|
|
17
|
+
* @prop {React.CSSProperties} style: Additional CSS styles to apply to the AvatarDisplay.
|
|
18
|
+
* @prop {number} size: The size of the AvatarDisplay. Defaults to 2.5.
|
|
19
|
+
* @prop {boolean} invert: A boolean indicating whether to invert the AvatarDisplay colors. Defaults to false.
|
|
20
|
+
* @return {ReactElement} The rendered AvatarDisplay component.
|
|
21
|
+
*/
|
|
22
|
+
var AvatarDisplay = function (_a) {
|
|
23
|
+
var value = _a.value, titleProp = _a.title, style = _a.style, _b = _a.size, size = _b === void 0 ? 2.5 : _b, invert = _a.invert;
|
|
24
|
+
var title = titleProp || value.title;
|
|
25
|
+
var titleInitial = title ? title[0].toUpperCase() : '';
|
|
26
|
+
var imageURL = (value === null || value === void 0 ? void 0 : value.userUploaded) && (value === null || value === void 0 ? void 0 : value.userUploaded[0].publicUrl);
|
|
27
|
+
return imageURL ? (react_1.default.createElement(styled_1.StyledAvatarImg, { invert: invert, size: size, style: style, src: imageURL, alt: "profile picture" })) : (react_1.default.createElement(styled_1.StyledAvatarTXT, { invert: invert, size: size, style: style }, titleInitial));
|
|
28
|
+
};
|
|
29
|
+
exports.AvatarDisplay = AvatarDisplay;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const StyledAvatarImg: import("styled-components").StyledComponent<"img", any, {
|
|
2
|
+
invert?: boolean;
|
|
3
|
+
size: number | string;
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const StyledAvatarTXT: import("styled-components").StyledComponent<"h4", any, {
|
|
6
|
+
invert?: boolean;
|
|
7
|
+
size: number | string;
|
|
8
|
+
}, never>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
|
+
if (mod && mod.__esModule) return mod;
|
|
24
|
+
var result = {};
|
|
25
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
26
|
+
__setModuleDefault(result, mod);
|
|
27
|
+
return result;
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.StyledAvatarTXT = exports.StyledAvatarImg = void 0;
|
|
31
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
32
|
+
var utilsOolib_1 = require("../../../../../utilsOolib");
|
|
33
|
+
var themes_1 = require("../../../../../themes");
|
|
34
|
+
var index_styled_1 = require("../../../../../components/Typo/index.styled");
|
|
35
|
+
var greyColor80 = themes_1.colors.greyColor80, white = themes_1.colors.white;
|
|
36
|
+
var commonStyle = function (_a) {
|
|
37
|
+
var size = _a.size, invert = _a.invert, theme = _a.theme;
|
|
38
|
+
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n border-radius: 50%;\n background-color: ", ";\n color: ", ";\n"], ["\n width: ", ";\n height: ", ";\n border-radius: 50%;\n background-color: ", ";\n color: ", ";\n"])), isNaN(size) ? size : "".concat(size, "rem"), isNaN(size) ? size : "".concat(size, "rem"), invert ? greyColor80 : (0, utilsOolib_1.getPrimaryColor10)(theme.colors), white);
|
|
39
|
+
};
|
|
40
|
+
exports.StyledAvatarImg = styled_components_1.default.img(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n font-size: 8px;\n"], ["\n ", "\n font-size: 8px;\n"])), function (_a) {
|
|
41
|
+
var theme = _a.theme, invert = _a.invert, size = _a.size;
|
|
42
|
+
return commonStyle({ theme: theme, invert: invert, size: size });
|
|
43
|
+
});
|
|
44
|
+
exports.StyledAvatarTXT = (0, styled_components_1.default)(index_styled_1.SANS_3_STYLED)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n display: inline-grid;\n place-items: center;\n"], ["\n ", "\n display: inline-grid;\n place-items: center;\n"])), function (_a) {
|
|
45
|
+
var theme = _a.theme, invert = _a.invert, size = _a.size;
|
|
46
|
+
return commonStyle({ theme: theme, invert: invert, size: size });
|
|
47
|
+
});
|
|
48
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
49
|
+
// const commonStyle =({size, invert, theme})=> css`
|
|
50
|
+
// width: ${isNaN(size)? size : size + 'rem'};
|
|
51
|
+
// height: ${isNaN(size)? size : size + 'rem'};
|
|
52
|
+
// border-radius: 50%;
|
|
53
|
+
// background-color: ${invert? greyColor80 : getPrimaryColor10(theme.colors)};
|
|
54
|
+
// color: ${white};
|
|
55
|
+
// `;
|
|
56
|
+
// export const StyledAvatarImg = styled.img`
|
|
57
|
+
// ${({theme, invert, size})=> commonStyle({theme, invert, size})}
|
|
58
|
+
// font-size: 8px;
|
|
59
|
+
// `;
|
|
60
|
+
// export const StyledAvatarTXT = styled(SANS_3_STYLED)`
|
|
61
|
+
// ${({theme, invert, size})=> commonStyle({theme, invert, size})}
|
|
62
|
+
// display: inline-grid;
|
|
63
|
+
// place-items: center;
|
|
64
|
+
// `;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import { DisplayIconProps } from '../../../utils/comps/DisplayIcon';
|
|
3
|
+
import { icons } from '../../../icons';
|
|
4
|
+
export interface OKELinkProps {
|
|
5
|
+
to?: string;
|
|
6
|
+
link?: string;
|
|
7
|
+
onClick?: (e: React.MouseEvent<HTMLSpanElement | HTMLAnchorElement>) => void;
|
|
8
|
+
icon?: keyof typeof icons;
|
|
9
|
+
iconWeight?: DisplayIconProps['weight'];
|
|
10
|
+
iconAfter?: keyof typeof icons;
|
|
11
|
+
text?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
invertUnderline?: boolean;
|
|
14
|
+
color?: string;
|
|
15
|
+
invert?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
style?: React.CSSProperties;
|
|
19
|
+
avatar?: any;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @component Renders a link component with customizable text, styling, and behavior.
|
|
23
|
+
*
|
|
24
|
+
* - The component props object containing the following properties:
|
|
25
|
+
* @prop {string} [to]: The URL to link to.
|
|
26
|
+
* @prop {string} [link]: An external URL to link to.
|
|
27
|
+
* @prop {(e: React.MouseEvent<HTMLSpanElement | HTMLAnchorElement>) => void} [onClick]: A callback function to execute when the link is clicked.
|
|
28
|
+
* @prop {keyof typeof icons} [icon]: An icon to display before the text.
|
|
29
|
+
* @prop {DisplayIconProps['weight']} [iconWeight]: The weight of the icon font. Defaults to "regular".
|
|
30
|
+
* @prop {keyof typeof icons} [iconAfter]: An icon to display after the text.
|
|
31
|
+
* @prop {string} [text]: The text to display in the link.
|
|
32
|
+
* @prop {React.ReactNode} [children]: The content to be rendered inside the link.
|
|
33
|
+
* @prop {boolean} [invertUnderline]: A boolean indicating whether to invert the underline style of the link. Defaults to false.
|
|
34
|
+
* @prop {string} [color]: A string indicating the color of the link. Defaults to the primary color of the theme.
|
|
35
|
+
* @prop {boolean} [invert]: A boolean indicating whether to invert the colors of the link. Defaults to false.
|
|
36
|
+
* @prop {boolean} [disabled]: A boolean indicating whether the link is disabled. Defaults to false.
|
|
37
|
+
* @prop {string} [className]: A string indicating the CSS class name to apply to the link.
|
|
38
|
+
* @prop {React.CSSProperties} [style]: Additional CSS styles to apply to the link.
|
|
39
|
+
* @prop {ProfileImageInputProps['value']} [avatar]: An avatar to display in the link.
|
|
40
|
+
* @return {ReactElement} The rendered link component.
|
|
41
|
+
*/
|
|
42
|
+
export declare const OKELink: FunctionComponent<OKELinkProps>;
|