dhre-component-lib 0.7.2 → 0.7.3
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.js
CHANGED
|
@@ -183,7 +183,7 @@ const Typography = ({ variant = 'B1', weight = 'MEDIUM', children, className, ..
|
|
|
183
183
|
var css$h = ".inputLabel {\n position: absolute;\n z-index: 1;\n top: -10px;\n left: 11px;\n background: #ffffff;\n padding: 0 6px;\n transition: all 0.3s ease-out;\n}\n\n.inputContainer {\n position: relative;\n z-index: 0;\n}\n\n.inputError:focus-visible {\n outline: 1px solid #eb0542 !important;\n}\n\n.inputContainer::placeholder {\n color: #686868;\n font-size: 16px;\n font-family: \"Meraas Aktiv\", sans-serif;\n font-weight: 400;\n line-height: 22.4px;\n}\n\n.astreik {\n color: #eb0542;\n}\n\ninput::-webkit-contacts-auto-fill-button {\n box-shadow: 0 0 0px 1000px white inset !important;\n -webkit-text-fill-color: inherit !important;\n background-image: none !important;\n mask-image: none;\n}";
|
|
184
184
|
n(css$h,{});
|
|
185
185
|
|
|
186
|
-
const CustomInputField = ({ label, value = "", type = INPUT_TYPES.TEXT, placeholder = "", onChange, className = "", inputClassName = "", labelClassName = "", error, errorClassName = "", maxLength = 0, minLength = 0, checkValidation, name, min, disabled = false, ...rest }) => {
|
|
186
|
+
const CustomInputField = ({ label, value = "", type = INPUT_TYPES.TEXT, placeholder = "", onChange, className = "", inputClassName = "", labelClassName = "", error, errorClassName = "", maxLength = 0, minLength = 0, checkValidation, name, min, disabled = false, toolTip, ...rest }) => {
|
|
187
187
|
const [showLabelOnBorder, setShowLabelOnBorder] = React.useState(false);
|
|
188
188
|
const handleInputValues = (e) => {
|
|
189
189
|
onChange?.(e);
|
|
@@ -203,6 +203,7 @@ const CustomInputField = ({ label, value = "", type = INPUT_TYPES.TEXT, placehol
|
|
|
203
203
|
setShowLabelOnBorder(!!value);
|
|
204
204
|
}, [value]);
|
|
205
205
|
return (React__namespace.default.createElement("div", { className: `${className} ${'inputContainer'}` },
|
|
206
|
+
toolTip,
|
|
206
207
|
((placeholder && showLabelOnBorder) || (placeholder && value)) && React__namespace.default.createElement("label", { className: 'inputLabel' },
|
|
207
208
|
placeholder.replace("*", ""),
|
|
208
209
|
placeholder.includes("*") && React__namespace.default.createElement("label", { className: 'astreik' }, "*")),
|
|
@@ -9582,7 +9583,7 @@ const Accordion = ({ icon, title, description, children, border = false, upArrow
|
|
|
9582
9583
|
isOpen && (React__namespace.default.createElement("div", { className: "accordion-content" }, children))));
|
|
9583
9584
|
};
|
|
9584
9585
|
|
|
9585
|
-
var css$a = ".tabs {\n display: flex;\n}\n\n.tab {\n padding: 12px;\n cursor: pointer;\n background-color: transparent;\n border: none;\n color: #686868;\n border-bottom: 2px solid transparent;\n transition: border-bottom 0.3s ease;\n font-size: 18px;\n display: flex;\n align-items: center;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n gap: 0.5rem;\n line-height: 25.2px;\n font-family: \"Meraas Aktiv\", sans-serif;\n font-weight: 400;\n}\n\n.tab.active {\n border-bottom: 2px solid #000000;\n color: #000000;\n}\n\n.tab.inActive {\n border-bottom: 1px solid #e1e1e1;\n}\n\n.tab:hover {\n color: #000000;\n}\n\n.main {\n display: flex;\n gap: 8px;\n overflow-x: auto;\n scrollbar-width: none;\n -ms-overflow-style: none;\n}\n\n.main::-webkit-scrollbar {\n display: none;\n}\n\n@media (max-width: 767px) {\n .main {\n display: flex;\n gap: 8px;\n overflow-x: auto;\n scrollbar-width: none;\n -ms-overflow-style: none;\n }\n .main::-webkit-scrollbar {\n display: none;\n }\n}\n.dot {\n display: inline-block !important;\n width: 8px !important;\n height: 8px !important;\n background-color: red !important;\n border-radius: 50% !important;\n margin-left: 5px !important;\n}\n\n.counts {\n background-color: #d92d27;\n border-radius: 1.5rem;\n font-size: 18px;\n color: #ffffff;\n padding: 1px;\n width: 2rem;\n height: 1.5rem;\n}";
|
|
9586
|
+
var css$a = ".tabs {\n display: flex;\n}\n\n.tab {\n padding: 12px;\n cursor: pointer;\n background-color: transparent;\n border: none;\n color: #686868;\n border-bottom: 2px solid transparent;\n transition: border-bottom 0.3s ease;\n font-size: 18px !important;\n display: flex;\n align-items: center;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n gap: 0.5rem;\n line-height: 25.2px;\n font-family: \"Meraas Aktiv\", sans-serif;\n font-weight: 400;\n}\n\n.tab.active {\n border-bottom: 2px solid #000000;\n color: #000000;\n}\n\n.tab.inActive {\n border-bottom: 1px solid #e1e1e1;\n}\n\n.tab:hover {\n color: #000000;\n}\n\n.main {\n display: flex;\n gap: 8px;\n overflow-x: auto;\n scrollbar-width: none;\n -ms-overflow-style: none;\n}\n\n.main::-webkit-scrollbar {\n display: none;\n}\n\n@media (max-width: 767px) {\n .main {\n display: flex;\n gap: 8px;\n overflow-x: auto;\n scrollbar-width: none;\n -ms-overflow-style: none;\n }\n .main::-webkit-scrollbar {\n display: none;\n }\n}\n.dot {\n display: inline-block !important;\n width: 8px !important;\n height: 8px !important;\n background-color: red !important;\n border-radius: 50% !important;\n margin-left: 5px !important;\n}\n\n.counts {\n background-color: #d92d27;\n border-radius: 1.5rem;\n font-size: 18px;\n color: #ffffff;\n padding: 1px;\n width: 2rem;\n height: 1.5rem;\n}";
|
|
9586
9587
|
n(css$a,{});
|
|
9587
9588
|
|
|
9588
9589
|
const Tabs = ({ tabs, onTabChange, selectedTabValue, dot }) => {
|
|
@@ -9718,7 +9719,7 @@ className = {}, }) => {
|
|
|
9718
9719
|
variant === "permanent" && (React__namespace.default.createElement("div", { className: `${"sideDrawerContainer"} ${getPositionClass()} ${width} ${classNames}` }, component))));
|
|
9719
9720
|
};
|
|
9720
9721
|
|
|
9721
|
-
var css$6 = ".toggle-switch {\n width: 32.9px;\n height: 20px;\n display: inline-block;\n position: relative;\n cursor: pointer;\n outline: none;\n}\n\n.switch {\n width: 100%;\n height: 100%;\n background-color: #e1e1e1;\n border-radius: 16px;\n position: relative;\n transition: background-color 0.3s ease-in-out;\n}\n.switch.on {\n background-color: #00b578;\n}\n.switch.off {\n background-color: #e1e1e1;\n}\n.switch .slider {\n width: 17.42px;\n height: 17.42px;\n background-color: #ffffff;\n border-radius: 50%;\n position: absolute;\n top: 1px;\n transition: transform 0.3s ease-in-out;\n}\n.switch .slider.slider-on {\n transform: translateX(15px);\n}\n.switch .slider.slider-off {\n transform: translateX(1px);\n}";
|
|
9722
|
+
var css$6 = ".toggle-switch {\n width: 32.9px;\n height: 20px;\n display: inline-block;\n position: relative;\n cursor: pointer;\n outline: none;\n}\n\n.switch {\n width: 100%;\n height: 100%;\n background-color: #e1e1e1;\n border-radius: 16px;\n position: relative;\n transition: background-color 0.3s ease-in-out;\n}\n.switch.on {\n background-color: #00b578;\n}\n.switch.off {\n background-color: #e1e1e1;\n}\n.switch .slider {\n width: 17.42px;\n height: 17.42px;\n background-color: #ffffff;\n border-radius: 50%;\n position: absolute;\n top: 1px;\n opacity: 1 !important;\n transition: transform 0.3s ease-in-out;\n}\n.switch .slider.slider-on {\n transform: translateX(15px);\n}\n.switch .slider.slider-off {\n transform: translateX(1px);\n}";
|
|
9722
9723
|
n(css$6,{});
|
|
9723
9724
|
|
|
9724
9725
|
const ToggleSwitch = ({ initialState = false, onToggle }) => {
|