@jenesei-software/jenesei-kit-react 2.3.2 → 2.3.4
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/area-preview.cjs.js +1 -1
- package/build/area-preview.es.js +1 -1
- package/build/button-Cl4532xK.cjs +3 -0
- package/build/button-Cl4532xK.cjs.map +1 -0
- package/build/{button-D6Bg00Uh.js → button-ygPLb-n_.js} +30 -32
- package/build/button-ygPLb-n_.js.map +1 -0
- package/build/{checkbox-9ue4f3-6.cjs → checkbox-B_eE5eQs.cjs} +2 -2
- package/build/{checkbox-9ue4f3-6.cjs.map → checkbox-B_eE5eQs.cjs.map} +1 -1
- package/build/{checkbox-TW5VSNui.js → checkbox-CLGIqCRV.js} +2 -2
- package/build/{checkbox-TW5VSNui.js.map → checkbox-CLGIqCRV.js.map} +1 -1
- package/build/component-button.cjs.js +1 -1
- package/build/component-button.es.js +1 -1
- package/build/component-checkbox.cjs.js +1 -1
- package/build/component-checkbox.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-icon.cjs.js +1 -1
- package/build/component-icon.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/icon/component.d.ts +1 -1
- package/build/components/icon/component.hooks.d.ts +3 -1
- package/build/{context-app-CxNgCfd2.js → context-app-DhxAgIBE.js} +2 -2
- package/build/{context-app-CxNgCfd2.js.map → context-app-DhxAgIBE.js.map} +1 -1
- package/build/{context-app-29ajupjq.cjs → context-app-v8y-IIxP.cjs} +2 -2
- package/build/{context-app-29ajupjq.cjs.map → context-app-v8y-IIxP.cjs.map} +1 -1
- package/build/context-app.cjs.js +1 -1
- package/build/context-app.es.js +1 -1
- package/build/{context-cookie-Daq2MZo3.js → context-cookie-DRPslhxf.js} +2 -2
- package/build/{context-cookie-Daq2MZo3.js.map → context-cookie-DRPslhxf.js.map} +1 -1
- package/build/{context-cookie-DFgWWGA9.cjs → context-cookie-qk-RTVhn.cjs} +2 -2
- package/build/{context-cookie-DFgWWGA9.cjs.map → context-cookie-qk-RTVhn.cjs.map} +1 -1
- package/build/context-cookie.cjs.js +1 -1
- package/build/context-cookie.es.js +1 -1
- package/build/{context-geolocation-B_KYGlfQ.js → context-geolocation-6vk3sckx.js} +2 -2
- package/build/{context-geolocation-B_KYGlfQ.js.map → context-geolocation-6vk3sckx.js.map} +1 -1
- package/build/{context-geolocation-bP0_455H.cjs → context-geolocation-DlHZrmaf.cjs} +2 -2
- package/build/{context-geolocation-bP0_455H.cjs.map → context-geolocation-DlHZrmaf.cjs.map} +1 -1
- package/build/context-geolocation.cjs.js +1 -1
- package/build/context-geolocation.es.js +1 -1
- package/build/{context-local-storage-DA_whw_k.js → context-local-storage-CknlDupP.js} +2 -2
- package/build/{context-local-storage-DA_whw_k.js.map → context-local-storage-CknlDupP.js.map} +1 -1
- package/build/{context-local-storage-D_x8dwxM.cjs → context-local-storage-DK4zzbkX.cjs} +2 -2
- package/build/{context-local-storage-D_x8dwxM.cjs.map → context-local-storage-DK4zzbkX.cjs.map} +1 -1
- package/build/context-local-storage.cjs.js +1 -1
- package/build/context-local-storage.es.js +1 -1
- package/build/{context-permission-Cj70kL4A.js → context-permission-C5L4I8X3.js} +2 -2
- package/build/{context-permission-Cj70kL4A.js.map → context-permission-C5L4I8X3.js.map} +1 -1
- package/build/{context-permission-BP9hPUcR.cjs → context-permission-qp3vUfoA.cjs} +2 -2
- package/build/{context-permission-BP9hPUcR.cjs.map → context-permission-qp3vUfoA.cjs.map} +1 -1
- package/build/context-permission.cjs.js +1 -1
- package/build/context-permission.es.js +1 -1
- package/build/{context-sonner-CtCttHLD.js → context-sonner-BB7C6Wsf.js} +3 -3
- package/build/{context-sonner-CtCttHLD.js.map → context-sonner-BB7C6Wsf.js.map} +1 -1
- package/build/{context-sonner-B-eO7pwI.cjs → context-sonner-BGpNwV_S.cjs} +2 -2
- package/build/{context-sonner-B-eO7pwI.cjs.map → context-sonner-BGpNwV_S.cjs.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-CexAqJgp.cjs} +2 -2
- package/build/{date-picker-9rpPgP0a.cjs.map → date-picker-CexAqJgp.cjs.map} +1 -1
- package/build/{date-picker-BvKtH7lp.js → date-picker-WGlcoobG.js} +3 -3
- package/build/{date-picker-BvKtH7lp.js.map → date-picker-WGlcoobG.js.map} +1 -1
- package/build/hooks-use-deep-compare-memoize.cjs.js +1 -1
- package/build/hooks-use-deep-compare-memoize.es.js +1 -1
- package/build/hooks-use-deep-memo.cjs.js +1 -1
- package/build/hooks-use-deep-memo.es.js +1 -1
- package/build/icon-B6PvcNvO.cjs +3 -0
- package/build/icon-B6PvcNvO.cjs.map +1 -0
- package/build/icon-okw710zo.js +255 -0
- package/build/icon-okw710zo.js.map +1 -0
- package/build/index.cjs.js +1 -1
- package/build/index.es.js +16 -16
- 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/{isEqual-BHn_Fkkw.js → isEqual-BF-XUq17.js} +1 -1
- package/build/{isEqual-BHn_Fkkw.js.map → isEqual-BF-XUq17.js.map} +1 -1
- package/build/{isEqual-Q-mEN2md.cjs → isEqual-DJD8QXYf.cjs} +1 -1
- package/build/{isEqual-Q-mEN2md.cjs.map → isEqual-DJD8QXYf.cjs.map} +1 -1
- package/build/{logger-QC3A33gh.js → logger-D-UddU9-.js} +1 -1
- package/build/{logger-QC3A33gh.js.map → logger-D-UddU9-.js.map} +1 -1
- package/build/{logger-D3Xu5ef3.cjs → logger-GLARTxbP.cjs} +1 -1
- package/build/{logger-D3Xu5ef3.cjs.map → logger-GLARTxbP.cjs.map} +1 -1
- package/build/{pagination-ZXl2fVKZ.cjs → pagination-ClW-z5EV.cjs} +2 -2
- package/build/{pagination-ZXl2fVKZ.cjs.map → pagination-ClW-z5EV.cjs.map} +1 -1
- package/build/{pagination-BFTnpYCz.js → pagination-Dnl1v3VL.js} +2 -2
- package/build/{pagination-BFTnpYCz.js.map → pagination-Dnl1v3VL.js.map} +1 -1
- package/build/{preview-p2i9Ju3I.cjs → preview-DEFGRXfJ.cjs} +2 -2
- package/build/{preview-p2i9Ju3I.cjs.map → preview-DEFGRXfJ.cjs.map} +1 -1
- package/build/{preview-C-mtYSGG.js → preview-DVk-Ykii.js} +2 -2
- package/build/{preview-C-mtYSGG.js.map → preview-DVk-Ykii.js.map} +1 -1
- package/build/{select-BdGRG7zf.js → select-9C2iAXLx.js} +4 -4
- package/build/{select-BdGRG7zf.js.map → select-9C2iAXLx.js.map} +1 -1
- package/build/{select-7yVS14II.cjs → select-C2lLQlEy.cjs} +2 -2
- package/build/{select-7yVS14II.cjs.map → select-C2lLQlEy.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.map +0 -1
- package/build/icon-DyjaxKWq.cjs +0 -3
- package/build/icon-DyjaxKWq.cjs.map +0 -1
- package/build/icon-Y-IZxLXB.js +0 -245
- package/build/icon-Y-IZxLXB.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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AkB,OAAA;AAAA,cAChC,gBAAA,EAAC,YAAD;AAAA,MACE,WAAW;AAAA,MACX,UAAU;AAAA,MACL,KAAA;AAAA,MACL,WAAW,EAAM;AAAA,MACjB,WAAW,EAAM;AAAA,MACjB,UAAU,EAAM;AAAA,MAChB,UAAU,EAAM;AAAA,MAChB,UAAU,EAAM;AAAA,MAChB,cAAc,EAAM,iBAAiB,OAAO,KAAK,EAAM;AAAA,MACvD,OAAO,EAAM,UAAU,OAAO,KAAK,EAAM;AAAA,MACzC,MAAM,EAAM;AAAA,MACZ,aAAa,EAAM;AAAA,MACnB,UAAA,CAAW,MAAU,EAAe,EAAM,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,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,EAAM,QAAQ,OAAQ,EAAA,EACjD,EAAM,WAAW,CAAA,OAEjB,EAAM,WAAW,CAAA,GAGrB,CAAC,EAAM,WAAY,EAAM,QAAA,CAAS,KAIpC,EAAA,WAAA,IAAgB,CACV,EAAM,cACR,sBAAsB,CAAA,GAEvB,CAAC,EAAM,MAAO,EAAgB,EAAM,aAAa,EAEpD,KAAM,CAAE,UAAW,EAAqB,MAAO,CAAA,EAAoB,EAAA,oBAAoB,CACrF,GAAI,CACF,OAAQ,EA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AAM,aACpB,GAAI,EAAM,GACV,MAAO,CACL,UAAW,GAAG,CAAA,KACd,UAAW,EAAM,SAAW,OAAS,EAAM,aAAe,GAAG,CAAA,KAAgB,GAAG,CAAA,KAChF,GAAG,GAEL,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"}
|
package/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const f=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,EAU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,UAClB,GAAI,EAAM,YAZZ,CAcG,CAAC,EAAM,YAAc,EAAM,aAC1B,EAAA,KAAC,MAAD,CAAK,UAAW,EAAqB,MAAO,WACzC,EAAM,SACH,KAER,EAAA,KAAC,MAAD,CAAK,UAAW,EAAoB,MAAO,WACxC,EACG,CAAA,KAKC,KAAA,EAAA,MAAc,EAAiB,CAAA,EAC5C,EAAO,YAAc,SAErB,SAAS,EAAoB,EAAe,EAAe,CACzD,KAAM,CAAE,MAAO,EAAW,MAAO,EAAW,aAAc,EAAkB,GAAG,CAAA,EAAa,EACtF,CAAE,MAAO,EAAW,MAAO,EAAW,aAAc,EAAkB,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"}
|
|
@@ -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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CAAA,GAAM,EAAK,CAAA,CAAA,CAAK"}
|
package/build/icon-DyjaxKWq.cjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const V=require("./chunk-Dd8m0Ver.cjs"),t=require("./utils-DCIq-5FL.cjs"),m=require("./functions-CZrZU5U0.cjs"),_=require("./skeleton-BfOHjRgT.cjs");require("./logger-D3Xu5ef3.cjs");let S=require("react/jsx-runtime"),s=require("react");var A="1.3.0",a=new Map;function M(e){const[n,l]=(0,s.useState)(!1),[g,c]=(0,s.useState)(null);return(0,s.useEffect)(()=>{let u=!0;const r=a.get(e);if(r?.loaded){l(!0),c(r.error??null);return}let f;if(r)f=r.promise;else{const o=(async()=>{const i=await fetch(e);if(!i.ok)throw new Error(`Failed to load sprite: ${e}`);const C=await i.text(),d=document.createElement("div");d.style.display="none",d.innerHTML=C,document.body.prepend(d)})();a.set(e,{promise:o,loaded:!1}),o.then(()=>{const i=a.get(e);a.set(e,{...i,promise:o,loaded:!0})}).catch(i=>{const C=i instanceof Error?i:new Error(String(i)),d=a.get(e);a.set(e,{...d,promise:o,loaded:!0,error:C})}),f=o}return f.then(()=>{if(!u)return;const o=a.get(e);l(o?.loaded??!0),c(o?.error??null)}).catch(()=>{}),()=>{u=!1}},[e]),{loaded:n,error:g}}var y=e=>{const n=(0,s.useMemo)(()=>h({type:e.type,name:e.name}),[e.name,e.type]),{loaded:l,error:g}=M((0,s.useMemo)(()=>w({type:e.type}),[e.type])),c=(0,s.useMemo)(()=>({className:m.setClasses([t.CSS_CLASS.component.icon.skeleton,e.className]),style:m.setStyles([{[t.CSS_VARS_RAW.component.icon.skeletonHeightIcon]:e.size!=="100%"?t.CSS_VARS.size[e.size].heightIcon:"100%",[t.CSS_VARS_RAW.component.icon.skeletonOrder]:e.order?String(e.order):"initial"},e.style])}),[e.className,e.style,e.order,e.size]),u=(0,s.useMemo)(()=>({className:m.setClasses([t.CSS_CLASS.component.icon.root,t.CSS_CLASS.transition.icon,e.className]),style:m.setStyles([{[t.CSS_VARS_RAW.component.icon.color]:e.color?t.CSS_VARS.palette[e.color]:"inherit",[t.CSS_VARS_RAW.component.icon.heightIcon]:e.size!=="100%"?t.CSS_VARS.size[e.size].heightIcon:"100%",[t.CSS_VARS_RAW.component.icon.turn]:e.turn?`${e.turn}deg`:"0deg",[t.CSS_VARS_RAW.component.icon.order]:e.order?String(e.order):"initial"},e.style])}),[e.className,e.style,e.order,e.size,e.color,e.turn]);return!l||g?(0,S.jsx)(_.Skeleton,{color:e.color??void 0,className:c.className,style:c.style,visible:!1}):(0,S.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:u.className,style:u.style,onClick:e.onClick,onKeyDown:r=>{e.onClick&&(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),e.onClick(r))},tabIndex:e.tabIndex,role:e.onClick?"button":void 0,children:[(0,S.jsx)("title",{children:e.name}),(0,S.jsx)("use",{href:n})]})};function h(e){return`#${e.type}-${e.name}`}function w(e){return`https://cdn.jsdelivr.net/gh/jenesei-software/jenesei-id-assets@${A}/icons/${e.type}.svg`}var k=["Close","Biometry","Qr","Search","Folder","Wallet","Graph","Bookmark","Browser","Category","Home","Notification","Chat","Heart","Paper","Plus","Minus","PaperPlus","PaperNegative","PaperFail","PaperDownload","PaperUpload","Send","Password","Swap","Work","Arrow1","Arrow2","Arrow3","Arrow4","ArrowMini1","ArrowMini2","Scan","Activity","Calendar","Message","PlusMini","ChartMini","Game","Bag1","Bag2","TicketStar","MoreCircle","MoreSquare","Discount","Buy","Web","InfoMini","DangerMini","CloseMini","TickMini","Video","Discovery","Location","Document","Setting","Time","VolumeUp","VolumeDown","VolumeOff","Star","Select","Ticket","Camera","Profile","AddUser","TwoUser","ThreeUser","Login","Logout","Download","Upload","Voice1","Voice2","Delete","Edit","PlayMini","ShieldDone","ShieldFail","Show","Hide","Filter1","Filter2","Image","Call","Calling","CallMissed","CallSilent","Lock","Unlock","Resources","Language"],v=["Radio-true","Radio-false","Square-true","Square-false","Heart-true","Heart-false","Arrow"],E=["Line","Blocks","Balls"],I=["Jenesei","BustMarket"],P={id:k,checkbox:v,loading:E,logo:I};function R(e){return(e.icons??[])?.filter(n=>!n.isHidden)?.map((n,l)=>(0,S.jsx)(y,{size:n?.size??e.size,...n},`${n.type}-${n.name}-${l}`))}Object.defineProperty(exports,"Icon",{enumerable:!0,get:function(){return y}});Object.defineProperty(exports,"THEME_MAP",{enumerable:!0,get:function(){return P}});Object.defineProperty(exports,"getIconComponents",{enumerable:!0,get:function(){return R}});
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=icon-DyjaxKWq.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icon-DyjaxKWq.cjs","names":[],"sources":["../src/cores/consts.ts","../src/components/icon/component.hooks.tsx","../src/components/icon/component.tsx","../src/components/icon/component.consts.tsx","../src/components/icon/component.functions.tsx"],"sourcesContent":["import {\n IDatePickerTranslateInput,\n IDatePickerTranslateMonth,\n IDatePickerTranslateWeek,\n} from '@local/components/date-picker';\n\nexport const LOCALE_INPUT: IDatePickerTranslateInput = {\n day: 'ДД',\n month: 'ММ',\n year: 'ГГГГ',\n};\n\nexport const LOCALE_MONTHS: IDatePickerTranslateMonth[] = [\n {\n localeLong: 'Январь',\n localeShort: 'Янв',\n value: 'january',\n },\n {\n localeLong: 'February',\n localeShort: 'Feb',\n value: 'february',\n },\n {\n localeLong: 'March',\n localeShort: 'Mar',\n value: 'march',\n },\n {\n localeLong: 'April',\n localeShort: 'Apr',\n value: 'april',\n },\n {\n localeLong: 'May',\n localeShort: 'May',\n value: 'may',\n },\n {\n localeLong: 'June',\n localeShort: 'Jun',\n value: 'june',\n },\n {\n localeLong: 'July',\n localeShort: 'Jul',\n value: 'july',\n },\n {\n localeLong: 'August',\n localeShort: 'Aug',\n value: 'august',\n },\n {\n localeLong: 'September',\n localeShort: 'Sep',\n value: 'september',\n },\n {\n localeLong: 'October',\n localeShort: 'Oct',\n value: 'october',\n },\n {\n localeLong: 'November',\n localeShort: 'Nov',\n value: 'november',\n },\n {\n localeLong: 'December',\n localeShort: 'Dec',\n value: 'december',\n },\n];\nexport const LOCALE_WEEKS: IDatePickerTranslateWeek[] = [\n {\n localeLong: 'Monday',\n localeShort: 'Пн',\n value: 'mo',\n },\n {\n localeLong: 'Tuesday',\n localeShort: 'Tue',\n value: 'tu',\n },\n {\n localeLong: 'Wednesday',\n localeShort: 'Wed',\n value: 'we',\n },\n {\n localeLong: 'Thursday',\n localeShort: 'Thu',\n value: 'th',\n },\n {\n localeLong: 'Friday',\n localeShort: 'Fri',\n value: 'fr',\n },\n {\n localeLong: 'Saturday',\n localeShort: 'Sat',\n value: 'sa',\n },\n {\n localeLong: 'Sunday',\n localeShort: 'Sun',\n value: 'su',\n },\n];\n\nexport const LIBRARY_VERSION = import.meta.env.VITE_APP_VERSION;\nexport const ICON_VERSION = import.meta.env.VITE_ICON_VERSION;\n\n// export const LIST_TYPOGRAPHY_VARIANTS_DEFAULT: IThemeTypographyHeading[] = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];\n","import { logger } from '@local/cores/logger';\n\nimport { useEffect, useState } from 'react';\n\nexport function useInjectSprites(urls: string[]) {\n useEffect(() => {\n const containers: HTMLDivElement[] = [];\n\n urls.forEach(async (url) => {\n try {\n const res = await fetch(url);\n if (!res.ok) {\n logger.error(`Failed to load sprite: ${url}`);\n return;\n }\n const text = await res.text();\n\n const div = document.createElement('div');\n div.style.display = 'none';\n div.innerHTML = text;\n\n document.body.prepend(div);\n containers.push(div);\n } catch (err) {\n logger.error(`Error loading sprite ${url}`, err);\n }\n });\n\n return () => {\n containers.forEach((div) => {\n div.remove();\n });\n };\n }, [urls]);\n}\n\ntype SpriteStatus = {\n promise: Promise<void>;\n loaded: boolean;\n error?: Error;\n};\n\nconst loadedSprites = new Map<string, SpriteStatus>();\n\nexport function useLazyInjectSprite(url: string) {\n const [loaded, setLoaded] = useState(false);\n const [error, setError] = useState<Error | null>(null);\n\n useEffect(() => {\n let isMounted = true;\n\n // Проверяем актуальный статус прямо здесь\n const status = loadedSprites.get(url);\n if (status?.loaded) {\n setLoaded(true);\n setError(status.error ?? null);\n return;\n }\n\n let promise: Promise<void>;\n\n if (!status) {\n const p = (async () => {\n const res = await fetch(url);\n if (!res.ok) throw new Error(`Failed to load sprite: ${url}`);\n const text = await res.text();\n const div = document.createElement('div');\n div.style.display = 'none';\n div.innerHTML = text;\n document.body.prepend(div);\n })();\n\n loadedSprites.set(url, { promise: p, loaded: false });\n\n p.then(() => {\n const prev = loadedSprites.get(url);\n loadedSprites.set(url, { ...(prev as any), promise: p, loaded: true });\n }).catch((err) => {\n const errorObj = err instanceof Error ? err : new Error(String(err));\n const prev = loadedSprites.get(url);\n loadedSprites.set(url, { ...(prev as any), promise: p, loaded: true, error: errorObj });\n });\n\n promise = p;\n } else {\n promise = status.promise;\n }\n\n promise\n .then(() => {\n if (!isMounted) return;\n const s = loadedSprites.get(url);\n setLoaded(s?.loaded ?? true);\n setError(s?.error ?? null);\n })\n .catch(() => {}); // Ошибка уже сохранена в статусе\n\n return () => {\n isMounted = false;\n };\n }, [url]);\n\n return { loaded, error };\n}\n","import { Skeleton } from '@local/areas/skeleton';\nimport { ICON_VERSION } from '@local/cores/consts';\nimport { CSS_VARS } from '@local/styles/utils';\nimport { CSS_CLASS, CSS_VARS_RAW } from '@local/styles/utils/constants';\nimport { setClasses, setStyles } from '@local/styles/utils/functions';\n\nimport { useMemo } from 'react';\n\nimport { useLazyInjectSprite } from './component.hooks';\nimport { IIcon } from './component.types';\n\nexport const Icon = (props: IIcon) => {\n const iconId = useMemo(() => getIconId({ type: props.type, name: props.name }), [props.name, props.type]);\n const spriteUrl = useMemo(() => getSpriteUrl({ type: props.type }), [props.type]);\n const { loaded, error } = useLazyInjectSprite(spriteUrl);\n\n const configSkeleton = useMemo(() => {\n return {\n className: setClasses([CSS_CLASS.component.icon.skeleton, props.className]),\n style: setStyles([\n {\n [CSS_VARS_RAW.component.icon.skeletonHeightIcon]:\n props.size !== '100%' ? CSS_VARS.size[props.size].heightIcon : '100%',\n [CSS_VARS_RAW.component.icon.skeletonOrder]: props.order ? String(props.order) : 'initial',\n },\n props.style,\n ]),\n };\n }, [props.className, props.style, props.order, props.size]);\n\n const configIcon = useMemo(() => {\n return {\n className: setClasses([CSS_CLASS.component.icon.root, CSS_CLASS.transition.icon, props.className]),\n\n style: setStyles([\n {\n [CSS_VARS_RAW.component.icon.color]: props.color ? CSS_VARS.palette[props.color] : 'inherit',\n [CSS_VARS_RAW.component.icon.heightIcon]:\n props.size !== '100%' ? CSS_VARS.size[props.size].heightIcon : '100%',\n [CSS_VARS_RAW.component.icon.turn]: props.turn ? `${props.turn}deg` : '0deg',\n [CSS_VARS_RAW.component.icon.order]: props.order ? String(props.order) : 'initial',\n },\n props.style,\n ]),\n };\n }, [props.className, props.style, props.order, props.size, props.color, props.turn]);\n\n if (!loaded || error)\n return (\n <Skeleton\n color={props.color ?? undefined}\n className={configSkeleton.className}\n style={configSkeleton.style}\n visible={false}\n />\n );\n\n return (\n <svg\n width='24'\n height='24'\n viewBox='0 0 24 24'\n xmlns='http://www.w3.org/2000/svg'\n className={configIcon.className}\n style={configIcon.style}\n onClick={props.onClick}\n onKeyDown={(e) => {\n if (props.onClick && (e.key === 'Enter' || e.key === ' ')) {\n e.preventDefault();\n props.onClick(e as any);\n }\n }}\n tabIndex={props.tabIndex}\n role={props.onClick ? 'button' : undefined}\n >\n <title>{props.name}</title>\n <use href={iconId} />\n </svg>\n );\n};\n\nexport function getIconId(props: { type: string; name: string }) {\n return `#${props.type}-${props.name}`;\n}\n\nexport function getSpriteUrl(props: { type: string }) {\n return `https://cdn.jsdelivr.net/gh/jenesei-software/jenesei-id-assets@${ICON_VERSION}/icons/${props.type}.svg`;\n}\n","const THEME_MAP_ID = [\n 'Close',\n 'Biometry',\n 'Qr',\n 'Search',\n 'Folder',\n 'Wallet',\n 'Graph',\n 'Bookmark',\n 'Browser',\n 'Category',\n 'Home',\n 'Notification',\n 'Chat',\n 'Heart',\n 'Paper',\n 'Plus',\n 'Minus',\n 'PaperPlus',\n 'PaperNegative',\n 'PaperFail',\n 'PaperDownload',\n 'PaperUpload',\n 'Send',\n 'Password',\n 'Swap',\n 'Work',\n 'Arrow1',\n 'Arrow2',\n 'Arrow3',\n 'Arrow4',\n 'ArrowMini1',\n 'ArrowMini2',\n 'Scan',\n 'Activity',\n 'Calendar',\n 'Message',\n 'PlusMini',\n 'ChartMini',\n 'Game',\n 'Bag1',\n 'Bag2',\n 'TicketStar',\n 'MoreCircle',\n 'MoreSquare',\n 'Discount',\n 'Buy',\n 'Web',\n 'InfoMini',\n 'DangerMini',\n 'CloseMini',\n 'TickMini',\n 'Video',\n 'Discovery',\n 'Location',\n 'Document',\n 'Setting',\n 'Time',\n 'VolumeUp',\n 'VolumeDown',\n 'VolumeOff',\n 'Star',\n 'Select',\n 'Ticket',\n 'Camera',\n 'Profile',\n 'AddUser',\n 'TwoUser',\n 'ThreeUser',\n 'Login',\n 'Logout',\n 'Download',\n 'Upload',\n 'Voice1',\n 'Voice2',\n 'Delete',\n 'Edit',\n 'PlayMini',\n 'ShieldDone',\n 'ShieldFail',\n 'Show',\n 'Hide',\n 'Filter1',\n 'Filter2',\n 'Image',\n 'Call',\n 'Calling',\n 'CallMissed',\n 'CallSilent',\n 'Lock',\n 'Unlock',\n 'Resources',\n 'Language',\n] as const;\nconst THEME_MAP_CHECKBOX = [\n 'Radio-true',\n 'Radio-false',\n 'Square-true',\n 'Square-false',\n 'Heart-true',\n 'Heart-false',\n 'Arrow',\n] as const;\nconst THEME_MAP_LOADING = ['Line', 'Blocks', 'Balls'] as const;\nconst THEME_MAP_LOGO = ['Jenesei', 'BustMarket'] as const;\n\nexport const THEME_MAP = {\n id: THEME_MAP_ID,\n checkbox: THEME_MAP_CHECKBOX,\n loading: THEME_MAP_LOADING,\n logo: THEME_MAP_LOGO,\n};\n","import { Icon } from './component';\nimport { IGetIconComponentsProps } from './component.types';\n\nexport function getIconComponents(props: IGetIconComponentsProps) {\n return (props.icons ?? [])\n ?.filter((icon) => !icon.isHidden)\n ?.map((icon, index) => (\n <Icon key={`${icon.type}-${icon.name}-${index}`} size={icon?.size ?? props.size} {...icon} />\n ));\n}\n"],"mappings":"4OAiHA,IAAa,EAAA,QCvEP,EAAgB,IAAI,IAE1B,SAAgB,EAAoB,EAAa,CAC/C,KAAM,CAAC,EAAQ,CAAA,KAAA,EAAA,UAAsB,EAAA,EAC/B,CAAC,EAAO,CAAA,KAAA,EAAA,UAAmC,IAAA,EAEjD,SAAA,EAAA,WAAA,IAAgB,CACd,IAAI,EAAY,GAGhB,MAAM,EAAS,EAAc,IAAI,CAAA,EACjC,GAAI,GAAQ,OAAQ,CAClB,EAAU,EAAA,EACV,EAAS,EAAO,OAAS,IAAA,EACzB,OAGF,IAAI,EAEJ,GAAK,EAwBH,EAAU,EAAO,YAxBN,CACX,MAAM,GAAK,SAAY,CACrB,MAAM,EAAM,MAAM,MAAM,CAAA,EACxB,GAAI,CAAC,EAAI,GAAI,MAAM,IAAI,MAAM,0BAA0B,CAAA,EAAA,EACvD,MAAM,EAAO,MAAM,EAAI,KAAA,EACjB,EAAM,SAAS,cAAc,KAAA,EACnC,EAAI,MAAM,QAAU,OACpB,EAAI,UAAY,EAChB,SAAS,KAAK,QAAQ,CAAA,MAGxB,EAAc,IAAI,EAAK,CAAE,QAAS,EAAG,OAAQ,GAAO,EAEpD,EAAE,KAAA,IAAW,CACX,MAAM,EAAO,EAAc,IAAI,CAAA,EAC/B,EAAc,IAAI,EAAK,CAAE,GAAI,EAAc,QAAS,EAAG,OAAQ,GAAM,IACpE,MAAO,GAAQ,CAChB,MAAM,EAAW,aAAe,MAAQ,EAAM,IAAI,MAAM,OAAO,CAAA,CAAI,EAC7D,EAAO,EAAc,IAAI,CAAA,EAC/B,EAAc,IAAI,EAAK,CAAE,GAAI,EAAc,QAAS,EAAG,OAAQ,GAAM,MAAO,EA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