@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.cjs.js
CHANGED
|
@@ -3472,7 +3472,7 @@ var Configure = function Configure(_ref) {
|
|
|
3472
3472
|
var _useTranslation = useTranslation(),
|
|
3473
3473
|
t = _useTranslation.t;
|
|
3474
3474
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3475
|
-
className: classNames__default["default"]("neeto-ui-w-full neeto-ui-space-y-6", className)
|
|
3475
|
+
className: classNames__default["default"]("neeto-ui-w-full neeto-ui-space-y-6 mx-auto max-w-lg", className)
|
|
3476
3476
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3477
3477
|
className: "neeto-ui-w-full neeto-ui-mb-3"
|
|
3478
3478
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
@@ -3523,7 +3523,7 @@ var Connect = function Connect(_ref) {
|
|
|
3523
3523
|
var _useTranslation = useTranslation(),
|
|
3524
3524
|
t = _useTranslation.t;
|
|
3525
3525
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3526
|
-
className: "w-full"
|
|
3526
|
+
className: "neeto-ui-w-full mx-auto max-w-lg"
|
|
3527
3527
|
}, /*#__PURE__*/React__default["default"].createElement(misc.Slack, {
|
|
3528
3528
|
size: 32
|
|
3529
3529
|
}), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
@@ -3541,6 +3541,21 @@ var Connect = function Connect(_ref) {
|
|
|
3541
3541
|
}));
|
|
3542
3542
|
};
|
|
3543
3543
|
|
|
3544
|
+
function _extends$1() {
|
|
3545
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
3546
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
3547
|
+
var source = arguments[i];
|
|
3548
|
+
for (var key in source) {
|
|
3549
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
3550
|
+
target[key] = source[key];
|
|
3551
|
+
}
|
|
3552
|
+
}
|
|
3553
|
+
}
|
|
3554
|
+
return target;
|
|
3555
|
+
};
|
|
3556
|
+
return _extends$1.apply(this, arguments);
|
|
3557
|
+
}
|
|
3558
|
+
|
|
3544
3559
|
var _path, _defs;
|
|
3545
3560
|
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); }
|
|
3546
3561
|
const SvgSuccess = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
@@ -3587,16 +3602,18 @@ var Field = function Field(_ref) {
|
|
|
3587
3602
|
|
|
3588
3603
|
var Finish = function Finish(_ref) {
|
|
3589
3604
|
var children = _ref.children,
|
|
3590
|
-
onClose = _ref.onClose,
|
|
3591
|
-
onBack = _ref.onBack,
|
|
3592
3605
|
teamName = _ref.teamName,
|
|
3593
3606
|
selectedChannel = _ref.selectedChannel,
|
|
3594
3607
|
_ref$otherFields = _ref.otherFields,
|
|
3595
|
-
otherFields = _ref$otherFields === void 0 ? [] : _ref$otherFields
|
|
3608
|
+
otherFields = _ref$otherFields === void 0 ? [] : _ref$otherFields,
|
|
3609
|
+
_ref$buttonProps = _ref.buttonProps,
|
|
3610
|
+
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
3611
|
+
_ref$secondaryButtonP = _ref.secondaryButtonProps,
|
|
3612
|
+
secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP;
|
|
3596
3613
|
var _useTranslation = useTranslation(),
|
|
3597
3614
|
t = _useTranslation.t;
|
|
3598
3615
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3599
|
-
className: "neeto-ui-w-full"
|
|
3616
|
+
className: "neeto-ui-w-full mx-auto max-w-lg"
|
|
3600
3617
|
}, /*#__PURE__*/React__default["default"].createElement(SvgSuccess, null), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
3601
3618
|
className: "neeto-ui-text-gray-800 neeto-ui-mb-6 neeto-ui-mt-4",
|
|
3602
3619
|
style: "h3",
|
|
@@ -3605,28 +3622,26 @@ var Finish = function Finish(_ref) {
|
|
|
3605
3622
|
name: t("slack.finish.account"),
|
|
3606
3623
|
value: toSlackUrl(teamName)
|
|
3607
3624
|
}), /*#__PURE__*/React__default["default"].createElement(Field, {
|
|
3608
|
-
className: "neeto-ui-pt-3
|
|
3625
|
+
className: "neeto-ui-pt-3 neeto-ui-border-gray-300 border-t",
|
|
3609
3626
|
name: t("slack.finish.channel"),
|
|
3610
3627
|
value: selectedChannel
|
|
3611
3628
|
}), pure.isNotEmpty(otherFields) && otherFields.map(function (field) {
|
|
3612
3629
|
return /*#__PURE__*/React__default["default"].createElement(Field, {
|
|
3613
|
-
className: "neeto-ui-pt-3
|
|
3630
|
+
className: "neeto-ui-pt-3 neeto-ui-border-gray-300 border-t",
|
|
3614
3631
|
key: field.name,
|
|
3615
3632
|
name: field.name,
|
|
3616
3633
|
value: field.value
|
|
3617
3634
|
});
|
|
3618
3635
|
}), children, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3619
3636
|
className: "neeto-ui-flex neeto-ui-w-full neeto-ui-flex-row neeto-ui-mt-6"
|
|
3620
|
-
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
3637
|
+
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends$1({
|
|
3621
3638
|
className: "neeto-ui-my-1",
|
|
3622
|
-
label: t("slack.steps.finish")
|
|
3623
|
-
|
|
3624
|
-
}), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
3639
|
+
label: t("slack.steps.finish")
|
|
3640
|
+
}, buttonProps)), pure.isNotEmpty(secondaryButtonProps) && /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends$1({
|
|
3625
3641
|
className: "neeto-ui-my-1 neeto-ui-ml-2",
|
|
3626
3642
|
label: t("common.edit"),
|
|
3627
|
-
style: "secondary"
|
|
3628
|
-
|
|
3629
|
-
})));
|
|
3643
|
+
style: "secondary"
|
|
3644
|
+
}, secondaryButtonProps))));
|
|
3630
3645
|
};
|
|
3631
3646
|
|
|
3632
3647
|
var e = [],
|