dhre-component-lib 0.7.1 → 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.d.ts
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -160,7 +160,7 @@ const Typography = ({ variant = 'B1', weight = 'MEDIUM', children, className, ..
|
|
|
160
160
|
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}";
|
|
161
161
|
n(css$h,{});
|
|
162
162
|
|
|
163
|
-
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 }) => {
|
|
163
|
+
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 }) => {
|
|
164
164
|
const [showLabelOnBorder, setShowLabelOnBorder] = useState(false);
|
|
165
165
|
const handleInputValues = (e) => {
|
|
166
166
|
onChange?.(e);
|
|
@@ -180,6 +180,7 @@ const CustomInputField = ({ label, value = "", type = INPUT_TYPES.TEXT, placehol
|
|
|
180
180
|
setShowLabelOnBorder(!!value);
|
|
181
181
|
}, [value]);
|
|
182
182
|
return (React__default.createElement("div", { className: `${className} ${'inputContainer'}` },
|
|
183
|
+
toolTip,
|
|
183
184
|
((placeholder && showLabelOnBorder) || (placeholder && value)) && React__default.createElement("label", { className: 'inputLabel' },
|
|
184
185
|
placeholder.replace("*", ""),
|
|
185
186
|
placeholder.includes("*") && React__default.createElement("label", { className: 'astreik' }, "*")),
|
|
@@ -9559,7 +9560,7 @@ const Accordion = ({ icon, title, description, children, border = false, upArrow
|
|
|
9559
9560
|
isOpen && (React__default.createElement("div", { className: "accordion-content" }, children))));
|
|
9560
9561
|
};
|
|
9561
9562
|
|
|
9562
|
-
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}";
|
|
9563
|
+
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}";
|
|
9563
9564
|
n(css$a,{});
|
|
9564
9565
|
|
|
9565
9566
|
const Tabs = ({ tabs, onTabChange, selectedTabValue, dot }) => {
|
|
@@ -9695,7 +9696,7 @@ className = {}, }) => {
|
|
|
9695
9696
|
variant === "permanent" && (React__default.createElement("div", { className: `${"sideDrawerContainer"} ${getPositionClass()} ${width} ${classNames}` }, component))));
|
|
9696
9697
|
};
|
|
9697
9698
|
|
|
9698
|
-
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}";
|
|
9699
|
+
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}";
|
|
9699
9700
|
n(css$6,{});
|
|
9700
9701
|
|
|
9701
9702
|
const ToggleSwitch = ({ initialState = false, onToggle }) => {
|
|
@@ -9718,7 +9719,7 @@ const ToggleSwitch = ({ initialState = false, onToggle }) => {
|
|
|
9718
9719
|
React__default.createElement("div", { className: `slider ${isToggled ? 'slider-on' : 'slider-off'}` }))));
|
|
9719
9720
|
};
|
|
9720
9721
|
|
|
9721
|
-
var css$5 = ".swipe-action-wrapper {\n position: relative;\n width: 100%;\n}\n.swipe-action-wrapper .swipe-actions {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n display: flex;\n gap: 10px;\n align-items: center;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.3s ease-in-out;\n}\n.swipe-action-wrapper .swipe-actions.active {\n opacity: 1;\n pointer-events: all;\n}\n.swipe-action-wrapper .swipe-actions.active::before {\n content: \"\";\n position: absolute;\n top: 0;\n right: 0;\n width:
|
|
9722
|
+
var css$5 = ".swipe-action-wrapper {\n position: relative;\n width: 100%;\n}\n.swipe-action-wrapper .swipe-actions {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n display: flex;\n gap: 10px;\n align-items: center;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.3s ease-in-out;\n}\n.swipe-action-wrapper .swipe-actions.active {\n opacity: 1;\n pointer-events: all;\n}\n.swipe-action-wrapper .swipe-actions.active::before {\n content: \"\";\n position: absolute;\n top: 0;\n right: 0;\n width: 125%;\n height: 100%;\n background: linear-gradient(90deg, rgba(255, 255, 255, 0.735) 0%, #ffffff 50%);\n pointer-events: none;\n}\n.swipe-action-wrapper .swipe-actions button {\n border: none;\n padding: 10px;\n cursor: pointer;\n background: none;\n transition: transform 0.2s, box-shadow 0.2s ease-in-out;\n z-index: 2;\n}\n.swipe-action-wrapper .swipe-actions button:hover {\n transform: translateY(-2px);\n}\n.swipe-action-wrapper:hover .swipe-actions {\n opacity: 1;\n pointer-events: all;\n}";
|
|
9722
9723
|
n(css$5,{});
|
|
9723
9724
|
|
|
9724
9725
|
const HoverOptionsWrapper = ({ children, onPin, onRead, onDelete, pinIcon, readIcon, deleteIcon, swipeThreshold = 50 }) => {
|