@jenesei-software/jenesei-kit-react 2.3.2 → 2.3.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/build/button-9k2nzpqW.js +135 -0
- package/build/button-9k2nzpqW.js.map +1 -0
- package/build/button-C1H35JQG.cjs +3 -0
- package/build/button-C1H35JQG.cjs.map +1 -0
- package/build/component-button.cjs.js +1 -1
- package/build/component-button.es.js +1 -1
- package/build/component-date-picker.cjs.js +1 -1
- package/build/component-date-picker.es.js +1 -1
- package/build/component-input-otp.cjs.js +1 -1
- package/build/component-input-otp.es.js +1 -1
- package/build/component-input.cjs.js +1 -1
- package/build/component-input.es.js +1 -1
- package/build/component-pagination.cjs.js +1 -1
- package/build/component-pagination.es.js +1 -1
- package/build/component-select.cjs.js +1 -1
- package/build/component-select.es.js +1 -1
- package/build/component-textarea.cjs.js +1 -1
- package/build/component-textarea.es.js +1 -1
- package/build/components/button/component.d.ts +2 -1
- package/build/{context-sonner-B-eO7pwI.cjs → context-sonner-C8aMJPWz.cjs} +2 -2
- package/build/{context-sonner-B-eO7pwI.cjs.map → context-sonner-C8aMJPWz.cjs.map} +1 -1
- package/build/{context-sonner-CtCttHLD.js → context-sonner-DNJWVKTw.js} +2 -2
- package/build/{context-sonner-CtCttHLD.js.map → context-sonner-DNJWVKTw.js.map} +1 -1
- package/build/context-sonner.cjs.js +1 -1
- package/build/context-sonner.es.js +1 -1
- package/build/{date-picker-9rpPgP0a.cjs → date-picker-DRXvfRZx.cjs} +2 -2
- package/build/{date-picker-9rpPgP0a.cjs.map → date-picker-DRXvfRZx.cjs.map} +1 -1
- package/build/{date-picker-BvKtH7lp.js → date-picker-Sw6n-RRw.js} +3 -3
- package/build/{date-picker-BvKtH7lp.js.map → date-picker-Sw6n-RRw.js.map} +1 -1
- package/build/index.cjs.js +1 -1
- package/build/index.es.js +8 -8
- package/build/{input-Buf_HFGH.js → input-BS1SNtLb.js} +3 -3
- package/build/{input-Buf_HFGH.js.map → input-BS1SNtLb.js.map} +1 -1
- package/build/{input-DMm67Wyr.cjs → input-BW0CKgfw.cjs} +2 -2
- package/build/{input-DMm67Wyr.cjs.map → input-BW0CKgfw.cjs.map} +1 -1
- package/build/{input-otp-MDjIcfVu.cjs → input-otp-B9zfjb5u.cjs} +2 -2
- package/build/{input-otp-MDjIcfVu.cjs.map → input-otp-B9zfjb5u.cjs.map} +1 -1
- package/build/{input-otp-q4zKk_nP.js → input-otp-DWTU3oR1.js} +2 -2
- package/build/{input-otp-q4zKk_nP.js.map → input-otp-DWTU3oR1.js.map} +1 -1
- package/build/{pagination-ZXl2fVKZ.cjs → pagination-CzmrFLcs.cjs} +2 -2
- package/build/{pagination-ZXl2fVKZ.cjs.map → pagination-CzmrFLcs.cjs.map} +1 -1
- package/build/{pagination-BFTnpYCz.js → pagination-DWlnuh1H.js} +2 -2
- package/build/{pagination-BFTnpYCz.js.map → pagination-DWlnuh1H.js.map} +1 -1
- package/build/{select-BdGRG7zf.js → select-Bn-24dwy.js} +3 -3
- package/build/{select-BdGRG7zf.js.map → select-Bn-24dwy.js.map} +1 -1
- package/build/{select-7yVS14II.cjs → select-DcgzvPvR.cjs} +2 -2
- package/build/{select-7yVS14II.cjs.map → select-DcgzvPvR.cjs.map} +1 -1
- package/build/styles.css +1 -1
- package/build/{textarea-DLZq4RT-.js → textarea-BW_LYAhr.js} +5 -5
- package/build/textarea-BW_LYAhr.js.map +1 -0
- package/build/{textarea-Bm3ki2-6.cjs → textarea-Cly9U5It.cjs} +2 -2
- package/build/textarea-Cly9U5It.cjs.map +1 -0
- package/package.json +1 -1
- package/build/button-6CFvwtSz.cjs +0 -3
- package/build/button-6CFvwtSz.cjs.map +0 -1
- package/build/button-D6Bg00Uh.js +0 -120
- package/build/button-D6Bg00Uh.js.map +0 -1
- package/build/textarea-Bm3ki2-6.cjs.map +0 -1
- package/build/textarea-DLZq4RT-.js.map +0 -1
package/build/styles.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.area-preview__loader{background-color:var(--background-white-standard);z-index:1;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.area-preview__loader__container-icon{width:8vmin;height:8vmin;position:absolute}.area-preview__loader__container-children{margin-top:16vmin;position:relative}.area-preview__children{z-index:0;display:contents}.area-scroll{display:flex;overflow:hidden}.area-scroll--horizontal{scrollbar-gutter:stable;overflow-x:auto}.area-scroll--vertical{scrollbar-gutter:stable;overflow-y:auto}.area-scroll--is-always-horizontal{scrollbar-gutter:stable;overflow-x:scroll}.area-scroll--is-always-vertical{scrollbar-gutter:stable;overflow-y:scroll}.area-skeleton{background:var(--transparent);display:contents}.area-skeleton--visible-false{background:linear-gradient(90deg, var(--area-skeleton-color) 25%, var(--area-skeleton-line) 50%, var(--area-skeleton-color) 75%);pointer-events:none;background-size:200% 100%;width:fit-content;height:fit-content;display:flex}.area-skeleton--visible-false *{opacity:0}.component-button{cursor:pointer;-webkit-user-select:none;user-select:none;height:auto;max-height:none;min-height:var(--component-button-height);padding:2px var(--component-button-padding);border-radius:var(--component-button-radius);justify-content:center;align-self:flex-start;align-items:center;gap:var(--component-button-gap);background:var(--component-button-background);border:1px solid #0000;border-color:var(--component-button-border);color:var(--component-button-color);display:flex}.component-button.component-button--is-hidden{opacity:.5}.component-button:not(.component-button--is-hidden){opacity:1}.component-button.component-button--is-hidden-border{border:0 solid #0000!important}.component-button.component-button--is-full-radius{border-radius:100px}.component-button.component-button--is-full-size{width:100%;height:100%;max-height:100%}.component-button.component-button--is-zero-radius{border-radius:0}.component-button.component-button--is-width-as-height{width:var(--component-button-height);min-width:var(--component-button-height);padding:0}.component-button.component-button--is-min-width-as-content{min-width:max-content}.component-button--is-zero-padding{padding:0}.component-button--is-size-fit-content{width:fit-content!important;min-width:fit-content!important;height:fit-content!important;min-height:fit-content!important}.component-button__icons{display:contents}.component-button__icons.component-button__icons--is-icon-group{gap:var(--component-button-gap);order:var(--component-button-icon-group-order,initial);align-items:center;display:flex}.component-icon{order:var(--component-icon-order);width:var(--component-icon-height-icon);min-width:var(--component-icon-height-icon);height:var(--component-icon-height-icon);min-height:var(--component-icon-height-icon);color:var(--component-icon-color);transform:rotate(var(--component-icon-turn))}.component-icon__skeleton{order:var(--component-icon-skeleton-order);width:var(--component-icon-skeleton-height-icon);min-width:var(--component-icon-skeleton-height-icon);height:var(--component-icon-skeleton-height-icon);min-height:var(--component-icon-skeleton-height-icon);border-radius:100%}.component-stack{display:flex}.component-typography{color:var(--component-typography-color,inherit);letter-spacing:var(--component-typography-letter-spacing);flex:var(--component-typography-flex);cursor:var(--component-typography-cursor);overflow:var(--component-typography-overflow);font-family:var(--component-typography-family,var(--font-family));font-weight:var(--component-typography-weight,var(--font-weight));line-height:var(--component-typography-height,var(--font-height));text-align:var(--component-typography-align);white-space:var(--component-typography-wrap);-webkit-text-decoration:var(--component-typography-decoration);-webkit-text-decoration:var(--component-typography-decoration);text-decoration:var(--component-typography-decoration);text-transform:var(--component-typography-transform)}.component-typography.component-typography--line-single{text-overflow:ellipsis;white-space:nowrap;width:-webkit-fill-available;max-width:fit-content;overflow:hidden}.component-typography.component-typography--line-multi{word-break:break-word;white-space:normal;text-overflow:ellipsis;-webkit-line-clamp:var(--component-typography-line-multiline);overflow-wrap:anywhere;-webkit-box-orient:vertical;width:fit-content;display:-webkit-box;overflow:hidden}.component-typography.component-typography--is-bold,.component-typography.component-typography--variant-callout{font-weight:700}.component-typography.component-typography--is-bold .component-typography.component-typography--variant-callout{font-weight:800}.component-typography.component-typography--shadow-shadow-pulse{animation:2s infinite shadowPulse}.component-typography.component-typography--is-hover-underlining :hover{text-decoration:underline}.component-typography.component-typography--is-no-user-select{-webkit-user-select:none;user-select:none}.component-typography.component-typography--size{font-size:var(--component-typography-size)}.component-typography.component-typography--variant{font-size:var(--component-typography-variant);line-height:calc(var(--component-typography-variant) + var(--component-typography-variant-height))}.component-checkbox{cursor:pointer;-webkit-user-select:none;user-select:none;height:auto;max-height:none;height:var(--component-checkbox-height);min-height:var(--component-checkbox-height);border-radius:var(--component-checkbox-radius);justify-content:center;align-self:flex-start;align-items:center;gap:var(--component-checkbox-gap);padding:0px var(--component-checkbox-padding);background:var(--component-checkbox-background);border:1px solid #0000;border-color:var(--component-checkbox-border);color:var(--component-checkbox-color);display:flex}.component-checkbox.component-checkbox--is-hidden{opacity:.5}.component-checkbox:not(.component-checkbox--is-hidden){opacity:1}.component-checkbox.component-checkbox--is-hidden-border{border:0 solid #0000!important}.component-checkbox.component-checkbox--is-full-radius{border-radius:100px}.component-checkbox.component-checkbox--is-full-size{width:100%;height:100%;max-height:100%}.component-checkbox.component-checkbox--is-zero-radius{border-radius:0}.component-checkbox.component-checkbox--is-width-as-height{width:var(--component-checkbox-height);min-width:var(--component-checkbox-height);padding:0}.component-checkbox.component-checkbox--is-min-width-as-content{min-width:max-content}.component-checkbox.component-checkbox--is-only-icon{width:auto;height:auto;min-width:unset;min-height:unset;background:0 0;border:0 solid #0000;gap:0;padding:0}.component-error{border:1px solid #0000;flex-wrap:wrap;width:100%;display:flex}.component-error.component-error--size-default{padding-left:var(--component-error-padding);color:var(--component-error-color);position:static}.component-error.component-error--size-absolute{padding-left:var(--component-error-padding);color:var(--component-error-color);position:absolute;top:calc(100% + 4px)}.component-separator{background:var(--component-separator-background);border-radius:var(--component-separator-radius);width:var(--component-separator-width);height:var(--component-separator-height);max-width:var(--component-separator-max-width);max-height:var(--component-separator-max-height);border:none;flex-grow:1;flex-shrink:1}.component-toggle{cursor:pointer;height:var(--component-toggle-height);width:var(--component-toggle-width);padding:var(--component-toggle-padding);border:1px solid #0000;border-radius:100px;justify-content:flex-start;align-items:center;display:flex}.component-toggle.component-toggle--active{background:var(--component-toggle-active-background);border-color:var(--component-toggle-active-border)}.component-toggle.component-toggle--un-active{background:var(--component-toggle-un-active-background);border-color:var(--component-toggle-un-active-border)}.component-toggle.component-toggle--is-hidden{opacity:.5}.component-toggle:not(.component-toggle--is-hidden){opacity:1}.component-toggle.component-toggle--is-hidden-border{border:0 solid #0000!important}.component-toggle.component-toggle--is-zero-radius{border-radius:0}.component-toggle__center{height:var(--component-toggle-center-height);width:var(--component-toggle-center-width);transform:translateX(var(--component-toggle-center-x));border-radius:100px;transition:transform .15s ease-in-out}.component-toggle__center.component-toggle__center--active{background:var(--component-toggle-center-active-background);border-color:var(--component-toggle-center-active-border);box-shadow:var(--component-toggle-center-active-box-shadow)}.component-toggle__center.component-toggle__center--un-active{background:var(--component-toggle-center-un-active-background);border-color:var(--component-toggle-center-un-active-border);box-shadow:var(--component-toggle-center-un-active-box-shadow)}.component-input__wrapper{border:1px solid;border-color:var(--component-input-border-color);background:var(--component-input-background);width:100%;box-shadow:var(--component-input-box-shadow);height:var(--component-input-height);min-height:var(--component-input-height);max-height:var(--component-input-height);border-radius:var(--component-input-radius);flex-direction:column;justify-content:flex-start;display:flex;position:relative;overflow:hidden}.component-input__wrapper.component-input__wrapper--is-min-width-as-content{width:max-content;min-width:max-content}.component-input__wrapper.component-input__wrapper--is-hidden{opacity:.5}.component-input__wrapper:not(.component-input__wrapper--is-hidden){opacity:1}.component-input__wrapper.component-input__wrapper--is-hidden-border{border:0 solid #0000!important}.component-input__wrapper.component-input__wrapper--is-full-radius{border-radius:100px}.component-input__wrapper.component-input__wrapper--is-full-size{width:100%;height:100%;max-height:100%}.component-input__wrapper.component-input__wrapper--is-zero-radius{border-radius:0}.component-input__wrapper.component-input__wrapper--is-width-as-height{width:var(--component-input-height);min-width:var(--component-input-height)}.component-input__wrapper.component-input__wrapper--is-width-as-height .component-input,.component-input__wrapper.component-input__wrapper--is-center .component-input{text-align:center;padding:0}.component-input{resize:none;white-space:nowrap;text-overflow:ellipsis;width:100%;height:100%;padding:0 var(--component-input-padding);border:0 solid;overflow:hidden}.component-input,.component-input:active,.component-input:focus-visible,.component-input:focus{color:var(--component-input-color);background:0 0;border-color:#0000;outline:none}.component-input::placeholder{color:var(--component-input-placeholder-color);opacity:1}.component-input::-webkit-input-placeholder{color:var(--component-input-placeholder-color);opacity:1}.component-input:-ms-placeholder-shown{color:var(--component-input-placeholder-color);opacity:1}.component-input.component-input--has-prefix{padding-left:calc(var(--component-input-prefix-width) + var(--component-input-prefix-right) + var(--component-input-prefix-left))}.component-input.component-input--has-postfix{padding-right:calc(var(--component-input-postfix-width) + var(--component-input-postfix-right) + var(--component-input-postfix-left))}.component-input__prefix{left:var(--component-input-prefix-left);width:var(--component-input-prefix-width);height:100%;display:flex;position:absolute}.component-input__postfix{right:var(--component-input-postfix-right);width:var(--component-input-postfix-width);height:100%;display:flex;position:absolute}.component-textarea__wrapper{border:1px solid;border-color:var(--component-textarea-border-color);background:var(--component-textarea-background);width:100%;box-shadow:var(--component-textarea-box-shadow);min-height:var(--component-textarea-height);border-radius:var(--component-textarea-radius);padding:var(--component-textarea-padding);flex-direction:column;justify-content:flex-start;display:flex;position:relative;overflow:hidden}.component-textarea__wrapper.component-textarea__wrapper--is-hidden{opacity:.5}.component-textarea__wrapper:not(.component-textarea__wrapper--is-hidden){opacity:1}.component-textarea__wrapper.component-textarea__wrapper--is-hidden-border{border:0 solid #0000!important}.component-textarea__wrapper.component-textarea__wrapper--is-full-radius{border-radius:100px}.component-textarea__wrapper.component-textarea__wrapper--is-full-size{width:100%;height:100%;max-height:100%}.component-textarea__wrapper.component-textarea__wrapper--is-zero-radius{border-radius:0}.component-textarea__wrapper.component-textarea__wrapper--is-not-resize .component-textarea{resize:none}.component-textarea{white-space:normal;text-overflow:ellipsis;background-color:#0000;width:-webkit-fill-available;height:auto;overflow-x:hidden;border:none!important;margin:0!important;padding:0!important}.component-textarea,.component-textarea:active,.component-textarea:focus-visible,.component-textarea:focus{color:var(--component-textarea-color);background:0 0;border-color:#0000;outline:none}.component-textarea::placeholder{color:var(--component-textarea-placeholder-color);opacity:1}.component-textarea::-webkit-input-placeholder{color:var(--component-textarea-placeholder-color);opacity:1}.component-textarea:-ms-placeholder-shown{color:var(--component-textarea-placeholder-color);opacity:1}.component-popover{border-radius:var(--component-popover-border-radius);padding:var(--component-popover-padding);gap:calc(var(--component-popover-padding) - 2px);max-width:var(--component-popover-max-width,100%);max-height:var(--component-popover-max-height,100%);background:var(--component-popover-background);border:1px solid #0000;border-color:var(--component-popover-border-color);color:var(--component-popover-color);flex-direction:column;display:flex;overflow:auto}.component-popover--box-shadow{box-shadow:var(--component-popover-box-shadow)}.component-tooltip__wrapper{width:fit-content;height:fit-content;display:flex}.component-tooltip{padding:var(--component-tooltip-padding,12px 16px 0px 16px);gap:0}.component-tooltip:after{content:"";height:var(--component-tooltip-height,12px);width:100%;display:block}.component-select__wrapper{align-content:center;align-items:center;justify-content:"flex-start";width:100%;height:fit-content;padding:calc(var(--component-select-padding) / 4) calc(var(--component-select-padding) - var(--component-select-padding) / 2.8);gap:calc(var(--component-select-padding) / 2.8);min-height:var(--component-select-height);border-radius:var(--component-select-border-radius);background:var(--component-select-background-input);border:1px solid #0000;border-color:var(--component-select-border-color-input);color:var(--component-select-color-input);flex-flow:wrap;display:flex;position:relative}.component-select__wrapper.component-select--is-center{justify-content:center}.component-select__dropdown__list__wrapper{gap:calc(var(--component-select-padding) / 2.8);width:100%;height:100%;padding:calc(var(--component-select-padding) / 4);flex-direction:column;margin:0;display:flex;overflow:hidden auto}.component-select__dropdown__list{background:var(--component-select-background-option);gap:calc(var(--component-select-padding) / 2.8);flex-direction:column;flex-shrink:0;width:100%;list-style:none;display:flex;position:relative;transform:translateZ(0)}.component-select__dropdown__list__option{cursor:pointer;-webkit-user-select:none;user-select:none;opacity:1;padding:calc(var(--component-select-padding) / 4) calc(var(--component-select-padding) - var(--component-select-padding) / 2.8);border:1px solid;border-radius:0;flex-shrink:0;justify-content:flex-start;align-items:center;width:100%;display:flex;top:0;left:0}.component-select__dropdown__list__option:focus-visible{outline:none}.component-select__dropdown__list__option{border-radius:var(--component-select-border-radius)}.component-select__dropdown__list__option,.component-select__dropdown__list__option:hover,.component-select__dropdown__list__option:active,.component-select__dropdown__list__option:focus-visible{background:var(--component-select-background-option);color:var(--component-select-color);border-color:#0000}.component-select__dropdown__list__option.component-select__dropdown__list__option--is-border,.component-select__dropdown__list__option.component-select__dropdown__list__option--is-border:hover,.component-select__dropdown__list__option.component-select__dropdown__list__option--is-border:active,.component-select__dropdown__list__option.component-select__dropdown__list__option--is-border:focus-visible{border-color:var(--component-select-border-color)}.component-select__dropdown__list__option.component-select__dropdown__list__option--is-checked,.component-select__dropdown__list__option.component-select__dropdown__list__option--is-checked:hover,.component-select__dropdown__list__option.component-select__dropdown__list__option--is-checked:active,.component-select__dropdown__list__option.component-select__dropdown__list__option--is-checked:focus-visible{background:var(--component-select-background-checked);border-color:var(--component-select-border-color-checked)}.component-select__dropdown__list__option.component-select__dropdown__list__option--is-disabled{opacity:.5;pointer-events:none}.component-select--is-center .component-select__dropdown__list__option{justify-content:center}.component-select__dropdown__list__option__icon{color:var(--component-select-border-color-input);right:calc(var(--component-select-padding) - 6px);align-items:center;position:absolute}.component-select__dropdown__list__option--is-checked .component-select__dropdown__list__option__icon{color:var(--component-select-border-color-select)}.component-select__list{gap:calc(var(--component-select-padding) / 2.8);flex-flow:row;list-style:none;display:flex;position:relative;overflow:hidden}.component-select--is-wrap-select-option .component-select__list{flex-wrap:wrap}.component-select__list__button{gap:calc(var(--component-select-padding) / 2.8);padding:calc(var(--component-select-padding) / 2.8) var(--component-select-padding);flex-direction:row;display:flex;position:absolute;right:0}.component-select__list__option{opacity:1;cursor:default;width:fit-content;padding:calc(var(--component-select-padding) / 2.8);border-radius:var(--component-select-border-radius);flex-shrink:0;align-items:center;display:flex;overflow:hidden}.component-select--is-clear-when-click-select-list-option .component-select__list__option{cursor:pointer}.component-select__list__option,.component-select__list__option:hover,.component-select__list__option:active,.component-select__list__option:focus-visible,.component-select__list__option.component-select__list__option--is-checked,.component-select__list__option:hover.component-select__list__option--is-checked,.component-select__list__option:active.component-select__list__option--is-checked,.component-select__list__option:focus-visible.component-select__list__option--is-checked{background:var(--component-select-background-checked);border:1px solid;border-color:var(--component-select-border-color-checked);color:var(--component-select-color)}.component-select--is-only-color-in-select-list-option .component-select__list__option,.component-select--is-only-color-in-select-list-option .component-select__list__option:hover,.component-select--is-only-color-in-select-list-option .component-select__list__option:active,.component-select--is-only-color-in-select-list-option .component-select__list__option:focus-visible,.component-select--is-only-color-in-select-list-option .component-select__list__option.component-select__list__option--is-checked,.component-select--is-only-color-in-select-list-option .component-select__list__option:hover.component-select__list__option--is-checked,.component-select--is-only-color-in-select-list-option .component-select__list__option:active.component-select__list__option--is-checked,.component-select--is-only-color-in-select-list-option .component-select__list__option:focus-visible.component-select__list__option--is-checked{color:var(--component-select-color);background-color:#0000;border:0 solid #0000}.component-select__textarea{min-height:initial;width:100%;max-width:100%;padding:calc(var(--component-select-padding) / 2.8) 0px calc(var(--component-select-padding) / 2.8) 0px;background-color:#0000;border:0;flex-grow:1}.component-date-picker__wrapper{width:100%;height:fit-content;position:relative}.component-date-picker__wrapper.component-date-picker__wrapper--is-min-width{width:min-content}.component-date-picker__dropdown-list{flex-direction:column;justify-content:flex-start;gap:10px;width:100%;padding-top:6px;display:flex;position:relative;transform:translateZ(0)}.component-date-picker__dropdown-list__days{grid-template-columns:repeat(7,28px);grid-template-rows:repeat(var(--component-date-picker-rows), 28px);justify-content:space-between;gap:6px;display:grid}.component-date-picker__dropdown-list__day,.component-date-picker__dropdown-list__day-of-week{isolation:isolate;-webkit-user-select:none;user-select:none;border-radius:var(--component-date-picker-day-radius);grid-row:var(--component-date-picker-row);grid-column:var(--component-date-picker-column);background:var(--component-date-picker-day-background-rest);border:1px solid #0000;border-color:var(--component-date-picker-day-border-rest);width:100%;height:100%;color:var(--component-date-picker-day-color-rest);transition:outline 0s, filter var(--transition-default), opacity var(--transition-default), background-color var(--transition-default), color var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.component-date-picker__dropdown-list__day{cursor:pointer}.component-date-picker__dropdown-list__day:hover:not(.component-date-picker__dropdown-list__day--is-hidden,.component-date-picker__dropdown-list__day--is-choice){background:var(--component-date-picker-day-background-hover);border-color:var(--component-date-picker-day-border-hover);color:var(--component-date-picker-day-color-hover)}.component-date-picker__dropdown-list__day.component-date-picker__dropdown-list__day--is-weekend{background:var(--component-date-picker-day-background-weekend);border-color:var(--component-date-picker-day-border-weekend);color:var(--component-date-picker-day-color-weekend)}.component-date-picker__dropdown-list__day.component-date-picker__dropdown-list__day--is-today{background:var(--component-date-picker-day-background-today);border-color:var(--component-date-picker-day-border-today);color:var(--component-date-picker-day-color-today)}.component-date-picker__dropdown-list__day.component-date-picker__dropdown-list__day--is-choice{background:var(--component-date-picker-day-background-choice);border-color:var(--component-date-picker-day-border-choice);color:var(--component-date-picker-day-color-choice)}.component-date-picker__dropdown-list__day.component-date-picker__dropdown-list__day--is-hidden{background:var(--component-date-picker-day-background-weekend);border-color:var(--component-date-picker-day-border-weekend);color:var(--component-date-picker-day-color-weekend);opacity:.5}.component-date-picker__dropdown-list__day.component-date-picker__dropdown-list__day--is-not-current-month{opacity:.5}.component-date-picker__dropdown-list__day-of-week{opacity:1;cursor:default;background-color:#0000}.component-date-picker__input-wrapper{resize:none;white-space:nowrap;background:var(--component-date-picker-input-background);border:1px solid #0000;border-color:var(--component-date-picker-input-border-color);width:100%;color:var(--component-date-picker-input-color);padding:var(--component-date-picker-input-padding);height:var(--component-date-picker-input-height);min-height:var(--component-date-picker-input-height);max-height:var(--component-date-picker-input-height);border-radius:var(--component-date-picker-input-radius);transition:outline 0s, filter var(--transition-default), opacity var(--transition-default), background-color var(--transition-default), color var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default);align-items:center;gap:0;display:flex;overflow:hidden}.component-date-picker__input-wrapper:hover{background:var(--component-date-picker-input-background-hover);border-color:var(--component-date-picker-input-border-color-hover);color:var(--component-date-picker-input-color-hover)}.component-date-picker__input-segment{text-align:center;resize:none;white-space:nowrap;background:0 0;border:0 solid;border-radius:4px;min-width:10px;padding:2px;overflow:hidden;outline:none!important;margin:0!important}.component-date-picker__input-segment.component-date-picker__input-segment--has-value,.component-date-picker__input-segment.component-date-picker__input-segment--has-value:focus-visible{color:var(--component-date-picker-input-value-color)}.component-date-picker__input-segment:not(.component-date-picker__input-segment--has-value){color:var(--component-date-picker-input-placeholder-color)}.component-date-picker__input-segment.component-date-picker__input-segment--is-active{background-color:var(--component-date-picker-input-segment-background-active)}.component-date-picker__list__button{gap:calc(var(--component-date-picker-padding) / 2.8);padding:calc(var(--component-date-picker-padding) / 2.8) var(--component-date-picker-padding);flex-direction:row;display:flex;position:absolute;right:0}.context-app__wrapper{flex-direction:column;width:100%;max-width:100dvw;min-height:100dvh;display:flex;position:relative;overflow:hidden}.context-app__outlet{width:100%;height:100%;min-height:100dvh;max-height:100dvh;display:grid;overflow:hidden auto}.context-app__outlet-children{scrollbar-gutter:stable;grid-area:children;max-width:100%;max-height:100%;display:flex}.context-app__outlet-notification{grid-area:notification;display:flex}.context-app__outlet-header{grid-area:header;display:flex}.context-app__outlet-footer{grid-area:footer;display:flex}.context-app__outlet-nav{grid-area:nav;display:flex}.context-app__outlet-left-aside{grid-area:leftAside;display:flex}.context-app__outlet-right-aside{grid-area:rightAside;display:flex}.context-dialog__layout{flex:1;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:fixed;overflow:hidden}.context-dialog__element{border:0;flex-direction:column;flex-shrink:0;justify-content:flex-start;align-items:flex-start;gap:10px;width:max-content;height:max-content;display:flex;position:relative;overflow:hidden;box-shadow:0 10px 30px #0003}.context-sonner__layout{z-index:var(--context-sonner-z-index);gap:var(--context-sonner-gap);box-sizing:content-box;width:320px;max-height:calc(100dvh - 20px);margin:10px;display:flex;position:fixed;overflow:visible}.context-sonner__layout::-webkit-scrollbar{display:none}.context-sonner__layout::-webkit-scrollbar-thumb{display:none}.context-sonner__layout::-webkit-scrollbar-track{display:none}.context-sonner__layout--bottom-center{flex-direction:column-reverse;justify-content:flex-start;bottom:0;left:50%;transform:translate(-50%)}.context-sonner__layout--bottom-left{flex-direction:column-reverse;justify-content:flex-start;bottom:0;left:0}.context-sonner__layout--bottom-right{flex-direction:column-reverse;justify-content:flex-start;bottom:0;right:0}.context-sonner__layout--top-right{flex-direction:column;justify-content:flex-end;top:0;right:0}.context-sonner__layout--top-left{flex-direction:column;justify-content:flex-end;top:0;left:0}.context-sonner__layout--top-center{flex-direction:column;justify-content:flex-end;top:0;left:50%;transform:translate(-50%)}.context-sonner__element-wrapper{background:var(--context-sonner-wrapper-background);color:var(--context-sonner-icon-color);border:1px solid var(--context-sonner-wrapper-border-color);transform-origin:50%;min-width:320px;min-height:64px;box-shadow:var(--context-sonner-wrapper-box-shadow);transition:filter var(--transition-default), opacity var(--transition-default), background-color var(--transition-default), color var(--transition-default), border-color var(--transition-default), transform var(--transition-default);border-radius:12px;flex-direction:row;flex-shrink:1;justify-content:flex-start;align-self:stretch;align-items:center;gap:10px;padding:16px 20px;display:flex;overflow:visible}.context-sonner__element-wrapper:hover{box-shadow:var(--context-sonner-wrapper-box-shadow-hover)}.context-sonner__element-wrapper:has(:hover){box-shadow:var(--context-sonner-wrapper-box-shadow-hover)}.context-sonner__content{flex-direction:column;flex:1 0;justify-content:flex-start;align-self:stretch;align-items:flex-start;gap:2px;display:flex;position:relative;overflow:hidden}.context-sonner__icon{display:contents}.context-sonner__content-title{color:var(--context-sonner-title-color);text-align:left;font-family:var(--font-family);font-size:var(--size-medium-small-font);font-weight:700;line-height:var(--font-height);justify-content:flex-start;align-items:center;display:flex}.context-sonner__content-description{color:var(--context-sonner-description-color);text-align:left;font-family:var(--font-family);font-size:var(--size-medium-small-font);font-weight:400;line-height:var(--font-height);justify-content:flex-start;align-items:center;display:flex;position:relative}.context-sonner__button-wrapper{justify-content:flex-end;align-items:center;display:flex}:root{--font-family:"Inter";--font-size:16px;--font-weight:400;--font-height:1.2;--font-size-heading-headline:28px;--font-size-heading-headline-plus-height:4px;--font-size-heading-sub-headline:11px;--font-size-heading-sub-headline-plus-height:3px;--font-size-heading-title-1:26px;--font-size-heading-title-1-plus-height:6px;--font-size-heading-title-2:22px;--font-size-heading-title-2-plus-height:4px;--font-size-heading-title-3:17px;--font-size-heading-title-3-plus-height:5px;--font-size-heading-title-4:15px;--font-size-heading-title-4-plus-height:5px;--font-size-heading-title-5:12px;--font-size-heading-title-5-plus-height:4px;--font-size-heading-body:13px;--font-size-heading-body-plus-height:3px;--font-size-heading-callout:13px;--font-size-heading-callout-plus-height:3px;--font-size-heading-footnote:10px;--font-size-heading-footnote-plus-height:3px;--font-size-heading-caption-1:10px;--font-size-heading-caption-1-plus-height:3px;--font-size-heading-caption-2:9px;--font-size-heading-caption-2-plus-height:3px;--font-size-heading-controller-large:20px;--font-size-heading-controller-large-plus-height:4px;--font-size-heading-controller-large-medium:18px;--font-size-heading-controller-large-medium-plus-height:3.6px;--font-size-heading-controller-medium:16px;--font-size-heading-controller-medium-plus-height:3.2px;--font-size-heading-controller-medium-small:14px;--font-size-heading-controller-medium-small-plus-height:2.8px;--font-size-heading-controller-small:12px;--font-size-heading-controller-small-plus-height:2.4px;--duration:.3s;--easing:ease-in-out;--transition-default:.3s ease-in-out;--size-large-height:46px;--size-large-height-icon:24px;--size-large-radius:6px;--size-large-padding:16px;--size-large-font:20px;--size-large-medium-height:42px;--size-large-medium-height-icon:22px;--size-large-medium-radius:6px;--size-large-medium-padding:14px;--size-large-medium-font:18px;--size-medium-height:38px;--size-medium-height-icon:20px;--size-medium-radius:6px;--size-medium-padding:12px;--size-medium-font:16px;--size-medium-small-height:34px;--size-medium-small-height-icon:18px;--size-medium-small-radius:6px;--size-medium-small-padding:10px;--size-medium-small-font:14px;--size-small-height:30px;--size-small-height-icon:16px;--size-small-radius:8px;--size-small-padding:8px;--size-small-font:12px;--size-toggle-large-height:46px;--size-toggle-large-width:92px;--size-toggle-large-padding:3px;--size-toggle-large-thumb:40px;--size-toggle-large-medium-height:42px;--size-toggle-large-medium-width:84px;--size-toggle-large-medium-padding:2px;--size-toggle-large-medium-thumb:38px;--size-toggle-medium-height:38px;--size-toggle-medium-width:76px;--size-toggle-medium-padding:2px;--size-toggle-medium-thumb:34px;--size-toggle-medium-small-height:34px;--size-toggle-medium-small-width:68px;--size-toggle-medium-small-padding:2px;--size-toggle-medium-small-thumb:30px;--size-toggle-small-height:30px;--size-toggle-small-width:60px;--size-toggle-small-padding:2px;--size-toggle-small-thumb:26px}@media screen and (width<=1290px){:root{--font-size-heading-headline:24px;--font-size-heading-sub-headline:9px;--font-size-heading-title-1:22px;--font-size-heading-title-2:18px;--font-size-heading-title-3:14px;--font-size-heading-title-4:13px;--font-size-heading-title-5:9px;--font-size-heading-body:11px;--font-size-heading-callout:11px;--font-size-heading-footnote:8px;--font-size-heading-caption-1:8px;--font-size-heading-caption-2:7px}}@media screen and (width<=850px){:root{--font-size-heading-headline:20px;--font-size-heading-sub-headline:7px;--font-size-heading-title-1:18px;--font-size-heading-title-2:14px;--font-size-heading-title-3:11px;--font-size-heading-title-4:10px;--font-size-heading-title-5:7px;--font-size-heading-body:9px;--font-size-heading-callout:9px;--font-size-heading-footnote:6px;--font-size-heading-caption-1:6px;--font-size-heading-caption-2:5px}}:root{--accent-red-light:#ff3b30;--accent-orange-light:#ff9500;--accent-yellow-light:#fc0;--accent-green-light:#28cd41;--accent-mint-light:#00c7be;--accent-teal-light:#59adc4;--accent-cyan-light:#55bef0;--accent-blue-light:#007aff;--accent-indigo-light:#5856d6;--accent-purple-light:#af52de;--accent-pink-light:#ff2d55;--accent-brown-light:#a2845e;--accent-gray-light:#8e8e93;--accent-red-dark:#ff453a;--accent-orange-dark:#ff9f0a;--accent-yellow-dark:#ffd60a;--accent-green-dark:#32d74b;--accent-mint-dark:#66d4cf;--accent-teal-dark:#6ac4dc;--accent-cyan-dark:#5ac8f5;--accent-blue-dark:#0a84ff;--accent-indigo-dark:#5e5ce6;--accent-purple-dark:#bf5af2;--accent-pink-dark:#ff375f;--accent-brown-dark:#ac8e68;--accent-gray-dark:#98989d;--accent-red-light-stable:#ff3b30;--accent-orange-light-stable:#ff9500;--accent-yellow-light-stable:#fc0;--accent-green-light-stable:#28cd41;--accent-mint-light-stable:#00c7be;--accent-teal-light-stable:#59adc4;--accent-cyan-light-stable:#55bef0;--accent-blue-light-stable:#007aff;--accent-indigo-light-stable:#5856d6;--accent-purple-light-stable:#af52de;--accent-pink-light-stable:#ff2d55;--accent-brown-light-stable:#a2845e;--accent-gray-light-stable:#8e8e93;--accent-red-dark-stable:#ff453a;--accent-orange-dark-stable:#ff9f0a;--accent-yellow-dark-stable:#ffd60a;--accent-green-dark-stable:#32d74b;--accent-mint-dark-stable:#66d4cf;--accent-teal-dark-stable:#6ac4dc;--accent-cyan-dark-stable:#5ac8f5;--accent-blue-dark-stable:#0a84ff;--accent-indigo-dark-stable:#5e5ce6;--accent-purple-dark-stable:#bf5af2;--accent-pink-dark-stable:#ff375f;--accent-brown-dark-stable:#ac8e68;--accent-gray-dark-stable:#98989d;--fill-light:#000;--fill-primary-light:#000000d9;--fill-secondary-light:#00000080;--fill-tertiary-light:#00000040;--fill-quaternary-light:#0000001a;--fill-quinary-light:#0000000d;--fill-dark:#fff;--fill-primary-dark:#ffffffd9;--fill-secondary-dark:#ffffff8c;--fill-tertiary-dark:#ffffff40;--fill-quaternary-dark:#ffffff1a;--fill-quinary-dark:#ffffff0d;--fill-light-stable:#000;--fill-primary-light-stable:#000000d9;--fill-secondary-light-stable:#00000080;--fill-tertiary-light-stable:#00000040;--fill-quaternary-light-stable:#0000001a;--fill-quinary-light-stable:#0000000d;--fill-dark-stable:#fff;--fill-primary-dark-stable:#ffffffd9;--fill-secondary-dark-stable:#ffffff8c;--fill-tertiary-dark-stable:#ffffff40;--fill-quaternary-dark-stable:#ffffff1a;--fill-quinary-dark-stable:#ffffff0d;--text-primary-light:#000000d9;--text-secondary-light:#00000080;--text-tertiary-light:#00000040;--text-primary-dark:#ffffffd9;--text-secondary-dark:#ffffff8c;--text-tertiary-dark:#ffffff40;--text-primary-light-stable:#000000d9;--text-secondary-light-stable:#00000080;--text-tertiary-light-stable:#00000040;--text-primary-dark-stable:#ffffffd9;--text-secondary-dark-stable:#ffffff8c;--text-tertiary-dark-stable:#ffffff40;--control-menu-light:#28282894;--control-tooltip-light:#f6f6f699;--control-transparent:#fff0;--control-menu-dark:#f6f6f6b8;--control-tooltip-dark:#00000059;--control-menu-light-stable:#28282894;--control-tooltip-light-stable:#f6f6f699;--control-transparent-stable:#fff0;--control-menu-dark-stable:#f6f6f6b8;--control-tooltip-dark-stable:#00000059;--product-primary-light:#4195d2;--product-secondary-light:#4195d280;--product-tertiary-light:#4195d240;--product-quaternary-light:#4195d21a;--product-quinary-light:#4195d20d;--product-primary-dark:#64b5f6;--product-secondary-dark:#64b5f699;--product-tertiary-dark:#64b5f659;--product-quaternary-dark:#64b5f62e;--product-quinary-dark:#64b5f614;--product-primary-light-stable:#4195d2;--product-secondary-light-stable:#4195d280;--product-tertiary-light-stable:#4195d240;--product-quaternary-light-stable:#4195d21a;--product-quinary-light-stable:#4195d20d;--product-primary-dark-stable:#64b5f6;--product-secondary-dark-stable:#64b5f699;--product-tertiary-dark-stable:#64b5f659;--product-quaternary-dark-stable:#64b5f62e;--product-quinary-dark-stable:#64b5f614;--shadow-glass-light:0px 1px 8px #0000001a, 0px 0px 2px #0000001a, inset 0px 0px 8px #f2f2f2, inset 0px 0px 0px #a6a6a6, inset -2px -2px .5px #262626, inset 2px 2px .5px #262626, inset 3px 3px .5px #fff;--shadow-primary-light:0px 0px 3px #0000008c, 0px 36px 100px #0006;--shadow-secondary-light:0px 0px 3px #0000008c, 0px 8px 40px #00000040;--shadow-tertiary-light:0px 0px 3px #0000008c, 0px 36px 100px #00000040;--shadow-quaternary-light:0px 0px 3px #0000008c, 0px 4px 20px #00000040;--shadow-window-inner-shadow-light:inset 0px 0px 3px #ffffff1a;--shadow-primary-dark:0px 36px 100px #000000b3, 0px 0px 1px #000;--shadow-secondary-dark:0px 8px 40px #000000b3, 0px 0px 1px #000;--shadow-tertiary-dark:0px 36px 100px #00000073, 0px 0px 1px #000;--shadow-quaternary-dark:0px 4px 20px #00000073, 0px 0px 1px #000;--shadow-window-inner-shadow-dark:inset 0px 0px 1px #fff3;--shadow-glass-dark:0px 1px 8px #0000001a, 0px 0px 2px #0000001a, inset 0px 0px 16px #f2f2f2, inset 0px 0px 1px #999, inset 0px 0px 1px #ffffff26, inset -1px -1px 1px #ffffffbf, inset 1px 1px 1px #ffffffbf, inset 3px 3px .5px #fffc, inset 3px 3px .5px #ffffffbf;--shadow-primary-light-stable:0px 0px 3px #0000008c, 0px 36px 100px #0006;--shadow-secondary-light-stable:0px 0px 3px #0000008c, 0px 8px 40px #00000040;--shadow-tertiary-light-stable:0px 0px 3px #0000008c, 0px 36px 100px #00000040;--shadow-quaternary-light-stable:0px 0px 3px #0000008c, 0px 4px 20px #00000040;--shadow-window-inner-shadow-light-stable:inset 0px 0px 3px #ffffff1a;--shadow-primary-dark-stable:0px 36px 100px #000000b3, 0px 0px 1px #000;--shadow-secondary-dark-stable:0px 8px 40px #000000b3, 0px 0px 1px #000;--shadow-tertiary-dark-stable:0px 36px 100px #00000073, 0px 0px 1px #000;--shadow-quaternary-dark-stable:0px 4px 20px #00000073, 0px 0px 1px #000;--shadow-window-inner-shadow-dark-stable:inset 0px 0px 1px #fff3;--shadow-glass-dark-stable:0px 1px 8px #0000001a, 0px 0px 2px #0000001a, inset 0px 0px 16px #f2f2f2, inset 0px 0px 1px #999, inset 0px 0px 1px #ffffff26, inset -1px -1px 1px #ffffffbf, inset 1px 1px 1px #ffffffbf, inset 3px 3px .5px #fffc, inset 3px 3px .5px #ffffffbf;--current-color:currentColor;--inherit:inherit;--transparent:transparent}:root[data-theme=dark]{--accent-red-dark:#ff3b30;--accent-orange-dark:#ff9500;--accent-yellow-dark:#fc0;--accent-green-dark:#28cd41;--accent-mint-dark:#00c7be;--accent-teal-dark:#59adc4;--accent-cyan-dark:#55bef0;--accent-blue-dark:#007aff;--accent-indigo-dark:#5856d6;--accent-purple-dark:#af52de;--accent-pink-dark:#ff2d55;--accent-brown-dark:#a2845e;--accent-gray-dark:#8e8e93;--accent-red-light:#ff453a;--accent-orange-light:#ff9f0a;--accent-yellow-light:#ffd60a;--accent-green-light:#32d74b;--accent-mint-light:#66d4cf;--accent-teal-light:#6ac4dc;--accent-cyan-light:#5ac8f5;--accent-blue-light:#0a84ff;--accent-indigo-light:#5e5ce6;--accent-purple-light:#bf5af2;--accent-pink-light:#ff375f;--accent-brown-light:#ac8e68;--accent-gray-light:#98989d;--fill-dark:#000;--fill-primary-dark:#000000d9;--fill-secondary-dark:#00000080;--fill-tertiary-dark:#00000040;--fill-quaternary-dark:#0000001a;--fill-quinary-dark:#0000000d;--fill-light:#fff;--fill-primary-light:#ffffffd9;--fill-secondary-light:#ffffff8c;--fill-tertiary-light:#ffffff40;--fill-quaternary-light:#ffffff1a;--fill-quinary-light:#ffffff0d;--text-primary-dark:#000000d9;--text-secondary-dark:#00000080;--text-tertiary-dark:#00000040;--text-primary-light:#ffffffd9;--text-secondary-light:#ffffff8c;--text-tertiary-light:#ffffff40;--control-menu-dark:#28282894;--control-tooltip-dark:#f6f6f699;--control-menu-light:#f6f6f6b8;--control-tooltip-light:#00000059;--product-primary-dark:#4195d2;--product-secondary-dark:#4195d280;--product-tertiary-dark:#4195d240;--product-quaternary-dark:#4195d21a;--product-quinary-dark:#4195d20d;--product-primary-light:#64b5f6;--product-secondary-light:#64b5f699;--product-tertiary-light:#64b5f659;--product-quaternary-light:#64b5f62e;--product-quinary-light:#64b5f614;--shadow-glass-dark:0px 1px 8px #0000001a, inset 0px 0px 8px #f2f2f2;--shadow-primary-dark:0px 0px 3px #0000008c, 0px 36px 100px #0006;--shadow-secondary-dark:0px 8px 40px #00000040;--shadow-quaternary-dark:0px 4px 20px #00000040;--shadow-glass-light:0px 1px 8px #0000001a, inset 0px 0px 16px #f2f2f2;--shadow-primary-light:0px 36px 100px #000000b3;--shadow-secondary-light:0px 8px 40px #000000b3;--shadow-quaternary-light:0px 4px 20px #00000073}*,:before,:after{box-sizing:border-box}*{margin:0;padding:0}html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;scroll-behavior:smooth;font-size:var(--font-size);font-family:var(--font-family);font-weight:var(--font-weight);font-feature-settings:auto;font-kerning:auto;font-optical-sizing:auto;font-synthesis:none;color:var(--text-primary-light);line-height:var(--font-height);touch-action:manipulation;-ms-touch-action:manipulation;overscroll-behavior:none}html,body,#root{width:100%;height:100%;overflow-x:hidden}body{min-width:320px;min-height:100dvh}#root{isolation:isolate;flex-direction:column;min-height:100dvh;display:flex}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}img,picture,video,canvas,svg{max-width:100%;display:block}input,button,textarea,select{font:inherit;color:inherit}button{background:0 0;border:none;padding:0}a{color:inherit;text-decoration:none}ul,ol{padding:0;list-style:none}table{border-spacing:0;border-collapse:collapse}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}#__next{isolation:isolate}@keyframes shadowPulse{0%{text-shadow:0 0 #0000}50%{text-shadow:4px 4px 10px #00000080}to{text-shadow:0 0 #0000}}@keyframes backgroundMove{0%{background-position:100%}to{background-position:-100%}}.keyframe--shadow-pulse{animation:1.5s ease-in-out infinite shadowPulse}.keyframe--background-move{animation:1.5s linear infinite backgroundMove}.u-remove-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.u-remove-scrollbar::-webkit-scrollbar{display:none}.u-remove-scrollbar::-webkit-scrollbar-thumb{display:none}.u-remove-scrollbar::-webkit-scrollbar-track{display:none}.u-remove-outline{outline-offset:0!important;outline:0 solid #0000!important}.u-tabular-numbers{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.u-is-ripple{isolation:isolate;position:relative;overflow:hidden}.u-transition--font-size{transition:outline 0s, filter var(--transition-default), opacity var(--transition-default), background-color var(--transition-default), color var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default), font-size var(--transition-default)}.u-transition--icon{transition:outline 0s, filter var(--transition-default), opacity var(--transition-default), background-color var(--transition-default), color var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default)}.u-transition--icon path{transition:all var(--transition-default)}.u-transition--color{transition:outline 0s, filter var(--transition-default), opacity var(--transition-default), background-color var(--transition-default), color var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default)}.u-transition--grid{transition:grid-template-areas var(--transition-default), grid-template-columns var(--transition-default), grid-template-rows var(--transition-default)}.u-transition--without-size{transition:outline 0s, filter var(--transition-default), opacity var(--transition-default), transform var(--transition-default), background-color var(--transition-default), color var(--transition-default), visibility var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default), left var(--transition-default), right var(--transition-default), grid-template-areas var(--transition-default), grid-template-rows var(--transition-default), grid-template-columns var(--transition-default)}.u-transition--all{transition:outline 0s, filter var(--transition-default), opacity var(--transition-default), transform var(--transition-default), background-color var(--transition-default), height var(--transition-default), max-height var(--transition-default), width var(--transition-default), color var(--transition-default), visibility var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default), left var(--transition-default), right var(--transition-default), grid-template-areas var(--transition-default), grid-template-rows var(--transition-default), grid-template-columns var(--transition-default)}.u-outline--default:focus-visible{outline-offset:1px;outline:2px solid var(--accent-gray-light)}.u-outline--default:has(input:focus-visible):not(:has(input:active)){outline-offset:1px;outline:2px solid var(--accent-gray-light)}.u-outline--default:has(textarea:focus-visible):not(:has(textarea:active)){outline-offset:1px;outline:2px solid var(--accent-gray-light)}.u-outline--boxShadow:focus-visible{outline-offset:0px;outline:1px solid var(--product-primary-light);box-shadow:0 1px 1px var(--product-quinary-light), 0 0 0 .25rem var(--product-tertiary-light)}.u-outline--always{outline-offset:1px;outline:2px solid var(--accent-gray-light)}.u-outline--none,.u-outline--none:focus-visible{outline:none}.u-control--default:focus-visible,.u-control--only-active:focus-visible{outline-offset:1px;outline:2px solid var(--accent-gray-light)}.u-control--boxShadow:has(input:focus-visible){outline-offset:1px;outline:2px solid var(--accent-gray-light)}.u-control--boxShadow:has(textarea:focus-visible){outline-offset:1px;outline:2px solid var(--accent-gray-light)}.u-control--default:hover{filter:brightness(.9);outline-offset:1px;outline:2px solid var(--accent-gray-light)}.u-control--default:active{filter:brightness(.95)}.u-control--none{cursor:default;outline:none}@media (hover:none){.u-control--default:hover{filter:none}}.u-control--only-active:active{filter:brightness(.95)}.u-control--boxShadow-only-hover:hover,.u-control--boxShadow:focus-visible,.u-control--boxShadow:hover{box-shadow:0 1px 1px var(--product-quinary-light), 0 0 0 .25rem var(--product-tertiary-light);outline:none}.u-control--boxShadow:active{outline-offset:4px;outline:1px solid var(--product-secondary-light);box-shadow:0 1px 1px var(--product-quinary-light), 0 0 0 .25rem var(--product-secondary-light)}.u-control--boxShadow:has(input:focus-visible){outline-offset:4px;outline:1px solid var(--product-secondary-light);box-shadow:0 1px 1px var(--product-quinary-light), 0 0 0 .25rem var(--product-secondary-light)}.u-control--boxShadow:has(textarea:focus-visible){outline-offset:4px;outline:1px solid var(--product-secondary-light);box-shadow:0 1px 1px var(--product-quinary-light), 0 0 0 .25rem var(--product-secondary-light)}.u-control--boxShadow-select{outline-offset:4px;outline:1px solid var(--product-secondary-light);box-shadow:0 1px 1px var(--product-quinary-light), 0 0 0 .25rem var(--product-secondary-light)}.u-scrollbar-gutter--stable{scrollbar-gutter:stable}.u-scrollbar-gutter--stable-both{scrollbar-gutter:stable both-edges}.u-is-disabled{opacity:.5}.u-is-hover{transition:background-color var(--transition-default), outline 0s}.u-shadow--primary{box-shadow:var(--shadow-primary-light)}.u-shadow--secondary{box-shadow:var(--shadow-secondary-light)}.u-shadow--quaternary{box-shadow:var(--shadow-quaternary-light)}.u-is-error,.u-is-error:focus,.u-is-error:active,.u-is-error:hover,.u-is-error:focus-visible{border-color:var(--accent-red-light)!important}
|
|
1
|
+
@layer jenesei-kit{.area-preview__loader{background-color:var(--background-white-standard);z-index:1;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.area-preview__loader__container-icon{width:8vmin;height:8vmin;position:absolute}.area-preview__loader__container-children{margin-top:16vmin;position:relative}.area-preview__children{z-index:0;display:contents}.area-scroll{display:flex;overflow:hidden}.area-scroll--horizontal{scrollbar-gutter:stable;overflow-x:auto}.area-scroll--vertical{scrollbar-gutter:stable;overflow-y:auto}.area-scroll--is-always-horizontal{scrollbar-gutter:stable;overflow-x:scroll}.area-scroll--is-always-vertical{scrollbar-gutter:stable;overflow-y:scroll}.area-skeleton{background:var(--transparent);display:contents}.area-skeleton--visible-false{background:linear-gradient(90deg, var(--area-skeleton-color) 25%, var(--area-skeleton-line) 50%, var(--area-skeleton-color) 75%);pointer-events:none;background-size:200% 100%;width:fit-content;height:fit-content;display:flex}.area-skeleton--visible-false *{opacity:0}.component-button{cursor:pointer;-webkit-user-select:none;user-select:none;height:auto;max-height:none;min-height:var(--component-button-height);padding:2px var(--component-button-padding);border-radius:var(--component-button-radius);justify-content:center;align-self:flex-start;align-items:center;gap:var(--component-button-gap);background:var(--component-button-background);border:1px solid #0000;border-color:var(--component-button-border);color:var(--component-button-color);display:flex}.component-button.component-button--is-hidden{opacity:.5}.component-button:not(.component-button--is-hidden){opacity:1}.component-button.component-button--is-hidden-border{border:0 solid #0000!important}.component-button.component-button--is-full-radius{border-radius:100px}.component-button.component-button--is-full-size{width:100%;height:100%;max-height:100%}.component-button.component-button--is-zero-radius{border-radius:0}.component-button.component-button--is-width-as-height{width:var(--component-button-height);min-width:var(--component-button-height);padding:0}.component-button.component-button--is-min-width-as-content{min-width:max-content}.component-button--is-zero-padding{padding:0}.component-button--is-size-fit-content{width:fit-content!important;min-width:fit-content!important;height:fit-content!important;min-height:fit-content!important}.component-button__icons{display:contents}.component-button__icons.component-button__icons--is-icon-group{gap:var(--component-button-gap);order:var(--component-button-icon-group-order,initial);align-items:center;display:flex}.component-icon{order:var(--component-icon-order);width:var(--component-icon-height-icon);min-width:var(--component-icon-height-icon);height:var(--component-icon-height-icon);min-height:var(--component-icon-height-icon);color:var(--component-icon-color);transform:rotate(var(--component-icon-turn))}.component-icon__skeleton{order:var(--component-icon-skeleton-order);width:var(--component-icon-skeleton-height-icon);min-width:var(--component-icon-skeleton-height-icon);height:var(--component-icon-skeleton-height-icon);min-height:var(--component-icon-skeleton-height-icon);border-radius:100%}.component-stack{display:flex}.component-typography{color:var(--component-typography-color,inherit);letter-spacing:var(--component-typography-letter-spacing);flex:var(--component-typography-flex);cursor:var(--component-typography-cursor);overflow:var(--component-typography-overflow);font-family:var(--component-typography-family,var(--font-family));font-weight:var(--component-typography-weight,var(--font-weight));line-height:var(--component-typography-height,var(--font-height));text-align:var(--component-typography-align);white-space:var(--component-typography-wrap);-webkit-text-decoration:var(--component-typography-decoration);-webkit-text-decoration:var(--component-typography-decoration);text-decoration:var(--component-typography-decoration);text-transform:var(--component-typography-transform)}.component-typography.component-typography--line-single{text-overflow:ellipsis;white-space:nowrap;width:-webkit-fill-available;max-width:fit-content;overflow:hidden}.component-typography.component-typography--line-multi{word-break:break-word;white-space:normal;text-overflow:ellipsis;-webkit-line-clamp:var(--component-typography-line-multiline);overflow-wrap:anywhere;-webkit-box-orient:vertical;width:fit-content;display:-webkit-box;overflow:hidden}.component-typography.component-typography--is-bold,.component-typography.component-typography--variant-callout{font-weight:700}.component-typography.component-typography--is-bold .component-typography.component-typography--variant-callout{font-weight:800}.component-typography.component-typography--shadow-shadow-pulse{animation:2s infinite shadowPulse}.component-typography.component-typography--is-hover-underlining :hover{text-decoration:underline}.component-typography.component-typography--is-no-user-select{-webkit-user-select:none;user-select:none}.component-typography.component-typography--size{font-size:var(--component-typography-size)}.component-typography.component-typography--variant{font-size:var(--component-typography-variant);line-height:calc(var(--component-typography-variant) + var(--component-typography-variant-height))}.component-checkbox{cursor:pointer;-webkit-user-select:none;user-select:none;height:auto;max-height:none;height:var(--component-checkbox-height);min-height:var(--component-checkbox-height);border-radius:var(--component-checkbox-radius);justify-content:center;align-self:flex-start;align-items:center;gap:var(--component-checkbox-gap);padding:0px var(--component-checkbox-padding);background:var(--component-checkbox-background);border:1px solid #0000;border-color:var(--component-checkbox-border);color:var(--component-checkbox-color);display:flex}.component-checkbox.component-checkbox--is-hidden{opacity:.5}.component-checkbox:not(.component-checkbox--is-hidden){opacity:1}.component-checkbox.component-checkbox--is-hidden-border{border:0 solid #0000!important}.component-checkbox.component-checkbox--is-full-radius{border-radius:100px}.component-checkbox.component-checkbox--is-full-size{width:100%;height:100%;max-height:100%}.component-checkbox.component-checkbox--is-zero-radius{border-radius:0}.component-checkbox.component-checkbox--is-width-as-height{width:var(--component-checkbox-height);min-width:var(--component-checkbox-height);padding:0}.component-checkbox.component-checkbox--is-min-width-as-content{min-width:max-content}.component-checkbox.component-checkbox--is-only-icon{width:auto;height:auto;min-width:unset;min-height:unset;background:0 0;border:0 solid #0000;gap:0;padding:0}.component-error{border:1px solid #0000;flex-wrap:wrap;width:100%;display:flex}.component-error.component-error--size-default{padding-left:var(--component-error-padding);color:var(--component-error-color);position:static}.component-error.component-error--size-absolute{padding-left:var(--component-error-padding);color:var(--component-error-color);position:absolute;top:calc(100% + 4px)}.component-separator{background:var(--component-separator-background);border-radius:var(--component-separator-radius);width:var(--component-separator-width);height:var(--component-separator-height);max-width:var(--component-separator-max-width);max-height:var(--component-separator-max-height);border:none;flex-grow:1;flex-shrink:1}.component-toggle{cursor:pointer;height:var(--component-toggle-height);width:var(--component-toggle-width);padding:var(--component-toggle-padding);border:1px solid #0000;border-radius:100px;justify-content:flex-start;align-items:center;display:flex}.component-toggle.component-toggle--active{background:var(--component-toggle-active-background);border-color:var(--component-toggle-active-border)}.component-toggle.component-toggle--un-active{background:var(--component-toggle-un-active-background);border-color:var(--component-toggle-un-active-border)}.component-toggle.component-toggle--is-hidden{opacity:.5}.component-toggle:not(.component-toggle--is-hidden){opacity:1}.component-toggle.component-toggle--is-hidden-border{border:0 solid #0000!important}.component-toggle.component-toggle--is-zero-radius{border-radius:0}.component-toggle__center{height:var(--component-toggle-center-height);width:var(--component-toggle-center-width);transform:translateX(var(--component-toggle-center-x));border-radius:100px;transition:transform .15s ease-in-out}.component-toggle__center.component-toggle__center--active{background:var(--component-toggle-center-active-background);border-color:var(--component-toggle-center-active-border);box-shadow:var(--component-toggle-center-active-box-shadow)}.component-toggle__center.component-toggle__center--un-active{background:var(--component-toggle-center-un-active-background);border-color:var(--component-toggle-center-un-active-border);box-shadow:var(--component-toggle-center-un-active-box-shadow)}.component-input__wrapper{border:1px solid;border-color:var(--component-input-border-color);background:var(--component-input-background);width:100%;box-shadow:var(--component-input-box-shadow);height:var(--component-input-height);min-height:var(--component-input-height);max-height:var(--component-input-height);border-radius:var(--component-input-radius);flex-direction:column;justify-content:flex-start;display:flex;position:relative;overflow:hidden}.component-input__wrapper.component-input__wrapper--is-min-width-as-content{width:max-content;min-width:max-content}.component-input__wrapper.component-input__wrapper--is-hidden{opacity:.5}.component-input__wrapper:not(.component-input__wrapper--is-hidden){opacity:1}.component-input__wrapper.component-input__wrapper--is-hidden-border{border:0 solid #0000!important}.component-input__wrapper.component-input__wrapper--is-full-radius{border-radius:100px}.component-input__wrapper.component-input__wrapper--is-full-size{width:100%;height:100%;max-height:100%}.component-input__wrapper.component-input__wrapper--is-zero-radius{border-radius:0}.component-input__wrapper.component-input__wrapper--is-width-as-height{width:var(--component-input-height);min-width:var(--component-input-height)}.component-input__wrapper.component-input__wrapper--is-width-as-height .component-input,.component-input__wrapper.component-input__wrapper--is-center .component-input{text-align:center;padding:0}.component-input{resize:none;white-space:nowrap;text-overflow:ellipsis;width:100%;height:100%;padding:0 var(--component-input-padding);border:0 solid;overflow:hidden}.component-input,.component-input:active,.component-input:focus-visible,.component-input:focus{color:var(--component-input-color);background:0 0;border-color:#0000;outline:none}.component-input::placeholder{color:var(--component-input-placeholder-color);opacity:1}.component-input::-webkit-input-placeholder{color:var(--component-input-placeholder-color);opacity:1}.component-input:-ms-placeholder-shown{color:var(--component-input-placeholder-color);opacity:1}.component-input.component-input--has-prefix{padding-left:calc(var(--component-input-prefix-width) + var(--component-input-prefix-right) + var(--component-input-prefix-left))}.component-input.component-input--has-postfix{padding-right:calc(var(--component-input-postfix-width) + var(--component-input-postfix-right) + var(--component-input-postfix-left))}.component-input__prefix{left:var(--component-input-prefix-left);width:var(--component-input-prefix-width);height:100%;display:flex;position:absolute}.component-input__postfix{right:var(--component-input-postfix-right);width:var(--component-input-postfix-width);height:100%;display:flex;position:absolute}.component-textarea__wrapper{border:1px solid;border-color:var(--component-textarea-border-color);background:var(--component-textarea-background);width:100%;box-shadow:var(--component-textarea-box-shadow);min-height:var(--component-textarea-height);border-radius:var(--component-textarea-radius);padding:var(--component-textarea-padding);flex-direction:column;justify-content:flex-start;display:flex;position:relative;overflow:hidden}.component-textarea__wrapper.component-textarea__wrapper--is-hidden{opacity:.5}.component-textarea__wrapper:not(.component-textarea__wrapper--is-hidden){opacity:1}.component-textarea__wrapper.component-textarea__wrapper--is-hidden-border{border:0 solid #0000!important}.component-textarea__wrapper.component-textarea__wrapper--is-full-radius{border-radius:100px}.component-textarea__wrapper.component-textarea__wrapper--is-full-size{width:100%;height:100%;max-height:100%}.component-textarea__wrapper.component-textarea__wrapper--is-zero-radius{border-radius:0}.component-textarea__wrapper.component-textarea__wrapper--is-not-resize .component-textarea{resize:none}.component-textarea{white-space:normal;text-overflow:ellipsis;background-color:#0000;width:-webkit-fill-available;height:auto;overflow-x:hidden;border:none!important;margin:0!important;padding:0!important}.component-textarea,.component-textarea:active,.component-textarea:focus-visible,.component-textarea:focus{color:var(--component-textarea-color);background:0 0;border-color:#0000;outline:none}.component-textarea::placeholder{color:var(--component-textarea-placeholder-color);opacity:1}.component-textarea::-webkit-input-placeholder{color:var(--component-textarea-placeholder-color);opacity:1}.component-textarea:-ms-placeholder-shown{color:var(--component-textarea-placeholder-color);opacity:1}.component-popover{border-radius:var(--component-popover-border-radius);padding:var(--component-popover-padding);gap:calc(var(--component-popover-padding) - 2px);max-width:var(--component-popover-max-width,100%);max-height:var(--component-popover-max-height,100%);background:var(--component-popover-background);border:1px solid #0000;border-color:var(--component-popover-border-color);color:var(--component-popover-color);flex-direction:column;display:flex;overflow:auto}.component-popover--box-shadow{box-shadow:var(--component-popover-box-shadow)}.component-tooltip__wrapper{width:fit-content;height:fit-content;display:flex}.component-tooltip{padding:var(--component-tooltip-padding,12px 16px 0px 16px);gap:0}.component-tooltip:after{content:"";height:var(--component-tooltip-height,12px);width:100%;display:block}.component-select__wrapper{align-content:center;align-items:center;justify-content:"flex-start";width:100%;height:fit-content;padding:calc(var(--component-select-padding) / 4) calc(var(--component-select-padding) - var(--component-select-padding) / 2.8);gap:calc(var(--component-select-padding) / 2.8);min-height:var(--component-select-height);border-radius:var(--component-select-border-radius);background:var(--component-select-background-input);border:1px solid #0000;border-color:var(--component-select-border-color-input);color:var(--component-select-color-input);flex-flow:wrap;display:flex;position:relative}.component-select__wrapper.component-select--is-center{justify-content:center}.component-select__dropdown__list__wrapper{gap:calc(var(--component-select-padding) / 2.8);width:100%;height:100%;padding:calc(var(--component-select-padding) / 4);flex-direction:column;margin:0;display:flex;overflow:hidden auto}.component-select__dropdown__list{background:var(--component-select-background-option);gap:calc(var(--component-select-padding) / 2.8);flex-direction:column;flex-shrink:0;width:100%;list-style:none;display:flex;position:relative;transform:translateZ(0)}.component-select__dropdown__list__option{cursor:pointer;-webkit-user-select:none;user-select:none;opacity:1;padding:calc(var(--component-select-padding) / 4) calc(var(--component-select-padding) - var(--component-select-padding) / 2.8);border:1px solid;border-radius:0;flex-shrink:0;justify-content:flex-start;align-items:center;width:100%;display:flex;top:0;left:0}.component-select__dropdown__list__option:focus-visible{outline:none}.component-select__dropdown__list__option{border-radius:var(--component-select-border-radius)}.component-select__dropdown__list__option,.component-select__dropdown__list__option:hover,.component-select__dropdown__list__option:active,.component-select__dropdown__list__option:focus-visible{background:var(--component-select-background-option);color:var(--component-select-color);border-color:#0000}.component-select__dropdown__list__option.component-select__dropdown__list__option--is-border,.component-select__dropdown__list__option.component-select__dropdown__list__option--is-border:hover,.component-select__dropdown__list__option.component-select__dropdown__list__option--is-border:active,.component-select__dropdown__list__option.component-select__dropdown__list__option--is-border:focus-visible{border-color:var(--component-select-border-color)}.component-select__dropdown__list__option.component-select__dropdown__list__option--is-checked,.component-select__dropdown__list__option.component-select__dropdown__list__option--is-checked:hover,.component-select__dropdown__list__option.component-select__dropdown__list__option--is-checked:active,.component-select__dropdown__list__option.component-select__dropdown__list__option--is-checked:focus-visible{background:var(--component-select-background-checked);border-color:var(--component-select-border-color-checked)}.component-select__dropdown__list__option.component-select__dropdown__list__option--is-disabled{opacity:.5;pointer-events:none}.component-select--is-center .component-select__dropdown__list__option{justify-content:center}.component-select__dropdown__list__option__icon{color:var(--component-select-border-color-input);right:calc(var(--component-select-padding) - 6px);align-items:center;position:absolute}.component-select__dropdown__list__option--is-checked .component-select__dropdown__list__option__icon{color:var(--component-select-border-color-select)}.component-select__list{gap:calc(var(--component-select-padding) / 2.8);flex-flow:row;list-style:none;display:flex;position:relative;overflow:hidden}.component-select--is-wrap-select-option .component-select__list{flex-wrap:wrap}.component-select__list__button{gap:calc(var(--component-select-padding) / 2.8);padding:calc(var(--component-select-padding) / 2.8) var(--component-select-padding);flex-direction:row;display:flex;position:absolute;right:0}.component-select__list__option{opacity:1;cursor:default;width:fit-content;padding:calc(var(--component-select-padding) / 2.8);border-radius:var(--component-select-border-radius);flex-shrink:0;align-items:center;display:flex;overflow:hidden}.component-select--is-clear-when-click-select-list-option .component-select__list__option{cursor:pointer}.component-select__list__option,.component-select__list__option:hover,.component-select__list__option:active,.component-select__list__option:focus-visible,.component-select__list__option.component-select__list__option--is-checked,.component-select__list__option:hover.component-select__list__option--is-checked,.component-select__list__option:active.component-select__list__option--is-checked,.component-select__list__option:focus-visible.component-select__list__option--is-checked{background:var(--component-select-background-checked);border:1px solid;border-color:var(--component-select-border-color-checked);color:var(--component-select-color)}.component-select--is-only-color-in-select-list-option .component-select__list__option,.component-select--is-only-color-in-select-list-option .component-select__list__option:hover,.component-select--is-only-color-in-select-list-option .component-select__list__option:active,.component-select--is-only-color-in-select-list-option .component-select__list__option:focus-visible,.component-select--is-only-color-in-select-list-option .component-select__list__option.component-select__list__option--is-checked,.component-select--is-only-color-in-select-list-option .component-select__list__option:hover.component-select__list__option--is-checked,.component-select--is-only-color-in-select-list-option .component-select__list__option:active.component-select__list__option--is-checked,.component-select--is-only-color-in-select-list-option .component-select__list__option:focus-visible.component-select__list__option--is-checked{color:var(--component-select-color);background-color:#0000;border:0 solid #0000}.component-select__textarea{min-height:initial;width:100%;max-width:100%;padding:calc(var(--component-select-padding) / 2.8) 0px calc(var(--component-select-padding) / 2.8) 0px;background-color:#0000;border:0;flex-grow:1}.component-date-picker__wrapper{width:100%;height:fit-content;position:relative}.component-date-picker__wrapper.component-date-picker__wrapper--is-min-width{width:min-content}.component-date-picker__dropdown-list{flex-direction:column;justify-content:flex-start;gap:10px;width:100%;padding-top:6px;display:flex;position:relative;transform:translateZ(0)}.component-date-picker__dropdown-list__days{grid-template-columns:repeat(7,28px);grid-template-rows:repeat(var(--component-date-picker-rows), 28px);justify-content:space-between;gap:6px;display:grid}.component-date-picker__dropdown-list__day,.component-date-picker__dropdown-list__day-of-week{isolation:isolate;-webkit-user-select:none;user-select:none;border-radius:var(--component-date-picker-day-radius);grid-row:var(--component-date-picker-row);grid-column:var(--component-date-picker-column);background:var(--component-date-picker-day-background-rest);border:1px solid #0000;border-color:var(--component-date-picker-day-border-rest);width:100%;height:100%;color:var(--component-date-picker-day-color-rest);transition:outline 0s, filter var(--transition-default), opacity var(--transition-default), background-color var(--transition-default), color var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.component-date-picker__dropdown-list__day{cursor:pointer}.component-date-picker__dropdown-list__day:hover:not(.component-date-picker__dropdown-list__day--is-hidden,.component-date-picker__dropdown-list__day--is-choice){background:var(--component-date-picker-day-background-hover);border-color:var(--component-date-picker-day-border-hover);color:var(--component-date-picker-day-color-hover)}.component-date-picker__dropdown-list__day.component-date-picker__dropdown-list__day--is-weekend{background:var(--component-date-picker-day-background-weekend);border-color:var(--component-date-picker-day-border-weekend);color:var(--component-date-picker-day-color-weekend)}.component-date-picker__dropdown-list__day.component-date-picker__dropdown-list__day--is-today{background:var(--component-date-picker-day-background-today);border-color:var(--component-date-picker-day-border-today);color:var(--component-date-picker-day-color-today)}.component-date-picker__dropdown-list__day.component-date-picker__dropdown-list__day--is-choice{background:var(--component-date-picker-day-background-choice);border-color:var(--component-date-picker-day-border-choice);color:var(--component-date-picker-day-color-choice)}.component-date-picker__dropdown-list__day.component-date-picker__dropdown-list__day--is-hidden{background:var(--component-date-picker-day-background-weekend);border-color:var(--component-date-picker-day-border-weekend);color:var(--component-date-picker-day-color-weekend);opacity:.5}.component-date-picker__dropdown-list__day.component-date-picker__dropdown-list__day--is-not-current-month{opacity:.5}.component-date-picker__dropdown-list__day-of-week{opacity:1;cursor:default;background-color:#0000}.component-date-picker__input-wrapper{resize:none;white-space:nowrap;background:var(--component-date-picker-input-background);border:1px solid #0000;border-color:var(--component-date-picker-input-border-color);width:100%;color:var(--component-date-picker-input-color);padding:var(--component-date-picker-input-padding);height:var(--component-date-picker-input-height);min-height:var(--component-date-picker-input-height);max-height:var(--component-date-picker-input-height);border-radius:var(--component-date-picker-input-radius);transition:outline 0s, filter var(--transition-default), opacity var(--transition-default), background-color var(--transition-default), color var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default);align-items:center;gap:0;display:flex;overflow:hidden}.component-date-picker__input-wrapper:hover{background:var(--component-date-picker-input-background-hover);border-color:var(--component-date-picker-input-border-color-hover);color:var(--component-date-picker-input-color-hover)}.component-date-picker__input-segment{text-align:center;resize:none;white-space:nowrap;background:0 0;border:0 solid;border-radius:4px;min-width:10px;padding:2px;overflow:hidden;outline:none!important;margin:0!important}.component-date-picker__input-segment.component-date-picker__input-segment--has-value,.component-date-picker__input-segment.component-date-picker__input-segment--has-value:focus-visible{color:var(--component-date-picker-input-value-color)}.component-date-picker__input-segment:not(.component-date-picker__input-segment--has-value){color:var(--component-date-picker-input-placeholder-color)}.component-date-picker__input-segment.component-date-picker__input-segment--is-active{background-color:var(--component-date-picker-input-segment-background-active)}.component-date-picker__list__button{gap:calc(var(--component-date-picker-padding) / 2.8);padding:calc(var(--component-date-picker-padding) / 2.8) var(--component-date-picker-padding);flex-direction:row;display:flex;position:absolute;right:0}.context-app__wrapper{flex-direction:column;width:100%;max-width:100dvw;min-height:100dvh;display:flex;position:relative;overflow:hidden}.context-app__outlet{width:100%;height:100%;min-height:100dvh;max-height:100dvh;display:grid;overflow:hidden auto}.context-app__outlet-children{scrollbar-gutter:stable;grid-area:children;max-width:100%;max-height:100%;display:flex}.context-app__outlet-notification{grid-area:notification;display:flex}.context-app__outlet-header{grid-area:header;display:flex}.context-app__outlet-footer{grid-area:footer;display:flex}.context-app__outlet-nav{grid-area:nav;display:flex}.context-app__outlet-left-aside{grid-area:leftAside;display:flex}.context-app__outlet-right-aside{grid-area:rightAside;display:flex}.context-dialog__layout{flex:1;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:fixed;overflow:hidden}.context-dialog__element{border:0;flex-direction:column;flex-shrink:0;justify-content:flex-start;align-items:flex-start;gap:10px;width:max-content;height:max-content;display:flex;position:relative;overflow:hidden;box-shadow:0 10px 30px #0003}.context-sonner__layout{z-index:var(--context-sonner-z-index);gap:var(--context-sonner-gap);box-sizing:content-box;width:320px;max-height:calc(100dvh - 20px);margin:10px;display:flex;position:fixed;overflow:visible}.context-sonner__layout::-webkit-scrollbar{display:none}.context-sonner__layout::-webkit-scrollbar-thumb{display:none}.context-sonner__layout::-webkit-scrollbar-track{display:none}.context-sonner__layout--bottom-center{flex-direction:column-reverse;justify-content:flex-start;bottom:0;left:50%;transform:translate(-50%)}.context-sonner__layout--bottom-left{flex-direction:column-reverse;justify-content:flex-start;bottom:0;left:0}.context-sonner__layout--bottom-right{flex-direction:column-reverse;justify-content:flex-start;bottom:0;right:0}.context-sonner__layout--top-right{flex-direction:column;justify-content:flex-end;top:0;right:0}.context-sonner__layout--top-left{flex-direction:column;justify-content:flex-end;top:0;left:0}.context-sonner__layout--top-center{flex-direction:column;justify-content:flex-end;top:0;left:50%;transform:translate(-50%)}.context-sonner__element-wrapper{background:var(--context-sonner-wrapper-background);color:var(--context-sonner-icon-color);border:1px solid var(--context-sonner-wrapper-border-color);transform-origin:50%;min-width:320px;min-height:64px;box-shadow:var(--context-sonner-wrapper-box-shadow);transition:filter var(--transition-default), opacity var(--transition-default), background-color var(--transition-default), color var(--transition-default), border-color var(--transition-default), transform var(--transition-default);border-radius:12px;flex-direction:row;flex-shrink:1;justify-content:flex-start;align-self:stretch;align-items:center;gap:10px;padding:16px 20px;display:flex;overflow:visible}.context-sonner__element-wrapper:hover{box-shadow:var(--context-sonner-wrapper-box-shadow-hover)}.context-sonner__element-wrapper:has(:hover){box-shadow:var(--context-sonner-wrapper-box-shadow-hover)}.context-sonner__content{flex-direction:column;flex:1 0;justify-content:flex-start;align-self:stretch;align-items:flex-start;gap:2px;display:flex;position:relative;overflow:hidden}.context-sonner__icon{display:contents}.context-sonner__content-title{color:var(--context-sonner-title-color);text-align:left;font-family:var(--font-family);font-size:var(--size-medium-small-font);font-weight:700;line-height:var(--font-height);justify-content:flex-start;align-items:center;display:flex}.context-sonner__content-description{color:var(--context-sonner-description-color);text-align:left;font-family:var(--font-family);font-size:var(--size-medium-small-font);font-weight:400;line-height:var(--font-height);justify-content:flex-start;align-items:center;display:flex;position:relative}.context-sonner__button-wrapper{justify-content:flex-end;align-items:center;display:flex}:root{--font-family:"Inter";--font-size:16px;--font-weight:400;--font-height:1.2;--font-size-heading-headline:28px;--font-size-heading-headline-plus-height:4px;--font-size-heading-sub-headline:11px;--font-size-heading-sub-headline-plus-height:3px;--font-size-heading-title-1:26px;--font-size-heading-title-1-plus-height:6px;--font-size-heading-title-2:22px;--font-size-heading-title-2-plus-height:4px;--font-size-heading-title-3:17px;--font-size-heading-title-3-plus-height:5px;--font-size-heading-title-4:15px;--font-size-heading-title-4-plus-height:5px;--font-size-heading-title-5:12px;--font-size-heading-title-5-plus-height:4px;--font-size-heading-body:13px;--font-size-heading-body-plus-height:3px;--font-size-heading-callout:13px;--font-size-heading-callout-plus-height:3px;--font-size-heading-footnote:10px;--font-size-heading-footnote-plus-height:3px;--font-size-heading-caption-1:10px;--font-size-heading-caption-1-plus-height:3px;--font-size-heading-caption-2:9px;--font-size-heading-caption-2-plus-height:3px;--font-size-heading-controller-large:20px;--font-size-heading-controller-large-plus-height:4px;--font-size-heading-controller-large-medium:18px;--font-size-heading-controller-large-medium-plus-height:3.6px;--font-size-heading-controller-medium:16px;--font-size-heading-controller-medium-plus-height:3.2px;--font-size-heading-controller-medium-small:14px;--font-size-heading-controller-medium-small-plus-height:2.8px;--font-size-heading-controller-small:12px;--font-size-heading-controller-small-plus-height:2.4px;--duration:.3s;--easing:ease-in-out;--transition-default:.3s ease-in-out;--size-large-height:46px;--size-large-height-icon:24px;--size-large-radius:6px;--size-large-padding:16px;--size-large-font:20px;--size-large-medium-height:42px;--size-large-medium-height-icon:22px;--size-large-medium-radius:6px;--size-large-medium-padding:14px;--size-large-medium-font:18px;--size-medium-height:38px;--size-medium-height-icon:20px;--size-medium-radius:6px;--size-medium-padding:12px;--size-medium-font:16px;--size-medium-small-height:34px;--size-medium-small-height-icon:18px;--size-medium-small-radius:6px;--size-medium-small-padding:10px;--size-medium-small-font:14px;--size-small-height:30px;--size-small-height-icon:16px;--size-small-radius:8px;--size-small-padding:8px;--size-small-font:12px;--size-toggle-large-height:46px;--size-toggle-large-width:92px;--size-toggle-large-padding:3px;--size-toggle-large-thumb:40px;--size-toggle-large-medium-height:42px;--size-toggle-large-medium-width:84px;--size-toggle-large-medium-padding:2px;--size-toggle-large-medium-thumb:38px;--size-toggle-medium-height:38px;--size-toggle-medium-width:76px;--size-toggle-medium-padding:2px;--size-toggle-medium-thumb:34px;--size-toggle-medium-small-height:34px;--size-toggle-medium-small-width:68px;--size-toggle-medium-small-padding:2px;--size-toggle-medium-small-thumb:30px;--size-toggle-small-height:30px;--size-toggle-small-width:60px;--size-toggle-small-padding:2px;--size-toggle-small-thumb:26px}@media screen and (width<=1290px){:root{--font-size-heading-headline:24px;--font-size-heading-sub-headline:9px;--font-size-heading-title-1:22px;--font-size-heading-title-2:18px;--font-size-heading-title-3:14px;--font-size-heading-title-4:13px;--font-size-heading-title-5:9px;--font-size-heading-body:11px;--font-size-heading-callout:11px;--font-size-heading-footnote:8px;--font-size-heading-caption-1:8px;--font-size-heading-caption-2:7px}}@media screen and (width<=850px){:root{--font-size-heading-headline:20px;--font-size-heading-sub-headline:7px;--font-size-heading-title-1:18px;--font-size-heading-title-2:14px;--font-size-heading-title-3:11px;--font-size-heading-title-4:10px;--font-size-heading-title-5:7px;--font-size-heading-body:9px;--font-size-heading-callout:9px;--font-size-heading-footnote:6px;--font-size-heading-caption-1:6px;--font-size-heading-caption-2:5px}}:root{--accent-red-light:#ff3b30;--accent-orange-light:#ff9500;--accent-yellow-light:#fc0;--accent-green-light:#28cd41;--accent-mint-light:#00c7be;--accent-teal-light:#59adc4;--accent-cyan-light:#55bef0;--accent-blue-light:#007aff;--accent-indigo-light:#5856d6;--accent-purple-light:#af52de;--accent-pink-light:#ff2d55;--accent-brown-light:#a2845e;--accent-gray-light:#8e8e93;--accent-red-dark:#ff453a;--accent-orange-dark:#ff9f0a;--accent-yellow-dark:#ffd60a;--accent-green-dark:#32d74b;--accent-mint-dark:#66d4cf;--accent-teal-dark:#6ac4dc;--accent-cyan-dark:#5ac8f5;--accent-blue-dark:#0a84ff;--accent-indigo-dark:#5e5ce6;--accent-purple-dark:#bf5af2;--accent-pink-dark:#ff375f;--accent-brown-dark:#ac8e68;--accent-gray-dark:#98989d;--accent-red-light-stable:#ff3b30;--accent-orange-light-stable:#ff9500;--accent-yellow-light-stable:#fc0;--accent-green-light-stable:#28cd41;--accent-mint-light-stable:#00c7be;--accent-teal-light-stable:#59adc4;--accent-cyan-light-stable:#55bef0;--accent-blue-light-stable:#007aff;--accent-indigo-light-stable:#5856d6;--accent-purple-light-stable:#af52de;--accent-pink-light-stable:#ff2d55;--accent-brown-light-stable:#a2845e;--accent-gray-light-stable:#8e8e93;--accent-red-dark-stable:#ff453a;--accent-orange-dark-stable:#ff9f0a;--accent-yellow-dark-stable:#ffd60a;--accent-green-dark-stable:#32d74b;--accent-mint-dark-stable:#66d4cf;--accent-teal-dark-stable:#6ac4dc;--accent-cyan-dark-stable:#5ac8f5;--accent-blue-dark-stable:#0a84ff;--accent-indigo-dark-stable:#5e5ce6;--accent-purple-dark-stable:#bf5af2;--accent-pink-dark-stable:#ff375f;--accent-brown-dark-stable:#ac8e68;--accent-gray-dark-stable:#98989d;--fill-light:#000;--fill-primary-light:#000000d9;--fill-secondary-light:#00000080;--fill-tertiary-light:#00000040;--fill-quaternary-light:#0000001a;--fill-quinary-light:#0000000d;--fill-dark:#fff;--fill-primary-dark:#ffffffd9;--fill-secondary-dark:#ffffff8c;--fill-tertiary-dark:#ffffff40;--fill-quaternary-dark:#ffffff1a;--fill-quinary-dark:#ffffff0d;--fill-light-stable:#000;--fill-primary-light-stable:#000000d9;--fill-secondary-light-stable:#00000080;--fill-tertiary-light-stable:#00000040;--fill-quaternary-light-stable:#0000001a;--fill-quinary-light-stable:#0000000d;--fill-dark-stable:#fff;--fill-primary-dark-stable:#ffffffd9;--fill-secondary-dark-stable:#ffffff8c;--fill-tertiary-dark-stable:#ffffff40;--fill-quaternary-dark-stable:#ffffff1a;--fill-quinary-dark-stable:#ffffff0d;--text-primary-light:#000000d9;--text-secondary-light:#00000080;--text-tertiary-light:#00000040;--text-primary-dark:#ffffffd9;--text-secondary-dark:#ffffff8c;--text-tertiary-dark:#ffffff40;--text-primary-light-stable:#000000d9;--text-secondary-light-stable:#00000080;--text-tertiary-light-stable:#00000040;--text-primary-dark-stable:#ffffffd9;--text-secondary-dark-stable:#ffffff8c;--text-tertiary-dark-stable:#ffffff40;--control-menu-light:#28282894;--control-tooltip-light:#f6f6f699;--control-transparent:#fff0;--control-menu-dark:#f6f6f6b8;--control-tooltip-dark:#00000059;--control-menu-light-stable:#28282894;--control-tooltip-light-stable:#f6f6f699;--control-transparent-stable:#fff0;--control-menu-dark-stable:#f6f6f6b8;--control-tooltip-dark-stable:#00000059;--product-primary-light:#4195d2;--product-secondary-light:#4195d280;--product-tertiary-light:#4195d240;--product-quaternary-light:#4195d21a;--product-quinary-light:#4195d20d;--product-primary-dark:#64b5f6;--product-secondary-dark:#64b5f699;--product-tertiary-dark:#64b5f659;--product-quaternary-dark:#64b5f62e;--product-quinary-dark:#64b5f614;--product-primary-light-stable:#4195d2;--product-secondary-light-stable:#4195d280;--product-tertiary-light-stable:#4195d240;--product-quaternary-light-stable:#4195d21a;--product-quinary-light-stable:#4195d20d;--product-primary-dark-stable:#64b5f6;--product-secondary-dark-stable:#64b5f699;--product-tertiary-dark-stable:#64b5f659;--product-quaternary-dark-stable:#64b5f62e;--product-quinary-dark-stable:#64b5f614;--shadow-glass-light:0px 1px 8px #0000001a, 0px 0px 2px #0000001a, inset 0px 0px 8px #f2f2f2, inset 0px 0px 0px #a6a6a6, inset -2px -2px .5px #262626, inset 2px 2px .5px #262626, inset 3px 3px .5px #fff;--shadow-primary-light:0px 0px 3px #0000008c, 0px 36px 100px #0006;--shadow-secondary-light:0px 0px 3px #0000008c, 0px 8px 40px #00000040;--shadow-tertiary-light:0px 0px 3px #0000008c, 0px 36px 100px #00000040;--shadow-quaternary-light:0px 0px 3px #0000008c, 0px 4px 20px #00000040;--shadow-window-inner-shadow-light:inset 0px 0px 3px #ffffff1a;--shadow-primary-dark:0px 36px 100px #000000b3, 0px 0px 1px #000;--shadow-secondary-dark:0px 8px 40px #000000b3, 0px 0px 1px #000;--shadow-tertiary-dark:0px 36px 100px #00000073, 0px 0px 1px #000;--shadow-quaternary-dark:0px 4px 20px #00000073, 0px 0px 1px #000;--shadow-window-inner-shadow-dark:inset 0px 0px 1px #fff3;--shadow-glass-dark:0px 1px 8px #0000001a, 0px 0px 2px #0000001a, inset 0px 0px 16px #f2f2f2, inset 0px 0px 1px #999, inset 0px 0px 1px #ffffff26, inset -1px -1px 1px #ffffffbf, inset 1px 1px 1px #ffffffbf, inset 3px 3px .5px #fffc, inset 3px 3px .5px #ffffffbf;--shadow-primary-light-stable:0px 0px 3px #0000008c, 0px 36px 100px #0006;--shadow-secondary-light-stable:0px 0px 3px #0000008c, 0px 8px 40px #00000040;--shadow-tertiary-light-stable:0px 0px 3px #0000008c, 0px 36px 100px #00000040;--shadow-quaternary-light-stable:0px 0px 3px #0000008c, 0px 4px 20px #00000040;--shadow-window-inner-shadow-light-stable:inset 0px 0px 3px #ffffff1a;--shadow-primary-dark-stable:0px 36px 100px #000000b3, 0px 0px 1px #000;--shadow-secondary-dark-stable:0px 8px 40px #000000b3, 0px 0px 1px #000;--shadow-tertiary-dark-stable:0px 36px 100px #00000073, 0px 0px 1px #000;--shadow-quaternary-dark-stable:0px 4px 20px #00000073, 0px 0px 1px #000;--shadow-window-inner-shadow-dark-stable:inset 0px 0px 1px #fff3;--shadow-glass-dark-stable:0px 1px 8px #0000001a, 0px 0px 2px #0000001a, inset 0px 0px 16px #f2f2f2, inset 0px 0px 1px #999, inset 0px 0px 1px #ffffff26, inset -1px -1px 1px #ffffffbf, inset 1px 1px 1px #ffffffbf, inset 3px 3px .5px #fffc, inset 3px 3px .5px #ffffffbf;--current-color:currentColor;--inherit:inherit;--transparent:transparent}:root[data-theme=dark]{--accent-red-dark:#ff3b30;--accent-orange-dark:#ff9500;--accent-yellow-dark:#fc0;--accent-green-dark:#28cd41;--accent-mint-dark:#00c7be;--accent-teal-dark:#59adc4;--accent-cyan-dark:#55bef0;--accent-blue-dark:#007aff;--accent-indigo-dark:#5856d6;--accent-purple-dark:#af52de;--accent-pink-dark:#ff2d55;--accent-brown-dark:#a2845e;--accent-gray-dark:#8e8e93;--accent-red-light:#ff453a;--accent-orange-light:#ff9f0a;--accent-yellow-light:#ffd60a;--accent-green-light:#32d74b;--accent-mint-light:#66d4cf;--accent-teal-light:#6ac4dc;--accent-cyan-light:#5ac8f5;--accent-blue-light:#0a84ff;--accent-indigo-light:#5e5ce6;--accent-purple-light:#bf5af2;--accent-pink-light:#ff375f;--accent-brown-light:#ac8e68;--accent-gray-light:#98989d;--fill-dark:#000;--fill-primary-dark:#000000d9;--fill-secondary-dark:#00000080;--fill-tertiary-dark:#00000040;--fill-quaternary-dark:#0000001a;--fill-quinary-dark:#0000000d;--fill-light:#fff;--fill-primary-light:#ffffffd9;--fill-secondary-light:#ffffff8c;--fill-tertiary-light:#ffffff40;--fill-quaternary-light:#ffffff1a;--fill-quinary-light:#ffffff0d;--text-primary-dark:#000000d9;--text-secondary-dark:#00000080;--text-tertiary-dark:#00000040;--text-primary-light:#ffffffd9;--text-secondary-light:#ffffff8c;--text-tertiary-light:#ffffff40;--control-menu-dark:#28282894;--control-tooltip-dark:#f6f6f699;--control-menu-light:#f6f6f6b8;--control-tooltip-light:#00000059;--product-primary-dark:#4195d2;--product-secondary-dark:#4195d280;--product-tertiary-dark:#4195d240;--product-quaternary-dark:#4195d21a;--product-quinary-dark:#4195d20d;--product-primary-light:#64b5f6;--product-secondary-light:#64b5f699;--product-tertiary-light:#64b5f659;--product-quaternary-light:#64b5f62e;--product-quinary-light:#64b5f614;--shadow-glass-dark:0px 1px 8px #0000001a, inset 0px 0px 8px #f2f2f2;--shadow-primary-dark:0px 0px 3px #0000008c, 0px 36px 100px #0006;--shadow-secondary-dark:0px 8px 40px #00000040;--shadow-quaternary-dark:0px 4px 20px #00000040;--shadow-glass-light:0px 1px 8px #0000001a, inset 0px 0px 16px #f2f2f2;--shadow-primary-light:0px 36px 100px #000000b3;--shadow-secondary-light:0px 8px 40px #000000b3;--shadow-quaternary-light:0px 4px 20px #00000073}*,:before,:after{box-sizing:border-box}*{margin:0;padding:0}html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;scroll-behavior:smooth;font-size:var(--font-size);font-family:var(--font-family);font-weight:var(--font-weight);font-feature-settings:auto;font-kerning:auto;font-optical-sizing:auto;font-synthesis:none;color:var(--text-primary-light);line-height:var(--font-height);touch-action:manipulation;-ms-touch-action:manipulation;overscroll-behavior:none}html,body,#root{width:100%;height:100%;overflow-x:hidden}body{min-width:320px;min-height:100dvh}#root{isolation:isolate;flex-direction:column;min-height:100dvh;display:flex}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}img,picture,video,canvas,svg{max-width:100%;display:block}input,button,textarea,select{font:inherit;color:inherit}button{background:0 0;border:none;padding:0}a{color:inherit;text-decoration:none}ul,ol{padding:0;list-style:none}table{border-spacing:0;border-collapse:collapse}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}#__next{isolation:isolate}@keyframes shadowPulse{0%{text-shadow:0 0 #0000}50%{text-shadow:4px 4px 10px #00000080}to{text-shadow:0 0 #0000}}@keyframes backgroundMove{0%{background-position:100%}to{background-position:-100%}}.keyframe--shadow-pulse{animation:1.5s ease-in-out infinite shadowPulse}.keyframe--background-move{animation:1.5s linear infinite backgroundMove}.u-remove-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.u-remove-scrollbar::-webkit-scrollbar{display:none}.u-remove-scrollbar::-webkit-scrollbar-thumb{display:none}.u-remove-scrollbar::-webkit-scrollbar-track{display:none}.u-remove-outline{outline-offset:0!important;outline:0 solid #0000!important}.u-tabular-numbers{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.u-is-ripple{isolation:isolate;position:relative;overflow:hidden}.u-transition--font-size{transition:outline 0s, filter var(--transition-default), opacity var(--transition-default), background-color var(--transition-default), color var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default), font-size var(--transition-default)}.u-transition--icon{transition:outline 0s, filter var(--transition-default), opacity var(--transition-default), background-color var(--transition-default), color var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default)}.u-transition--icon path{transition:all var(--transition-default)}.u-transition--color{transition:outline 0s, filter var(--transition-default), opacity var(--transition-default), background-color var(--transition-default), color var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default)}.u-transition--grid{transition:grid-template-areas var(--transition-default), grid-template-columns var(--transition-default), grid-template-rows var(--transition-default)}.u-transition--without-size{transition:outline 0s, filter var(--transition-default), opacity var(--transition-default), transform var(--transition-default), background-color var(--transition-default), color var(--transition-default), visibility var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default), left var(--transition-default), right var(--transition-default), grid-template-areas var(--transition-default), grid-template-rows var(--transition-default), grid-template-columns var(--transition-default)}.u-transition--all{transition:outline 0s, filter var(--transition-default), opacity var(--transition-default), transform var(--transition-default), background-color var(--transition-default), height var(--transition-default), max-height var(--transition-default), width var(--transition-default), color var(--transition-default), visibility var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default), left var(--transition-default), right var(--transition-default), grid-template-areas var(--transition-default), grid-template-rows var(--transition-default), grid-template-columns var(--transition-default)}.u-outline--default:focus-visible{outline-offset:1px;outline:2px solid var(--accent-gray-light)}.u-outline--default:has(input:focus-visible):not(:has(input:active)){outline-offset:1px;outline:2px solid var(--accent-gray-light)}.u-outline--default:has(textarea:focus-visible):not(:has(textarea:active)){outline-offset:1px;outline:2px solid var(--accent-gray-light)}.u-outline--boxShadow:focus-visible{outline-offset:0px;outline:1px solid var(--product-primary-light);box-shadow:0 1px 1px var(--product-quinary-light), 0 0 0 .25rem var(--product-tertiary-light)}.u-outline--always{outline-offset:1px;outline:2px solid var(--accent-gray-light)}.u-outline--none,.u-outline--none:focus-visible{outline:none}.u-control--default:focus-visible,.u-control--only-active:focus-visible{outline-offset:1px;outline:2px solid var(--accent-gray-light)}.u-control--boxShadow:has(input:focus-visible){outline-offset:1px;outline:2px solid var(--accent-gray-light)}.u-control--boxShadow:has(textarea:focus-visible){outline-offset:1px;outline:2px solid var(--accent-gray-light)}.u-control--default:hover{filter:brightness(.9);outline-offset:1px;outline:2px solid var(--accent-gray-light)}.u-control--default:active{filter:brightness(.95)}.u-control--none{cursor:default;outline:none}@media (hover:none){.u-control--default:hover{filter:none}}.u-control--only-active:active{filter:brightness(.95)}.u-control--boxShadow-only-hover:hover,.u-control--boxShadow:focus-visible,.u-control--boxShadow:hover{box-shadow:0 1px 1px var(--product-quinary-light), 0 0 0 .25rem var(--product-tertiary-light);outline:none}.u-control--boxShadow:active{outline-offset:4px;outline:1px solid var(--product-secondary-light);box-shadow:0 1px 1px var(--product-quinary-light), 0 0 0 .25rem var(--product-secondary-light)}.u-control--boxShadow:has(input:focus-visible){outline-offset:4px;outline:1px solid var(--product-secondary-light);box-shadow:0 1px 1px var(--product-quinary-light), 0 0 0 .25rem var(--product-secondary-light)}.u-control--boxShadow:has(textarea:focus-visible){outline-offset:4px;outline:1px solid var(--product-secondary-light);box-shadow:0 1px 1px var(--product-quinary-light), 0 0 0 .25rem var(--product-secondary-light)}.u-control--boxShadow-select{outline-offset:4px;outline:1px solid var(--product-secondary-light);box-shadow:0 1px 1px var(--product-quinary-light), 0 0 0 .25rem var(--product-secondary-light)}.u-scrollbar-gutter--stable{scrollbar-gutter:stable}.u-scrollbar-gutter--stable-both{scrollbar-gutter:stable both-edges}.u-is-disabled{opacity:.5}.u-is-hover{transition:background-color var(--transition-default), outline 0s}.u-shadow--primary{box-shadow:var(--shadow-primary-light)}.u-shadow--secondary{box-shadow:var(--shadow-secondary-light)}.u-shadow--quaternary{box-shadow:var(--shadow-quaternary-light)}.u-is-error,.u-is-error:focus,.u-is-error:active,.u-is-error:hover,.u-is-error:focus-visible{border-color:var(--accent-red-light)!important}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -72,9 +72,9 @@ var c = x.font.size * x.font.height, O = (e) => {
|
|
|
72
72
|
return a[l.component.textarea.color] = i.genre.textarea[e.genre].color, a[l.component.textarea.placeholderColor] = i.genre.textarea[e.genre].placeholder, {
|
|
73
73
|
className: t,
|
|
74
74
|
style: y([
|
|
75
|
-
e.style,
|
|
76
75
|
h,
|
|
77
|
-
Object.keys(a).length ? a : void 0
|
|
76
|
+
Object.keys(a).length ? a : void 0,
|
|
77
|
+
e.style
|
|
78
78
|
])
|
|
79
79
|
};
|
|
80
80
|
}, [
|
|
@@ -110,9 +110,9 @@ var c = x.font.size * x.font.height, O = (e) => {
|
|
|
110
110
|
autoComplete: e.autoComplete,
|
|
111
111
|
id: e.id,
|
|
112
112
|
style: {
|
|
113
|
-
...S,
|
|
114
113
|
minHeight: `${d}px`,
|
|
115
|
-
maxHeight: e.isResize ? "none" : e.isAutoHeight ? `${o}px` : `${d}px
|
|
114
|
+
maxHeight: e.isResize ? "none" : e.isAutoHeight ? `${o}px` : `${d}px`,
|
|
115
|
+
...S
|
|
116
116
|
}
|
|
117
117
|
})
|
|
118
118
|
}), e?.error?.isError && /* @__PURE__ */ r(v, {
|
|
@@ -129,4 +129,4 @@ export {
|
|
|
129
129
|
O as t
|
|
130
130
|
};
|
|
131
131
|
|
|
132
|
-
//# sourceMappingURL=textarea-
|
|
132
|
+
//# sourceMappingURL=textarea-BW_LYAhr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea-BW_LYAhr.js","names":[],"sources":["../src/components/textarea/component.tsx"],"sourcesContent":["import { ErrorMessage } from '@local/components/error';\nimport { useMergeRefs } from '@local/hooks/use-merge-refs';\nimport { useTypographyStyles } from '@local/hooks/use-typography-styles/use';\nimport { CSS_CLASS, CSS_VARS, CSS_VARS_RAW, EXTRA_VALUE } from '@local/styles/utils';\nimport { setClasses, setStyles } from '@local/styles/utils/functions';\n\nimport { useCallback, useEffect, useMemo, useRef } from 'react';\n\nimport { ITextArea } from './component.types';\n\nconst lineHeight = EXTRA_VALUE.font.size * EXTRA_VALUE.font.height;\n\nexport const TextArea = (props: ITextArea) => {\n const refLocal = useRef<HTMLTextAreaElement>(null);\n const ref = useMergeRefs([refLocal, props.ref]);\n\n const maxHeight = useMemo(() => (props.maxRows ? props.maxRows * lineHeight : 0), [props.maxRows]);\n const minHeight = useMemo(() => (props.minRows ? props.minRows * lineHeight : lineHeight), [props.minRows]);\n\n const resizeTextarea = useCallback(() => {\n const el = refLocal.current;\n if (el && props.isAutoHeight) {\n el.style.height = 'auto';\n const newHeight = Math.min(el.scrollHeight, maxHeight);\n el.style.height = `${newHeight}px`;\n }\n }, [props.isAutoHeight, maxHeight]);\n\n const handleOnChange = useCallback(\n (value: string) => {\n if (props.isNoSpaces) {\n const valueWithoutSpaces = value.replace(/\\s+/g, '');\n props.onChange?.(valueWithoutSpaces);\n } else {\n props.onChange?.(value);\n }\n },\n [props.isNoSpaces, props.onChange],\n );\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: value changes should remeasure auto-height textareas.\n useEffect(() => {\n if (props.isAutoHeight) {\n requestAnimationFrame(resizeTextarea);\n }\n }, [props.value, resizeTextarea, props.isAutoHeight]);\n\n const { className: classNameTypography, style: styleTypography } = useTypographyStyles({\n sx: {\n family: props.isNiceNumber ? 'Roboto Mono' : props.sxTypography?.family,\n size: 16,\n weight: props.isBold ? '700' : '400',\n height: '1.2',\n ...props?.sxTypography,\n },\n });\n\n const { className, style } = useMemo(() => {\n const className = setClasses([\n CSS_CLASS.component.textarea.wrapper,\n CSS_CLASS.transition.color,\n props.error?.isError && CSS_CLASS.isError,\n CSS_CLASS.control[props.isDisabled ? 'none' : (props.control ?? 'boxShadow')],\n props.isZeroRadius && CSS_CLASS.component.textarea.wrapperIsZeroRadius,\n props.isHidden && CSS_CLASS.component.textarea.wrapperIsHidden,\n props.isHiddenBorder && CSS_CLASS.component.textarea.wrapperIsHiddenBorder,\n props.isFullRadius && CSS_CLASS.component.textarea.wrapperIsFullRadius,\n !props.isResize && CSS_CLASS.component.textarea.wrapperIsNotResize,\n props.className,\n ]);\n\n const vars: Record<string, string> = {};\n\n vars[CSS_VARS_RAW.component.textarea.radius] = CSS_VARS.size[props.size].radius;\n vars[CSS_VARS_RAW.component.textarea.borderColor] = CSS_VARS.genre.textarea[props.genre].border;\n vars[CSS_VARS_RAW.component.textarea.background] = CSS_VARS.genre.textarea[props.genre].background;\n vars[CSS_VARS_RAW.component.textarea.padding] =\n `calc(${CSS_VARS.size[props.size].padding} - 4px) 0px calc(${CSS_VARS.size[props.size].padding} - 4px) ${CSS_VARS.size[props.size].padding}`;\n\n const style = setStyles([Object.keys(vars).length ? vars : undefined, props.style]);\n\n return { className, style };\n }, [\n props.className,\n props.size,\n props.style,\n props.isDisabled,\n props.isHidden,\n props.isFullRadius,\n props.isHiddenBorder,\n props.isZeroRadius,\n props.genre,\n props.control,\n props.error?.isError,\n props.isResize,\n ]);\n\n const { className: classNameTextarea, style: styleTextarea } = useMemo(() => {\n const className = setClasses([\n CSS_CLASS.component.textarea.root,\n CSS_CLASS.scrollbarGutter.stable,\n CSS_CLASS.transition.color,\n classNameTypography,\n ]);\n\n const vars: Record<string, string> = {};\n\n vars[CSS_VARS_RAW.component.textarea.color] = CSS_VARS.genre.textarea[props.genre].color;\n vars[CSS_VARS_RAW.component.textarea.placeholderColor] = CSS_VARS.genre.textarea[props.genre].placeholder;\n\n const style = setStyles([styleTypography, Object.keys(vars).length ? vars : undefined, props.style]);\n\n return { className, style };\n }, [props.style, props.genre, classNameTypography, styleTypography]);\n\n return (\n <>\n <div className={className} style={style}>\n <textarea\n className={classNameTextarea}\n tabIndex={0}\n ref={ref}\n maxLength={props.maxLength}\n minLength={props.minLength}\n disabled={props.isDisabled}\n readOnly={props.isReadOnly}\n required={props.isRequired}\n defaultValue={props.defaultValue === null ? '' : props.defaultValue}\n value={props.value === null ? '' : props.value}\n rows={props.minRows}\n placeholder={props.placeholder}\n onChange={(event) => handleOnChange(event.target.value)}\n onBlur={props.onBlur}\n onFocus={props.onFocus}\n onKeyDown={props.onKeyDown}\n onMouseDown={props.onMouseDown}\n onClick={props.onClick}\n name={props.name}\n aria-label={props.ariaLabel ?? props.name}\n autoComplete={props.autoComplete}\n id={props.id}\n style={{\n minHeight: `${minHeight}px`,\n maxHeight: props.isResize ? 'none' : props.isAutoHeight ? `${maxHeight}px` : `${minHeight}px`,\n ...styleTextarea,\n }}\n />\n </div>\n\n {props?.error?.isError && (\n <ErrorMessage\n size={props?.error.size ?? props.size}\n sxTypography={{ size: '16px', weight: '400', ...props?.error.sxTypography }}\n {...props.error}\n />\n )}\n </>\n );\n};\n"],"mappings":";;;;;;;AAUA,IAAM,IAAa,EAAY,KAAK,OAAO,EAAY,KAAK,QAE/C,IAAA,CAAY,MAAqB;AAC5C,QAAM,IAAW,EAA4B,IAAA,GACvC,IAAM,EAAa,CAAC,GAAU,EAAM,GAAA,CAAI,GAExC,IAAY,EAAA,MAAe,EAAM,UAAU,EAAM,UAAU,IAAa,GAAI,CAAC,EAAM,OAAA,CAAQ,GAC3F,IAAY,EAAA,MAAe,EAAM,UAAU,EAAM,UAAU,IAAa,GAAa,CAAC,EAAM,OAAA,CAAQ,GAEpG,IAAiB,EAAA,MAAkB;AACvC,UAAM,IAAK,EAAS;AACpB,QAAI,KAAM,EAAM,cAAc;AAC5B,MAAA,EAAG,MAAM,SAAS;AAClB,YAAM,IAAY,KAAK,IAAI,EAAG,cAAc,CAAA;AAC5C,MAAA,EAAG,MAAM,SAAS,GAAG,CAAA;AAAA;KAEtB,CAAC,EAAM,cAAc,CAAA,CAAU,GAE5B,IAAiB,EAAA,CACpB,MAAkB;AACjB,QAAI,EAAM,YAAY;AACpB,YAAM,IAAqB,EAAM,QAAQ,QAAQ,EAAA;AACjD,MAAA,EAAM,WAAW,CAAA;AAAA,UAEjB,CAAA,EAAM,WAAW,CAAA;AAAA,KAGrB,CAAC,EAAM,YAAY,EAAM,QAAA,CAAS;AAIpC,EAAA,EAAA,MAAgB;AACd,IAAI,EAAM,gBACR,sBAAsB,CAAA;AAAA,KAEvB;AAAA,IAAC,EAAM;AAAA,IAAO;AAAA,IAAgB,EAAM;AAAA,GAAa;AAEpD,QAAM,EAAE,WAAW,GAAqB,OAAO,EAAA,IAAoB,EAAoB,EACrF,IAAI;AAAA,IACF,QAAQ,EAAM,eAAe,gBAAgB,EAAM,cAAc;AAAA,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M,OAAO,KAAA;AAAA,MACjD,QAAQ,EAAM;AAAA,MACd,SAAS,EAAM;AAAA,MACf,WAAW,EAAM;AAAA,MACjB,aAAa,EAAM;AAAA,MACnB,SAAS,EAAM;AAAA,MACf,MAAM,EAAM;AAAA,MACZ,cAAY,EAAM,aAAa,EAAM;AAAA,MACrC,cAAc,EAAM;AAAA,MACpB,IAAI,EAAM;AAAA,MACV,OAAO;AAAA,QACL,WAAW,GAAG,CAAA;AAAA,QACd,WAAW,EAAM,WAAW,SAAS,EAAM,eAAe,GAAG,CAAA,OAAgB,GAAG,CAAA;AAAA,QAChF,GAAG;AAAA;KAEL;AAAA,GACE,GAEL,GAAO,OAAO,WACb,gBAAA,EAAC,GAAD;AAAA,IACE,MAAM,GAAO,MAAM,QAAQ,EAAM;AAAA,IACjC,cAAc;AAAA,MAAE,MAAM;AAAA,MAAQ,QAAQ;AAAA,MAAO,GAAG,GAAO,MAAM;AAAA;IAC7D,GAAI,EAAM;AAAA,GACV,CAAA,EAEH,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const f=require("./chunk-Dd8m0Ver.cjs"),t=require("./utils-DCIq-5FL.cjs"),s=require("./functions-CZrZU5U0.cjs"),R=require("./hooks-use-merge-refs.cjs.js"),y=require("./hooks-use-typography-styles.cjs.js"),b=require("./error-aQfsl_Kl.cjs");let r=require("react/jsx-runtime"),i=require("react");var S=t.EXTRA_VALUE.font.size*t.EXTRA_VALUE.font.height,w=e=>{const o=(0,i.useRef)(null),m=R.useMergeRefs([o,e.ref]),l=(0,i.useMemo)(()=>e.maxRows?e.maxRows*S:0,[e.maxRows]),c=(0,i.useMemo)(()=>e.minRows?e.minRows*S:S,[e.minRows]),u=(0,i.useCallback)(()=>{const n=o.current;if(n&&e.isAutoHeight){n.style.height="auto";const a=Math.min(n.scrollHeight,l);n.style.height=`${a}px`}},[e.isAutoHeight,l]),h=(0,i.useCallback)(n=>{if(e.isNoSpaces){const a=n.replace(/\s+/g,"");e.onChange?.(a)}else e.onChange?.(n)},[e.isNoSpaces,e.onChange]);(0,i.useEffect)(()=>{e.isAutoHeight&&requestAnimationFrame(u)},[e.value,u,e.isAutoHeight]);const{className:d,style:g}=y.useTypographyStyles({sx:{family:e.isNiceNumber?"Roboto Mono":e.sxTypography?.family,size:16,weight:e.isBold?"700":"400",height:"1.2",...e?.sxTypography}}),{className:C,style:x}=(0,i.useMemo)(()=>{const n=s.setClasses([t.CSS_CLASS.component.textarea.wrapper,t.CSS_CLASS.transition.color,e.error?.isError&&t.CSS_CLASS.isError,t.CSS_CLASS.control[e.isDisabled?"none":e.control??"boxShadow"],e.isZeroRadius&&t.CSS_CLASS.component.textarea.wrapperIsZeroRadius,e.isHidden&&t.CSS_CLASS.component.textarea.wrapperIsHidden,e.isHiddenBorder&&t.CSS_CLASS.component.textarea.wrapperIsHiddenBorder,e.isFullRadius&&t.CSS_CLASS.component.textarea.wrapperIsFullRadius,!e.isResize&&t.CSS_CLASS.component.textarea.wrapperIsNotResize,e.className]),a={};return a[t.CSS_VARS_RAW.component.textarea.radius]=t.CSS_VARS.size[e.size].radius,a[t.CSS_VARS_RAW.component.textarea.borderColor]=t.CSS_VARS.genre.textarea[e.genre].border,a[t.CSS_VARS_RAW.component.textarea.background]=t.CSS_VARS.genre.textarea[e.genre].background,a[t.CSS_VARS_RAW.component.textarea.padding]=`calc(${t.CSS_VARS.size[e.size].padding} - 4px) 0px calc(${t.CSS_VARS.size[e.size].padding} - 4px) ${t.CSS_VARS.size[e.size].padding}`,{className:n,style:s.setStyles([Object.keys(a).length?a:void 0,e.style])}},[e.className,e.size,e.style,e.isDisabled,e.isHidden,e.isFullRadius,e.isHiddenBorder,e.isZeroRadius,e.genre,e.control,e.error?.isError,e.isResize]),{className:_,style:A}=(0,i.useMemo)(()=>{const n=s.setClasses([t.CSS_CLASS.component.textarea.root,t.CSS_CLASS.scrollbarGutter.stable,t.CSS_CLASS.transition.color,d]),a={};return a[t.CSS_VARS_RAW.component.textarea.color]=t.CSS_VARS.genre.textarea[e.genre].color,a[t.CSS_VARS_RAW.component.textarea.placeholderColor]=t.CSS_VARS.genre.textarea[e.genre].placeholder,{className:n,style:s.setStyles([
|
|
1
|
+
const f=require("./chunk-Dd8m0Ver.cjs"),t=require("./utils-DCIq-5FL.cjs"),s=require("./functions-CZrZU5U0.cjs"),R=require("./hooks-use-merge-refs.cjs.js"),y=require("./hooks-use-typography-styles.cjs.js"),b=require("./error-aQfsl_Kl.cjs");let r=require("react/jsx-runtime"),i=require("react");var S=t.EXTRA_VALUE.font.size*t.EXTRA_VALUE.font.height,w=e=>{const o=(0,i.useRef)(null),m=R.useMergeRefs([o,e.ref]),l=(0,i.useMemo)(()=>e.maxRows?e.maxRows*S:0,[e.maxRows]),c=(0,i.useMemo)(()=>e.minRows?e.minRows*S:S,[e.minRows]),u=(0,i.useCallback)(()=>{const n=o.current;if(n&&e.isAutoHeight){n.style.height="auto";const a=Math.min(n.scrollHeight,l);n.style.height=`${a}px`}},[e.isAutoHeight,l]),h=(0,i.useCallback)(n=>{if(e.isNoSpaces){const a=n.replace(/\s+/g,"");e.onChange?.(a)}else e.onChange?.(n)},[e.isNoSpaces,e.onChange]);(0,i.useEffect)(()=>{e.isAutoHeight&&requestAnimationFrame(u)},[e.value,u,e.isAutoHeight]);const{className:d,style:g}=y.useTypographyStyles({sx:{family:e.isNiceNumber?"Roboto Mono":e.sxTypography?.family,size:16,weight:e.isBold?"700":"400",height:"1.2",...e?.sxTypography}}),{className:C,style:x}=(0,i.useMemo)(()=>{const n=s.setClasses([t.CSS_CLASS.component.textarea.wrapper,t.CSS_CLASS.transition.color,e.error?.isError&&t.CSS_CLASS.isError,t.CSS_CLASS.control[e.isDisabled?"none":e.control??"boxShadow"],e.isZeroRadius&&t.CSS_CLASS.component.textarea.wrapperIsZeroRadius,e.isHidden&&t.CSS_CLASS.component.textarea.wrapperIsHidden,e.isHiddenBorder&&t.CSS_CLASS.component.textarea.wrapperIsHiddenBorder,e.isFullRadius&&t.CSS_CLASS.component.textarea.wrapperIsFullRadius,!e.isResize&&t.CSS_CLASS.component.textarea.wrapperIsNotResize,e.className]),a={};return a[t.CSS_VARS_RAW.component.textarea.radius]=t.CSS_VARS.size[e.size].radius,a[t.CSS_VARS_RAW.component.textarea.borderColor]=t.CSS_VARS.genre.textarea[e.genre].border,a[t.CSS_VARS_RAW.component.textarea.background]=t.CSS_VARS.genre.textarea[e.genre].background,a[t.CSS_VARS_RAW.component.textarea.padding]=`calc(${t.CSS_VARS.size[e.size].padding} - 4px) 0px calc(${t.CSS_VARS.size[e.size].padding} - 4px) ${t.CSS_VARS.size[e.size].padding}`,{className:n,style:s.setStyles([Object.keys(a).length?a:void 0,e.style])}},[e.className,e.size,e.style,e.isDisabled,e.isHidden,e.isFullRadius,e.isHiddenBorder,e.isZeroRadius,e.genre,e.control,e.error?.isError,e.isResize]),{className:_,style:A}=(0,i.useMemo)(()=>{const n=s.setClasses([t.CSS_CLASS.component.textarea.root,t.CSS_CLASS.scrollbarGutter.stable,t.CSS_CLASS.transition.color,d]),a={};return a[t.CSS_VARS_RAW.component.textarea.color]=t.CSS_VARS.genre.textarea[e.genre].color,a[t.CSS_VARS_RAW.component.textarea.placeholderColor]=t.CSS_VARS.genre.textarea[e.genre].placeholder,{className:n,style:s.setStyles([g,Object.keys(a).length?a:void 0,e.style])}},[e.style,e.genre,d,g]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:C,style:x,children:(0,r.jsx)("textarea",{className:_,tabIndex:0,ref:m,maxLength:e.maxLength,minLength:e.minLength,disabled:e.isDisabled,readOnly:e.isReadOnly,required:e.isRequired,defaultValue:e.defaultValue===null?"":e.defaultValue,value:e.value===null?"":e.value,rows:e.minRows,placeholder:e.placeholder,onChange:n=>h(n.target.value),onBlur:e.onBlur,onFocus:e.onFocus,onKeyDown:e.onKeyDown,onMouseDown:e.onMouseDown,onClick:e.onClick,name:e.name,"aria-label":e.ariaLabel??e.name,autoComplete:e.autoComplete,id:e.id,style:{minHeight:`${c}px`,maxHeight:e.isResize?"none":e.isAutoHeight?`${l}px`:`${c}px`,...A}})}),e?.error?.isError&&(0,r.jsx)(b.ErrorMessage,{size:e?.error.size??e.size,sxTypography:{size:"16px",weight:"400",...e?.error.sxTypography},...e.error})]})};Object.defineProperty(exports,"TextArea",{enumerable:!0,get:function(){return w}});
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=textarea-
|
|
3
|
+
//# sourceMappingURL=textarea-Cly9U5It.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea-Cly9U5It.cjs","names":[],"sources":["../src/components/textarea/component.tsx"],"sourcesContent":["import { ErrorMessage } from '@local/components/error';\nimport { useMergeRefs } from '@local/hooks/use-merge-refs';\nimport { useTypographyStyles } from '@local/hooks/use-typography-styles/use';\nimport { CSS_CLASS, CSS_VARS, CSS_VARS_RAW, EXTRA_VALUE } from '@local/styles/utils';\nimport { setClasses, setStyles } from '@local/styles/utils/functions';\n\nimport { useCallback, useEffect, useMemo, useRef } from 'react';\n\nimport { ITextArea } from './component.types';\n\nconst lineHeight = EXTRA_VALUE.font.size * EXTRA_VALUE.font.height;\n\nexport const TextArea = (props: ITextArea) => {\n const refLocal = useRef<HTMLTextAreaElement>(null);\n const ref = useMergeRefs([refLocal, props.ref]);\n\n const maxHeight = useMemo(() => (props.maxRows ? props.maxRows * lineHeight : 0), [props.maxRows]);\n const minHeight = useMemo(() => (props.minRows ? props.minRows * lineHeight : lineHeight), [props.minRows]);\n\n const resizeTextarea = useCallback(() => {\n const el = refLocal.current;\n if (el && props.isAutoHeight) {\n el.style.height = 'auto';\n const newHeight = Math.min(el.scrollHeight, maxHeight);\n el.style.height = `${newHeight}px`;\n }\n }, [props.isAutoHeight, maxHeight]);\n\n const handleOnChange = useCallback(\n (value: string) => {\n if (props.isNoSpaces) {\n const valueWithoutSpaces = value.replace(/\\s+/g, '');\n props.onChange?.(valueWithoutSpaces);\n } else {\n props.onChange?.(value);\n }\n },\n [props.isNoSpaces, props.onChange],\n );\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: value changes should remeasure auto-height textareas.\n useEffect(() => {\n if (props.isAutoHeight) {\n requestAnimationFrame(resizeTextarea);\n }\n }, [props.value, resizeTextarea, props.isAutoHeight]);\n\n const { className: classNameTypography, style: styleTypography } = useTypographyStyles({\n sx: {\n family: props.isNiceNumber ? 'Roboto Mono' : props.sxTypography?.family,\n size: 16,\n weight: props.isBold ? '700' : '400',\n height: '1.2',\n ...props?.sxTypography,\n },\n });\n\n const { className, style } = useMemo(() => {\n const className = setClasses([\n CSS_CLASS.component.textarea.wrapper,\n CSS_CLASS.transition.color,\n props.error?.isError && CSS_CLASS.isError,\n CSS_CLASS.control[props.isDisabled ? 'none' : (props.control ?? 'boxShadow')],\n props.isZeroRadius && CSS_CLASS.component.textarea.wrapperIsZeroRadius,\n props.isHidden && CSS_CLASS.component.textarea.wrapperIsHidden,\n props.isHiddenBorder && CSS_CLASS.component.textarea.wrapperIsHiddenBorder,\n props.isFullRadius && CSS_CLASS.component.textarea.wrapperIsFullRadius,\n !props.isResize && CSS_CLASS.component.textarea.wrapperIsNotResize,\n props.className,\n ]);\n\n const vars: Record<string, string> = {};\n\n vars[CSS_VARS_RAW.component.textarea.radius] = CSS_VARS.size[props.size].radius;\n vars[CSS_VARS_RAW.component.textarea.borderColor] = CSS_VARS.genre.textarea[props.genre].border;\n vars[CSS_VARS_RAW.component.textarea.background] = CSS_VARS.genre.textarea[props.genre].background;\n vars[CSS_VARS_RAW.component.textarea.padding] =\n `calc(${CSS_VARS.size[props.size].padding} - 4px) 0px calc(${CSS_VARS.size[props.size].padding} - 4px) ${CSS_VARS.size[props.size].padding}`;\n\n const style = setStyles([Object.keys(vars).length ? vars : undefined, props.style]);\n\n return { className, style };\n }, [\n props.className,\n props.size,\n props.style,\n props.isDisabled,\n props.isHidden,\n props.isFullRadius,\n props.isHiddenBorder,\n props.isZeroRadius,\n props.genre,\n props.control,\n props.error?.isError,\n props.isResize,\n ]);\n\n const { className: classNameTextarea, style: styleTextarea } = useMemo(() => {\n const className = setClasses([\n CSS_CLASS.component.textarea.root,\n CSS_CLASS.scrollbarGutter.stable,\n CSS_CLASS.transition.color,\n classNameTypography,\n ]);\n\n const vars: Record<string, string> = {};\n\n vars[CSS_VARS_RAW.component.textarea.color] = CSS_VARS.genre.textarea[props.genre].color;\n vars[CSS_VARS_RAW.component.textarea.placeholderColor] = CSS_VARS.genre.textarea[props.genre].placeholder;\n\n const style = setStyles([styleTypography, Object.keys(vars).length ? vars : undefined, props.style]);\n\n return { className, style };\n }, [props.style, props.genre, classNameTypography, styleTypography]);\n\n return (\n <>\n <div className={className} style={style}>\n <textarea\n className={classNameTextarea}\n tabIndex={0}\n ref={ref}\n maxLength={props.maxLength}\n minLength={props.minLength}\n disabled={props.isDisabled}\n readOnly={props.isReadOnly}\n required={props.isRequired}\n defaultValue={props.defaultValue === null ? '' : props.defaultValue}\n value={props.value === null ? '' : props.value}\n rows={props.minRows}\n placeholder={props.placeholder}\n onChange={(event) => handleOnChange(event.target.value)}\n onBlur={props.onBlur}\n onFocus={props.onFocus}\n onKeyDown={props.onKeyDown}\n onMouseDown={props.onMouseDown}\n onClick={props.onClick}\n name={props.name}\n aria-label={props.ariaLabel ?? props.name}\n autoComplete={props.autoComplete}\n id={props.id}\n style={{\n minHeight: `${minHeight}px`,\n maxHeight: props.isResize ? 'none' : props.isAutoHeight ? `${maxHeight}px` : `${minHeight}px`,\n ...styleTextarea,\n }}\n />\n </div>\n\n {props?.error?.isError && (\n <ErrorMessage\n size={props?.error.size ?? props.size}\n sxTypography={{ size: '16px', weight: '400', ...props?.error.sxTypography }}\n {...props.error}\n />\n )}\n </>\n );\n};\n"],"mappings":"qSAUA,IAAM,EAAa,EAAA,YAAY,KAAK,KAAO,EAAA,YAAY,KAAK,OAE/C,EAAY,GAAqB,CAC5C,MAAM,KAAA,EAAA,QAAuC,IAAA,EACvC,EAAM,EAAA,aAAa,CAAC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require("./chunk-Dd8m0Ver.cjs"),n=require("./utils-DCIq-5FL.cjs"),l=require("./functions-CZrZU5U0.cjs"),V=require("./icon-DyjaxKWq.cjs"),v=require("./isEqual-Q-mEN2md.cjs"),m=require("./hooks-use-deep-compare-memoize.cjs.js"),L=require("./hooks-use-merge-refs.cjs.js"),M=require("./hooks-use-typography-styles.cjs.js");let y=require("react/jsx-runtime"),i=require("react");var b=f.__toESM(v.require_isEqual(),1),k=e=>{const s=m.useDeepCompareMemoize(e.icons??[]),u=m.useDeepCompareMemoize(e.style),S=m.useDeepCompareMemoize(e.sxTypography),c="iconGroupOrder"in e,o=c?e.iconGroupOrder:void 0,a=(0,i.useMemo)(()=>V.getIconComponents({icons:s.map(r=>({...r,style:{color:n.CSS_VARS.genre.button[e.genre].color.index}})),size:e.size}),[s,e.size,e.genre]),d=(0,i.useCallback)(r=>{!e.isDisabled&&e.onClick&&e.onClick(r)},[e.isDisabled,e.onClick]),C=(0,i.useRef)(null),_=L.useMergeRefs((0,i.useMemo)(()=>[C,e.ref],[e.ref])),{className:g,style:h}=M.useTypographyStyles({sx:(0,i.useMemo)(()=>({variant:n.EXTRA_VALUE.sizeToController[e.size],isNoUserSelect:!0,...S}),[e.size,S]),style:(0,i.useMemo)(()=>({order:0,display:"inline-flex"}),[])}),{className:R,style:x}=(0,i.useMemo)(()=>{const r=l.setClasses([n.CSS_CLASS.component.button.root,n.CSS_CLASS.control[e.isDisabled?"none":e.control??"boxShadow"],n.CSS_CLASS.transition.color,e.isZeroRadius&&n.CSS_CLASS.component.button.isZeroRadius,e.isHidden&&n.CSS_CLASS.component.button.isHidden,e.isHiddenBorder&&n.CSS_CLASS.component.button.isHiddenBorder,e.isFullRadius&&n.CSS_CLASS.component.button.isFullRadius,e.isFullSize&&n.CSS_CLASS.component.button.isFullSize,e.isWidthAsHeight&&n.CSS_CLASS.component.button.isWidthAsHeight,e.isMinWidthAsContent&&n.CSS_CLASS.component.button.isMinWidthAsContent,e.isZeroPadding&&n.CSS_CLASS.component.button.isZeroPadding,e.isSizeFitContent&&n.CSS_CLASS.component.button.isSizeFitContent,e.className]),t={};return t[n.CSS_VARS_RAW.component.button.background]=n.CSS_VARS.genre.button[e.genre].background.index,t[n.CSS_VARS_RAW.component.button.color]=n.CSS_VARS.genre.button[e.genre].color.index,t[n.CSS_VARS_RAW.component.button.border]=n.CSS_VARS.genre.button[e.genre].border.index,t[n.CSS_VARS_RAW.component.button.height]=n.CSS_VARS.size[e.size].height,t[n.CSS_VARS_RAW.component.button.padding]=n.CSS_VARS.size[e.size].padding,t[n.CSS_VARS_RAW.component.button.radius]=n.CSS_VARS.size[e.size].radius,t[n.CSS_VARS_RAW.component.button.gap]=`calc(${n.CSS_VARS.size[e.size].padding} - 2px)`,{className:r,style:l.setStyles([Object.keys(t).length?t:void 0,u])}},[e.className,u,e.genre,e.isDisabled,e.isFullSize,e.isHidden,e.isHiddenBorder,e.isMinWidthAsContent,e.isFullRadius,e.isWidthAsHeight,e.size,e.isZeroRadius,e.control,e.isZeroPadding,e.isSizeFitContent]),{className:z,style:q}=(0,i.useMemo)(()=>{const r=l.setClasses([n.CSS_CLASS.component.button.iconGroup,e.isIconGroup&&n.CSS_CLASS.component.button.iconGroupIsIconGroup]),t={};return c&&(t[n.CSS_VARS_RAW.component.button.iconGroupOrder]=String(o??"initial")),{className:r,style:l.setStyles([Object.keys(t).length?t:void 0])}},[e.isIconGroup,c,o]);return(0,y.jsxs)("button",{tabIndex:e.tabIndex,disabled:e.isDisabled,className:R,style:x,onClick:d,onFocus:e.onFocus,onMouseDown:e.onMouseDown,type:e.type??"button",ref:_,name:e.name,"aria-label":e.ariaLabel,id:e.id,children:[!e.isOnlyIcon&&e.children&&(0,y.jsx)("div",{className:g,style:h,children:e.children}),(0,y.jsx)("div",{className:z,style:q,children:a})]})},A=(0,i.memo)(k,W);A.displayName="Button";function W(e,s){const{icons:u,style:S,sxTypography:c,...o}=e,{icons:a,style:d,sxTypography:C,..._}=s;return(0,b.default)(u,a)&&(0,b.default)(S,d)&&(0,b.default)(c,C)&&I(o,_)}function I(e,s){const u=Object.keys(e),S=Object.keys(s);if(u.length!==S.length)return!1;const c=new Set(S);return u.every(o=>c.has(o)&&Object.is(e[o],s[o]))}Object.defineProperty(exports,"Button",{enumerable:!0,get:function(){return A}});
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=button-6CFvwtSz.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-6CFvwtSz.cjs","names":[],"sources":["../src/components/button/component.tsx"],"sourcesContent":["import { getIconComponents } from '@local/components/icon';\nimport { useDeepCompareMemoize } from '@local/hooks/use-deep-compare-memoize';\nimport { useMergeRefs } from '@local/hooks/use-merge-refs';\nimport { useTypographyStyles } from '@local/hooks/use-typography-styles';\nimport { CSS_CLASS, CSS_VARS, CSS_VARS_RAW, EXTRA_VALUE } from '@local/styles/utils';\nimport { setClasses, setStyles } from '@local/styles/utils/functions';\n\nimport isEqual from 'lodash/isEqual';\nimport { FC, memo, Ref, useCallback, useMemo, useRef } from 'react';\n\nimport { IButton } from './component.types';\n\nconst ButtonComponent: FC<IButton> = (props) => {\n const icons = useDeepCompareMemoize(props.icons ?? []);\n const propsStyle = useDeepCompareMemoize(props.style);\n const sxTypography = useDeepCompareMemoize(props.sxTypography);\n const hasIconGroupOrder = 'iconGroupOrder' in props;\n const iconGroupOrder = hasIconGroupOrder ? props.iconGroupOrder : undefined;\n\n const iconComponents = useMemo(\n () =>\n getIconComponents({\n icons: icons.map((e) => ({\n ...e,\n style: { color: CSS_VARS.genre.button[props.genre].color.index },\n })),\n size: props.size,\n }),\n [icons, props.size, props.genre],\n );\n\n const handleClick = useCallback<Exclude<IButton['onClick'], undefined>>(\n (event) => {\n if (!props.isDisabled && props.onClick) {\n props.onClick(event);\n }\n },\n [props.isDisabled, props.onClick],\n );\n\n const refDefault = useRef<HTMLButtonElement>(null);\n\n const refs = useMemo(() => [refDefault, props.ref], [props.ref]);\n const ref = useMergeRefs(refs);\n\n const typographySx = useMemo(\n () => ({ variant: EXTRA_VALUE.sizeToController[props.size], isNoUserSelect: true, ...sxTypography }),\n [props.size, sxTypography],\n );\n\n const typographyStyle = useMemo(() => ({ order: 0, display: 'inline-flex' }), []);\n\n const { className: classNameTypography, style: styleTypography } = useTypographyStyles({\n sx: typographySx,\n style: typographyStyle,\n });\n\n const { className, style } = useMemo(() => {\n const className = setClasses([\n CSS_CLASS.component.button.root,\n CSS_CLASS.control[props.isDisabled ? 'none' : (props.control ?? 'boxShadow')],\n CSS_CLASS.transition.color,\n props.isZeroRadius && CSS_CLASS.component.button.isZeroRadius,\n props.isHidden && CSS_CLASS.component.button.isHidden,\n props.isHiddenBorder && CSS_CLASS.component.button.isHiddenBorder,\n props.isFullRadius && CSS_CLASS.component.button.isFullRadius,\n props.isFullSize && CSS_CLASS.component.button.isFullSize,\n props.isWidthAsHeight && CSS_CLASS.component.button.isWidthAsHeight,\n props.isMinWidthAsContent && CSS_CLASS.component.button.isMinWidthAsContent,\n props.isZeroPadding && CSS_CLASS.component.button.isZeroPadding,\n props.isSizeFitContent && CSS_CLASS.component.button.isSizeFitContent,\n props.className,\n ]);\n\n const vars: Record<string, string> = {};\n\n vars[CSS_VARS_RAW.component.button.background] = CSS_VARS.genre.button[props.genre].background.index;\n vars[CSS_VARS_RAW.component.button.color] = CSS_VARS.genre.button[props.genre].color.index;\n vars[CSS_VARS_RAW.component.button.border] = CSS_VARS.genre.button[props.genre].border.index;\n\n vars[CSS_VARS_RAW.component.button.height] = CSS_VARS.size[props.size].height;\n vars[CSS_VARS_RAW.component.button.padding] = CSS_VARS.size[props.size].padding;\n vars[CSS_VARS_RAW.component.button.radius] = CSS_VARS.size[props.size].radius;\n vars[CSS_VARS_RAW.component.button.gap] = `calc(${CSS_VARS.size[props.size].padding} - 2px)`;\n\n const style = setStyles([Object.keys(vars).length ? vars : undefined, propsStyle]);\n\n return { className, style };\n }, [\n props.className,\n propsStyle,\n props.genre,\n props.isDisabled,\n props.isFullSize,\n props.isHidden,\n props.isHiddenBorder,\n props.isMinWidthAsContent,\n props.isFullRadius,\n props.isWidthAsHeight,\n props.size,\n props.isZeroRadius,\n props.control,\n props.isZeroPadding,\n props.isSizeFitContent,\n ]);\n\n const { className: classNameIconGroup, style: styleIconGroup } = useMemo(() => {\n const className = setClasses([\n CSS_CLASS.component.button.iconGroup,\n\n props.isIconGroup && CSS_CLASS.component.button.iconGroupIsIconGroup,\n ]);\n\n const vars: Record<string, string> = {};\n\n if (hasIconGroupOrder) vars[CSS_VARS_RAW.component.button.iconGroupOrder] = String(iconGroupOrder ?? 'initial');\n\n const style = setStyles([Object.keys(vars).length ? vars : undefined]);\n\n return { className, style };\n }, [props.isIconGroup, hasIconGroupOrder, iconGroupOrder]);\n\n return (\n <button\n tabIndex={props.tabIndex}\n disabled={props.isDisabled}\n className={className}\n style={style}\n onClick={handleClick}\n onFocus={props.onFocus}\n onMouseDown={props.onMouseDown}\n type={props.type ?? 'button'}\n ref={ref as Ref<HTMLButtonElement>}\n name={props.name}\n aria-label={props.ariaLabel}\n id={props.id}\n >\n {!props.isOnlyIcon && props.children && (\n <div className={classNameTypography} style={styleTypography}>\n {props.children}\n </div>\n )}\n <div className={classNameIconGroup} style={styleIconGroup}>\n {iconComponents}\n </div>\n </button>\n );\n};\n\nexport const Button = memo(ButtonComponent, areButtonPropsEqual);\nButton.displayName = 'Button';\n\nfunction areButtonPropsEqual(prev: IButton, next: IButton) {\n const { icons: prevIcons, style: prevStyle, sxTypography: prevSxTypography, ...prevRest } = prev;\n const { icons: nextIcons, style: nextStyle, sxTypography: nextSxTypography, ...nextRest } = next;\n\n return (\n isEqual(prevIcons, nextIcons) &&\n isEqual(prevStyle, nextStyle) &&\n isEqual(prevSxTypography, nextSxTypography) &&\n areShallowEqual(prevRest, nextRest)\n );\n}\n\nfunction areShallowEqual<T extends Record<string, unknown>>(prev: T, next: T) {\n const prevKeys = Object.keys(prev);\n const nextKeys = Object.keys(next);\n\n if (prevKeys.length !== nextKeys.length) return false;\n\n const nextKeysSet = new Set(nextKeys);\n\n return prevKeys.every((key) => nextKeysSet.has(key) && Object.is(prev[key], next[key]));\n}\n"],"mappings":"oaAYM,EAAgC,GAAU,CAC9C,MAAM,EAAQ,EAAA,sBAAsB,EAAM,OAAS,CAAA,CAAE,EAC/C,EAAa,EAAA,sBAAsB,EAAM,KAAA,EACzC,EAAe,EAAA,sBAAsB,EAAM,YAAA,EAC3C,EAAoB,mBAAoB,EACxC,EAAiB,EAAoB,EAAM,eAAiB,OAE5D,KAAA,EAAA,SAAA,IAEF,EAAA,kBAAkB,CAChB,MAAO,EAAM,IAAK,IAAO,CACvB,GAAG,EACH,MAAO,CAAE,MAAO,EAAA,SAAS,MAAM,OAAO,EAAM,KAAA,EAAO,MAAM,KAAA,GAC1D,EACD,KAAM,EAAM,KACb,EACH,CAAC,EAAO,EAAM,KAAM,EAAM,MAAM,EAG5B,KAAA,EAAA,aACH,GAAU,CACL,CAAC,EAAM,YAAc,EAAM,SAC7B,EAAM,QAAQ,CAAA,GAGlB,CAAC,EAAM,WAAY,EAAM,OAAA,CAAQ,EAG7B,KAAA,EAAA,QAAuC,IAAA,EAGvC,EAAM,EAAA,gBAAA,EAAA,SAAA,IADe,CAAC,EAAY,EAAM,GAAA,EAAM,CAAC,EAAM,GAAA,CAAI,CAAC,EAU1D,CAAE,UAAW,EAAqB,MAAO,CAAA,EAAoB,EAAA,oBAAoB,CACrF,MAAA,EAAA,SAAA,KAPO,CAAE,QAAS,EAAA,YAAY,iBAAiB,EAAM,IAAA,EAAO,eAAgB,GAAM,GAAG,IACrF,CAAC,EAAM,KAAM,CAAA,CAAa,EAO1B,SAAA,EAAA,SAAA,KAJqC,CAAE,MAAO,EAAG,QAAS,gBAAkB,CAAA,CAAE,EAK/E,EAEK,CAAE,UAAA,EAAW,MAAA,CAAA,KAAA,EAAA,SAAA,IAAwB,CACzC,MAAM,EAAY,EAAA,WAAW,CAC3B,EAAA,UAAU,UAAU,OAAO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,GAAG,CAAA,EAAa,EAE5F,SAAA,EAAA,SACU,EAAW,CAAA,MAAU,EAAA,SACrB,EAAW,CAAA,MAAU,EAAA,SACrB,EAAkB,CAAA,GAC1B,EAAgB,EAAU,CAAA,EAI9B,SAAS,EAAmD,EAAS,EAAS,CAC5E,MAAM,EAAW,OAAO,KAAK,CAAA,EACvB,EAAW,OAAO,KAAK,CAAA,EAE7B,GAAI,EAAS,SAAW,EAAS,OAAQ,MAAO,GAEhD,MAAM,EAAc,IAAI,IAAI,CAAA,EAE5B,OAAO,EAAS,MAAO,GAAQ,EAAY,IAAI,CAAA,GAAQ,OAAO,GAAG,EAAK,CAAA,EAAM,EAAK,CAAA,CAAA,CAAK"}
|
package/build/button-D6Bg00Uh.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { o as G } from "./chunk-cI0lbGMq.js";
|
|
2
|
-
import { i, n, r as s, t as F } from "./utils-BRgi6734.js";
|
|
3
|
-
import { n as f, t as x } from "./functions-DzX-pTN8.js";
|
|
4
|
-
import { t as O } from "./icon-Y-IZxLXB.js";
|
|
5
|
-
import { t as T } from "./isEqual-BHn_Fkkw.js";
|
|
6
|
-
import { useDeepCompareMemoize as h } from "./hooks-use-deep-compare-memoize.es.js";
|
|
7
|
-
import { useMergeRefs as k } from "./hooks-use-merge-refs.es.js";
|
|
8
|
-
import { useTypographyStyles as D } from "./hooks-use-typography-styles.es.js";
|
|
9
|
-
import { jsx as z, jsxs as H } from "react/jsx-runtime";
|
|
10
|
-
import { memo as M, useCallback as _, useMemo as r, useRef as j } from "react";
|
|
11
|
-
var S = /* @__PURE__ */ G(T(), 1), B = (e) => {
|
|
12
|
-
const a = h(e.icons ?? []), c = h(e.style), l = h(e.sxTypography), u = "iconGroupOrder" in e, o = u ? e.iconGroupOrder : void 0, m = r(() => O({
|
|
13
|
-
icons: a.map((d) => ({
|
|
14
|
-
...d,
|
|
15
|
-
style: { color: s.genre.button[e.genre].color.index }
|
|
16
|
-
})),
|
|
17
|
-
size: e.size
|
|
18
|
-
}), [
|
|
19
|
-
a,
|
|
20
|
-
e.size,
|
|
21
|
-
e.genre
|
|
22
|
-
]), y = _((d) => {
|
|
23
|
-
!e.isDisabled && e.onClick && e.onClick(d);
|
|
24
|
-
}, [e.isDisabled, e.onClick]), b = j(null), g = k(r(() => [b, e.ref], [e.ref])), { className: C, style: v } = D({
|
|
25
|
-
sx: r(() => ({
|
|
26
|
-
variant: F.sizeToController[e.size],
|
|
27
|
-
isNoUserSelect: !0,
|
|
28
|
-
...l
|
|
29
|
-
}), [e.size, l]),
|
|
30
|
-
style: r(() => ({
|
|
31
|
-
order: 0,
|
|
32
|
-
display: "inline-flex"
|
|
33
|
-
}), [])
|
|
34
|
-
}), { className: R, style: I } = r(() => {
|
|
35
|
-
const d = x([
|
|
36
|
-
n.component.button.root,
|
|
37
|
-
n.control[e.isDisabled ? "none" : e.control ?? "boxShadow"],
|
|
38
|
-
n.transition.color,
|
|
39
|
-
e.isZeroRadius && n.component.button.isZeroRadius,
|
|
40
|
-
e.isHidden && n.component.button.isHidden,
|
|
41
|
-
e.isHiddenBorder && n.component.button.isHiddenBorder,
|
|
42
|
-
e.isFullRadius && n.component.button.isFullRadius,
|
|
43
|
-
e.isFullSize && n.component.button.isFullSize,
|
|
44
|
-
e.isWidthAsHeight && n.component.button.isWidthAsHeight,
|
|
45
|
-
e.isMinWidthAsContent && n.component.button.isMinWidthAsContent,
|
|
46
|
-
e.isZeroPadding && n.component.button.isZeroPadding,
|
|
47
|
-
e.isSizeFitContent && n.component.button.isSizeFitContent,
|
|
48
|
-
e.className
|
|
49
|
-
]), t = {};
|
|
50
|
-
return t[i.component.button.background] = s.genre.button[e.genre].background.index, t[i.component.button.color] = s.genre.button[e.genre].color.index, t[i.component.button.border] = s.genre.button[e.genre].border.index, t[i.component.button.height] = s.size[e.size].height, t[i.component.button.padding] = s.size[e.size].padding, t[i.component.button.radius] = s.size[e.size].radius, t[i.component.button.gap] = `calc(${s.size[e.size].padding} - 2px)`, {
|
|
51
|
-
className: d,
|
|
52
|
-
style: f([Object.keys(t).length ? t : void 0, c])
|
|
53
|
-
};
|
|
54
|
-
}, [
|
|
55
|
-
e.className,
|
|
56
|
-
c,
|
|
57
|
-
e.genre,
|
|
58
|
-
e.isDisabled,
|
|
59
|
-
e.isFullSize,
|
|
60
|
-
e.isHidden,
|
|
61
|
-
e.isHiddenBorder,
|
|
62
|
-
e.isMinWidthAsContent,
|
|
63
|
-
e.isFullRadius,
|
|
64
|
-
e.isWidthAsHeight,
|
|
65
|
-
e.size,
|
|
66
|
-
e.isZeroRadius,
|
|
67
|
-
e.control,
|
|
68
|
-
e.isZeroPadding,
|
|
69
|
-
e.isSizeFitContent
|
|
70
|
-
]), { className: N, style: A } = r(() => {
|
|
71
|
-
const d = x([n.component.button.iconGroup, e.isIconGroup && n.component.button.iconGroupIsIconGroup]), t = {};
|
|
72
|
-
return u && (t[i.component.button.iconGroupOrder] = String(o ?? "initial")), {
|
|
73
|
-
className: d,
|
|
74
|
-
style: f([Object.keys(t).length ? t : void 0])
|
|
75
|
-
};
|
|
76
|
-
}, [
|
|
77
|
-
e.isIconGroup,
|
|
78
|
-
u,
|
|
79
|
-
o
|
|
80
|
-
]);
|
|
81
|
-
return /* @__PURE__ */ H("button", {
|
|
82
|
-
tabIndex: e.tabIndex,
|
|
83
|
-
disabled: e.isDisabled,
|
|
84
|
-
className: R,
|
|
85
|
-
style: I,
|
|
86
|
-
onClick: y,
|
|
87
|
-
onFocus: e.onFocus,
|
|
88
|
-
onMouseDown: e.onMouseDown,
|
|
89
|
-
type: e.type ?? "button",
|
|
90
|
-
ref: g,
|
|
91
|
-
name: e.name,
|
|
92
|
-
"aria-label": e.ariaLabel,
|
|
93
|
-
id: e.id,
|
|
94
|
-
children: [!e.isOnlyIcon && e.children && /* @__PURE__ */ z("div", {
|
|
95
|
-
className: C,
|
|
96
|
-
style: v,
|
|
97
|
-
children: e.children
|
|
98
|
-
}), /* @__PURE__ */ z("div", {
|
|
99
|
-
className: N,
|
|
100
|
-
style: A,
|
|
101
|
-
children: m
|
|
102
|
-
})]
|
|
103
|
-
});
|
|
104
|
-
}, E = M(B, W);
|
|
105
|
-
E.displayName = "Button";
|
|
106
|
-
function W(e, a) {
|
|
107
|
-
const { icons: c, style: l, sxTypography: u, ...o } = e, { icons: m, style: y, sxTypography: b, ...g } = a;
|
|
108
|
-
return (0, S.default)(c, m) && (0, S.default)(l, y) && (0, S.default)(u, b) && Z(o, g);
|
|
109
|
-
}
|
|
110
|
-
function Z(e, a) {
|
|
111
|
-
const c = Object.keys(e), l = Object.keys(a);
|
|
112
|
-
if (c.length !== l.length) return !1;
|
|
113
|
-
const u = new Set(l);
|
|
114
|
-
return c.every((o) => u.has(o) && Object.is(e[o], a[o]));
|
|
115
|
-
}
|
|
116
|
-
export {
|
|
117
|
-
E as t
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
//# sourceMappingURL=button-D6Bg00Uh.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-D6Bg00Uh.js","names":[],"sources":["../src/components/button/component.tsx"],"sourcesContent":["import { getIconComponents } from '@local/components/icon';\nimport { useDeepCompareMemoize } from '@local/hooks/use-deep-compare-memoize';\nimport { useMergeRefs } from '@local/hooks/use-merge-refs';\nimport { useTypographyStyles } from '@local/hooks/use-typography-styles';\nimport { CSS_CLASS, CSS_VARS, CSS_VARS_RAW, EXTRA_VALUE } from '@local/styles/utils';\nimport { setClasses, setStyles } from '@local/styles/utils/functions';\n\nimport isEqual from 'lodash/isEqual';\nimport { FC, memo, Ref, useCallback, useMemo, useRef } from 'react';\n\nimport { IButton } from './component.types';\n\nconst ButtonComponent: FC<IButton> = (props) => {\n const icons = useDeepCompareMemoize(props.icons ?? []);\n const propsStyle = useDeepCompareMemoize(props.style);\n const sxTypography = useDeepCompareMemoize(props.sxTypography);\n const hasIconGroupOrder = 'iconGroupOrder' in props;\n const iconGroupOrder = hasIconGroupOrder ? props.iconGroupOrder : undefined;\n\n const iconComponents = useMemo(\n () =>\n getIconComponents({\n icons: icons.map((e) => ({\n ...e,\n style: { color: CSS_VARS.genre.button[props.genre].color.index },\n })),\n size: props.size,\n }),\n [icons, props.size, props.genre],\n );\n\n const handleClick = useCallback<Exclude<IButton['onClick'], undefined>>(\n (event) => {\n if (!props.isDisabled && props.onClick) {\n props.onClick(event);\n }\n },\n [props.isDisabled, props.onClick],\n );\n\n const refDefault = useRef<HTMLButtonElement>(null);\n\n const refs = useMemo(() => [refDefault, props.ref], [props.ref]);\n const ref = useMergeRefs(refs);\n\n const typographySx = useMemo(\n () => ({ variant: EXTRA_VALUE.sizeToController[props.size], isNoUserSelect: true, ...sxTypography }),\n [props.size, sxTypography],\n );\n\n const typographyStyle = useMemo(() => ({ order: 0, display: 'inline-flex' }), []);\n\n const { className: classNameTypography, style: styleTypography } = useTypographyStyles({\n sx: typographySx,\n style: typographyStyle,\n });\n\n const { className, style } = useMemo(() => {\n const className = setClasses([\n CSS_CLASS.component.button.root,\n CSS_CLASS.control[props.isDisabled ? 'none' : (props.control ?? 'boxShadow')],\n CSS_CLASS.transition.color,\n props.isZeroRadius && CSS_CLASS.component.button.isZeroRadius,\n props.isHidden && CSS_CLASS.component.button.isHidden,\n props.isHiddenBorder && CSS_CLASS.component.button.isHiddenBorder,\n props.isFullRadius && CSS_CLASS.component.button.isFullRadius,\n props.isFullSize && CSS_CLASS.component.button.isFullSize,\n props.isWidthAsHeight && CSS_CLASS.component.button.isWidthAsHeight,\n props.isMinWidthAsContent && CSS_CLASS.component.button.isMinWidthAsContent,\n props.isZeroPadding && CSS_CLASS.component.button.isZeroPadding,\n props.isSizeFitContent && CSS_CLASS.component.button.isSizeFitContent,\n props.className,\n ]);\n\n const vars: Record<string, string> = {};\n\n vars[CSS_VARS_RAW.component.button.background] = CSS_VARS.genre.button[props.genre].background.index;\n vars[CSS_VARS_RAW.component.button.color] = CSS_VARS.genre.button[props.genre].color.index;\n vars[CSS_VARS_RAW.component.button.border] = CSS_VARS.genre.button[props.genre].border.index;\n\n vars[CSS_VARS_RAW.component.button.height] = CSS_VARS.size[props.size].height;\n vars[CSS_VARS_RAW.component.button.padding] = CSS_VARS.size[props.size].padding;\n vars[CSS_VARS_RAW.component.button.radius] = CSS_VARS.size[props.size].radius;\n vars[CSS_VARS_RAW.component.button.gap] = `calc(${CSS_VARS.size[props.size].padding} - 2px)`;\n\n const style = setStyles([Object.keys(vars).length ? vars : undefined, propsStyle]);\n\n return { className, style };\n }, [\n props.className,\n propsStyle,\n props.genre,\n props.isDisabled,\n props.isFullSize,\n props.isHidden,\n props.isHiddenBorder,\n props.isMinWidthAsContent,\n props.isFullRadius,\n props.isWidthAsHeight,\n props.size,\n props.isZeroRadius,\n props.control,\n props.isZeroPadding,\n props.isSizeFitContent,\n ]);\n\n const { className: classNameIconGroup, style: styleIconGroup } = useMemo(() => {\n const className = setClasses([\n CSS_CLASS.component.button.iconGroup,\n\n props.isIconGroup && CSS_CLASS.component.button.iconGroupIsIconGroup,\n ]);\n\n const vars: Record<string, string> = {};\n\n if (hasIconGroupOrder) vars[CSS_VARS_RAW.component.button.iconGroupOrder] = String(iconGroupOrder ?? 'initial');\n\n const style = setStyles([Object.keys(vars).length ? vars : undefined]);\n\n return { className, style };\n }, [props.isIconGroup, hasIconGroupOrder, iconGroupOrder]);\n\n return (\n <button\n tabIndex={props.tabIndex}\n disabled={props.isDisabled}\n className={className}\n style={style}\n onClick={handleClick}\n onFocus={props.onFocus}\n onMouseDown={props.onMouseDown}\n type={props.type ?? 'button'}\n ref={ref as Ref<HTMLButtonElement>}\n name={props.name}\n aria-label={props.ariaLabel}\n id={props.id}\n >\n {!props.isOnlyIcon && props.children && (\n <div className={classNameTypography} style={styleTypography}>\n {props.children}\n </div>\n )}\n <div className={classNameIconGroup} style={styleIconGroup}>\n {iconComponents}\n </div>\n </button>\n );\n};\n\nexport const Button = memo(ButtonComponent, areButtonPropsEqual);\nButton.displayName = 'Button';\n\nfunction areButtonPropsEqual(prev: IButton, next: IButton) {\n const { icons: prevIcons, style: prevStyle, sxTypography: prevSxTypography, ...prevRest } = prev;\n const { icons: nextIcons, style: nextStyle, sxTypography: nextSxTypography, ...nextRest } = next;\n\n return (\n isEqual(prevIcons, nextIcons) &&\n isEqual(prevStyle, nextStyle) &&\n isEqual(prevSxTypography, nextSxTypography) &&\n areShallowEqual(prevRest, nextRest)\n );\n}\n\nfunction areShallowEqual<T extends Record<string, unknown>>(prev: T, next: T) {\n const prevKeys = Object.keys(prev);\n const nextKeys = Object.keys(next);\n\n if (prevKeys.length !== nextKeys.length) return false;\n\n const nextKeysSet = new Set(nextKeys);\n\n return prevKeys.every((key) => nextKeysSet.has(key) && Object.is(prev[key], next[key]));\n}\n"],"mappings":";;;;;;;;;;mCAYM,IAAA,CAAgC,MAAU;AAC9C,QAAM,IAAQ,EAAsB,EAAM,SAAS,CAAA,CAAE,GAC/C,IAAa,EAAsB,EAAM,KAAA,GACzC,IAAe,EAAsB,EAAM,YAAA,GAC3C,IAAoB,oBAAoB,GACxC,IAAiB,IAAoB,EAAM,iBAAiB,QAE5D,IAAiB,EAAA,MAEnB,EAAkB;AAAA,IAChB,OAAO,EAAM,IAAA,CAAK,OAAO;AAAA,MACvB,GAAG;AAAA,MACH,OAAO,EAAE,OAAO,EAAS,MAAM,OAAO,EAAM,KAAA,EAAO,MAAM,MAAA;AAAA,MAC1D;AAAA,IACD,MAAM,EAAM;AAAA,GACb,GACH;AAAA,IAAC;AAAA,IAAO,EAAM;AAAA,IAAM,EAAM;AAAA,GAAM,GAG5B,IAAc,EAAA,CACjB,MAAU;AACT,IAAI,CAAC,EAAM,cAAc,EAAM,WAC7B,EAAM,QAAQ,CAAA;AAAA,KAGlB,CAAC,EAAM,YAAY,EAAM,OAAA,CAAQ,GAG7B,IAAa,EAA0B,IAAA,GAGvC,IAAM,EADC,EAAA,MAAc,CAAC,GAAY,EAAM,GAAA,GAAM,CAAC,EAAM,GAAA,CAAI,CAAC,GAU1D,E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EAAM;AAAA,IACf,aAAa,EAAM;AAAA,IACnB,MAAM,EAAM,QAAQ;AAAA,IACf,KAAA;AAAA,IACL,MAAM,EAAM;AAAA,IACZ,cAAY,EAAM;AAAA,IAClB,IAAI,EAAM;AAAA,cAZZ,CAcG,CAAC,EAAM,cAAc,EAAM,YAC1B,gBAAA,EAAC,OAAD;AAAA,MAAK,WAAW;AAAA,MAAqB,OAAO;AAAA,gBACzC,EAAM;AAAA,KACH,GAER,gBAAA,EAAC,OAAD;AAAA,MAAK,WAAW;AAAA,MAAoB,OAAO;AAAA,gBACxC;AAAA,KACG,CAAA;AAAA;GAKC,IAAS,EAAK,GAAiB,CAAA;AAC5C,EAAO,cAAc;AAErB,SAAS,EAAoB,GAAe,GAAe;AACzD,QAAM,EAAE,OAAO,GAAW,OAAO,GAAW,cAAc,GAAkB,GAAG,EAAA,IAAa,GACtF,EAAE,OAAO,GAAW,OAAO,GAAW,cAAc,GAAkB,GAAG,EAAA,IAAa;AAE5F,aAAA,EAAA,SACU,GAAW,CAAA,SAAU,EAAA,SACrB,GAAW,CAAA,SAAU,EAAA,SACrB,GAAkB,CAAA,KAC1B,EAAgB,GAAU,CAAA;;AAI9B,SAAS,EAAmD,GAAS,GAAS;AAC5E,QAAM,IAAW,OAAO,KAAK,CAAA,GACvB,IAAW,OAAO,KAAK,CAAA;AAE7B,MAAI,EAAS,WAAW,EAAS,OAAQ,QAAO;AAEhD,QAAM,IAAc,IAAI,IAAI,CAAA;AAE5B,SAAO,EAAS,MAAA,CAAO,MAAQ,EAAY,IAAI,CAAA,KAAQ,OAAO,GAAG,EAAK,CAAA,GAAM,EAAK,CAAA,CAAA,CAAK"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textarea-Bm3ki2-6.cjs","names":[],"sources":["../src/components/textarea/component.tsx"],"sourcesContent":["import { ErrorMessage } from '@local/components/error';\nimport { useMergeRefs } from '@local/hooks/use-merge-refs';\nimport { useTypographyStyles } from '@local/hooks/use-typography-styles/use';\nimport { CSS_CLASS, CSS_VARS, CSS_VARS_RAW, EXTRA_VALUE } from '@local/styles/utils';\nimport { setClasses, setStyles } from '@local/styles/utils/functions';\n\nimport { useCallback, useEffect, useMemo, useRef } from 'react';\n\nimport { ITextArea } from './component.types';\n\nconst lineHeight = EXTRA_VALUE.font.size * EXTRA_VALUE.font.height;\n\nexport const TextArea = (props: ITextArea) => {\n const refLocal = useRef<HTMLTextAreaElement>(null);\n const ref = useMergeRefs([refLocal, props.ref]);\n\n const maxHeight = useMemo(() => (props.maxRows ? props.maxRows * lineHeight : 0), [props.maxRows]);\n const minHeight = useMemo(() => (props.minRows ? props.minRows * lineHeight : lineHeight), [props.minRows]);\n\n const resizeTextarea = useCallback(() => {\n const el = refLocal.current;\n if (el && props.isAutoHeight) {\n el.style.height = 'auto';\n const newHeight = Math.min(el.scrollHeight, maxHeight);\n el.style.height = `${newHeight}px`;\n }\n }, [props.isAutoHeight, maxHeight]);\n\n const handleOnChange = useCallback(\n (value: string) => {\n if (props.isNoSpaces) {\n const valueWithoutSpaces = value.replace(/\\s+/g, '');\n props.onChange?.(valueWithoutSpaces);\n } else {\n props.onChange?.(value);\n }\n },\n [props.isNoSpaces, props.onChange],\n );\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>\n useEffect(() => {\n if (props.isAutoHeight) {\n requestAnimationFrame(resizeTextarea);\n }\n }, [props.value, resizeTextarea, props.isAutoHeight]);\n\n const { className: classNameTypography, style: styleTypography } = useTypographyStyles({\n sx: {\n family: props.isNiceNumber ? 'Roboto Mono' : props.sxTypography?.family,\n size: 16,\n weight: props.isBold ? '700' : '400',\n height: '1.2',\n ...props?.sxTypography,\n },\n });\n\n const { className, style } = useMemo(() => {\n const className = setClasses([\n CSS_CLASS.component.textarea.wrapper,\n CSS_CLASS.transition.color,\n props.error?.isError && CSS_CLASS.isError,\n CSS_CLASS.control[props.isDisabled ? 'none' : (props.control ?? 'boxShadow')],\n props.isZeroRadius && CSS_CLASS.component.textarea.wrapperIsZeroRadius,\n props.isHidden && CSS_CLASS.component.textarea.wrapperIsHidden,\n props.isHiddenBorder && CSS_CLASS.component.textarea.wrapperIsHiddenBorder,\n props.isFullRadius && CSS_CLASS.component.textarea.wrapperIsFullRadius,\n !props.isResize && CSS_CLASS.component.textarea.wrapperIsNotResize,\n props.className,\n ]);\n\n const vars: Record<string, string> = {};\n\n vars[CSS_VARS_RAW.component.textarea.radius] = CSS_VARS.size[props.size].radius;\n vars[CSS_VARS_RAW.component.textarea.borderColor] = CSS_VARS.genre.textarea[props.genre].border;\n vars[CSS_VARS_RAW.component.textarea.background] = CSS_VARS.genre.textarea[props.genre].background;\n vars[CSS_VARS_RAW.component.textarea.padding] =\n `calc(${CSS_VARS.size[props.size].padding} - 4px) 0px calc(${CSS_VARS.size[props.size].padding} - 4px) ${CSS_VARS.size[props.size].padding}`;\n\n const style = setStyles([Object.keys(vars).length ? vars : undefined, props.style]);\n\n return { className, style };\n }, [\n props.className,\n props.size,\n props.style,\n props.isDisabled,\n props.isHidden,\n props.isFullRadius,\n props.isHiddenBorder,\n props.isZeroRadius,\n props.genre,\n props.control,\n props.error?.isError,\n props.isResize,\n ]);\n\n const { className: classNameTextarea, style: styleTextarea } = useMemo(() => {\n const className = setClasses([\n CSS_CLASS.component.textarea.root,\n CSS_CLASS.scrollbarGutter.stable,\n CSS_CLASS.transition.color,\n classNameTypography,\n ]);\n\n const vars: Record<string, string> = {};\n\n vars[CSS_VARS_RAW.component.textarea.color] = CSS_VARS.genre.textarea[props.genre].color;\n vars[CSS_VARS_RAW.component.textarea.placeholderColor] = CSS_VARS.genre.textarea[props.genre].placeholder;\n\n const style = setStyles([props.style, styleTypography, Object.keys(vars).length ? vars : undefined]);\n\n return { className, style };\n }, [props.style, props.genre, classNameTypography, styleTypography]);\n\n return (\n <>\n <div className={className} style={style}>\n <textarea\n className={classNameTextarea}\n tabIndex={0}\n ref={ref}\n maxLength={props.maxLength}\n minLength={props.minLength}\n disabled={props.isDisabled}\n readOnly={props.isReadOnly}\n required={props.isRequired}\n defaultValue={props.defaultValue === null ? '' : props.defaultValue}\n value={props.value === null ? '' : props.value}\n rows={props.minRows}\n placeholder={props.placeholder}\n onChange={(event) => handleOnChange(event.target.value)}\n onBlur={props.onBlur}\n onFocus={props.onFocus}\n onKeyDown={props.onKeyDown}\n onMouseDown={props.onMouseDown}\n onClick={props.onClick}\n name={props.name}\n aria-label={props.ariaLabel ?? props.name}\n autoComplete={props.autoComplete}\n id={props.id}\n style={{\n ...styleTextarea,\n minHeight: `${minHeight}px`,\n maxHeight: props.isResize ? 'none' : props.isAutoHeight ? `${maxHeight}px` : `${minHeight}px`,\n }}\n />\n </div>\n\n {props?.error?.isError && (\n <ErrorMessage\n size={props?.error.size ?? props.size}\n sxTypography={{ size: '16px', weight: '400', ...props?.error.sxTypography }}\n {...props.error}\n />\n )}\n </>\n );\n};\n"],"mappings":"qSAUA,IAAM,EAAa,EAAA,YAAY,KAAK,KAAO,EAAA,YAAY,KAAK,OAE/C,EAAY,GAAqB,CAC5C,MAAM,KAAA,EAAA,QAAuC,IAAA,EACvC,EAAM,EAAA,aAAa,CAAC,EAAU,EAAM,GAAA,CAAI,EAExC,KAAA,EAAA,SAAA,IAA2B,EAAM,QAAU,EAAM,QAAU,EAAa,EAAI,CAAC,EAAM,OAAA,CAAQ,EAC3F,KAAA,EAAA,SAAA,IAA2B,EAAM,QAAU,EAAM,QAAU,EAAa,EAAa,CAAC,EAAM,OAAA,CAAQ,EAEpG,KAAA,EAAA,aAAA,IAAmC,CACvC,MAAM,EAAK,EAAS,QACpB,GAAI,GAAM,EAAM,aAAc,CAC5B,EAAG,MAAM,OAAS,OAClB,MAAM,EAAY,KAAK,IAAI,EAAG,aAAc,CAAA,EAC5C,EAAG,MAAM,OAAS,GAAG,CAAA,OAEtB,CAAC,EAAM,aAAc,CAAA,CAAU,EAE5B,KAAA,EAAA,aACH,GAAkB,CACjB,GAAI,EAAM,WAAY,CACpB,MAAM,EAAqB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,WAChB,aAAc,EAAM,eAAiB,KAAO,GAAK,EAAM,aACvD,MAAO,EAAM,QAAU,KAAO,GAAK,EAAM,MACzC,KAAM,EAAM,QACZ,YAAa,EAAM,YACnB,SAAW,GAAU,EAAe,EAAM,OAAO,KAAA,EACjD,OAAQ,EAAM,OACd,QAAS,EAAM,QACf,UAAW,EAAM,UACjB,YAAa,EAAM,YACnB,QAAS,EAAM,QACf,KAAM,EAAM,KACZ,aAAY,EAAM,WAAa,EAAM,KACrC,aAAc,EAAM,aACpB,GAAI,EAAM,GACV,MAAO,CACL,GAAG,EACH,UAAW,GAAG,CAAA,KACd,UAAW,EAAM,SAAW,OAAS,EAAM,aAAe,GAAG,CAAA,KAAgB,GAAG,CAAA,MAElF,EACE,EAEL,GAAO,OAAO,YACb,EAAA,KAAC,EAAA,aAAD,CACE,KAAM,GAAO,MAAM,MAAQ,EAAM,KACjC,aAAc,CAAE,KAAM,OAAQ,OAAQ,MAAO,GAAG,GAAO,MAAM,cAC7D,GAAI,EAAM,MACV,CAAA,CAEH,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textarea-DLZq4RT-.js","names":[],"sources":["../src/components/textarea/component.tsx"],"sourcesContent":["import { ErrorMessage } from '@local/components/error';\nimport { useMergeRefs } from '@local/hooks/use-merge-refs';\nimport { useTypographyStyles } from '@local/hooks/use-typography-styles/use';\nimport { CSS_CLASS, CSS_VARS, CSS_VARS_RAW, EXTRA_VALUE } from '@local/styles/utils';\nimport { setClasses, setStyles } from '@local/styles/utils/functions';\n\nimport { useCallback, useEffect, useMemo, useRef } from 'react';\n\nimport { ITextArea } from './component.types';\n\nconst lineHeight = EXTRA_VALUE.font.size * EXTRA_VALUE.font.height;\n\nexport const TextArea = (props: ITextArea) => {\n const refLocal = useRef<HTMLTextAreaElement>(null);\n const ref = useMergeRefs([refLocal, props.ref]);\n\n const maxHeight = useMemo(() => (props.maxRows ? props.maxRows * lineHeight : 0), [props.maxRows]);\n const minHeight = useMemo(() => (props.minRows ? props.minRows * lineHeight : lineHeight), [props.minRows]);\n\n const resizeTextarea = useCallback(() => {\n const el = refLocal.current;\n if (el && props.isAutoHeight) {\n el.style.height = 'auto';\n const newHeight = Math.min(el.scrollHeight, maxHeight);\n el.style.height = `${newHeight}px`;\n }\n }, [props.isAutoHeight, maxHeight]);\n\n const handleOnChange = useCallback(\n (value: string) => {\n if (props.isNoSpaces) {\n const valueWithoutSpaces = value.replace(/\\s+/g, '');\n props.onChange?.(valueWithoutSpaces);\n } else {\n props.onChange?.(value);\n }\n },\n [props.isNoSpaces, props.onChange],\n );\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>\n useEffect(() => {\n if (props.isAutoHeight) {\n requestAnimationFrame(resizeTextarea);\n }\n }, [props.value, resizeTextarea, props.isAutoHeight]);\n\n const { className: classNameTypography, style: styleTypography } = useTypographyStyles({\n sx: {\n family: props.isNiceNumber ? 'Roboto Mono' : props.sxTypography?.family,\n size: 16,\n weight: props.isBold ? '700' : '400',\n height: '1.2',\n ...props?.sxTypography,\n },\n });\n\n const { className, style } = useMemo(() => {\n const className = setClasses([\n CSS_CLASS.component.textarea.wrapper,\n CSS_CLASS.transition.color,\n props.error?.isError && CSS_CLASS.isError,\n CSS_CLASS.control[props.isDisabled ? 'none' : (props.control ?? 'boxShadow')],\n props.isZeroRadius && CSS_CLASS.component.textarea.wrapperIsZeroRadius,\n props.isHidden && CSS_CLASS.component.textarea.wrapperIsHidden,\n props.isHiddenBorder && CSS_CLASS.component.textarea.wrapperIsHiddenBorder,\n props.isFullRadius && CSS_CLASS.component.textarea.wrapperIsFullRadius,\n !props.isResize && CSS_CLASS.component.textarea.wrapperIsNotResize,\n props.className,\n ]);\n\n const vars: Record<string, string> = {};\n\n vars[CSS_VARS_RAW.component.textarea.radius] = CSS_VARS.size[props.size].radius;\n vars[CSS_VARS_RAW.component.textarea.borderColor] = CSS_VARS.genre.textarea[props.genre].border;\n vars[CSS_VARS_RAW.component.textarea.background] = CSS_VARS.genre.textarea[props.genre].background;\n vars[CSS_VARS_RAW.component.textarea.padding] =\n `calc(${CSS_VARS.size[props.size].padding} - 4px) 0px calc(${CSS_VARS.size[props.size].padding} - 4px) ${CSS_VARS.size[props.size].padding}`;\n\n const style = setStyles([Object.keys(vars).length ? vars : undefined, props.style]);\n\n return { className, style };\n }, [\n props.className,\n props.size,\n props.style,\n props.isDisabled,\n props.isHidden,\n props.isFullRadius,\n props.isHiddenBorder,\n props.isZeroRadius,\n props.genre,\n props.control,\n props.error?.isError,\n props.isResize,\n ]);\n\n const { className: classNameTextarea, style: styleTextarea } = useMemo(() => {\n const className = setClasses([\n CSS_CLASS.component.textarea.root,\n CSS_CLASS.scrollbarGutter.stable,\n CSS_CLASS.transition.color,\n classNameTypography,\n ]);\n\n const vars: Record<string, string> = {};\n\n vars[CSS_VARS_RAW.component.textarea.color] = CSS_VARS.genre.textarea[props.genre].color;\n vars[CSS_VARS_RAW.component.textarea.placeholderColor] = CSS_VARS.genre.textarea[props.genre].placeholder;\n\n const style = setStyles([props.style, styleTypography, Object.keys(vars).length ? vars : undefined]);\n\n return { className, style };\n }, [props.style, props.genre, classNameTypography, styleTypography]);\n\n return (\n <>\n <div className={className} style={style}>\n <textarea\n className={classNameTextarea}\n tabIndex={0}\n ref={ref}\n maxLength={props.maxLength}\n minLength={props.minLength}\n disabled={props.isDisabled}\n readOnly={props.isReadOnly}\n required={props.isRequired}\n defaultValue={props.defaultValue === null ? '' : props.defaultValue}\n value={props.value === null ? '' : props.value}\n rows={props.minRows}\n placeholder={props.placeholder}\n onChange={(event) => handleOnChange(event.target.value)}\n onBlur={props.onBlur}\n onFocus={props.onFocus}\n onKeyDown={props.onKeyDown}\n onMouseDown={props.onMouseDown}\n onClick={props.onClick}\n name={props.name}\n aria-label={props.ariaLabel ?? props.name}\n autoComplete={props.autoComplete}\n id={props.id}\n style={{\n ...styleTextarea,\n minHeight: `${minHeight}px`,\n maxHeight: props.isResize ? 'none' : props.isAutoHeight ? `${maxHeight}px` : `${minHeight}px`,\n }}\n />\n </div>\n\n {props?.error?.isError && (\n <ErrorMessage\n size={props?.error.size ?? props.size}\n sxTypography={{ size: '16px', weight: '400', ...props?.error.sxTypography }}\n {...props.error}\n />\n )}\n </>\n );\n};\n"],"mappings":";;;;;;;AAUA,IAAM,IAAa,EAAY,KAAK,OAAO,EAAY,KAAK,QAE/C,IAAA,CAAY,MAAqB;AAC5C,QAAM,IAAW,EAA4B,IAAA,GACvC,IAAM,EAAa,CAAC,GAAU,EAAM,GAAA,CAAI,GAExC,IAAY,EAAA,MAAe,EAAM,UAAU,EAAM,UAAU,IAAa,GAAI,CAAC,EAAM,OAAA,CAAQ,GAC3F,IAAY,EAAA,MAAe,EAAM,UAAU,EAAM,UAAU,IAAa,GAAa,CAAC,EAAM,OAAA,CAAQ,GAEpG,IAAiB,EAAA,MAAkB;AACvC,UAAM,IAAK,EAAS;AACpB,QAAI,KAAM,EAAM,cAAc;AAC5B,MAAA,EAAG,MAAM,SAAS;AAClB,YAAM,IAAY,KAAK,IAAI,EAAG,cAAc,CAAA;AAC5C,MAAA,EAAG,MAAM,SAAS,GAAG,CAAA;AAAA;KAEtB,CAAC,EAAM,cAAc,CAAA,CAAU,GAE5B,IAAiB,EAAA,CACpB,MAAkB;AACjB,QAAI,EAAM,YAAY;AACpB,YAAM,IAAqB,EAAM,QAAQ,QAAQ,EAAA;AACjD,MAAA,EAAM,WAAW,CAAA;AAAA,UAEjB,CAAA,EAAM,WAAW,CAAA;AAAA,KAGrB,CAAC,EAAM,YAAY,EAAM,QAAA,CAAS;AAIpC,EAAA,EAAA,MAAgB;AACd,IAAI,EAAM,gBACR,sBAAsB,CAAA;AAAA,KAEvB;AAAA,IAAC,EAAM;AAAA,IAAO;AAAA,IAAgB,EAAM;AAAA,GAAa;AAEpD,QAAM,EAAE,WAAW,GAAqB,OAAO,EAAA,IAAoB,EAAoB,EACrF,IAAI;AAAA,IACF,QAAQ,EAAM,eAAe,gBAAgB,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