@agility/plenum-ui 1.2.9 → 1.3.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/components/Button/Button.d.ts +1 -0
- package/lib/index.esm.js +3 -3
- package/lib/index.js +3 -3
- package/package.json +1 -1
- package/lib/index.css +0 -1866
- package/lib/index.esm.css +0 -1866
package/lib/index.esm.js
CHANGED
|
@@ -7050,8 +7050,8 @@ function Loader(_a) {
|
|
|
7050
7050
|
* Primary UI component for user interaction
|
|
7051
7051
|
*/
|
|
7052
7052
|
var Button = function (_a) {
|
|
7053
|
-
var _b = _a.type, type = _b === void 0 ? "primary" : _b, _c = _a.size, size = _c === void 0 ? "base" : _c, onClick = _a.onClick, label = _a.label, isDisabled = _a.isDisabled, icon = _a.icon, _d = _a.isLoading, isLoading = _d === void 0 ? false : _d, _e = _a.isSubmit, isSubmit = _e === void 0 ? false : _e;
|
|
7054
|
-
var btnStyles = cn("inline-flex space-x-2 items-center justify-center border transition-all shadow-sm rounded-md", { "text-sm px-4 py-2": size === "sm" }, { "text-base px-5 py-2": size === "base" }, { "text-lg px-5 py-2": size === "lg" }, { "opacity-50 cursor-auto": isDisabled }, { "text-white bg-purple-600 hover:bg-purple-700": type === "primary" }, {
|
|
7053
|
+
var _b = _a.type, type = _b === void 0 ? "primary" : _b, _c = _a.size, size = _c === void 0 ? "base" : _c, onClick = _a.onClick, label = _a.label, isDisabled = _a.isDisabled, icon = _a.icon, _d = _a.isLoading, isLoading = _d === void 0 ? false : _d, _e = _a.isSubmit, isSubmit = _e === void 0 ? false : _e, _f = _a.isWidthFull, isWidthFull = _f === void 0 ? false : _f;
|
|
7054
|
+
var btnStyles = cn("inline-flex space-x-2 items-center justify-center border transition-all shadow-sm rounded-md", { "w-full": isWidthFull === true }, { "text-sm px-4 py-2": size === "sm" }, { "text-base px-5 py-2": size === "base" }, { "text-lg px-5 py-2": size === "lg" }, { "opacity-50 cursor-auto": isDisabled }, { "text-white bg-purple-600 hover:bg-purple-700": type === "primary" }, {
|
|
7055
7055
|
"text-purple-700 bg-purple-100 hover:text-purple-700 hover:bg-purple-200": type === "secondary"
|
|
7056
7056
|
}, {
|
|
7057
7057
|
"text-gray-700 bg-white hover:text-gray-700 hover:bg-gray-50 border-gray-300": type === "alternative"
|
|
@@ -12576,7 +12576,7 @@ var TextInputSelect = function (_a) {
|
|
|
12576
12576
|
React__default.createElement("div", { className: "relative flex-grow focus-within:z-20" },
|
|
12577
12577
|
prefix && (React__default.createElement("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3" },
|
|
12578
12578
|
React__default.createElement("span", { className: "text-gray-500 sm:text-sm" }, prefix))),
|
|
12579
|
-
React__default.createElement(_BaseField, { onFocus: handleInputFocus, onBlur: handleInputBlur, onChange: onChange, onValueChange: setValue, ref: inputRef, type: type, name: name, id: id, inputStyles: "w-full border-gray-300 focus:border-purple-500 focus:outline-none focus:ring-1 focus:ring-purple-500 sm:text-sm \n
|
|
12579
|
+
React__default.createElement(_BaseField, { onFocus: handleInputFocus, onBlur: handleInputBlur, onChange: onChange, onValueChange: setValue, ref: inputRef, type: type, name: name, id: id, inputStyles: "w-full border-gray-300 focus:border-purple-500 focus:outline-none focus:ring-1 focus:ring-purple-500 sm:text-sm \n\t\t\t\t\t\t".concat(selectLocation === "right" ? "rounded-l-md" : "rounded-r-md", " \n\t\t\t\t\t\t").concat(isError ? "border-red-500" : "", " \n\t\t\t\t\t\t").concat(prefix ? "pl-7" : "", " "), isDisabled: isDisabled, defaultValue: defaultValue, value: value, maxLength: maxLength, placeholder: placeholder })),
|
|
12580
12580
|
(inputOptions === null || inputOptions === void 0 ? void 0 : inputOptions.length) && selectLocation === "right" && (React__default.createElement(InputSelect, { inputOptions: inputOptions, align: "right", onSelectOption: onSelectOption }))),
|
|
12581
12581
|
React__default.createElement("div", { className: "flex flex-row space-x-3" },
|
|
12582
12582
|
React__default.createElement("div", { className: "grow" }, message && React__default.createElement("span", { className: discriptionStyles }, message)),
|
package/lib/index.js
CHANGED
|
@@ -7076,8 +7076,8 @@ function Loader(_a) {
|
|
|
7076
7076
|
* Primary UI component for user interaction
|
|
7077
7077
|
*/
|
|
7078
7078
|
var Button = function (_a) {
|
|
7079
|
-
var _b = _a.type, type = _b === void 0 ? "primary" : _b, _c = _a.size, size = _c === void 0 ? "base" : _c, onClick = _a.onClick, label = _a.label, isDisabled = _a.isDisabled, icon = _a.icon, _d = _a.isLoading, isLoading = _d === void 0 ? false : _d, _e = _a.isSubmit, isSubmit = _e === void 0 ? false : _e;
|
|
7080
|
-
var btnStyles = cn("inline-flex space-x-2 items-center justify-center border transition-all shadow-sm rounded-md", { "text-sm px-4 py-2": size === "sm" }, { "text-base px-5 py-2": size === "base" }, { "text-lg px-5 py-2": size === "lg" }, { "opacity-50 cursor-auto": isDisabled }, { "text-white bg-purple-600 hover:bg-purple-700": type === "primary" }, {
|
|
7079
|
+
var _b = _a.type, type = _b === void 0 ? "primary" : _b, _c = _a.size, size = _c === void 0 ? "base" : _c, onClick = _a.onClick, label = _a.label, isDisabled = _a.isDisabled, icon = _a.icon, _d = _a.isLoading, isLoading = _d === void 0 ? false : _d, _e = _a.isSubmit, isSubmit = _e === void 0 ? false : _e, _f = _a.isWidthFull, isWidthFull = _f === void 0 ? false : _f;
|
|
7080
|
+
var btnStyles = cn("inline-flex space-x-2 items-center justify-center border transition-all shadow-sm rounded-md", { "w-full": isWidthFull === true }, { "text-sm px-4 py-2": size === "sm" }, { "text-base px-5 py-2": size === "base" }, { "text-lg px-5 py-2": size === "lg" }, { "opacity-50 cursor-auto": isDisabled }, { "text-white bg-purple-600 hover:bg-purple-700": type === "primary" }, {
|
|
7081
7081
|
"text-purple-700 bg-purple-100 hover:text-purple-700 hover:bg-purple-200": type === "secondary"
|
|
7082
7082
|
}, {
|
|
7083
7083
|
"text-gray-700 bg-white hover:text-gray-700 hover:bg-gray-50 border-gray-300": type === "alternative"
|
|
@@ -12602,7 +12602,7 @@ var TextInputSelect = function (_a) {
|
|
|
12602
12602
|
React__default["default"].createElement("div", { className: "relative flex-grow focus-within:z-20" },
|
|
12603
12603
|
prefix && (React__default["default"].createElement("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3" },
|
|
12604
12604
|
React__default["default"].createElement("span", { className: "text-gray-500 sm:text-sm" }, prefix))),
|
|
12605
|
-
React__default["default"].createElement(_BaseField, { onFocus: handleInputFocus, onBlur: handleInputBlur, onChange: onChange, onValueChange: setValue, ref: inputRef, type: type, name: name, id: id, inputStyles: "w-full border-gray-300 focus:border-purple-500 focus:outline-none focus:ring-1 focus:ring-purple-500 sm:text-sm \n
|
|
12605
|
+
React__default["default"].createElement(_BaseField, { onFocus: handleInputFocus, onBlur: handleInputBlur, onChange: onChange, onValueChange: setValue, ref: inputRef, type: type, name: name, id: id, inputStyles: "w-full border-gray-300 focus:border-purple-500 focus:outline-none focus:ring-1 focus:ring-purple-500 sm:text-sm \n\t\t\t\t\t\t".concat(selectLocation === "right" ? "rounded-l-md" : "rounded-r-md", " \n\t\t\t\t\t\t").concat(isError ? "border-red-500" : "", " \n\t\t\t\t\t\t").concat(prefix ? "pl-7" : "", " "), isDisabled: isDisabled, defaultValue: defaultValue, value: value, maxLength: maxLength, placeholder: placeholder })),
|
|
12606
12606
|
(inputOptions === null || inputOptions === void 0 ? void 0 : inputOptions.length) && selectLocation === "right" && (React__default["default"].createElement(InputSelect, { inputOptions: inputOptions, align: "right", onSelectOption: onSelectOption }))),
|
|
12607
12607
|
React__default["default"].createElement("div", { className: "flex flex-row space-x-3" },
|
|
12608
12608
|
React__default["default"].createElement("div", { className: "grow" }, message && React__default["default"].createElement("span", { className: discriptionStyles }, message)),
|