mimir-ui-kit 1.34.0 → 1.34.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Input-DspsU5F4.js → Input-ChCIy5oY.js} +23 -27
- package/dist/{ProgressBar-DWKyrXzd.js → ProgressBar-CwLwhaeM.js} +23 -23
- package/dist/assets/Accordion.css +1 -1
- package/dist/assets/AccordionItem.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/CheckboxMimir.css +1 -1
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/Drawer.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/InputPassword.css +1 -1
- package/dist/assets/Link.css +1 -1
- package/dist/assets/ListFiles.css +1 -1
- package/dist/assets/ListPhotos.css +1 -1
- package/dist/assets/MergedButton.css +1 -1
- package/dist/assets/NotificationBadge.css +1 -1
- package/dist/assets/OtpInput.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/ProgressBar2.css +1 -1
- package/dist/assets/RadioGroup.css +1 -1
- package/dist/assets/SelectSearch.css +1 -1
- package/dist/assets/Slider.css +1 -1
- package/dist/assets/TabTrail.css +1 -1
- package/dist/assets/Tag.css +1 -1
- package/dist/assets/TextArea.css +1 -1
- package/dist/assets/Timer.css +1 -1
- package/dist/assets/Uploader.css +1 -1
- package/dist/assets/UploaderPhotos.css +1 -1
- package/dist/assets/Vote.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/components/Accordion/Accordion.js +16 -24
- package/dist/components/Accordion/AccordionItem/AccordionItem.js +3 -3
- package/dist/components/AnchorLink/Link.js +9 -9
- package/dist/components/Button/Button.js +33 -33
- package/dist/components/Button/types.js +1 -0
- package/dist/components/CheckboxMimir/CheckboxMimir.js +19 -16
- package/dist/components/Chip/Chip.js +12 -12
- package/dist/components/DatePicker/DatePicker.d.ts +18 -36
- package/dist/components/DatePicker/DatePicker.js +6 -46
- package/dist/components/DatePicker/DatePickerModal.js +60 -76
- package/dist/components/DatePicker/MonthPickerModal.js +6 -14
- package/dist/components/DatePicker/YearPickerModal.js +2 -2
- package/dist/components/Drawer/Drawer.d.ts +1 -1
- package/dist/components/Drawer/Drawer.js +20 -20
- package/dist/components/Input/Input.d.ts +1 -5
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/constants.d.ts +3 -5
- package/dist/components/Input/constants.js +3 -7
- package/dist/components/Input/index.d.ts +2 -2
- package/dist/components/Input/index.js +2 -3
- package/dist/components/Input/types.d.ts +6 -2
- package/dist/components/Input/types.js +1 -0
- package/dist/components/InputPassword/InputPassword.js +8 -8
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
- package/dist/components/ListFiles/ListFiles.js +7 -7
- package/dist/components/ListPhotos/ListPhotos.js +4 -4
- package/dist/components/MergedButton/MergedButton.js +6 -6
- package/dist/components/NotificationBadge/NotificationBadge.js +4 -4
- package/dist/components/NotificationBadge/types.js +1 -0
- package/dist/components/OtpInput/OtpInput.js +5 -5
- package/dist/components/Pagination/Pagination.d.ts +3 -1
- package/dist/components/Pagination/Pagination.js +11 -7
- package/dist/components/Pagination/types.js +1 -0
- package/dist/components/RadioGroup/RadioGroup.js +9 -9
- package/dist/components/SelectSearch/SelectSearch.d.ts +2 -18
- package/dist/components/SelectSearch/SelectSearch.js +31 -47
- package/dist/components/SelectSearch/types.d.ts +4 -2
- package/dist/components/SelectSearch/types.js +1 -0
- package/dist/components/Slider/Slider.d.ts +2 -3
- package/dist/components/Slider/Slider.js +10 -12
- package/dist/components/Steps/Steps.d.ts +0 -4
- package/dist/components/Steps/Steps.js +1 -5
- package/dist/components/Steps/types.js +1 -0
- package/dist/components/TabTrail/TabTrail.d.ts +0 -8
- package/dist/components/TabTrail/TabTrail.js +17 -33
- package/dist/components/Tag/Tag.js +6 -6
- package/dist/components/Tag/types.js +1 -0
- package/dist/components/TextArea/TextArea.js +12 -14
- package/dist/components/TextArea/hooks.js +0 -4
- package/dist/components/TextArea/types.js +1 -0
- package/dist/components/Timer/Timer.js +1 -1
- package/dist/components/Toasts/ProgressBar.js +1 -1
- package/dist/components/Toasts/Toast.js +1 -1
- package/dist/components/Toasts/ToastList.js +1 -1
- package/dist/components/Toasts/ToastsProvider.js +1 -1
- package/dist/components/Toasts/types.js +1 -0
- package/dist/components/UniversalUploader/UniversalUploader.js +35 -21
- package/dist/components/UniversalUploader/types.js +1 -0
- package/dist/components/Uploader/Uploader.js +3 -3
- package/dist/components/UploaderFiles/UploaderFiles.js +1 -1
- package/dist/components/UploaderPhotos/UploaderPhotos.js +1 -1
- package/dist/components/Vote/Vote.d.ts +0 -8
- package/dist/components/Vote/Vote.js +4 -6
- package/dist/components/Vote/types.js +1 -0
- package/dist/components/index.d.ts +2 -14
- package/dist/components/index.js +2 -31
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/components/types.js +1 -0
- package/dist/index.js +2 -31
- package/dist/{label-P7Xsi5N7.js → label-BTEGh6O_.js} +2 -2
- package/dist/styles.module-Ugsf0AOb.js +38 -0
- package/package.json +1 -1
- package/dist/assets/Avatar.css +0 -1
- package/dist/assets/GosZnak.css +0 -1
- package/dist/assets/InputRangeSlider.css +0 -1
- package/dist/assets/SkeletonCircle.css +0 -1
- package/dist/assets/SkeletonText.css +0 -1
- package/dist/assets/Switcher.css +0 -1
- package/dist/assets/TwinSwitcher.css +0 -1
- package/dist/assets/variant.css +0 -1
- package/dist/components/Avatar/Avatar.d.ts +0 -3
- package/dist/components/Avatar/Avatar.js +0 -62
- package/dist/components/Avatar/constants.d.ts +0 -5
- package/dist/components/Avatar/constants.js +0 -9
- package/dist/components/Avatar/index.d.ts +0 -3
- package/dist/components/Avatar/index.js +0 -6
- package/dist/components/Avatar/types.d.ts +0 -10
- package/dist/components/DatePicker/utils.d.ts +0 -2
- package/dist/components/DatePicker/utils.js +0 -16
- package/dist/components/GosZnak/GosZnak.d.ts +0 -4
- package/dist/components/GosZnak/GosZnak.js +0 -76
- package/dist/components/GosZnak/constants.d.ts +0 -11
- package/dist/components/GosZnak/constants.js +0 -17
- package/dist/components/GosZnak/index.d.ts +0 -3
- package/dist/components/GosZnak/index.js +0 -7
- package/dist/components/GosZnak/types.d.ts +0 -26
- package/dist/components/InputRangeSlider/InputRangeSlider.d.ts +0 -3
- package/dist/components/InputRangeSlider/InputRangeSlider.js +0 -219
- package/dist/components/InputRangeSlider/constants.d.ts +0 -10
- package/dist/components/InputRangeSlider/constants.js +0 -18
- package/dist/components/InputRangeSlider/index.d.ts +0 -3
- package/dist/components/InputRangeSlider/index.js +0 -7
- package/dist/components/InputRangeSlider/types.d.ts +0 -33
- package/dist/components/Skeleton/SkeletonBrick/SkeletonBrick.d.ts +0 -12
- package/dist/components/Skeleton/SkeletonBrick/SkeletonBrick.js +0 -34
- package/dist/components/Skeleton/SkeletonCircle/SkeletonCircle.d.ts +0 -9
- package/dist/components/Skeleton/SkeletonCircle/SkeletonCircle.js +0 -31
- package/dist/components/Skeleton/SkeletonText/SkeletonText.d.ts +0 -10
- package/dist/components/Skeleton/SkeletonText/SkeletonText.js +0 -49
- package/dist/components/Skeleton/constants.d.ts +0 -5
- package/dist/components/Skeleton/constants.js +0 -9
- package/dist/components/Skeleton/index.d.ts +0 -4
- package/dist/components/Skeleton/index.js +0 -10
- package/dist/components/Switcher/Switcher.d.ts +0 -3
- package/dist/components/Switcher/Switcher.js +0 -118
- package/dist/components/Switcher/constants.d.ts +0 -4
- package/dist/components/Switcher/constants.js +0 -8
- package/dist/components/Switcher/index.d.ts +0 -3
- package/dist/components/Switcher/index.js +0 -6
- package/dist/components/Switcher/types.d.ts +0 -30
- package/dist/components/TwinSwitcher/TwinSwitcher.d.ts +0 -10
- package/dist/components/TwinSwitcher/TwinSwitcher.js +0 -65
- package/dist/components/TwinSwitcher/index.d.ts +0 -1
- package/dist/components/TwinSwitcher/index.js +0 -4
- package/dist/field-bS4z9Sdl.js +0 -12
- package/dist/styles.module-B9L4B63y.js +0 -40
- package/dist/variant.module-BinTBzAV.js +0 -15
package/dist/assets/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@font-face{font-weight:400;font-family:Montserrat;font-style:normal;src:url(./fonts/585d10920d676fcd.woff2) format("woff2"),url(./fonts/3b9f59412b17ff93.woff) format("woff")}@font-face{font-weight:700;font-family:Montserrat;font-style:normal;src:url(./fonts/f4d681a788c6d497.woff2) format("woff2"),url(./fonts/43b748f250df0f08.woff) format("woff")}@font-face{font-weight:300;font-family:Montserrat;font-style:normal;src:url(./fonts/ee3db32f0aadef5d.woff2) format("woff2"),url(./fonts/1a738bfdbc1e4d9d.woff) format("woff")}@font-face{font-weight:500;font-family:Montserrat;font-style:normal;src:url(./fonts/e51d2feb30084bc2.woff2) format("woff2"),url(./fonts/badaa6d1837432de.woff) format("woff")}@font-face{font-weight:600;font-family:Montserrat;font-style:normal;src:url(./fonts/63611593e008a77c.woff2) format("woff2"),url(./fonts/3cdd7fabbe89d2b9.woff) format("woff")}@font-face{font-weight:400;font-family:Inter;font-style:normal;src:url(./fonts/d080ae18fd04e52c.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:700;font-family:Inter;font-style:normal;src:url(./fonts/11d5bc9f0cad36d1.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:500;font-family:Inter;font-style:normal;src:url(./fonts/242d04bef81519ae.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:600;font-family:Inter;font-style:normal;src:url(./fonts/cac2ba46e8c8adc9.woff2) format("woff2");font-variant-numeric:slashed-zero}@supports (font-variation-settings: normal){:root{font-family:InterVariable,sans-serif}}:root{font-feature-settings:"zero"}*{margin:0;padding:0;border:0;outline:none}*,:after,:before{box-sizing:border-box}:active,:focus{outline:0}a,a:visited,a:hover{-webkit-text-decoration:none;text-decoration:none}a:active,a:focus{outline:0}aside,footer,header,nav{display:block}body,html{width:100%;height:100%;font-size:100%;line-height:1}button,input,textarea,select{font-family:inherit}input::-ms-clear{display:none}button{background-color:transparent;cursor:pointer}button::-moz-focus-inner{padding:0;border:0}ul li{list-style:none}img{vertical-align:top}h1,h2,h3,h4,h5,h6{font-weight:inherit;font-size:inherit}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--color-typo-brand);-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s}:root{--sapphire-100: #2355d7;--sapphire-90: #3564df;--sapphire-80: #4b75e2;--sapphire-70: #6186e6;--sapphire-60: #7797e9;--sapphire-50: #8da7ed;--sapphire-40: #9fb7f4;--sapphire-30: #b9caf4;--sapphire-20: #cfdaf7;--sapphire-10: #e5ebfb;--citrine-100: #ff7900;--citrine-90: #ff861a;--citrine-80: #ff9433;--citrine-70: #ffa14d;--citrine-60: #ffaf66;--citrine-50: #ffbc80;--citrine-40: #ffc999;--citrine-30: #ffd7b2;--citrine-20: #ffe4cc;--citrine-10: #fff2e5;--magenta-100: #bc2251;--magenta-90: #d8275d;--magenta-80: #dc3d6d;--magenta-70: #e15781;--magenta-60: #e46c91;--magenta-50: #e986a4;--magenta-40: #ed9cb4;--magenta-30: #f2b6c8;--magenta-20: #f6cbd8;--magenta-10: #fae5ec;--black-100: #000;--black-95: #0d0d0d;--black-90: #1a1a1a;--black-85: #262626;--black-80: #333;--black-75: #404040;--black-70: #4d4d4d;--black-65: #595959;--black-60: #666;--black-55: #737373;--black-50: #808080;--black-45: #8c8c8c;--black-40: #999;--black-35: #a6a6a6;--black-30: #b3b3b3;--black-25: #bfbfbf;--black-20: #ccc;--black-15: #d9d9d9;--black-10: #e6e6e6;--black-5: #f2f2f2;--white: #fff;--dark-blue: #0a38af;--blue-40: #a7bbef;--blue-20: #d3ddf7;--green: #1b770c;--red-tag: #f01406;--success-normal: #23b413;--success-bg-hover: #d5fbe2;--success-bg-active: #ebfdf1;--alarm-normal: #fdc023;--alarm-bg-hover: #fff0c7;--alarm-bg-active: #fff6de;--error-normal: #e64646;--error-bg-hover: #fadbdb;--error-bg-active: #fbe3e3;--disabled: #b3b3b3;--disabled-color: #b2b2b2;--light-text: var(--white);--dark-text: var(--black-100);--sapphire-normal: var(--sapphire-100);--sapphire-hover: #1b41a3;--sapphire-active: #122c70;--citrine-normal: var(--citrine-100);--citrine-hover: #e56d00;--citrine-active: #cc6100;--asphalt-border: var(--black-30);--asphalt-normal: var(--black-80);--asphalt-hover: var(--black-90);--asphalt-active: var(--black-100);--gray-normal: var(--black-5);--gray-hover: var(--black-10);--gray-active: var(--black-80);--white-normal: var(--white);--white-hover: var(--black-5);--white-transparent: rgba(255, 255, 255, .4);--white-active: var(--black-80);--red-normal: var(--error-normal);--red-hover: #e33030;--red-active: #dc1e1e;--green-normal: var(--green);--green-hover: #16610a;--green-active: #114a08;--counter-text: #ffa066;--
|
1
|
+
@font-face{font-weight:400;font-family:Montserrat;font-style:normal;src:url(./fonts/585d10920d676fcd.woff2) format("woff2"),url(./fonts/3b9f59412b17ff93.woff) format("woff")}@font-face{font-weight:700;font-family:Montserrat;font-style:normal;src:url(./fonts/f4d681a788c6d497.woff2) format("woff2"),url(./fonts/43b748f250df0f08.woff) format("woff")}@font-face{font-weight:300;font-family:Montserrat;font-style:normal;src:url(./fonts/ee3db32f0aadef5d.woff2) format("woff2"),url(./fonts/1a738bfdbc1e4d9d.woff) format("woff")}@font-face{font-weight:500;font-family:Montserrat;font-style:normal;src:url(./fonts/e51d2feb30084bc2.woff2) format("woff2"),url(./fonts/badaa6d1837432de.woff) format("woff")}@font-face{font-weight:600;font-family:Montserrat;font-style:normal;src:url(./fonts/63611593e008a77c.woff2) format("woff2"),url(./fonts/3cdd7fabbe89d2b9.woff) format("woff")}@font-face{font-weight:400;font-family:Inter;font-style:normal;src:url(./fonts/d080ae18fd04e52c.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:700;font-family:Inter;font-style:normal;src:url(./fonts/11d5bc9f0cad36d1.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:500;font-family:Inter;font-style:normal;src:url(./fonts/242d04bef81519ae.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:600;font-family:Inter;font-style:normal;src:url(./fonts/cac2ba46e8c8adc9.woff2) format("woff2");font-variant-numeric:slashed-zero}@supports (font-variation-settings: normal){:root{font-family:InterVariable,sans-serif}}:root{font-feature-settings:"zero"}*{margin:0;padding:0;border:0;outline:none}*,:after,:before{box-sizing:border-box}:active,:focus{outline:0}a,a:visited,a:hover{-webkit-text-decoration:none;text-decoration:none}a:active,a:focus{outline:0}aside,footer,header,nav{display:block}body,html{width:100%;height:100%;font-size:100%;line-height:1}button,input,textarea,select{font-family:inherit}input::-ms-clear{display:none}button{background-color:transparent;cursor:pointer}button::-moz-focus-inner{padding:0;border:0}ul li{list-style:none}img{vertical-align:top}h1,h2,h3,h4,h5,h6{font-weight:inherit;font-size:inherit}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--color-typo-brand);-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s}:root{--sapphire-100: #2355d7;--sapphire-90: #3564df;--sapphire-80: #4b75e2;--sapphire-70: #6186e6;--sapphire-60: #7797e9;--sapphire-50: #8da7ed;--sapphire-40: #9fb7f4;--sapphire-30: #b9caf4;--sapphire-20: #cfdaf7;--sapphire-10: #e5ebfb;--citrine-100: #ff7900;--citrine-90: #ff861a;--citrine-80: #ff9433;--citrine-70: #ffa14d;--citrine-60: #ffaf66;--citrine-50: #ffbc80;--citrine-40: #ffc999;--citrine-30: #ffd7b2;--citrine-20: #ffe4cc;--citrine-10: #fff2e5;--magenta-100: #bc2251;--magenta-90: #d8275d;--magenta-80: #dc3d6d;--magenta-70: #e15781;--magenta-60: #e46c91;--magenta-50: #e986a4;--magenta-40: #ed9cb4;--magenta-30: #f2b6c8;--magenta-20: #f6cbd8;--magenta-10: #fae5ec;--black-100: #000;--black-95: #0d0d0d;--black-90: #1a1a1a;--black-85: #262626;--black-80: #333;--black-75: #404040;--black-70: #4d4d4d;--black-65: #595959;--black-60: #666;--black-55: #737373;--black-50: #808080;--black-45: #8c8c8c;--black-40: #999;--black-35: #a6a6a6;--black-30: #b3b3b3;--black-25: #bfbfbf;--black-20: #ccc;--black-15: #d9d9d9;--black-10: #e6e6e6;--black-5: #f2f2f2;--white: #fff;--dark-blue: #0a38af;--blue-40: #a7bbef;--blue-20: #d3ddf7;--green: #1b770c;--red-tag: #f01406;--success-normal: #23b413;--success-bg-hover: #d5fbe2;--success-bg-active: #ebfdf1;--alarm-normal: #fdc023;--alarm-bg-hover: #fff0c7;--alarm-bg-active: #fff6de;--error-normal: #e64646;--error-bg-hover: #fadbdb;--error-bg-active: #fbe3e3;--disabled: #b3b3b3;--disabled-color: #b2b2b2;--light-text: var(--white);--dark-text: var(--black-100);--sapphire-normal: var(--sapphire-100);--sapphire-hover: #1b41a3;--sapphire-active: #122c70;--citrine-normal: var(--citrine-100);--citrine-hover: #e56d00;--citrine-active: #cc6100;--asphalt-border: var(--black-30);--asphalt-normal: var(--black-80);--asphalt-hover: var(--black-90);--asphalt-active: var(--black-100);--gray-normal: var(--black-5);--gray-hover: var(--black-10);--gray-active: var(--black-80);--white-normal: var(--white);--white-hover: var(--black-5);--white-transparent: rgba(255, 255, 255, .4);--white-active: var(--black-80);--red-normal: var(--error-normal);--red-hover: #e33030;--red-active: #dc1e1e;--green-normal: var(--green);--green-hover: #16610a;--green-active: #114a08;--counter-text: #ffa066;--button-height-ms: 16px;--button-height-xs: 24px;--button-height-s: 32px;--button-height-m: 40px;--button-height-l: 48px;--button-height-xl: 56px;--button-height-xxl: 64px;--select-search-height-l: 48px;--select-search-height-xxl: 64px;--select-search-options-height-desktop: 320px;--select-search-options-height-mobile: 264px;--control-default: var(--sapphire-20);--control-hover: var(--sapphire-40);--control-selected: var(--sapphire-100);--control-disabled: var(--black-10);--font-inter: "Inter", sans-serif;--font-montserrat: "Montserrat", sans-serif;--font-weight-text-regular: 400;--font-weight-text-medium: 500;--font-weight-text-semibold: 600;--font-weight-text-bold: 700;--font-weight-text-extrabold: 800;--font-weight-text-black: 900;--size-text-xs2: 8px;--size-text-xs: 10px;--size-text-s: 12px;--size-text-m: 14px;--size-text-l: 16px;--size-text-l2: 18px;--size-text-xl: 20px;--size-text-xl2: 24px;--size-text-3xl: 26px;--size-text-2xl: 28px;--size-text-xl3: 32px;--size-text-xl4: 48px;--size-text-4xl: 52px;--size-text-5xl: 56px;--size-text-xl5: 72px;--size-text-xl6: 96px;--line-height-text-2xs: 1em;--line-height-text-xxs: 1.125em;--line-height-text-xs: 1.1em;--line-height-text-s: 1.2em;--line-height-text-s1: 1.25em;--line-height-text-m: 1.3em;--line-height-text-m1: 1.35em;--line-height-text-l: 1.4em;--line-height-text-l1: 1.45em;--line-height-text-xl: 1.5em;--line-height-text-xl1: 1.5em;--control-radius-xs: 4px;--control-radius: 6px;--control-radius-s: 8px;--control-radius-m-s: 16px;--control-radius-m: 20px;--control-radius-l: 24px;--control-radius-xl: 32px;--control-radius-xxl: 40px;--control-input-radius: 12px;--control-border-width: 1px;--control-height-xl: 60px;--control-height-xxl: 60px;--control-height-l: var(--space-4xl);--control-height-m: var(--space-3xl);--control-height-s: var(--space-2xl);--control-height-xs: var(--space-xl);--control-box-size-s: var(--space-s);--control-box-size-m: var(--space-m);--control-box-size-l: var(--space-l);--control-space-xxl: var(--space-xl);--control-space-l: var(--space-xl);--control-space-m: var(--space-l);--control-space-s: var(--space-m);--control-space-xs: var(--space-s);--control-text-size-2xl: var(--size-text-xl);--control-text-size-xl: var(--size-text-xl3);--control-text-size-l: var(--size-text-l);--control-text-size-m: var(--size-text-m);--control-text-size-s: var(--size-text-s);--control-text-size-xs: var(--size-text-xs);--space-3xs: 2px;--space-2xs: 4px;--space-1xs: 6px;--space-xs: 8px;--space-xss: 10px;--space-s: 12px;--space-2s: 14px;--space-m: 16px;--space-2m: 18px;--space-l: 20px;--space-2l: 22px;--space-xl: 24px;--space-1xl: 28px;--space-2xl: 32px;--space-2xxl: 36px;--space-xxl: 40px;--space-3xl: 44px;--space-4xl: 48px;--space-5xl: 56px;--space-4xxl: 64px;--space-5xxl: 72px;--space-6xl: 96px;--box-shadow-active: 0 0 2px var(--sapphire-normal);--box-shadow-focus: 0px 0px 10px 2px #1389cc;--box-shadow-select-search: 0 3px 15px 0 rgba(31, 32, 35, .15);--select-search-input-top-l: -15%;--select-search-input-top-xxl: -35%;--container-width-xs: 375px;--container-width-s: 767px;--container-width-m: 960px;--container-width-l: 1280px;--container-width-xl: 1440px;--container-width-xxl: 1920px;--zindex-fixed: 1030;--sidebar-width-collapsed: 64px;--sidebar-width-expanded: 256px;--header-height: 64px;--sidebar-form-width-tablet: 369px;--sidebar-form-width-mobile: 309px;--tab-trail-height-m: 58px;--tab-trail-height-s: 36px;--accordion-icon-circle-size-m: 48px;--accordion-icon-circle-size-s: 36px;--accordion-icon-square-size-m: 40px;--accordion-icon-square-size-s: 32px}@supports (font-variation-settings: normal){:root{font-family:Inter,sans-serif}}:root{font-feature-settings:"zero";font-variant-numeric:slashed-zero}body{font-family:Inter,sans-serif;font-feature-settings:"zero";font-variant-numeric:slashed-zero;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
|
package/dist/assets/styles.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._input_fbbrm_2{padding-right:var(--space-3xl)}._input-wrapper_fbbrm_6{flex:1}._date-wrapper_fbbrm_10{position:relative;width:100%}._date-wrapper_fbbrm_10 ._inputBorderControl_fbbrm_14{border:transparent}._date-wrapper_fbbrm_10:hover ._input-wrapper_fbbrm_6{background-color:var(--input-bg-color-hover)}._date-wrapper_fbbrm_10:before{position:absolute;top:0;right:60px;bottom:0;left:0;z-index:3;cursor:pointer;content:""}[data-disabled=true] ._date-wrapper_fbbrm_10:before{cursor:auto}[data-disabled=true] ._date-wrapper_fbbrm_10 ._input-wrapper_fbbrm_6{background:var(--black-20)}[data-disabled=true] ._date-wrapper_fbbrm_10 ._input-wrapper_fbbrm_6 label,[data-disabled=true] ._date-wrapper_fbbrm_10 ._input-wrapper_fbbrm_6 input{color:var(--white)}[data-disabled=true] ._button-wrapper_fbbrm_38 svg{color:var(--white);cursor:default;fill:var(--white)}._wrapper_fbbrm_44{position:relative;display:flex;align-items:center;border-radius:var(--control-radius-s)}._wrapper_fbbrm_44._active_fbbrm_50{border-bottom:1px solid var(--citrine-100)}._button-wrapper_fbbrm_38{position:absolute;top:0;right:0;z-index:2;display:flex;justify-content:center;width:44px;height:100%;max-height:var(--button-height-xxl)}._button_fbbrm_38{align-self:center;background-color:transparent;border-radius:var(--control-radius-s)}._field-overlow_fbbrm_72{position:fixed;top:0;right:0;bottom:0;left:0;z-index:3}._calendar-block_fbbrm_78{position:absolute;z-index:3;display:flex;flex-direction:column;width:368px;max-height:none;padding:16px;font-weight:var(--font-weight-text-regular);font-size:var(--size-text-l);font-family:var(--font-inter);font-style:normal;line-height:var(--line-height-text-2xs);text-align:center;text-overflow:ellipsis;background:var(--white);border-radius:var(--control-radius-s);box-shadow:0 0 #16172705,0 2px 4px #16172705,0 6px 6px #16172705,0 15px 9px #16172703;opacity:0;transition:height .5s ease-in;font-feature-settings:"zero";font-variant-numeric:slashed-zero}._calendar-block_fbbrm_78 ._h_fbbrm_101{display:flex;width:100%;color:var(--black-100)}._calendar-block_fbbrm_78 ._b_fbbrm_38{display:grid;grid-template-columns:repeat(7,1fr)}._calendar-block_fbbrm_78 ._d_fbbrm_10{display:flex;flex:1;gap:4px;align-items:center;justify-content:center;color:var(--black-100);cursor:pointer}._calendar-block_fbbrm_78 ._m_fbbrm_122,._calendar-block_fbbrm_78 ._a_fbbrm_50,._calendar-block_fbbrm_78 ._prev_fbbrm_124{width:auto;height:48px;overflow:hidden}._calendar-block_fbbrm_78 ._m_fbbrm_122{display:flex;align-items:center;justify-content:center;color:var(--disabled)}._calendar-block_fbbrm_78 ._m_fbbrm_122 b{font-weight:var(--font-weight-text-regular)}._calendar-block_fbbrm_78 ._orange_fbbrm_140{color:var(--citrine-100)}._calendar-block_fbbrm_78 ._a_fbbrm_50{color:var(--black-100);border-radius:var(--control-radius-s)}._calendar-block_fbbrm_78 ._a_fbbrm_50 b{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-weight:var(--font-weight-text-regular);cursor:pointer}._calendar-block_fbbrm_78 ._a_fbbrm_50 b:hover{background:var(--black-10)}._calendar-block_fbbrm_78 ._a_fbbrm_50 b:active{color:var(--white);background:var(--sapphire-100)}._calendar-block_fbbrm_78 ._current_fbbrm_165{background:var(--sapphire-10);border-radius:var(--control-radius-s)}._calendar-block_fbbrm_78 ._monthGrid_fbbrm_170{display:grid;grid-template-columns:repeat(3,1fr)}
|
@@ -119,32 +119,32 @@ function Re(e2, n) {
|
|
119
119
|
return React__default.createElement(s$1, null, React__default.createElement(H.Provider, { value: t2.panelId }, H$1({ mergeRefs: f, ourProps: g, theirProps: d, slot: D2, defaultTag: Se, features: be, visible: p, name: "Disclosure.Panel" })));
|
120
120
|
}
|
121
121
|
let Ae = W(me), Ce = W(ge), Ie = W(Re), We = Object.assign(Ae, { Button: Ce, Panel: Ie });
|
122
|
-
const accordion = "
|
123
|
-
const header = "
|
124
|
-
const title = "
|
125
|
-
const icon = "
|
126
|
-
const circle = "
|
127
|
-
const square = "
|
128
|
-
const panel = "
|
129
|
-
const open = "
|
130
|
-
const m = "
|
131
|
-
const s = "
|
122
|
+
const accordion = "_accordion_2if29_2";
|
123
|
+
const header = "_header_2if29_13";
|
124
|
+
const title = "_title_2if29_26";
|
125
|
+
const icon = "_icon_2if29_33";
|
126
|
+
const circle = "_circle_2if29_43";
|
127
|
+
const square = "_square_2if29_50";
|
128
|
+
const panel = "_panel_2if29_60";
|
129
|
+
const open = "_open_2if29_67";
|
130
|
+
const m = "_m_2if29_87";
|
131
|
+
const s = "_s_2if29_50";
|
132
132
|
const cls = {
|
133
133
|
accordion,
|
134
|
-
"is-link": "_is-
|
134
|
+
"is-link": "_is-link_2if29_9",
|
135
135
|
header,
|
136
136
|
title,
|
137
|
-
"title-uppercase": "_title-
|
137
|
+
"title-uppercase": "_title-uppercase_2if29_29",
|
138
138
|
icon,
|
139
|
-
"icon-container": "_icon-
|
139
|
+
"icon-container": "_icon-container_2if29_36",
|
140
140
|
circle,
|
141
141
|
square,
|
142
142
|
panel,
|
143
143
|
open,
|
144
|
-
"link-open": "_link-
|
144
|
+
"link-open": "_link-open_2if29_83",
|
145
145
|
m,
|
146
146
|
s,
|
147
|
-
"wrapper-button": "_wrapper-
|
147
|
+
"wrapper-button": "_wrapper-button_2if29_107"
|
148
148
|
};
|
149
149
|
const Accordion = forwardRef(
|
150
150
|
({
|
@@ -219,15 +219,7 @@ const Accordion = forwardRef(
|
|
219
219
|
cls[buttonStyle],
|
220
220
|
classNameIconButton
|
221
221
|
),
|
222
|
-
|
223
|
-
children: /* @__PURE__ */ jsx(
|
224
|
-
Icon,
|
225
|
-
{
|
226
|
-
iconName: getIconName(),
|
227
|
-
className: cls.icon,
|
228
|
-
"data-testid": "accordion-icon"
|
229
|
-
}
|
230
|
-
)
|
222
|
+
children: /* @__PURE__ */ jsx(Icon, { iconName: getIconName(), className: cls.icon })
|
231
223
|
}
|
232
224
|
)
|
233
225
|
] });
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
2
|
import { c as classNames } from "../../../index-CweZ_OcN.js";
|
3
|
-
import '../../../assets/AccordionItem.css';const item = "
|
4
|
-
const m = "
|
5
|
-
const s = "
|
3
|
+
import '../../../assets/AccordionItem.css';const item = "_item_fo923_2";
|
4
|
+
const m = "_m_fo923_10";
|
5
|
+
const s = "_s_fo923_15";
|
6
6
|
const cls = {
|
7
7
|
item,
|
8
8
|
m,
|
@@ -3,15 +3,15 @@ import { c as classNames } from "../../index-CweZ_OcN.js";
|
|
3
3
|
import { forwardRef } from "react";
|
4
4
|
import { ELinkSize, ELinkVariant } from "./constants.js";
|
5
5
|
import { Icon } from "../../icons/Icon.js";
|
6
|
-
import '../../assets/Link.css';const link = "
|
7
|
-
const sample = "
|
8
|
-
const anchor = "
|
9
|
-
const disabled = "
|
10
|
-
const icon = "
|
11
|
-
const xs = "
|
12
|
-
const s = "
|
13
|
-
const m = "
|
14
|
-
const l = "
|
6
|
+
import '../../assets/Link.css';const link = "_link_q5qzz_2";
|
7
|
+
const sample = "_sample_q5qzz_20";
|
8
|
+
const anchor = "_anchor_q5qzz_24";
|
9
|
+
const disabled = "_disabled_q5qzz_28";
|
10
|
+
const icon = "_icon_q5qzz_38";
|
11
|
+
const xs = "_xs_q5qzz_47";
|
12
|
+
const s = "_s_q5qzz_20";
|
13
|
+
const m = "_m_q5qzz_59";
|
14
|
+
const l = "_l_q5qzz_2";
|
15
15
|
const cls = {
|
16
16
|
link,
|
17
17
|
sample,
|
@@ -3,45 +3,45 @@ import { c as classNames } from "../../index-CweZ_OcN.js";
|
|
3
3
|
import { forwardRef } from "react";
|
4
4
|
import { EButtonVariantDefault, EButtonForm } from "./constants.js";
|
5
5
|
import { Icon } from "../../icons/Icon.js";
|
6
|
-
import '../../assets/Button.css';const button = "
|
7
|
-
const clear = "
|
8
|
-
const black = "
|
9
|
-
const gray = "
|
10
|
-
const white = "
|
11
|
-
const xs = "
|
12
|
-
const s = "
|
13
|
-
const m = "
|
14
|
-
const l = "
|
15
|
-
const xl = "
|
16
|
-
const xxl = "
|
17
|
-
const full = "
|
18
|
-
const disabled = "
|
6
|
+
import '../../assets/Button.css';const button = "_button_1qrs0_2";
|
7
|
+
const clear = "_clear_1qrs0_42";
|
8
|
+
const black = "_black_1qrs0_120";
|
9
|
+
const gray = "_gray_1qrs0_129";
|
10
|
+
const white = "_white_1qrs0_138";
|
11
|
+
const xs = "_xs_1qrs0_236";
|
12
|
+
const s = "_s_1qrs0_72";
|
13
|
+
const m = "_m_1qrs0_244";
|
14
|
+
const l = "_l_1qrs0_268";
|
15
|
+
const xl = "_xl_1qrs0_276";
|
16
|
+
const xxl = "_xxl_1qrs0_285";
|
17
|
+
const full = "_full_1qrs0_294";
|
18
|
+
const disabled = "_disabled_1qrs0_300";
|
19
19
|
const cls = {
|
20
20
|
button,
|
21
21
|
clear,
|
22
|
-
"default-button": "_default-
|
23
|
-
"primary-sapphire": "_primary-
|
24
|
-
"primary-citrine": "_primary-
|
25
|
-
"secondary-asphalt": "_secondary-
|
26
|
-
"secondary-gray": "_secondary-
|
27
|
-
"secondary-white": "_secondary-
|
28
|
-
"secondary-red": "_secondary-
|
29
|
-
"round-button": "_round-
|
22
|
+
"default-button": "_default-button_1qrs0_54",
|
23
|
+
"primary-sapphire": "_primary-sapphire_1qrs0_54",
|
24
|
+
"primary-citrine": "_primary-citrine_1qrs0_63",
|
25
|
+
"secondary-asphalt": "_secondary-asphalt_1qrs0_72",
|
26
|
+
"secondary-gray": "_secondary-gray_1qrs0_81",
|
27
|
+
"secondary-white": "_secondary-white_1qrs0_90",
|
28
|
+
"secondary-red": "_secondary-red_1qrs0_99",
|
29
|
+
"round-button": "_round-button_1qrs0_109",
|
30
30
|
black,
|
31
31
|
gray,
|
32
32
|
white,
|
33
|
-
"outline-button": "_outline-
|
34
|
-
"outline-asphalt": "_outline-
|
35
|
-
"outline-gray": "_outline-
|
36
|
-
"outline-white": "_outline-
|
37
|
-
"outline-red": "_outline-
|
38
|
-
"borderless-button": "_borderless-
|
39
|
-
"borderless-asphalt": "_borderless-
|
40
|
-
"borderless-gray": "_borderless-
|
41
|
-
"borderless-white": "_borderless-
|
42
|
-
"borderless-red": "_borderless-
|
33
|
+
"outline-button": "_outline-button_1qrs0_148",
|
34
|
+
"outline-asphalt": "_outline-asphalt_1qrs0_155",
|
35
|
+
"outline-gray": "_outline-gray_1qrs0_163",
|
36
|
+
"outline-white": "_outline-white_1qrs0_172",
|
37
|
+
"outline-red": "_outline-red_1qrs0_181",
|
38
|
+
"borderless-button": "_borderless-button_1qrs0_191",
|
39
|
+
"borderless-asphalt": "_borderless-asphalt_1qrs0_197",
|
40
|
+
"borderless-gray": "_borderless-gray_1qrs0_202",
|
41
|
+
"borderless-white": "_borderless-white_1qrs0_207",
|
42
|
+
"borderless-red": "_borderless-red_1qrs0_212",
|
43
43
|
xs,
|
44
|
-
"m-s": "_m-
|
44
|
+
"m-s": "_m-s_1qrs0_244",
|
45
45
|
s,
|
46
46
|
m,
|
47
47
|
l,
|
@@ -49,7 +49,7 @@ const cls = {
|
|
49
49
|
xxl,
|
50
50
|
full,
|
51
51
|
disabled,
|
52
|
-
"icon-button": "_icon-
|
52
|
+
"icon-button": "_icon-button_1qrs0_320"
|
53
53
|
};
|
54
54
|
const Button = forwardRef(
|
55
55
|
(props, ref) => {
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -1,33 +1,38 @@
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
2
|
-
import { W, p, o, $ as $f7dceffc5ad7768b$export$4e328f61c538687f, b as $6179b936705e76d3$export$ae780daf29e6d456, D, H, c as o$1 } from "../../keyboard-B256ZoM-.js";
|
2
|
+
import { W, p, o, $ as $f7dceffc5ad7768b$export$4e328f61c538687f, b as $6179b936705e76d3$export$ae780daf29e6d456, D, H as H$1, c as o$1 } from "../../keyboard-B256ZoM-.js";
|
3
3
|
import React__default, { useId, useState, useMemo, useCallback, forwardRef, useEffect } from "react";
|
4
4
|
import { w } from "../../use-active-press-B6yeSopF.js";
|
5
|
-
import { u, a,
|
5
|
+
import { u, a, l, T, I, G, j, p as p$1, z, U, b as l$1, f, W as W$1, K } from "../../label-BTEGh6O_.js";
|
6
6
|
import { r } from "../../bugs-CSBdWk0R.js";
|
7
|
-
import { H as H$1 } from "../../field-bS4z9Sdl.js";
|
8
7
|
import { c as classNames } from "../../index-CweZ_OcN.js";
|
9
8
|
import { Icon } from "../../icons/Icon.js";
|
10
9
|
import '../../assets/CheckboxMimir.css';let se = "span";
|
11
10
|
function ie(T$1, h) {
|
12
|
-
let C = useId(), k = u(), x = a(), { id: g = k || `headlessui-checkbox-${C}`, disabled: e = x || false, autoFocus: s = false, checked: E, defaultChecked: v, onChange: P, name: d, value: D$1, form: R, indeterminate: n = false, ...
|
11
|
+
let C = useId(), k = u(), x = a(), { id: g = k || `headlessui-checkbox-${C}`, disabled: e = x || false, autoFocus: s = false, checked: E, defaultChecked: v, onChange: P, name: d, value: D$1, form: R, indeterminate: n = false, ...A2 } = T$1, r$1 = l(v), [a$1, t] = T(E, P, r$1 != null ? r$1 : false), F = I(), K2 = G(), _ = p(), [p$2, c] = useState(false), u$1 = o(() => {
|
13
12
|
c(true), t == null || t(!a$1), _.nextFrame(() => {
|
14
13
|
c(false);
|
15
14
|
});
|
16
|
-
}),
|
15
|
+
}), H2 = o((o2) => {
|
17
16
|
if (r(o2.currentTarget)) return o2.preventDefault();
|
18
17
|
o2.preventDefault(), u$1();
|
19
18
|
}), B = o((o2) => {
|
20
19
|
o2.key === o$1.Space ? (o2.preventDefault(), u$1()) : o2.key === o$1.Enter && p$1(o2.currentTarget);
|
21
|
-
}),
|
20
|
+
}), L2 = o((o2) => o2.preventDefault()), { isFocusVisible: m, focusProps: I$1 } = $f7dceffc5ad7768b$export$4e328f61c538687f({ autoFocus: s }), { isHovered: f2, hoverProps: M } = $6179b936705e76d3$export$ae780daf29e6d456({ isDisabled: e }), { pressed: b, pressProps: U2 } = w({ disabled: e }), O = D({ ref: h, id: g, role: "checkbox", "aria-checked": n ? "mixed" : a$1 ? "true" : "false", "aria-labelledby": F, "aria-describedby": K2, "aria-disabled": e ? true : void 0, indeterminate: n ? "true" : void 0, tabIndex: e ? void 0 : 0, onKeyUp: e ? void 0 : B, onKeyPress: e ? void 0 : L2, onClick: e ? void 0 : H2 }, I$1, M, U2), X = useMemo(() => ({ checked: a$1, disabled: e, hover: f2, focus: m, active: b, indeterminate: n, changing: p$2, autofocus: s }), [a$1, n, e, f2, m, b, p$2, s]), G$1 = useCallback(() => {
|
22
21
|
if (r$1 !== void 0) return t == null ? void 0 : t(r$1);
|
23
22
|
}, [t, r$1]);
|
24
|
-
return React__default.createElement(React__default.Fragment, null, d != null && React__default.createElement(j, { disabled: e, data: { [d]: D$1 || "on" }, overrides: { type: "checkbox", checked: a$1 }, form: R, onReset: G$1 }), H({ ourProps: O, theirProps:
|
23
|
+
return React__default.createElement(React__default.Fragment, null, d != null && React__default.createElement(j, { disabled: e, data: { [d]: D$1 || "on" }, overrides: { type: "checkbox", checked: a$1 }, form: R, onReset: G$1 }), H$1({ ourProps: O, theirProps: A2, slot: X, defaultTag: se, name: "Checkbox" }));
|
25
24
|
}
|
26
25
|
let Re = W(ie);
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
26
|
+
let A = "div";
|
27
|
+
function L(d, l2) {
|
28
|
+
let t = `headlessui-control-${useId()}`, [s, p2] = z(), [n, a$1] = U(), m = a(), { disabled: e = m || false, ...o2 } = d, i = useMemo(() => ({ disabled: e }), [e]);
|
29
|
+
return React__default.createElement(l$1, { value: e }, React__default.createElement(p2, { value: s }, React__default.createElement(a$1, { value: n }, React__default.createElement(f, { id: t }, H$1({ ourProps: { ref: l2, disabled: e || void 0, "aria-disabled": e || void 0 }, theirProps: { ...o2, children: React__default.createElement(W$1, null, typeof o2.children == "function" ? o2.children(i) : o2.children) }, slot: i, defaultTag: A, name: "Field" })))));
|
30
|
+
}
|
31
|
+
let H = W(L);
|
32
|
+
const container = "_container_ktju1_2";
|
33
|
+
const checkbox = "_checkbox_ktju1_8";
|
34
|
+
const label = "_label_ktju1_27";
|
35
|
+
const enabled = "_enabled_ktju1_31";
|
31
36
|
const cls = {
|
32
37
|
container,
|
33
38
|
checkbox,
|
@@ -37,17 +42,15 @@ const cls = {
|
|
37
42
|
const CheckboxMimir = forwardRef(
|
38
43
|
(props, ref) => {
|
39
44
|
const { checked, onChange, children, id, ...restProps } = props;
|
40
|
-
const [enabled2, setEnabled] = useState(checked
|
45
|
+
const [enabled2, setEnabled] = useState(checked);
|
41
46
|
const handleChange = (value) => {
|
42
47
|
setEnabled(value);
|
43
48
|
onChange == null ? void 0 : onChange(value);
|
44
49
|
};
|
45
50
|
useEffect(() => {
|
46
|
-
|
47
|
-
setEnabled(checked);
|
48
|
-
}
|
51
|
+
setEnabled(!!checked);
|
49
52
|
}, [checked]);
|
50
|
-
return /* @__PURE__ */ jsxs(H
|
53
|
+
return /* @__PURE__ */ jsxs(H, { className: cls.container, children: [
|
51
54
|
/* @__PURE__ */ jsx(
|
52
55
|
Re,
|
53
56
|
{
|
@@ -2,20 +2,20 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c as classNames } from "../../index-CweZ_OcN.js";
|
3
3
|
import { EChipSize, EChipVariant } from "./constants.js";
|
4
4
|
import { Icon } from "../../icons/Icon.js";
|
5
|
-
import '../../assets/Chip.css';const chip = "
|
6
|
-
const disabled = "
|
7
|
-
const xs = "
|
8
|
-
const s = "
|
9
|
-
const m = "
|
10
|
-
const sapphire = "
|
11
|
-
const citrine = "
|
12
|
-
const asphalt = "
|
13
|
-
const gray = "
|
14
|
-
const white = "
|
15
|
-
const green = "
|
5
|
+
import '../../assets/Chip.css';const chip = "_chip_1ckvf_2";
|
6
|
+
const disabled = "_disabled_1ckvf_40";
|
7
|
+
const xs = "_xs_1ckvf_51";
|
8
|
+
const s = "_s_1ckvf_59";
|
9
|
+
const m = "_m_1ckvf_67";
|
10
|
+
const sapphire = "_sapphire_1ckvf_75";
|
11
|
+
const citrine = "_citrine_1ckvf_84";
|
12
|
+
const asphalt = "_asphalt_1ckvf_93";
|
13
|
+
const gray = "_gray_1ckvf_102";
|
14
|
+
const white = "_white_1ckvf_111";
|
15
|
+
const green = "_green_1ckvf_120";
|
16
16
|
const cls = {
|
17
17
|
chip,
|
18
|
-
"with-action": "_with-
|
18
|
+
"with-action": "_with-action_1ckvf_18",
|
19
19
|
disabled,
|
20
20
|
xs,
|
21
21
|
s,
|
@@ -2,44 +2,35 @@ import { TInputProps } from '../Input';
|
|
2
2
|
|
3
3
|
export type DatePicker = {
|
4
4
|
/**
|
5
|
-
*
|
5
|
+
* функция=callback, которая вызывается при изменении значения и передает имя и новое значение для обновления стейта (data),
|
6
6
|
*/
|
7
7
|
onChangeValue?: (e: TDatePickerValue) => void;
|
8
8
|
/**
|
9
|
-
*
|
9
|
+
* функция=callback, которая вызывается при изменении значения и передает имя и новое значение для обновления стейта ошибки,
|
10
10
|
*/
|
11
11
|
onError?: (e: TDatePickerOnError) => void;
|
12
|
-
/**
|
13
|
-
* Функция обратного вызова при потере фокуса компонентом
|
12
|
+
/** функция=callback, передает новое значение даты,
|
14
13
|
*/
|
15
14
|
onBlur?: (e: Date) => void;
|
16
15
|
/**
|
17
|
-
|
18
|
-
|
16
|
+
* функция ограничения выбора даты
|
17
|
+
(до какой даты выбор не доступен)
|
18
|
+
*/
|
19
19
|
before?: Date | string;
|
20
20
|
/**
|
21
|
-
*
|
21
|
+
* значение из стейта (data)
|
22
22
|
*/
|
23
23
|
value?: string;
|
24
24
|
/**
|
25
|
-
*
|
25
|
+
* значение типа модально окна календаря
|
26
26
|
*/
|
27
27
|
type?: 'days' | 'months' | 'years';
|
28
|
-
/**
|
29
|
-
* Флаг отключения компонента
|
30
|
-
*/
|
31
28
|
disabled?: boolean;
|
32
|
-
/**
|
33
|
-
* Флаг наличия ошибки
|
34
|
-
*/
|
35
29
|
error?: boolean;
|
36
30
|
/**
|
37
|
-
*
|
31
|
+
* необязательное значение для немедленной валидации
|
38
32
|
*/
|
39
33
|
validateImmediately?: boolean;
|
40
|
-
/**
|
41
|
-
* Флаг разрешения ручного ввода даты
|
42
|
-
*/
|
43
34
|
editable?: boolean;
|
44
35
|
} & TInputProps;
|
45
36
|
export type TDatePickerValue = {
|
@@ -52,43 +43,34 @@ export type TDatePickerOnError = {
|
|
52
43
|
};
|
53
44
|
export declare const DatePicker: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<{
|
54
45
|
/**
|
55
|
-
*
|
46
|
+
* функция=callback, которая вызывается при изменении значения и передает имя и новое значение для обновления стейта (data),
|
56
47
|
*/
|
57
48
|
onChangeValue?: (e: TDatePickerValue) => void;
|
58
49
|
/**
|
59
|
-
*
|
50
|
+
* функция=callback, которая вызывается при изменении значения и передает имя и новое значение для обновления стейта ошибки,
|
60
51
|
*/
|
61
52
|
onError?: (e: TDatePickerOnError) => void;
|
62
|
-
/**
|
63
|
-
* Функция обратного вызова при потере фокуса компонентом
|
53
|
+
/** функция=callback, передает новое значение даты,
|
64
54
|
*/
|
65
55
|
onBlur?: (e: Date) => void;
|
66
56
|
/**
|
67
|
-
|
68
|
-
|
57
|
+
* функция ограничения выбора даты
|
58
|
+
(до какой даты выбор не доступен)
|
59
|
+
*/
|
69
60
|
before?: Date | string;
|
70
61
|
/**
|
71
|
-
*
|
62
|
+
* значение из стейта (data)
|
72
63
|
*/
|
73
64
|
value?: string;
|
74
65
|
/**
|
75
|
-
*
|
66
|
+
* значение типа модально окна календаря
|
76
67
|
*/
|
77
68
|
type?: "days" | "months" | "years";
|
78
|
-
/**
|
79
|
-
* Флаг отключения компонента
|
80
|
-
*/
|
81
69
|
disabled?: boolean;
|
82
|
-
/**
|
83
|
-
* Флаг наличия ошибки
|
84
|
-
*/
|
85
70
|
error?: boolean;
|
86
71
|
/**
|
87
|
-
*
|
72
|
+
* необязательное значение для немедленной валидации
|
88
73
|
*/
|
89
74
|
validateImmediately?: boolean;
|
90
|
-
/**
|
91
|
-
* Флаг разрешения ручного ввода даты
|
92
|
-
*/
|
93
75
|
editable?: boolean;
|
94
76
|
} & import('../Input/types').TInputProps & import('../Input').TAdditionalProps & import('react').RefAttributes<HTMLInputElement>>>;
|
@@ -3,16 +3,12 @@ import { c as classNames } from "../../index-CweZ_OcN.js";
|
|
3
3
|
import { memo, forwardRef, useState, useEffect } from "react";
|
4
4
|
import { DatePickerModal } from "./DatePickerModal.js";
|
5
5
|
import { MonthPickerModal } from "./MonthPickerModal.js";
|
6
|
-
import { c as cls } from "../../styles.module-
|
7
|
-
import { formatDatePart } from "./utils.js";
|
6
|
+
import { c as cls } from "../../styles.module-Ugsf0AOb.js";
|
8
7
|
import { YearPickerModal } from "./YearPickerModal.js";
|
9
8
|
import { useClickOutside } from "../../hooks/useClickOutside/useClickOutside.js";
|
10
9
|
import { formating } from "../../utils/index.js";
|
11
|
-
import { I as Input } from "../../Input-
|
12
|
-
import {
|
13
|
-
const MAX_DAY = 31;
|
14
|
-
const MAX_MONTH = 12;
|
15
|
-
const DATE_LENGTH = 10;
|
10
|
+
import { I as Input } from "../../Input-ChCIy5oY.js";
|
11
|
+
import { EInputVariant } from "../Input/constants.js";
|
16
12
|
const DatePicker = memo(
|
17
13
|
forwardRef(
|
18
14
|
({
|
@@ -28,7 +24,6 @@ const DatePicker = memo(
|
|
28
24
|
validateImmediately,
|
29
25
|
variant,
|
30
26
|
disabled = false,
|
31
|
-
editable = false,
|
32
27
|
...props
|
33
28
|
}, ref) => {
|
34
29
|
const [isActive, setActive] = useState(false);
|
@@ -37,7 +32,6 @@ const DatePicker = memo(
|
|
37
32
|
value && !isNaN(new Date(value).getTime()) ? new Date(value) : void 0
|
38
33
|
);
|
39
34
|
const [isError, setError] = useState(error);
|
40
|
-
const [inputValue, setInputValue] = useState("");
|
41
35
|
useEffect(() => {
|
42
36
|
setError(error);
|
43
37
|
}, [error]);
|
@@ -46,13 +40,6 @@ const DatePicker = memo(
|
|
46
40
|
value && !isNaN(new Date(value).getTime()) ? new Date(value) : void 0
|
47
41
|
);
|
48
42
|
}, [value]);
|
49
|
-
useEffect(() => {
|
50
|
-
if (date && !(typeof date === "string") && !isNaN(date == null ? void 0 : date.getTime())) {
|
51
|
-
setInputValue(formating.Date(date, "dd/mm/yyyy"));
|
52
|
-
} else {
|
53
|
-
setInputValue("");
|
54
|
-
}
|
55
|
-
}, [date]);
|
56
43
|
const milliseconds = value && new Date(value).getTime;
|
57
44
|
useEffect(() => {
|
58
45
|
if (validateImmediately) {
|
@@ -101,28 +88,6 @@ const DatePicker = memo(
|
|
101
88
|
onChangeValue == null ? void 0 : onChangeValue({ value: sendDate, name });
|
102
89
|
onBlur == null ? void 0 : onBlur(sendDate);
|
103
90
|
};
|
104
|
-
const handleInputChange = (e) => {
|
105
|
-
if (editable) {
|
106
|
-
const newValue = e.target.value.replace(/[^\d]/g, "");
|
107
|
-
const [day, month, year] = [
|
108
|
-
formatDatePart(newValue.substring(0, 2), MAX_DAY),
|
109
|
-
formatDatePart(newValue.substring(2, 4), MAX_MONTH),
|
110
|
-
newValue.substring(4, 8)
|
111
|
-
];
|
112
|
-
const formattedValue = [day, month, year].filter(Boolean).join("/");
|
113
|
-
setInputValue(formattedValue);
|
114
|
-
if (formattedValue.length === DATE_LENGTH) {
|
115
|
-
const fullYear = parseInt(year);
|
116
|
-
const newDate = /* @__PURE__ */ new Date(
|
117
|
-
`${fullYear}-${month.padStart(2, "0")}-${day.padStart(2, "0")}`
|
118
|
-
);
|
119
|
-
if (!isNaN(newDate.getTime())) {
|
120
|
-
setDate(newDate);
|
121
|
-
onChangeValue == null ? void 0 : onChangeValue({ value: newDate, name });
|
122
|
-
}
|
123
|
-
}
|
124
|
-
}
|
125
|
-
};
|
126
91
|
const wrapperClassNames = classNames(cls.wrapper, isActive && cls.active);
|
127
92
|
const InputClassNames = classNames(cls.input, cls.inputBorderControl);
|
128
93
|
return /* @__PURE__ */ jsxs("div", { className: wrapperClassNames, "data-disabled": disabled, children: [
|
@@ -130,9 +95,7 @@ const DatePicker = memo(
|
|
130
95
|
"div",
|
131
96
|
{
|
132
97
|
"data-error": isError,
|
133
|
-
className:
|
134
|
-
[cls.editable]: editable
|
135
|
-
}),
|
98
|
+
className: cls["date-wrapper"],
|
136
99
|
onClick: onOpen,
|
137
100
|
children: /* @__PURE__ */ jsx(
|
138
101
|
Input,
|
@@ -142,15 +105,12 @@ const DatePicker = memo(
|
|
142
105
|
wrapperClassName: cls["input-wrapper"],
|
143
106
|
size,
|
144
107
|
type: "text",
|
145
|
-
variant,
|
146
|
-
|
147
|
-
value: inputValue,
|
148
|
-
onChange: handleInputChange,
|
108
|
+
variant: isError ? EInputVariant.Error : variant,
|
109
|
+
value: date && !(typeof date === "string") && !isNaN(date == null ? void 0 : date.getTime()) ? formating.Date(date, "dd/mm/yyyy") : "",
|
149
110
|
rightAddon: {
|
150
111
|
addonType: "icon",
|
151
112
|
addonContent: isActive ? "DropdownArrowUp24px" : "DropdownArrowDown24px"
|
152
113
|
},
|
153
|
-
"data-error": isError,
|
154
114
|
...props
|
155
115
|
}
|
156
116
|
)
|