@activecollab/components 1.0.55 → 1.0.58

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 (82) hide show
  1. package/dist/cjs/components/Label/Label.js +21 -19
  2. package/dist/cjs/components/Label/Label.js.map +1 -1
  3. package/dist/cjs/components/{Label → Tag}/Styles.js +16 -16
  4. package/dist/cjs/components/Tag/Styles.js.map +1 -0
  5. package/dist/cjs/components/Tag/Tag.js +52 -0
  6. package/dist/cjs/components/Tag/Tag.js.map +1 -0
  7. package/dist/cjs/components/Tag/index.js +19 -0
  8. package/dist/cjs/components/Tag/index.js.map +1 -0
  9. package/dist/cjs/components/Typography/Typography.js +5 -9
  10. package/dist/cjs/components/Typography/Typography.js.map +1 -1
  11. package/dist/cjs/components/Typography/Variants/Body1.js.map +1 -1
  12. package/dist/cjs/components/Typography/Variants/Body2.js.map +1 -1
  13. package/dist/cjs/components/Typography/Variants/Caption1.js.map +1 -1
  14. package/dist/cjs/components/Typography/Variants/Caption2.js.map +1 -1
  15. package/dist/cjs/components/Typography/Variants/Header2.js.map +1 -1
  16. package/dist/cjs/components/Typography/Variants/Header3.js.map +1 -1
  17. package/dist/cjs/components/Typography/Variants/Title1.js.map +1 -1
  18. package/dist/cjs/components/index.js +17 -4
  19. package/dist/cjs/components/index.js.map +1 -1
  20. package/dist/cjs/utils/types.js +6 -0
  21. package/dist/cjs/utils/types.js.map +1 -0
  22. package/dist/esm/components/CounterButton/Styles.d.ts +1 -1
  23. package/dist/esm/components/Label/Label.d.ts +6 -9
  24. package/dist/esm/components/Label/Label.d.ts.map +1 -1
  25. package/dist/esm/components/Label/Label.js +20 -18
  26. package/dist/esm/components/Label/Label.js.map +1 -1
  27. package/dist/esm/components/Tag/Styles.d.ts +8 -0
  28. package/dist/esm/components/Tag/Styles.d.ts.map +1 -0
  29. package/dist/esm/components/{Label → Tag}/Styles.js +12 -12
  30. package/dist/esm/components/Tag/Styles.js.map +1 -0
  31. package/dist/esm/components/Tag/Tag.d.ts +13 -0
  32. package/dist/esm/components/Tag/Tag.d.ts.map +1 -0
  33. package/dist/esm/components/Tag/Tag.js +28 -0
  34. package/dist/esm/components/Tag/Tag.js.map +1 -0
  35. package/dist/esm/components/Tag/index.d.ts +2 -0
  36. package/dist/esm/components/Tag/index.d.ts.map +1 -0
  37. package/dist/esm/components/Tag/index.js +2 -0
  38. package/dist/esm/components/Tag/index.js.map +1 -0
  39. package/dist/esm/components/Typography/Typography.d.ts +6 -5
  40. package/dist/esm/components/Typography/Typography.d.ts.map +1 -1
  41. package/dist/esm/components/Typography/Typography.js +6 -9
  42. package/dist/esm/components/Typography/Typography.js.map +1 -1
  43. package/dist/esm/components/Typography/Variants/Body1.d.ts +2 -2
  44. package/dist/esm/components/Typography/Variants/Body1.d.ts.map +1 -1
  45. package/dist/esm/components/Typography/Variants/Body1.js.map +1 -1
  46. package/dist/esm/components/Typography/Variants/Body2.d.ts +2 -2
  47. package/dist/esm/components/Typography/Variants/Body2.d.ts.map +1 -1
  48. package/dist/esm/components/Typography/Variants/Body2.js.map +1 -1
  49. package/dist/esm/components/Typography/Variants/Caption1.d.ts +2 -2
  50. package/dist/esm/components/Typography/Variants/Caption1.d.ts.map +1 -1
  51. package/dist/esm/components/Typography/Variants/Caption1.js.map +1 -1
  52. package/dist/esm/components/Typography/Variants/Caption2.d.ts +2 -2
  53. package/dist/esm/components/Typography/Variants/Caption2.d.ts.map +1 -1
  54. package/dist/esm/components/Typography/Variants/Caption2.js.map +1 -1
  55. package/dist/esm/components/Typography/Variants/Header2.d.ts +2 -2
  56. package/dist/esm/components/Typography/Variants/Header2.d.ts.map +1 -1
  57. package/dist/esm/components/Typography/Variants/Header2.js.map +1 -1
  58. package/dist/esm/components/Typography/Variants/Header3.d.ts +2 -2
  59. package/dist/esm/components/Typography/Variants/Header3.d.ts.map +1 -1
  60. package/dist/esm/components/Typography/Variants/Header3.js.map +1 -1
  61. package/dist/esm/components/Typography/Variants/Title1.d.ts +2 -2
  62. package/dist/esm/components/Typography/Variants/Title1.d.ts.map +1 -1
  63. package/dist/esm/components/Typography/Variants/Title1.js.map +1 -1
  64. package/dist/esm/components/ValueButton/Styles.d.ts +2 -2
  65. package/dist/esm/components/ValueButton/Styles.d.ts.map +1 -1
  66. package/dist/esm/components/index.d.ts +2 -1
  67. package/dist/esm/components/index.d.ts.map +1 -1
  68. package/dist/esm/components/index.js +2 -1
  69. package/dist/esm/components/index.js.map +1 -1
  70. package/dist/esm/utils/types.d.ts +14 -0
  71. package/dist/esm/utils/types.d.ts.map +1 -0
  72. package/dist/esm/utils/types.js +2 -0
  73. package/dist/esm/utils/types.js.map +1 -0
  74. package/dist/index.js +164 -140
  75. package/dist/index.js.map +1 -1
  76. package/dist/index.min.js +1 -1
  77. package/dist/index.min.js.map +1 -1
  78. package/package.json +1 -1
  79. package/dist/cjs/components/Label/Styles.js.map +0 -1
  80. package/dist/esm/components/Label/Styles.d.ts +0 -8
  81. package/dist/esm/components/Label/Styles.d.ts.map +0 -1
  82. package/dist/esm/components/Label/Styles.js.map +0 -1
@@ -7,20 +7,20 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.Label = void 0;
9
9
 
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
10
  var _classnames = _interopRequireDefault(require("classnames"));
13
11
 
14
- var _Styles = require("./Styles");
12
+ var _react = _interopRequireWildcard(require("react"));
15
13
 
16
- var _excluded = ["name", "color", "showText", "showDot", "className"];
14
+ var _Typography = require("../Typography/Typography");
17
15
 
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+ var _excluded = ["invalid", "required", "size", "children", "className"];
19
17
 
20
18
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
19
 
22
20
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
21
 
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
+
24
24
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
25
25
 
26
26
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
@@ -28,24 +28,26 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
28
28
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
29
29
 
30
30
  var Label = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
31
- var name = _ref.name,
32
- color = _ref.color,
33
- _ref$showText = _ref.showText,
34
- showText = _ref$showText === void 0 ? true : _ref$showText,
35
- _ref$showDot = _ref.showDot,
36
- showDot = _ref$showDot === void 0 ? true : _ref$showDot,
31
+ var _ref$invalid = _ref.invalid,
32
+ invalid = _ref$invalid === void 0 ? false : _ref$invalid,
33
+ _ref$required = _ref.required,
34
+ required = _ref$required === void 0 ? false : _ref$required,
35
+ _ref$size = _ref.size,
36
+ size = _ref$size === void 0 ? "regular" : _ref$size,
37
+ children = _ref.children,
37
38
  className = _ref.className,
38
- rest = _objectWithoutProperties(_ref, _excluded);
39
+ props = _objectWithoutProperties(_ref, _excluded);
39
40
 
40
- return /*#__PURE__*/_react.default.createElement(_Styles.StyledLabel, _extends({
41
+ var color = invalid ? "alert" : "primary";
42
+ var variant = size === "regular" ? "Body 2" : "Caption 1";
43
+ return /*#__PURE__*/_react.default.createElement(_Typography.Typography, _extends({
44
+ as: "label",
41
45
  className: (0, _classnames.default)("c-label", className),
46
+ variant: variant,
47
+ color: color,
48
+ weight: "bold",
42
49
  ref: ref
43
- }, rest), showDot ? /*#__PURE__*/_react.default.createElement(_Styles.StyledLabelDot, {
44
- $showText: showText,
45
- color: color
46
- }) : null, showText ? /*#__PURE__*/_react.default.createElement(_Styles.StyledLabelText, {
47
- color: color
48
- }, name) : null);
50
+ }, props), children, required ? "*" : null);
49
51
  });
50
52
  exports.Label = Label;
51
53
  Label.displayName = "Label";
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Label/Label.tsx"],"names":["Label","ref","name","color","showText","showDot","className","rest","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;;;;;;;AAaO,IAAMA,KAAK,gBAAG,uBAInB,gBAEEC,GAFF,EAGK;AAAA,MAFDC,IAEC,QAFDA,IAEC;AAAA,MAFKC,KAEL,QAFKA,KAEL;AAAA,2BAFYC,QAEZ;AAAA,MAFYA,QAEZ,8BAFuB,IAEvB;AAAA,0BAF6BC,OAE7B;AAAA,MAF6BA,OAE7B,6BAFuC,IAEvC;AAAA,MAF6CC,SAE7C,QAF6CA,SAE7C;AAAA,MAF2DC,IAE3D;;AACH,sBACE,6BAAC,mBAAD;AACE,IAAA,SAAS,EAAE,yBAAW,SAAX,EAAsBD,SAAtB,CADb;AAEE,IAAA,GAAG,EAAEL;AAFP,KAGMM,IAHN,GAKGF,OAAO,gBAAG,6BAAC,sBAAD;AAAgB,IAAA,SAAS,EAAED,QAA3B;AAAqC,IAAA,KAAK,EAAED;AAA5C,IAAH,GAA2D,IALrE,EAMGC,QAAQ,gBACP,6BAAC,uBAAD;AAAiB,IAAA,KAAK,EAAED;AAAxB,KAAgCD,IAAhC,CADO,GAEL,IARN,CADF;AAYD,CApBkB,CAAd;;AAuBPF,KAAK,CAACQ,WAAN,GAAoB,OAApB","sourcesContent":["import React, { forwardRef, HTMLAttributes } from \"react\";\nimport classnames from \"classnames\";\nimport { StyledLabel, StyledLabelText, StyledLabelDot } from \"./Styles\";\n\ninterface ILabel {\n name: string;\n color: string;\n}\n\ninterface ILabelProps extends ILabel {\n showText?: boolean;\n showDot?: boolean;\n className?: string;\n}\n\nexport const Label = forwardRef<\n HTMLDivElement,\n ILabelProps & HTMLAttributes<HTMLDivElement>\n>(\n (\n { name, color, showText = true, showDot = true, className, ...rest },\n ref\n ) => {\n return (\n <StyledLabel\n className={classnames(\"c-label\", className)}\n ref={ref}\n {...rest}\n >\n {showDot ? <StyledLabelDot $showText={showText} color={color} /> : null}\n {showText ? (\n <StyledLabelText color={color}>{name}</StyledLabelText>\n ) : null}\n </StyledLabel>\n );\n }\n);\n\nLabel.displayName = \"Label\";\n"],"file":"Label.js"}
1
+ {"version":3,"sources":["../../../../src/components/Label/Label.tsx"],"names":["Label","ref","invalid","required","size","children","className","props","color","variant","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;;;;;;;AAQO,IAAMA,KAAK,gBAAG,uBAKnB,gBASEC,GATF,EAUK;AAAA,0BARDC,OAQC;AAAA,MARDA,OAQC,6BARS,KAQT;AAAA,2BAPDC,QAOC;AAAA,MAPDA,QAOC,8BAPU,KAOV;AAAA,uBANDC,IAMC;AAAA,MANDA,IAMC,0BANM,SAMN;AAAA,MALDC,QAKC,QALDA,QAKC;AAAA,MAJDC,SAIC,QAJDA,SAIC;AAAA,MAHEC,KAGF;;AACH,MAAMC,KAAK,GAAGN,OAAO,GAAG,OAAH,GAAa,SAAlC;AACA,MAAMO,OAAO,GAAGL,IAAI,KAAK,SAAT,GAAqB,QAArB,GAAgC,WAAhD;AAEA,sBACE,6BAAC,sBAAD;AACE,IAAA,EAAE,EAAC,OADL;AAEE,IAAA,SAAS,EAAE,yBAAW,SAAX,EAAsBE,SAAtB,CAFb;AAGE,IAAA,OAAO,EAAEG,OAHX;AAIE,IAAA,KAAK,EAAED,KAJT;AAKE,IAAA,MAAM,EAAC,MALT;AAME,IAAA,GAAG,EAAEP;AANP,KAOMM,KAPN,GASGF,QATH,EAUGF,QAAQ,GAAG,GAAH,GAAS,IAVpB,CADF;AAcD,CAjCkB,CAAd;;AAoCPH,KAAK,CAACU,WAAN,GAAoB,OAApB","sourcesContent":["import classNames from \"classnames\";\nimport React, { forwardRef } from \"react\";\nimport { ITypographyProps, Typography } from \"../Typography/Typography\";\n\ninterface ILabelProps {\n invalid?: boolean;\n required?: boolean;\n size?: \"regular\" | \"small\";\n}\n\nexport const Label = forwardRef<\n HTMLLabelElement,\n ILabelProps &\n Omit<ITypographyProps, keyof ILabelProps | \"variant\" | \"color\" | \"weight\">\n>(\n (\n {\n invalid = false,\n required = false,\n size = \"regular\",\n children,\n className,\n ...props\n },\n ref\n ) => {\n const color = invalid ? \"alert\" : \"primary\";\n const variant = size === \"regular\" ? \"Body 2\" : \"Caption 1\";\n\n return (\n <Typography\n as=\"label\"\n className={classNames(\"c-label\", className)}\n variant={variant}\n color={color}\n weight=\"bold\"\n ref={ref}\n {...props}\n >\n {children}\n {required ? \"*\" : null}\n </Typography>\n );\n }\n);\n\nLabel.displayName = \"Label\";\n"],"file":"Label.js"}
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.StyledLabelText = exports.StyledLabelDot = exports.StyledLabel = void 0;
8
+ exports.StyledTagText = exports.StyledTagDot = exports.StyledTag = void 0;
9
9
 
10
10
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
11
11
 
@@ -17,20 +17,20 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
17
17
 
18
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
19
 
20
- var StyledLabel = _styledComponents.default.div.withConfig({
21
- displayName: "Styles__StyledLabel",
22
- componentId: "sc-lo4p1f-0"
20
+ var StyledTag = _styledComponents.default.div.withConfig({
21
+ displayName: "Styles__StyledTag",
22
+ componentId: "sc-1chtb47-0"
23
23
  })(["", " font-size:13px;line-height:1.375;", " ", ""], {
24
24
  "display": "flex",
25
25
  "alignItems": "center"
26
26
  }, _BoxSizingStyle.BoxSizingStyle, _FontStyle.FontStyle);
27
27
 
28
- exports.StyledLabel = StyledLabel;
29
- StyledLabel.displayName = "StyledLabel";
28
+ exports.StyledTag = StyledTag;
29
+ StyledTag.displayName = "StyledTag";
30
30
 
31
- var StyledLabelDot = _styledComponents.default.div.withConfig({
32
- displayName: "Styles__StyledLabelDot",
33
- componentId: "sc-lo4p1f-1"
31
+ var StyledTagDot = _styledComponents.default.div.withConfig({
32
+ displayName: "Styles__StyledTagDot",
33
+ componentId: "sc-1chtb47-1"
34
34
  })(["", " ", " ", ""], {
35
35
  "width": "0.5rem",
36
36
  "height": "0.5rem",
@@ -44,18 +44,18 @@ var StyledLabelDot = _styledComponents.default.div.withConfig({
44
44
  return props.color && (0, _styledComponents.css)(["background-color:", ";"], props.color);
45
45
  });
46
46
 
47
- exports.StyledLabelDot = StyledLabelDot;
48
- StyledLabelDot.displayName = "StyledLabelDot";
47
+ exports.StyledTagDot = StyledTagDot;
48
+ StyledTagDot.displayName = "StyledTagDot";
49
49
 
50
- var StyledLabelText = _styledComponents.default.div.withConfig({
51
- displayName: "Styles__StyledLabelText",
52
- componentId: "sc-lo4p1f-2"
50
+ var StyledTagText = _styledComponents.default.div.withConfig({
51
+ displayName: "Styles__StyledTagText",
52
+ componentId: "sc-1chtb47-2"
53
53
  })(["", " ", ""], {
54
54
  "textTransform": "uppercase"
55
55
  }, function (props) {
56
56
  return props.color && (0, _styledComponents.css)(["color:", ";"], props.color);
57
57
  });
58
58
 
59
- exports.StyledLabelText = StyledLabelText;
60
- StyledLabelText.displayName = "StyledLabelText";
59
+ exports.StyledTagText = StyledTagText;
60
+ StyledTagText.displayName = "StyledTagText";
61
61
  //# sourceMappingURL=Styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Tag/Styles.ts"],"names":["StyledTag","styled","div","BoxSizingStyle","FontStyle","displayName","StyledTagDot","props","$showText","css","color","StyledTagText"],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA;;;;;;AACO,IAAMA,SAAS,GAAGC,0BAAOC,GAAV;AAAA;AAAA;AAAA,wDAChB;AAAA;AAAA;AAAA,CADgB,EAIlBC,8BAJkB,EAKlBC,oBALkB,CAAf;;;AAQPJ,SAAS,CAACK,WAAV,GAAwB,WAAxB;;AAMO,IAAMC,YAAY,GAAGL,0BAAOC,GAAV;AAAA;AAAA;AAAA,uBACnB;AAAA;AAAA;AAAA;AAAA;AAAA,CADmB,EAGrB,UAACK,KAAD;AAAA,SACAA,KAAK,CAACC,SAAN,QACAC,qBADA,YAEM;AAAA;AAAA,GAFN,CADA;AAAA,CAHqB,EASrB,UAACF,KAAD;AAAA,SACAA,KAAK,CAACG,KAAN,QACAD,qBADA,8BAEsBF,KAAK,CAACG,KAF5B,CADA;AAAA,CATqB,CAAlB;;;AAgBPJ,YAAY,CAACD,WAAb,GAA2B,cAA3B;;AAEO,IAAMM,aAAa,GAAGV,0BAAOC,GAAV;AAAA;AAAA;AAAA,kBACpB;AAAA;AAAA,CADoB,EAEtB,UAACK,KAAD;AAAA,SACAA,KAAK,CAACG,KAAN,QACAD,qBADA,mBAEWF,KAAK,CAACG,KAFjB,CADA;AAAA,CAFsB,CAAnB;;;AASPC,aAAa,CAACN,WAAd,GAA4B,eAA5B","sourcesContent":["import styled, { css } from \"styled-components\";\nimport tw from \"twin.macro\";\nimport { BoxSizingStyle } from \"../BoxSizingStyle\";\nimport { FontStyle } from \"../FontStyle\";\nexport const StyledTag = styled.div`\n ${tw`tw-flex tw-items-center`}\n font-size: 13px;\n line-height: 1.375;\n ${BoxSizingStyle}\n ${FontStyle}\n`;\n\nStyledTag.displayName = \"StyledTag\";\n\ninterface IStyledTagDot {\n $showText?: boolean;\n}\n\nexport const StyledTagDot = styled.div<IStyledTagDot>`\n ${tw`tw-w-2 tw-h-2 tw-rounded-full tw-justify-center`}\n\n ${(props) =>\n props.$showText &&\n css`\n ${tw`tw-mr-1`}\n `}\n\n ${(props) =>\n props.color &&\n css`\n background-color: ${props.color};\n `}\n`;\n\nStyledTagDot.displayName = \"StyledTagDot\";\n\nexport const StyledTagText = styled.div`\n ${tw`tw-uppercase`}\n ${(props) =>\n props.color &&\n css`\n color: ${props.color};\n `}\n`;\n\nStyledTagText.displayName = \"StyledTagText\";\n"],"file":"Styles.js"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.Tag = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
14
+ var _Styles = require("./Styles");
15
+
16
+ var _excluded = ["name", "color", "showText", "showDot", "className"];
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+
20
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
+
22
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
+
24
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
25
+
26
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
27
+
28
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
29
+
30
+ var Tag = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
31
+ var name = _ref.name,
32
+ color = _ref.color,
33
+ _ref$showText = _ref.showText,
34
+ showText = _ref$showText === void 0 ? true : _ref$showText,
35
+ _ref$showDot = _ref.showDot,
36
+ showDot = _ref$showDot === void 0 ? true : _ref$showDot,
37
+ className = _ref.className,
38
+ rest = _objectWithoutProperties(_ref, _excluded);
39
+
40
+ return /*#__PURE__*/_react.default.createElement(_Styles.StyledTag, _extends({
41
+ className: (0, _classnames.default)("c-tag", className),
42
+ ref: ref
43
+ }, rest), showDot ? /*#__PURE__*/_react.default.createElement(_Styles.StyledTagDot, {
44
+ $showText: showText,
45
+ color: color
46
+ }) : null, showText ? /*#__PURE__*/_react.default.createElement(_Styles.StyledTagText, {
47
+ color: color
48
+ }, name) : null);
49
+ });
50
+ exports.Tag = Tag;
51
+ Tag.displayName = "Tag";
52
+ //# sourceMappingURL=Tag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Tag/Tag.tsx"],"names":["Tag","ref","name","color","showText","showDot","className","rest","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;;;;;;;AAaO,IAAMA,GAAG,gBAAG,uBAIjB,gBAEEC,GAFF,EAGK;AAAA,MAFDC,IAEC,QAFDA,IAEC;AAAA,MAFKC,KAEL,QAFKA,KAEL;AAAA,2BAFYC,QAEZ;AAAA,MAFYA,QAEZ,8BAFuB,IAEvB;AAAA,0BAF6BC,OAE7B;AAAA,MAF6BA,OAE7B,6BAFuC,IAEvC;AAAA,MAF6CC,SAE7C,QAF6CA,SAE7C;AAAA,MAF2DC,IAE3D;;AACH,sBACE,6BAAC,iBAAD;AAAW,IAAA,SAAS,EAAE,yBAAW,OAAX,EAAoBD,SAApB,CAAtB;AAAsD,IAAA,GAAG,EAAEL;AAA3D,KAAoEM,IAApE,GACGF,OAAO,gBAAG,6BAAC,oBAAD;AAAc,IAAA,SAAS,EAAED,QAAzB;AAAmC,IAAA,KAAK,EAAED;AAA1C,IAAH,GAAyD,IADnE,EAEGC,QAAQ,gBAAG,6BAAC,qBAAD;AAAe,IAAA,KAAK,EAAED;AAAtB,KAA8BD,IAA9B,CAAH,GAAyD,IAFpE,CADF;AAMD,CAdgB,CAAZ;;AAiBPF,GAAG,CAACQ,WAAJ,GAAkB,KAAlB","sourcesContent":["import React, { forwardRef, HTMLAttributes } from \"react\";\nimport classnames from \"classnames\";\nimport { StyledTag, StyledTagText, StyledTagDot } from \"./Styles\";\n\ninterface ITag {\n name: string;\n color: string;\n}\n\ninterface ITagProps extends ITag {\n showText?: boolean;\n showDot?: boolean;\n className?: string;\n}\n\nexport const Tag = forwardRef<\n HTMLDivElement,\n ITagProps & HTMLAttributes<HTMLDivElement>\n>(\n (\n { name, color, showText = true, showDot = true, className, ...rest },\n ref\n ) => {\n return (\n <StyledTag className={classnames(\"c-tag\", className)} ref={ref} {...rest}>\n {showDot ? <StyledTagDot $showText={showText} color={color} /> : null}\n {showText ? <StyledTagText color={color}>{name}</StyledTagText> : null}\n </StyledTag>\n );\n }\n);\n\nTag.displayName = \"Tag\";\n"],"file":"Tag.js"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _Tag = require("./Tag");
8
+
9
+ Object.keys(_Tag).forEach(function (key) {
10
+ if (key === "default" || key === "__esModule") return;
11
+ if (key in exports && exports[key] === _Tag[key]) return;
12
+ Object.defineProperty(exports, key, {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _Tag[key];
16
+ }
17
+ });
18
+ });
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Tag/index.ts"],"names":[],"mappings":";;;;;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export * from \"./Tag\";\n"],"file":"index.js"}
@@ -11,11 +11,9 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
- var _useForkRef = _interopRequireDefault(require("../../utils/useForkRef"));
15
-
16
14
  var _Styles = require("./Styles");
17
15
 
18
- var _excluded = ["variant", "Tag", "color", "italic", "tabularNums", "letterSpacing", "lineHeight", "align", "decoration", "transform", "overflow", "whitespace", "wordBreak", "weight", "className", "children"];
16
+ var _excluded = ["variant", "as", "color", "italic", "tabularNums", "letterSpacing", "lineHeight", "align", "decoration", "transform", "overflow", "whitespace", "wordBreak", "weight", "className", "children"];
19
17
 
20
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
19
 
@@ -32,8 +30,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
32
30
  var Typography = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
33
31
  var _ref$variant = _ref.variant,
34
32
  variant = _ref$variant === void 0 ? "Title 1" : _ref$variant,
35
- _ref$Tag = _ref.Tag,
36
- Tag = _ref$Tag === void 0 ? "div" : _ref$Tag,
33
+ as = _ref.as,
37
34
  _ref$color = _ref.color,
38
35
  color = _ref$color === void 0 ? "primary" : _ref$color,
39
36
  _ref$italic = _ref.italic,
@@ -62,10 +59,9 @@ var Typography = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
62
59
  children = _ref.children,
63
60
  props = _objectWithoutProperties(_ref, _excluded);
64
61
 
65
- var innerRef = (0, _react.useRef)(null);
66
- var handleRef = (0, _useForkRef.default)(ref, innerRef);
62
+ var Component = as || "div";
67
63
  return /*#__PURE__*/_react.default.createElement(_Styles.StyledTypography, _extends({
68
- as: Tag,
64
+ as: Component,
69
65
  className: (0, _classnames.default)("typography", className),
70
66
  $italic: italic,
71
67
  $tabularNums: tabularNums,
@@ -80,7 +76,7 @@ var Typography = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
80
76
  $variant: variant,
81
77
  $color: color,
82
78
  $weight: weight,
83
- ref: handleRef
79
+ ref: ref
84
80
  }, props), children);
85
81
  });
86
82
  exports.Typography = Typography;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Typography/Typography.tsx"],"names":["Typography","ref","variant","Tag","color","italic","tabularNums","letterSpacing","lineHeight","align","decoration","transform","overflow","whitespace","wordBreak","weight","className","children","props","innerRef","handleRef","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;AAyDO,IAAMA,UAAU,gBAAG,uBAIxB,gBAoBEC,GApBF,EAqBK;AAAA,0BAnBDC,OAmBC;AAAA,MAnBDA,OAmBC,6BAnBS,SAmBT;AAAA,sBAlBDC,GAkBC;AAAA,MAlBDA,GAkBC,yBAlBK,KAkBL;AAAA,wBAjBDC,KAiBC;AAAA,MAjBDA,KAiBC,2BAjBO,SAiBP;AAAA,yBAhBDC,MAgBC;AAAA,MAhBDA,MAgBC,4BAhBQ,KAgBR;AAAA,8BAfDC,WAeC;AAAA,MAfDA,WAeC,iCAfa,KAeb;AAAA,gCAdDC,aAcC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AAuBD,CApDuB,CAAnB;;AAuDPjB,UAAU,CAACqB,WAAX,GAAyB,YAAzB","sourcesContent":["import React, { HTMLAttributes, forwardRef, useRef } from \"react\";\nimport classNames from \"classnames\";\nimport useForkRef from \"../../utils/useForkRef\";\nimport { StyledTypography } from \"./Styles\";\nexport interface ITypographyProps extends HTMLAttributes<HTMLElement> {\n /** Font color. */\n color?:\n | \"primary\"\n | \"secondary\"\n | \"tertiary\"\n | \"quaternary\"\n | \"theme-primary\"\n | \"theme-secondary\"\n | \"only-white\"\n | \"only-black\"\n | \"page-paper\"\n | \"success\"\n | \"alert\";\n /** Tabular numbers. */\n tabularNums?: boolean;\n /** Italic font style. */\n italic?: boolean;\n /** Font letter spacing. */\n letterSpacing?: \"tight\" | \"regular\" | \"wide\";\n /** Font line height. */\n lineHeight?: \"tight\" | \"regular\" | \"loose\";\n /** Font align. */\n align?: \"left\" | \"center\" | \"right\" | \"justify\";\n /** Underline font style. */\n decoration?: \"underline\" | \"line-through\" | \"none\";\n /** Font transform. */\n transform?: \"uppercase\" | \"lowercase\" | \"capitalize\" | \"regular\";\n /** Font overflow. */\n overflow?: \"truncate\" | \"ellipsis\" | \"visible\";\n /** Font whitespace. */\n whitespace?: \"regular\" | \"no-wrap\";\n /** Font word break. */\n wordBreak?: \"regular\" | \"smart\" | \"all\";\n /** Custom className for styling. */\n className?: string;\n}\n\ninterface ITypographyAdditionalProps {\n /** Element variant. */\n variant?:\n | \"Title 1\"\n | \"Header 2\"\n | \"Header 3\"\n | \"Body 1\"\n | \"Body 2\"\n | \"Caption 1\"\n | \"Caption 2\";\n /** Element tag. */\n Tag?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"p\" | \"span\" | \"div\";\n /** Font weight. */\n weight?: \"light\" | \"regular\" | \"medium\" | \"bold\";\n /** Font size. */\n size?: \"32\" | \"18\" | \"16\" | \"14\" | \"12\" | \"10\";\n}\n\nexport const Typography = forwardRef<\n HTMLElement,\n ITypographyProps & ITypographyAdditionalProps\n>(\n (\n {\n variant = \"Title 1\",\n Tag = \"div\",\n color = \"primary\",\n italic = false,\n tabularNums = false,\n letterSpacing = \"regular\",\n lineHeight = \"regular\",\n align = \"left\",\n decoration = \"none\",\n transform = \"regular\",\n overflow = \"visible\",\n whitespace = \"regular\",\n wordBreak = \"regular\",\n weight = \"regular\",\n className,\n children,\n ...props\n },\n ref\n ) => {\n const innerRef = useRef<HTMLElement | null>(null);\n const handleRef = useForkRef(ref, innerRef);\n\n return (\n <StyledTypography\n as={Tag}\n className={classNames(\"typography\", className)}\n $italic={italic}\n $tabularNums={tabularNums}\n $letterSpacing={letterSpacing}\n $lineHeight={lineHeight}\n $align={align}\n $decoration={decoration}\n $transform={transform}\n $overflow={overflow}\n $whitespace={whitespace}\n $wordBreak={wordBreak}\n $variant={variant}\n $color={color}\n $weight={weight}\n ref={handleRef}\n {...props}\n >\n {children}\n </StyledTypography>\n );\n }\n);\n\nTypography.displayName = \"Typography\";\n"],"file":"Typography.js"}
1
+ {"version":3,"sources":["../../../../src/components/Typography/Typography.tsx"],"names":["Typography","ref","variant","as","color","italic","tabularNums","letterSpacing","lineHeight","align","decoration","transform","overflow","whitespace","wordBreak","weight","className","children","props","Component","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;;;;;;;AA+DO,IAAMA,UAA0D,gBACrE,uBACE,gBAoBEC,GApBF,EAqBK;AAAA,0BAnBDC,OAmBC;AAAA,MAnBDA,OAmBC,6BAnBS,SAmBT;AAAA,MAlBDC,EAkBC,QAlBDA,EAkBC;AAAA,wBAjBDC,KAiBC;AAAA,MAjBDA,KAiBC,2BAjBO,SAiBP;AAAA,yBAhBDC,MAgBC;AAAA,MAhBDA,MAgBC,4BAhBQ,KAgBR;AAAA,8BAfDC,WAeC;AAAA,MAfDA,WAeC,iCAfa,KAeb;AAAA,gCAdDC,aAcC;AAAA,MAdDA,aAcC,mCAde,SAcf;AAAA,6BAbDC,UAaC;AAAA,MA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StyledTypography } from \"./Styles\";\nimport {\n PolymorphicComponentPropsWithRef,\n PolymorphicRef,\n} from \"../../utils/types\";\nexport interface ITypographyProps extends HTMLAttributes<HTMLElement> {\n /** Font color. */\n color?:\n | \"primary\"\n | \"secondary\"\n | \"tertiary\"\n | \"quaternary\"\n | \"theme-primary\"\n | \"theme-secondary\"\n | \"only-white\"\n | \"only-black\"\n | \"page-paper\"\n | \"success\"\n | \"alert\";\n /** Tabular numbers. */\n tabularNums?: boolean;\n /** Italic font style. */\n italic?: boolean;\n /** Font letter spacing. */\n letterSpacing?: \"tight\" | \"regular\" | \"wide\";\n /** Font line height. */\n lineHeight?: \"tight\" | \"regular\" | \"loose\";\n /** Font align. */\n align?: \"left\" | \"center\" | \"right\" | \"justify\";\n /** Underline font style. */\n decoration?: \"underline\" | \"line-through\" | \"none\";\n /** Font transform. */\n transform?: \"uppercase\" | \"lowercase\" | \"capitalize\" | \"regular\";\n /** Font overflow. */\n overflow?: \"truncate\" | \"ellipsis\" | \"visible\";\n /** Font whitespace. */\n whitespace?: \"regular\" | \"no-wrap\";\n /** Font word break. */\n wordBreak?: \"regular\" | \"smart\" | \"all\";\n /** Custom className for styling. */\n className?: string;\n /** Element variant. */\n variant?:\n | \"Title 1\"\n | \"Header 2\"\n | \"Header 3\"\n | \"Body 1\"\n | \"Body 2\"\n | \"Caption 1\"\n | \"Caption 2\";\n /** Font weight. */\n weight?: \"light\" | \"regular\" | \"medium\" | \"bold\";\n /** Font size. */\n size?: \"32\" | \"18\" | \"16\" | \"14\" | \"12\" | \"10\";\n}\n\nexport type TypographyProps<C extends React.ElementType> =\n PolymorphicComponentPropsWithRef<C, ITypographyProps>;\n\nexport type TypographyComponent = <C extends React.ElementType = \"div\">(\n props: TypographyProps<C>\n) => React.ReactElement | null;\n\nexport const Typography: TypographyComponent & { displayName?: string } =\n forwardRef(\n <C extends React.ElementType = \"div\">(\n {\n variant = \"Title 1\",\n as,\n color = \"primary\",\n italic = false,\n tabularNums = false,\n letterSpacing = \"regular\",\n lineHeight = \"regular\",\n align = \"left\",\n decoration = \"none\",\n transform = \"regular\",\n overflow = \"visible\",\n whitespace = \"regular\",\n wordBreak = \"regular\",\n weight = \"regular\",\n className,\n children,\n ...props\n }: TypographyProps<C>,\n ref?: PolymorphicRef<C>\n ) => {\n const Component = as || \"div\";\n return (\n <StyledTypography\n as={Component}\n className={classNames(\"typography\", className)}\n $italic={italic}\n $tabularNums={tabularNums}\n $letterSpacing={letterSpacing}\n $lineHeight={lineHeight}\n $align={align}\n $decoration={decoration}\n $transform={transform}\n $overflow={overflow}\n $whitespace={whitespace}\n $wordBreak={wordBreak}\n $variant={variant}\n $color={color}\n $weight={weight}\n ref={ref}\n {...props}\n >\n {children}\n </StyledTypography>\n );\n }\n );\n\nTypography.displayName = \"Typography\";\n"],"file":"Typography.js"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/Typography/Variants/Body1.tsx"],"names":["Body1","ref","weight","children","props","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAOO,IAAMA,KAAwC,gBAAG,uBACtD,gBAA6CC,GAA7C,EAA6E;AAAA,yBAA1EC,MAA0E;AAAA,MAA1EA,MAA0E,4BAAjE,SAAiE;AAAA,MAAtDC,QAAsD,QAAtDA,QAAsD;AAAA,MAAzCC,KAAyC;;AAC3E,sBACE,6BAAC,sBAAD;AAAY,IAAA,OAAO,EAAC,QAApB;AAA6B,IAAA,MAAM,EAAEF,MAArC;AAA6C,IAAA,GAAG,EAAED;AAAlD,KAA2DG,KAA3D,GACG,GADH,EAEGD,QAFH,EAEa,GAFb,CADF;AAMD,CARqD,CAAjD;;AAWPH,KAAK,CAACK,WAAN,GAAoB,OAApB","sourcesContent":["import React, { FC, forwardRef } from \"react\";\nimport { ITypographyProps, Typography } from \"../Typography\";\n\ninterface IBodyProps {\n /** Font weight. */\n weight?: \"regular\" | \"bold\" | \"medium\";\n}\n\nexport const Body1: FC<ITypographyProps & IBodyProps> = forwardRef(\n ({ weight = \"regular\", children, ...props }, ref: React.Ref<HTMLElement>) => {\n return (\n <Typography variant=\"Body 1\" weight={weight} ref={ref} {...props}>\n {\" \"}\n {children}{\" \"}\n </Typography>\n );\n }\n);\n\nBody1.displayName = \"Body1\";\n"],"file":"Body1.js"}
1
+ {"version":3,"sources":["../../../../../src/components/Typography/Variants/Body1.tsx"],"names":["Body1","ref","weight","children","props","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAOO,IAAMA,KAAK,gBAAG,uBAGnB,gBAA6CC,GAA7C,EAAqD;AAAA,yBAAlDC,MAAkD;AAAA,MAAlDA,MAAkD,4BAAzC,SAAyC;AAAA,MAA9BC,QAA8B,QAA9BA,QAA8B;AAAA,MAAjBC,KAAiB;;AACrD,sBACE,6BAAC,sBAAD;AAAY,IAAA,OAAO,EAAC,QAApB;AAA6B,IAAA,MAAM,EAAEF,MAArC;AAA6C,IAAA,GAAG,EAAED;AAAlD,KAA2DG,KAA3D,GACG,GADH,EAEGD,QAFH,EAEa,GAFb,CADF;AAMD,CAVoB,CAAd;;AAYPH,KAAK,CAACK,WAAN,GAAoB,OAApB","sourcesContent":["import React, { forwardRef } from \"react\";\nimport { ITypographyProps, Typography } from \"../Typography\";\n\ninterface IBodyProps {\n /** Font weight. */\n weight?: \"regular\" | \"bold\" | \"medium\";\n}\n\nexport const Body1 = forwardRef<\n HTMLDivElement,\n IBodyProps & Omit<ITypographyProps, keyof IBodyProps | \"variant\">\n>(({ weight = \"regular\", children, ...props }, ref) => {\n return (\n <Typography variant=\"Body 1\" weight={weight} ref={ref} {...props}>\n {\" \"}\n {children}{\" \"}\n </Typography>\n );\n});\n\nBody1.displayName = \"Body1\";\n"],"file":"Body1.js"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/Typography/Variants/Body2.tsx"],"names":["Body2","ref","weight","children","props","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAMO,IAAMA,KAAwC,gBAAG,uBACtD,gBAA6CC,GAA7C,EAA6E;AAAA,yBAA1EC,MAA0E;AAAA,MAA1EA,MAA0E,4BAAjE,SAAiE;AAAA,MAAtDC,QAAsD,QAAtDA,QAAsD;AAAA,MAAzCC,KAAyC;;AAC3E,sBACE,6BAAC,sBAAD;AAAY,IAAA,OAAO,EAAC,QAApB;AAA6B,IAAA,MAAM,EAAEF,MAArC;AAA6C,IAAA,GAAG,EAAED;AAAlD,KAA2DG,KAA3D,GACG,GADH,EAEGD,QAFH,EAEa,GAFb,CADF;AAMD,CARqD,CAAjD;;AAWPH,KAAK,CAACK,WAAN,GAAoB,OAApB","sourcesContent":["import React, { FC, forwardRef } from \"react\";\nimport { ITypographyProps, Typography } from \"../Typography\";\nexport interface IBodyProps {\n /** Font weight. */\n weight?: \"regular\" | \"bold\" | \"medium\";\n}\n\nexport const Body2: FC<ITypographyProps & IBodyProps> = forwardRef(\n ({ weight = \"regular\", children, ...props }, ref: React.Ref<HTMLElement>) => {\n return (\n <Typography variant=\"Body 2\" weight={weight} ref={ref} {...props}>\n {\" \"}\n {children}{\" \"}\n </Typography>\n );\n }\n);\n\nBody2.displayName = \"Body2\";\n"],"file":"Body2.js"}
1
+ {"version":3,"sources":["../../../../../src/components/Typography/Variants/Body2.tsx"],"names":["Body2","ref","weight","children","props","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAMO,IAAMA,KAAK,gBAAG,uBAGnB,gBAA6CC,GAA7C,EAAqD;AAAA,yBAAlDC,MAAkD;AAAA,MAAlDA,MAAkD,4BAAzC,SAAyC;AAAA,MAA9BC,QAA8B,QAA9BA,QAA8B;AAAA,MAAjBC,KAAiB;;AACrD,sBACE,6BAAC,sBAAD;AAAY,IAAA,OAAO,EAAC,QAApB;AAA6B,IAAA,MAAM,EAAEF,MAArC;AAA6C,IAAA,GAAG,EAAED;AAAlD,KAA2DG,KAA3D,GACG,GADH,EAEGD,QAFH,EAEa,GAFb,CADF;AAMD,CAVoB,CAAd;;AAYPH,KAAK,CAACK,WAAN,GAAoB,OAApB","sourcesContent":["import React, { forwardRef } from \"react\";\nimport { ITypographyProps, Typography } from \"../Typography\";\nexport interface IBodyProps {\n /** Font weight. */\n weight?: \"regular\" | \"bold\" | \"medium\";\n}\n\nexport const Body2 = forwardRef<\n HTMLDivElement,\n IBodyProps & Omit<ITypographyProps, keyof IBodyProps | \"variant\">\n>(({ weight = \"regular\", children, ...props }, ref) => {\n return (\n <Typography variant=\"Body 2\" weight={weight} ref={ref} {...props}>\n {\" \"}\n {children}{\" \"}\n </Typography>\n );\n});\n\nBody2.displayName = \"Body2\";\n"],"file":"Body2.js"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/Typography/Variants/Caption1.tsx"],"names":["Caption1","ref","weight","children","props","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAOO,IAAMA,QAA8C,gBAAG,uBAC5D,gBAA6CC,GAA7C,EAA6E;AAAA,yBAA1EC,MAA0E;AAAA,MAA1EA,MAA0E,4BAAjE,SAAiE;AAAA,MAAtDC,QAAsD,QAAtDA,QAAsD;AAAA,MAAzCC,KAAyC;;AAC3E,sBACE,6BAAC,sBAAD;AAAY,IAAA,OAAO,EAAC,WAApB;AAAgC,IAAA,MAAM,EAAEF,MAAxC;AAAgD,IAAA,GAAG,EAAED;AAArD,KAA8DG,KAA9D,GACG,GADH,EAEGD,QAFH,EAEa,GAFb,CADF;AAMD,CAR2D,CAAvD;;AAWPH,QAAQ,CAACK,WAAT,GAAuB,UAAvB","sourcesContent":["import React, { FC, forwardRef } from \"react\";\nimport { ITypographyProps, Typography } from \"../Typography\";\n\ninterface ICaptionProps {\n /** Font weight. */\n weight?: \"regular\" | \"bold\";\n}\n\nexport const Caption1: FC<ITypographyProps & ICaptionProps> = forwardRef(\n ({ weight = \"regular\", children, ...props }, ref: React.Ref<HTMLElement>) => {\n return (\n <Typography variant=\"Caption 1\" weight={weight} ref={ref} {...props}>\n {\" \"}\n {children}{\" \"}\n </Typography>\n );\n }\n);\n\nCaption1.displayName = \"Caption1\";\n"],"file":"Caption1.js"}
1
+ {"version":3,"sources":["../../../../../src/components/Typography/Variants/Caption1.tsx"],"names":["Caption1","ref","weight","children","props","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAOO,IAAMA,QAAQ,gBAAG,uBAGtB,gBAA6CC,GAA7C,EAAqD;AAAA,yBAAlDC,MAAkD;AAAA,MAAlDA,MAAkD,4BAAzC,SAAyC;AAAA,MAA9BC,QAA8B,QAA9BA,QAA8B;AAAA,MAAjBC,KAAiB;;AACrD,sBACE,6BAAC,sBAAD;AAAY,IAAA,OAAO,EAAC,WAApB;AAAgC,IAAA,MAAM,EAAEF,MAAxC;AAAgD,IAAA,GAAG,EAAED;AAArD,KAA8DG,KAA9D,GACG,GADH,EAEGD,QAFH,EAEa,GAFb,CADF;AAMD,CAVuB,CAAjB;;AAYPH,QAAQ,CAACK,WAAT,GAAuB,UAAvB","sourcesContent":["import React, { forwardRef } from \"react\";\nimport { ITypographyProps, Typography } from \"../Typography\";\n\ninterface ICaptionProps {\n /** Font weight. */\n weight?: \"regular\" | \"bold\";\n}\n\nexport const Caption1 = forwardRef<\n HTMLDivElement,\n ICaptionProps & Omit<ITypographyProps, keyof ICaptionProps | \"variant\">\n>(({ weight = \"regular\", children, ...props }, ref) => {\n return (\n <Typography variant=\"Caption 1\" weight={weight} ref={ref} {...props}>\n {\" \"}\n {children}{\" \"}\n </Typography>\n );\n});\n\nCaption1.displayName = \"Caption1\";\n"],"file":"Caption1.js"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/Typography/Variants/Caption2.tsx"],"names":["Caption2","ref","weight","children","props","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAOO,IAAMA,QAA8C,gBAAG,uBAC5D,gBAA6CC,GAA7C,EAA6E;AAAA,yBAA1EC,MAA0E;AAAA,MAA1EA,MAA0E,4BAAjE,SAAiE;AAAA,MAAtDC,QAAsD,QAAtDA,QAAsD;AAAA,MAAzCC,KAAyC;;AAC3E,sBACE,6BAAC,sBAAD;AAAY,IAAA,OAAO,EAAC,WAApB;AAAgC,IAAA,MAAM,EAAEF,MAAxC;AAAgD,IAAA,GAAG,EAAED;AAArD,KAA8DG,KAA9D,GACG,GADH,EAEGD,QAFH,EAEa,GAFb,CADF;AAMD,CAR2D,CAAvD;;AAWPH,QAAQ,CAACK,WAAT,GAAuB,UAAvB","sourcesContent":["import React, { FC, forwardRef } from \"react\";\nimport { ITypographyProps, Typography } from \"../Typography\";\n\ninterface ICaptionProps {\n /** Font weight. */\n weight?: \"regular\" | \"bold\";\n}\n\nexport const Caption2: FC<ITypographyProps & ICaptionProps> = forwardRef(\n ({ weight = \"regular\", children, ...props }, ref: React.Ref<HTMLElement>) => {\n return (\n <Typography variant=\"Caption 2\" weight={weight} ref={ref} {...props}>\n {\" \"}\n {children}{\" \"}\n </Typography>\n );\n }\n);\n\nCaption2.displayName = \"Caption2\";\n"],"file":"Caption2.js"}
1
+ {"version":3,"sources":["../../../../../src/components/Typography/Variants/Caption2.tsx"],"names":["Caption2","ref","weight","children","props","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAOO,IAAMA,QAAQ,gBAAG,uBAGtB,gBAA6CC,GAA7C,EAAqD;AAAA,yBAAlDC,MAAkD;AAAA,MAAlDA,MAAkD,4BAAzC,SAAyC;AAAA,MAA9BC,QAA8B,QAA9BA,QAA8B;AAAA,MAAjBC,KAAiB;;AACrD,sBACE,6BAAC,sBAAD;AAAY,IAAA,OAAO,EAAC,WAApB;AAAgC,IAAA,MAAM,EAAEF,MAAxC;AAAgD,IAAA,GAAG,EAAED;AAArD,KAA8DG,KAA9D,GACG,GADH,EAEGD,QAFH,EAEa,GAFb,CADF;AAMD,CAVuB,CAAjB;;AAYPH,QAAQ,CAACK,WAAT,GAAuB,UAAvB","sourcesContent":["import React, { forwardRef } from \"react\";\nimport { ITypographyProps, Typography } from \"../Typography\";\n\ninterface ICaptionProps {\n /** Font weight. */\n weight?: \"regular\" | \"bold\";\n}\n\nexport const Caption2 = forwardRef<\n HTMLDivElement,\n ICaptionProps & Omit<ITypographyProps, keyof ICaptionProps | \"variant\">\n>(({ weight = \"regular\", children, ...props }, ref) => {\n return (\n <Typography variant=\"Caption 2\" weight={weight} ref={ref} {...props}>\n {\" \"}\n {children}{\" \"}\n </Typography>\n );\n});\n\nCaption2.displayName = \"Caption2\";\n"],"file":"Caption2.js"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/Typography/Variants/Header2.tsx"],"names":["Header2","ref","children","props","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAEO,IAAMA,OAA6B,gBAAG,uBAC3C,gBAAyBC,GAAzB,EAAyD;AAAA,MAAtDC,QAAsD,QAAtDA,QAAsD;AAAA,MAAzCC,KAAyC;;AACvD,sBACE,6BAAC,sBAAD;AAAY,IAAA,MAAM,EAAC,MAAnB;AAA0B,IAAA,OAAO,EAAC,UAAlC;AAA6C,IAAA,GAAG,EAAEF;AAAlD,KAA2DE,KAA3D,GACG,GADH,EAEGD,QAFH,EAEa,GAFb,CADF;AAMD,CAR0C,CAAtC;;AAWPF,OAAO,CAACI,WAAR,GAAsB,SAAtB","sourcesContent":["import React, { FC, forwardRef } from \"react\";\nimport { ITypographyProps, Typography } from \"../Typography\";\n\nexport const Header2: FC<ITypographyProps> = forwardRef(\n ({ children, ...props }, ref: React.Ref<HTMLElement>) => {\n return (\n <Typography weight=\"bold\" variant=\"Header 2\" ref={ref} {...props}>\n {\" \"}\n {children}{\" \"}\n </Typography>\n );\n }\n);\n\nHeader2.displayName = \"Header2\";\n"],"file":"Header2.js"}
1
+ {"version":3,"sources":["../../../../../src/components/Typography/Variants/Header2.tsx"],"names":["Header2","ref","children","props","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAEO,IAAMA,OAAO,gBAAG,uBAGrB,gBAAyBC,GAAzB,EAAiC;AAAA,MAA9BC,QAA8B,QAA9BA,QAA8B;AAAA,MAAjBC,KAAiB;;AACjC,sBACE,6BAAC,sBAAD;AAAY,IAAA,MAAM,EAAC,MAAnB;AAA0B,IAAA,OAAO,EAAC,UAAlC;AAA6C,IAAA,GAAG,EAAEF;AAAlD,KAA2DE,KAA3D,GACG,GADH,EAEGD,QAFH,EAEa,GAFb,CADF;AAMD,CAVsB,CAAhB;;AAYPF,OAAO,CAACI,WAAR,GAAsB,SAAtB","sourcesContent":["import React, { forwardRef } from \"react\";\nimport { ITypographyProps, Typography } from \"../Typography\";\n\nexport const Header2 = forwardRef<\n HTMLDivElement,\n Omit<ITypographyProps, \"weight\" | \"variant\">\n>(({ children, ...props }, ref) => {\n return (\n <Typography weight=\"bold\" variant=\"Header 2\" ref={ref} {...props}>\n {\" \"}\n {children}{\" \"}\n </Typography>\n );\n});\n\nHeader2.displayName = \"Header2\";\n"],"file":"Header2.js"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/Typography/Variants/Header3.tsx"],"names":["Header3","ref","children","props","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAEO,IAAMA,OAA6B,gBAAG,uBAC3C,gBAAyBC,GAAzB,EAAyD;AAAA,MAAtDC,QAAsD,QAAtDA,QAAsD;AAAA,MAAzCC,KAAyC;;AACvD,sBACE,6BAAC,sBAAD;AAAY,IAAA,MAAM,EAAC,MAAnB;AAA0B,IAAA,OAAO,EAAC,UAAlC;AAA6C,IAAA,GAAG,EAAEF;AAAlD,KAA2DE,KAA3D,GACG,GADH,EAEGD,QAFH,EAEa,GAFb,CADF;AAMD,CAR0C,CAAtC;;AAWPF,OAAO,CAACI,WAAR,GAAsB,SAAtB","sourcesContent":["import React, { FC, forwardRef } from \"react\";\nimport { ITypographyProps, Typography } from \"../Typography\";\n\nexport const Header3: FC<ITypographyProps> = forwardRef(\n ({ children, ...props }, ref: React.Ref<HTMLElement>) => {\n return (\n <Typography weight=\"bold\" variant=\"Header 3\" ref={ref} {...props}>\n {\" \"}\n {children}{\" \"}\n </Typography>\n );\n }\n);\n\nHeader3.displayName = \"Header3\";\n"],"file":"Header3.js"}
1
+ {"version":3,"sources":["../../../../../src/components/Typography/Variants/Header3.tsx"],"names":["Header3","ref","children","props","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAEO,IAAMA,OAAO,gBAAG,uBAGrB,gBAAyBC,GAAzB,EAAiC;AAAA,MAA9BC,QAA8B,QAA9BA,QAA8B;AAAA,MAAjBC,KAAiB;;AACjC,sBACE,6BAAC,sBAAD;AAAY,IAAA,MAAM,EAAC,MAAnB;AAA0B,IAAA,OAAO,EAAC,UAAlC;AAA6C,IAAA,GAAG,EAAEF;AAAlD,KAA2DE,KAA3D,GACG,GADH,EAEGD,QAFH,EAEa,GAFb,CADF;AAMD,CAVsB,CAAhB;;AAYPF,OAAO,CAACI,WAAR,GAAsB,SAAtB","sourcesContent":["import React, { forwardRef } from \"react\";\nimport { ITypographyProps, Typography } from \"../Typography\";\n\nexport const Header3 = forwardRef<\n HTMLDivElement,\n Omit<ITypographyProps, \"weight\" | \"variant\">\n>(({ children, ...props }, ref) => {\n return (\n <Typography weight=\"bold\" variant=\"Header 3\" ref={ref} {...props}>\n {\" \"}\n {children}{\" \"}\n </Typography>\n );\n});\n\nHeader3.displayName = \"Header3\";\n"],"file":"Header3.js"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/Typography/Variants/Title1.tsx"],"names":["Title1","ref","weight","children","props","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAOO,IAAMA,MAA0C,gBAAG,uBACxD,gBAA2CC,GAA3C,EAA2E;AAAA,yBAAxEC,MAAwE;AAAA,MAAxEA,MAAwE,4BAA/D,OAA+D;AAAA,MAAtDC,QAAsD,QAAtDA,QAAsD;AAAA,MAAzCC,KAAyC;;AACzE,sBACE,6BAAC,sBAAD;AAAY,IAAA,MAAM,EAAEF,MAApB;AAA4B,IAAA,OAAO,EAAC,SAApC;AAA8C,IAAA,GAAG,EAAED;AAAnD,KAA4DG,KAA5D,GACG,GADH,EAEGD,QAFH,EAEa,GAFb,CADF;AAMD,CARuD,CAAnD;;AAWPH,MAAM,CAACK,WAAP,GAAqB,QAArB","sourcesContent":["import React, { FC, forwardRef } from \"react\";\nimport { ITypographyProps, Typography } from \"../Typography\";\n\ninterface ITitleProps {\n /** Font weight. */\n weight?: \"light\" | \"bold\";\n}\n\nexport const Title1: FC<ITypographyProps & ITitleProps> = forwardRef(\n ({ weight = \"light\", children, ...props }, ref: React.Ref<HTMLElement>) => {\n return (\n <Typography weight={weight} variant=\"Title 1\" ref={ref} {...props}>\n {\" \"}\n {children}{\" \"}\n </Typography>\n );\n }\n);\n\nTitle1.displayName = \"Title1\";\n"],"file":"Title1.js"}
1
+ {"version":3,"sources":["../../../../../src/components/Typography/Variants/Title1.tsx"],"names":["Title1","ref","weight","children","props","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAOO,IAAMA,MAAM,gBAAG,uBAGpB,gBAA2CC,GAA3C,EAAmD;AAAA,yBAAhDC,MAAgD;AAAA,MAAhDA,MAAgD,4BAAvC,OAAuC;AAAA,MAA9BC,QAA8B,QAA9BA,QAA8B;AAAA,MAAjBC,KAAiB;;AACnD,sBACE,6BAAC,sBAAD;AAAY,IAAA,MAAM,EAAEF,MAApB;AAA4B,IAAA,OAAO,EAAC,SAApC;AAA8C,IAAA,GAAG,EAAED;AAAnD,KAA4DG,KAA5D,GACG,GADH,EAEGD,QAFH,EAEa,GAFb,CADF;AAMD,CAVqB,CAAf;;AAYPH,MAAM,CAACK,WAAP,GAAqB,QAArB","sourcesContent":["import React, { forwardRef } from \"react\";\nimport { ITypographyProps, Typography } from \"../Typography\";\n\ninterface ITitleProps {\n /** Font weight. */\n weight?: \"light\" | \"bold\";\n}\n\nexport const Title1 = forwardRef<\n HTMLDivElement,\n ITitleProps & Omit<ITypographyProps, keyof ITitleProps | \"variant\">\n>(({ weight = \"light\", children, ...props }, ref) => {\n return (\n <Typography weight={weight} variant=\"Title 1\" ref={ref} {...props}>\n {\" \"}\n {children}{\" \"}\n </Typography>\n );\n});\n\nTitle1.displayName = \"Title1\";\n"],"file":"Title1.js"}
@@ -160,15 +160,15 @@ Object.keys(_Avatar).forEach(function (key) {
160
160
  });
161
161
  });
162
162
 
163
- var _Label = require("./Label");
163
+ var _Tag = require("./Tag");
164
164
 
165
- Object.keys(_Label).forEach(function (key) {
165
+ Object.keys(_Tag).forEach(function (key) {
166
166
  if (key === "default" || key === "__esModule") return;
167
- if (key in exports && exports[key] === _Label[key]) return;
167
+ if (key in exports && exports[key] === _Tag[key]) return;
168
168
  Object.defineProperty(exports, key, {
169
169
  enumerable: true,
170
170
  get: function get() {
171
- return _Label[key];
171
+ return _Tag[key];
172
172
  }
173
173
  });
174
174
  });
@@ -693,6 +693,19 @@ Object.keys(_Reactions).forEach(function (key) {
693
693
  });
694
694
  });
695
695
 
696
+ var _Label = require("./Label");
697
+
698
+ Object.keys(_Label).forEach(function (key) {
699
+ if (key === "default" || key === "__esModule") return;
700
+ if (key in exports && exports[key] === _Label[key]) return;
701
+ Object.defineProperty(exports, key, {
702
+ enumerable: true,
703
+ get: function get() {
704
+ return _Label[key];
705
+ }
706
+ });
707
+ });
708
+
696
709
  var _GlobalStyle = require("./GlobalStyle");
697
710
 
698
711
  Object.keys(_GlobalStyle).forEach(function (key) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;;;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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AA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export * from \"./Button\";\nexport * from \"./ButtonGroup\";\nexport * from \"./CounterButton\";\nexport * from \"./Steppers\";\nexport * from \"./Tables\";\nexport * from \"./CompleteCheckbox\";\nexport * from \"./Paper\";\nexport * from \"./ScaleBar\";\nexport * from \"./Card\";\nexport * from \"./EntityCard\";\nexport * from \"./Signifier\";\nexport * from \"./Avatar\";\nexport * from \"./Label\";\nexport * from \"./Loaders\";\nexport * from \"./Nav\";\nexport * from \"./Bubble\";\nexport * from \"./Input\";\nexport * from \"./Menu\";\nexport * from \"./Expanders\";\nexport * from \"./Pickers\";\nexport * from \"./DatePicker\";\nexport * from \"./List\";\nexport * from \"./MenuSelector\";\nexport * from \"./MultiAvatar\";\nexport * from \"./RadioButton\";\nexport * from \"./ScrollShadow\";\nexport * from \"./Icons\";\nexport * from \"./Textarea\";\nexport * from \"./Modal\";\nexport * from \"./Sheet\";\nexport * from \"./Header\";\nexport * from \"./AutoResizeTextarea\";\nexport * from \"./Overlay\";\nexport * from \"./Accordion\";\nexport * from \"./Choose\";\nexport * from \"./Links\";\nexport * from \"./SelectDate\";\nexport * from \"./Popper\";\nexport * from \"./Tooltip\";\nexport * from \"./Transitions\";\nexport * from \"./Pressed\";\nexport * from \"./Window\";\nexport * from \"./ValueButton\";\nexport * from \"./Select\";\nexport * from \"./Dialog\";\nexport * from \"./ConfirmDialog\";\nexport * from \"./Checkbox\";\nexport * from \"./Toggle\";\nexport * from \"./Typography\";\nexport * from \"./Autocomplete\";\nexport * from \"./ComboBox\";\nexport * from \"./ProgressBar\";\nexport * from \"./Reactions\";\nexport * from \"./GlobalStyle\";\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;;;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;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AA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export * from \"./Button\";\nexport * from \"./ButtonGroup\";\nexport * from \"./CounterButton\";\nexport * from \"./Steppers\";\nexport * from \"./Tables\";\nexport * from \"./CompleteCheckbox\";\nexport * from \"./Paper\";\nexport * from \"./ScaleBar\";\nexport * from \"./Card\";\nexport * from \"./EntityCard\";\nexport * from \"./Signifier\";\nexport * from \"./Avatar\";\nexport * from \"./Tag\";\nexport * from \"./Loaders\";\nexport * from \"./Nav\";\nexport * from \"./Bubble\";\nexport * from \"./Input\";\nexport * from \"./Menu\";\nexport * from \"./Expanders\";\nexport * from \"./Pickers\";\nexport * from \"./DatePicker\";\nexport * from \"./List\";\nexport * from \"./MenuSelector\";\nexport * from \"./MultiAvatar\";\nexport * from \"./RadioButton\";\nexport * from \"./ScrollShadow\";\nexport * from \"./Icons\";\nexport * from \"./Textarea\";\nexport * from \"./Modal\";\nexport * from \"./Sheet\";\nexport * from \"./Header\";\nexport * from \"./AutoResizeTextarea\";\nexport * from \"./Overlay\";\nexport * from \"./Accordion\";\nexport * from \"./Choose\";\nexport * from \"./Links\";\nexport * from \"./SelectDate\";\nexport * from \"./Popper\";\nexport * from \"./Tooltip\";\nexport * from \"./Transitions\";\nexport * from \"./Pressed\";\nexport * from \"./Window\";\nexport * from \"./ValueButton\";\nexport * from \"./Select\";\nexport * from \"./Dialog\";\nexport * from \"./ConfirmDialog\";\nexport * from \"./Checkbox\";\nexport * from \"./Toggle\";\nexport * from \"./Typography\";\nexport * from \"./Autocomplete\";\nexport * from \"./ComboBox\";\nexport * from \"./ProgressBar\";\nexport * from \"./Reactions\";\nexport * from \"./Label\";\nexport * from \"./GlobalStyle\";\n"],"file":"index.js"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"types.js"}
@@ -8,7 +8,7 @@ export declare const StyledCounterButtonCounter: import("styled-components").Sty
8
8
  $selected?: boolean | undefined;
9
9
  }, never>;
10
10
  export declare const StyledCounterButtonReset: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Button/Button").IButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
11
- export declare const StyledCounterButtonLabel: import("styled-components").StyledComponent<import("react").FC<import("../Typography/Typography").ITypographyProps & import("../Typography/Variants/Body2").IBodyProps>, any, {
11
+ export declare const StyledCounterButtonLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Typography/Variants/Body2").IBodyProps & Omit<import("../Typography/Typography").ITypographyProps, "variant" | "weight"> & import("react").RefAttributes<HTMLDivElement>>, any, {
12
12
  $active?: boolean | undefined;
13
13
  }, never>;
14
14
  export {};
@@ -1,13 +1,10 @@
1
1
  import React from "react";
2
- interface ILabel {
3
- name: string;
4
- color: string;
2
+ import { ITypographyProps } from "../Typography/Typography";
3
+ interface ILabelProps {
4
+ invalid?: boolean;
5
+ required?: boolean;
6
+ size?: "regular" | "small";
5
7
  }
6
- interface ILabelProps extends ILabel {
7
- showText?: boolean;
8
- showDot?: boolean;
9
- className?: string;
10
- }
11
- export declare const Label: React.ForwardRefExoticComponent<ILabelProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
8
+ export declare const Label: React.ForwardRefExoticComponent<ILabelProps & Omit<ITypographyProps, "color" | "variant" | "weight" | keyof ILabelProps> & React.RefAttributes<HTMLLabelElement>>;
12
9
  export {};
13
10
  //# sourceMappingURL=Label.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../src/components/Label/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAI1D,UAAU,MAAM;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,WAAY,SAAQ,MAAM;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,KAAK,2HAqBjB,CAAC"}
1
+ {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../src/components/Label/Label.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAc,MAAM,0BAA0B,CAAC;AAExE,UAAU,WAAW;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,KAAK,mKAkCjB,CAAC"}
@@ -1,28 +1,30 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- var _excluded = ["name", "color", "showText", "showDot", "className"];
3
+ var _excluded = ["invalid", "required", "size", "children", "className"];
4
+ import classNames from "classnames";
4
5
  import React, { forwardRef } from "react";
5
- import classnames from "classnames";
6
- import { StyledLabel, StyledLabelText, StyledLabelDot } from "./Styles";
6
+ import { Typography } from "../Typography/Typography";
7
7
  export var Label = /*#__PURE__*/forwardRef(function (_ref, ref) {
8
- var name = _ref.name,
9
- color = _ref.color,
10
- _ref$showText = _ref.showText,
11
- showText = _ref$showText === void 0 ? true : _ref$showText,
12
- _ref$showDot = _ref.showDot,
13
- showDot = _ref$showDot === void 0 ? true : _ref$showDot,
8
+ var _ref$invalid = _ref.invalid,
9
+ invalid = _ref$invalid === void 0 ? false : _ref$invalid,
10
+ _ref$required = _ref.required,
11
+ required = _ref$required === void 0 ? false : _ref$required,
12
+ _ref$size = _ref.size,
13
+ size = _ref$size === void 0 ? "regular" : _ref$size,
14
+ children = _ref.children,
14
15
  className = _ref.className,
15
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
16
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
16
17
 
17
- return /*#__PURE__*/React.createElement(StyledLabel, _extends({
18
- className: classnames("c-label", className),
18
+ var color = invalid ? "alert" : "primary";
19
+ var variant = size === "regular" ? "Body 2" : "Caption 1";
20
+ return /*#__PURE__*/React.createElement(Typography, _extends({
21
+ as: "label",
22
+ className: classNames("c-label", className),
23
+ variant: variant,
24
+ color: color,
25
+ weight: "bold",
19
26
  ref: ref
20
- }, rest), showDot ? /*#__PURE__*/React.createElement(StyledLabelDot, {
21
- $showText: showText,
22
- color: color
23
- }) : null, showText ? /*#__PURE__*/React.createElement(StyledLabelText, {
24
- color: color
25
- }, name) : null);
27
+ }, props), children, required ? "*" : null);
26
28
  });
27
29
  Label.displayName = "Label";
28
30
  //# sourceMappingURL=Label.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Label/Label.tsx"],"names":["React","forwardRef","classnames","StyledLabel","StyledLabelText","StyledLabelDot","Label","ref","name","color","showText","showDot","className","rest","displayName"],"mappings":";;;AAAA,OAAOA,KAAP,IAAgBC,UAAhB,QAAkD,OAAlD;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SAASC,WAAT,EAAsBC,eAAtB,EAAuCC,cAAvC,QAA6D,UAA7D;AAaA,OAAO,IAAMC,KAAK,gBAAGL,UAAU,CAI7B,gBAEEM,GAFF,EAGK;AAAA,MAFDC,IAEC,QAFDA,IAEC;AAAA,MAFKC,KAEL,QAFKA,KAEL;AAAA,2BAFYC,QAEZ;AAAA,MAFYA,QAEZ,8BAFuB,IAEvB;AAAA,0BAF6BC,OAE7B;AAAA,MAF6BA,OAE7B,6BAFuC,IAEvC;AAAA,MAF6CC,SAE7C,QAF6CA,SAE7C;AAAA,MAF2DC,IAE3D;;AACH,sBACE,oBAAC,WAAD;AACE,IAAA,SAAS,EAAEX,UAAU,CAAC,SAAD,EAAYU,SAAZ,CADvB;AAEE,IAAA,GAAG,EAAEL;AAFP,KAGMM,IAHN,GAKGF,OAAO,gBAAG,oBAAC,cAAD;AAAgB,IAAA,SAAS,EAAED,QAA3B;AAAqC,IAAA,KAAK,EAAED;AAA5C,IAAH,GAA2D,IALrE,EAMGC,QAAQ,gBACP,oBAAC,eAAD;AAAiB,IAAA,KAAK,EAAED;AAAxB,KAAgCD,IAAhC,CADO,GAEL,IARN,CADF;AAYD,CApB4B,CAAxB;AAuBPF,KAAK,CAACQ,WAAN,GAAoB,OAApB","sourcesContent":["import React, { forwardRef, HTMLAttributes } from \"react\";\nimport classnames from \"classnames\";\nimport { StyledLabel, StyledLabelText, StyledLabelDot } from \"./Styles\";\n\ninterface ILabel {\n name: string;\n color: string;\n}\n\ninterface ILabelProps extends ILabel {\n showText?: boolean;\n showDot?: boolean;\n className?: string;\n}\n\nexport const Label = forwardRef<\n HTMLDivElement,\n ILabelProps & HTMLAttributes<HTMLDivElement>\n>(\n (\n { name, color, showText = true, showDot = true, className, ...rest },\n ref\n ) => {\n return (\n <StyledLabel\n className={classnames(\"c-label\", className)}\n ref={ref}\n {...rest}\n >\n {showDot ? <StyledLabelDot $showText={showText} color={color} /> : null}\n {showText ? (\n <StyledLabelText color={color}>{name}</StyledLabelText>\n ) : null}\n </StyledLabel>\n );\n }\n);\n\nLabel.displayName = \"Label\";\n"],"file":"Label.js"}
1
+ {"version":3,"sources":["../../../../src/components/Label/Label.tsx"],"names":["classNames","React","forwardRef","Typography","Label","ref","invalid","required","size","children","className","props","color","variant","displayName"],"mappings":";;;AAAA,OAAOA,UAAP,MAAuB,YAAvB;AACA,OAAOC,KAAP,IAAgBC,UAAhB,QAAkC,OAAlC;AACA,SAA2BC,UAA3B,QAA6C,0BAA7C;AAQA,OAAO,IAAMC,KAAK,gBAAGF,UAAU,CAK7B,gBASEG,GATF,EAUK;AAAA,0BARDC,OAQC;AAAA,MARDA,OAQC,6BARS,KAQT;AAAA,2BAPDC,QAOC;AAAA,MAPDA,QAOC,8BAPU,KAOV;AAAA,uBANDC,IAMC;AAAA,MANDA,IAMC,0BANM,SAMN;AAAA,MALDC,QAKC,QALDA,QAKC;AAAA,MAJDC,SAIC,QAJDA,SAIC;AAAA,MAHEC,KAGF;;AACH,MAAMC,KAAK,GAAGN,OAAO,GAAG,OAAH,GAAa,SAAlC;AACA,MAAMO,OAAO,GAAGL,IAAI,KAAK,SAAT,GAAqB,QAArB,GAAgC,WAAhD;AAEA,sBACE,oBAAC,UAAD;AACE,IAAA,EAAE,EAAC,OADL;AAEE,IAAA,SAAS,EAAER,UAAU,CAAC,SAAD,EAAYU,SAAZ,CAFvB;AAGE,IAAA,OAAO,EAAEG,OAHX;AAIE,IAAA,KAAK,EAAED,KAJT;AAKE,IAAA,MAAM,EAAC,MALT;AAME,IAAA,GAAG,EAAEP;AANP,KAOMM,KAPN,GASGF,QATH,EAUGF,QAAQ,GAAG,GAAH,GAAS,IAVpB,CADF;AAcD,CAjC4B,CAAxB;AAoCPH,KAAK,CAACU,WAAN,GAAoB,OAApB","sourcesContent":["import classNames from \"classnames\";\nimport React, { forwardRef } from \"react\";\nimport { ITypographyProps, Typography } from \"../Typography/Typography\";\n\ninterface ILabelProps {\n invalid?: boolean;\n required?: boolean;\n size?: \"regular\" | \"small\";\n}\n\nexport const Label = forwardRef<\n HTMLLabelElement,\n ILabelProps &\n Omit<ITypographyProps, keyof ILabelProps | \"variant\" | \"color\" | \"weight\">\n>(\n (\n {\n invalid = false,\n required = false,\n size = \"regular\",\n children,\n className,\n ...props\n },\n ref\n ) => {\n const color = invalid ? \"alert\" : \"primary\";\n const variant = size === \"regular\" ? \"Body 2\" : \"Caption 1\";\n\n return (\n <Typography\n as=\"label\"\n className={classNames(\"c-label\", className)}\n variant={variant}\n color={color}\n weight=\"bold\"\n ref={ref}\n {...props}\n >\n {children}\n {required ? \"*\" : null}\n </Typography>\n );\n }\n);\n\nLabel.displayName = \"Label\";\n"],"file":"Label.js"}