oolib 2.150.5 → 2.152.0

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.
Files changed (49) hide show
  1. package/dist/icons/custom/index.d.ts +1 -0
  2. package/dist/icons/custom/index.js +11 -2
  3. package/dist/icons/index.d.ts +2 -0
  4. package/dist/icons/index.js +1 -0
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.js +1 -0
  7. package/dist/stories/Oolib/components/Icons.stories.js +5 -24
  8. package/dist/stories/v2/components/TextInputs.stories.d.ts +20 -7
  9. package/dist/stories/v2/components/TextInputs.stories.js +21 -8
  10. package/dist/v2/components/Buttons/derivedComps/ActionButton.d.ts +7 -0
  11. package/dist/v2/components/Buttons/derivedComps/ActionButton.js +43 -0
  12. package/dist/v2/components/Buttons/derivedComps/ClearButton.d.ts +6 -0
  13. package/dist/v2/components/Buttons/derivedComps/ClearButton.js +36 -0
  14. package/dist/v2/components/OKELink/comps/AvatarDisplay/index.d.ts +27 -0
  15. package/dist/v2/components/OKELink/comps/AvatarDisplay/index.js +29 -0
  16. package/dist/v2/components/OKELink/comps/AvatarDisplay/styled.d.ts +8 -0
  17. package/dist/v2/components/OKELink/comps/AvatarDisplay/styled.js +64 -0
  18. package/dist/v2/components/OKELink/index.d.ts +42 -0
  19. package/dist/v2/components/OKELink/index.js +128 -0
  20. package/dist/v2/components/OKELink/styled.d.ts +15 -0
  21. package/dist/v2/components/OKELink/styled.js +62 -0
  22. package/dist/v2/components/OKELink/utils/index.d.ts +11 -0
  23. package/dist/v2/components/OKELink/utils/index.js +20 -0
  24. package/dist/v2/components/Tags/Comps/TagDisplay/index.d.ts +1 -0
  25. package/dist/v2/components/Tags/Comps/TagDisplay/index.js +2 -2
  26. package/dist/v2/components/TextInputs/derivedComps/EmailInput.d.ts +5 -0
  27. package/dist/v2/components/TextInputs/derivedComps/EmailInput.js +45 -0
  28. package/dist/v2/components/TextInputs/derivedComps/NumberInput.d.ts +5 -0
  29. package/dist/v2/components/TextInputs/derivedComps/NumberInput.js +70 -0
  30. package/dist/v2/components/TextInputs/derivedComps/PasswordInput.d.ts +4 -0
  31. package/dist/v2/components/TextInputs/derivedComps/PasswordInput.js +63 -0
  32. package/dist/v2/components/TextInputs/derivedComps/PhoneInput.d.ts +5 -0
  33. package/dist/v2/components/TextInputs/derivedComps/PhoneInput.js +53 -0
  34. package/dist/v2/components/TextInputs/derivedComps/URLInput.d.ts +8 -0
  35. package/dist/v2/components/TextInputs/derivedComps/URLInput.js +129 -0
  36. package/dist/v2/components/TextInputs/index.d.ts +8 -23
  37. package/dist/v2/components/TextInputs/index.js +42 -187
  38. package/dist/v2/components/TextInputs/index.styled.js +5 -2
  39. package/dist/v2/components/Typo2/index.d.ts +1 -0
  40. package/dist/v2/components/Typo2/index.js +3 -1
  41. package/dist/v2/components/Typo2/index.styled.d.ts +1 -0
  42. package/dist/v2/components/Typo2/index.styled.js +18 -17
  43. package/dist/v2/components/cards/CardContent/index.js +11 -10
  44. package/dist/v2/components/cards/CardContent/styled.js +51 -11
  45. package/dist/v2/themes/globalStyles.d.ts +0 -1
  46. package/dist/v2/themes/globalStyles.js +1 -2
  47. package/dist/v2/themes/typo.d.ts +1 -0
  48. package/dist/v2/themes/typo.js +17 -15
  49. package/package.json +1 -1
@@ -0,0 +1,129 @@
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
+ return new (P || (P = Promise))(function (resolve, reject) {
16
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
20
+ });
21
+ };
22
+ var __generator = (this && this.__generator) || function (thisArg, body) {
23
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
+ function verb(n) { return function (v) { return step([n, v]); }; }
26
+ function step(op) {
27
+ if (f) throw new TypeError("Generator is already executing.");
28
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
+ if (y = 0, t) op = [op[0] & 2, t.value];
31
+ switch (op[0]) {
32
+ case 0: case 1: t = op; break;
33
+ case 4: _.label++; return { value: op[1], done: false };
34
+ case 5: _.label++; y = op[1]; op = [0]; continue;
35
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
+ default:
37
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
+ if (t[2]) _.ops.pop();
42
+ _.trys.pop(); continue;
43
+ }
44
+ op = body.call(thisArg, _);
45
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
+ }
48
+ };
49
+ var __rest = (this && this.__rest) || function (s, e) {
50
+ var t = {};
51
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
52
+ t[p] = s[p];
53
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
54
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
55
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
56
+ t[p[i]] = s[p[i]];
57
+ }
58
+ return t;
59
+ };
60
+ var __importDefault = (this && this.__importDefault) || function (mod) {
61
+ return (mod && mod.__esModule) ? mod : { "default": mod };
62
+ };
63
+ Object.defineProperty(exports, "__esModule", { value: true });
64
+ exports.URLInput = void 0;
65
+ var react_1 = __importDefault(require("react"));
66
+ var __1 = require("..");
67
+ var URLInput = function (_a) {
68
+ var _b = _a.routesAreValidInputs, routesAreValidInputs = _b === void 0 ? false : _b, //if we want react route declarations to be considered as 'valid' then set this to true
69
+ validationPlugin = _a.validationPlugin, passValidationErrorToFormValidation = _a.passValidationErrorToFormValidation, content = _a.content, props = __rest(_a, ["routesAreValidInputs", "validationPlugin", "passValidationErrorToFormValidation", "content"]);
70
+ var handleValidation = function (value) { return __awaiter(void 0, void 0, void 0, function () {
71
+ var pluginResponse, successObj, response, successObj, err_1, successObj, errorObj;
72
+ return __generator(this, function (_a) {
73
+ switch (_a.label) {
74
+ case 0:
75
+ if (!validationPlugin) return [3 /*break*/, 2];
76
+ return [4 /*yield*/, validationPlugin({
77
+ value: value,
78
+ content: content,
79
+ passValidationErrorToFormValidation: passValidationErrorToFormValidation,
80
+ })];
81
+ case 1:
82
+ pluginResponse = _a.sent();
83
+ if (pluginResponse)
84
+ return [2 /*return*/, pluginResponse];
85
+ _a.label = 2;
86
+ case 2:
87
+ //else
88
+ //if routesAreValidInputs, then first validate for a route
89
+ if (routesAreValidInputs && value.substring(0, 1) === "/") {
90
+ successObj = { type: "success", msg: "valid route" };
91
+ if (passValidationErrorToFormValidation)
92
+ passValidationErrorToFormValidation(successObj.type);
93
+ return [2 /*return*/, successObj];
94
+ }
95
+ //else validate for a url
96
+ if (!/^https?:\/\//i.test(value)) {
97
+ value = "https://" + value;
98
+ }
99
+ _a.label = 3;
100
+ case 3:
101
+ _a.trys.push([3, 5, , 6]);
102
+ return [4 /*yield*/, fetch(value)];
103
+ case 4:
104
+ response = _a.sent();
105
+ if (response.status !== 200)
106
+ throw new Error("");
107
+ successObj = { type: "success", msg: "valid url" };
108
+ if (passValidationErrorToFormValidation)
109
+ passValidationErrorToFormValidation(successObj.type);
110
+ return [2 /*return*/, successObj];
111
+ case 5:
112
+ err_1 = _a.sent();
113
+ if (/[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/gi.test(value)) {
114
+ successObj = { type: "success", msg: "valid url" };
115
+ if (passValidationErrorToFormValidation)
116
+ passValidationErrorToFormValidation(successObj.type);
117
+ return [2 /*return*/, successObj];
118
+ }
119
+ errorObj = { type: "error", msg: "Enter a valid url..." };
120
+ if (passValidationErrorToFormValidation)
121
+ passValidationErrorToFormValidation(errorObj.type);
122
+ return [2 /*return*/, errorObj];
123
+ case 6: return [2 /*return*/];
124
+ }
125
+ });
126
+ }); };
127
+ return (react_1.default.createElement(__1.TextInput, __assign({ type: "url", handleValidation: handleValidation, placeholder: "Enter a valid url..." }, props)));
128
+ };
129
+ exports.URLInput = URLInput;
@@ -1,4 +1,5 @@
1
- export function TextInput({ id, invert, disabled, icon, type, placeholder, value, onChange, onFocus, onBlur, readOnly, iconOnClick, iconAfter, handleValidation, validateOnMount, actionBtn, clearBtn, className, maxLength, maxNumLimiter: DEPRECATED_maxNumLimiter, forceFocus, validateOnlyOnBlur, validationStatus: _validationStatus, displayValidationMsg, content, passValidationErrorToFormValidation, plugin, }: {
1
+ export function TextInput({ S, id, invert, disabled, icon, type, placeholder, value, onChange, onFocus, onBlur, readOnly, iconOnClick, iconAfter, handleValidation, validateOnMount, actionBtn, clearBtn, className, maxLength, maxNumLimiter: DEPRECATED_maxNumLimiter, forceFocus, validateOnlyOnBlur, validationStatus: _validationStatus, displayValidationMsg, content, passValidationErrorToFormValidation, plugin, }: {
2
+ S: any;
2
3
  id: any;
3
4
  invert: any;
4
5
  disabled: any;
@@ -27,26 +28,10 @@ export function TextInput({ id, invert, disabled, icon, type, placeholder, value
27
28
  passValidationErrorToFormValidation: any;
28
29
  plugin: any;
29
30
  }, ...args: any[]): React.JSX.Element;
30
- export function PasswordInput({ ...props }: {
31
- [x: string]: any;
32
- }): React.JSX.Element;
33
- export function EmailInput({ passValidationErrorToFormValidation, ...props }: {
34
- [x: string]: any;
35
- passValidationErrorToFormValidation: any;
36
- }): React.JSX.Element;
37
- export function PhoneInput({ passValidationErrorToFormValidation, ...props }: {
38
- [x: string]: any;
39
- passValidationErrorToFormValidation: any;
40
- }): React.JSX.Element;
41
- export function URLInput({ routesAreValidInputs, validationPlugin, passValidationErrorToFormValidation, content, ...props }: {
42
- [x: string]: any;
43
- routesAreValidInputs?: boolean;
44
- validationPlugin: any;
45
- passValidationErrorToFormValidation: any;
46
- content: any;
47
- }): React.JSX.Element;
48
- export function NumberInput({ passValidationErrorToFormValidation, ...props }: {
49
- [x: string]: any;
50
- passValidationErrorToFormValidation: any;
51
- }): React.JSX.Element;
52
31
  import React from "react";
32
+ import { EmailInput } from "./derivedComps/EmailInput";
33
+ import { NumberInput } from "./derivedComps/NumberInput";
34
+ import { PhoneInput } from "./derivedComps/PhoneInput";
35
+ import { PasswordInput } from "./derivedComps/PasswordInput";
36
+ import { URLInput } from "./derivedComps/URLInput";
37
+ export { EmailInput, NumberInput, PhoneInput, PasswordInput, URLInput };
@@ -69,34 +69,36 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
70
70
  }
71
71
  };
72
- var __rest = (this && this.__rest) || function (s, e) {
73
- var t = {};
74
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
75
- t[p] = s[p];
76
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
77
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
78
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
79
- t[p[i]] = s[p[i]];
80
- }
81
- return t;
82
- };
83
72
  Object.defineProperty(exports, "__esModule", { value: true });
84
- exports.NumberInput = exports.URLInput = exports.PhoneInput = exports.EmailInput = exports.PasswordInput = exports.TextInput = void 0;
73
+ exports.URLInput = exports.PasswordInput = exports.PhoneInput = exports.NumberInput = exports.EmailInput = exports.TextInput = void 0;
85
74
  var react_1 = __importStar(require("react"));
86
75
  var styled_components_1 = require("styled-components");
87
76
  var BlockLabel_1 = require("../BlockLabel");
88
77
  var LoadersAndProgress_1 = require("../../../components/LoadersAndProgress");
89
- var OKELink_1 = require("../../../components/OKELink");
78
+ var OKELink_1 = require("../OKELink");
90
79
  var _EXPORTS_1 = require("../../../utils/_EXPORTS");
91
80
  var utilsOolib_1 = require("../../../utilsOolib");
92
81
  var themes_1 = require("../../themes");
93
- var Buttons_1 = require("../Buttons");
94
82
  var Typo2_1 = require("../Typo2");
95
83
  var index_styled_1 = require("./index.styled");
96
84
  var DisplayIcon_1 = require("../../../utils/comps/DisplayIcon");
85
+ var EmailInput_1 = require("./derivedComps/EmailInput");
86
+ Object.defineProperty(exports, "EmailInput", { enumerable: true, get: function () { return EmailInput_1.EmailInput; } });
87
+ var PasswordInput_1 = require("./derivedComps/PasswordInput");
88
+ Object.defineProperty(exports, "PasswordInput", { enumerable: true, get: function () { return PasswordInput_1.PasswordInput; } });
89
+ var URLInput_1 = require("./derivedComps/URLInput");
90
+ Object.defineProperty(exports, "URLInput", { enumerable: true, get: function () { return URLInput_1.URLInput; } });
91
+ var NumberInput_1 = require("./derivedComps/NumberInput");
92
+ Object.defineProperty(exports, "NumberInput", { enumerable: true, get: function () { return NumberInput_1.NumberInput; } });
93
+ var PhoneInput_1 = require("./derivedComps/PhoneInput");
94
+ Object.defineProperty(exports, "PhoneInput", { enumerable: true, get: function () { return PhoneInput_1.PhoneInput; } });
95
+ var ClearButton_1 = require("../Buttons/derivedComps/ClearButton");
96
+ var ActionButton_1 = require("../Buttons/derivedComps/ActionButton");
97
+ var icons_1 = require("../../../icons");
98
+ var BadgeVetted = icons_1.icons.BadgeVetted;
97
99
  function TextInput(_a) {
98
100
  var _this = this;
99
- var id = _a.id, invert = _a.invert, disabled = _a.disabled, icon = _a.icon, type = _a.type, _b = _a.placeholder, placeholder = _b === void 0 ? "Enter Text..." : _b, _c = _a.value, value = _c === void 0 ? "" : _c, onChange = _a.onChange, onFocus = _a.onFocus, onBlur = _a.onBlur, readOnly = _a.readOnly, iconOnClick = _a.iconOnClick, iconAfter = _a.iconAfter, handleValidation = _a.handleValidation, _d = _a.validateOnMount, validateOnMount = _d === void 0 ? true : _d, // i think it makes sense to always run validation the minute the comp mounts, but we will see if this has sideeffects
101
+ var S = _a.S, id = _a.id, invert = _a.invert, disabled = _a.disabled, icon = _a.icon, type = _a.type, _b = _a.placeholder, placeholder = _b === void 0 ? "Enter Text..." : _b, _c = _a.value, value = _c === void 0 ? "" : _c, onChange = _a.onChange, onFocus = _a.onFocus, onBlur = _a.onBlur, readOnly = _a.readOnly, iconOnClick = _a.iconOnClick, iconAfter = _a.iconAfter, handleValidation = _a.handleValidation, _d = _a.validateOnMount, validateOnMount = _d === void 0 ? true : _d, // i think it makes sense to always run validation the minute the comp mounts, but we will see if this has sideeffects
100
102
  actionBtn = _a.actionBtn, clearBtn = _a.clearBtn, className = _a.className, maxLength = _a.maxLength, DEPRECATED_maxNumLimiter = _a.maxNumLimiter, forceFocus = _a.forceFocus, //sometimes, when some other elem is clicked, we wanna trigger focus on the textinput. eg. when on mobile, the search icon is clicked on the listingpage
101
103
  _e = _a.validateOnlyOnBlur, //sometimes, when some other elem is clicked, we wanna trigger focus on the textinput. eg. when on mobile, the search icon is clicked on the listingpage
102
104
  validateOnlyOnBlur = _e === void 0 ? false : _e, //for example, in the login form we want validation to only run, once the text input is blurred. else it can be irritating
@@ -109,6 +111,7 @@ function TextInput(_a) {
109
111
  }, [_validationStatus]);
110
112
  var actionBtnEnabaled = !!value && (type !== "url" ? true : (validationStatus === null || validationStatus === void 0 ? void 0 : validationStatus.type) === "success");
111
113
  var clearBtnEnabled = !!value && (type !== "url" ? true : (validationStatus === null || validationStatus === void 0 ? void 0 : validationStatus.type) === "success");
114
+ var size = S ? "S" : "M";
112
115
  var handleValidate = function (e, onBlur) { return __awaiter(_this, void 0, void 0, function () {
113
116
  var value, res, validationPlugin, pluginResponse;
114
117
  return __generator(this, function (_a) {
@@ -176,178 +179,30 @@ function TextInput(_a) {
176
179
  forceFocus && inputRef.current && inputRef.current.focus();
177
180
  }, [forceFocus]);
178
181
  var localize = (0, utilsOolib_1.useLocale)();
179
- return (react_1.default.createElement(react_1.default.Fragment, null,
180
- react_1.default.createElement("div", { className: className },
181
- react_1.default.createElement(BlockLabel_1.BlockLabel, __assign({}, (0, _EXPORTS_1.getBlockLabelProps)(props))),
182
- readOnly ? (react_1.default.createElement(Typo2_1.UI_BODY_SM, null, type === "password" ? "********" : value)) : (react_1.default.createElement(react_1.default.Fragment, null,
183
- react_1.default.createElement(index_styled_1.InputContainerStyled, { type: type, disabled: disabled, iconAfter: iconAfter, onClick: function () { return inputRef.current.focus(); } },
184
- icon && (react_1.default.createElement(DisplayIcon_1.DisplayIcon, { icon: icon, color: disabled ? themes_1.colors.grey40 : themes_1.colors.grey80, size: 16, onClick: !disabled ? iconOnClick || null : undefined })),
185
- react_1.default.createElement(index_styled_1.InputStyled, { ref: inputRef, className: "UI_BODY_SM", id: id, type: type, name: type, disabled: disabled, placeholder: localize(placeholder), value: value, onChange: handleOnChange, maxLength: maxLength || DEPRECATED_maxNumLimiter, onBlur: validateOnlyOnBlur ? function (e) { return handleValidate(e, onBlur); } : onBlur, onFocus: onFocus, autoComplete: "off" }),
186
- validationStatus === "loading" && (react_1.default.createElement("div", null,
187
- react_1.default.createElement(LoadersAndProgress_1.LoaderCircle, { S: true, invert: invert }))),
188
- clearBtn && clearBtnEnabled && (react_1.default.createElement(index_styled_1.ClearButtonStyled, { onClick: function () { return onChange(id, ""); } },
189
- react_1.default.createElement(Typo2_1.UI_CAPTION, null, localize((clearBtn === null || clearBtn === void 0 ? void 0 : clearBtn.text) || "clear")))),
190
- actionBtn && (react_1.default.createElement(index_styled_1.ButtonPrimaryStyled, { S: true, value: actionBtn.text, invert: actionBtn.invert, onClick: actionBtnEnabaled && actionBtn.onClick, disabled: !actionBtnEnabaled, className: "UI_CAPTION" },
191
- react_1.default.createElement(Typo2_1.UI_CAPTION, null, localize((actionBtn === null || actionBtn === void 0 ? void 0 : actionBtn.text) || "action"))))),
192
- displayValidationMsg && (validationStatus === null || validationStatus === void 0 ? void 0 : validationStatus.msg) && (react_1.default.createElement(index_styled_1.MsgContainerStyled, { status: validationStatus === null || validationStatus === void 0 ? void 0 : validationStatus.type },
193
- (validationStatus === null || validationStatus === void 0 ? void 0 : validationStatus.type) === "error" && (react_1.default.createElement(DisplayIcon_1.DisplayIcon, { size: 12, icon: "WarningDiamond", weight: "fill", color: themes_1.colors.red })),
194
- react_1.default.createElement(Typo2_1.UI_HELPTEXT, null,
195
- validationStatus.msg,
196
- validationStatus.link && (react_1.default.createElement(OKELink_1.OKELink, { style: { marginLeft: "1rem" }, to: validationStatus.link.to }, validationStatus.link.text))))))))));
182
+ return (react_1.default.createElement("div", { className: className },
183
+ react_1.default.createElement(BlockLabel_1.BlockLabel, __assign({}, (0, _EXPORTS_1.getBlockLabelProps)(props))),
184
+ readOnly ? (react_1.default.createElement(Typo2_1.UI_BODY_SM, null, type === "password" ? "********" : value)) : (react_1.default.createElement(react_1.default.Fragment, null,
185
+ react_1.default.createElement(index_styled_1.InputContainerStyled, { type: type, disabled: disabled, iconAfter: iconAfter, onClick: function () { return inputRef.current.focus(); } },
186
+ icon && (react_1.default.createElement(DisplayIcon_1.DisplayIcon, { icon: icon, color: disabled ? themes_1.colors.grey40 : themes_1.colors.grey80, size: S ? 12 : 16, onClick: !disabled ? iconOnClick || null : undefined })),
187
+ react_1.default.createElement(index_styled_1.InputStyled, { ref: inputRef, className: size === "S" ? "UI_BODY" : "UI_BODY_SM", id: id, type: type, name: type, disabled: disabled, placeholder: localize(placeholder), value: value, onChange: handleOnChange, maxLength: maxLength || DEPRECATED_maxNumLimiter, onBlur: validateOnlyOnBlur ? function (e) { return handleValidate(e, onBlur); } : onBlur, size: size, onFocus: onFocus, autoComplete: "off" }),
188
+ validationStatus === "loading" && (react_1.default.createElement("div", null,
189
+ react_1.default.createElement(LoadersAndProgress_1.LoaderCircle, { S: true, invert: invert }))),
190
+ (validationStatus === null || validationStatus === void 0 ? void 0 : validationStatus.type) === "success" && (react_1.default.createElement("div", null,
191
+ react_1.default.createElement(BadgeVetted, { size: 26 }))),
192
+ clearBtn && clearBtnEnabled && (react_1.default.createElement(ClearButton_1.ClearButton, { onClick: function () { return onChange(id, ""); }, value: (clearBtn === null || clearBtn === void 0 ? void 0 : clearBtn.text) || "Clear", disabled: !clearBtnEnabled })),
193
+ actionBtn && (react_1.default.createElement(ActionButton_1.ActionButton, { value: actionBtn.text || "Action", onClick: actionBtnEnabaled && actionBtn.onClick, disabled: !actionBtnEnabaled }))),
194
+ displayValidationMsg && (validationStatus === null || validationStatus === void 0 ? void 0 : validationStatus.msg) && (react_1.default.createElement(index_styled_1.MsgContainerStyled, { status: validationStatus === null || validationStatus === void 0 ? void 0 : validationStatus.type },
195
+ (validationStatus === null || validationStatus === void 0 ? void 0 : validationStatus.type) === "error" && (react_1.default.createElement(DisplayIcon_1.DisplayIcon, { size: 12, icon: "WarningDiamond", weight: "fill", color: themes_1.colors.error })),
196
+ react_1.default.createElement(Typo2_1.UI_HELPTEXT, null,
197
+ react_1.default.createElement("div", { style: { display: 'flex' } },
198
+ !((validationStatus === null || validationStatus === void 0 ? void 0 : validationStatus.type) === "success") && validationStatus.msg,
199
+ validationStatus.link && (react_1.default.createElement(OKELink_1.OKELink, { to: validationStatus.link.to, style: { marginLeft: "0.5rem" } }, validationStatus.link.text))))))))));
197
200
  }
198
201
  exports.TextInput = TextInput;
199
- //passValidationErrorToFormValidation is not being handled by PasswordInput, cuz i dont think we will need it here..
200
- var PasswordInput = function (_a) {
201
- var props = __rest(_a, []);
202
- var _b = (0, react_1.useState)(false), showPassword = _b[0], setShowPassword = _b[1];
203
- var icon = showPassword ? "Eye" : "EyeClosed";
204
- var toggleShowPassword = function (e) {
205
- if (props.disabled)
206
- return;
207
- e.preventDefault();
208
- setShowPassword(function (prev) { return !prev; });
209
- };
210
- return (react_1.default.createElement(TextInput, __assign({ placeholder: "Enter password...", type: showPassword ? "text" : "password", iconOnClick: toggleShowPassword, iconAfter: true, icon: icon }, props)));
211
- };
212
- exports.PasswordInput = PasswordInput;
213
- var EmailInput = function (_a) {
214
- var passValidationErrorToFormValidation = _a.passValidationErrorToFormValidation, props = __rest(_a, ["passValidationErrorToFormValidation"]);
215
- var handleValidation = function (value) {
216
- var regEx = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
217
- var errorObj = regEx.test(value)
218
- ? ""
219
- : { type: "error", msg: "Enter a valid email address" };
220
- if (passValidationErrorToFormValidation) {
221
- passValidationErrorToFormValidation((errorObj === null || errorObj === void 0 ? void 0 : errorObj.type) || "success");
222
- }
223
- return errorObj;
224
- };
225
- return (react_1.default.createElement(TextInput, __assign({ type: "email", placeholder: "Enter email...", handleValidation: handleValidation }, props)));
226
- };
227
- exports.EmailInput = EmailInput;
228
- var PhoneInput = function (_a) {
229
- var passValidationErrorToFormValidation = _a.passValidationErrorToFormValidation, props = __rest(_a, ["passValidationErrorToFormValidation"]);
230
- var handleValidation = function (value) {
231
- var errorObj;
232
- if (isNaN(value)) {
233
- errorObj = { type: "error", msg: "Enter a valid phone number" };
234
- if (passValidationErrorToFormValidation)
235
- passValidationErrorToFormValidation(errorObj.type);
236
- return errorObj;
237
- }
238
- if (value.length < 9) {
239
- errorObj = { type: "error", msg: "Enter a valid phone number" };
240
- if (passValidationErrorToFormValidation)
241
- passValidationErrorToFormValidation(errorObj.type);
242
- return errorObj;
243
- }
244
- //else
245
- if (passValidationErrorToFormValidation)
246
- passValidationErrorToFormValidation("success");
247
- };
248
- return (react_1.default.createElement(TextInput, __assign({ type: "tel", placeholder: "Enter Phone...", handleValidation: handleValidation, maxLength: 11 }, props)));
249
- };
250
- exports.PhoneInput = PhoneInput;
251
- var URLInput = function (_a) {
252
- var _b = _a.routesAreValidInputs, routesAreValidInputs = _b === void 0 ? false : _b, //if we want react route declarations to be considered as 'valid' then set this to true
253
- validationPlugin = _a.validationPlugin, passValidationErrorToFormValidation = _a.passValidationErrorToFormValidation, content = _a.content, props = __rest(_a, ["routesAreValidInputs", "validationPlugin", "passValidationErrorToFormValidation", "content"]);
254
- var handleValidation = function (value) { return __awaiter(void 0, void 0, void 0, function () {
255
- var pluginResponse, successObj, response, successObj, err_1, successObj, errorObj;
256
- return __generator(this, function (_a) {
257
- switch (_a.label) {
258
- case 0:
259
- if (!validationPlugin) return [3 /*break*/, 2];
260
- return [4 /*yield*/, validationPlugin({
261
- value: value,
262
- content: content,
263
- passValidationErrorToFormValidation: passValidationErrorToFormValidation,
264
- })];
265
- case 1:
266
- pluginResponse = _a.sent();
267
- if (pluginResponse)
268
- return [2 /*return*/, pluginResponse];
269
- _a.label = 2;
270
- case 2:
271
- //else
272
- //if routesAreValidInputs, then first validate for a route
273
- if (routesAreValidInputs && value.substring(0, 1) === "/") {
274
- successObj = { type: "success", msg: "valid route" };
275
- if (passValidationErrorToFormValidation)
276
- passValidationErrorToFormValidation(successObj.type);
277
- return [2 /*return*/, successObj];
278
- }
279
- //else validate for a url
280
- if (!/^https?:\/\//i.test(value)) {
281
- value = "https://" + value;
282
- }
283
- _a.label = 3;
284
- case 3:
285
- _a.trys.push([3, 5, , 6]);
286
- return [4 /*yield*/, fetch(value)];
287
- case 4:
288
- response = _a.sent();
289
- if (response.status !== 200)
290
- throw new Error("");
291
- successObj = { type: "success", msg: "valid url" };
292
- if (passValidationErrorToFormValidation)
293
- passValidationErrorToFormValidation(successObj.type);
294
- return [2 /*return*/, successObj];
295
- case 5:
296
- err_1 = _a.sent();
297
- if (/[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/gi.test(value)) {
298
- successObj = { type: "success", msg: "valid url" };
299
- if (passValidationErrorToFormValidation)
300
- passValidationErrorToFormValidation(successObj.type);
301
- return [2 /*return*/, successObj];
302
- }
303
- errorObj = { type: "error", msg: "Enter a valid url..." };
304
- if (passValidationErrorToFormValidation)
305
- passValidationErrorToFormValidation(errorObj.type);
306
- return [2 /*return*/, errorObj];
307
- case 6: return [2 /*return*/];
308
- }
309
- });
310
- }); };
311
- return (react_1.default.createElement(TextInput, __assign({ type: "url", handleValidation: handleValidation, placeholder: "Enter a valid url..." }, props)));
312
- };
313
- exports.URLInput = URLInput;
314
- var NumberInput = function (_a) {
315
- var passValidationErrorToFormValidation = _a.passValidationErrorToFormValidation, props = __rest(_a, ["passValidationErrorToFormValidation"]);
316
- var min = props.min, max = props.max;
317
- var handleValidation = function (value) {
318
- var errorObj;
319
- if (isNaN(value)) {
320
- errorObj = { type: "error", msg: "Enter a number" };
321
- if (passValidationErrorToFormValidation)
322
- passValidationErrorToFormValidation(errorObj.type);
323
- return errorObj;
324
- }
325
- if (min && value < min) {
326
- errorObj = {
327
- type: "error",
328
- msg: "Enter value greater than or equal to ".concat(min),
329
- };
330
- if (passValidationErrorToFormValidation)
331
- passValidationErrorToFormValidation(errorObj.type);
332
- return errorObj;
333
- }
334
- if (max && value > max) {
335
- errorObj = {
336
- type: "error",
337
- msg: "Enter value less than or equal to ".concat(max),
338
- };
339
- if (passValidationErrorToFormValidation)
340
- passValidationErrorToFormValidation(errorObj.type);
341
- return errorObj;
342
- }
343
- //else
344
- if (passValidationErrorToFormValidation)
345
- passValidationErrorToFormValidation("success");
346
- };
347
- return (react_1.default.createElement(TextInput
348
- // type="number"
349
- , __assign({
350
- // type="number"
351
- handleValidation: handleValidation, placeholder: "Enter Number..." }, props)));
202
+ var Inputs = {
203
+ EmailInput: EmailInput_1.EmailInput,
204
+ NumberInput: NumberInput_1.NumberInput,
205
+ PhoneInput: PhoneInput_1.PhoneInput,
206
+ PasswordInput: PasswordInput_1.PasswordInput,
207
+ URLInput: URLInput_1.URLInput,
352
208
  };
353
- exports.NumberInput = NumberInput;
@@ -33,7 +33,7 @@ var mixins_1 = require("../../../themes/mixins");
33
33
  var themes_1 = require("../../themes");
34
34
  var globalStyles_1 = require("../../themes/globalStyles");
35
35
  var getColorValue = function (status) {
36
- return status === "error" ? themes_1.colors.red : status === "success" && themes_1.colors.green;
36
+ return status === "error" ? themes_1.colors.error : status === "success" && themes_1.colors.green;
37
37
  };
38
38
  exports.MsgContainerStyled = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-top: 2px;\n display: flex;\n align-items: center;\n gap: 2px;\n ", "\n"], ["\n margin-top: 2px;\n display: flex;\n align-items: center;\n gap: 2px;\n ", "\n"])), function (_a) {
39
39
  var status = _a.status;
@@ -55,7 +55,10 @@ exports.InputContainerStyled = styled_components_1.default.div(templateObject_6
55
55
  var readOnly = _a.readOnly;
56
56
  return readOnly && (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n pointer-events: none;\n "], ["\n pointer-events: none;\n "])));
57
57
  });
58
- exports.InputStyled = styled_components_1.default.input(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n height: ", ";\n border: none;\n outline: none;\n flex-grow: 1;\n background: transparent;\n color: inherit;\n\n &:-webkit-autofill {\n transition-delay: 9999s;\n }\n\n ::placeholder {\n color: ", ";\n opacity: 1;\n }\n"], ["\n height: ", ";\n border: none;\n outline: none;\n flex-grow: 1;\n background: transparent;\n color: inherit;\n\n &:-webkit-autofill {\n transition-delay: 9999s;\n }\n\n ::placeholder {\n color: ", ";\n opacity: 1;\n }\n"])), globalStyles_1.globalInputHeight, function (_a) {
58
+ exports.InputStyled = styled_components_1.default.input(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n height: ", ";\n border: none;\n outline: none;\n flex-grow: 1;\n background: transparent;\n color: inherit;\n\n &:-webkit-autofill {\n transition-delay: 9999s;\n }\n\n ::placeholder {\n color: ", ";\n opacity: 1;\n }\n"], ["\n height: ", ";\n border: none;\n outline: none;\n flex-grow: 1;\n background: transparent;\n color: inherit;\n\n &:-webkit-autofill {\n transition-delay: 9999s;\n }\n\n ::placeholder {\n color: ", ";\n opacity: 1;\n }\n"])), function (_a) {
59
+ var size = _a.size;
60
+ return size === "S" ? "32px" : "36px";
61
+ }, function (_a) {
59
62
  var disabled = _a.disabled;
60
63
  return (disabled ? themes_1.colors.grey40 : themes_1.colors.grey60);
61
64
  });
@@ -38,6 +38,7 @@ export declare const UI_BODY_BOLD_SM: React.FunctionComponent<TypoCompProps>;
38
38
  export declare const UI_PARAGRAPH: React.FunctionComponent<TypoCompProps>;
39
39
  export declare const UI_PARAGRAPH_BOLD: React.FunctionComponent<TypoCompProps>;
40
40
  export declare const UI_CAPTION: React.FunctionComponent<TypoCompProps>;
41
+ export declare const UI_CAPTION_BOLD: React.FunctionComponent<TypoCompProps>;
41
42
  export declare const UI_TAG: React.FunctionComponent<TypoCompProps>;
42
43
  export declare const UI_HELPTEXT: React.FunctionComponent<TypoCompProps>;
43
44
  export declare const UI_STAT_LG: React.FunctionComponent<TypoCompProps>;
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.TypoV2ClassesProvider = exports.CONTENT_BODY_POSTIT = exports.CONTENT_TITLE_POSTIT = exports.CONTENT_QUOTE = exports.CONTENT_BODY_BOLD_ITALIC = exports.CONTENT_BODY_ITALIC = exports.CONTENT_BODY_BOLD = exports.CONTENT_BODY = exports.CONTENT_H3 = exports.CONTENT_H2 = exports.CONTENT_H1 = exports.UI_STAT_SM = exports.UI_STAT_LG = exports.UI_HELPTEXT = exports.UI_TAG = exports.UI_CAPTION = exports.UI_PARAGRAPH_BOLD = exports.UI_PARAGRAPH = exports.UI_BODY_BOLD_SM = exports.UI_BODY_BOLD = exports.UI_BODY_SEMIBOLD_SM = exports.UI_BODY_SEMIBOLD = exports.UI_BODY_SM = exports.UI_BODY = exports.UI_TITLE_SM = exports.UI_TITLE = exports.UI_HEADLINE_SM = exports.UI_HEADLINE = exports.UI_DISPLAY = void 0;
28
+ exports.TypoV2ClassesProvider = exports.CONTENT_BODY_POSTIT = exports.CONTENT_TITLE_POSTIT = exports.CONTENT_QUOTE = exports.CONTENT_BODY_BOLD_ITALIC = exports.CONTENT_BODY_ITALIC = exports.CONTENT_BODY_BOLD = exports.CONTENT_BODY = exports.CONTENT_H3 = exports.CONTENT_H2 = exports.CONTENT_H1 = exports.UI_STAT_SM = exports.UI_STAT_LG = exports.UI_HELPTEXT = exports.UI_TAG = exports.UI_CAPTION_BOLD = exports.UI_CAPTION = exports.UI_PARAGRAPH_BOLD = exports.UI_PARAGRAPH = exports.UI_BODY_BOLD_SM = exports.UI_BODY_BOLD = exports.UI_BODY_SEMIBOLD_SM = exports.UI_BODY_SEMIBOLD = exports.UI_BODY_SM = exports.UI_BODY = exports.UI_TITLE_SM = exports.UI_TITLE = exports.UI_HEADLINE_SM = exports.UI_HEADLINE = exports.UI_DISPLAY = void 0;
29
29
  var react_1 = __importDefault(require("react"));
30
30
  var index_styled_1 = require("./index.styled");
31
31
  var utilsOolib_1 = require("../../../utilsOolib");
@@ -97,6 +97,8 @@ var UI_PARAGRAPH_BOLD = function (props) { return react_1.default.createElement(
97
97
  exports.UI_PARAGRAPH_BOLD = UI_PARAGRAPH_BOLD;
98
98
  var UI_CAPTION = function (props) { return react_1.default.createElement(GenComp, { props: props, Comp: index_styled_1.UI_CAPTION_STYLED }); };
99
99
  exports.UI_CAPTION = UI_CAPTION;
100
+ var UI_CAPTION_BOLD = function (props) { return react_1.default.createElement(GenComp, { props: props, Comp: index_styled_1.UI_CAPTION_BOLD_STYLED }); };
101
+ exports.UI_CAPTION_BOLD = UI_CAPTION_BOLD;
100
102
  var UI_TAG = function (props) { return react_1.default.createElement(GenComp, { props: props, Comp: index_styled_1.UI_TAG_STYLED }); };
101
103
  exports.UI_TAG = UI_TAG;
102
104
  var UI_HELPTEXT = function (props) { return react_1.default.createElement(GenComp, { props: props, Comp: index_styled_1.UI_HELPTEXT_STYLED }); };
@@ -12,6 +12,7 @@ export declare const UI_BODY_BOLD_SM_STYLED: import("styled-components").StyledC
12
12
  export declare const UI_PARAGRAPH_STYLED: import("styled-components").StyledComponent<"p", any, {}, never>;
13
13
  export declare const UI_PARAGRAPH_BOLD_STYLED: import("styled-components").StyledComponent<"p", any, {}, never>;
14
14
  export declare const UI_CAPTION_STYLED: import("styled-components").StyledComponent<"p", any, {}, never>;
15
+ export declare const UI_CAPTION_BOLD_STYLED: import("styled-components").StyledComponent<"p", any, {}, never>;
15
16
  export declare const UI_TAG_STYLED: import("styled-components").StyledComponent<"p", any, {}, never>;
16
17
  export declare const UI_HELPTEXT_STYLED: import("styled-components").StyledComponent<"p", any, {}, never>;
17
18
  export declare const UI_STAT_LG_STYLED: import("styled-components").StyledComponent<"h2", any, {}, never>;
@@ -7,7 +7,7 @@ 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.TYPO_V2_CLASSES = exports.CONTENT_BODY_POSTIT_STYLED = exports.CONTENT_TITLE_POSTIT_STYLED = exports.CONTENT_QUOTE_STYLED = exports.CONTENT_BODY_BOLD_ITALIC_STYLED = exports.CONTENT_BODY_ITALIC_STYLED = exports.CONTENT_BODY_BOLD_STYLED = exports.CONTENT_BODY_STYLED = exports.CONTENT_H3_STYLED = exports.CONTENT_H2_STYLED = exports.CONTENT_H1_STYLED = exports.UI_STAT_SM_STYLED = exports.UI_STAT_LG_STYLED = exports.UI_HELPTEXT_STYLED = exports.UI_TAG_STYLED = exports.UI_CAPTION_STYLED = exports.UI_PARAGRAPH_BOLD_STYLED = exports.UI_PARAGRAPH_STYLED = exports.UI_BODY_BOLD_SM_STYLED = exports.UI_BODY_BOLD_STYLED = exports.UI_BODY_SEMIBOLD_SM_STYLED = exports.UI_BODY_SEMIBOLD_STYLED = exports.UI_BODY_SM_STYLED = exports.UI_BODY_STYLED = exports.UI_TITLE_SM_STYLED = exports.UI_TITLE_STYLED = exports.UI_HEADLINE_SM_STYLED = exports.UI_HEADLINE_STYLED = exports.UI_DISPLAY_STYLED = void 0;
10
+ exports.TYPO_V2_CLASSES = exports.CONTENT_BODY_POSTIT_STYLED = exports.CONTENT_TITLE_POSTIT_STYLED = exports.CONTENT_QUOTE_STYLED = exports.CONTENT_BODY_BOLD_ITALIC_STYLED = exports.CONTENT_BODY_ITALIC_STYLED = exports.CONTENT_BODY_BOLD_STYLED = exports.CONTENT_BODY_STYLED = exports.CONTENT_H3_STYLED = exports.CONTENT_H2_STYLED = exports.CONTENT_H1_STYLED = exports.UI_STAT_SM_STYLED = exports.UI_STAT_LG_STYLED = exports.UI_HELPTEXT_STYLED = exports.UI_TAG_STYLED = exports.UI_CAPTION_BOLD_STYLED = exports.UI_CAPTION_STYLED = exports.UI_PARAGRAPH_BOLD_STYLED = exports.UI_PARAGRAPH_STYLED = exports.UI_BODY_BOLD_SM_STYLED = exports.UI_BODY_BOLD_STYLED = exports.UI_BODY_SEMIBOLD_SM_STYLED = exports.UI_BODY_SEMIBOLD_STYLED = exports.UI_BODY_SM_STYLED = exports.UI_BODY_STYLED = exports.UI_TITLE_SM_STYLED = exports.UI_TITLE_STYLED = exports.UI_HEADLINE_SM_STYLED = exports.UI_HEADLINE_STYLED = exports.UI_DISPLAY_STYLED = void 0;
11
11
  var styled_components_1 = __importDefault(require("styled-components"));
12
12
  var typo_1 = require("../../themes/typo");
13
13
  // UI Fonts
@@ -25,22 +25,23 @@ exports.UI_BODY_BOLD_SM_STYLED = styled_components_1.default.p(templateObject_11
25
25
  exports.UI_PARAGRAPH_STYLED = styled_components_1.default.p(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.UI_PARAGRAPH);
26
26
  exports.UI_PARAGRAPH_BOLD_STYLED = styled_components_1.default.p(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.UI_PARAGRAPH_BOLD);
27
27
  exports.UI_CAPTION_STYLED = styled_components_1.default.p(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.UI_CAPTION);
28
- exports.UI_TAG_STYLED = styled_components_1.default.p(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.UI_TAG);
29
- exports.UI_HELPTEXT_STYLED = styled_components_1.default.p(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.UI_HELPTEXT);
30
- exports.UI_STAT_LG_STYLED = styled_components_1.default.h2(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.UI_STAT_LG);
31
- exports.UI_STAT_SM_STYLED = styled_components_1.default.h3(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"
28
+ exports.UI_CAPTION_BOLD_STYLED = styled_components_1.default.p(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.UI_CAPTION_BOLD);
29
+ exports.UI_TAG_STYLED = styled_components_1.default.p(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.UI_TAG);
30
+ exports.UI_HELPTEXT_STYLED = styled_components_1.default.p(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.UI_HELPTEXT);
31
+ exports.UI_STAT_LG_STYLED = styled_components_1.default.h2(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.UI_STAT_LG);
32
+ exports.UI_STAT_SM_STYLED = styled_components_1.default.h3(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"
32
33
  // Content Fonts
33
34
  ])), typo_1.typo.UI_STAT_SM);
34
35
  // Content Fonts
35
- exports.CONTENT_H1_STYLED = styled_components_1.default.h1(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n ", " \n "], ["\n ", " \n "])), typo_1.typo.CONTENT_H1);
36
- exports.CONTENT_H2_STYLED = styled_components_1.default.h2(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n ", " \n"], ["\n ", " \n"])), typo_1.typo.CONTENT_H2);
37
- exports.CONTENT_H3_STYLED = styled_components_1.default.h3(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n ", " \n"], ["\n ", " \n"])), typo_1.typo.CONTENT_H3);
38
- exports.CONTENT_BODY_STYLED = styled_components_1.default.p(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.CONTENT_BODY);
39
- exports.CONTENT_BODY_BOLD_STYLED = styled_components_1.default.p(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.CONTENT_BODY_BOLD);
40
- exports.CONTENT_BODY_ITALIC_STYLED = styled_components_1.default.p(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.CONTENT_BODY_ITALIC);
41
- exports.CONTENT_BODY_BOLD_ITALIC_STYLED = styled_components_1.default.p(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.CONTENT_BODY_BOLD_ITALIC);
42
- exports.CONTENT_QUOTE_STYLED = styled_components_1.default.h4(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.CONTENT_QUOTE);
43
- exports.CONTENT_TITLE_POSTIT_STYLED = styled_components_1.default.p(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.CONTENT_TITLE_POSTIT);
44
- exports.CONTENT_BODY_POSTIT_STYLED = styled_components_1.default.p(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.CONTENT_BODY_POSTIT);
45
- exports.TYPO_V2_CLASSES = styled_components_1.default.div(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n .UI_DISPLAY {\n ", "\n }\n\n .UI_HEADLINE {\n ", "\n }\n\n .UI_HEADLINE_SM {\n ", "\n }\n\n .UI_TITLE {\n ", "\n }\n\n\n .UI_TITLE_SM {\n ", "\n }\n\n .UI_BODY {\n ", "\n }\n\n .UI_BODY_SM {\n ", "\n }\n\n .UI_BODY_SEMIBOLD {\n ", "\n }\n\n .UI_BODY_SEMIBOLD_SM {\n ", "\n } \n\n\n .UI_BODY_BOLD {\n ", "\n }\n\n .UI_BODY_BOLD_SM {\n ", "\n }\n\n .UI_PARAGRAPH {\n ", "\n }\n\n .UI_PARAGRAPH_BOLD {\n ", "\n }\n\n .UI_CAPTION {\n ", "\n }\n\n \n .UI_TAG {\n ", "\n }\n \n .UI_HELPTEXT {\n ", "\n }\n\n .UI_STAT_LG {\n ", "\n }\n\n .UI_STAT_SM {\n ", "\n }\n\n\n .CONTENT_H1 {\n ", "\n }\n .CONTENT_H2 {\n ", "\n }\n .CONTENT_H3 {\n ", "\n }\n .CONTENT_BODY {\n ", "\n }\n\n .CONTENT_BODY_BOLD {\n ", "\n }\n .CONTENT_BODY_ITALIC {\n ", "\n }\n .CONTENT_BODY_BOLD_ITALIC {\n ", "\n }\n .CONTENT_QUOTE {\n ", "\n }\n\n .CONTENT_TITLE_POSTIT {\n ", "\n }\n .CONTENT_BODY_POSTIT {\n ", "\n }\n"], ["\n .UI_DISPLAY {\n ", "\n }\n\n .UI_HEADLINE {\n ", "\n }\n\n .UI_HEADLINE_SM {\n ", "\n }\n\n .UI_TITLE {\n ", "\n }\n\n\n .UI_TITLE_SM {\n ", "\n }\n\n .UI_BODY {\n ", "\n }\n\n .UI_BODY_SM {\n ", "\n }\n\n .UI_BODY_SEMIBOLD {\n ", "\n }\n\n .UI_BODY_SEMIBOLD_SM {\n ", "\n } \n\n\n .UI_BODY_BOLD {\n ", "\n }\n\n .UI_BODY_BOLD_SM {\n ", "\n }\n\n .UI_PARAGRAPH {\n ", "\n }\n\n .UI_PARAGRAPH_BOLD {\n ", "\n }\n\n .UI_CAPTION {\n ", "\n }\n\n \n .UI_TAG {\n ", "\n }\n \n .UI_HELPTEXT {\n ", "\n }\n\n .UI_STAT_LG {\n ", "\n }\n\n .UI_STAT_SM {\n ", "\n }\n\n\n .CONTENT_H1 {\n ", "\n }\n .CONTENT_H2 {\n ", "\n }\n .CONTENT_H3 {\n ", "\n }\n .CONTENT_BODY {\n ", "\n }\n\n .CONTENT_BODY_BOLD {\n ", "\n }\n .CONTENT_BODY_ITALIC {\n ", "\n }\n .CONTENT_BODY_BOLD_ITALIC {\n ", "\n }\n .CONTENT_QUOTE {\n ", "\n }\n\n .CONTENT_TITLE_POSTIT {\n ", "\n }\n .CONTENT_BODY_POSTIT {\n ", "\n }\n"])), typo_1.typo.UI_DISPLAY, typo_1.typo.UI_HEADLINE, typo_1.typo.UI_HEADLINE_SM, typo_1.typo.UI_TITLE, typo_1.typo.UI_TITLE_SM, typo_1.typo.UI_BODY, typo_1.typo.UI_BODY_SM, typo_1.typo.UI_BODY_SEMIBOLD, typo_1.typo.UI_BODY_SEMIBOLD_SM, typo_1.typo.UI_BODY_BOLD, typo_1.typo.UI_BODY_BOLD_SM, typo_1.typo.UI_PARAGRAPH, typo_1.typo.UI_PARAGRAPH_BOLD, typo_1.typo.UI_CAPTION, typo_1.typo.UI_TAG, typo_1.typo.UI_HELPTEXT, typo_1.typo.UI_STAT_LG, typo_1.typo.UI_STAT_SM, typo_1.typo.CONTENT_H1, typo_1.typo.CONTENT_H2, typo_1.typo.CONTENT_H3, typo_1.typo.CONTENT_BODY, typo_1.typo.CONTENT_BODY_BOLD, typo_1.typo.CONTENT_BODY_ITALIC, typo_1.typo.CONTENT_BODY_BOLD_ITALIC, typo_1.typo.CONTENT_QUOTE, typo_1.typo.CONTENT_TITLE_POSTIT, typo_1.typo.CONTENT_BODY_POSTIT);
46
- 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, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29;
36
+ exports.CONTENT_H1_STYLED = styled_components_1.default.h1(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n ", " \n "], ["\n ", " \n "])), typo_1.typo.CONTENT_H1);
37
+ exports.CONTENT_H2_STYLED = styled_components_1.default.h2(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n ", " \n"], ["\n ", " \n"])), typo_1.typo.CONTENT_H2);
38
+ exports.CONTENT_H3_STYLED = styled_components_1.default.h3(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n ", " \n"], ["\n ", " \n"])), typo_1.typo.CONTENT_H3);
39
+ exports.CONTENT_BODY_STYLED = styled_components_1.default.p(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.CONTENT_BODY);
40
+ exports.CONTENT_BODY_BOLD_STYLED = styled_components_1.default.p(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.CONTENT_BODY_BOLD);
41
+ exports.CONTENT_BODY_ITALIC_STYLED = styled_components_1.default.p(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.CONTENT_BODY_ITALIC);
42
+ exports.CONTENT_BODY_BOLD_ITALIC_STYLED = styled_components_1.default.p(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.CONTENT_BODY_BOLD_ITALIC);
43
+ exports.CONTENT_QUOTE_STYLED = styled_components_1.default.h4(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.CONTENT_QUOTE);
44
+ exports.CONTENT_TITLE_POSTIT_STYLED = styled_components_1.default.p(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.CONTENT_TITLE_POSTIT);
45
+ exports.CONTENT_BODY_POSTIT_STYLED = styled_components_1.default.p(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typo_1.typo.CONTENT_BODY_POSTIT);
46
+ exports.TYPO_V2_CLASSES = styled_components_1.default.div(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n .UI_DISPLAY {\n ", "\n }\n\n .UI_HEADLINE {\n ", "\n }\n\n .UI_HEADLINE_SM {\n ", "\n }\n\n .UI_TITLE {\n ", "\n }\n\n\n .UI_TITLE_SM {\n ", "\n }\n\n .UI_BODY {\n ", "\n }\n\n .UI_BODY_SM {\n ", "\n }\n\n .UI_BODY_SEMIBOLD {\n ", "\n }\n\n .UI_BODY_SEMIBOLD_SM {\n ", "\n } \n\n\n .UI_BODY_BOLD {\n ", "\n }\n\n .UI_BODY_BOLD_SM {\n ", "\n }\n\n .UI_PARAGRAPH {\n ", "\n }\n\n .UI_PARAGRAPH_BOLD {\n ", "\n }\n\n .UI_CAPTION {\n ", "\n }\n\n \n .UI_TAG {\n ", "\n }\n \n .UI_HELPTEXT {\n ", "\n }\n\n .UI_STAT_LG {\n ", "\n }\n\n .UI_STAT_SM {\n ", "\n }\n\n\n .CONTENT_H1 {\n ", "\n }\n .CONTENT_H2 {\n ", "\n }\n .CONTENT_H3 {\n ", "\n }\n .CONTENT_BODY {\n ", "\n }\n\n .CONTENT_BODY_BOLD {\n ", "\n }\n .CONTENT_BODY_ITALIC {\n ", "\n }\n .CONTENT_BODY_BOLD_ITALIC {\n ", "\n }\n .CONTENT_QUOTE {\n ", "\n }\n\n .CONTENT_TITLE_POSTIT {\n ", "\n }\n .CONTENT_BODY_POSTIT {\n ", "\n }\n"], ["\n .UI_DISPLAY {\n ", "\n }\n\n .UI_HEADLINE {\n ", "\n }\n\n .UI_HEADLINE_SM {\n ", "\n }\n\n .UI_TITLE {\n ", "\n }\n\n\n .UI_TITLE_SM {\n ", "\n }\n\n .UI_BODY {\n ", "\n }\n\n .UI_BODY_SM {\n ", "\n }\n\n .UI_BODY_SEMIBOLD {\n ", "\n }\n\n .UI_BODY_SEMIBOLD_SM {\n ", "\n } \n\n\n .UI_BODY_BOLD {\n ", "\n }\n\n .UI_BODY_BOLD_SM {\n ", "\n }\n\n .UI_PARAGRAPH {\n ", "\n }\n\n .UI_PARAGRAPH_BOLD {\n ", "\n }\n\n .UI_CAPTION {\n ", "\n }\n\n \n .UI_TAG {\n ", "\n }\n \n .UI_HELPTEXT {\n ", "\n }\n\n .UI_STAT_LG {\n ", "\n }\n\n .UI_STAT_SM {\n ", "\n }\n\n\n .CONTENT_H1 {\n ", "\n }\n .CONTENT_H2 {\n ", "\n }\n .CONTENT_H3 {\n ", "\n }\n .CONTENT_BODY {\n ", "\n }\n\n .CONTENT_BODY_BOLD {\n ", "\n }\n .CONTENT_BODY_ITALIC {\n ", "\n }\n .CONTENT_BODY_BOLD_ITALIC {\n ", "\n }\n .CONTENT_QUOTE {\n ", "\n }\n\n .CONTENT_TITLE_POSTIT {\n ", "\n }\n .CONTENT_BODY_POSTIT {\n ", "\n }\n"])), typo_1.typo.UI_DISPLAY, typo_1.typo.UI_HEADLINE, typo_1.typo.UI_HEADLINE_SM, typo_1.typo.UI_TITLE, typo_1.typo.UI_TITLE_SM, typo_1.typo.UI_BODY, typo_1.typo.UI_BODY_SM, typo_1.typo.UI_BODY_SEMIBOLD, typo_1.typo.UI_BODY_SEMIBOLD_SM, typo_1.typo.UI_BODY_BOLD, typo_1.typo.UI_BODY_BOLD_SM, typo_1.typo.UI_PARAGRAPH, typo_1.typo.UI_PARAGRAPH_BOLD, typo_1.typo.UI_CAPTION, typo_1.typo.UI_TAG, typo_1.typo.UI_HELPTEXT, typo_1.typo.UI_STAT_LG, typo_1.typo.UI_STAT_SM, typo_1.typo.CONTENT_H1, typo_1.typo.CONTENT_H2, typo_1.typo.CONTENT_H3, typo_1.typo.CONTENT_BODY, typo_1.typo.CONTENT_BODY_BOLD, typo_1.typo.CONTENT_BODY_ITALIC, typo_1.typo.CONTENT_BODY_BOLD_ITALIC, typo_1.typo.CONTENT_QUOTE, typo_1.typo.CONTENT_TITLE_POSTIT, typo_1.typo.CONTENT_BODY_POSTIT);
47
+ 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, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30;