@pingux/astro 1.23.0 → 1.24.0-alpha.2

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.
@@ -14,8 +14,6 @@ var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable
14
14
 
15
15
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
16
16
 
17
- var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
18
-
19
17
  var _react = _interopRequireDefault(require("react"));
20
18
 
21
19
  var _CreateIcon = _interopRequireDefault(require("mdi-react/CreateIcon"));
@@ -35,28 +33,6 @@ var _default = {
35
33
  };
36
34
  exports["default"] = _default;
37
35
 
38
- var BracketSVG = function BracketSVG(props) {
39
- return (0, _react2.jsx)("svg", (0, _extends2["default"])({
40
- xmlns: "http://www.w3.org/2000/svg",
41
- version: "1.1"
42
- }, props), (0, _react2.jsx)("title", null, "bracket-fill"), (0, _react2.jsx)("g", null, (0, _react2.jsx)("title", null, "Layer 1"), (0, _react2.jsx)("path", {
43
- fillRule: "nonzero",
44
- fill: "#CACED3",
45
- id: "Path",
46
- d: "m6, ".concat(props.height - 18, ".89712l0,10c0,2.1422 1.68397,3.89108 3.80036,3.9951l0.19964,0.0049l5,0l0,1l-5,0c-2.76142,0 -5,-2.23858 -5,-5l0,-10l1,0z")
47
- }), (0, _react2.jsx)("line", {
48
- strokeLinecap: "undefined",
49
- strokeLinejoin: "undefined",
50
- id: "svg_1",
51
- y2: "0",
52
- x2: "5.50861",
53
- y1: "".concat(props.height - 17),
54
- x1: "5.50861",
55
- stroke: "#caced3",
56
- fill: "none"
57
- })));
58
- };
59
-
60
36
  var Default = function Default() {
61
37
  var customChipStyles = {
62
38
  '& > span': {
@@ -152,13 +128,7 @@ var Default = function Default() {
152
128
  return (0, _react2.jsx)(_index.Box, {
153
129
  isRow: true,
154
130
  key: item.key
155
- }, (0, _react2.jsx)(_index.Box, {
156
- mt: "-10px",
157
- mr: "-3px"
158
- }, (0, _react2.jsx)(BracketSVG, {
159
- width: "15",
160
- height: "40"
161
- })), (0, _react2.jsx)(_index.Box, {
131
+ }, (0, _react2.jsx)(_index.Bracket, null), (0, _react2.jsx)(_index.Box, {
162
132
  ml: "3px",
163
133
  width: "100%"
164
134
  }, (0, _react2.jsx)(_index.Box, {
@@ -186,13 +156,9 @@ var Default = function Default() {
186
156
  }), (0, _react2.jsx)(_index.Text, null, item.field3))));
187
157
  }), (0, _react2.jsx)(_index.Box, {
188
158
  isRow: true
189
- }, (0, _react2.jsx)(_index.Box, {
190
- mt: "-10px",
191
- mr: "-3px"
192
- }, (0, _react2.jsx)(BracketSVG, {
193
- width: "15",
194
- height: "80"
195
- })), (0, _react2.jsx)(_index.Box, {
159
+ }, (0, _react2.jsx)(_index.Bracket, {
160
+ isLast: true
161
+ }), (0, _react2.jsx)(_index.Box, {
196
162
  variant: "forms.input.container",
197
163
  borderRadius: "4px",
198
164
  p: "sm",
@@ -209,18 +175,14 @@ var Default = function Default() {
209
175
  alignSelf: "center"
210
176
  }), (0, _react2.jsx)(_index.Text, null, " of the conditions are true")), (0, _react2.jsx)(_index.Box, {
211
177
  ml: "sm"
212
- }, (0, _map["default"])(anyConditions).call(anyConditions, function (item) {
178
+ }, (0, _map["default"])(anyConditions).call(anyConditions, function (item, index) {
213
179
  return (0, _react2.jsx)(_index.Box, {
214
180
  isRow: true,
215
- mt: "md",
216
181
  key: item.key
217
- }, (0, _react2.jsx)(_index.Box, {
218
- mt: "-25px",
219
- mr: "-3px"
220
- }, (0, _react2.jsx)(BracketSVG, {
221
- width: "15",
222
- height: "40"
223
- })), (0, _react2.jsx)(_index.Box, {
182
+ }, (0, _react2.jsx)(_index.Bracket, {
183
+ isLast: index === anyConditions.length - 1
184
+ }), (0, _react2.jsx)(_index.Box, {
185
+ mt: "md",
224
186
  variant: "forms.input.container",
225
187
  bg: "white",
226
188
  isRow: true,
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
6
+
7
+ _Object$defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+
11
+ exports["default"] = exports.ContainerSizes = void 0;
12
+
13
+ var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
14
+
15
+ var _react = _interopRequireDefault(require("react"));
16
+
17
+ var _index = require("../index");
18
+
19
+ var _react2 = require("@emotion/react");
20
+
21
+ var _default = {
22
+ title: 'Design/Container Sizes'
23
+ };
24
+ exports["default"] = _default;
25
+ var containerArray = [{
26
+ key: 'xs',
27
+ size: 'container.xs',
28
+ bg: 'black',
29
+ codeString: '<Box size="container.xs" />',
30
+ widthString: '400px width'
31
+ }, {
32
+ key: 'sm',
33
+ size: 'container.sm',
34
+ bg: 'neutral.10',
35
+ codeString: '<Box size="container.sm" />',
36
+ widthString: '550px width'
37
+ }, {
38
+ key: 'md',
39
+ size: 'container.md',
40
+ bg: 'neutral.20',
41
+ codeString: '<Box size="container.md" />',
42
+ widthString: '800px width'
43
+ }, {
44
+ key: 'lg',
45
+ size: 'container.lg',
46
+ bg: 'neutral.30',
47
+ codeString: '<Box size="container.lg" />',
48
+ widthString: '1200px width'
49
+ }, {
50
+ key: 'full',
51
+ size: 'container.full',
52
+ bg: 'neutral.40',
53
+ codeString: '<Box size="container.full" />',
54
+ widthString: '100% width'
55
+ }];
56
+
57
+ var Container = function Container(props) {
58
+ var bg = props.bg,
59
+ codeString = props.codeString,
60
+ size = props.size,
61
+ widthString = props.widthString;
62
+ return (0, _react2.jsx)(_index.Box, {
63
+ size: size,
64
+ maxHeight: "250px",
65
+ bg: bg,
66
+ p: "md"
67
+ }, (0, _react2.jsx)(_index.Text, {
68
+ color: "white",
69
+ fontWeight: 1,
70
+ fontSize: "xx"
71
+ }, size), (0, _react2.jsx)(_index.Text, {
72
+ color: "white",
73
+ fontWeight: 0,
74
+ fontSize: "lg"
75
+ }, widthString), (0, _react2.jsx)("br", null), (0, _react2.jsx)(_index.Text, {
76
+ color: "white",
77
+ fontWeight: 0,
78
+ fontSize: "lg"
79
+ }, codeString));
80
+ };
81
+
82
+ var ContainerSizes = function ContainerSizes() {
83
+ return (0, _react2.jsx)(_index.Box, {
84
+ height: "1250px",
85
+ width: "1600px"
86
+ }, (0, _react2.jsx)(_index.Text, {
87
+ fontSize: "lg",
88
+ fontWeight: "0",
89
+ width: "800px"
90
+ }, "For cards, panels, and popup modals, these are our standard widths. They should be max widths, and these elements should shrink based on the amount of space available. (Popup modals should never be LG or Full, and probably never MD as well.)"), (0, _react2.jsx)("br", null), (0, _map["default"])(containerArray).call(containerArray, function (item) {
91
+ return (0, _react2.jsx)(Container, item);
92
+ }));
93
+ };
94
+
95
+ exports.ContainerSizes = ContainerSizes;
@@ -356,8 +356,14 @@ var floatLabelWrapper = {
356
356
  left: '3px',
357
357
  zIndex: 2
358
358
  };
359
+ var bracketBase = {
360
+ width: '15px',
361
+ pl: '5px',
362
+ position: 'relative'
363
+ };
359
364
  var _default = {
360
365
  base: base,
366
+ bracketBase: bracketBase,
361
367
  card: card,
362
368
  chip: chip,
363
369
  countChip: countChip,
@@ -0,0 +1,88 @@
1
+ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
2
+ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
3
+ var _excluded = ["isLast", "color"];
4
+ import React, { forwardRef, useRef, useImperativeHandle } from 'react';
5
+ import PropTypes from 'prop-types';
6
+ import { Box } from '../../index';
7
+ import { line } from '../../styles/colors';
8
+ import { jsx as ___EmotionJSX } from "@emotion/react";
9
+ var Bracket = /*#__PURE__*/forwardRef(function (props, ref) {
10
+ var isLast = props.isLast,
11
+ color = props.color,
12
+ others = _objectWithoutProperties(props, _excluded);
13
+
14
+ var bracketRef = useRef();
15
+ /* istanbul ignore next */
16
+
17
+ useImperativeHandle(ref, function () {
18
+ return bracketRef.current;
19
+ });
20
+ return ___EmotionJSX(Box, _extends({
21
+ variant: "boxes.bracketBase"
22
+ }, others), !isLast && ___EmotionJSX(Box, {
23
+ width: 15,
24
+ sx: {
25
+ position: 'absolute',
26
+ top: 0,
27
+ bottom: 0
28
+ }
29
+ }, ___EmotionJSX("svg", {
30
+ xmlns: "http://www.w3.org/2000/svg",
31
+ version: "1.1",
32
+ preserveAspectRatio: "none",
33
+ viewBox: "0 0 10 10",
34
+ style: {
35
+ flexGrow: 1
36
+ },
37
+ "data-testid": "isLastLayer"
38
+ }, ___EmotionJSX("title", null, "bracket-fill"), ___EmotionJSX("g", null, ___EmotionJSX("title", null, "Layer 3"), ___EmotionJSX("line", {
39
+ strokeLinecap: "undefined",
40
+ strokeLinejoin: "undefined",
41
+ y2: "0",
42
+ x2: "0",
43
+ y1: "10",
44
+ x1: "0",
45
+ stroke: color,
46
+ fill: "none"
47
+ })))), ___EmotionJSX(Box, {
48
+ flexBasis: "50%"
49
+ }, ___EmotionJSX("svg", {
50
+ xmlns: "http://www.w3.org/2000/svg",
51
+ version: "1.1",
52
+ preserveAspectRatio: "none",
53
+ viewBox: "0 0 10 10",
54
+ style: {
55
+ flexGrow: 1
56
+ }
57
+ }, ___EmotionJSX("title", null, "bracket-fill"), ___EmotionJSX("g", null, ___EmotionJSX("title", null, "Layer 1"), ___EmotionJSX("line", {
58
+ strokeLinecap: "undefined",
59
+ strokeLinejoin: "undefined",
60
+ y2: "0",
61
+ x2: "0",
62
+ y1: "10",
63
+ x1: "0",
64
+ stroke: color,
65
+ fill: "none"
66
+ }))), ___EmotionJSX("svg", {
67
+ xmlns: "http://www.w3.org/2000/svg",
68
+ version: "1.1",
69
+ height: "15"
70
+ }, ___EmotionJSX("title", null, "bracket-fill"), ___EmotionJSX("g", {
71
+ transform: "translate(-1, 0)"
72
+ }, ___EmotionJSX("title", null, "Layer 2"), ___EmotionJSX("path", {
73
+ fill: "none",
74
+ stroke: color,
75
+ d: "M1 0C1 2.5 1 8 1 10C1 12.5 3 14.5 5.5 14.5C7.1 14.5 9.33333 14.5 10.5 14.5"
76
+ })))));
77
+ });
78
+ Bracket.defaultProps = {
79
+ color: line.light
80
+ };
81
+ Bracket.propTypes = {
82
+ /** A prop to set the strokes color. */
83
+ color: PropTypes.string,
84
+
85
+ /** Whether or not the bracket is the last in a series of brackets. */
86
+ isLast: PropTypes.bool
87
+ };
88
+ export default Bracket;
@@ -0,0 +1,70 @@
1
+ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
2
+ import React from 'react';
3
+ import { Box, Bracket, Chip, Text } from '../../index';
4
+ import { jsx as ___EmotionJSX } from "@emotion/react";
5
+ export default {
6
+ title: 'Bracket',
7
+ component: Bracket
8
+ };
9
+ export var Default = function Default() {
10
+ var anyConditions = [{
11
+ field1: 'Group',
12
+ field3: 'Marketing',
13
+ key: 'Group1Field'
14
+ }, {
15
+ field1: 'Group',
16
+ field3: 'UX Team',
17
+ key: 'Group2Field'
18
+ }];
19
+ var customChipStyles = {
20
+ '& > span': {
21
+ textTransform: 'none',
22
+ fontWeight: '500'
23
+ },
24
+ minWidth: '65px',
25
+ 'z-index': '1'
26
+ };
27
+ return ___EmotionJSX(Box, {
28
+ p: "md",
29
+ ml: "sm",
30
+ bg: "background"
31
+ }, ___EmotionJSX(Box, {
32
+ isRow: true
33
+ }, ___EmotionJSX(Chip, {
34
+ label: "Any",
35
+ bg: "neutral.20",
36
+ mr: "sm",
37
+ sx: customChipStyles,
38
+ alignSelf: "center"
39
+ }), ___EmotionJSX(Text, null, " of the conditions are true")), _mapInstanceProperty(anyConditions).call(anyConditions, function (item, index) {
40
+ return ___EmotionJSX(Box, {
41
+ isRow: true,
42
+ key: item.key
43
+ }, ___EmotionJSX(Bracket, {
44
+ isLast: index === anyConditions.length - 1
45
+ }), ___EmotionJSX(Box, {
46
+ mt: "md",
47
+ variant: "forms.input.container",
48
+ bg: "white",
49
+ isRow: true,
50
+ alignItems: "center",
51
+ borderRadius: "4px",
52
+ width: "100%",
53
+ sx: {
54
+ '&::after': {
55
+ bg: 'decorative.4'
56
+ }
57
+ }
58
+ }, ___EmotionJSX(Text, {
59
+ pl: "md",
60
+ pr: "sm"
61
+ }, item.field1), ___EmotionJSX(Chip, {
62
+ label: "Equals",
63
+ bg: "accent.90",
64
+ textColor: "neutral.10",
65
+ sx: customChipStyles,
66
+ mr: "sm",
67
+ alignSelf: "center"
68
+ }), ___EmotionJSX(Text, null, item.field3)));
69
+ }));
70
+ };
@@ -0,0 +1,35 @@
1
+ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
2
+ import React from 'react';
3
+ import { render, screen } from '@testing-library/react';
4
+ import Bracket from '.';
5
+ import axeTest from '../../utils/testUtils/testAxe';
6
+ import { jsx as ___EmotionJSX } from "@emotion/react";
7
+ var testId = 'test-bracket';
8
+ var defaultProps = {
9
+ 'data-testid': testId
10
+ };
11
+
12
+ var getComponent = function getComponent() {
13
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14
+ return render(___EmotionJSX(Bracket, _extends({}, defaultProps, props)));
15
+ }; // // Need to be added to each test file to test accessibility using axe.
16
+
17
+
18
+ axeTest(getComponent);
19
+ test('default bracket', function () {
20
+ getComponent();
21
+ var bracket = screen.getByTestId(testId);
22
+ expect(bracket).toBeInTheDocument();
23
+ });
24
+ test('additional svg does not render if isLast=true', function () {
25
+ getComponent({
26
+ isLast: true
27
+ });
28
+ expect(screen.queryByTestId('isLastLayer')).not.toBeInTheDocument();
29
+ });
30
+ test('additional svg does render if isLast=false', function () {
31
+ getComponent({
32
+ isLast: false
33
+ });
34
+ expect(screen.queryByTestId('isLastLayer')).toBeInTheDocument();
35
+ });
@@ -0,0 +1 @@
1
+ export { default } from './Bracket';
@@ -68,7 +68,6 @@ var Breadcrumbs = /*#__PURE__*/forwardRef(function (props, ref) {
68
68
  ref: breadcrumbsRef,
69
69
  isRow: true,
70
70
  sx: {
71
- overflow: 'auto',
72
71
  paddingInlineStart: 'unset'
73
72
  },
74
73
  as: "ol"
@@ -157,15 +157,15 @@ export var ControlledWithButton = function ControlledWithButton(args) {
157
157
  };
158
158
  export var WithCustomColorsAndIcons = function WithCustomColorsAndIcons(args) {
159
159
  return ___EmotionJSX(Messages, args, ___EmotionJSX(Item, {
160
- bg: "neutral.90",
160
+ bg: "accent.99",
161
161
  color: "active",
162
162
  icon: AccountIcon
163
163
  }, "We have to take a look with this camera."), ___EmotionJSX(Item, {
164
- bg: "neutral.90",
164
+ bg: "accent.99",
165
165
  color: "active",
166
166
  icon: AccountIcon
167
167
  }, "Who said that? SURE you can die! You want to die?! Oh yeah, good luck with that. Stop! Do not shoot fire stick in space canoe! Cause explosive decompression!"), ___EmotionJSX(Item, {
168
- bg: "neutral.90",
168
+ bg: "accent.99",
169
169
  color: "active",
170
170
  icon: AccountIcon
171
171
  }, "Oh God, what have I done?"));
package/lib/index.js CHANGED
@@ -17,6 +17,8 @@ export { default as Avatar } from './components/Avatar';
17
17
  export * from './components/Avatar';
18
18
  export { default as Box } from './components/Box';
19
19
  export * from './components/Box';
20
+ export { default as Bracket } from './components/Bracket';
21
+ export * from './components/Bracket';
20
22
  export { default as Breadcrumbs } from './components/Breadcrumbs';
21
23
  export * from './components/Breadcrumbs';
22
24
  export { default as Button } from './components/Button';
@@ -1,39 +1,15 @@
1
1
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
2
2
  import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
3
- import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
4
3
  import React from 'react';
5
4
  import CreateIcon from 'mdi-react/CreateIcon';
6
5
  import DragVerticalIcon from 'mdi-react/DragVerticalIcon';
7
6
  import TrashIcon from 'mdi-react/TrashIcon';
8
- import { Box, Button, Chip, IconButton, Icon, Item, OverlayProvider, RockerButtonGroup, RockerButton, SelectField, Text, TextField } from '../index';
7
+ import { Box, Bracket, Button, Chip, IconButton, Icon, Item, OverlayProvider, RockerButtonGroup, RockerButton, SelectField, Text, TextField } from '../index';
9
8
  import OverlayPanel from '../components/OverlayPanel';
10
9
  import { jsx as ___EmotionJSX } from "@emotion/react";
11
10
  export default {
12
11
  title: 'Recipes/ConditionalFilter'
13
12
  };
14
-
15
- var BracketSVG = function BracketSVG(props) {
16
- return ___EmotionJSX("svg", _extends({
17
- xmlns: "http://www.w3.org/2000/svg",
18
- version: "1.1"
19
- }, props), ___EmotionJSX("title", null, "bracket-fill"), ___EmotionJSX("g", null, ___EmotionJSX("title", null, "Layer 1"), ___EmotionJSX("path", {
20
- fillRule: "nonzero",
21
- fill: "#CACED3",
22
- id: "Path",
23
- d: "m6, ".concat(props.height - 18, ".89712l0,10c0,2.1422 1.68397,3.89108 3.80036,3.9951l0.19964,0.0049l5,0l0,1l-5,0c-2.76142,0 -5,-2.23858 -5,-5l0,-10l1,0z")
24
- }), ___EmotionJSX("line", {
25
- strokeLinecap: "undefined",
26
- strokeLinejoin: "undefined",
27
- id: "svg_1",
28
- y2: "0",
29
- x2: "5.50861",
30
- y1: "".concat(props.height - 17),
31
- x1: "5.50861",
32
- stroke: "#caced3",
33
- fill: "none"
34
- })));
35
- };
36
-
37
13
  export var Default = function Default() {
38
14
  var customChipStyles = {
39
15
  '& > span': {
@@ -130,13 +106,7 @@ export var Default = function Default() {
130
106
  return ___EmotionJSX(Box, {
131
107
  isRow: true,
132
108
  key: item.key
133
- }, ___EmotionJSX(Box, {
134
- mt: "-10px",
135
- mr: "-3px"
136
- }, ___EmotionJSX(BracketSVG, {
137
- width: "15",
138
- height: "40"
139
- })), ___EmotionJSX(Box, {
109
+ }, ___EmotionJSX(Bracket, null), ___EmotionJSX(Box, {
140
110
  ml: "3px",
141
111
  width: "100%"
142
112
  }, ___EmotionJSX(Box, {
@@ -164,13 +134,9 @@ export var Default = function Default() {
164
134
  }), ___EmotionJSX(Text, null, item.field3))));
165
135
  }), ___EmotionJSX(Box, {
166
136
  isRow: true
167
- }, ___EmotionJSX(Box, {
168
- mt: "-10px",
169
- mr: "-3px"
170
- }, ___EmotionJSX(BracketSVG, {
171
- width: "15",
172
- height: "80"
173
- })), ___EmotionJSX(Box, {
137
+ }, ___EmotionJSX(Bracket, {
138
+ isLast: true
139
+ }), ___EmotionJSX(Box, {
174
140
  variant: "forms.input.container",
175
141
  borderRadius: "4px",
176
142
  p: "sm",
@@ -187,18 +153,14 @@ export var Default = function Default() {
187
153
  alignSelf: "center"
188
154
  }), ___EmotionJSX(Text, null, " of the conditions are true")), ___EmotionJSX(Box, {
189
155
  ml: "sm"
190
- }, _mapInstanceProperty(anyConditions).call(anyConditions, function (item) {
156
+ }, _mapInstanceProperty(anyConditions).call(anyConditions, function (item, index) {
191
157
  return ___EmotionJSX(Box, {
192
158
  isRow: true,
193
- mt: "md",
194
159
  key: item.key
195
- }, ___EmotionJSX(Box, {
196
- mt: "-25px",
197
- mr: "-3px"
198
- }, ___EmotionJSX(BracketSVG, {
199
- width: "15",
200
- height: "40"
201
- })), ___EmotionJSX(Box, {
160
+ }, ___EmotionJSX(Bracket, {
161
+ isLast: index === anyConditions.length - 1
162
+ }), ___EmotionJSX(Box, {
163
+ mt: "md",
202
164
  variant: "forms.input.container",
203
165
  bg: "white",
204
166
  isRow: true,
@@ -0,0 +1,76 @@
1
+ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
2
+ import React from 'react';
3
+ import { Box, Text } from '../index';
4
+ import { jsx as ___EmotionJSX } from "@emotion/react";
5
+ export default {
6
+ title: 'Design/Container Sizes'
7
+ };
8
+ var containerArray = [{
9
+ key: 'xs',
10
+ size: 'container.xs',
11
+ bg: 'black',
12
+ codeString: '<Box size="container.xs" />',
13
+ widthString: '400px width'
14
+ }, {
15
+ key: 'sm',
16
+ size: 'container.sm',
17
+ bg: 'neutral.10',
18
+ codeString: '<Box size="container.sm" />',
19
+ widthString: '550px width'
20
+ }, {
21
+ key: 'md',
22
+ size: 'container.md',
23
+ bg: 'neutral.20',
24
+ codeString: '<Box size="container.md" />',
25
+ widthString: '800px width'
26
+ }, {
27
+ key: 'lg',
28
+ size: 'container.lg',
29
+ bg: 'neutral.30',
30
+ codeString: '<Box size="container.lg" />',
31
+ widthString: '1200px width'
32
+ }, {
33
+ key: 'full',
34
+ size: 'container.full',
35
+ bg: 'neutral.40',
36
+ codeString: '<Box size="container.full" />',
37
+ widthString: '100% width'
38
+ }];
39
+
40
+ var Container = function Container(props) {
41
+ var bg = props.bg,
42
+ codeString = props.codeString,
43
+ size = props.size,
44
+ widthString = props.widthString;
45
+ return ___EmotionJSX(Box, {
46
+ size: size,
47
+ maxHeight: "250px",
48
+ bg: bg,
49
+ p: "md"
50
+ }, ___EmotionJSX(Text, {
51
+ color: "white",
52
+ fontWeight: 1,
53
+ fontSize: "xx"
54
+ }, size), ___EmotionJSX(Text, {
55
+ color: "white",
56
+ fontWeight: 0,
57
+ fontSize: "lg"
58
+ }, widthString), ___EmotionJSX("br", null), ___EmotionJSX(Text, {
59
+ color: "white",
60
+ fontWeight: 0,
61
+ fontSize: "lg"
62
+ }, codeString));
63
+ };
64
+
65
+ export var ContainerSizes = function ContainerSizes() {
66
+ return ___EmotionJSX(Box, {
67
+ height: "1250px",
68
+ width: "1600px"
69
+ }, ___EmotionJSX(Text, {
70
+ fontSize: "lg",
71
+ fontWeight: "0",
72
+ width: "800px"
73
+ }, "For cards, panels, and popup modals, these are our standard widths. They should be max widths, and these elements should shrink based on the amount of space available. (Popup modals should never be LG or Full, and probably never MD as well.)"), ___EmotionJSX("br", null), _mapInstanceProperty(containerArray).call(containerArray, function (item) {
74
+ return ___EmotionJSX(Container, item);
75
+ }));
76
+ };
@@ -336,8 +336,14 @@ var floatLabelWrapper = {
336
336
  left: '3px',
337
337
  zIndex: 2
338
338
  };
339
+ var bracketBase = {
340
+ width: '15px',
341
+ pl: '5px',
342
+ position: 'relative'
343
+ };
339
344
  export default {
340
345
  base: base,
346
+ bracketBase: bracketBase,
341
347
  card: card,
342
348
  chip: chip,
343
349
  countChip: countChip,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "1.23.0",
3
+ "version": "1.24.0-alpha.2",
4
4
  "description": "PingUX themeable React component library",
5
5
  "author": "ux-development@pingidentity.com",
6
6
  "license": "Apache-2.0",