opus-toolkit-components 1.3.8 → 1.3.9
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.
|
@@ -251,7 +251,7 @@ exports.useSyncExternalStoreWithSelector = function (
|
|
|
251
251
|
|
|
252
252
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
253
253
|
// Module
|
|
254
|
-
___CSS_LOADER_EXPORT___.push([module.id, `input[type=date]::-webkit-calendar-picker-indicator{display:none}`, "",{"version":3,"sources":["webpack://./src/components/Forms/Datepickers/datepicker.scss"],"names":[],"mappings":"
|
|
254
|
+
___CSS_LOADER_EXPORT___.push([module.id, `input[type=date]::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}@-moz-document url-prefix(){.datepicker-icon-button{display:none}input[type=date]{padding-right:.75rem}}`, "",{"version":3,"sources":["webpack://./src/components/Forms/Datepickers/datepicker.scss"],"names":[],"mappings":"AACA,oDACE,YAAA,CACA,uBAAA,CAGF,4BACE,wBACE,YAAA,CAED,iBACC,oBAAA,CAAA","sourcesContent":["/* Chrome, Edge, Safari */\r\ninput[type='date']::-webkit-calendar-picker-indicator {\r\n display: none;\r\n -webkit-appearance: none;\r\n}\r\n\r\n@-moz-document url-prefix() {\r\n .datepicker-icon-button {\r\n display: none;\r\n }\r\n input[type='date'] {\r\n padding-right: 0.75rem; // reset padding so text goes to the end\r\n }\r\n}"],"sourceRoot":""}]);
|
|
255
255
|
// Exports
|
|
256
256
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
257
257
|
|
|
@@ -3898,7 +3898,7 @@ const Input = /*#__PURE__*/(0,external_react_.forwardRef)((_ref, ref) => {
|
|
|
3898
3898
|
// New disabled prop
|
|
3899
3899
|
dataCy
|
|
3900
3900
|
} = _ref;
|
|
3901
|
-
const inputClasses = "".concat(className, " flex items-center rounded-md bg-[--color-input-bg] border ").concat(isValid ? 'border-[--color-stroke]' : 'border-utilRed1000', " text-md font-normal text-[--color-text-
|
|
3901
|
+
const inputClasses = "".concat(className, " flex items-center rounded-md bg-[--color-input-bg] border ").concat(isValid ? 'border-[--color-stroke]' : 'border-utilRed1000', " text-md font-normal text-[--color-text-strong] ").concat(disabled ? 'opacity-50 cursor-not-allowed' : '');
|
|
3902
3902
|
const iconClasses = "h-5 w-5 ".concat(isAnimated ? 'transition-transform duration-200 group-focus-within:scale-125' : '', " text-[--color-text-weak]");
|
|
3903
3903
|
return /*#__PURE__*/external_react_default().createElement("div", {
|
|
3904
3904
|
className: "flex flex-col mb-4"
|
|
@@ -4095,11 +4095,11 @@ function DatePicker(_ref) {
|
|
|
4095
4095
|
}),
|
|
4096
4096
|
"aria-invalid": !isValid,
|
|
4097
4097
|
"aria-describedby": !isValid ? "".concat(name, "-error") : undefined,
|
|
4098
|
-
className: "w-full py-2 px-3 pr-10 rounded-md bg-[--color-input-bg] border ".concat(isValid ? 'border-[--color-stroke]' : 'border-[--color-util-red]', " text-md font-normal text-[--color-text-
|
|
4098
|
+
className: "w-full py-2 px-3 pr-10 rounded-md bg-[--color-input-bg] border ".concat(isValid ? 'border-[--color-stroke]' : 'border-[--color-util-red]', " text-md font-normal text-[--color-text-strong] ").concat(disabled ? 'opacity-50 cursor-not-allowed' : '', " ").concat(className)
|
|
4099
4099
|
}), /*#__PURE__*/external_react_default().createElement("button", {
|
|
4100
4100
|
type: "button",
|
|
4101
4101
|
onClick: handleIconClick,
|
|
4102
|
-
className: "absolute top-1/2 mt-1 right-3 transform",
|
|
4102
|
+
className: "absolute top-1/2 mt-1 right-3 transform datepicker-icon-button",
|
|
4103
4103
|
"aria-label": "Open date picker",
|
|
4104
4104
|
disabled: disabled
|
|
4105
4105
|
}, /*#__PURE__*/external_react_default().createElement(esm_CalendarIcon, {
|
|
@@ -4188,7 +4188,6 @@ const RadioButton = _ref => {
|
|
|
4188
4188
|
value: option.value,
|
|
4189
4189
|
dataCy
|
|
4190
4190
|
}),
|
|
4191
|
-
"aria-invalid": !isValid,
|
|
4192
4191
|
"aria-describedby": !isValid ? "".concat(name, "-error") : undefined
|
|
4193
4192
|
}), option.label);
|
|
4194
4193
|
})), !isValid && /*#__PURE__*/external_react_default().createElement(Text, {
|
|
@@ -12886,7 +12885,7 @@ function Dropdown(_ref) {
|
|
|
12886
12885
|
const newSelectedItem = items.find(item => item.value === value) || null;
|
|
12887
12886
|
setSelectedItem(newSelectedItem);
|
|
12888
12887
|
}, [value, items]);
|
|
12889
|
-
const inputClasses = "inline-flex w-full justify-between items-center rounded-md bg-[--color-input-bg] text-md font-normal border p-2 text-[--color-text-
|
|
12888
|
+
const inputClasses = "inline-flex w-full justify-between items-center rounded-md bg-[--color-input-bg] text-md font-normal border p-2 text-[--color-text-strong] ".concat(isValid ? 'border-[--color-stroke]' : 'border-utilRed1000', " ").concat(disabled ? 'opacity-50 cursor-not-allowed' : '');
|
|
12890
12889
|
const handleSelect = item => {
|
|
12891
12890
|
if (disabled) return;
|
|
12892
12891
|
setSelectedItem(item);
|
|
@@ -12932,9 +12931,9 @@ function Dropdown(_ref) {
|
|
|
12932
12931
|
className: "h-5 w-5 text-[--color-text-weak]"
|
|
12933
12932
|
}), /*#__PURE__*/external_react_default().createElement("span", null, selectedItem ? selectedItem.label : placeholder)), /*#__PURE__*/external_react_default().createElement(solid_esm_ChevronDownIcon, {
|
|
12934
12933
|
"aria-hidden": "true",
|
|
12935
|
-
className: "-mr-1 h-5 w-5 text-[--color-text-
|
|
12934
|
+
className: "ml-1 mr-1 h-5 w-5 text-[--color-text-strong] bg-[--color-input-bg] transition-transform duration-200 ".concat(open ? 'rotate-180' : 'rotate-0')
|
|
12936
12935
|
})), !disabled && /*#__PURE__*/external_react_default().createElement(Et, {
|
|
12937
|
-
className: "
|
|
12936
|
+
className: " absolute right-0 z-10 mt-2 w-56 origin-top-right rounded-md bg-[--color-primary-bg] shadow-lg ring-1 ring-[--color-stroke] ring-opacity-1 focus:outline-none max-h-48 overflow-y-auto "
|
|
12938
12937
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
12939
12938
|
className: "py-1"
|
|
12940
12939
|
}, items.map((item, index) => /*#__PURE__*/external_react_default().createElement(gt, {
|
|
@@ -12946,7 +12945,7 @@ function Dropdown(_ref) {
|
|
|
12946
12945
|
return /*#__PURE__*/external_react_default().createElement("button", {
|
|
12947
12946
|
type: "button",
|
|
12948
12947
|
onClick: () => handleSelect(item),
|
|
12949
|
-
className: "block w-full px-4 py-2 text-left text-sm text-[--color-text-
|
|
12948
|
+
className: "block w-full px-4 py-2 text-left text-sm text-[--color-text-strong] ".concat(active ? 'bg-[--color-input-bg]' : '')
|
|
12950
12949
|
}, item.label);
|
|
12951
12950
|
})))));
|
|
12952
12951
|
}), !isValid && /*#__PURE__*/external_react_default().createElement(Text, {
|