@typeolymp/ui-components 1.19.2 → 1.19.3

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.
@@ -1,6 +1,8 @@
1
1
  import { FC, ReactNode } from "react";
2
+ import { Color } from "@typeolymp/utils/enums";
2
3
  export declare type PropsType = {
3
4
  children?: ReactNode;
5
+ color?: Color;
4
6
  };
5
7
  declare const Tag: FC<PropsType>;
6
8
  export default Tag;
@@ -5,3 +5,4 @@ declare const _default: {
5
5
  };
6
6
  export default _default;
7
7
  export declare const Overview: () => JSX.Element;
8
+ export declare const Playground: (args: any) => JSX.Element;
package/build/index.es.js CHANGED
@@ -8225,11 +8225,32 @@ var DataSummary = function (_a) {
8225
8225
  }) })] }) }));
8226
8226
  };
8227
8227
 
8228
- var Container$o = styled.div(templateObject_1$G || (templateObject_1$G = __makeTemplateObject$1(["\n padding: 7px 10px;\n background-color: ", ";\n box-shadow: 0 2px 0 ", ";\n border: 1px solid ", ";\n border-radius: 4px;\n box-sizing: border-box;\n text-decoration: none;\n\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n font-style: normal;\n color: ", ";\n"], ["\n padding: 7px 10px;\n background-color: ", ";\n box-shadow: 0 2px 0 ", ";\n border: 1px solid ", ";\n border-radius: 4px;\n box-sizing: border-box;\n text-decoration: none;\n\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n font-style: normal;\n color: ", ";\n"])), theme.colors.lightGray.base, theme.colors.lightGray.darker, theme.colors.lightGray.darker, theme.fonts.paragraph, theme.subheading.small.fontSize, theme.subheading.small.fontWeight, theme.colors.darkGray.light);
8228
+ var Container$o = styled.div(templateObject_1$G || (templateObject_1$G = __makeTemplateObject$1(["\n padding: 7px 10px;\n background-color: ", ";\n box-shadow: ", ";\n border: 1px solid;\n border-color: ", ";\n border-radius: 4px;\n box-sizing: border-box;\n text-decoration: none;\n\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n font-style: normal;\n color: ", ";\n"], ["\n padding: 7px 10px;\n background-color: ", ";\n box-shadow: ", ";\n border: 1px solid;\n border-color: ", ";\n border-radius: 4px;\n box-sizing: border-box;\n text-decoration: none;\n\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n font-style: normal;\n color: ", ";\n"])), function (_a) {
8229
+ var color = _a.color;
8230
+ if (!color)
8231
+ return theme.colors.lightGray.base;
8232
+ return theme.colors[color].light;
8233
+ }, function (_a) {
8234
+ var color = _a.color;
8235
+ if (!color)
8236
+ return "0 2px 0 ".concat(theme.colors.lightGray.darker);
8237
+ return "0 2px 0 ".concat(theme.colors[color].dark);
8238
+ }, function (_a) {
8239
+ var color = _a.color;
8240
+ if (!color)
8241
+ return theme.colors.lightGray.darker;
8242
+ return theme.colors[color].dark;
8243
+ }, theme.fonts.paragraph, theme.subheading.small.fontSize, theme.subheading.small.fontWeight, function (_a) {
8244
+ var color = _a.color;
8245
+ if (!color)
8246
+ return theme.colors.darkGray.light;
8247
+ return theme.colors[color].darker;
8248
+ });
8229
8249
  var templateObject_1$G;
8230
8250
 
8231
- var Tag = function (props) {
8232
- return jsx$1(Container$o, { children: props.children });
8251
+ var Tag = function (_a) {
8252
+ var color = _a.color, children = _a.children;
8253
+ return jsx$1(Container$o, __assign$2({ color: color }, { children: children }));
8233
8254
  };
8234
8255
 
8235
8256
  var Container$n = styled.div(templateObject_1$F || (templateObject_1$F = __makeTemplateObject$1(["\n width: 46px;\n min-width: 46px;\n max-width: 46px;\n height: 27px;\n min-height: 27px;\n max-height: 27px;\n border-radius: 14px;\n cursor: ", ";\n position: relative;\n background-color: ", ";\n\n :after {\n content: \"\";\n width: 21px;\n height: 21px;\n border-radius: 50%;\n position: absolute;\n top: 3px;\n right: ", ";\n left: ", ";\n background-color: ", ";\n }\n\n input {\n display: none;\n }\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"], ["\n width: 46px;\n min-width: 46px;\n max-width: 46px;\n height: 27px;\n min-height: 27px;\n max-height: 27px;\n border-radius: 14px;\n cursor: ", ";\n position: relative;\n background-color: ", ";\n\n :after {\n content: \"\";\n width: 21px;\n height: 21px;\n border-radius: 50%;\n position: absolute;\n top: 3px;\n right: ", ";\n left: ", ";\n background-color: ", ";\n }\n\n input {\n display: none;\n }\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"])), function (_a) {