dhre-component-lib 0.11.0 → 0.12.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/dist/components/Stepper/Stepper.d.ts +2 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22317,7 +22317,7 @@ const Tabs = ({ tabs, onTabChange, selectedTabValue, dot, wrapperClassName }) =>
|
|
|
22317
22317
|
React__namespace.default.createElement("div", { className: "counts" }, tab?.count))))))));
|
|
22318
22318
|
};
|
|
22319
22319
|
|
|
22320
|
-
var css$9 = ".dropdown {\n width: 100%;\n border: var(--dropdown-border, 0.0625rem solid #686868);\n height: 3.5rem;\n border-radius: var(--border-radius-small);\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding: 1rem;\n position: relative;\n cursor: pointer;\n z-index: 1;\n background: var(--dropdown-background-color, transparent);\n}\n\n.astreik {\n color: #eb0542;\n}\n\n.dropdownLabel {\n position: absolute;\n z-index: 2;\n top: -10px;\n inset-inline-start: 11px;\n background: var(--dropdown-label-background, #ffffff);\n padding: 0 6px;\n transition: all 0.3s ease-out;\n color: var(--content-primary);\n}\n\n.placeholder {\n color: #686868;\n}\n\n.dropPosition {\n position: relative;\n}\n\n.zIndexProp {\n z-index: 0;\n}\n\n.dropdownValues {\n border: 0.0625rem solid #e1e1e1;\n box-shadow: var(--dropdown-values-box-shadow, 0px 0.25rem 0.5rem 0px rgba(0, 0, 0, 0.2509803922));\n border-radius: var(--border-radius);\n margin-top: 0.3125rem;\n position: absolute;\n width: 100%;\n z-index: 9;\n max-height: 30vh;\n overflow-y: auto;\n background: var(--dropdown-values-background-color, #ffffff);\n}\n\n.dropdownSearchContainer {\n background: #ffffff;\n padding: 0.75rem;\n border-bottom: 0.0625rem solid #e1e1e1;\n}\n\n.dropdownSearchField {\n position: relative;\n width: 100%;\n}\n\n.dropdownSearchClear {\n position: absolute;\n inset-inline-end: 0.75rem;\n top: 50%;\n transform: translateY(-50%);\n cursor: pointer;\n display: flex;\n align-items: center;\n color: #686868;\n}\n\n.dropdownSearchInput {\n width: 100%;\n border: 0.0625rem solid #a7a7a7;\n border-radius: var(--border-radius-small);\n height: 2.5rem;\n padding: 0.5rem 2.5rem 0.5rem 0.75rem;\n outline: none;\n font-size: 1rem;\n font-family: var(--brand-font-family);\n color: var(--content-primary);\n background: #ffffff;\n box-sizing: border-box;\n}\n\n.dropdownSearchInput::placeholder {\n color: #686868;\n}\n\n.dropdownSearchInput:focus {\n border-color: var(--content-primary);\n}\n\n.noDropdownResult {\n display: block;\n background: #ffffff;\n min-height: 3.24rem;\n padding: 1rem;\n color: #686868;\n}\n\n.unselectedText {\n background: var(--dropdown-values-background-color, #ffffff);\n min-height: 3.24rem;\n padding: 1rem;\n color: #686868;\n cursor: pointer;\n}\n\n.value {\n color: var(--content-primary);\n}\n\n.unselectedText:hover {\n background: var(--dropdown-values-hover-background, #e1e1e1);\n color: var(--dropdown-values-hover-color, #000000);\n font-weight: 700 !important;\n}\n\n.backdropDropdown {\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n z-index: 4;\n}\n\n.dropdown select {\n background: transparent;\n width: 10.625rem;\n padding: 0.5rem;\n border: 0;\n border-radius: 0;\n height: 2.1875rem;\n}\n\n.bold {\n font-weight: 700;\n}";
|
|
22320
|
+
var css$9 = ".dropdown {\n width: 100%;\n border: var(--dropdown-border, 0.0625rem solid #686868);\n height: 3.5rem;\n border-radius: var(--border-radius-small);\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding: 1rem;\n position: relative;\n cursor: pointer;\n z-index: 1;\n background: var(--dropdown-background-color, transparent);\n}\n\n.astreik {\n color: #eb0542;\n}\n\n.dropdownLabel {\n position: absolute;\n z-index: 2;\n top: -10px;\n inset-inline-start: 11px;\n background: var(--dropdown-label-background, #ffffff);\n padding: 0 6px;\n transition: all 0.3s ease-out;\n color: var(--content-primary);\n}\n\n.placeholder {\n color: var(dropdown-placeholder-color, #686868);\n}\n\n.dropPosition {\n position: relative;\n}\n\n.zIndexProp {\n z-index: 0;\n}\n\n.dropdownValues {\n border: var(--dropdown-list-border, 0.0625rem solid #e1e1e1);\n box-shadow: var(--dropdown-values-box-shadow, 0px 0.25rem 0.5rem 0px rgba(0, 0, 0, 0.2509803922));\n border-radius: var(--border-radius);\n margin-top: 0.3125rem;\n position: absolute;\n width: 100%;\n z-index: 9;\n max-height: 30vh;\n overflow-y: auto;\n background: var(--dropdown-values-background-color, #ffffff);\n}\n\n.dropdownSearchContainer {\n background: #ffffff;\n padding: 0.75rem;\n border-bottom: 0.0625rem solid #e1e1e1;\n}\n\n.dropdownSearchField {\n position: relative;\n width: 100%;\n}\n\n.dropdownSearchClear {\n position: absolute;\n inset-inline-end: 0.75rem;\n top: 50%;\n transform: translateY(-50%);\n cursor: pointer;\n display: flex;\n align-items: center;\n color: #686868;\n}\n\n.dropdownSearchInput {\n width: 100%;\n border: 0.0625rem solid #a7a7a7;\n border-radius: var(--border-radius-small);\n height: 2.5rem;\n padding: 0.5rem 2.5rem 0.5rem 0.75rem;\n outline: none;\n font-size: 1rem;\n font-family: var(--brand-font-family);\n color: var(--content-primary);\n background: #ffffff;\n box-sizing: border-box;\n}\n\n.dropdownSearchInput::placeholder {\n color: #686868;\n}\n\n.dropdownSearchInput:focus {\n border-color: var(--content-primary);\n}\n\n.noDropdownResult {\n display: block;\n background: #ffffff;\n min-height: 3.24rem;\n padding: 1rem;\n color: #686868;\n}\n\n.unselectedText {\n background: var(--dropdown-values-background-color, #ffffff);\n min-height: 3.24rem;\n padding: 1rem;\n color: #686868;\n cursor: pointer;\n}\n\n.value {\n color: var(--content-primary);\n}\n\n.unselectedText:hover {\n background: var(--dropdown-values-hover-background, #e1e1e1);\n color: var(--dropdown-values-hover-color, #000000);\n font-weight: 700 !important;\n}\n\n.backdropDropdown {\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n z-index: 4;\n}\n\n.dropdown select {\n background: transparent;\n width: 10.625rem;\n padding: 0.5rem;\n border: 0;\n border-radius: 0;\n height: 2.1875rem;\n}\n\n.bold {\n font-weight: 700;\n}";
|
|
22321
22321
|
n(css$9,{});
|
|
22322
22322
|
|
|
22323
22323
|
function Dropdown(props) {
|
|
@@ -22664,10 +22664,10 @@ const Carousel = ({ items }) => {
|
|
|
22664
22664
|
React__namespace.default.createElement("div", { className: "carousel-dots" }, items?.map((_, index) => (React__namespace.default.createElement("span", { key: index, "data-testid": `dot-${index}`, className: `dot ${index === currentIndex ? "active" : ""}`, onClick: () => handleDotClick(index) }))))));
|
|
22665
22665
|
};
|
|
22666
22666
|
|
|
22667
|
-
var css = ".stepperCircle {\n width: 1.75rem;\n height: 1.75rem;\n border-radius: 50%;\n border: 1px solid #000000;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n flex-shrink: 0 !important;\n}\n\n.contentSecondary {\n color: #686868;\n}\n\n.stepperSuccessBorder {\n border: none;\n}\n\n.stepperNotReachedBorder {\n border: 1px solid #a7a7a7;\n}\n\n.stepperAlignment {\n display: flex;\n flex-direction: row;\n width: 100%;\n align-items: baseline;\n justify-content: space-between;\n}\n\n.stepperItem {\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-bottom: 1rem;\n}\n\n.marginRight1 {\n margin-inline-end: 1rem;\n}\n\n.stepperVerticalItem {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n}\n\n.stepperDivider {\n width: 88%;\n border: 1px dashed #898989;\n height: 0.125rem;\n margin: 0 1rem;\n}\n\n.stepperDisabledDivider {\n width: 88%;\n border: 1px dashed #898989;\n height: 0.125rem;\n margin: 0 1rem;\n}\n\n.stepperPlainDivider {\n width: 88%;\n border: 1px solid var(--content-primary);\n height: 0.125rem;\n margin: 0 1rem;\n}\n\n.stepperVerticalDivider {\n border-inline-start: 2px solid var(--content-primary);\n min-height: 2rem;\n max-height: 100%;\n margin-inline-start: 1.25rem;\n padding-inline-start: 2rem;\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}\n\n.stepperVerticalCircle {\n min-width: 2.5rem;\n height: 2.5rem;\n border-radius: 50%;\n border: 2px solid var(--content-primary);\n color: #ffffff;\n background: var(--surface-inverted);\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n margin-inline-end: 1rem;\n}\n\n.stepperVerticalDisabledDivider {\n width: 1.75rem;\n min-height: 2rem;\n max-height: 100%;\n margin: 0.75rem 0;\n background-image: linear-gradient(#686868 50%, rgba(255, 255, 255, 0) 0%);\n background-position: center;\n background-size: 0.5px 10px;\n background-repeat: repeat-y;\n}\n\n.stepperVerticalPlainDivider {\n width: 2px;\n border-inline-start: 1px solid #008256;\n min-height: 2rem;\n max-height: 100%;\n margin: 0.75rem 0;\n margin-inline-start: 0.875rem;\n}\n\n.stepperVerticalAlignment {\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n\n.flex {\n display: flex;\n flex-direction: row;\n}\n\n.warning {\n color: var(--semantic-warning2);\n}\n\n.error {\n color: var(--semantic-error);\n}\n\n.stepperWarningCircle {\n border: 2px solid var(--semantic-warning2);\n}\n\n.stepperErrorCircle {\n border: 2px solid var(--semantic-error);\n}\n\n.flexCenter {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.marginRight {\n margin-inline-end: 1rem;\n margin-top: -0.3rem;\n}\n\n.column {\n display: flex;\n flex-direction: column;\n}\n\n.typoClass {\n color: #686868;\n margin-top: 4px;\n}\n\n.contentPrimary {\n color: var(--content-primary);\n}";
|
|
22667
|
+
var css = ".stepperCircle {\n width: 1.75rem;\n height: 1.75rem;\n border-radius: 50%;\n border: 1px solid #000000;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n flex-shrink: 0 !important;\n}\n\n.contentSecondary {\n color: var(--vertical-stepper-text, #686868);\n}\n\n.stepperSuccessBorder {\n border: none;\n}\n\n.stepperNotReachedBorder {\n border: 1px solid #a7a7a7;\n}\n\n.stepperAlignment {\n display: flex;\n flex-direction: row;\n width: 100%;\n align-items: baseline;\n justify-content: space-between;\n}\n\n.stepperItem {\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-bottom: 1rem;\n}\n\n.marginRight1 {\n margin-inline-end: 1rem;\n}\n\n.stepperVerticalItem {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n}\n\n.stepperDivider {\n width: 88%;\n border: 1px dashed #898989;\n height: 0.125rem;\n margin: 0 1rem;\n}\n\n.stepperDisabledDivider {\n width: 88%;\n border: 1px dashed #898989;\n height: 0.125rem;\n margin: 0 1rem;\n}\n\n.stepperPlainDivider {\n width: 88%;\n border: 1px solid var(--content-primary);\n height: 0.125rem;\n margin: 0 1rem;\n}\n\n.stepperVerticalDivider {\n border-inline-start: 2px solid var(--content-primary);\n min-height: 2rem;\n max-height: 100%;\n margin-inline-start: 1.25rem;\n padding-inline-start: 2rem;\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}\n\n.stepperVerticalCircle {\n min-width: 2.5rem;\n height: 2.5rem;\n border-radius: 50%;\n border: 2px solid var(--content-primary);\n color: #ffffff;\n background: var(--surface-inverted);\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n margin-inline-end: 1rem;\n}\n\n.stepperVerticalDisabledDivider {\n width: 1.75rem;\n min-height: 2rem;\n max-height: 100%;\n margin: 0.75rem 0;\n background-image: linear-gradient(#686868 50%, rgba(255, 255, 255, 0) 0%);\n background-position: center;\n background-size: 0.5px 10px;\n background-repeat: repeat-y;\n}\n\n.stepperVerticalPlainDivider {\n width: var(--stepper-vertical-width-plain-divider, 2px);\n border-inline-start: 1px solid var(--stepper-vertical-success-divider-color, #008256);\n min-height: 2rem;\n max-height: 100%;\n margin: 0.75rem 0;\n margin-inline-start: 0.875rem;\n}\n\n.stepperVerticalAlignment {\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n\n.flex {\n display: flex;\n flex-direction: row;\n}\n\n.warning {\n color: var(--warning-color, --semantic-warning2);\n gap: var(--gap-spacing, unset);\n}\n\n.error {\n color: var(--error-color, --semantic-error);\n gap: var(--gap-spacing, unset);\n}\n\n.stepperWarningCircle {\n border: 2px solid var(--stepper-vertical-warning-circle, --semantic-warning2);\n}\n\n.stepperErrorCircle {\n border: 2px solid var(--error-color, --semantic-error);\n}\n\n.flexCenter {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.marginRight {\n margin-inline-end: 1rem;\n margin-top: -0.3rem;\n}\n\n.column {\n display: flex;\n flex-direction: column;\n}\n\n.typoClass {\n color: #686868;\n margin-top: 4px;\n}\n\n.contentPrimary {\n color: var(--content-primary);\n}";
|
|
22668
22668
|
n(css,{});
|
|
22669
22669
|
|
|
22670
|
-
const Stepper = ({ variant, dividerWidth, submittedDate, component, status, statusIcon, successIcon, currentStep, stepperData, type, alignment, showLabelIndex, displayRightContent, isPaymentPlanFlow, weight = "SEMI_BOLD", }) => {
|
|
22670
|
+
const Stepper = ({ variant, dividerWidth, submittedDate, component, status, statusIcon, successIcon, currentStep, stepperData, type, alignment, showLabelIndex, displayRightContent, isPaymentPlanFlow, weight = "SEMI_BOLD", verticalTypographyVariant, }) => {
|
|
22671
22671
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
22672
22672
|
alignment !== "vertical" && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
22673
22673
|
type === "static" && (React__namespace.default.createElement("div", { className: "stepperAlignment" }, stepperData?.map((val) => (React__namespace.default.createElement("div", { key: val.id, style: {
|
|
@@ -22716,11 +22716,11 @@ const Stepper = ({ variant, dividerWidth, submittedDate, component, status, stat
|
|
|
22716
22716
|
React__namespace.default.createElement(Typography, { className: currentStep &&
|
|
22717
22717
|
(currentStep === val.id || currentStep < val.id)
|
|
22718
22718
|
? "contentSecondary"
|
|
22719
|
-
: "", variant: "B2", weight: weight }, val?.name)),
|
|
22719
|
+
: "", variant: verticalTypographyVariant ?? "B2", weight: weight }, val?.name)),
|
|
22720
22720
|
currentStep === val.id && (React__namespace.default.createElement("div", { className: `${"flex"} ${status === "Rejected" ? "error" : "warning"}` },
|
|
22721
22721
|
statusIcon,
|
|
22722
22722
|
status)),
|
|
22723
|
-
displayRightContent && (React__namespace.default.createElement(Typography, { variant: "B2", weight: weight }, val?.value))),
|
|
22723
|
+
displayRightContent && (React__namespace.default.createElement(Typography, { variant: verticalTypographyVariant ?? "B2", weight: weight }, val?.value))),
|
|
22724
22724
|
React__namespace.default.createElement("div", null,
|
|
22725
22725
|
React__namespace.default.createElement("div", { className: val.id < stepperData.length
|
|
22726
22726
|
? currentStep && currentStep > val.id
|