@pingux/astro 2.150.0-alpha.2 → 2.150.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/lib/cjs/components/Box/Box.js +3 -5
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.js +2 -4
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +5 -144
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +5 -106
- package/lib/cjs/styles/themes/next-gen/variants/button.js +4 -40
- package/lib/cjs/styles/themes/next-gen/variants/input.js +0 -21
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +0 -38
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +16 -2
- package/lib/cjs/types/iconButtonToggle.d.ts +0 -2
- package/lib/components/Box/Box.js +3 -5
- package/lib/components/IconButtonToggle/IconButtonToggle.js +2 -4
- package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/styles/themes/next-gen/variants/button.js +4 -40
- package/lib/styles/themes/next-gen/variants/input.js +0 -21
- package/lib/styles/themes/next-gen/variants/variants.js +16 -2
- package/package.json +1 -1
- package/lib/cjs/styles/themes/next-gen/stories/OnyxInputPatterns.chromatic.stories.d.ts +0 -11
- package/lib/cjs/styles/themes/next-gen/stories/OnyxInputPatterns.chromatic.stories.js +0 -197
- package/lib/cjs/styles/themes/next-gen/variants/box.d.ts +0 -61
- package/lib/cjs/styles/themes/next-gen/variants/box.js +0 -58
- package/lib/styles/themes/next-gen/stories/OnyxInputPatterns.chromatic.stories.js +0 -178
- package/lib/styles/themes/next-gen/variants/box.js +0 -49
|
@@ -26,7 +26,7 @@ var _styledSystem = require("styled-system");
|
|
|
26
26
|
var _themeUi = require("theme-ui");
|
|
27
27
|
var _hooks = require("../../hooks");
|
|
28
28
|
var _react2 = require("@emotion/react");
|
|
29
|
-
var _excluded = ["as", "flexDirection", "gap", "isRow", "isDisabled", "className", "fontSize", "sx"
|
|
29
|
+
var _excluded = ["as", "flexDirection", "gap", "isRow", "isDisabled", "className", "fontSize", "sx"];
|
|
30
30
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
31
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
32
32
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -36,7 +36,7 @@ var ExtendedBox = /*#__PURE__*/(0, _base["default"])(_themeUi.Box, process.env.N
|
|
|
36
36
|
} : {
|
|
37
37
|
target: "ejf9h0h0",
|
|
38
38
|
label: "ExtendedBox"
|
|
39
|
-
})(_styledSystem.layout, _styledSystem.flexbox, _styledSystem.typography, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
39
|
+
})(_styledSystem.layout, _styledSystem.flexbox, _styledSystem.typography, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0JveC9Cb3gudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVNvQiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMvY29tcG9uZW50cy9Cb3gvQm94LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBmb3J3YXJkUmVmLCB1c2VNZW1vIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgdG9OdW1iZXIgfSBmcm9tICdsb2Rhc2gnO1xuaW1wb3J0IHsgZmxleGJveCwgbGF5b3V0LCB0eXBvZ3JhcGh5IH0gZnJvbSAnc3R5bGVkLXN5c3RlbSc7XG5pbXBvcnQgeyBCb3ggYXMgVGhlbWVVSUJveCB9IGZyb20gJ3RoZW1lLXVpJztcblxuaW1wb3J0IHsgdXNlUHJvcFdhcm5pbmcsIHVzZVN0YXR1c0NsYXNzZXMgfSBmcm9tICcuLi8uLi9ob29rcyc7XG5pbXBvcnQgeyBCb3hQcm9wcyB9IGZyb20gJy4uLy4uL3R5cGVzJztcblxuY29uc3QgRXh0ZW5kZWRCb3ggPSBzdHlsZWQoVGhlbWVVSUJveCkoXG4gIGxheW91dCxcbiAgZmxleGJveCxcbiAgdHlwb2dyYXBoeSxcbik7XG5cbmNvbnN0IEJveCA9IGZvcndhcmRSZWY8SFRNTEVsZW1lbnQsIEJveFByb3BzPigocHJvcHMsIHJlZikgPT4ge1xuICBjb25zdCB7XG4gICAgYXMgPSAnZGl2JyxcbiAgICBmbGV4RGlyZWN0aW9uLFxuICAgIGdhcCxcbiAgICBpc1JvdyA9IGZhbHNlLFxu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17ZmR9XG4gICAgICB2YXJpYW50PVwiYm94LmJhc2VcIlxuICAgICAgZm9udFNpemU9e2N1c3RvbUZvbnRTaXplfVxuICAgICAgYXM9e2FzfVxuICAgICAgey4uLm90aGVyc31cbiAgICAgIHN4PXtjdXN0b219XG4gICAgLz5cbiAgKTtcbn0pO1xuXG5Cb3guZGlzcGxheU5hbWUgPSAnQm94JztcblxuZXhwb3J0IGRlZmF1bHQgQm94O1xuIl19 */");
|
|
40
40
|
var Box = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
41
41
|
var _props$as = props.as,
|
|
42
42
|
as = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -49,8 +49,6 @@ var Box = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
49
49
|
className = props.className,
|
|
50
50
|
fontSize = props.fontSize,
|
|
51
51
|
sx = props.sx,
|
|
52
|
-
_props$variant = props.variant,
|
|
53
|
-
variant = _props$variant === void 0 ? 'box.base' : _props$variant,
|
|
54
52
|
others = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
|
55
53
|
var fd = flexDirection || isRow ? 'row' : 'column';
|
|
56
54
|
var custom = _objectSpread({}, sx);
|
|
@@ -74,7 +72,7 @@ var Box = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
74
72
|
ref: ref,
|
|
75
73
|
display: "flex",
|
|
76
74
|
flexDirection: fd,
|
|
77
|
-
variant:
|
|
75
|
+
variant: "box.base",
|
|
78
76
|
fontSize: customFontSize,
|
|
79
77
|
as: as
|
|
80
78
|
}, others, {
|
|
@@ -24,8 +24,7 @@ var IconButtonToggle = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
|
|
|
24
24
|
iconProps = props.iconProps,
|
|
25
25
|
isToggled = props.isToggled,
|
|
26
26
|
onToggle = props.onToggle,
|
|
27
|
-
title = props.title
|
|
28
|
-
variant = props.variant;
|
|
27
|
+
title = props.title;
|
|
29
28
|
var conditionalRenderProps = {
|
|
30
29
|
ComponentToRenderIfTrue: toggledIcon,
|
|
31
30
|
ComponentToRenderIfFalse: defaultIcon,
|
|
@@ -38,8 +37,7 @@ var IconButtonToggle = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
|
|
|
38
37
|
return (0, _react2.jsx)(_IconButton["default"], (0, _extends2["default"])({
|
|
39
38
|
onPress: handleConditionChange,
|
|
40
39
|
ref: ref,
|
|
41
|
-
title: title
|
|
42
|
-
variant: variant
|
|
40
|
+
title: title
|
|
43
41
|
}, buttonProps), (0, _react2.jsx)(_Icon["default"], (0, _extends2["default"])({
|
|
44
42
|
icon: RenderedComponent
|
|
45
43
|
}, iconProps)));
|
|
@@ -28,7 +28,7 @@ var astroBlacklistStory = {
|
|
|
28
28
|
Loader: ['Circular', 'Custom Circular']
|
|
29
29
|
};
|
|
30
30
|
exports.astroBlacklistStory = astroBlacklistStory;
|
|
31
|
-
var nextGenOnlyComponents = ['NavigationHeader', 'Prompt', 'AI Panel', 'Response', 'Suggestions', 'Prompt Input', 'Footer'
|
|
31
|
+
var nextGenOnlyComponents = ['NavigationHeader', 'Prompt', 'AI Panel', 'Response', 'Suggestions', 'Prompt Input', 'Footer'];
|
|
32
32
|
exports.nextGenOnlyComponents = nextGenOnlyComponents;
|
|
33
33
|
var _default = nextGenConvertedComponents;
|
|
34
34
|
exports["default"] = _default;
|
|
@@ -431,20 +431,8 @@ declare const _default: {
|
|
|
431
431
|
backgroundColor: string;
|
|
432
432
|
borderColor: string;
|
|
433
433
|
color: string;
|
|
434
|
-
'&.is-focused': {
|
|
435
|
-
outlineColor: string;
|
|
436
|
-
backgroundColor: string;
|
|
437
|
-
outline: string;
|
|
438
|
-
outlineOffset: string;
|
|
439
|
-
};
|
|
440
|
-
'&.is-pressed': {
|
|
441
|
-
backgroundColor: string;
|
|
442
|
-
color: string;
|
|
443
|
-
};
|
|
444
434
|
'&.is-hovered': {
|
|
445
435
|
boxShadow: string;
|
|
446
|
-
backgroundColor: string;
|
|
447
|
-
color: string;
|
|
448
436
|
};
|
|
449
437
|
alignItems: string;
|
|
450
438
|
justifyContent: string;
|
|
@@ -468,6 +456,11 @@ declare const _default: {
|
|
|
468
456
|
'&.is-disabled': {
|
|
469
457
|
opacity: number;
|
|
470
458
|
};
|
|
459
|
+
'&.is-focused': {
|
|
460
|
+
outline: string;
|
|
461
|
+
outlineColor: string;
|
|
462
|
+
outlineOffset: string;
|
|
463
|
+
};
|
|
471
464
|
transition: string;
|
|
472
465
|
};
|
|
473
466
|
inverse: {
|
|
@@ -1483,47 +1476,6 @@ declare const _default: {
|
|
|
1483
1476
|
outlineOffset: string;
|
|
1484
1477
|
};
|
|
1485
1478
|
};
|
|
1486
|
-
passwordVisibilityIcon: {
|
|
1487
|
-
right: number;
|
|
1488
|
-
padding: string;
|
|
1489
|
-
border: string;
|
|
1490
|
-
'&:hover, &.is-pressed': {
|
|
1491
|
-
background: string;
|
|
1492
|
-
boxShadow: string;
|
|
1493
|
-
};
|
|
1494
|
-
'&.is-focused': {
|
|
1495
|
-
outline: string;
|
|
1496
|
-
outlineOffset: string;
|
|
1497
|
-
outlineColor: string;
|
|
1498
|
-
};
|
|
1499
|
-
position: string;
|
|
1500
|
-
top: string;
|
|
1501
|
-
transform: string;
|
|
1502
|
-
height: string;
|
|
1503
|
-
width: string;
|
|
1504
|
-
justifyContent: string;
|
|
1505
|
-
path: {
|
|
1506
|
-
fill: string;
|
|
1507
|
-
};
|
|
1508
|
-
'&.is-hovered': {
|
|
1509
|
-
backgroundColor: string;
|
|
1510
|
-
path: {
|
|
1511
|
-
fill: string;
|
|
1512
|
-
};
|
|
1513
|
-
};
|
|
1514
|
-
'&.is-pressed': {
|
|
1515
|
-
backgroundColor: string;
|
|
1516
|
-
path: {
|
|
1517
|
-
fill: string;
|
|
1518
|
-
};
|
|
1519
|
-
};
|
|
1520
|
-
p: string;
|
|
1521
|
-
transition: string;
|
|
1522
|
-
outline: string;
|
|
1523
|
-
borderRadius: string;
|
|
1524
|
-
cursor: string;
|
|
1525
|
-
boxShadow: string;
|
|
1526
|
-
};
|
|
1527
1479
|
};
|
|
1528
1480
|
modalCloseButton: {
|
|
1529
1481
|
position: string;
|
|
@@ -1623,59 +1575,6 @@ declare const _default: {
|
|
|
1623
1575
|
outline: string;
|
|
1624
1576
|
};
|
|
1625
1577
|
};
|
|
1626
|
-
ButtonInputGroupContentRight: {
|
|
1627
|
-
right: number;
|
|
1628
|
-
padding: string;
|
|
1629
|
-
borderRadius: string;
|
|
1630
|
-
borderWidth: string;
|
|
1631
|
-
borderLeftWidth: string;
|
|
1632
|
-
borderRightWidth: string;
|
|
1633
|
-
borderLeftColor: string;
|
|
1634
|
-
position: string;
|
|
1635
|
-
top: string;
|
|
1636
|
-
transform: string;
|
|
1637
|
-
height: string;
|
|
1638
|
-
width: string;
|
|
1639
|
-
justifyContent: string;
|
|
1640
|
-
backgroundColor: string;
|
|
1641
|
-
borderColor: string;
|
|
1642
|
-
color: string;
|
|
1643
|
-
'&.is-focused': {
|
|
1644
|
-
outlineColor: string;
|
|
1645
|
-
backgroundColor: string;
|
|
1646
|
-
outline: string;
|
|
1647
|
-
outlineOffset: string;
|
|
1648
|
-
};
|
|
1649
|
-
'&.is-pressed': {
|
|
1650
|
-
backgroundColor: string;
|
|
1651
|
-
color: string;
|
|
1652
|
-
};
|
|
1653
|
-
'&.is-hovered': {
|
|
1654
|
-
boxShadow: string;
|
|
1655
|
-
backgroundColor: string;
|
|
1656
|
-
color: string;
|
|
1657
|
-
};
|
|
1658
|
-
alignItems: string;
|
|
1659
|
-
flexShrink: number;
|
|
1660
|
-
minWidth: string;
|
|
1661
|
-
cursor: string;
|
|
1662
|
-
display: string;
|
|
1663
|
-
maxWidth: string;
|
|
1664
|
-
fontFamily: string;
|
|
1665
|
-
fontSize: string;
|
|
1666
|
-
fontWeight: number;
|
|
1667
|
-
textAlign: string;
|
|
1668
|
-
verticalAlign: string;
|
|
1669
|
-
lineHeight: number;
|
|
1670
|
-
border: string;
|
|
1671
|
-
px: string;
|
|
1672
|
-
py: string;
|
|
1673
|
-
maxHeight: string;
|
|
1674
|
-
'&.is-disabled': {
|
|
1675
|
-
opacity: number;
|
|
1676
|
-
};
|
|
1677
|
-
transition: string;
|
|
1678
|
-
};
|
|
1679
1578
|
};
|
|
1680
1579
|
forms: {
|
|
1681
1580
|
input: import("theme-ui").ThemeUICSSObject;
|
|
@@ -3663,44 +3562,6 @@ declare const _default: {
|
|
|
3663
3562
|
boxShadow: string;
|
|
3664
3563
|
};
|
|
3665
3564
|
};
|
|
3666
|
-
inputDropDownContentLeft: {
|
|
3667
|
-
left: number;
|
|
3668
|
-
position: string;
|
|
3669
|
-
top: string;
|
|
3670
|
-
transform: string;
|
|
3671
|
-
height: string;
|
|
3672
|
-
width: string;
|
|
3673
|
-
justifyContent: string;
|
|
3674
|
-
};
|
|
3675
|
-
inputGroupContentLeft: {
|
|
3676
|
-
left: number;
|
|
3677
|
-
borderRight: string;
|
|
3678
|
-
position: string;
|
|
3679
|
-
top: string;
|
|
3680
|
-
transform: string;
|
|
3681
|
-
height: string;
|
|
3682
|
-
width: string;
|
|
3683
|
-
justifyContent: string;
|
|
3684
|
-
};
|
|
3685
|
-
inputDropDownContentRight: {
|
|
3686
|
-
right: number;
|
|
3687
|
-
position: string;
|
|
3688
|
-
top: string;
|
|
3689
|
-
transform: string;
|
|
3690
|
-
height: string;
|
|
3691
|
-
width: string;
|
|
3692
|
-
justifyContent: string;
|
|
3693
|
-
};
|
|
3694
|
-
inputGroupContentRight: {
|
|
3695
|
-
right: number;
|
|
3696
|
-
borderLeft: string;
|
|
3697
|
-
position: string;
|
|
3698
|
-
top: string;
|
|
3699
|
-
transform: string;
|
|
3700
|
-
height: string;
|
|
3701
|
-
width: string;
|
|
3702
|
-
justifyContent: string;
|
|
3703
|
-
};
|
|
3704
3565
|
};
|
|
3705
3566
|
buttonBar: {
|
|
3706
3567
|
container: {
|
|
@@ -139,20 +139,8 @@ declare const buttons: {
|
|
|
139
139
|
backgroundColor: string;
|
|
140
140
|
borderColor: string;
|
|
141
141
|
color: string;
|
|
142
|
-
'&.is-focused': {
|
|
143
|
-
outlineColor: string;
|
|
144
|
-
backgroundColor: string;
|
|
145
|
-
outline: string;
|
|
146
|
-
outlineOffset: string;
|
|
147
|
-
};
|
|
148
|
-
'&.is-pressed': {
|
|
149
|
-
backgroundColor: string;
|
|
150
|
-
color: string;
|
|
151
|
-
};
|
|
152
142
|
'&.is-hovered': {
|
|
153
143
|
boxShadow: string;
|
|
154
|
-
backgroundColor: string;
|
|
155
|
-
color: string;
|
|
156
144
|
};
|
|
157
145
|
alignItems: string;
|
|
158
146
|
justifyContent: string;
|
|
@@ -176,6 +164,11 @@ declare const buttons: {
|
|
|
176
164
|
'&.is-disabled': {
|
|
177
165
|
opacity: number;
|
|
178
166
|
};
|
|
167
|
+
'&.is-focused': {
|
|
168
|
+
outline: string;
|
|
169
|
+
outlineColor: string;
|
|
170
|
+
outlineOffset: string;
|
|
171
|
+
};
|
|
179
172
|
transition: string;
|
|
180
173
|
};
|
|
181
174
|
inverse: {
|
|
@@ -1191,47 +1184,6 @@ declare const buttons: {
|
|
|
1191
1184
|
outlineOffset: string;
|
|
1192
1185
|
};
|
|
1193
1186
|
};
|
|
1194
|
-
passwordVisibilityIcon: {
|
|
1195
|
-
right: number;
|
|
1196
|
-
padding: string;
|
|
1197
|
-
border: string;
|
|
1198
|
-
'&:hover, &.is-pressed': {
|
|
1199
|
-
background: string;
|
|
1200
|
-
boxShadow: string;
|
|
1201
|
-
};
|
|
1202
|
-
'&.is-focused': {
|
|
1203
|
-
outline: string;
|
|
1204
|
-
outlineOffset: string;
|
|
1205
|
-
outlineColor: string;
|
|
1206
|
-
};
|
|
1207
|
-
position: string;
|
|
1208
|
-
top: string;
|
|
1209
|
-
transform: string;
|
|
1210
|
-
height: string;
|
|
1211
|
-
width: string;
|
|
1212
|
-
justifyContent: string;
|
|
1213
|
-
path: {
|
|
1214
|
-
fill: string;
|
|
1215
|
-
};
|
|
1216
|
-
'&.is-hovered': {
|
|
1217
|
-
backgroundColor: string;
|
|
1218
|
-
path: {
|
|
1219
|
-
fill: string;
|
|
1220
|
-
};
|
|
1221
|
-
};
|
|
1222
|
-
'&.is-pressed': {
|
|
1223
|
-
backgroundColor: string;
|
|
1224
|
-
path: {
|
|
1225
|
-
fill: string;
|
|
1226
|
-
};
|
|
1227
|
-
};
|
|
1228
|
-
p: string;
|
|
1229
|
-
transition: string;
|
|
1230
|
-
outline: string;
|
|
1231
|
-
borderRadius: string;
|
|
1232
|
-
cursor: string;
|
|
1233
|
-
boxShadow: string;
|
|
1234
|
-
};
|
|
1235
1187
|
};
|
|
1236
1188
|
modalCloseButton: {
|
|
1237
1189
|
position: string;
|
|
@@ -1331,58 +1283,5 @@ declare const buttons: {
|
|
|
1331
1283
|
outline: string;
|
|
1332
1284
|
};
|
|
1333
1285
|
};
|
|
1334
|
-
ButtonInputGroupContentRight: {
|
|
1335
|
-
right: number;
|
|
1336
|
-
padding: string;
|
|
1337
|
-
borderRadius: string;
|
|
1338
|
-
borderWidth: string;
|
|
1339
|
-
borderLeftWidth: string;
|
|
1340
|
-
borderRightWidth: string;
|
|
1341
|
-
borderLeftColor: string;
|
|
1342
|
-
position: string;
|
|
1343
|
-
top: string;
|
|
1344
|
-
transform: string;
|
|
1345
|
-
height: string;
|
|
1346
|
-
width: string;
|
|
1347
|
-
justifyContent: string;
|
|
1348
|
-
backgroundColor: string;
|
|
1349
|
-
borderColor: string;
|
|
1350
|
-
color: string;
|
|
1351
|
-
'&.is-focused': {
|
|
1352
|
-
outlineColor: string;
|
|
1353
|
-
backgroundColor: string;
|
|
1354
|
-
outline: string;
|
|
1355
|
-
outlineOffset: string;
|
|
1356
|
-
};
|
|
1357
|
-
'&.is-pressed': {
|
|
1358
|
-
backgroundColor: string;
|
|
1359
|
-
color: string;
|
|
1360
|
-
};
|
|
1361
|
-
'&.is-hovered': {
|
|
1362
|
-
boxShadow: string;
|
|
1363
|
-
backgroundColor: string;
|
|
1364
|
-
color: string;
|
|
1365
|
-
};
|
|
1366
|
-
alignItems: string;
|
|
1367
|
-
flexShrink: number;
|
|
1368
|
-
minWidth: string;
|
|
1369
|
-
cursor: string;
|
|
1370
|
-
display: string;
|
|
1371
|
-
maxWidth: string;
|
|
1372
|
-
fontFamily: string;
|
|
1373
|
-
fontSize: string;
|
|
1374
|
-
fontWeight: number;
|
|
1375
|
-
textAlign: string;
|
|
1376
|
-
verticalAlign: string;
|
|
1377
|
-
lineHeight: number;
|
|
1378
|
-
border: string;
|
|
1379
|
-
px: string;
|
|
1380
|
-
py: string;
|
|
1381
|
-
maxHeight: string;
|
|
1382
|
-
'&.is-disabled': {
|
|
1383
|
-
opacity: number;
|
|
1384
|
-
};
|
|
1385
|
-
transition: string;
|
|
1386
|
-
};
|
|
1387
1286
|
};
|
|
1388
1287
|
export default buttons;
|
|
@@ -18,7 +18,6 @@ var _chromaJs = _interopRequireDefault(require("chroma-js"));
|
|
|
18
18
|
var _codeView = require("../codeView/codeView");
|
|
19
19
|
var _colors = _interopRequireDefault(require("../colors/colors"));
|
|
20
20
|
var _tShirtSizes = _interopRequireDefault(require("../customProperties/tShirtSizes"));
|
|
21
|
-
var _box = require("./box");
|
|
22
21
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
23
22
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
24
23
|
var primaryBlue = _colors["default"].primary,
|
|
@@ -118,19 +117,8 @@ var secondary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
|
|
118
117
|
var tertiary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
|
119
118
|
backgroundColor: 'transparent',
|
|
120
119
|
borderColor: 'border.base',
|
|
121
|
-
color: '
|
|
122
|
-
'&.is-
|
|
123
|
-
outlineColor: 'gray-700',
|
|
124
|
-
backgroundColor: 'background.secondary'
|
|
125
|
-
}),
|
|
126
|
-
'&.is-pressed': {
|
|
127
|
-
backgroundColor: 'background.secondary',
|
|
128
|
-
color: 'font.base'
|
|
129
|
-
},
|
|
130
|
-
'&.is-hovered': _objectSpread({
|
|
131
|
-
backgroundColor: 'background.secondary',
|
|
132
|
-
color: 'font.base'
|
|
133
|
-
}, boxShadowNone)
|
|
120
|
+
color: 'text.secondary',
|
|
121
|
+
'&.is-hovered': _objectSpread({}, boxShadowNone)
|
|
134
122
|
});
|
|
135
123
|
var outlineCritical = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
|
136
124
|
backgroundColor: 'transparent',
|
|
@@ -520,21 +508,7 @@ var iconButtons = {
|
|
|
520
508
|
}
|
|
521
509
|
}
|
|
522
510
|
}),
|
|
523
|
-
hintButton: _objectSpread({}, hintButton)
|
|
524
|
-
passwordVisibilityIcon: _objectSpread(_objectSpread(_objectSpread({}, baseIconButton), _box.commonContentProps), {}, {
|
|
525
|
-
right: 0,
|
|
526
|
-
padding: '12px 20px',
|
|
527
|
-
border: '0px solid !important',
|
|
528
|
-
'&:hover, &.is-pressed': {
|
|
529
|
-
background: 'transparent',
|
|
530
|
-
boxShadow: 'none'
|
|
531
|
-
},
|
|
532
|
-
'&.is-focused': {
|
|
533
|
-
outline: '2px solid',
|
|
534
|
-
outlineOffset: '2px',
|
|
535
|
-
outlineColor: 'gray-700'
|
|
536
|
-
}
|
|
537
|
-
})
|
|
511
|
+
hintButton: _objectSpread({}, hintButton)
|
|
538
512
|
};
|
|
539
513
|
var listBoxLink = {
|
|
540
514
|
color: 'active',
|
|
@@ -563,15 +537,6 @@ var listBoxLink = {
|
|
|
563
537
|
}
|
|
564
538
|
})
|
|
565
539
|
};
|
|
566
|
-
var ButtonInputGroupContentRight = _objectSpread(_objectSpread(_objectSpread({}, tertiary), _box.commonContentProps), {}, {
|
|
567
|
-
right: 0,
|
|
568
|
-
padding: '12px 20px',
|
|
569
|
-
borderRadius: '0px 4px 4px 0px !important',
|
|
570
|
-
borderWidth: '0px !important',
|
|
571
|
-
borderLeftWidth: '1px !important',
|
|
572
|
-
borderRightWidth: '1px !important',
|
|
573
|
-
borderLeftColor: 'gray-500'
|
|
574
|
-
});
|
|
575
540
|
var buttons = {
|
|
576
541
|
neutral: neutral,
|
|
577
542
|
primary: primary,
|
|
@@ -595,8 +560,7 @@ var buttons = {
|
|
|
595
560
|
iconButtons: iconButtons,
|
|
596
561
|
modalCloseButton: modalCloseButton,
|
|
597
562
|
aiChat: aiChat,
|
|
598
|
-
paginationMenu: paginationMenu
|
|
599
|
-
ButtonInputGroupContentRight: ButtonInputGroupContentRight
|
|
563
|
+
paginationMenu: paginationMenu
|
|
600
564
|
};
|
|
601
565
|
var _default = buttons;
|
|
602
566
|
exports["default"] = _default;
|
|
@@ -201,25 +201,4 @@ input.promptInputAttachmentWrapper = {
|
|
|
201
201
|
overflowY: 'hidden',
|
|
202
202
|
whiteSpace: 'nowrap',
|
|
203
203
|
px: '.75rem'
|
|
204
|
-
};
|
|
205
|
-
input.dropDownContentRight = {
|
|
206
|
-
background: 'inherit',
|
|
207
|
-
'& button': {
|
|
208
|
-
borderRadius: '0px 4px 4px 0px !important',
|
|
209
|
-
'&.is-focused': {
|
|
210
|
-
outline: '2px solid',
|
|
211
|
-
outlineOffset: '2px',
|
|
212
|
-
outlineColor: 'gray-700'
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
input.dropDownContentLeft = {
|
|
217
|
-
'& button': {
|
|
218
|
-
borderRadius: '4px 0px 0px 4px !important',
|
|
219
|
-
'&.is-focused': {
|
|
220
|
-
outline: '2px solid',
|
|
221
|
-
outlineOffset: '2px',
|
|
222
|
-
outlineColor: 'gray-700'
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
204
|
};
|
|
@@ -168,44 +168,6 @@ declare const _default: {
|
|
|
168
168
|
boxShadow: string;
|
|
169
169
|
};
|
|
170
170
|
};
|
|
171
|
-
inputDropDownContentLeft: {
|
|
172
|
-
left: number;
|
|
173
|
-
position: string;
|
|
174
|
-
top: string;
|
|
175
|
-
transform: string;
|
|
176
|
-
height: string;
|
|
177
|
-
width: string;
|
|
178
|
-
justifyContent: string;
|
|
179
|
-
};
|
|
180
|
-
inputGroupContentLeft: {
|
|
181
|
-
left: number;
|
|
182
|
-
borderRight: string;
|
|
183
|
-
position: string;
|
|
184
|
-
top: string;
|
|
185
|
-
transform: string;
|
|
186
|
-
height: string;
|
|
187
|
-
width: string;
|
|
188
|
-
justifyContent: string;
|
|
189
|
-
};
|
|
190
|
-
inputDropDownContentRight: {
|
|
191
|
-
right: number;
|
|
192
|
-
position: string;
|
|
193
|
-
top: string;
|
|
194
|
-
transform: string;
|
|
195
|
-
height: string;
|
|
196
|
-
width: string;
|
|
197
|
-
justifyContent: string;
|
|
198
|
-
};
|
|
199
|
-
inputGroupContentRight: {
|
|
200
|
-
right: number;
|
|
201
|
-
borderLeft: string;
|
|
202
|
-
position: string;
|
|
203
|
-
top: string;
|
|
204
|
-
transform: string;
|
|
205
|
-
height: string;
|
|
206
|
-
width: string;
|
|
207
|
-
justifyContent: string;
|
|
208
|
-
};
|
|
209
171
|
};
|
|
210
172
|
buttonBar: {
|
|
211
173
|
container: {
|
|
@@ -19,9 +19,9 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/he
|
|
|
19
19
|
var _Attachment = _interopRequireDefault(require("../../../../components/AIComponents/Attachment/Attachment.styles"));
|
|
20
20
|
var _Skeleton = _interopRequireDefault(require("../../../../components/Skeleton/Skeleton.styles"));
|
|
21
21
|
var _codeView = _interopRequireDefault(require("../codeView/codeView"));
|
|
22
|
+
var _colors = _interopRequireDefault(require("../colors/colors"));
|
|
22
23
|
var _accordion = _interopRequireDefault(require("./accordion"));
|
|
23
24
|
var _avatar = require("./avatar");
|
|
24
|
-
var _box = require("./box");
|
|
25
25
|
var _button = _interopRequireWildcard(require("./button"));
|
|
26
26
|
var _callout = _interopRequireDefault(require("./callout"));
|
|
27
27
|
var _dataTable = require("./dataTable");
|
|
@@ -394,7 +394,21 @@ var _default = {
|
|
|
394
394
|
attachment: _Attachment["default"],
|
|
395
395
|
avatar: _avatar.avatar,
|
|
396
396
|
breadcrumb: breadcrumb,
|
|
397
|
-
box:
|
|
397
|
+
box: {
|
|
398
|
+
indeterminateCheckboxIcon: {
|
|
399
|
+
height: '19.25px',
|
|
400
|
+
width: '19.25px',
|
|
401
|
+
'&.is-disabled': {
|
|
402
|
+
'& rect[id="indeterminate-checkbox-icon-wrapper"]': {
|
|
403
|
+
fill: 'gray-500',
|
|
404
|
+
stroke: 'gray-500'
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
'&.is-focused': {
|
|
408
|
+
boxShadow: "inset 0px 0px 0px 1px ".concat(_colors["default"].focus)
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
},
|
|
398
412
|
buttonBar: buttonBar,
|
|
399
413
|
callout: _callout["default"],
|
|
400
414
|
codeView: _codeView["default"],
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
|
4
4
|
import _styled from "@emotion/styled/base";
|
|
5
|
-
var _excluded = ["as", "flexDirection", "gap", "isRow", "isDisabled", "className", "fontSize", "sx"
|
|
5
|
+
var _excluded = ["as", "flexDirection", "gap", "isRow", "isDisabled", "className", "fontSize", "sx"];
|
|
6
6
|
import _Number$isNaN from "@babel/runtime-corejs3/core-js-stable/number/is-nan";
|
|
7
7
|
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
8
8
|
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
@@ -25,7 +25,7 @@ var ExtendedBox = /*#__PURE__*/_styled(ThemeUIBox, process.env.NODE_ENV === "pro
|
|
|
25
25
|
} : {
|
|
26
26
|
target: "ejf9h0h0",
|
|
27
27
|
label: "ExtendedBox"
|
|
28
|
-
})(layout, flexbox, typography, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
28
|
+
})(layout, flexbox, typography, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0JveC9Cb3gudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVNvQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9Cb3gvQm94LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBmb3J3YXJkUmVmLCB1c2VNZW1vIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgdG9OdW1iZXIgfSBmcm9tICdsb2Rhc2gnO1xuaW1wb3J0IHsgZmxleGJveCwgbGF5b3V0LCB0eXBvZ3JhcGh5IH0gZnJvbSAnc3R5bGVkLXN5c3RlbSc7XG5pbXBvcnQgeyBCb3ggYXMgVGhlbWVVSUJveCB9IGZyb20gJ3RoZW1lLXV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AgIH07XG4gIH1cblxuICBjb25zdCBjdXN0b21Gb250U2l6ZSA9IHVzZU1lbW8oKCkgPT4ge1xuICAgIGNvbnN0IG51bWVyaWNhbEZvbnRTaXplID0gdG9OdW1iZXIoZm9udFNpemUpO1xuICAgIGlmIChOdW1iZXIuaXNOYU4obnVtZXJpY2FsRm9udFNpemUpKSB7XG4gICAgICByZXR1cm4gZm9udFNpemU7XG4gICAgfVxuICAgIHJldHVybiBudW1lcmljYWxGb250U2l6ZTtcbiAgfSwgW2ZvbnRTaXplXSk7XG5cbiAgcmV0dXJuIChcbiAgICA8RXh0ZW5kZWRCb3hcbiAgICAgIGNsYXNzTmFtZT17Y2xhc3NOYW1lc31cbiAgICAgIHJlZj17cmVmfVxuICAgICAgZGlzcGxheT1cImZsZXhcIlxuICAgICAgZmxleERpcmVjdGlvbj17ZmR9XG4gICAgICB2YXJpYW50PVwiYm94LmJhc2VcIlxuICAgICAgZm9udFNpemU9e2N1c3RvbUZvbnRTaXplfVxuICAgICAgYXM9e2FzfVxuICAgICAgey4uLm90aGVyc31cbiAgICAgIHN4PXtjdXN0b219XG4gICAgLz5cbiAgKTtcbn0pO1xuXG5Cb3guZGlzcGxheU5hbWUgPSAnQm94JztcblxuZXhwb3J0IGRlZmF1bHQgQm94O1xuIl19 */");
|
|
29
29
|
var Box = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
30
30
|
var _props$as = props.as,
|
|
31
31
|
as = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -38,8 +38,6 @@ var Box = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38
38
|
className = props.className,
|
|
39
39
|
fontSize = props.fontSize,
|
|
40
40
|
sx = props.sx,
|
|
41
|
-
_props$variant = props.variant,
|
|
42
|
-
variant = _props$variant === void 0 ? 'box.base' : _props$variant,
|
|
43
41
|
others = _objectWithoutProperties(props, _excluded);
|
|
44
42
|
var fd = flexDirection || isRow ? 'row' : 'column';
|
|
45
43
|
var custom = _objectSpread({}, sx);
|
|
@@ -63,7 +61,7 @@ var Box = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
63
61
|
ref: ref,
|
|
64
62
|
display: "flex",
|
|
65
63
|
flexDirection: fd,
|
|
66
|
-
variant:
|
|
64
|
+
variant: "box.base",
|
|
67
65
|
fontSize: customFontSize,
|
|
68
66
|
as: as
|
|
69
67
|
}, others, {
|
|
@@ -11,8 +11,7 @@ var IconButtonToggle = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
11
11
|
iconProps = props.iconProps,
|
|
12
12
|
isToggled = props.isToggled,
|
|
13
13
|
onToggle = props.onToggle,
|
|
14
|
-
title = props.title
|
|
15
|
-
variant = props.variant;
|
|
14
|
+
title = props.title;
|
|
16
15
|
var conditionalRenderProps = {
|
|
17
16
|
ComponentToRenderIfTrue: toggledIcon,
|
|
18
17
|
ComponentToRenderIfFalse: defaultIcon,
|
|
@@ -25,8 +24,7 @@ var IconButtonToggle = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
25
24
|
return ___EmotionJSX(IconButton, _extends({
|
|
26
25
|
onPress: handleConditionChange,
|
|
27
26
|
ref: ref,
|
|
28
|
-
title: title
|
|
29
|
-
variant: variant
|
|
27
|
+
title: title
|
|
30
28
|
}, buttonProps), ___EmotionJSX(Icon, _extends({
|
|
31
29
|
icon: RenderedComponent
|
|
32
30
|
}, iconProps)));
|
|
@@ -19,5 +19,5 @@ export var astroBlacklistStory = {
|
|
|
19
19
|
Text: ['Onyx'],
|
|
20
20
|
Loader: ['Circular', 'Custom Circular']
|
|
21
21
|
};
|
|
22
|
-
export var nextGenOnlyComponents = ['NavigationHeader', 'Prompt', 'AI Panel', 'Response', 'Suggestions', 'Prompt Input', 'Footer'
|
|
22
|
+
export var nextGenOnlyComponents = ['NavigationHeader', 'Prompt', 'AI Panel', 'Response', 'Suggestions', 'Prompt Input', 'Footer'];
|
|
23
23
|
export default nextGenConvertedComponents;
|