oolib 2.177.4 → 2.178.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 (48) hide show
  1. package/dist/stories/v2/components/Tags/Tag.stories.d.ts +10 -0
  2. package/dist/stories/v2/components/Tags/Tag.stories.js +32 -0
  3. package/dist/stories/v2/components/Tags/TagClear.stories.d.ts +10 -0
  4. package/dist/stories/v2/components/Tags/TagClear.stories.js +32 -0
  5. package/dist/stories/v2/components/Tags/TagDisplay.stories.d.ts +11 -0
  6. package/dist/stories/v2/components/Tags/TagDisplay.stories.js +88 -0
  7. package/dist/stories/v2/components/Tags/TagLink.stories.d.ts +10 -0
  8. package/dist/stories/v2/components/Tags/TagLink.stories.js +31 -0
  9. package/dist/stories/v2/components/Tags/utils/GenTag.d.ts +6 -0
  10. package/dist/stories/v2/components/Tags/utils/GenTag.js +24 -0
  11. package/dist/stories/v2/components/Tags/utils/tagArgTypes.d.ts +7 -0
  12. package/dist/stories/v2/components/Tags/utils/tagArgTypes.js +107 -0
  13. package/dist/stories/v2/themes/Typo.stories.js +1 -0
  14. package/dist/v2/components/Tags/Comps/Tag/index.d.ts +14 -0
  15. package/dist/v2/components/Tags/Comps/Tag/index.js +28 -0
  16. package/dist/v2/components/Tags/Comps/Tag/styled.d.ts +14 -0
  17. package/dist/v2/components/Tags/Comps/Tag/styled.js +81 -0
  18. package/dist/v2/components/Tags/Comps/TagClear/index.d.ts +3 -19
  19. package/dist/v2/components/Tags/Comps/TagClear/index.js +7 -61
  20. package/dist/v2/components/Tags/Comps/TagDisplay/getTagDisplayStyles.d.ts +9 -0
  21. package/dist/v2/components/Tags/Comps/TagDisplay/getTagDisplayStyles.js +36 -0
  22. package/dist/v2/components/Tags/Comps/TagDisplay/index.d.ts +10 -22
  23. package/dist/v2/components/Tags/Comps/TagDisplay/index.js +21 -21
  24. package/dist/v2/components/Tags/Comps/TagLink/index.d.ts +6 -19
  25. package/dist/v2/components/Tags/Comps/TagLink/index.js +17 -64
  26. package/dist/v2/components/Tags/Comps/styled.d.ts +0 -25
  27. package/dist/v2/components/Tags/Comps/styled.js +35 -52
  28. package/dist/v2/components/Tags/index.d.ts +1 -0
  29. package/dist/v2/components/Tags/index.js +3 -1
  30. package/dist/v2/components/Typo2/index.d.ts +1 -0
  31. package/dist/v2/components/Typo2/index.js +3 -1
  32. package/dist/v2/components/Typo2/index.styled.d.ts +1 -0
  33. package/dist/v2/components/Typo2/index.styled.js +18 -17
  34. package/dist/v2/themes/typo.d.ts +1 -0
  35. package/dist/v2/themes/typo.js +20 -16
  36. package/package.json +1 -1
  37. package/dist/stories/v2/components/TagClear.stories.d.ts +0 -28
  38. package/dist/stories/v2/components/TagClear.stories.js +0 -79
  39. package/dist/stories/v2/components/TagDisplay.stories.d.ts +0 -90
  40. package/dist/stories/v2/components/TagDisplay.stories.js +0 -137
  41. package/dist/stories/v2/components/TagLink.stories.d.ts +0 -28
  42. package/dist/stories/v2/components/TagLink.stories.js +0 -79
  43. package/dist/v2/components/Tags/Comps/TagClear/styled.d.ts +0 -15
  44. package/dist/v2/components/Tags/Comps/TagClear/styled.js +0 -21
  45. package/dist/v2/components/Tags/Comps/TagDisplay/styled.d.ts +0 -5
  46. package/dist/v2/components/Tags/Comps/TagDisplay/styled.js +0 -78
  47. package/dist/v2/components/Tags/Comps/TagLink/styled.d.ts +0 -16
  48. package/dist/v2/components/Tags/Comps/TagLink/styled.js +0 -61
@@ -52,24 +52,27 @@ var UI_CAPTION_SEMIBOLD = (0, styled_components_1.css)(templateObject_32 || (tem
52
52
  var UI_CAPTION_DF = (0, styled_components_1.css)(templateObject_33 || (templateObject_33 = __makeTemplateObject(["\n font-weight: 400;\n ", ";\n ", ";\n\n ", ";\n \n ", "{\n ", ";\n }\n"], ["\n font-weight: 400;\n ", ";\n ", ";\n\n ", ";\n \n ", "{\n ", ";\n }\n"])), uiFont, fontCss, UI_CAPTION_MOBILE, (0, mixins_1.mediaQuery)("md"), UI_CAPTION_DESKTOP);
53
53
  var UI_CAPTION_SEMIBOLD_DF = (0, styled_components_1.css)(templateObject_34 || (templateObject_34 = __makeTemplateObject(["\n font-weight: 500;\n ", ";\n ", ";\n\n ", ";\n \n ", "{\n ", ";\n }\n"], ["\n font-weight: 500;\n ", ";\n ", ";\n\n ", ";\n \n ", "{\n ", ";\n }\n"])), uiFont, fontCss, UI_CAPTION_MOBILE, (0, mixins_1.mediaQuery)("md"), UI_CAPTION_DESKTOP);
54
54
  var UI_CAPTION_BOLD_DF = (0, styled_components_1.css)(templateObject_35 || (templateObject_35 = __makeTemplateObject(["\n font-weight: 700;\n ", ";\n ", ";\n\n ", ";\n \n ", "{\n ", ";\n }\n"], ["\n font-weight: 700;\n ", ";\n ", ";\n\n ", ";\n \n ", "{\n ", ";\n }\n"])), uiFont, fontCss, UI_CAPTION_MOBILE, (0, mixins_1.mediaQuery)("md"), UI_CAPTION_DESKTOP);
55
- var UI_TAG = (0, styled_components_1.css)(templateObject_36 || (templateObject_36 = __makeTemplateObject(["\n font-size: 10px;\n line-height: 13px;\n font-weight: 700; \n text-transform: uppercase;\n letter-spacing: 1px;\n ", ";\n ", ";\n"], ["\n font-size: 10px;\n line-height: 13px;\n font-weight: 700; \n text-transform: uppercase;\n letter-spacing: 1px;\n ", ";\n ", ";\n"])), uiFont, fontCss);
56
- var UI_HELPTEXT = (0, styled_components_1.css)(templateObject_37 || (templateObject_37 = __makeTemplateObject(["\n font-size: 12px;\n line-height: 16px;\n font-weight: 400; \n ", ";\n ", ";\n"], ["\n font-size: 12px;\n line-height: 16px;\n font-weight: 400; \n ", ";\n ", ";\n"])), uiFont, fontCss);
57
- var UI_STAT_LG = (0, styled_components_1.css)(templateObject_38 || (templateObject_38 = __makeTemplateObject(["\n font-size: 24px;\n line-height: 24px;\n font-weight: 500;\n ", ";\n ", ";\n"], ["\n font-size: 24px;\n line-height: 24px;\n font-weight: 500;\n ", ";\n ", ";\n"])), uiFont, fontCss);
58
- var UI_STAT_SM = (0, styled_components_1.css)(templateObject_39 || (templateObject_39 = __makeTemplateObject(["\n font-size: 14px;\n line-height: 18px;\n font-weight: 700;\n ", ";\n ", ";\n"], ["\n font-size: 14px;\n line-height: 18px;\n font-weight: 700;\n ", ";\n ", ";\n"])), uiFont, fontCss);
59
- var CONTENT_H1 = (0, styled_components_1.css)(templateObject_40 || (templateObject_40 = __makeTemplateObject(["\n font-size: 36px;\n line-height: 140%;\n font-weight: 700;\n ", ";\n ", ";\n "], ["\n font-size: 36px;\n line-height: 140%;\n font-weight: 700;\n ", ";\n ", ";\n "])), contentFont, fontCss);
60
- var CONTENT_H2 = (0, styled_components_1.css)(templateObject_41 || (templateObject_41 = __makeTemplateObject(["\n font-size: 25px;\n line-height: 140%;\n font-weight: 700;\n ", ";\n ", ";\n "], ["\n font-size: 25px;\n line-height: 140%;\n font-weight: 700;\n ", ";\n ", ";\n "])), contentFont, fontCss);
61
- var CONTENT_H3 = (0, styled_components_1.css)(templateObject_42 || (templateObject_42 = __makeTemplateObject(["\n font-size: 18px;\n line-height: 140%;\n font-weight: 700;\n ", ";\n ", ";\n "], ["\n font-size: 18px;\n line-height: 140%;\n font-weight: 700;\n ", ";\n ", ";\n "])), contentFont, fontCss);
62
- var CONTENT_BODY_SM = (0, styled_components_1.css)(templateObject_43 || (templateObject_43 = __makeTemplateObject(["\n font-size: 15px;\n line-height: 140%;\n font-weight: 400;\n ", ";\n ", ";\n"], ["\n font-size: 15px;\n line-height: 140%;\n font-weight: 400;\n ", ";\n ", ";\n"])), contentFont, fontCss);
63
- var CONTENT_BODY = (0, styled_components_1.css)(templateObject_44 || (templateObject_44 = __makeTemplateObject(["\n font-size: 17px;\n line-height: 140%;\n font-weight: 400;\n ", ";\n ", ";\n"], ["\n font-size: 17px;\n line-height: 140%;\n font-weight: 400;\n ", ";\n ", ";\n"])), contentFont, fontCss);
64
- var CONTENT_BODY_BOLD = (0, styled_components_1.css)(templateObject_45 || (templateObject_45 = __makeTemplateObject(["\n font-size: 17px;\n line-height: 140%;\n font-weight: 600;\n ", ";\n ", ";\n"], ["\n font-size: 17px;\n line-height: 140%;\n font-weight: 600;\n ", ";\n ", ";\n"])), contentFont, fontCss);
65
- var CONTENT_BODY_ITALIC = (0, styled_components_1.css)(templateObject_46 || (templateObject_46 = __makeTemplateObject(["\n font-size: 17px;\n line-height: 140%;\n font-weight: 400;\n font-style: italic;\n ", ";\n ", ";\n"], ["\n font-size: 17px;\n line-height: 140%;\n font-weight: 400;\n font-style: italic;\n ", ";\n ", ";\n"])), contentFont, fontCss);
66
- var CONTENT_BODY_BOLD_ITALIC = (0, styled_components_1.css)(templateObject_47 || (templateObject_47 = __makeTemplateObject(["\n font-size: 17px;\n line-height: 140%;\n font-weight: 600;\n font-style: italic;\n ", ";\n ", ";\n"], ["\n font-size: 17px;\n line-height: 140%;\n font-weight: 600;\n font-style: italic;\n ", ";\n ", ";\n"])), contentFont, fontCss);
67
- var CONTENT_QUOTE = (0, styled_components_1.css)(templateObject_48 || (templateObject_48 = __makeTemplateObject(["\n padding: 0 16px;\n font-size: 24px;\n line-height: 35.04px;\n font-weight: 400;\n font-style: italic;\n position: relative;\n ::before {\n /* Quote line (left) */\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n height: inherit; \n width: 6px; \n background-color: ", "; // temp colors need to replace with material colors */\n }\n ", ";\n ", ";\n"], ["\n padding: 0 16px;\n font-size: 24px;\n line-height: 35.04px;\n font-weight: 400;\n font-style: italic;\n position: relative;\n ::before {\n /* Quote line (left) */\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n height: inherit; \n width: 6px; \n background-color: ", "; // temp colors need to replace with material colors */\n }\n ", ";\n ", ";\n"])), function (_a) {
55
+ var UI_TAG_DESKTOP = (0, styled_components_1.css)(templateObject_36 || (templateObject_36 = __makeTemplateObject(["\n font-size: 10px;\n line-height: 13px;\n letter-spacing: 1px;\n"], ["\n font-size: 10px;\n line-height: 13px;\n letter-spacing: 1px;\n"])));
56
+ var UI_TAG_MOBILE = (0, styled_components_1.css)(templateObject_37 || (templateObject_37 = __makeTemplateObject(["\n font-size: 11px;\n line-height: 14px;\n letter-spacing: 1.1px;\n"], ["\n font-size: 11px;\n line-height: 14px;\n letter-spacing: 1.1px;\n"])));
57
+ var UI_TAG = (0, styled_components_1.css)(templateObject_38 || (templateObject_38 = __makeTemplateObject(["\n font-weight: 700; \n text-transform: uppercase;\n \n ", ";\n\n ", ";\n ", ";\n"], ["\n font-weight: 700; \n text-transform: uppercase;\n \n ", ";\n\n ", ";\n ", ";\n"])), UI_TAG_DESKTOP, uiFont, fontCss);
58
+ var UI_TAG_DF = (0, styled_components_1.css)(templateObject_39 || (templateObject_39 = __makeTemplateObject(["\n \n font-weight: 700; \n text-transform: uppercase;\n \n ", ";\n\n ", "{\n ", ";\n }\n\n ", ";\n ", ";\n"], ["\n \n font-weight: 700; \n text-transform: uppercase;\n \n ", ";\n\n ", "{\n ", ";\n }\n\n ", ";\n ", ";\n"])), UI_TAG_MOBILE, (0, mixins_1.mediaQuery)("md"), UI_TAG_DESKTOP, uiFont, fontCss);
59
+ var UI_HELPTEXT = (0, styled_components_1.css)(templateObject_40 || (templateObject_40 = __makeTemplateObject(["\n font-size: 12px;\n line-height: 16px;\n font-weight: 400; \n ", ";\n ", ";\n"], ["\n font-size: 12px;\n line-height: 16px;\n font-weight: 400; \n ", ";\n ", ";\n"])), uiFont, fontCss);
60
+ var UI_STAT_LG = (0, styled_components_1.css)(templateObject_41 || (templateObject_41 = __makeTemplateObject(["\n font-size: 24px;\n line-height: 24px;\n font-weight: 500;\n ", ";\n ", ";\n"], ["\n font-size: 24px;\n line-height: 24px;\n font-weight: 500;\n ", ";\n ", ";\n"])), uiFont, fontCss);
61
+ var UI_STAT_SM = (0, styled_components_1.css)(templateObject_42 || (templateObject_42 = __makeTemplateObject(["\n font-size: 14px;\n line-height: 18px;\n font-weight: 700;\n ", ";\n ", ";\n"], ["\n font-size: 14px;\n line-height: 18px;\n font-weight: 700;\n ", ";\n ", ";\n"])), uiFont, fontCss);
62
+ var CONTENT_H1 = (0, styled_components_1.css)(templateObject_43 || (templateObject_43 = __makeTemplateObject(["\n font-size: 36px;\n line-height: 140%;\n font-weight: 700;\n ", ";\n ", ";\n "], ["\n font-size: 36px;\n line-height: 140%;\n font-weight: 700;\n ", ";\n ", ";\n "])), contentFont, fontCss);
63
+ var CONTENT_H2 = (0, styled_components_1.css)(templateObject_44 || (templateObject_44 = __makeTemplateObject(["\n font-size: 25px;\n line-height: 140%;\n font-weight: 700;\n ", ";\n ", ";\n "], ["\n font-size: 25px;\n line-height: 140%;\n font-weight: 700;\n ", ";\n ", ";\n "])), contentFont, fontCss);
64
+ var CONTENT_H3 = (0, styled_components_1.css)(templateObject_45 || (templateObject_45 = __makeTemplateObject(["\n font-size: 18px;\n line-height: 140%;\n font-weight: 700;\n ", ";\n ", ";\n "], ["\n font-size: 18px;\n line-height: 140%;\n font-weight: 700;\n ", ";\n ", ";\n "])), contentFont, fontCss);
65
+ var CONTENT_BODY_SM = (0, styled_components_1.css)(templateObject_46 || (templateObject_46 = __makeTemplateObject(["\n font-size: 15px;\n line-height: 140%;\n font-weight: 400;\n ", ";\n ", ";\n"], ["\n font-size: 15px;\n line-height: 140%;\n font-weight: 400;\n ", ";\n ", ";\n"])), contentFont, fontCss);
66
+ var CONTENT_BODY = (0, styled_components_1.css)(templateObject_47 || (templateObject_47 = __makeTemplateObject(["\n font-size: 17px;\n line-height: 140%;\n font-weight: 400;\n ", ";\n ", ";\n"], ["\n font-size: 17px;\n line-height: 140%;\n font-weight: 400;\n ", ";\n ", ";\n"])), contentFont, fontCss);
67
+ var CONTENT_BODY_BOLD = (0, styled_components_1.css)(templateObject_48 || (templateObject_48 = __makeTemplateObject(["\n font-size: 17px;\n line-height: 140%;\n font-weight: 600;\n ", ";\n ", ";\n"], ["\n font-size: 17px;\n line-height: 140%;\n font-weight: 600;\n ", ";\n ", ";\n"])), contentFont, fontCss);
68
+ var CONTENT_BODY_ITALIC = (0, styled_components_1.css)(templateObject_49 || (templateObject_49 = __makeTemplateObject(["\n font-size: 17px;\n line-height: 140%;\n font-weight: 400;\n font-style: italic;\n ", ";\n ", ";\n"], ["\n font-size: 17px;\n line-height: 140%;\n font-weight: 400;\n font-style: italic;\n ", ";\n ", ";\n"])), contentFont, fontCss);
69
+ var CONTENT_BODY_BOLD_ITALIC = (0, styled_components_1.css)(templateObject_50 || (templateObject_50 = __makeTemplateObject(["\n font-size: 17px;\n line-height: 140%;\n font-weight: 600;\n font-style: italic;\n ", ";\n ", ";\n"], ["\n font-size: 17px;\n line-height: 140%;\n font-weight: 600;\n font-style: italic;\n ", ";\n ", ";\n"])), contentFont, fontCss);
70
+ var CONTENT_QUOTE = (0, styled_components_1.css)(templateObject_51 || (templateObject_51 = __makeTemplateObject(["\n padding: 0 16px;\n font-size: 24px;\n line-height: 35.04px;\n font-weight: 400;\n font-style: italic;\n position: relative;\n ::before {\n /* Quote line (left) */\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n height: inherit; \n width: 6px; \n background-color: ", "; // temp colors need to replace with material colors */\n }\n ", ";\n ", ";\n"], ["\n padding: 0 16px;\n font-size: 24px;\n line-height: 35.04px;\n font-weight: 400;\n font-style: italic;\n position: relative;\n ::before {\n /* Quote line (left) */\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n height: inherit; \n width: 6px; \n background-color: ", "; // temp colors need to replace with material colors */\n }\n ", ";\n ", ";\n"])), function (_a) {
68
71
  var invert = _a.invert, colors = _a.theme.colors;
69
72
  return invert ? colors.greyColor40 : (0, utilsOolib_1.getPrimaryColor100)(colors);
70
73
  }, contentFont, fontCss);
71
- var CONTENT_TITLE_POSTIT = (0, styled_components_1.css)(templateObject_49 || (templateObject_49 = __makeTemplateObject(["\n font-size: 15px;\n font-style: normal;\n font-weight: 700;\n line-height: 130%;\n ", ";\n ", ";\n"], ["\n font-size: 15px;\n font-style: normal;\n font-weight: 700;\n line-height: 130%;\n ", ";\n ", ";\n"])), contentFont, fontCss);
72
- var CONTENT_BODY_POSTIT = (0, styled_components_1.css)(templateObject_50 || (templateObject_50 = __makeTemplateObject(["\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 130%;\n ", ";\n ", ";\n"], ["\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 130%;\n ", ";\n ", ";\n"])), contentFont, fontCss);
74
+ var CONTENT_TITLE_POSTIT = (0, styled_components_1.css)(templateObject_52 || (templateObject_52 = __makeTemplateObject(["\n font-size: 15px;\n font-style: normal;\n font-weight: 700;\n line-height: 130%;\n ", ";\n ", ";\n"], ["\n font-size: 15px;\n font-style: normal;\n font-weight: 700;\n line-height: 130%;\n ", ";\n ", ";\n"])), contentFont, fontCss);
75
+ var CONTENT_BODY_POSTIT = (0, styled_components_1.css)(templateObject_53 || (templateObject_53 = __makeTemplateObject(["\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 130%;\n ", ";\n ", ";\n"], ["\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 130%;\n ", ";\n ", ";\n"])), contentFont, fontCss);
73
76
  exports.typo = {
74
77
  UI_DISPLAY: UI_DISPLAY,
75
78
  UI_DISPLAY_SM: UI_DISPLAY_SM,
@@ -100,6 +103,7 @@ exports.typo = {
100
103
  UI_CAPTION_SEMIBOLD: UI_CAPTION_SEMIBOLD,
101
104
  UI_CAPTION_SEMIBOLD_DF: UI_CAPTION_SEMIBOLD_DF,
102
105
  UI_TAG: UI_TAG,
106
+ UI_TAG_DF: UI_TAG_DF,
103
107
  UI_HELPTEXT: UI_HELPTEXT,
104
108
  UI_STAT_LG: UI_STAT_LG,
105
109
  UI_STAT_SM: UI_STAT_SM,
@@ -115,4 +119,4 @@ exports.typo = {
115
119
  CONTENT_TITLE_POSTIT: CONTENT_TITLE_POSTIT,
116
120
  CONTENT_BODY_POSTIT: CONTENT_BODY_POSTIT
117
121
  };
118
- 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, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43, templateObject_44, templateObject_45, templateObject_46, templateObject_47, templateObject_48, templateObject_49, templateObject_50;
122
+ 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, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43, templateObject_44, templateObject_45, templateObject_46, templateObject_47, templateObject_48, templateObject_49, templateObject_50, templateObject_51, templateObject_52, templateObject_53;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.177.4",
3
+ "version": "2.178.0",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,28 +0,0 @@
1
- declare namespace _default {
2
- let title: string;
3
- namespace argTypes {
4
- namespace display {
5
- let name: string;
6
- }
7
- namespace value {
8
- let name_1: string;
9
- export { name_1 as name };
10
- }
11
- namespace id {
12
- let name_2: string;
13
- export { name_2 as name };
14
- }
15
- }
16
- namespace args {
17
- let display_1: string;
18
- export { display_1 as display };
19
- let value_1: string;
20
- export { value_1 as value };
21
- let id_1: string;
22
- export { id_1 as id };
23
- export let textColor: string;
24
- }
25
- }
26
- export default _default;
27
- export function Playground(args: any): import("react").JSX.Element;
28
- export function Tag_Clear(args: any): import("react").JSX.Element;
@@ -1,79 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.Tag_Clear = exports.Playground = void 0;
15
- var Tags_1 = require("../../../v2/components/Tags");
16
- var Typo2_1 = require("../../../v2/components/Typo2");
17
- var themes_1 = require("../../../v2/themes");
18
- exports.default = {
19
- title: "Oolib V 2.0/Components/Tags/Tag Clear",
20
- argTypes: {
21
- display: {
22
- name: "Text",
23
- },
24
- // size: {
25
- // name: "Size",
26
- // options: ["ExtraSmall", "Small", "Medium"],
27
- // mapping: {
28
- // ExtraSmall: "XS",
29
- // Small: "S",
30
- // Medium: "M",
31
- // },
32
- // control: { type: "inline-radio" },
33
- // },
34
- // tagColor: {
35
- // name: "Tag Color",
36
- // options: availableColors,
37
- // control: { type: "select" },
38
- // },
39
- // textColor: {
40
- // name: "Text Color",
41
- // options: availableTextColors,
42
- // control: { type: "select" },
43
- // },
44
- value: {
45
- name: "Value"
46
- },
47
- id: {
48
- name: "Id"
49
- }
50
- },
51
- args: {
52
- display: "Tag Clear",
53
- // size: "ExtraSmall",
54
- value: "text",
55
- id: "tags",
56
- // tagColor: "",
57
- textColor: "",
58
- },
59
- };
60
- var GenTag = function (_a) {
61
- var args = _a.args, Comp = _a.Comp, variant = _a.variant;
62
- args[args["size"]] = true;
63
- args.tagColor = themes_1.colors[args.tagColor];
64
- args.textColor = themes_1.colors[args.textColor];
65
- return (React.createElement("div", null,
66
- React.createElement(Comp, __assign({}, args, { variant: variant }))));
67
- };
68
- var Playground = function (args) {
69
- return (React.createElement("div", { style: { display: 'flex', flexDirection: "column", gap: '3rem', margin: '2rem 10rem' } },
70
- React.createElement("div", null,
71
- React.createElement(Typo2_1.UI_BODY_SEMIBOLD_SM, null, "Tag Clear"),
72
- React.createElement(GenTag, { args: args, Comp: Tags_1.TagClear }))));
73
- };
74
- exports.Playground = Playground;
75
- var Tag_Clear = function (args) {
76
- return React.createElement("div", { style: { margin: "2rem 10rem" } },
77
- React.createElement(GenTag, { args: args, Comp: Tags_1.TagClear }));
78
- };
79
- exports.Tag_Clear = Tag_Clear;
@@ -1,90 +0,0 @@
1
- declare namespace _default {
2
- let title: string;
3
- namespace argTypes {
4
- namespace display {
5
- let name: string;
6
- }
7
- namespace size {
8
- let name_1: string;
9
- export { name_1 as name };
10
- export let options: string[];
11
- export namespace mapping {
12
- let ExtraSmall: string;
13
- let Small: string;
14
- let Medium: string;
15
- }
16
- export namespace control {
17
- let type: string;
18
- }
19
- }
20
- namespace tagColor {
21
- let name_2: string;
22
- export { name_2 as name };
23
- export { availableColors as options };
24
- export namespace control_1 {
25
- let type_1: string;
26
- export { type_1 as type };
27
- }
28
- export { control_1 as control };
29
- }
30
- namespace textColor {
31
- let name_3: string;
32
- export { name_3 as name };
33
- export { availableTextColors as options };
34
- export namespace control_2 {
35
- let type_2: string;
36
- export { type_2 as type };
37
- }
38
- export { control_2 as control };
39
- }
40
- namespace value {
41
- let name_4: string;
42
- export { name_4 as name };
43
- }
44
- namespace id {
45
- let name_5: string;
46
- export { name_5 as name };
47
- }
48
- }
49
- namespace args {
50
- let display_1: string;
51
- export { display_1 as display };
52
- let size_1: string;
53
- export { size_1 as size };
54
- let value_1: string;
55
- export { value_1 as value };
56
- let id_1: string;
57
- export { id_1 as id };
58
- let tagColor_1: string;
59
- export { tagColor_1 as tagColor };
60
- let textColor_1: string;
61
- export { textColor_1 as textColor };
62
- }
63
- }
64
- export default _default;
65
- export function Playground(args: any): import("react").JSX.Element;
66
- export function Tag_Display(args: any): import("react").JSX.Element;
67
- export namespace Tag_Display {
68
- export namespace args_1 {
69
- let variant: string;
70
- }
71
- export { args_1 as args };
72
- export namespace argTypes_1 {
73
- export namespace variant_1 {
74
- let name_6: string;
75
- export { name_6 as name };
76
- let options_1: string[];
77
- export { options_1 as options };
78
- export namespace control_3 {
79
- let type_3: string;
80
- export { type_3 as type };
81
- }
82
- export { control_3 as control };
83
- export let defaultValue: string;
84
- }
85
- export { variant_1 as variant };
86
- }
87
- export { argTypes_1 as argTypes };
88
- }
89
- declare const availableColors: string[];
90
- declare const availableTextColors: string[];
@@ -1,137 +0,0 @@
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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
14
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15
- if (ar || !(i in from)) {
16
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
17
- ar[i] = from[i];
18
- }
19
- }
20
- return to.concat(ar || Array.prototype.slice.call(from));
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.Tag_Display = exports.Playground = void 0;
24
- var Tags_1 = require("../../../v2/components/Tags");
25
- var Typo2_1 = require("../../../v2/components/Typo2");
26
- var themes_1 = require("../../../v2/themes");
27
- var availableColors = __spreadArray([], Object.keys(themes_1.colors).sort(), true);
28
- var availableTextColors = __spreadArray([], Object.keys(themes_1.colors).sort(), true);
29
- exports.default = {
30
- title: "Oolib V 2.0/Components/Tags/Tag Display",
31
- argTypes: {
32
- display: {
33
- name: "Text",
34
- },
35
- size: {
36
- name: "Size",
37
- options: ["ExtraSmall", "Small", "Medium"],
38
- mapping: {
39
- ExtraSmall: "XS",
40
- Small: "S",
41
- Medium: "M",
42
- },
43
- control: { type: "inline-radio" },
44
- },
45
- tagColor: {
46
- name: "Tag Color",
47
- options: availableColors,
48
- control: { type: "select" },
49
- },
50
- textColor: {
51
- name: "Text Color",
52
- options: availableTextColors,
53
- control: { type: "select" },
54
- },
55
- value: {
56
- name: "Value"
57
- },
58
- id: {
59
- name: "Id"
60
- }
61
- },
62
- args: {
63
- display: "Tag Display",
64
- size: "Small",
65
- value: "text",
66
- id: "tags",
67
- tagColor: "",
68
- textColor: "",
69
- },
70
- };
71
- var GenTag = function (_a) {
72
- var args = _a.args, Comp = _a.Comp, variant = _a.variant;
73
- args[args["size"]] = true;
74
- args.tagColor = themes_1.colors[args.tagColor];
75
- args.textColor = themes_1.colors[args.textColor];
76
- return (React.createElement("div", { style: { padding: "2rem" } },
77
- React.createElement(Comp, __assign({}, args, { variant: variant }))));
78
- };
79
- var Playground = function (args) {
80
- return (React.createElement("div", { style: { display: 'flex', flexDirection: "column", gap: '3rem', margin: '2rem 10rem' } },
81
- React.createElement("div", null,
82
- React.createElement(Typo2_1.UI_BODY_SEMIBOLD_SM, null, "Default"),
83
- React.createElement(GenTag, { args: args, Comp: Tags_1.TagDisplay })),
84
- React.createElement("div", null,
85
- React.createElement(Typo2_1.UI_BODY_SEMIBOLD_SM, null, "Positive"),
86
- React.createElement(GenTag, { args: args, Comp: Tags_1.TagDisplay, variant: "positive" })),
87
- React.createElement("div", null,
88
- React.createElement(Typo2_1.UI_BODY_SEMIBOLD_SM, null, "In Progress"),
89
- React.createElement(GenTag, { args: args, Comp: Tags_1.TagDisplay, variant: "inProgress" })),
90
- React.createElement("div", null,
91
- React.createElement(Typo2_1.UI_BODY_SEMIBOLD_SM, null, "Warning"),
92
- React.createElement(GenTag, { args: args, Comp: Tags_1.TagDisplay, variant: "warning" })),
93
- React.createElement("div", null,
94
- React.createElement(Typo2_1.UI_BODY_SEMIBOLD_SM, null, "Negative"),
95
- React.createElement(GenTag, { args: args, Comp: Tags_1.TagDisplay, variant: "negative" })),
96
- React.createElement("div", null,
97
- React.createElement(Typo2_1.UI_BODY_SEMIBOLD_SM, null, "Special"),
98
- React.createElement(GenTag, { args: args, Comp: Tags_1.TagDisplay, variant: "special" }))));
99
- };
100
- exports.Playground = Playground;
101
- var Tag_Display = function (args) {
102
- return React.createElement(Tags_1.TagDisplay, __assign({}, args));
103
- };
104
- exports.Tag_Display = Tag_Display;
105
- exports.Tag_Display.args = {
106
- variant: "default"
107
- };
108
- exports.Tag_Display.argTypes = {
109
- variant: {
110
- name: "Variant",
111
- options: ["positive", "inProgress", "warning", "negative", "special", "default"],
112
- control: { type: "select" },
113
- defaultValue: "default",
114
- },
115
- };
116
- // Tag_Display.parameters = { controls: { exclude: ["value", "tagColor"] } };
117
- // export const Tag_Display_Secondary = (args) => {
118
- // return <GenTag args={args} Comp={TagDisplay} variant="secondary" />;
119
- // };
120
- // export const Tag_Display_Grey = (args) => {
121
- // return <GenTag args={args} Comp={TagDisplay} variant="grey" />;
122
- // };
123
- // export const Tag_Display_Positive = (args) => {
124
- // return <GenTag args={args} Comp={TagDisplay} variant="positive" />;
125
- // };
126
- // export const Tag_Display_InProgress = (args) => {
127
- // return <GenTag args={args} Comp={TagDisplay} variant="inProgress" />;
128
- // };
129
- // export const Tag_Display_Warning = (args) => {
130
- // return <GenTag args={args} Comp={TagDisplay} variant="warning" />;
131
- // };
132
- // export const Tag_Display_Negative = (args) => {
133
- // return <GenTag args={args} Comp={TagDisplay} variant="negative" />;
134
- // };
135
- // export const Tag_Display_Special = (args) => {
136
- // return <GenTag args={args} Comp={TagDisplay} variant="special" />;
137
- // };
@@ -1,28 +0,0 @@
1
- declare namespace _default {
2
- let title: string;
3
- namespace argTypes {
4
- namespace display {
5
- let name: string;
6
- }
7
- namespace value {
8
- let name_1: string;
9
- export { name_1 as name };
10
- }
11
- namespace id {
12
- let name_2: string;
13
- export { name_2 as name };
14
- }
15
- }
16
- namespace args {
17
- let display_1: string;
18
- export { display_1 as display };
19
- let value_1: string;
20
- export { value_1 as value };
21
- let id_1: string;
22
- export { id_1 as id };
23
- export let textColor: string;
24
- }
25
- }
26
- export default _default;
27
- export function Playground(args: any): import("react").JSX.Element;
28
- export function Tag_Link(args: any): import("react").JSX.Element;
@@ -1,79 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.Tag_Link = exports.Playground = void 0;
15
- var Tags_1 = require("../../../v2/components/Tags");
16
- var Typo2_1 = require("../../../v2/components/Typo2");
17
- var themes_1 = require("../../../v2/themes");
18
- exports.default = {
19
- title: "Oolib V 2.0/Components/Tags/Tag Link",
20
- argTypes: {
21
- display: {
22
- name: "Text",
23
- },
24
- // size: {
25
- // name: "Size",
26
- // options: ["ExtraSmall", "Small", "Medium"],
27
- // mapping: {
28
- // ExtraSmall: "XS",
29
- // Small: "S",
30
- // Medium: "M",
31
- // },
32
- // control: { type: "inline-radio" },
33
- // },
34
- // tagColor: {
35
- // name: "Tag Color",
36
- // options: availableColors,
37
- // control: { type: "select" },
38
- // },
39
- // textColor: {
40
- // name: "Text Color",
41
- // options: availableTextColors,
42
- // control: { type: "select" },
43
- // },
44
- value: {
45
- name: "Value"
46
- },
47
- id: {
48
- name: "Id"
49
- }
50
- },
51
- args: {
52
- display: "Tag Link",
53
- // size: "ExtraSmall",
54
- value: "text",
55
- id: "tags",
56
- // tagColor: "",
57
- textColor: "",
58
- },
59
- };
60
- var GenTag = function (_a) {
61
- var args = _a.args, Comp = _a.Comp, variant = _a.variant;
62
- args[args["size"]] = true;
63
- args.tagColor = themes_1.colors[args.tagColor];
64
- args.textColor = themes_1.colors[args.textColor];
65
- return (React.createElement("div", null,
66
- React.createElement(Comp, __assign({}, args, { variant: variant }))));
67
- };
68
- var Playground = function (args) {
69
- return (React.createElement("div", { style: { display: 'flex', flexDirection: "column", gap: '3rem', margin: '2rem 10rem' } },
70
- React.createElement(Typo2_1.UI_BODY_SEMIBOLD_SM, null, "Tag Clear"),
71
- React.createElement(GenTag, { args: args, Comp: Tags_1.TagLink })));
72
- };
73
- exports.Playground = Playground;
74
- var Tag_Link = function (args) {
75
- return (React.createElement("div", { style: { margin: "2rem 10rem" } },
76
- React.createElement(GenTag, { args: args, Comp: Tags_1.TagLink }),
77
- ";"));
78
- };
79
- exports.Tag_Link = Tag_Link;
@@ -1,15 +0,0 @@
1
- import { SIZES } from "../styled";
2
- export interface StyledTagClearProps {
3
- variant: 'primary' | 'ghost';
4
- size: keyof typeof SIZES;
5
- invert?: boolean;
6
- grey?: boolean;
7
- }
8
- export declare const StyledTagClear: import("styled-components").StyledComponent<"div", any, StyledTagClearProps, never>;
9
- export interface StyledTagClearIconWrapperProps {
10
- invert?: boolean;
11
- grey?: boolean;
12
- variant: 'primary' | 'ghost';
13
- onClick?: () => void;
14
- }
15
- export declare const StyledTagClearIconWrapper: import("styled-components").StyledComponent<"button", any, StyledTagClearIconWrapperProps, never>;
@@ -1,21 +0,0 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
7
- return (mod && mod.__esModule) ? mod : { "default": mod };
8
- };
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.StyledTagClearIconWrapper = exports.StyledTagClear = void 0;
11
- var styled_components_1 = __importDefault(require("styled-components"));
12
- var styled_1 = require("../styled");
13
- var themes_1 = require("../../../../themes");
14
- var mixins_1 = require("../../../../../themes/mixins");
15
- var grey5 = themes_1.colors.grey5, grey60 = themes_1.colors.grey60, redBG = themes_1.colors.redBG, red = themes_1.colors.red;
16
- exports.StyledTagClear = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", " // size wont get applied here because of css specificity, there is no different size design yet \n padding: 0.1rem 0.5rem;\n background-color: ", ";\n color: ", ";\n cursor: pointer;\n position: relative;\n border-radius: 0.4rem;\n\n &:hover{\n background-color: ", ";\n color: ", ";\n }\n"], ["\n ", " // size wont get applied here because of css specificity, there is no different size design yet \n padding: 0.1rem 0.5rem;\n background-color: ", ";\n color: ", ";\n cursor: pointer;\n position: relative;\n border-radius: 0.4rem;\n\n &:hover{\n background-color: ", ";\n color: ", ";\n }\n"])), function (_a) {
17
- var size = _a.size;
18
- return (0, styled_1.commonStyle)({ size: size });
19
- }, grey5, grey60, redBG, red);
20
- exports.StyledTagClearIconWrapper = styled_components_1.default.button(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n height: 100%;\n padding: 0 0.5rem;\n border-radius: 0.4rem;\n position: absolute;\n right: 0;\n background: linear-gradient(90deg, rgba(255, 227, 227, 0.00) 0%, ", " 28.76%);\n color: ", ";\n ", ";\n"], ["\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n height: 100%;\n padding: 0 0.5rem;\n border-radius: 0.4rem;\n position: absolute;\n right: 0;\n background: linear-gradient(90deg, rgba(255, 227, 227, 0.00) 0%, ", " 28.76%);\n color: ", ";\n ", ";\n"])), redBG, red, (0, mixins_1.transition)('color', 'background-color'));
21
- var templateObject_1, templateObject_2;
@@ -1,5 +0,0 @@
1
- import { TagDisplayProps } from ".";
2
- export interface StyledTagDisplayProps extends Omit<TagDisplayProps, 'display' | 'style' | 'M' | 'XS'> {
3
- size?: 'M' | 'XS' | 'S';
4
- }
5
- export declare const StyledTagDisplay: import("styled-components").StyledComponent<"div", any, StyledTagDisplayProps, never>;