@citygross/components 0.7.34 → 0.7.35

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.
@@ -0,0 +1,8 @@
1
+ export declare type TBackButton = {
2
+ label?: string;
3
+ icon?: JSX.Element;
4
+ color?: string;
5
+ onClick?: () => void;
6
+ children?: JSX.Element;
7
+ };
8
+ export declare function BackButton({ label, color, icon, onClick, children }: TBackButton): JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { Story } from '@storybook/react';
2
+ import { TBackButton, BackButton } from './BackButton';
3
+ declare const _default: {
4
+ component: typeof BackButton;
5
+ title: string;
6
+ argTypes: {
7
+ color: {
8
+ options: string[];
9
+ mapping: import("@citygross/design-tokens").Palette | never[];
10
+ control: {
11
+ type: string;
12
+ };
13
+ };
14
+ icon: {
15
+ control: boolean;
16
+ };
17
+ };
18
+ };
19
+ export default _default;
20
+ export declare const Default: Story<TBackButton>;
@@ -0,0 +1,2 @@
1
+ export declare const BackButtonFlex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const BackText: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -13,7 +13,7 @@ var Table = styled__default['default'].table(templateObject_1 || (templateObject
13
13
  var Thead = styled__default['default'].thead(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n border-bottom: 1px solid\n ", ";\n"], ["\n border-bottom: 1px solid\n ", ";\n"])), function (props) { var _a; return props.borderColor || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light); });
14
14
  var Th = styled__default['default'].th(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n position: relative;\n padding: ", ";\n font-size: ", "px;\n font-weight: ", ";\n text-align: left;\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n"], ["\n position: relative;\n padding: ", ";\n font-size: ", "px;\n font-weight: ", ";\n text-align: left;\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n"])), function (props) { var _a, _b; return ((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.tableHeaderVerticalPadding) + "px " + ((_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.tableRowHorizontalPadding) + "px"; }, function (props) { var _a; return props.fontSize || ((_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3); }, function (props) { var _a; return props.weight || ((_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.regular); });
15
15
  var Tr = styled__default['default'].tr(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n"], ["\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n"])), function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lightest; });
16
- var Td = styled__default['default'].td(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n padding: ", ";\n font-size: ", ";\n text-align: left;\n border-bottom: 1px solid\n ", ";\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n text-decoration: ", ";\n color: ", ";\n"], ["\n padding: ", ";\n font-size: ", ";\n text-align: left;\n border-bottom: 1px solid\n ", ";\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n text-decoration: ", ";\n color: ", ";\n"])), function (props) { var _a, _b; return ((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.tableRowVerticalPadding) + "px " + ((_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.tableRowHorizontalPadding) + "px"; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; }, function (props) { var _a; return props.borderColor || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light); }, function (props) { return (props.strikeThrough ? 'line-through' : 'none'); }, function (props) {
16
+ var Td = styled__default['default'].td(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n padding: ", ";\n font-size: ", "px;\n text-align: left;\n border-bottom: 1px solid\n ", ";\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n text-decoration: ", ";\n color: ", ";\n"], ["\n padding: ", ";\n font-size: ", "px;\n text-align: left;\n border-bottom: 1px solid\n ", ";\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n text-decoration: ", ";\n color: ", ";\n"])), function (props) { var _a, _b; return ((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.tableRowVerticalPadding) + "px " + ((_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.tableRowHorizontalPadding) + "px"; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; }, function (props) { var _a; return props.borderColor || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light); }, function (props) { return (props.strikeThrough ? 'line-through' : 'none'); }, function (props) {
17
17
  var _a, _b;
18
18
  return props.strikeThrough
19
19
  ? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.dark
@@ -5,7 +5,7 @@ var Table = styled.table(templateObject_1 || (templateObject_1 = __makeTemplateO
5
5
  var Thead = styled.thead(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-bottom: 1px solid\n ", ";\n"], ["\n border-bottom: 1px solid\n ", ";\n"])), function (props) { var _a; return props.borderColor || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light); });
6
6
  var Th = styled.th(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n padding: ", ";\n font-size: ", "px;\n font-weight: ", ";\n text-align: left;\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n"], ["\n position: relative;\n padding: ", ";\n font-size: ", "px;\n font-weight: ", ";\n text-align: left;\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n"])), function (props) { var _a, _b; return ((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.tableHeaderVerticalPadding) + "px " + ((_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.tableRowHorizontalPadding) + "px"; }, function (props) { var _a; return props.fontSize || ((_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3); }, function (props) { var _a; return props.weight || ((_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.regular); });
7
7
  var Tr = styled.tr(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n"], ["\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n"])), function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lightest; });
8
- var Td = styled.td(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n padding: ", ";\n font-size: ", ";\n text-align: left;\n border-bottom: 1px solid\n ", ";\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n text-decoration: ", ";\n color: ", ";\n"], ["\n padding: ", ";\n font-size: ", ";\n text-align: left;\n border-bottom: 1px solid\n ", ";\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n text-decoration: ", ";\n color: ", ";\n"])), function (props) { var _a, _b; return ((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.tableRowVerticalPadding) + "px " + ((_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.tableRowHorizontalPadding) + "px"; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; }, function (props) { var _a; return props.borderColor || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light); }, function (props) { return (props.strikeThrough ? 'line-through' : 'none'); }, function (props) {
8
+ var Td = styled.td(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n padding: ", ";\n font-size: ", "px;\n text-align: left;\n border-bottom: 1px solid\n ", ";\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n text-decoration: ", ";\n color: ", ";\n"], ["\n padding: ", ";\n font-size: ", "px;\n text-align: left;\n border-bottom: 1px solid\n ", ";\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n text-decoration: ", ";\n color: ", ";\n"])), function (props) { var _a, _b; return ((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.tableRowVerticalPadding) + "px " + ((_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.tableRowHorizontalPadding) + "px"; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; }, function (props) { var _a; return props.borderColor || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light); }, function (props) { return (props.strikeThrough ? 'line-through' : 'none'); }, function (props) {
9
9
  var _a, _b;
10
10
  return props.strikeThrough
11
11
  ? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.dark
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components",
3
- "version": "0.7.34",
3
+ "version": "0.7.35",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "./build/cjs/components/src/index.js",
@@ -71,5 +71,5 @@
71
71
  "moment": "^2.29.1",
72
72
  "react-loading-skeleton": "^2.2.0"
73
73
  },
74
- "gitHead": "cf3ee888ce3fb9ce2631bc5c5106f70c15ba5558"
74
+ "gitHead": "9ea301b2402ec9d90eb2fcf8f9abaca8dfe8c90b"
75
75
  }