kui-complex 0.0.99 → 0.0.100
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/cjs/index.js +25 -0
- package/cjs/index.js.map +1 -1
- package/index.d.ts +12 -1
- package/index.js +24 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -1808,6 +1808,29 @@ var DependentInput = function (props) {
|
|
|
1808
1808
|
return Input ? (jsxRuntime.jsx(Input, __assign({}, inputProps))) : (jsxRuntime.jsx(InputWithController, __assign({}, inputProps)));
|
|
1809
1809
|
};
|
|
1810
1810
|
|
|
1811
|
+
var getVisibility = function (_a) {
|
|
1812
|
+
var landlord = _a.landlord, tenant = _a.tenant;
|
|
1813
|
+
if (landlord && tenant)
|
|
1814
|
+
return "everybody";
|
|
1815
|
+
if (landlord)
|
|
1816
|
+
return "landlord";
|
|
1817
|
+
if (tenant)
|
|
1818
|
+
return "tenant";
|
|
1819
|
+
return "nobody";
|
|
1820
|
+
};
|
|
1821
|
+
var getVisibilitySettings = function (visibility) {
|
|
1822
|
+
switch (visibility) {
|
|
1823
|
+
case "everybody":
|
|
1824
|
+
return { tenant: true, landlord: true };
|
|
1825
|
+
case "landlord":
|
|
1826
|
+
return { tenant: false, landlord: true };
|
|
1827
|
+
case "tenant":
|
|
1828
|
+
return { tenant: true, landlord: false };
|
|
1829
|
+
default:
|
|
1830
|
+
return { tenant: false, landlord: false };
|
|
1831
|
+
}
|
|
1832
|
+
};
|
|
1833
|
+
|
|
1811
1834
|
exports.AutocompleteOption = AutocompleteOption;
|
|
1812
1835
|
exports.Avatar = Avatar;
|
|
1813
1836
|
exports.ButtonSelect = ButtonSelect;
|
|
@@ -1860,6 +1883,8 @@ exports.Tooltip = Tooltip;
|
|
|
1860
1883
|
exports.UndefinedAvatar = UndefinedAvatar;
|
|
1861
1884
|
exports.getFormError = getFormError;
|
|
1862
1885
|
exports.getFormValue = getFormValue;
|
|
1886
|
+
exports.getVisibility = getVisibility;
|
|
1887
|
+
exports.getVisibilitySettings = getVisibilitySettings;
|
|
1863
1888
|
exports.setSettings = setSettings;
|
|
1864
1889
|
exports.shortMonths = shortMonths;
|
|
1865
1890
|
exports.useAddressAutocomplete = useAddressAutocomplete;
|