@marigold/components 0.2.0 → 0.3.0
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.
- package/CHANGELOG.md +294 -0
- package/dist/ActionGroup/ActionGroup.d.ts +1 -2
- package/dist/ActionGroup/ActionGroup.stories.d.ts +5 -0
- package/dist/Alert/Alert.d.ts +10 -13
- package/dist/Alert/Alert.stories.d.ts +5 -0
- package/dist/Badge/Badge.d.ts +5 -0
- package/dist/Badge/Badge.stories.d.ts +5 -0
- package/dist/Box.d.ts +2 -0
- package/dist/Button/Button.d.ts +5 -0
- package/dist/Button/Button.stories.d.ts +5 -0
- package/dist/Card/Card.d.ts +5 -0
- package/dist/Card/Card.stories.d.ts +5 -0
- package/dist/Checkbox/Checkbox.d.ts +10 -5
- package/dist/Checkbox/Checkbox.stories.d.ts +5 -0
- package/dist/Checkbox/CheckboxIcons.d.ts +9 -9
- package/dist/Column/Column.stories.d.ts +5 -0
- package/dist/Columns/Columns.d.ts +2 -2
- package/dist/Columns/Columns.stories.d.ts +5 -0
- package/dist/Container/Container.stories.d.ts +5 -0
- package/dist/Dialog/Dialog.d.ts +5 -2
- package/dist/Dialog/Dialog.stories.d.ts +5 -0
- package/dist/Dialog/ModalDialog.d.ts +4 -1
- package/dist/Divider/Divider.d.ts +5 -0
- package/dist/Divider/Divider.stories.d.ts +5 -0
- package/dist/Field/Field.d.ts +2 -0
- package/dist/Field/Field.stories.d.ts +5 -0
- package/dist/Image/Image.d.ts +5 -0
- package/dist/Image/Image.stories.d.ts +5 -0
- package/dist/Inline/Inline.d.ts +7 -0
- package/dist/Inline/Inline.stories.d.ts +5 -0
- package/dist/Inline/index.d.ts +1 -0
- package/dist/Input/Input.d.ts +5 -0
- package/dist/Input/Input.stories.d.ts +5 -0
- package/dist/Label/Label.d.ts +12 -1
- package/dist/Label/Label.stories.d.ts +5 -0
- package/dist/Link/Link.d.ts +4 -1
- package/dist/Link/Link.stories.d.ts +5 -0
- package/dist/Menu/Menu.d.ts +3 -0
- package/dist/Menu/Menu.stories.d.ts +5 -0
- package/dist/MenuItem/MenuItem.d.ts +5 -0
- package/dist/MenuItem/MenuItem.stories.d.ts +5 -0
- package/dist/Message/Message.d.ts +5 -0
- package/dist/Message/Message.stories.d.ts +5 -0
- package/dist/Provider/MarigoldProvider.d.ts +11 -3
- package/dist/Provider/index.d.ts +1 -1
- package/dist/Radio/Radio.d.ts +6 -0
- package/dist/Radio/RadioIcons.d.ts +1 -0
- package/dist/Select/ListBox.d.ts +1 -0
- package/dist/Select/ListBoxSection.d.ts +1 -0
- package/dist/Select/Option.d.ts +1 -0
- package/dist/Select/Select.d.ts +15 -1
- package/dist/Select/Select.stories.d.ts +5 -0
- package/dist/Slider/Slider.d.ts +5 -0
- package/dist/Slider/Slider.stories.d.ts +5 -0
- package/dist/Stack/Stack.stories.d.ts +5 -0
- package/dist/Text/Text.d.ts +5 -0
- package/dist/Text/Text.stories.d.ts +5 -0
- package/dist/Textarea/Textarea.d.ts +5 -0
- package/dist/Textarea/Textarea.stories.d.ts +5 -0
- package/dist/ValidationMessage/ValidationMessage.d.ts +5 -0
- package/dist/ValidationMessage/ValidationMessage.stories.d.ts +5 -0
- package/dist/VisuallyHidden/VisuallyHidden.d.ts +1 -0
- package/dist/VisuallyHidden/VisuallyHidden.stories.d.ts +5 -0
- package/dist/VisuallyHidden/index.d.ts +1 -0
- package/dist/components.cjs.development.js +480 -496
- package/dist/components.cjs.development.js.map +1 -1
- package/dist/components.cjs.production.min.js +1 -1
- package/dist/components.cjs.production.min.js.map +1 -1
- package/dist/components.esm.js +415 -441
- package/dist/components.esm.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/theme.d.ts +23 -48
- package/package.json +4 -1
- package/src/ActionGroup/ActionGroup.stories.tsx +47 -0
- package/src/ActionGroup/ActionGroup.test.tsx +36 -36
- package/src/ActionGroup/ActionGroup.tsx +17 -28
- package/src/Alert/Alert.stories.tsx +32 -0
- package/src/Alert/Alert.test.tsx +4 -1
- package/src/Alert/Alert.tsx +18 -3
- package/src/Badge/Badge.stories.tsx +38 -0
- package/src/Badge/Badge.test.tsx +5 -1
- package/src/Badge/Badge.tsx +13 -1
- package/src/Box.ts +2 -0
- package/src/Button/{Button.stories.mdx → Button.stories.tsx} +10 -17
- package/src/Button/Button.test.tsx +34 -11
- package/src/Button/Button.tsx +17 -3
- package/src/Card/{Card.stories.mdx → Card.stories.tsx} +9 -17
- package/src/Card/Card.test.tsx +8 -3
- package/src/Card/Card.tsx +13 -1
- package/src/Checkbox/Checkbox.stories.mdx +11 -0
- package/src/Checkbox/Checkbox.stories.tsx +78 -0
- package/src/Checkbox/Checkbox.test.tsx +77 -8
- package/src/Checkbox/Checkbox.tsx +70 -90
- package/src/Checkbox/CheckboxIcons.tsx +51 -41
- package/src/Column/Column.stories.tsx +33 -0
- package/src/Columns/Columns.stories.tsx +75 -0
- package/src/Columns/Columns.test.tsx +34 -23
- package/src/Columns/Columns.tsx +30 -30
- package/src/Container/Container.stories.tsx +14 -0
- package/src/Dialog/{Dialog.stories.mdx → Dialog.stories.tsx} +33 -18
- package/src/Dialog/Dialog.test.tsx +91 -20
- package/src/Dialog/Dialog.tsx +63 -17
- package/src/Dialog/ModalDialog.tsx +33 -4
- package/src/Divider/{Divider.stories.mdx → Divider.stories.tsx} +10 -17
- package/src/Divider/Divider.test.tsx +13 -5
- package/src/Divider/Divider.tsx +12 -0
- package/src/Field/{Field.stories.mdx → Field.stories.tsx} +33 -20
- package/src/Field/Field.test.tsx +55 -5
- package/src/Field/Field.tsx +10 -8
- package/src/Image/Image.stories.tsx +34 -0
- package/src/Image/Image.test.tsx +4 -1
- package/src/Image/Image.tsx +13 -1
- package/src/Inline/Inline.stories.tsx +39 -0
- package/src/Inline/Inline.test.tsx +99 -0
- package/src/Inline/Inline.tsx +38 -0
- package/src/Inline/index.ts +1 -0
- package/src/Input/{Input.stories.mdx → Input.stories.tsx} +10 -17
- package/src/Input/Input.test.tsx +7 -3
- package/src/Input/Input.tsx +13 -1
- package/src/Label/{Label.stories.mdx → Label.stories.tsx} +10 -21
- package/src/Label/Label.test.tsx +25 -4
- package/src/Label/Label.tsx +42 -9
- package/src/Link/Link.stories.tsx +35 -0
- package/src/Link/Link.test.tsx +6 -2
- package/src/Link/Link.tsx +10 -0
- package/src/Menu/{Menu.stories.mdx → Menu.stories.tsx} +13 -32
- package/src/Menu/Menu.test.tsx +7 -2
- package/src/Menu/Menu.tsx +10 -0
- package/src/MenuItem/MenuItem.stories.tsx +30 -0
- package/src/MenuItem/MenuItem.test.tsx +7 -2
- package/src/MenuItem/MenuItem.tsx +12 -0
- package/src/Message/Message.stories.tsx +30 -0
- package/src/Message/Message.test.tsx +4 -1
- package/src/Message/Message.tsx +17 -5
- package/src/Provider/MarigoldProvider.test.tsx +65 -55
- package/src/Provider/MarigoldProvider.tsx +37 -19
- package/src/Provider/index.ts +2 -1
- package/src/Radio/Radio.stories.mdx +11 -0
- package/src/Radio/Radio.test.tsx +36 -2
- package/src/Radio/Radio.tsx +13 -2
- package/src/Radio/RadioIcons.tsx +1 -1
- package/src/Select/ListBox.tsx +1 -0
- package/src/Select/{Select.stories.mdx → Select.stories.tsx} +23 -20
- package/src/Select/Select.test.tsx +39 -1
- package/src/Select/Select.tsx +24 -13
- package/src/Slider/Slider.stories.tsx +24 -0
- package/src/Slider/Slider.test.tsx +10 -6
- package/src/Slider/Slider.tsx +25 -13
- package/src/Stack/Stack.stories.tsx +57 -0
- package/src/Stack/Stack.test.tsx +16 -7
- package/src/Text/{Text.stories.mdx → Text.stories.tsx} +20 -19
- package/src/Text/Text.test.tsx +2 -2
- package/src/Text/Text.tsx +12 -0
- package/src/Textarea/{Textarea.stories.mdx → Textarea.stories.tsx} +14 -24
- package/src/Textarea/Textarea.test.tsx +7 -3
- package/src/Textarea/Textarea.tsx +13 -1
- package/src/ValidationMessage/{ValidationMessage.stories.mdx → ValidationMessage.stories.tsx} +8 -17
- package/src/ValidationMessage/ValidationMessage.test.tsx +7 -2
- package/src/ValidationMessage/ValidationMessage.tsx +12 -0
- package/src/VisuallyHidden/VisuallyHidden.stories.tsx +19 -0
- package/src/VisuallyHidden/VisuallyHidden.test.tsx +10 -0
- package/src/VisuallyHidden/VisuallyHidden.tsx +1 -0
- package/src/VisuallyHidden/index.ts +1 -0
- package/src/index.ts +2 -2
- package/src/theme.ts +49 -48
- package/dist/Box/Box.d.ts +0 -47
- package/dist/Box/index.d.ts +0 -1
- package/dist/Heading/Heading.d.ts +0 -7
- package/dist/Heading/index.d.ts +0 -1
- package/dist/Hidden/Hidden.d.ts +0 -5
- package/dist/Hidden/index.d.ts +0 -1
- package/src/ActionGroup/ActionGroup.stories.mdx +0 -62
- package/src/Alert/Alert.stories.mdx +0 -35
- package/src/Badge/Badge.stories.mdx +0 -57
- package/src/Box/Box.stories.mdx +0 -334
- package/src/Box/Box.test.tsx +0 -133
- package/src/Box/Box.tsx +0 -165
- package/src/Box/index.ts +0 -1
- package/src/Column/Column.stories.mdx +0 -49
- package/src/Columns/Columns.stories.mdx +0 -65
- package/src/Container/Container.stories.mdx +0 -19
- package/src/Heading/Heading.stories.mdx +0 -39
- package/src/Heading/Heading.test.tsx +0 -77
- package/src/Heading/Heading.tsx +0 -19
- package/src/Heading/index.ts +0 -1
- package/src/Hidden/Hidden.stories.mdx +0 -39
- package/src/Hidden/Hidden.test.tsx +0 -24
- package/src/Hidden/Hidden.tsx +0 -16
- package/src/Hidden/index.ts +0 -1
- package/src/Image/Image.stories.mdx +0 -36
- package/src/Link/Link.stories.mdx +0 -45
- package/src/MenuItem/MenuItem.stories.mdx +0 -37
- package/src/Message/Message.stories.mdx +0 -44
- package/src/Slider/Slider.stories.mdx +0 -31
- package/src/Stack/Stack.stories.mdx +0 -51
|
@@ -8,10 +8,13 @@ var flattenChildren = _interopDefault(require('react-keyed-flatten-children'));
|
|
|
8
8
|
var system = require('@marigold/system');
|
|
9
9
|
var icons = require('@marigold/icons');
|
|
10
10
|
var button = require('@react-aria/button');
|
|
11
|
+
var focus = require('@react-aria/focus');
|
|
12
|
+
var visuallyHidden = require('@react-aria/visually-hidden');
|
|
13
|
+
var checkbox = require('@react-aria/checkbox');
|
|
14
|
+
var toggle = require('@react-stately/toggle');
|
|
11
15
|
var overlays = require('@react-stately/overlays');
|
|
12
16
|
var overlays$1 = require('@react-aria/overlays');
|
|
13
17
|
var dialog = require('@react-aria/dialog');
|
|
14
|
-
var focus = require('@react-aria/focus');
|
|
15
18
|
var link = require('@react-aria/link');
|
|
16
19
|
var ssr = require('@react-aria/ssr');
|
|
17
20
|
var select = require('@react-stately/select');
|
|
@@ -91,175 +94,128 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
|
91
94
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
92
95
|
}
|
|
93
96
|
|
|
94
|
-
var _excluded = ["
|
|
95
|
-
var
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
var _excluded = ["space", "align", "children"];
|
|
98
|
+
var ALIGNMENT = {
|
|
99
|
+
top: 'flex-start',
|
|
100
|
+
center: 'center',
|
|
101
|
+
bottom: 'flex-end'
|
|
102
|
+
};
|
|
103
|
+
var Inline = function Inline(_ref) {
|
|
104
|
+
var _ref$space = _ref.space,
|
|
105
|
+
space = _ref$space === void 0 ? 'none' : _ref$space,
|
|
106
|
+
_ref$align = _ref.align,
|
|
107
|
+
align = _ref$align === void 0 ? 'center' : _ref$align,
|
|
100
108
|
children = _ref.children,
|
|
101
|
-
className = _ref.className,
|
|
102
|
-
display = _ref.display,
|
|
103
|
-
height = _ref.height,
|
|
104
|
-
width = _ref.width,
|
|
105
|
-
minWidth = _ref.minWidth,
|
|
106
|
-
maxWidth = _ref.maxWidth,
|
|
107
|
-
position = _ref.position,
|
|
108
|
-
top = _ref.top,
|
|
109
|
-
bottom = _ref.bottom,
|
|
110
|
-
right = _ref.right,
|
|
111
|
-
left = _ref.left,
|
|
112
|
-
zIndex = _ref.zIndex,
|
|
113
|
-
p = _ref.p,
|
|
114
|
-
px = _ref.px,
|
|
115
|
-
py = _ref.py,
|
|
116
|
-
pt = _ref.pt,
|
|
117
|
-
pb = _ref.pb,
|
|
118
|
-
pl = _ref.pl,
|
|
119
|
-
pr = _ref.pr,
|
|
120
|
-
m = _ref.m,
|
|
121
|
-
mx = _ref.mx,
|
|
122
|
-
my = _ref.my,
|
|
123
|
-
mt = _ref.mt,
|
|
124
|
-
mb = _ref.mb,
|
|
125
|
-
ml = _ref.ml,
|
|
126
|
-
mr = _ref.mr,
|
|
127
|
-
flexDirection = _ref.flexDirection,
|
|
128
|
-
flexWrap = _ref.flexWrap,
|
|
129
|
-
flexShrink = _ref.flexShrink,
|
|
130
|
-
flexGrow = _ref.flexGrow,
|
|
131
|
-
alignItems = _ref.alignItems,
|
|
132
|
-
justifyContent = _ref.justifyContent,
|
|
133
|
-
bg = _ref.bg,
|
|
134
|
-
border = _ref.border,
|
|
135
|
-
borderRadius = _ref.borderRadius,
|
|
136
|
-
boxShadow = _ref.boxShadow,
|
|
137
|
-
opacity = _ref.opacity,
|
|
138
|
-
overflow = _ref.overflow,
|
|
139
|
-
transition = _ref.transition,
|
|
140
109
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
141
110
|
|
|
142
|
-
return React__default.createElement(system.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}, css),
|
|
186
|
-
className: className
|
|
187
|
-
}, props), children);
|
|
188
|
-
});
|
|
111
|
+
return React__default.createElement(system.Box, Object.assign({
|
|
112
|
+
display: "inline-flex",
|
|
113
|
+
css: {
|
|
114
|
+
'> * + *': {
|
|
115
|
+
pl: space
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
alignItems: ALIGNMENT[align]
|
|
119
|
+
}, props), React.Children.map(flattenChildren(children), function (child) {
|
|
120
|
+
return React__default.createElement(system.Box, null, React__default.cloneElement(child, {}, child.props.children));
|
|
121
|
+
}));
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
var _excluded$1 = ["space", "align", "children"];
|
|
125
|
+
var ALIGNMENT$1 = {
|
|
126
|
+
left: 'flex-start',
|
|
127
|
+
center: 'center',
|
|
128
|
+
right: 'flex-end'
|
|
129
|
+
};
|
|
130
|
+
var Stack = function Stack(_ref) {
|
|
131
|
+
var _ref$space = _ref.space,
|
|
132
|
+
space = _ref$space === void 0 ? 'none' : _ref$space,
|
|
133
|
+
_ref$align = _ref.align,
|
|
134
|
+
align = _ref$align === void 0 ? 'left' : _ref$align,
|
|
135
|
+
children = _ref.children,
|
|
136
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
137
|
+
|
|
138
|
+
return React__default.createElement(system.Box, Object.assign({}, props, {
|
|
139
|
+
display: "flex",
|
|
140
|
+
flexDirection: "column",
|
|
141
|
+
alignItems: ALIGNMENT$1[align],
|
|
142
|
+
css: {
|
|
143
|
+
'> * + *': {
|
|
144
|
+
pt: space
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}), React.Children.map(flattenChildren(children), function (child) {
|
|
148
|
+
return React__default.createElement(system.Box, null, React__default.cloneElement(child, {}, child.props.children));
|
|
149
|
+
}));
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
var _excluded$2 = ["space", "verticalAlignment", "children"];
|
|
153
|
+
// ---------------
|
|
189
154
|
|
|
190
|
-
var _excluded$1 = ["variant", "space", "verticalAlignment", "children", "className"];
|
|
191
155
|
var ActionGroup = function ActionGroup(_ref) {
|
|
192
|
-
var _ref$
|
|
193
|
-
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
194
|
-
_ref$space = _ref.space,
|
|
156
|
+
var _ref$space = _ref.space,
|
|
195
157
|
space = _ref$space === void 0 ? 'none' : _ref$space,
|
|
196
158
|
_ref$verticalAlignmen = _ref.verticalAlignment,
|
|
197
159
|
verticalAlignment = _ref$verticalAlignmen === void 0 ? false : _ref$verticalAlignmen,
|
|
198
160
|
children = _ref.children,
|
|
199
|
-
|
|
200
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
161
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
201
162
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
} : {
|
|
205
|
-
|
|
206
|
-
};
|
|
207
|
-
return React__default.createElement(Box, Object.assign({
|
|
208
|
-
variant: "actionGroup." + variant,
|
|
209
|
-
className: className
|
|
210
|
-
}, props), React.Children.map(flattenChildren(children), function (child, i) {
|
|
211
|
-
return child !== null && child !== undefined && React__default.createElement(Box, {
|
|
212
|
-
as: verticalAlignment ? 'div' : 'span',
|
|
213
|
-
css: i < React.Children.count(children) - 1 ? childStyle : undefined
|
|
214
|
-
}, child);
|
|
215
|
-
}));
|
|
163
|
+
return verticalAlignment ? React__default.createElement(Stack, Object.assign({
|
|
164
|
+
space: space
|
|
165
|
+
}, props), children) : React__default.createElement(Inline, Object.assign({
|
|
166
|
+
space: space
|
|
167
|
+
}, props), children);
|
|
216
168
|
};
|
|
217
169
|
|
|
218
|
-
var _excluded$
|
|
170
|
+
var _excluded$3 = ["variant", "children"];
|
|
219
171
|
var ICON_MAP = {
|
|
220
172
|
success: icons.Check,
|
|
221
173
|
warning: icons.Notification,
|
|
222
174
|
error: icons.Exclamation
|
|
223
|
-
};
|
|
175
|
+
}; // Component
|
|
176
|
+
// ---------------
|
|
177
|
+
|
|
224
178
|
var Alert = function Alert(_ref) {
|
|
225
179
|
var _ref$variant = _ref.variant,
|
|
226
180
|
variant = _ref$variant === void 0 ? 'success' : _ref$variant,
|
|
227
181
|
children = _ref.children,
|
|
228
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
182
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
229
183
|
|
|
230
184
|
var Icon = ICON_MAP[variant];
|
|
231
|
-
return React__default.createElement(Box, Object.assign({}, props, {
|
|
185
|
+
return React__default.createElement(system.Box, Object.assign({}, props, {
|
|
232
186
|
display: "flex",
|
|
233
|
-
variant: "
|
|
234
|
-
}), React__default.createElement(Box, {
|
|
187
|
+
variant: "alert." + variant
|
|
188
|
+
}), React__default.createElement(system.Box, {
|
|
235
189
|
display: "inline-block",
|
|
236
190
|
alignItems: "center",
|
|
237
191
|
width: "32px",
|
|
238
192
|
height: "32px",
|
|
239
193
|
bg: variant
|
|
240
|
-
}, React__default.createElement(Box, {
|
|
194
|
+
}, React__default.createElement(system.Box, {
|
|
241
195
|
as: Icon,
|
|
242
196
|
size: 12,
|
|
243
197
|
color: "#fff",
|
|
244
198
|
bg: variant,
|
|
245
199
|
m: 10
|
|
246
|
-
})), React__default.createElement(Box, {
|
|
200
|
+
})), React__default.createElement(system.Box, {
|
|
247
201
|
mx: "16px"
|
|
248
202
|
}, children));
|
|
249
203
|
};
|
|
250
204
|
|
|
251
|
-
var _excluded$
|
|
205
|
+
var _excluded$4 = ["variant", "bgColor", "borderColor", "children"];
|
|
206
|
+
// ---------------
|
|
207
|
+
|
|
252
208
|
var Badge = function Badge(_ref) {
|
|
253
209
|
var _ref$variant = _ref.variant,
|
|
254
|
-
variant = _ref$variant === void 0 ? '
|
|
210
|
+
variant = _ref$variant === void 0 ? '' : _ref$variant,
|
|
255
211
|
_ref$bgColor = _ref.bgColor,
|
|
256
212
|
bgColor = _ref$bgColor === void 0 ? 'transparent' : _ref$bgColor,
|
|
257
213
|
_ref$borderColor = _ref.borderColor,
|
|
258
214
|
borderColor = _ref$borderColor === void 0 ? 'transparent' : _ref$borderColor,
|
|
259
215
|
children = _ref.children,
|
|
260
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
216
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
261
217
|
|
|
262
|
-
return React__default.createElement(Box, Object.assign({
|
|
218
|
+
return React__default.createElement(system.Box, Object.assign({
|
|
263
219
|
css: {
|
|
264
220
|
bg: bgColor,
|
|
265
221
|
borderColor: borderColor
|
|
@@ -268,7 +224,9 @@ var Badge = function Badge(_ref) {
|
|
|
268
224
|
}, props), children);
|
|
269
225
|
};
|
|
270
226
|
|
|
271
|
-
var _excluded$
|
|
227
|
+
var _excluded$5 = ["as", "variant", "size", "space", "disabled", "children", "className"];
|
|
228
|
+
// ---------------
|
|
229
|
+
|
|
272
230
|
var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
273
231
|
var _ref$as = _ref.as,
|
|
274
232
|
as = _ref$as === void 0 ? 'button' : _ref$as,
|
|
@@ -276,10 +234,12 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
276
234
|
variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
|
|
277
235
|
_ref$size = _ref.size,
|
|
278
236
|
size = _ref$size === void 0 ? 'large' : _ref$size,
|
|
237
|
+
_ref$space = _ref.space,
|
|
238
|
+
space = _ref$space === void 0 ? 'none' : _ref$space,
|
|
279
239
|
disabled = _ref.disabled,
|
|
280
240
|
children = _ref.children,
|
|
281
241
|
className = _ref.className,
|
|
282
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
242
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
283
243
|
|
|
284
244
|
var _useButton = button.useButton(_extends({}, props, {
|
|
285
245
|
elementType: typeof as === 'string' ? as : 'span',
|
|
@@ -287,118 +247,121 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
287
247
|
}), ref),
|
|
288
248
|
buttonProps = _useButton.buttonProps;
|
|
289
249
|
|
|
290
|
-
return React__default.createElement(Box, Object.assign({}, buttonProps, props, {
|
|
250
|
+
return React__default.createElement(system.Box, Object.assign({}, buttonProps, props, {
|
|
291
251
|
as: as,
|
|
252
|
+
display: "inline-flex",
|
|
253
|
+
alignItems: "center",
|
|
292
254
|
variant: ["button." + variant, "button." + size],
|
|
293
255
|
className: className,
|
|
294
|
-
ref: ref
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
}, children));
|
|
256
|
+
ref: ref,
|
|
257
|
+
css: {
|
|
258
|
+
columnGap: space
|
|
259
|
+
}
|
|
260
|
+
}), children);
|
|
300
261
|
});
|
|
301
262
|
|
|
302
|
-
var _excluded$
|
|
263
|
+
var _excluded$6 = ["variant", "title", "width", "className", "children"];
|
|
264
|
+
// ---------------
|
|
265
|
+
|
|
303
266
|
var Card = function Card(_ref) {
|
|
304
267
|
var _ref$variant = _ref.variant,
|
|
305
|
-
variant = _ref$variant === void 0 ? '
|
|
268
|
+
variant = _ref$variant === void 0 ? '' : _ref$variant,
|
|
306
269
|
title = _ref.title,
|
|
307
270
|
width = _ref.width,
|
|
308
271
|
className = _ref.className,
|
|
309
272
|
children = _ref.children,
|
|
310
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
273
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
311
274
|
|
|
312
|
-
return React__default.createElement(Box, Object.assign({}, props, {
|
|
275
|
+
return React__default.createElement(system.Box, Object.assign({}, props, {
|
|
313
276
|
variant: "card." + variant,
|
|
314
277
|
maxWidth: width,
|
|
315
278
|
className: className
|
|
316
|
-
}), title && React__default.createElement(Box, {
|
|
279
|
+
}), title && React__default.createElement(system.Box, {
|
|
317
280
|
as: "h2",
|
|
318
281
|
variant: "text.h2",
|
|
319
282
|
pb: "small"
|
|
320
283
|
}, title), children);
|
|
321
284
|
};
|
|
322
285
|
|
|
323
|
-
var
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
286
|
+
var CheckboxIcon = function CheckboxIcon(_ref) {
|
|
287
|
+
var _ref$variant = _ref.variant,
|
|
288
|
+
variant = _ref$variant === void 0 ? '' : _ref$variant,
|
|
289
|
+
_ref$checked = _ref.checked,
|
|
290
|
+
checked = _ref$checked === void 0 ? false : _ref$checked,
|
|
291
|
+
_ref$disabled = _ref.disabled,
|
|
327
292
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
293
|
+
_ref$error = _ref.error,
|
|
294
|
+
error = _ref$error === void 0 ? false : _ref$error;
|
|
295
|
+
var conditionalStates = disabled ? {
|
|
296
|
+
disabled: disabled
|
|
297
|
+
} : {
|
|
298
|
+
checked: checked,
|
|
299
|
+
error: error
|
|
300
|
+
};
|
|
301
|
+
return React__default.createElement(system.SVG, {
|
|
331
302
|
width: "16",
|
|
332
303
|
height: "32",
|
|
333
304
|
viewBox: "0 0 16 32",
|
|
334
|
-
fill: "none"
|
|
335
|
-
|
|
305
|
+
fill: "none",
|
|
306
|
+
"aria-hidden": "true"
|
|
307
|
+
}, React__default.createElement(system.Box, {
|
|
336
308
|
as: "rect",
|
|
337
309
|
x: "0.5",
|
|
338
310
|
y: "8.5",
|
|
339
311
|
width: "15px",
|
|
340
312
|
height: "15px",
|
|
341
313
|
rx: "1.5",
|
|
342
|
-
variant:
|
|
343
|
-
}), React__default.createElement(Box, {
|
|
314
|
+
variant: system.conditional("checkbox." + variant, conditionalStates)
|
|
315
|
+
}), checked && React__default.createElement(system.Box, {
|
|
316
|
+
__baseCSS: {
|
|
317
|
+
fill: 'gray00'
|
|
318
|
+
},
|
|
344
319
|
as: "path",
|
|
345
320
|
fillRule: "evenodd",
|
|
346
321
|
clipRule: "evenodd",
|
|
347
|
-
d: "M13.9571 12.8338L12.4085 11.2852L6.08699 17.6007L3.59887 15.1126L2.04163 16.6588L6.08682 20.704L13.9571 12.8338Z"
|
|
348
|
-
variant: "checkbox.checked.icon"
|
|
322
|
+
d: "M13.9571 12.8338L12.4085 11.2852L6.08699 17.6007L3.59887 15.1126L2.04163 16.6588L6.08682 20.704L13.9571 12.8338Z"
|
|
349
323
|
}));
|
|
350
324
|
};
|
|
351
|
-
var CheckboxUnchecked = function CheckboxUnchecked(_ref2) {
|
|
352
|
-
var _ref2$disabled = _ref2.disabled,
|
|
353
|
-
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
354
|
-
_ref2$error = _ref2.error,
|
|
355
|
-
error = _ref2$error === void 0 ? false : _ref2$error,
|
|
356
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
357
325
|
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
viewBox: "0 0 16 32",
|
|
362
|
-
fill: "none"
|
|
363
|
-
}, props), React__default.createElement(Box, {
|
|
364
|
-
as: "rect",
|
|
365
|
-
x: "0.5",
|
|
366
|
-
y: "8.5",
|
|
367
|
-
width: "15px",
|
|
368
|
-
height: "15px",
|
|
369
|
-
rx: "1.5",
|
|
370
|
-
variant: disabled ? 'checkbox.unchecked.disabled' : error ? 'checkbox.unchecked.error' : 'checkbox.unchecked'
|
|
371
|
-
}));
|
|
372
|
-
};
|
|
373
|
-
|
|
374
|
-
var _excluded$7 = ["variant", "required", "children"];
|
|
375
|
-
var Label = function Label(_ref) {
|
|
326
|
+
var _excluded$7 = ["variant", "required", "color", "children"],
|
|
327
|
+
_excluded2 = ["required", "children"];
|
|
328
|
+
var LabelBase = function LabelBase(_ref) {
|
|
376
329
|
var _ref$variant = _ref.variant,
|
|
377
330
|
variant = _ref$variant === void 0 ? 'above' : _ref$variant,
|
|
378
|
-
|
|
331
|
+
_ref$color = _ref.color,
|
|
332
|
+
color = _ref$color === void 0 ? 'text' : _ref$color,
|
|
379
333
|
children = _ref.children,
|
|
380
334
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
381
335
|
|
|
382
|
-
return
|
|
336
|
+
return React__default.createElement(system.Box, Object.assign({}, props, {
|
|
337
|
+
as: "label",
|
|
338
|
+
__baseCSS: {
|
|
339
|
+
color: color
|
|
340
|
+
},
|
|
341
|
+
variant: "label." + variant
|
|
342
|
+
}), children);
|
|
343
|
+
};
|
|
344
|
+
var Label = function Label(_ref2) {
|
|
345
|
+
var required = _ref2.required,
|
|
346
|
+
children = _ref2.children,
|
|
347
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
348
|
+
|
|
349
|
+
return required ? React__default.createElement(system.Box, {
|
|
383
350
|
as: "span",
|
|
384
351
|
display: "inline-flex",
|
|
385
352
|
alignItems: "center"
|
|
386
|
-
}, React__default.createElement(
|
|
387
|
-
as: "label",
|
|
388
|
-
variant: "label." + variant
|
|
389
|
-
}), children), required && React__default.createElement(Box, {
|
|
353
|
+
}, React__default.createElement(LabelBase, Object.assign({}, props), children), required && React__default.createElement(system.Box, {
|
|
390
354
|
as: icons.Required,
|
|
391
355
|
size: 16,
|
|
392
356
|
css: {
|
|
393
|
-
color: '
|
|
357
|
+
color: 'error'
|
|
394
358
|
}
|
|
395
|
-
})) : React__default.createElement(
|
|
396
|
-
as: "label",
|
|
397
|
-
variant: "label." + variant
|
|
398
|
-
}), children);
|
|
359
|
+
})) : React__default.createElement(LabelBase, Object.assign({}, props), children);
|
|
399
360
|
};
|
|
400
361
|
|
|
401
362
|
var _excluded$8 = ["variant", "children", "className"];
|
|
363
|
+
// ---------------
|
|
364
|
+
|
|
402
365
|
var ValidationMessage = function ValidationMessage(_ref) {
|
|
403
366
|
var _ref$variant = _ref.variant,
|
|
404
367
|
variant = _ref$variant === void 0 ? 'error' : _ref$variant,
|
|
@@ -406,7 +369,7 @@ var ValidationMessage = function ValidationMessage(_ref) {
|
|
|
406
369
|
className = _ref.className,
|
|
407
370
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
408
371
|
|
|
409
|
-
return React__default.createElement(Box, Object.assign({
|
|
372
|
+
return React__default.createElement(system.Box, Object.assign({
|
|
410
373
|
as: "span",
|
|
411
374
|
display: "flex",
|
|
412
375
|
alignItems: "center",
|
|
@@ -415,82 +378,64 @@ var ValidationMessage = function ValidationMessage(_ref) {
|
|
|
415
378
|
}, props), children);
|
|
416
379
|
};
|
|
417
380
|
|
|
418
|
-
var _excluded$9 = ["
|
|
419
|
-
_excluded2$1 = ["label", "required", "error", "errorMessage"];
|
|
381
|
+
var _excluded$9 = ["error"],
|
|
382
|
+
_excluded2$1 = ["label", "required", "labelVariant", "error", "errorMessage"];
|
|
420
383
|
|
|
421
|
-
var
|
|
422
|
-
var
|
|
423
|
-
|
|
424
|
-
disabled = _ref.disabled,
|
|
425
|
-
error = _ref.error;
|
|
384
|
+
var CheckboxInput = function CheckboxInput(_ref) {
|
|
385
|
+
var error = _ref.error,
|
|
386
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
426
387
|
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
as: CheckboxChecked,
|
|
430
|
-
variant: "checkbox." + variant,
|
|
431
|
-
disabled: disabled
|
|
432
|
-
});
|
|
433
|
-
}
|
|
388
|
+
var state = toggle.useToggleState(props);
|
|
389
|
+
var ref = React__default.useRef(null);
|
|
434
390
|
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
variant: "checkbox." + variant,
|
|
438
|
-
disabled: disabled,
|
|
439
|
-
error: error
|
|
440
|
-
});
|
|
441
|
-
};
|
|
391
|
+
var _useCheckbox = checkbox.useCheckbox(props, state, ref),
|
|
392
|
+
inputProps = _useCheckbox.inputProps;
|
|
442
393
|
|
|
443
|
-
var
|
|
444
|
-
|
|
445
|
-
_ref2$variant = _ref2.variant,
|
|
446
|
-
variant = _ref2$variant === void 0 ? 'default' : _ref2$variant,
|
|
447
|
-
error = _ref2.error,
|
|
448
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$9);
|
|
394
|
+
var _useFocusRing = focus.useFocusRing(),
|
|
395
|
+
focusProps = _useFocusRing.focusProps;
|
|
449
396
|
|
|
450
|
-
return React__default.createElement(Box, {
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
}, React__default.createElement(Box, Object.assign({
|
|
397
|
+
return React__default.createElement(system.Box, {
|
|
398
|
+
pr: "xsmall"
|
|
399
|
+
}, React__default.createElement(visuallyHidden.VisuallyHidden, null, React__default.createElement(system.Box, Object.assign({
|
|
454
400
|
as: "input",
|
|
455
401
|
type: "checkbox",
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
width: 1,
|
|
461
|
-
height: 1,
|
|
462
|
-
overflow: 'hidden'
|
|
463
|
-
}
|
|
464
|
-
}, props)), React__default.createElement(CheckboxIcon, {
|
|
402
|
+
disabled: props.disabled
|
|
403
|
+
}, inputProps, focusProps, {
|
|
404
|
+
ref: ref
|
|
405
|
+
}, props))), React__default.createElement(CheckboxIcon, {
|
|
465
406
|
checked: props.checked,
|
|
466
|
-
variant: variant,
|
|
407
|
+
variant: props.variant,
|
|
467
408
|
disabled: props.disabled,
|
|
468
409
|
error: error
|
|
469
410
|
}));
|
|
470
411
|
};
|
|
471
412
|
|
|
472
|
-
var Checkbox = function Checkbox(
|
|
473
|
-
var label =
|
|
474
|
-
required =
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
413
|
+
var Checkbox = function Checkbox(_ref2) {
|
|
414
|
+
var label = _ref2.label,
|
|
415
|
+
required = _ref2.required,
|
|
416
|
+
_ref2$labelVariant = _ref2.labelVariant,
|
|
417
|
+
labelVariant = _ref2$labelVariant === void 0 ? 'inline' : _ref2$labelVariant,
|
|
418
|
+
error = _ref2.error,
|
|
419
|
+
errorMessage = _ref2.errorMessage,
|
|
420
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$1);
|
|
421
|
+
|
|
422
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(system.Box, {
|
|
423
|
+
as: Label,
|
|
424
|
+
__baseCSS: {
|
|
425
|
+
':hover': {
|
|
426
|
+
cursor: props.disabled ? 'not-allowed' : 'pointer'
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
htmlFor: props.id,
|
|
430
|
+
required: required,
|
|
431
|
+
variant: "label." + labelVariant,
|
|
432
|
+
color: props.disabled ? 'disabled' : 'text'
|
|
433
|
+
}, React__default.createElement(system.Box, Object.assign({
|
|
434
|
+
as: CheckboxInput,
|
|
435
|
+
error: error
|
|
436
|
+
}, props)), label), error && errorMessage && React__default.createElement(ValidationMessage, null, React__default.createElement(icons.Exclamation, {
|
|
437
|
+
size: 16
|
|
438
|
+
}), errorMessage));
|
|
494
439
|
};
|
|
495
440
|
|
|
496
441
|
var _excluded$a = ["width", "children"];
|
|
@@ -511,15 +456,31 @@ var Column = function Column(_ref) {
|
|
|
511
456
|
children = _ref.children,
|
|
512
457
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
513
458
|
|
|
514
|
-
return React__default.createElement(Box, Object.assign({}, props, {
|
|
459
|
+
return React__default.createElement(system.Box, Object.assign({}, props, {
|
|
515
460
|
width: transform(width)
|
|
516
461
|
}), children);
|
|
517
462
|
};
|
|
518
463
|
|
|
519
464
|
var _excluded$b = ["space", "horizontalAlign", "verticalAlign", "className", "children"];
|
|
465
|
+
|
|
466
|
+
var useAlignment = function useAlignment(direction) {
|
|
467
|
+
switch (direction) {
|
|
468
|
+
case 'right':
|
|
469
|
+
return 'flex-end';
|
|
470
|
+
|
|
471
|
+
case 'bottom':
|
|
472
|
+
return 'flex-end';
|
|
473
|
+
|
|
474
|
+
case 'center':
|
|
475
|
+
return 'center';
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
return 'flex-start';
|
|
479
|
+
};
|
|
480
|
+
|
|
520
481
|
var Columns = function Columns(_ref) {
|
|
521
482
|
var _ref$space = _ref.space,
|
|
522
|
-
space = _ref$space === void 0 ?
|
|
483
|
+
space = _ref$space === void 0 ? 'none' : _ref$space,
|
|
523
484
|
_ref$horizontalAlign = _ref.horizontalAlign,
|
|
524
485
|
horizontalAlign = _ref$horizontalAlign === void 0 ? 'left' : _ref$horizontalAlign,
|
|
525
486
|
_ref$verticalAlign = _ref.verticalAlign,
|
|
@@ -528,75 +489,96 @@ var Columns = function Columns(_ref) {
|
|
|
528
489
|
children = _ref.children,
|
|
529
490
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
530
491
|
|
|
531
|
-
var
|
|
532
|
-
var
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
}); // horizontal Alignment
|
|
537
|
-
|
|
538
|
-
var justify = 'flex-start';
|
|
539
|
-
|
|
540
|
-
if (horizontalAlign === 'right') {
|
|
541
|
-
justify = 'flex-end';
|
|
542
|
-
} else if (horizontalAlign === 'center') {
|
|
543
|
-
justify = 'center';
|
|
544
|
-
} // vertical Alignment
|
|
492
|
+
var justifyContent = useAlignment(horizontalAlign);
|
|
493
|
+
var alignItems = useAlignment(verticalAlign);
|
|
494
|
+
/**
|
|
495
|
+
* transform space string to space value from theme
|
|
496
|
+
*/
|
|
545
497
|
|
|
498
|
+
var _useTheme = system.useTheme(),
|
|
499
|
+
css = _useTheme.css;
|
|
546
500
|
|
|
547
|
-
var
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
return React__default.createElement(Box, {
|
|
556
|
-
p: space + "px",
|
|
501
|
+
var spaceObject = css({
|
|
502
|
+
space: space
|
|
503
|
+
});
|
|
504
|
+
var spaceValue = Object.values(spaceObject)[0];
|
|
505
|
+
return React__default.createElement(system.Box, {
|
|
506
|
+
p: space,
|
|
557
507
|
display: "flex",
|
|
558
508
|
className: className
|
|
559
|
-
}, React__default.createElement(Box, Object.assign({
|
|
560
|
-
width: "calc(100% + " +
|
|
561
|
-
m: -
|
|
509
|
+
}, React__default.createElement(system.Box, Object.assign({
|
|
510
|
+
width: "calc(100% + " + spaceValue + "px)",
|
|
511
|
+
m: -spaceValue / 2 + "px",
|
|
562
512
|
display: "flex",
|
|
563
513
|
flexWrap: "wrap",
|
|
564
514
|
alignItems: alignItems,
|
|
565
|
-
justifyContent:
|
|
566
|
-
}, props), React.Children.map(
|
|
567
|
-
return React__default.cloneElement(child, {
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
515
|
+
justifyContent: justifyContent
|
|
516
|
+
}, props), React.Children.map(flattenChildren(children), function (child) {
|
|
517
|
+
return React__default.cloneElement(child, {}, React__default.createElement(system.Box, {
|
|
518
|
+
css: {
|
|
519
|
+
p: spaceValue / 2 + "px"
|
|
520
|
+
}
|
|
571
521
|
}, child.props.children));
|
|
572
522
|
})));
|
|
573
523
|
};
|
|
574
524
|
|
|
575
|
-
var _excluded$c = ["as", "variant", "children"];
|
|
576
|
-
|
|
525
|
+
var _excluded$c = ["as", "variant", "children", "className", "align", "color", "cursor", "outline", "userSelect"];
|
|
526
|
+
// ---------------
|
|
527
|
+
|
|
528
|
+
var Text = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
577
529
|
var _ref$as = _ref.as,
|
|
578
|
-
as = _ref$as === void 0 ? '
|
|
530
|
+
as = _ref$as === void 0 ? 'span' : _ref$as,
|
|
579
531
|
_ref$variant = _ref.variant,
|
|
580
|
-
variant = _ref$variant === void 0 ? '
|
|
532
|
+
variant = _ref$variant === void 0 ? 'body' : _ref$variant,
|
|
581
533
|
children = _ref.children,
|
|
534
|
+
className = _ref.className,
|
|
535
|
+
align = _ref.align,
|
|
536
|
+
color = _ref.color,
|
|
537
|
+
cursor = _ref.cursor,
|
|
538
|
+
outline = _ref.outline,
|
|
539
|
+
userSelect = _ref.userSelect,
|
|
582
540
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
583
541
|
|
|
584
|
-
return React__default.createElement(Box, Object.assign({}, props, {
|
|
542
|
+
return React__default.createElement(system.Box, Object.assign({}, props, {
|
|
585
543
|
as: as,
|
|
586
|
-
variant: "text." + variant
|
|
544
|
+
variant: "text." + variant,
|
|
545
|
+
css: {
|
|
546
|
+
textAlign: align,
|
|
547
|
+
color: color,
|
|
548
|
+
cursor: cursor,
|
|
549
|
+
outline: outline,
|
|
550
|
+
userSelect: userSelect
|
|
551
|
+
},
|
|
552
|
+
className: className,
|
|
553
|
+
ref: ref
|
|
587
554
|
}), children);
|
|
588
|
-
};
|
|
555
|
+
});
|
|
556
|
+
|
|
557
|
+
var _excluded$d = ["variant", "backdropVariant", "children"],
|
|
558
|
+
_excluded2$2 = ["isDismissable", "isOpen", "onClose"];
|
|
559
|
+
// ---------------
|
|
589
560
|
|
|
590
|
-
var _excluded$d = ["children"];
|
|
591
561
|
var ModalDialog = function ModalDialog(_ref) {
|
|
592
|
-
var
|
|
562
|
+
var variant = _ref.variant,
|
|
563
|
+
_ref$backdropVariant = _ref.backdropVariant,
|
|
564
|
+
backdropVariant = _ref$backdropVariant === void 0 ? 'backdrop' : _ref$backdropVariant,
|
|
565
|
+
children = _ref.children,
|
|
593
566
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
594
567
|
|
|
595
|
-
|
|
568
|
+
var isDismissable = props.isDismissable,
|
|
569
|
+
isOpen = props.isOpen,
|
|
570
|
+
onClose = props.onClose,
|
|
571
|
+
restProps = _objectWithoutPropertiesLoose(props, _excluded2$2); // Handle interacting outside the dialog and pressing
|
|
596
572
|
// the Escape key to close the modal.
|
|
573
|
+
|
|
574
|
+
|
|
597
575
|
var ref = React__default.useRef();
|
|
598
576
|
|
|
599
|
-
var _useOverlay = overlays$1.useOverlay(
|
|
577
|
+
var _useOverlay = overlays$1.useOverlay({
|
|
578
|
+
isDismissable: isDismissable,
|
|
579
|
+
isOpen: isOpen,
|
|
580
|
+
onClose: onClose
|
|
581
|
+
}, ref),
|
|
600
582
|
overlayProps = _useOverlay.overlayProps,
|
|
601
583
|
underlayProps = _useOverlay.underlayProps; // Prevent scrolling while the modal is open, and hide content
|
|
602
584
|
// outside the modal from screen readers.
|
|
@@ -610,25 +592,39 @@ var ModalDialog = function ModalDialog(_ref) {
|
|
|
610
592
|
var _useDialog = dialog.useDialog(props, ref),
|
|
611
593
|
dialogProps = _useDialog.dialogProps;
|
|
612
594
|
|
|
613
|
-
return React__default.createElement(Box, Object.assign({
|
|
614
|
-
|
|
595
|
+
return React__default.createElement(system.Box, Object.assign({
|
|
596
|
+
__baseCSS: {
|
|
597
|
+
display: 'grid',
|
|
598
|
+
placeItems: 'center',
|
|
599
|
+
position: 'fixed',
|
|
600
|
+
zIndex: 100,
|
|
601
|
+
top: 0,
|
|
602
|
+
left: 0,
|
|
603
|
+
bottom: 0,
|
|
604
|
+
right: 0
|
|
605
|
+
},
|
|
606
|
+
variant: "dialog." + backdropVariant
|
|
615
607
|
}, underlayProps), React__default.createElement(focus.FocusScope, {
|
|
616
608
|
contain: true,
|
|
617
609
|
restoreFocus: true,
|
|
618
610
|
autoFocus: true
|
|
619
|
-
}, React__default.createElement(Box, Object.assign({}, overlayProps, dialogProps, modalProps, {
|
|
611
|
+
}, React__default.createElement(system.Box, Object.assign({}, overlayProps, dialogProps, modalProps, {
|
|
620
612
|
ref: ref,
|
|
621
|
-
variant: "dialog.
|
|
622
|
-
}), children)));
|
|
613
|
+
variant: variant ? "dialog." + variant : "dialog"
|
|
614
|
+
}, restProps), children)));
|
|
623
615
|
};
|
|
624
616
|
|
|
625
|
-
var _excluded$e = ["
|
|
617
|
+
var _excluded$e = ["backdropVariant", "children", "className", "close", "isOpen", "title", "variant"];
|
|
618
|
+
// ---------------
|
|
619
|
+
|
|
626
620
|
var Dialog = function Dialog(_ref) {
|
|
627
|
-
var
|
|
628
|
-
|
|
621
|
+
var backdropVariant = _ref.backdropVariant,
|
|
622
|
+
children = _ref.children,
|
|
629
623
|
className = _ref.className,
|
|
630
|
-
isOpen = _ref.isOpen,
|
|
631
624
|
close = _ref.close,
|
|
625
|
+
isOpen = _ref.isOpen,
|
|
626
|
+
title = _ref.title,
|
|
627
|
+
variant = _ref.variant,
|
|
632
628
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
633
629
|
|
|
634
630
|
var closeButtonRef = React__default.useRef(); // useButton ensures that focus management is handled correctly,
|
|
@@ -642,29 +638,56 @@ var Dialog = function Dialog(_ref) {
|
|
|
642
638
|
}, closeButtonRef),
|
|
643
639
|
closeButtonProps = _useButton.buttonProps;
|
|
644
640
|
|
|
645
|
-
return React__default.createElement(overlays$1.OverlayContainer, null, React__default.createElement(ModalDialog, {
|
|
641
|
+
return React__default.createElement(overlays$1.OverlayContainer, null, React__default.createElement(ModalDialog, Object.assign({
|
|
642
|
+
variant: variant,
|
|
643
|
+
backdropVariant: backdropVariant,
|
|
646
644
|
isOpen: isOpen,
|
|
647
645
|
onClose: close,
|
|
648
646
|
isDismissable: true
|
|
649
|
-
}, React__default.createElement(Box,
|
|
650
|
-
|
|
647
|
+
}, props), React__default.createElement(system.Box, {
|
|
648
|
+
__baseCSS: {
|
|
649
|
+
display: 'flex',
|
|
650
|
+
justifyContent: 'space-between',
|
|
651
|
+
borderRadius: 'small',
|
|
652
|
+
pl: 'large',
|
|
653
|
+
pb: 'large'
|
|
654
|
+
},
|
|
651
655
|
className: className
|
|
652
|
-
},
|
|
653
|
-
|
|
654
|
-
}, title && React__default.createElement(
|
|
656
|
+
}, React__default.createElement(system.Box, {
|
|
657
|
+
pt: "medium"
|
|
658
|
+
}, title && React__default.createElement(Text, {
|
|
655
659
|
as: "h4",
|
|
656
|
-
variant: "
|
|
657
|
-
}, title), children), React__default.createElement(Box, {
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
660
|
+
variant: "headline4"
|
|
661
|
+
}, title), children), React__default.createElement(system.Box, {
|
|
662
|
+
__baseCSS: {
|
|
663
|
+
display: 'flex',
|
|
664
|
+
justifyContent: 'flex-end',
|
|
665
|
+
alignItems: 'start',
|
|
666
|
+
paddingTop: 'xsmall',
|
|
667
|
+
paddingX: 'xsmall'
|
|
668
|
+
}
|
|
669
|
+
}, React__default.createElement(system.Box, Object.assign({
|
|
670
|
+
as: Button,
|
|
671
|
+
__baseCSS: {
|
|
672
|
+
color: 'text',
|
|
673
|
+
bg: 'transparent',
|
|
674
|
+
lineHeight: 'xsmall',
|
|
675
|
+
px: 'xxsmall',
|
|
676
|
+
':hover': {
|
|
677
|
+
color: 'text',
|
|
678
|
+
bg: 'transparent',
|
|
679
|
+
cursor: 'pointer'
|
|
680
|
+
},
|
|
681
|
+
':focus': {
|
|
682
|
+
outline: 0
|
|
683
|
+
}
|
|
684
|
+
}
|
|
662
685
|
}, closeButtonProps, {
|
|
663
686
|
ref: closeButtonRef
|
|
664
687
|
}), React__default.createElement(icons.Close, {
|
|
665
688
|
size: 16
|
|
666
689
|
}))))));
|
|
667
|
-
}; //
|
|
690
|
+
}; // get the overlayTriggerState and openButton props for using the dialog component
|
|
668
691
|
|
|
669
692
|
var useDialogButtonProps = function useDialogButtonProps() {
|
|
670
693
|
var state = overlays.useOverlayTriggerState({});
|
|
@@ -685,37 +708,46 @@ var useDialogButtonProps = function useDialogButtonProps() {
|
|
|
685
708
|
};
|
|
686
709
|
|
|
687
710
|
var _excluded$f = ["variant"];
|
|
711
|
+
// ---------------
|
|
712
|
+
|
|
688
713
|
var Divider = function Divider(_ref) {
|
|
689
714
|
var _ref$variant = _ref.variant,
|
|
690
715
|
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
691
716
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
692
717
|
|
|
693
|
-
return React__default.createElement(Box, Object.assign({}, props, {
|
|
718
|
+
return React__default.createElement(system.Box, Object.assign({}, props, {
|
|
694
719
|
as: "hr",
|
|
695
720
|
variant: "divider." + variant
|
|
696
721
|
}));
|
|
697
722
|
};
|
|
698
723
|
|
|
699
724
|
var _excluded$g = ["variant", "type"];
|
|
725
|
+
// ---------------
|
|
726
|
+
|
|
700
727
|
var Input = function Input(_ref) {
|
|
701
728
|
var _ref$variant = _ref.variant,
|
|
702
|
-
variant = _ref$variant === void 0 ? '
|
|
729
|
+
variant = _ref$variant === void 0 ? '' : _ref$variant,
|
|
703
730
|
_ref$type = _ref.type,
|
|
704
731
|
type = _ref$type === void 0 ? 'text' : _ref$type,
|
|
705
732
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
706
733
|
|
|
707
|
-
return React__default.createElement(Box, Object.assign({}, props, {
|
|
734
|
+
return React__default.createElement(system.Box, Object.assign({}, props, {
|
|
708
735
|
as: "input",
|
|
709
736
|
type: type,
|
|
710
737
|
variant: "input." + variant
|
|
711
738
|
}));
|
|
712
739
|
};
|
|
713
740
|
|
|
714
|
-
var _excluded$h = ["type", "
|
|
741
|
+
var _excluded$h = ["type", "variant", "labelVariant", "htmlFor", "label", "required", "error", "errorMessage", "disabled"];
|
|
742
|
+
// ---------------
|
|
743
|
+
|
|
715
744
|
var Field = function Field(_ref) {
|
|
716
745
|
var _ref$type = _ref.type,
|
|
717
746
|
type = _ref$type === void 0 ? 'text' : _ref$type,
|
|
718
|
-
|
|
747
|
+
_ref$variant = _ref.variant,
|
|
748
|
+
variant = _ref$variant === void 0 ? '' : _ref$variant,
|
|
749
|
+
_ref$labelVariant = _ref.labelVariant,
|
|
750
|
+
labelVariant = _ref$labelVariant === void 0 ? 'above' : _ref$labelVariant,
|
|
719
751
|
htmlFor = _ref.htmlFor,
|
|
720
752
|
label = _ref.label,
|
|
721
753
|
required = _ref.required,
|
|
@@ -725,76 +757,36 @@ var Field = function Field(_ref) {
|
|
|
725
757
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
726
758
|
|
|
727
759
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(Label, {
|
|
728
|
-
variant:
|
|
760
|
+
variant: labelVariant,
|
|
729
761
|
htmlFor: htmlFor,
|
|
730
762
|
required: required
|
|
731
763
|
}, label), React__default.createElement(Input, Object.assign({}, props, {
|
|
732
764
|
type: type,
|
|
733
765
|
id: htmlFor,
|
|
734
766
|
disabled: disabled,
|
|
735
|
-
variant:
|
|
736
|
-
className: className
|
|
767
|
+
variant: variant
|
|
737
768
|
})), error && errorMessage && React__default.createElement(ValidationMessage, null, React__default.createElement(icons.Exclamation, {
|
|
738
769
|
size: 16
|
|
739
770
|
}), errorMessage));
|
|
740
771
|
};
|
|
741
772
|
|
|
742
|
-
var _excluded$i = ["
|
|
743
|
-
|
|
744
|
-
var _ref$show = _ref.show,
|
|
745
|
-
show = _ref$show === void 0 ? false : _ref$show,
|
|
746
|
-
children = _ref.children,
|
|
747
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
748
|
-
|
|
749
|
-
return React__default.createElement(Box, Object.assign({}, props, {
|
|
750
|
-
as: "span",
|
|
751
|
-
display: show ? 'display' : 'none'
|
|
752
|
-
}), children);
|
|
753
|
-
};
|
|
773
|
+
var _excluded$i = ["variant"];
|
|
774
|
+
// ---------------
|
|
754
775
|
|
|
755
|
-
var _excluded$j = ["variant"];
|
|
756
776
|
var Image = function Image(_ref) {
|
|
757
777
|
var _ref$variant = _ref.variant,
|
|
758
778
|
variant = _ref$variant === void 0 ? 'fullWidth' : _ref$variant,
|
|
759
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
779
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
760
780
|
|
|
761
|
-
return React__default.createElement(Box, Object.assign({}, props, {
|
|
781
|
+
return React__default.createElement(system.Box, Object.assign({}, props, {
|
|
762
782
|
as: "img",
|
|
763
|
-
variant: "
|
|
783
|
+
variant: "image." + variant
|
|
764
784
|
}));
|
|
765
785
|
};
|
|
766
786
|
|
|
767
|
-
var _excluded$
|
|
768
|
-
|
|
769
|
-
var _ref$as = _ref.as,
|
|
770
|
-
as = _ref$as === void 0 ? 'span' : _ref$as,
|
|
771
|
-
_ref$variant = _ref.variant,
|
|
772
|
-
variant = _ref$variant === void 0 ? 'body' : _ref$variant,
|
|
773
|
-
children = _ref.children,
|
|
774
|
-
className = _ref.className,
|
|
775
|
-
align = _ref.align,
|
|
776
|
-
color = _ref.color,
|
|
777
|
-
cursor = _ref.cursor,
|
|
778
|
-
outline = _ref.outline,
|
|
779
|
-
userSelect = _ref.userSelect,
|
|
780
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
787
|
+
var _excluded$j = ["as", "variant", "children", "disabled"];
|
|
788
|
+
// ---------------
|
|
781
789
|
|
|
782
|
-
return React__default.createElement(Box, Object.assign({}, props, {
|
|
783
|
-
as: as,
|
|
784
|
-
variant: "text." + variant,
|
|
785
|
-
css: {
|
|
786
|
-
textAlign: align,
|
|
787
|
-
color: color,
|
|
788
|
-
cursor: cursor,
|
|
789
|
-
outline: outline,
|
|
790
|
-
userSelect: userSelect
|
|
791
|
-
},
|
|
792
|
-
className: className,
|
|
793
|
-
ref: ref
|
|
794
|
-
}), children);
|
|
795
|
-
});
|
|
796
|
-
|
|
797
|
-
var _excluded$l = ["as", "variant", "children", "disabled"];
|
|
798
790
|
var Link = function Link(_ref) {
|
|
799
791
|
var _ref$as = _ref.as,
|
|
800
792
|
as = _ref$as === void 0 ? 'a' : _ref$as,
|
|
@@ -802,7 +794,7 @@ var Link = function Link(_ref) {
|
|
|
802
794
|
variant = _ref$variant === void 0 ? 'link' : _ref$variant,
|
|
803
795
|
children = _ref.children,
|
|
804
796
|
disabled = _ref.disabled,
|
|
805
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
797
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
806
798
|
|
|
807
799
|
var ref = React.useRef();
|
|
808
800
|
|
|
@@ -819,7 +811,9 @@ var Link = function Link(_ref) {
|
|
|
819
811
|
}), children);
|
|
820
812
|
};
|
|
821
813
|
|
|
822
|
-
var _excluded$
|
|
814
|
+
var _excluded$k = ["variant", "label", "onClick", "show", "children"];
|
|
815
|
+
// ---------------
|
|
816
|
+
|
|
823
817
|
var Menu = function Menu(_ref) {
|
|
824
818
|
var _ref$variant = _ref.variant,
|
|
825
819
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
@@ -829,14 +823,14 @@ var Menu = function Menu(_ref) {
|
|
|
829
823
|
_ref$show = _ref.show,
|
|
830
824
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
831
825
|
children = _ref.children,
|
|
832
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
826
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
833
827
|
|
|
834
|
-
return React__default.createElement(Box, Object.assign({
|
|
828
|
+
return React__default.createElement(system.Box, Object.assign({
|
|
835
829
|
variant: "menu." + variant
|
|
836
830
|
}, props), React__default.createElement(Button, {
|
|
837
831
|
onClick: onClick,
|
|
838
832
|
variant: "menu"
|
|
839
|
-
}, label), show ? React__default.createElement(Box, {
|
|
833
|
+
}, label), show ? React__default.createElement(system.Box, {
|
|
840
834
|
display: "block",
|
|
841
835
|
position: "absolute",
|
|
842
836
|
minWidth: "120px",
|
|
@@ -844,15 +838,17 @@ var Menu = function Menu(_ref) {
|
|
|
844
838
|
}, children) : null);
|
|
845
839
|
};
|
|
846
840
|
|
|
847
|
-
var _excluded$
|
|
841
|
+
var _excluded$l = ["variant", "className", "children"];
|
|
842
|
+
// ---------------
|
|
843
|
+
|
|
848
844
|
var MenuItem = function MenuItem(_ref) {
|
|
849
845
|
var _ref$variant = _ref.variant,
|
|
850
846
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
851
847
|
className = _ref.className,
|
|
852
848
|
children = _ref.children,
|
|
853
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
849
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
854
850
|
|
|
855
|
-
return React__default.createElement(Box, {
|
|
851
|
+
return React__default.createElement(system.Box, {
|
|
856
852
|
variant: "menuItem." + variant,
|
|
857
853
|
className: className
|
|
858
854
|
}, React__default.createElement(Link, Object.assign({
|
|
@@ -860,14 +856,16 @@ var MenuItem = function MenuItem(_ref) {
|
|
|
860
856
|
}, props), children));
|
|
861
857
|
};
|
|
862
858
|
|
|
863
|
-
var _excluded$
|
|
859
|
+
var _excluded$m = ["messageTitle", "variant", "className", "children"];
|
|
860
|
+
// ---------------
|
|
861
|
+
|
|
864
862
|
var Message = function Message(_ref) {
|
|
865
863
|
var messageTitle = _ref.messageTitle,
|
|
866
864
|
_ref$variant = _ref.variant,
|
|
867
865
|
variant = _ref$variant === void 0 ? 'info' : _ref$variant,
|
|
868
866
|
className = _ref.className,
|
|
869
867
|
children = _ref.children,
|
|
870
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
868
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
871
869
|
|
|
872
870
|
var icon = React__default.createElement(icons.Info, null);
|
|
873
871
|
|
|
@@ -879,62 +877,55 @@ var Message = function Message(_ref) {
|
|
|
879
877
|
icon = React__default.createElement(icons.Exclamation, null);
|
|
880
878
|
}
|
|
881
879
|
|
|
882
|
-
return React__default.createElement(Box, Object.assign({
|
|
880
|
+
return React__default.createElement(system.Box, Object.assign({
|
|
883
881
|
display: "inline-block",
|
|
884
|
-
variant: "
|
|
882
|
+
variant: "message." + variant,
|
|
885
883
|
className: className
|
|
886
|
-
}, props), React__default.createElement(Box, {
|
|
884
|
+
}, props), React__default.createElement(system.Box, {
|
|
887
885
|
display: "flex",
|
|
888
886
|
alignItems: "center",
|
|
889
|
-
variant: "
|
|
890
|
-
}, icon, React__default.createElement(
|
|
887
|
+
variant: "message.title"
|
|
888
|
+
}, icon, React__default.createElement(Text, {
|
|
891
889
|
as: "h4",
|
|
892
|
-
variant: "
|
|
893
|
-
}, messageTitle)), React__default.createElement(Box, {
|
|
890
|
+
variant: "headline4"
|
|
891
|
+
}, messageTitle)), React__default.createElement(system.Box, {
|
|
894
892
|
css: {
|
|
895
893
|
color: 'black'
|
|
896
894
|
}
|
|
897
895
|
}, children));
|
|
898
896
|
};
|
|
899
897
|
|
|
900
|
-
//
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
// const styles = css({
|
|
904
|
-
// body: { variant: 'root.body' },
|
|
905
|
-
// html: { variant: 'root.html' },
|
|
906
|
-
// })(theme);
|
|
907
|
-
// return <Global styles={styles} />;
|
|
908
|
-
// };
|
|
909
|
-
// a merge of the ThemeProvider and the react-aria OverlayProvider
|
|
910
|
-
|
|
911
|
-
var MarigoldProvider = function MarigoldProvider(_ref) {
|
|
898
|
+
// ---------------
|
|
899
|
+
|
|
900
|
+
function MarigoldProvider(_ref) {
|
|
912
901
|
var theme = _ref.theme,
|
|
913
902
|
children = _ref.children;
|
|
903
|
+
var outer = system.useTheme();
|
|
904
|
+
var isTopLevel = outer.theme === system.__defaultTheme;
|
|
914
905
|
return React__default.createElement(system.ThemeProvider, {
|
|
915
906
|
theme: theme
|
|
916
|
-
}, React__default.createElement(overlays$1.OverlayProvider, null, children));
|
|
917
|
-
}
|
|
907
|
+
}, isTopLevel ? React__default.createElement(React__default.Fragment, null, React__default.createElement(system.Global, null), React__default.createElement(overlays$1.OverlayProvider, null, children)) : children);
|
|
908
|
+
}
|
|
918
909
|
|
|
919
|
-
var _excluded$
|
|
920
|
-
_excluded2$
|
|
910
|
+
var _excluded$n = ["disabled"],
|
|
911
|
+
_excluded2$3 = ["disabled", "error"];
|
|
921
912
|
var RadioChecked = function RadioChecked(_ref) {
|
|
922
913
|
var _ref$disabled = _ref.disabled,
|
|
923
914
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
924
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
915
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
925
916
|
|
|
926
|
-
return React__default.createElement(
|
|
917
|
+
return React__default.createElement(system.SVG, Object.assign({
|
|
927
918
|
width: "16",
|
|
928
919
|
height: "32",
|
|
929
920
|
viewBox: "0 0 16 32",
|
|
930
921
|
fill: "none"
|
|
931
|
-
}, props), React__default.createElement(Box, {
|
|
922
|
+
}, props), React__default.createElement(system.Box, {
|
|
932
923
|
as: "circle",
|
|
933
924
|
cx: "8",
|
|
934
925
|
cy: "16",
|
|
935
926
|
r: "7.5",
|
|
936
927
|
variant: disabled ? 'radio.checked.disabled' : 'radio.checked'
|
|
937
|
-
}), React__default.createElement(Box, {
|
|
928
|
+
}), React__default.createElement(system.Box, {
|
|
938
929
|
as: "circle",
|
|
939
930
|
cx: "8",
|
|
940
931
|
cy: "16",
|
|
@@ -947,14 +938,14 @@ var RadioUnchecked = function RadioUnchecked(_ref2) {
|
|
|
947
938
|
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
948
939
|
_ref2$error = _ref2.error,
|
|
949
940
|
error = _ref2$error === void 0 ? false : _ref2$error,
|
|
950
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
941
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
951
942
|
|
|
952
|
-
return React__default.createElement(
|
|
943
|
+
return React__default.createElement(system.SVG, Object.assign({
|
|
953
944
|
width: "16",
|
|
954
945
|
height: "32",
|
|
955
946
|
viewBox: "0 0 16 32",
|
|
956
947
|
fill: "none"
|
|
957
|
-
}, props), React__default.createElement(Box, {
|
|
948
|
+
}, props), React__default.createElement(system.Box, {
|
|
958
949
|
as: "circle",
|
|
959
950
|
cx: "8",
|
|
960
951
|
cy: "16",
|
|
@@ -963,8 +954,8 @@ var RadioUnchecked = function RadioUnchecked(_ref2) {
|
|
|
963
954
|
}));
|
|
964
955
|
};
|
|
965
956
|
|
|
966
|
-
var _excluded$
|
|
967
|
-
_excluded2$
|
|
957
|
+
var _excluded$o = ["className", "variant", "error"],
|
|
958
|
+
_excluded2$4 = ["label", "required", "labelVariant", "error", "errorMessage"];
|
|
968
959
|
|
|
969
960
|
var RadioIcon = function RadioIcon(_ref) {
|
|
970
961
|
var variant = _ref.variant,
|
|
@@ -973,14 +964,14 @@ var RadioIcon = function RadioIcon(_ref) {
|
|
|
973
964
|
error = _ref.error;
|
|
974
965
|
|
|
975
966
|
if (checked) {
|
|
976
|
-
return React__default.createElement(Box, {
|
|
967
|
+
return React__default.createElement(system.Box, {
|
|
977
968
|
as: RadioChecked,
|
|
978
969
|
variant: "radio." + variant,
|
|
979
970
|
disabled: disabled
|
|
980
971
|
});
|
|
981
972
|
}
|
|
982
973
|
|
|
983
|
-
return React__default.createElement(Box, {
|
|
974
|
+
return React__default.createElement(system.Box, {
|
|
984
975
|
as: RadioUnchecked,
|
|
985
976
|
variant: "radio." + variant,
|
|
986
977
|
disabled: disabled,
|
|
@@ -991,14 +982,14 @@ var RadioIcon = function RadioIcon(_ref) {
|
|
|
991
982
|
var RadioInput = function RadioInput(_ref2) {
|
|
992
983
|
var className = _ref2.className,
|
|
993
984
|
_ref2$variant = _ref2.variant,
|
|
994
|
-
variant = _ref2$variant === void 0 ? '
|
|
985
|
+
variant = _ref2$variant === void 0 ? '' : _ref2$variant,
|
|
995
986
|
error = _ref2.error,
|
|
996
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
987
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$o);
|
|
997
988
|
|
|
998
|
-
return React__default.createElement(Box, {
|
|
989
|
+
return React__default.createElement(system.Box, {
|
|
999
990
|
display: "inline-block",
|
|
1000
991
|
className: className
|
|
1001
|
-
}, React__default.createElement(Box, Object.assign({
|
|
992
|
+
}, React__default.createElement(system.Box, Object.assign({
|
|
1002
993
|
as: "input",
|
|
1003
994
|
type: "radio",
|
|
1004
995
|
css: {
|
|
@@ -1020,16 +1011,19 @@ var RadioInput = function RadioInput(_ref2) {
|
|
|
1020
1011
|
var Radio = function Radio(_ref3) {
|
|
1021
1012
|
var label = _ref3.label,
|
|
1022
1013
|
required = _ref3.required,
|
|
1014
|
+
_ref3$labelVariant = _ref3.labelVariant,
|
|
1015
|
+
labelVariant = _ref3$labelVariant === void 0 ? 'inline' : _ref3$labelVariant,
|
|
1023
1016
|
error = _ref3.error,
|
|
1024
1017
|
errorMessage = _ref3.errorMessage,
|
|
1025
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
1018
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$4);
|
|
1026
1019
|
|
|
1027
1020
|
if (label) {
|
|
1028
1021
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(Label, {
|
|
1029
1022
|
htmlFor: props.id,
|
|
1030
1023
|
required: required,
|
|
1031
|
-
variant:
|
|
1032
|
-
|
|
1024
|
+
variant: labelVariant,
|
|
1025
|
+
color: props.disabled ? 'disabled' : 'text'
|
|
1026
|
+
}, React__default.createElement(system.Box, Object.assign({
|
|
1033
1027
|
as: RadioInput,
|
|
1034
1028
|
pr: "8px",
|
|
1035
1029
|
error: error
|
|
@@ -1041,23 +1035,23 @@ var Radio = function Radio(_ref3) {
|
|
|
1041
1035
|
return React__default.createElement(RadioInput, Object.assign({}, props));
|
|
1042
1036
|
};
|
|
1043
1037
|
|
|
1044
|
-
var _excluded$
|
|
1038
|
+
var _excluded$p = ["variant", "className"];
|
|
1039
|
+
// ---------------
|
|
1040
|
+
|
|
1045
1041
|
var Slider = function Slider(_ref) {
|
|
1046
1042
|
var _ref$variant = _ref.variant,
|
|
1047
|
-
variant = _ref$variant === void 0 ? '
|
|
1043
|
+
variant = _ref$variant === void 0 ? '' : _ref$variant,
|
|
1048
1044
|
className = _ref.className,
|
|
1049
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1045
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
1050
1046
|
|
|
1051
|
-
|
|
1052
|
-
|
|
1047
|
+
return React__default.createElement(system.Box, Object.assign({
|
|
1048
|
+
as: "input",
|
|
1049
|
+
type: "range",
|
|
1053
1050
|
css: {
|
|
1054
1051
|
verticalAlign: 'middle'
|
|
1055
1052
|
},
|
|
1053
|
+
variant: "slider." + variant,
|
|
1056
1054
|
className: className
|
|
1057
|
-
});
|
|
1058
|
-
return React__default.createElement("input", Object.assign({
|
|
1059
|
-
type: "range",
|
|
1060
|
-
className: classNames
|
|
1061
1055
|
}, props));
|
|
1062
1056
|
};
|
|
1063
1057
|
|
|
@@ -1085,7 +1079,7 @@ var Option = function Option(_ref) {
|
|
|
1085
1079
|
}
|
|
1086
1080
|
}
|
|
1087
1081
|
}, [state.disabledKeys, item.key]);
|
|
1088
|
-
return React__default.createElement(Box, Object.assign({
|
|
1082
|
+
return React__default.createElement(system.Box, Object.assign({
|
|
1089
1083
|
as: "li"
|
|
1090
1084
|
}, optionProps, {
|
|
1091
1085
|
ref: ref,
|
|
@@ -1105,17 +1099,17 @@ var ListBoxSection = function ListBoxSection(_ref) {
|
|
|
1105
1099
|
headingProps = _useListBoxSection.headingProps,
|
|
1106
1100
|
groupProps = _useListBoxSection.groupProps;
|
|
1107
1101
|
|
|
1108
|
-
return React__default.createElement(Box, Object.assign({
|
|
1102
|
+
return React__default.createElement(system.Box, Object.assign({
|
|
1109
1103
|
as: "li"
|
|
1110
1104
|
}, itemProps, {
|
|
1111
1105
|
css: {
|
|
1112
1106
|
cursor: 'not-allowed'
|
|
1113
1107
|
}
|
|
1114
|
-
}), section.rendered && React__default.createElement(Box, Object.assign({
|
|
1108
|
+
}), section.rendered && React__default.createElement(system.Box, Object.assign({
|
|
1115
1109
|
as: "span"
|
|
1116
1110
|
}, headingProps, {
|
|
1117
1111
|
variant: 'select.section'
|
|
1118
|
-
}), section.rendered), React__default.createElement(Box, Object.assign({
|
|
1112
|
+
}), section.rendered), React__default.createElement(system.Box, Object.assign({
|
|
1119
1113
|
as: "ul"
|
|
1120
1114
|
}, groupProps), [].concat(section.childNodes).map(function (node) {
|
|
1121
1115
|
return React__default.createElement(Option, {
|
|
@@ -1134,8 +1128,9 @@ var ListBox = function ListBox(props) {
|
|
|
1134
1128
|
var _useListBox = listbox.useListBox(props, state, ref),
|
|
1135
1129
|
listBoxProps = _useListBox.listBoxProps;
|
|
1136
1130
|
|
|
1137
|
-
return React__default.createElement(Box, Object.assign({
|
|
1131
|
+
return React__default.createElement(system.Box, Object.assign({
|
|
1138
1132
|
as: "ul",
|
|
1133
|
+
p: "none",
|
|
1139
1134
|
css: {
|
|
1140
1135
|
listStyle: 'none'
|
|
1141
1136
|
}
|
|
@@ -1155,13 +1150,13 @@ var ListBox = function ListBox(props) {
|
|
|
1155
1150
|
}));
|
|
1156
1151
|
};
|
|
1157
1152
|
|
|
1158
|
-
var _excluded$
|
|
1153
|
+
var _excluded$q = ["children", "className", "isOpen", "onClose"];
|
|
1159
1154
|
var Popover = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1160
1155
|
var children = _ref.children,
|
|
1161
1156
|
className = _ref.className,
|
|
1162
1157
|
isOpen = _ref.isOpen,
|
|
1163
1158
|
onClose = _ref.onClose,
|
|
1164
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1159
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
1165
1160
|
|
|
1166
1161
|
// Handle events that should cause the popup to close,
|
|
1167
1162
|
var _useOverlay = overlays$1.useOverlay({
|
|
@@ -1178,7 +1173,7 @@ var Popover = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1178
1173
|
|
|
1179
1174
|
return React__default.createElement(overlays$1.OverlayContainer, null, React__default.createElement(focus.FocusScope, {
|
|
1180
1175
|
restoreFocus: true
|
|
1181
|
-
}, React__default.createElement(Box, Object.assign({}, utils.mergeProps(overlayProps, otherProps, modalProps), {
|
|
1176
|
+
}, React__default.createElement(system.Box, Object.assign({}, utils.mergeProps(overlayProps, otherProps, modalProps), {
|
|
1182
1177
|
className: className,
|
|
1183
1178
|
ref: ref
|
|
1184
1179
|
}), children, React__default.createElement(overlays$1.DismissButton, {
|
|
@@ -1186,9 +1181,13 @@ var Popover = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1186
1181
|
}))));
|
|
1187
1182
|
});
|
|
1188
1183
|
|
|
1189
|
-
var _excluded$
|
|
1184
|
+
var _excluded$r = ["labelVariant", "placeholder", "disabled", "required", "error", "errorMessage", "width", "className"];
|
|
1185
|
+
// ---------------
|
|
1186
|
+
|
|
1190
1187
|
var Select = function Select(_ref) {
|
|
1191
|
-
var _ref$
|
|
1188
|
+
var _ref$labelVariant = _ref.labelVariant,
|
|
1189
|
+
labelVariant = _ref$labelVariant === void 0 ? 'above' : _ref$labelVariant,
|
|
1190
|
+
_ref$placeholder = _ref.placeholder,
|
|
1192
1191
|
placeholder = _ref$placeholder === void 0 ? 'Select an option' : _ref$placeholder,
|
|
1193
1192
|
disabled = _ref.disabled,
|
|
1194
1193
|
required = _ref.required,
|
|
@@ -1196,7 +1195,7 @@ var Select = function Select(_ref) {
|
|
|
1196
1195
|
errorMessage = _ref.errorMessage,
|
|
1197
1196
|
width = _ref.width,
|
|
1198
1197
|
className = _ref.className,
|
|
1199
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1198
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
1200
1199
|
|
|
1201
1200
|
var state = select.useSelectState(props);
|
|
1202
1201
|
var overlayTriggerState = overlays.useOverlayTriggerState({});
|
|
@@ -1233,18 +1232,18 @@ var Select = function Select(_ref) {
|
|
|
1233
1232
|
var _useFocusRing = focus.useFocusRing(),
|
|
1234
1233
|
focusProps = _useFocusRing.focusProps;
|
|
1235
1234
|
|
|
1236
|
-
return React__default.createElement(Box, {
|
|
1235
|
+
return React__default.createElement(system.Box, {
|
|
1237
1236
|
position: "relative",
|
|
1238
1237
|
display: "inline-block",
|
|
1239
1238
|
width: width && width
|
|
1240
|
-
}, props.label && React__default.createElement(Box, null, React__default.createElement(Label, Object.assign({}, labelProps, {
|
|
1239
|
+
}, props.label && React__default.createElement(system.Box, null, React__default.createElement(Label, Object.assign({}, labelProps, {
|
|
1241
1240
|
htmlFor: labelProps.id,
|
|
1242
|
-
variant:
|
|
1243
|
-
}), required ? React__default.createElement(Box, {
|
|
1241
|
+
variant: labelVariant
|
|
1242
|
+
}), required ? React__default.createElement(system.Box, {
|
|
1244
1243
|
as: "span",
|
|
1245
1244
|
display: "inline-flex",
|
|
1246
1245
|
alignItems: "center"
|
|
1247
|
-
}, props.label, React__default.createElement(Box, {
|
|
1246
|
+
}, props.label, React__default.createElement(system.Box, {
|
|
1248
1247
|
as: icons.Required,
|
|
1249
1248
|
size: 16,
|
|
1250
1249
|
css: {
|
|
@@ -1256,34 +1255,34 @@ var Select = function Select(_ref) {
|
|
|
1256
1255
|
label: props.label,
|
|
1257
1256
|
name: props.name,
|
|
1258
1257
|
isDisabled: disabled
|
|
1259
|
-
}), React__default.createElement(Box, Object.assign({
|
|
1258
|
+
}), React__default.createElement(system.Box, Object.assign({
|
|
1260
1259
|
as: "button"
|
|
1261
1260
|
}, utils.mergeProps(buttonProps, focusProps), {
|
|
1262
1261
|
ref: triggerRef,
|
|
1263
1262
|
variant: error && state.isOpen && !disabled ? 'button.select.errorOpened' : error ? 'button.select.error' : state.isOpen && !disabled ? 'button.select.open' : 'button.select',
|
|
1264
1263
|
disabled: disabled,
|
|
1265
1264
|
className: className
|
|
1266
|
-
}), React__default.createElement(Box, Object.assign({
|
|
1265
|
+
}), React__default.createElement(system.Box, Object.assign({
|
|
1267
1266
|
as: "span"
|
|
1268
1267
|
}, valueProps, {
|
|
1269
1268
|
variant: disabled ? 'select.disabled' : 'select'
|
|
1270
|
-
}), state.selectedItem ? state.selectedItem.rendered : placeholder), state.isOpen && !disabled ? React__default.createElement(Box, {
|
|
1269
|
+
}), state.selectedItem ? state.selectedItem.rendered : placeholder), state.isOpen && !disabled ? React__default.createElement(system.Box, {
|
|
1271
1270
|
as: icons.ArrowUp,
|
|
1272
1271
|
size: 16,
|
|
1273
1272
|
css: {
|
|
1274
|
-
fill:
|
|
1273
|
+
fill: 'text'
|
|
1275
1274
|
}
|
|
1276
|
-
}) : React__default.createElement(Box, {
|
|
1275
|
+
}) : React__default.createElement(system.Box, {
|
|
1277
1276
|
as: icons.ArrowDown,
|
|
1278
1277
|
size: 16,
|
|
1279
1278
|
css: {
|
|
1280
1279
|
fill: disabled ? 'disabled' : 'text'
|
|
1281
1280
|
}
|
|
1282
|
-
})), state.isOpen && !disabled && React__default.createElement(Box, Object.assign({
|
|
1281
|
+
})), state.isOpen && !disabled && React__default.createElement(system.Box, Object.assign({
|
|
1283
1282
|
as: Popover
|
|
1284
1283
|
}, overlayProps, positionProps, {
|
|
1285
1284
|
css: {
|
|
1286
|
-
width:
|
|
1285
|
+
width: triggerRef.current && triggerRef.current.offsetWidth + 'px'
|
|
1287
1286
|
},
|
|
1288
1287
|
ref: overlayRef,
|
|
1289
1288
|
isOpen: state.isOpen,
|
|
@@ -1292,11 +1291,11 @@ var Select = function Select(_ref) {
|
|
|
1292
1291
|
error: error
|
|
1293
1292
|
}, menuProps, {
|
|
1294
1293
|
state: state
|
|
1295
|
-
}))), error && errorMessage && React__default.createElement(Box, {
|
|
1294
|
+
}))), error && errorMessage && React__default.createElement(system.Box, {
|
|
1296
1295
|
as: "span",
|
|
1297
1296
|
display: "inline-flex",
|
|
1298
1297
|
alignItems: "center"
|
|
1299
|
-
}, React__default.createElement(Box, {
|
|
1298
|
+
}, React__default.createElement(system.Box, {
|
|
1300
1299
|
as: icons.Exclamation,
|
|
1301
1300
|
size: 16,
|
|
1302
1301
|
css: {
|
|
@@ -1305,38 +1304,12 @@ var Select = function Select(_ref) {
|
|
|
1305
1304
|
}), React__default.createElement(ValidationMessage, null, errorMessage)));
|
|
1306
1305
|
};
|
|
1307
1306
|
|
|
1308
|
-
var _excluded$
|
|
1309
|
-
|
|
1310
|
-
left: 'flex-start',
|
|
1311
|
-
center: 'center',
|
|
1312
|
-
right: 'flex-end'
|
|
1313
|
-
};
|
|
1314
|
-
var Stack = function Stack(_ref) {
|
|
1315
|
-
var _ref$space = _ref.space,
|
|
1316
|
-
space = _ref$space === void 0 ? 'none' : _ref$space,
|
|
1317
|
-
_ref$align = _ref.align,
|
|
1318
|
-
align = _ref$align === void 0 ? 'left' : _ref$align,
|
|
1319
|
-
children = _ref.children,
|
|
1320
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
1307
|
+
var _excluded$s = ["variant", "htmlFor", "label", "error", "errorMessage", "required", "className", "children"];
|
|
1308
|
+
// ---------------
|
|
1321
1309
|
|
|
1322
|
-
return React__default.createElement(Box, Object.assign({}, props, {
|
|
1323
|
-
display: "flex",
|
|
1324
|
-
flexDirection: "column",
|
|
1325
|
-
alignItems: ALIGNMENT[align],
|
|
1326
|
-
css: {
|
|
1327
|
-
'> * + *': {
|
|
1328
|
-
pt: space
|
|
1329
|
-
}
|
|
1330
|
-
}
|
|
1331
|
-
}), React.Children.map(flattenChildren(children), function (child) {
|
|
1332
|
-
return React__default.createElement(Box, null, React__default.cloneElement(child, {}, child.props.children));
|
|
1333
|
-
}));
|
|
1334
|
-
};
|
|
1335
|
-
|
|
1336
|
-
var _excluded$v = ["variant", "htmlFor", "label", "error", "errorMessage", "required", "className", "children"];
|
|
1337
1310
|
var Textarea = function Textarea(_ref) {
|
|
1338
1311
|
var _ref$variant = _ref.variant,
|
|
1339
|
-
variant = _ref$variant === void 0 ? '
|
|
1312
|
+
variant = _ref$variant === void 0 ? '' : _ref$variant,
|
|
1340
1313
|
_ref$htmlFor = _ref.htmlFor,
|
|
1341
1314
|
htmlFor = _ref$htmlFor === void 0 ? 'textarea' : _ref$htmlFor,
|
|
1342
1315
|
label = _ref.label,
|
|
@@ -1345,12 +1318,12 @@ var Textarea = function Textarea(_ref) {
|
|
|
1345
1318
|
required = _ref.required,
|
|
1346
1319
|
_ref$className = _ref.className,
|
|
1347
1320
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1348
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1321
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
1349
1322
|
|
|
1350
|
-
return React__default.createElement(Box, null, label && React__default.createElement(Label, {
|
|
1323
|
+
return React__default.createElement(system.Box, null, label && React__default.createElement(Label, {
|
|
1351
1324
|
htmlFor: htmlFor,
|
|
1352
1325
|
required: required
|
|
1353
|
-
}, label), React__default.createElement(Box, Object.assign({
|
|
1326
|
+
}, label), React__default.createElement(system.Box, Object.assign({
|
|
1354
1327
|
as: "textarea"
|
|
1355
1328
|
}, props, {
|
|
1356
1329
|
display: "block",
|
|
@@ -1364,16 +1337,22 @@ var Textarea = function Textarea(_ref) {
|
|
|
1364
1337
|
}), errorMessage));
|
|
1365
1338
|
};
|
|
1366
1339
|
|
|
1367
|
-
var _excluded$
|
|
1340
|
+
var _excluded$t = ["children"];
|
|
1368
1341
|
var Container = function Container(_ref) {
|
|
1369
1342
|
var children = _ref.children,
|
|
1370
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1343
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
1371
1344
|
|
|
1372
|
-
return React__default.createElement(Box, Object.assign({}, props, {
|
|
1345
|
+
return React__default.createElement(system.Box, Object.assign({}, props, {
|
|
1373
1346
|
width: "100%"
|
|
1374
1347
|
}), children);
|
|
1375
1348
|
};
|
|
1376
1349
|
|
|
1350
|
+
Object.defineProperty(exports, 'Box', {
|
|
1351
|
+
enumerable: true,
|
|
1352
|
+
get: function () {
|
|
1353
|
+
return system.Box;
|
|
1354
|
+
}
|
|
1355
|
+
});
|
|
1377
1356
|
Object.defineProperty(exports, 'ThemeProvider', {
|
|
1378
1357
|
enumerable: true,
|
|
1379
1358
|
get: function () {
|
|
@@ -1386,6 +1365,12 @@ Object.defineProperty(exports, 'useTheme', {
|
|
|
1386
1365
|
return system.useTheme;
|
|
1387
1366
|
}
|
|
1388
1367
|
});
|
|
1368
|
+
Object.defineProperty(exports, 'VisuallyHidden', {
|
|
1369
|
+
enumerable: true,
|
|
1370
|
+
get: function () {
|
|
1371
|
+
return visuallyHidden.VisuallyHidden;
|
|
1372
|
+
}
|
|
1373
|
+
});
|
|
1389
1374
|
Object.defineProperty(exports, 'SSRProvider', {
|
|
1390
1375
|
enumerable: true,
|
|
1391
1376
|
get: function () {
|
|
@@ -1407,7 +1392,6 @@ Object.defineProperty(exports, 'Section', {
|
|
|
1407
1392
|
exports.ActionGroup = ActionGroup;
|
|
1408
1393
|
exports.Alert = Alert;
|
|
1409
1394
|
exports.Badge = Badge;
|
|
1410
|
-
exports.Box = Box;
|
|
1411
1395
|
exports.Button = Button;
|
|
1412
1396
|
exports.Card = Card;
|
|
1413
1397
|
exports.Checkbox = Checkbox;
|
|
@@ -1417,11 +1401,11 @@ exports.Container = Container;
|
|
|
1417
1401
|
exports.Dialog = Dialog;
|
|
1418
1402
|
exports.Divider = Divider;
|
|
1419
1403
|
exports.Field = Field;
|
|
1420
|
-
exports.Heading = Heading;
|
|
1421
|
-
exports.Hidden = Hidden;
|
|
1422
1404
|
exports.Image = Image;
|
|
1405
|
+
exports.Inline = Inline;
|
|
1423
1406
|
exports.Input = Input;
|
|
1424
1407
|
exports.Label = Label;
|
|
1408
|
+
exports.LabelBase = LabelBase;
|
|
1425
1409
|
exports.Link = Link;
|
|
1426
1410
|
exports.MarigoldProvider = MarigoldProvider;
|
|
1427
1411
|
exports.Menu = Menu;
|