@hiver/connector-admin 4.19.0-multiStore-beta.0 → 4.19.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/index.es.js +11 -5
- package/index.umd.js +96 -96
- package/package.json +1 -1
- package/v2/features/add-new-store/components/add-new-store-button/index.d.ts.map +1 -1
- package/v2/features/add-new-store/components/add-new-store-modal/index.d.ts.map +1 -1
- package/v2/features/add-new-store/constants/index.d.ts +8 -8
- package/v2/features/add-new-store/constants/index.d.ts.map +1 -1
- package/v2/testing/mocks/handlers/connector-template.d.ts.map +1 -1
- package/v2/theme/connector-admin-theme.d.ts.map +1 -1
- package/v2/types/connector.d.ts +9 -0
- package/v2/types/connector.d.ts.map +1 -1
package/index.es.js
CHANGED
|
@@ -34532,6 +34532,12 @@ const Lb = (e) => {
|
|
|
34532
34532
|
MuiButton: {
|
|
34533
34533
|
styleOverrides: {
|
|
34534
34534
|
root: {
|
|
34535
|
+
// `createTheme(baseTheme, {...})` can't deep-merge this plain object
|
|
34536
|
+
// into baseTheme's function-based `root` override, so it replaces it
|
|
34537
|
+
// outright — losing the base theme's `textTransform: 'unset'` and
|
|
34538
|
+
// leaving MUI's default `uppercase` (from `typography.button`) in
|
|
34539
|
+
// effect for any Button that doesn't set its own textTransform.
|
|
34540
|
+
textTransform: "unset",
|
|
34535
34541
|
"&.MuiButton-outlined": {
|
|
34536
34542
|
color: t.textPrimary,
|
|
34537
34543
|
borderColor: t.borderStrong,
|
|
@@ -38013,7 +38019,7 @@ const AB = S(Dn)`
|
|
|
38013
38019
|
`, py = (e) => {
|
|
38014
38020
|
const { isLoading: t = !1 } = e;
|
|
38015
38021
|
return t ? /* @__PURE__ */ c.jsx(V, { className: "h-[38px] w-[58px] justify-center items-center", children: /* @__PURE__ */ c.jsx(YK, {}) }) : /* @__PURE__ */ c.jsx(PC, { ...e });
|
|
38016
|
-
}, JK = "Add
|
|
38022
|
+
}, JK = "Add store", KK = "Add store", XK = "Choose a unique name for your store.", qK = "e.g. US Store", ZK = "Store name", $K = "Add store", eX = "Cancel", tX = (e) => `You've reached the ${e}-store limit`, nX = (e) => `${e} added successfully`, cB = {
|
|
38017
38023
|
NAME_TAKEN: "A connector with this name already exists.",
|
|
38018
38024
|
LIMIT_REACHED: "You've reached the maximum number of stores.",
|
|
38019
38025
|
MULTI_STORE_DISABLED: "Adding stores isn't available for this app.",
|
|
@@ -38076,11 +38082,11 @@ const AB = S(Dn)`
|
|
|
38076
38082
|
fontWeight: 500,
|
|
38077
38083
|
fontSize: "14px",
|
|
38078
38084
|
lineHeight: "18px",
|
|
38079
|
-
padding: "
|
|
38080
|
-
borderRadius:
|
|
38085
|
+
padding: "9px 20px",
|
|
38086
|
+
borderRadius: "4px",
|
|
38081
38087
|
color: ((g = T.palette.gray) == null ? void 0 : g.gray3) ?? "#6F7C90",
|
|
38082
38088
|
backgroundColor: "transparent",
|
|
38083
|
-
"&:hover": {
|
|
38089
|
+
"&:hover": { color: ((p = T.palette.gray) == null ? void 0 : p.gray2) ?? "#4D596C" }
|
|
38084
38090
|
},
|
|
38085
38091
|
children: eX
|
|
38086
38092
|
}
|
|
@@ -38145,7 +38151,7 @@ const AB = S(Dn)`
|
|
|
38145
38151
|
};
|
|
38146
38152
|
if (!l)
|
|
38147
38153
|
return null;
|
|
38148
|
-
const h = !!(e != null && e.canAddStore), f = (e == null ? void 0 : e.
|
|
38154
|
+
const h = !!(e != null && e.canAddStore), f = (e == null ? void 0 : e.maxStores) ?? 0, C = (e == null ? void 0 : e.addStoreDisabledMessage) ?? null, d = !h || C !== null, B = d ? C ?? tX(f) : "", E = () => {
|
|
38149
38155
|
a(void 0), n(!0);
|
|
38150
38156
|
}, I = /* @__PURE__ */ c.jsx(
|
|
38151
38157
|
it,
|