@bigbinary/neeto-slack-frontend 0.3.10 → 0.4.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/dist/index.cjs.js +30 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +30 -15
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/types.d.ts +3 -2
package/dist/index.js
CHANGED
|
@@ -3444,7 +3444,7 @@ var Configure = function Configure(_ref) {
|
|
|
3444
3444
|
var _useTranslation = useTranslation(),
|
|
3445
3445
|
t = _useTranslation.t;
|
|
3446
3446
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
3447
|
-
className: classNames("neeto-ui-w-full neeto-ui-space-y-6", className)
|
|
3447
|
+
className: classNames("neeto-ui-w-full neeto-ui-space-y-6 mx-auto max-w-lg", className)
|
|
3448
3448
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
3449
3449
|
className: "neeto-ui-w-full neeto-ui-mb-3"
|
|
3450
3450
|
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
@@ -3495,7 +3495,7 @@ var Connect = function Connect(_ref) {
|
|
|
3495
3495
|
var _useTranslation = useTranslation(),
|
|
3496
3496
|
t = _useTranslation.t;
|
|
3497
3497
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
3498
|
-
className: "w-full"
|
|
3498
|
+
className: "neeto-ui-w-full mx-auto max-w-lg"
|
|
3499
3499
|
}, /*#__PURE__*/React__default.createElement(Slack, {
|
|
3500
3500
|
size: 32
|
|
3501
3501
|
}), /*#__PURE__*/React__default.createElement(Typography, {
|
|
@@ -3513,6 +3513,21 @@ var Connect = function Connect(_ref) {
|
|
|
3513
3513
|
}));
|
|
3514
3514
|
};
|
|
3515
3515
|
|
|
3516
|
+
function _extends$1() {
|
|
3517
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
3518
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
3519
|
+
var source = arguments[i];
|
|
3520
|
+
for (var key in source) {
|
|
3521
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
3522
|
+
target[key] = source[key];
|
|
3523
|
+
}
|
|
3524
|
+
}
|
|
3525
|
+
}
|
|
3526
|
+
return target;
|
|
3527
|
+
};
|
|
3528
|
+
return _extends$1.apply(this, arguments);
|
|
3529
|
+
}
|
|
3530
|
+
|
|
3516
3531
|
var _path, _defs;
|
|
3517
3532
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3518
3533
|
const SvgSuccess = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
@@ -3559,16 +3574,18 @@ var Field = function Field(_ref) {
|
|
|
3559
3574
|
|
|
3560
3575
|
var Finish = function Finish(_ref) {
|
|
3561
3576
|
var children = _ref.children,
|
|
3562
|
-
onClose = _ref.onClose,
|
|
3563
|
-
onBack = _ref.onBack,
|
|
3564
3577
|
teamName = _ref.teamName,
|
|
3565
3578
|
selectedChannel = _ref.selectedChannel,
|
|
3566
3579
|
_ref$otherFields = _ref.otherFields,
|
|
3567
|
-
otherFields = _ref$otherFields === void 0 ? [] : _ref$otherFields
|
|
3580
|
+
otherFields = _ref$otherFields === void 0 ? [] : _ref$otherFields,
|
|
3581
|
+
_ref$buttonProps = _ref.buttonProps,
|
|
3582
|
+
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
3583
|
+
_ref$secondaryButtonP = _ref.secondaryButtonProps,
|
|
3584
|
+
secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP;
|
|
3568
3585
|
var _useTranslation = useTranslation(),
|
|
3569
3586
|
t = _useTranslation.t;
|
|
3570
3587
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
3571
|
-
className: "neeto-ui-w-full"
|
|
3588
|
+
className: "neeto-ui-w-full mx-auto max-w-lg"
|
|
3572
3589
|
}, /*#__PURE__*/React__default.createElement(SvgSuccess, null), /*#__PURE__*/React__default.createElement(Typography, {
|
|
3573
3590
|
className: "neeto-ui-text-gray-800 neeto-ui-mb-6 neeto-ui-mt-4",
|
|
3574
3591
|
style: "h3",
|
|
@@ -3577,28 +3594,26 @@ var Finish = function Finish(_ref) {
|
|
|
3577
3594
|
name: t("slack.finish.account"),
|
|
3578
3595
|
value: toSlackUrl(teamName)
|
|
3579
3596
|
}), /*#__PURE__*/React__default.createElement(Field, {
|
|
3580
|
-
className: "neeto-ui-pt-3
|
|
3597
|
+
className: "neeto-ui-pt-3 neeto-ui-border-gray-300 border-t",
|
|
3581
3598
|
name: t("slack.finish.channel"),
|
|
3582
3599
|
value: selectedChannel
|
|
3583
3600
|
}), isNotEmpty(otherFields) && otherFields.map(function (field) {
|
|
3584
3601
|
return /*#__PURE__*/React__default.createElement(Field, {
|
|
3585
|
-
className: "neeto-ui-pt-3
|
|
3602
|
+
className: "neeto-ui-pt-3 neeto-ui-border-gray-300 border-t",
|
|
3586
3603
|
key: field.name,
|
|
3587
3604
|
name: field.name,
|
|
3588
3605
|
value: field.value
|
|
3589
3606
|
});
|
|
3590
3607
|
}), children, /*#__PURE__*/React__default.createElement("div", {
|
|
3591
3608
|
className: "neeto-ui-flex neeto-ui-w-full neeto-ui-flex-row neeto-ui-mt-6"
|
|
3592
|
-
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
3609
|
+
}, /*#__PURE__*/React__default.createElement(Button, _extends$1({
|
|
3593
3610
|
className: "neeto-ui-my-1",
|
|
3594
|
-
label: t("slack.steps.finish")
|
|
3595
|
-
|
|
3596
|
-
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
3611
|
+
label: t("slack.steps.finish")
|
|
3612
|
+
}, buttonProps)), isNotEmpty(secondaryButtonProps) && /*#__PURE__*/React__default.createElement(Button, _extends$1({
|
|
3597
3613
|
className: "neeto-ui-my-1 neeto-ui-ml-2",
|
|
3598
3614
|
label: t("common.edit"),
|
|
3599
|
-
style: "secondary"
|
|
3600
|
-
|
|
3601
|
-
})));
|
|
3615
|
+
style: "secondary"
|
|
3616
|
+
}, secondaryButtonProps))));
|
|
3602
3617
|
};
|
|
3603
3618
|
|
|
3604
3619
|
var e = [],
|