@citygross/components 0.7.52 → 0.7.53

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,6 @@
1
+ import React from 'react';
2
+ export declare type TWarningLabel = {
3
+ children: React.ReactNode;
4
+ background: string;
5
+ };
6
+ export declare function WarningLabel({ children, background }: TWarningLabel): JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { Story } from '@storybook/react';
2
+ import { WarningLabel, TWarningLabel } from './WarningLabel';
3
+ declare const _default: {
4
+ component: typeof WarningLabel;
5
+ title: string;
6
+ argTypes: {
7
+ background: {
8
+ options: string[];
9
+ mapping: import("@citygross/design-tokens").Palette | never[];
10
+ control: {
11
+ type: string;
12
+ };
13
+ };
14
+ };
15
+ };
16
+ export default _default;
17
+ export declare const Default: Story<TWarningLabel>;
18
+ export declare const withIcon: Story<TWarningLabel>;
@@ -0,0 +1,4 @@
1
+ export declare type TSlotReservationIndicator = {
2
+ background?: string;
3
+ };
4
+ export declare const SlotReservationIndicator: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TSlotReservationIndicator, never>;
@@ -55,3 +55,4 @@ export * from './components/Pagination/Pagination';
55
55
  export * from './containers/PageContainer/PageContainer';
56
56
  export * from './containers/TwoColumnsContainer/TwoColumnsPageContainer';
57
57
  export * from './components/UnorderedList';
58
+ export * from './components/WarningLabel/WarningLabel';
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var WarningLabel_styles = require('./WarningLabel.styles.js');
7
+
8
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
+
10
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
11
+
12
+ function WarningLabel(_a) {
13
+ var children = _a.children, background = _a.background;
14
+ return (React__default['default'].createElement(WarningLabel_styles.SlotReservationIndicator, { background: background }, children));
15
+ }
16
+
17
+ exports.WarningLabel = WarningLabel;
18
+ //# sourceMappingURL=WarningLabel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _tslib = require('../../../../_virtual/_tslib.js');
6
+ var styled = require('styled-components');
7
+
8
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
+
10
+ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
+
12
+ var SlotReservationIndicator = styled__default['default'].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n padding: ", "px\n ", "px;\n background-color: ", ";\n border-radius: ", "px;\n display: inline-block;\n"], ["\n padding: ", "px\n ", "px;\n background-color: ", ";\n border-radius: ", "px;\n display: inline-block;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { return props.background; }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.big; });
13
+ var templateObject_1;
14
+
15
+ exports.SlotReservationIndicator = SlotReservationIndicator;
16
+ //# sourceMappingURL=WarningLabel.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WarningLabel.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
@@ -60,6 +60,7 @@ var Pagination = require('./components/Pagination/Pagination.js');
60
60
  var PageContainer = require('./containers/PageContainer/PageContainer.js');
61
61
  var TwoColumnsPageContainer = require('./containers/TwoColumnsContainer/TwoColumnsPageContainer.js');
62
62
  var UnorderedList_styles = require('./components/UnorderedList/UnorderedList.styles.js');
63
+ var WarningLabel = require('./components/WarningLabel/WarningLabel.js');
63
64
 
64
65
 
65
66
 
@@ -156,4 +157,5 @@ exports.PageContainer = PageContainer.PageContainer;
156
157
  exports.TwoColumnsPageContainer = TwoColumnsPageContainer.TwoColumnsPageContainer;
157
158
  exports.UnorderedList = UnorderedList_styles.UnorderedList;
158
159
  exports.UnorderedListItem = UnorderedList_styles.UnorderedListItem;
160
+ exports.WarningLabel = WarningLabel.WarningLabel;
159
161
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { SlotReservationIndicator } from './WarningLabel.styles.js';
3
+
4
+ function WarningLabel(_a) {
5
+ var children = _a.children, background = _a.background;
6
+ return (React.createElement(SlotReservationIndicator, { background: background }, children));
7
+ }
8
+
9
+ export { WarningLabel };
10
+ //# sourceMappingURL=WarningLabel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
+ import styled from 'styled-components';
3
+
4
+ var SlotReservationIndicator = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: ", "px\n ", "px;\n background-color: ", ";\n border-radius: ", "px;\n display: inline-block;\n"], ["\n padding: ", "px\n ", "px;\n background-color: ", ";\n border-radius: ", "px;\n display: inline-block;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { return props.background; }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.big; });
5
+ var templateObject_1;
6
+
7
+ export { SlotReservationIndicator };
8
+ //# sourceMappingURL=WarningLabel.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WarningLabel.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -56,4 +56,5 @@ export { Pagination } from './components/Pagination/Pagination.js';
56
56
  export { PageContainer } from './containers/PageContainer/PageContainer.js';
57
57
  export { TwoColumnsPageContainer } from './containers/TwoColumnsContainer/TwoColumnsPageContainer.js';
58
58
  export { UnorderedList, UnorderedListItem } from './components/UnorderedList/UnorderedList.styles.js';
59
+ export { WarningLabel } from './components/WarningLabel/WarningLabel.js';
59
60
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components",
3
- "version": "0.7.52",
3
+ "version": "0.7.53",
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": "ff26832cb83c559d5240315b558a5ddb4812e7f9"
74
+ "gitHead": "05f6ba824fc04a95a5410e8352208903ef61dd86"
75
75
  }