@petnow/ui 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +3 -1
- package/dist/index.es.js +84 -83
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/modal/Modal.d.ts +6 -1
- package/dist/src/components/modal/Modal.stories.d.ts +1 -0
- package/package.json +7 -3
package/dist/index.css
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
/*! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.left-2\/4{left:50%}.top-2\/4{top:50%}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mt-4{margin-top:1rem}.mt-\[2\.5px\]{margin-top:2.5px}.flex{display:flex}.inline-flex{display:inline-flex}.size-6{width:1.5rem;height:1.5rem}.h-4{height:1rem}.h-\[36px\]{height:36px}.h-\[60px\]{height:60px}.min-h-full{min-height:100%}.w-4{width:1rem}.w-\[260px\]{width:260px}.w-\[90\%\]{width:90%}.w-\[90vw\]{width:90vw}.w-full{width:100%}.w-screen{width:100vw}.max-w-sm{max-width:24rem}.-translate-x-2\/4{--tw-translate-x:-50%}.-translate-x-2\/4,.-translate-y-2\/4{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-2\/4{--tw-translate-y:-50%}.cursor-pointer{cursor:pointer}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-8{gap:2rem}.gap-\[16px\]{gap:16px}.gap-\[4px\]{gap:4px}.gap-\[8px\]{gap:8px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-\[12px\]{border-radius:12px}.rounded-\[16px\]{border-radius:16px}.rounded-full{border-radius:9999px}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.bg-\[\#C5C8CD\]{--tw-bg-opacity:1;background-color:rgb(197 200 205/var(--tw-bg-opacity))}.bg-\[\#F0F1F2\]{--tw-bg-opacity:1;background-color:rgb(240 241 242/var(--tw-bg-opacity))}.bg-\[\#F8F8F9\]{--tw-bg-opacity:1;background-color:rgb(248 248 249/var(--tw-bg-opacity))}.bg-\[\#FF592C\]{--tw-bg-opacity:1;background-color:rgb(255 89 44/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\/30{background-color:#0000004d}.bg-black\/40{background-color:#0006}.bg-petnowOrange{--tw-bg-opacity:1;background-color:rgb(255 89 44/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-3{padding:.75rem}.p-4{padding:1rem}.p-\[20px\]{padding:20px}.px-\[12px\]{padding-left:12px;padding-right:12px}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-\[14px\]{padding-top:14px;padding-bottom:14px}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[14px\]{font-size:14px}.text-\[16px\]{font-size:16px}.text-\[18px\]{font-size:18px}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.leading-\[22px\]{line-height:22px}.leading-\[24px\]{line-height:24px}.leading-\[26px\]{line-height:26px}.text-\[\#2C2F34\]{--tw-text-opacity:1;color:rgb(44 47 52/var(--tw-text-opacity))}.text-\[\#585E67\]{--tw-text-opacity:1;color:rgb(88 94 103/var(--tw-text-opacity))}.text-\[\#8B919A\]{--tw-text-opacity:1;color:rgb(139 145 154/var(--tw-text-opacity))}.text-\[\#C5C8CD\]{--tw-text-opacity:1;color:rgb(197 200 205/var(--tw-text-opacity))}.text-deepGray{--tw-text-opacity:1;color:rgb(88 94 103/var(--tw-text-opacity))}.text-lightBlack{--tw-text-opacity:1;color:rgb(44 47 52/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.opacity-50{opacity:.5}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.placeholder\:text-\[\#C5C8CD\]::-moz-placeholder{--tw-text-opacity:1;color:rgb(197 200 205/var(--tw-text-opacity))}.placeholder\:text-\[\#C5C8CD\]::placeholder{--tw-text-opacity:1;color:rgb(197 200 205/var(--tw-text-opacity))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-2\/4:before{content:var(--tw-content);left:50%}.before\:top-2\/4:before{content:var(--tw-content);top:50%}.before\:block:before{content:var(--tw-content);display:block}.before\:h-12:before{content:var(--tw-content);height:3rem}.before\:w-12:before{content:var(--tw-content);width:3rem}.before\:-translate-x-2\/4:before{--tw-translate-x:-50%}.before\:-translate-x-2\/4:before,.before\:-translate-y-2\/4:before{content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:-translate-y-2\/4:before{--tw-translate-y:-50%}.before\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\:opacity-0:before{content:var(--tw-content);opacity:0}.before\:transition-opacity:before{content:var(--tw-content);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.checked\:border-petnowOrange:checked{--tw-border-opacity:1;border-color:rgb(255 89 44/var(--tw-border-opacity))}.checked\:before\:bg-petnowOrange:checked:before,.checked\:bg-petnowOrange:checked{--tw-bg-opacity:1;background-color:rgb(255 89 44/var(--tw-bg-opacity))}.checked\:before\:bg-petnowOrange:checked:before{content:var(--tw-content)}.hover\:bg-\[\#DF592C\]:hover{--tw-bg-opacity:1;background-color:rgb(223 89 44/var(--tw-bg-opacity))}.focus\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.disabled\:bg-lightGray:disabled{--tw-bg-opacity:1;background-color:rgb(204 204 204/var(--tw-bg-opacity))}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:hover\:bg-lightGray:hover:disabled{--tw-bg-opacity:1;background-color:rgb(204 204 204/var(--tw-bg-opacity))}.peer:checked~.peer-checked\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}
|
|
1
|
+
@import url("https://cdnjs.cloudflare.com/ajax/libs/pretendard/1.3.9/static/pretendard.min.css");
|
|
2
|
+
|
|
3
|
+
/*! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.left-2\/4{left:50%}.top-2\/4{top:50%}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mt-4{margin-top:1rem}.mt-\[2\.5px\]{margin-top:2.5px}.flex{display:flex}.inline-flex{display:inline-flex}.size-6{width:1.5rem;height:1.5rem}.h-4{height:1rem}.h-\[36px\]{height:36px}.h-\[60px\]{height:60px}.min-h-full{min-height:100%}.w-4{width:1rem}.w-\[260px\]{width:260px}.w-\[90\%\]{width:90%}.w-\[90vw\]{width:90vw}.w-full{width:100%}.w-screen{width:100vw}.max-w-sm{max-width:24rem}.-translate-x-2\/4{--tw-translate-x:-50%}.-translate-x-2\/4,.-translate-y-2\/4{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-2\/4{--tw-translate-y:-50%}.cursor-pointer{cursor:pointer}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-8{gap:2rem}.gap-\[16px\]{gap:16px}.gap-\[4px\]{gap:4px}.gap-\[8px\]{gap:8px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-\[12px\]{border-radius:12px}.rounded-\[16px\]{border-radius:16px}.rounded-full{border-radius:9999px}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.bg-\[\#C5C8CD\]{--tw-bg-opacity:1;background-color:rgb(197 200 205/var(--tw-bg-opacity))}.bg-\[\#F0F1F2\]{--tw-bg-opacity:1;background-color:rgb(240 241 242/var(--tw-bg-opacity))}.bg-\[\#F8F8F9\]{--tw-bg-opacity:1;background-color:rgb(248 248 249/var(--tw-bg-opacity))}.bg-\[\#FF592C\]{--tw-bg-opacity:1;background-color:rgb(255 89 44/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\/30{background-color:#0000004d}.bg-black\/40{background-color:#0006}.bg-petnowOrange{--tw-bg-opacity:1;background-color:rgb(255 89 44/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-3{padding:.75rem}.p-4{padding:1rem}.p-\[20px\]{padding:20px}.px-\[12px\]{padding-left:12px;padding-right:12px}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-\[14px\]{padding-top:14px;padding-bottom:14px}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[14px\]{font-size:14px}.text-\[16px\]{font-size:16px}.text-\[18px\]{font-size:18px}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.leading-\[22px\]{line-height:22px}.leading-\[24px\]{line-height:24px}.leading-\[26px\]{line-height:26px}.text-\[\#2C2F34\]{--tw-text-opacity:1;color:rgb(44 47 52/var(--tw-text-opacity))}.text-\[\#585E67\]{--tw-text-opacity:1;color:rgb(88 94 103/var(--tw-text-opacity))}.text-\[\#8B919A\]{--tw-text-opacity:1;color:rgb(139 145 154/var(--tw-text-opacity))}.text-\[\#C5C8CD\]{--tw-text-opacity:1;color:rgb(197 200 205/var(--tw-text-opacity))}.text-deepGray{--tw-text-opacity:1;color:rgb(88 94 103/var(--tw-text-opacity))}.text-lightBlack{--tw-text-opacity:1;color:rgb(44 47 52/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.opacity-50{opacity:.5}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}*{font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,sans-serif;word-break:keep-all}.placeholder\:text-\[\#C5C8CD\]::-moz-placeholder{--tw-text-opacity:1;color:rgb(197 200 205/var(--tw-text-opacity))}.placeholder\:text-\[\#C5C8CD\]::placeholder{--tw-text-opacity:1;color:rgb(197 200 205/var(--tw-text-opacity))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-2\/4:before{content:var(--tw-content);left:50%}.before\:top-2\/4:before{content:var(--tw-content);top:50%}.before\:block:before{content:var(--tw-content);display:block}.before\:h-12:before{content:var(--tw-content);height:3rem}.before\:w-12:before{content:var(--tw-content);width:3rem}.before\:-translate-x-2\/4:before{--tw-translate-x:-50%}.before\:-translate-x-2\/4:before,.before\:-translate-y-2\/4:before{content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:-translate-y-2\/4:before{--tw-translate-y:-50%}.before\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\:opacity-0:before{content:var(--tw-content);opacity:0}.before\:transition-opacity:before{content:var(--tw-content);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.checked\:border-petnowOrange:checked{--tw-border-opacity:1;border-color:rgb(255 89 44/var(--tw-border-opacity))}.checked\:before\:bg-petnowOrange:checked:before,.checked\:bg-petnowOrange:checked{--tw-bg-opacity:1;background-color:rgb(255 89 44/var(--tw-bg-opacity))}.checked\:before\:bg-petnowOrange:checked:before{content:var(--tw-content)}.hover\:bg-\[\#DF592C\]:hover{--tw-bg-opacity:1;background-color:rgb(223 89 44/var(--tw-bg-opacity))}.focus\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.disabled\:bg-lightGray:disabled{--tw-bg-opacity:1;background-color:rgb(204 204 204/var(--tw-bg-opacity))}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:hover\:bg-lightGray:hover:disabled{--tw-bg-opacity:1;background-color:rgb(204 204 204/var(--tw-bg-opacity))}.peer:checked~.peer-checked\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}
|
package/dist/index.es.js
CHANGED
|
@@ -18,14 +18,14 @@ function pn() {
|
|
|
18
18
|
Jt = 1;
|
|
19
19
|
var e = k, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
20
20
|
function a(s, u, y) {
|
|
21
|
-
var c, p = {},
|
|
22
|
-
y !== void 0 && (
|
|
21
|
+
var c, p = {}, P = null, C = null;
|
|
22
|
+
y !== void 0 && (P = "" + y), u.key !== void 0 && (P = "" + u.key), u.ref !== void 0 && (C = u.ref);
|
|
23
23
|
for (c in u)
|
|
24
24
|
n.call(u, c) && !l.hasOwnProperty(c) && (p[c] = u[c]);
|
|
25
25
|
if (s && s.defaultProps)
|
|
26
26
|
for (c in u = s.defaultProps, u)
|
|
27
27
|
p[c] === void 0 && (p[c] = u[c]);
|
|
28
|
-
return { $$typeof: t, type: s, key:
|
|
28
|
+
return { $$typeof: t, type: s, key: P, ref: C, props: p, _owner: o.current };
|
|
29
29
|
}
|
|
30
30
|
return We.Fragment = r, We.jsx = a, We.jsxs = a, We;
|
|
31
31
|
}
|
|
@@ -42,7 +42,7 @@ var Be = {};
|
|
|
42
42
|
var Xt;
|
|
43
43
|
function mn() {
|
|
44
44
|
return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var e = k, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"),
|
|
45
|
+
var e = k, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), b = Symbol.iterator, g = "@@iterator";
|
|
46
46
|
function x(i) {
|
|
47
47
|
if (i === null || typeof i != "object")
|
|
48
48
|
return null;
|
|
@@ -70,7 +70,7 @@ function mn() {
|
|
|
70
70
|
var z = !1, G = !1, q = !1, ae = !1, Z = !1, V;
|
|
71
71
|
V = Symbol.for("react.module.reference");
|
|
72
72
|
function te(i) {
|
|
73
|
-
return !!(typeof i == "string" || typeof i == "function" || i === n || i === l || Z || i === o || i === y || i === c || ae || i === C || z || G || q || typeof i == "object" && i !== null && (i.$$typeof ===
|
|
73
|
+
return !!(typeof i == "string" || typeof i == "function" || i === n || i === l || Z || i === o || i === y || i === c || ae || i === C || z || G || q || typeof i == "object" && i !== null && (i.$$typeof === P || i.$$typeof === p || i.$$typeof === a || i.$$typeof === s || i.$$typeof === u || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
@@ -120,7 +120,7 @@ function mn() {
|
|
|
120
120
|
case p:
|
|
121
121
|
var S = i.displayName || null;
|
|
122
122
|
return S !== null ? S : w(i.type) || "Memo";
|
|
123
|
-
case
|
|
123
|
+
case P: {
|
|
124
124
|
var A = i, M = A._payload, N = A._init;
|
|
125
125
|
try {
|
|
126
126
|
return w(N(M));
|
|
@@ -309,7 +309,7 @@ function mn() {
|
|
|
309
309
|
return X(i.render);
|
|
310
310
|
case p:
|
|
311
311
|
return Ze(i.type, d, h);
|
|
312
|
-
case
|
|
312
|
+
case P: {
|
|
313
313
|
var S = i, A = S._payload, M = S._init;
|
|
314
314
|
try {
|
|
315
315
|
return Ze(M(A), d, h);
|
|
@@ -627,7 +627,7 @@ Check the top-level render call using <` + h + ">.");
|
|
|
627
627
|
}()), Be;
|
|
628
628
|
}
|
|
629
629
|
process.env.NODE_ENV === "production" ? Pt.exports = pn() : Pt.exports = mn();
|
|
630
|
-
var
|
|
630
|
+
var O = Pt.exports;
|
|
631
631
|
function ar(e) {
|
|
632
632
|
var t, r, n = "";
|
|
633
633
|
if (typeof e == "string" || typeof e == "number")
|
|
@@ -786,10 +786,10 @@ function En(e) {
|
|
|
786
786
|
}
|
|
787
787
|
x === "[" ? u++ : x === "]" && u--;
|
|
788
788
|
}
|
|
789
|
-
const p = s.length === 0 ? a : a.substring(y),
|
|
789
|
+
const p = s.length === 0 ? a : a.substring(y), P = p.startsWith(sr), C = P ? p.substring(1) : p, b = c && c > y ? c - y : void 0;
|
|
790
790
|
return {
|
|
791
791
|
modifiers: s,
|
|
792
|
-
hasImportantModifier:
|
|
792
|
+
hasImportantModifier: P,
|
|
793
793
|
baseClassName: C,
|
|
794
794
|
maybePostfixModifierPosition: b
|
|
795
795
|
};
|
|
@@ -825,7 +825,7 @@ function jn(e, t) {
|
|
|
825
825
|
baseClassName: y,
|
|
826
826
|
maybePostfixModifierPosition: c
|
|
827
827
|
} = r(a);
|
|
828
|
-
let p = n(c ? y.substring(0, c) : y),
|
|
828
|
+
let p = n(c ? y.substring(0, c) : y), P = !!c;
|
|
829
829
|
if (!p) {
|
|
830
830
|
if (!c)
|
|
831
831
|
return {
|
|
@@ -837,7 +837,7 @@ function jn(e, t) {
|
|
|
837
837
|
isTailwindClass: !1,
|
|
838
838
|
originalClassName: a
|
|
839
839
|
};
|
|
840
|
-
|
|
840
|
+
P = !1;
|
|
841
841
|
}
|
|
842
842
|
const C = On(s).join(":");
|
|
843
843
|
return {
|
|
@@ -845,7 +845,7 @@ function jn(e, t) {
|
|
|
845
845
|
modifierId: u ? C + sr : C,
|
|
846
846
|
classGroupId: p,
|
|
847
847
|
originalClassName: a,
|
|
848
|
-
hasPostfixModifier:
|
|
848
|
+
hasPostfixModifier: P
|
|
849
849
|
};
|
|
850
850
|
}).reverse().filter((a) => {
|
|
851
851
|
if (!a.isTailwindClass)
|
|
@@ -952,7 +952,7 @@ function Gn(e) {
|
|
|
952
952
|
return Dn.test(e);
|
|
953
953
|
}
|
|
954
954
|
function Vn() {
|
|
955
|
-
const e = F("colors"), t = F("spacing"), r = F("blur"), n = F("brightness"), o = F("borderColor"), l = F("borderRadius"), a = F("borderSpacing"), s = F("borderWidth"), u = F("contrast"), y = F("grayscale"), c = F("hueRotate"), p = F("invert"),
|
|
955
|
+
const e = F("colors"), t = F("spacing"), r = F("blur"), n = F("brightness"), o = F("borderColor"), l = F("borderRadius"), a = F("borderSpacing"), s = F("borderWidth"), u = F("contrast"), y = F("grayscale"), c = F("hueRotate"), p = F("invert"), P = F("gap"), C = F("gradientColorStops"), b = F("gradientColorStopPositions"), g = F("inset"), x = F("margin"), E = F("opacity"), j = F("padding"), $ = F("saturate"), z = F("scale"), G = F("sepia"), q = F("skew"), ae = F("space"), Z = F("translate"), V = () => ["auto", "contain", "none"], te = () => ["auto", "hidden", "clip", "visible", "scroll"], m = () => ["auto", T, t], f = () => [T, t], w = () => ["", de, he], v = () => ["auto", Se, T], _ = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], D = () => ["solid", "dashed", "dotted", "double", "none"], W = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], L = () => ["", "0", T], ue = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ee = () => [Se, rt], re = () => [Se, T];
|
|
956
956
|
return {
|
|
957
957
|
cacheSize: 500,
|
|
958
958
|
separator: ":",
|
|
@@ -1335,21 +1335,21 @@ function Vn() {
|
|
|
1335
1335
|
* @see https://tailwindcss.com/docs/gap
|
|
1336
1336
|
*/
|
|
1337
1337
|
gap: [{
|
|
1338
|
-
gap: [
|
|
1338
|
+
gap: [P]
|
|
1339
1339
|
}],
|
|
1340
1340
|
/**
|
|
1341
1341
|
* Gap X
|
|
1342
1342
|
* @see https://tailwindcss.com/docs/gap
|
|
1343
1343
|
*/
|
|
1344
1344
|
"gap-x": [{
|
|
1345
|
-
"gap-x": [
|
|
1345
|
+
"gap-x": [P]
|
|
1346
1346
|
}],
|
|
1347
1347
|
/**
|
|
1348
1348
|
* Gap Y
|
|
1349
1349
|
* @see https://tailwindcss.com/docs/gap
|
|
1350
1350
|
*/
|
|
1351
1351
|
"gap-y": [{
|
|
1352
|
-
"gap-y": [
|
|
1352
|
+
"gap-y": [P]
|
|
1353
1353
|
}],
|
|
1354
1354
|
/**
|
|
1355
1355
|
* Justify Content
|
|
@@ -2971,13 +2971,13 @@ const Yn = /* @__PURE__ */ Tn(Vn);
|
|
|
2971
2971
|
function qn(...e) {
|
|
2972
2972
|
return Yn(gn(e));
|
|
2973
2973
|
}
|
|
2974
|
-
const Kn = ({ className: e, text: t, onClick: r, disabled: n }) => /* @__PURE__ */
|
|
2974
|
+
const Kn = ({ className: e, text: t, onClick: r, disabled: n }) => /* @__PURE__ */ O.jsx(
|
|
2975
2975
|
"button",
|
|
2976
2976
|
{
|
|
2977
2977
|
disabled: n,
|
|
2978
2978
|
onClick: r,
|
|
2979
2979
|
className: qn(
|
|
2980
|
-
"w-full bg-petnowOrange
|
|
2980
|
+
"w-full rounded-xl bg-petnowOrange py-5 text-2xl font-bold text-white transition-colors duration-200 hover:bg-[#DF592C] disabled:bg-lightGray disabled:hover:bg-lightGray",
|
|
2981
2981
|
e
|
|
2982
2982
|
),
|
|
2983
2983
|
children: t
|
|
@@ -3279,7 +3279,7 @@ function it(e, t, { sorted: r = !0, relativeTo: n = null, skipElements: o = [] }
|
|
|
3279
3279
|
if (t & 8)
|
|
3280
3280
|
return a.length - 1;
|
|
3281
3281
|
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
3282
|
-
})(), y = t & 32 ? { preventScroll: !0 } : {}, c = 0, p = a.length,
|
|
3282
|
+
})(), y = t & 32 ? { preventScroll: !0 } : {}, c = 0, p = a.length, P;
|
|
3283
3283
|
do {
|
|
3284
3284
|
if (c >= p || c + p <= 0)
|
|
3285
3285
|
return 0;
|
|
@@ -3292,9 +3292,9 @@ function it(e, t, { sorted: r = !0, relativeTo: n = null, skipElements: o = [] }
|
|
|
3292
3292
|
if (C >= p)
|
|
3293
3293
|
return 1;
|
|
3294
3294
|
}
|
|
3295
|
-
|
|
3296
|
-
} while (
|
|
3297
|
-
return t & 6 && go(
|
|
3295
|
+
P = a[C], P == null || P.focus(y), c += s;
|
|
3296
|
+
} while (P !== l.activeElement);
|
|
3297
|
+
return t & 6 && go(P) && P.select(), 2;
|
|
3298
3298
|
}
|
|
3299
3299
|
function yr() {
|
|
3300
3300
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
@@ -3418,10 +3418,10 @@ function ot(e, t = {}, r, n, o) {
|
|
|
3418
3418
|
"className" in u && u.className && typeof u.className == "function" && (u.className = u.className(t));
|
|
3419
3419
|
let p = {};
|
|
3420
3420
|
if (t) {
|
|
3421
|
-
let
|
|
3421
|
+
let P = !1, C = [];
|
|
3422
3422
|
for (let [b, g] of Object.entries(t))
|
|
3423
|
-
typeof g == "boolean" && (
|
|
3424
|
-
|
|
3423
|
+
typeof g == "boolean" && (P = !0), g === !0 && C.push(b);
|
|
3424
|
+
P && (p["data-headlessui-state"] = C.join(" "));
|
|
3425
3425
|
}
|
|
3426
3426
|
if (l === Ke && Object.keys(or(u)).length > 0) {
|
|
3427
3427
|
if (!ln(c) || Array.isArray(c) && c.length > 1)
|
|
@@ -3429,7 +3429,7 @@ function ot(e, t = {}, r, n, o) {
|
|
|
3429
3429
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((g) => ` - ${g}`).join(`
|
|
3430
3430
|
`)].join(`
|
|
3431
3431
|
`));
|
|
3432
|
-
let
|
|
3432
|
+
let P = c.props, C = typeof (P == null ? void 0 : P.className) == "function" ? (...g) => nr(P == null ? void 0 : P.className(...g), u.className) : nr(P == null ? void 0 : P.className, u.className), b = C ? { className: C } : {};
|
|
3433
3433
|
return sn(c, Object.assign({}, Er(c.props, or(xt(u, ["ref"]))), p, y, { ref: o(c.ref, y.ref) }, b));
|
|
3434
3434
|
}
|
|
3435
3435
|
return un(l, Object.assign({}, xt(u, ["ref"]), l !== Ke && y, l !== Ke && p), c);
|
|
@@ -3582,8 +3582,8 @@ function ko(e, t) {
|
|
|
3582
3582
|
it(x, je.Last, { skipElements: [g.relatedTarget] });
|
|
3583
3583
|
} });
|
|
3584
3584
|
});
|
|
3585
|
-
}),
|
|
3586
|
-
g.key == "Tab" && (C.current = !0,
|
|
3585
|
+
}), P = lo(), C = H(!1), b = { ref: n, onKeyDown(g) {
|
|
3586
|
+
g.key == "Tab" && (C.current = !0, P.requestAnimationFrame(() => {
|
|
3587
3587
|
C.current = !1;
|
|
3588
3588
|
}));
|
|
3589
3589
|
}, onBlur(g) {
|
|
@@ -3890,7 +3890,7 @@ function di({ defaultContainers: e = [], portals: t, mainTreeNodeRef: r } = {})
|
|
|
3890
3890
|
for (let p of t.current)
|
|
3891
3891
|
c.push(p);
|
|
3892
3892
|
for (let p of (s = l == null ? void 0 : l.querySelectorAll("html > *, body > *")) != null ? s : [])
|
|
3893
|
-
p !== document.body && p !== document.head && p instanceof HTMLElement && p.id !== "headlessui-portal-root" && (p.contains(o.current) || p.contains((y = (u = o.current) == null ? void 0 : u.getRootNode()) == null ? void 0 : y.host) || c.some((
|
|
3893
|
+
p !== document.body && p !== document.head && p instanceof HTMLElement && p.id !== "headlessui-portal-root" && (p.contains(o.current) || p.contains((y = (u = o.current) == null ? void 0 : u.getRootNode()) == null ? void 0 : y.host) || c.some((P) => p.contains(P)) || c.push(p));
|
|
3894
3894
|
return c;
|
|
3895
3895
|
});
|
|
3896
3896
|
return { resolveContainers: a, contains: Y((s) => a().some((u) => u.contains(s))), mainTreeNodeRef: o, MainTreeNode: ie(() => function() {
|
|
@@ -3966,9 +3966,9 @@ function Oi(e, t) {
|
|
|
3966
3966
|
}
|
|
3967
3967
|
let Pi = "div", Ci = St.RenderStrategy | St.Static;
|
|
3968
3968
|
function ji(e, t) {
|
|
3969
|
-
let r = Fe(), { id: n = `headlessui-dialog-${r}`, open: o, onClose: l, initialFocus: a, role: s = "dialog", __demoMode: u = !1, ...y } = e, [c, p] = Re(0),
|
|
3969
|
+
let r = Fe(), { id: n = `headlessui-dialog-${r}`, open: o, onClose: l, initialFocus: a, role: s = "dialog", __demoMode: u = !1, ...y } = e, [c, p] = Re(0), P = H(!1);
|
|
3970
3970
|
s = function() {
|
|
3971
|
-
return s === "dialog" || s === "alertdialog" ? s : (
|
|
3971
|
+
return s === "dialog" || s === "alertdialog" ? s : (P.current || (P.current = !0, console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
|
|
3972
3972
|
}();
|
|
3973
3973
|
let C = Co();
|
|
3974
3974
|
o === void 0 && C !== null && (o = (C & Ye.Open) === Ye.Open);
|
|
@@ -4055,15 +4055,15 @@ function Ai(e, t) {
|
|
|
4055
4055
|
let Di = se(ji), Mi = se(Ri), Fi = se($i), Li = se(Ti), Ii = se(Ai), we = Object.assign(Di, { Backdrop: Mi, Panel: Fi, Overlay: Li, Title: Ii, Description: vi });
|
|
4056
4056
|
const Gi = ({ checked: e, label: t, onChange: r, termImageUrl: n }) => {
|
|
4057
4057
|
const [o, l] = Re(!1);
|
|
4058
|
-
return /* @__PURE__ */
|
|
4059
|
-
/* @__PURE__ */
|
|
4060
|
-
/* @__PURE__ */
|
|
4061
|
-
/* @__PURE__ */
|
|
4062
|
-
/* @__PURE__ */
|
|
4058
|
+
return /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
|
|
4059
|
+
/* @__PURE__ */ O.jsx(zi, { isOpen: o, setIsOpen: l, termImageUrl: n }),
|
|
4060
|
+
/* @__PURE__ */ O.jsxs("div", { className: "inline-flex items-center", children: [
|
|
4061
|
+
/* @__PURE__ */ O.jsxs("label", { className: "relative flex cursor-pointer items-center rounded-full p-3", htmlFor: "check", children: [
|
|
4062
|
+
/* @__PURE__ */ O.jsx(
|
|
4063
4063
|
"input",
|
|
4064
4064
|
{
|
|
4065
4065
|
type: "checkbox",
|
|
4066
|
-
className: "before:content['']
|
|
4066
|
+
className: "before:content[''] border-blue-gray-200 before:bg-blue-gray-500 peer relative size-6 cursor-pointer appearance-none rounded-xl border bg-[#C5C8CD] transition-all before:absolute before:left-2/4 before:top-2/4 before:block before:h-12 before:w-12 before:-translate-x-2/4 before:-translate-y-2/4 before:rounded-full before:opacity-0 before:transition-opacity checked:border-petnowOrange checked:bg-petnowOrange checked:before:bg-petnowOrange",
|
|
4067
4067
|
id: t,
|
|
4068
4068
|
checked: e,
|
|
4069
4069
|
onChange: (a) => {
|
|
@@ -4071,7 +4071,7 @@ const Gi = ({ checked: e, label: t, onChange: r, termImageUrl: n }) => {
|
|
|
4071
4071
|
}
|
|
4072
4072
|
}
|
|
4073
4073
|
),
|
|
4074
|
-
/* @__PURE__ */
|
|
4074
|
+
/* @__PURE__ */ O.jsx("span", { className: "pointer-events-none absolute left-2/4 top-2/4 -translate-x-2/4 -translate-y-2/4 text-[#8B919A] transition peer-checked:text-white", children: /* @__PURE__ */ O.jsx(
|
|
4075
4075
|
"svg",
|
|
4076
4076
|
{
|
|
4077
4077
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4080,7 +4080,7 @@ const Gi = ({ checked: e, label: t, onChange: r, termImageUrl: n }) => {
|
|
|
4080
4080
|
fill: "currentColor",
|
|
4081
4081
|
stroke: "currentColor",
|
|
4082
4082
|
strokeWidth: "1",
|
|
4083
|
-
children: /* @__PURE__ */
|
|
4083
|
+
children: /* @__PURE__ */ O.jsx(
|
|
4084
4084
|
"path",
|
|
4085
4085
|
{
|
|
4086
4086
|
fillRule: "evenodd",
|
|
@@ -4091,31 +4091,31 @@ const Gi = ({ checked: e, label: t, onChange: r, termImageUrl: n }) => {
|
|
|
4091
4091
|
}
|
|
4092
4092
|
) })
|
|
4093
4093
|
] }),
|
|
4094
|
-
t && /* @__PURE__ */
|
|
4095
|
-
/* @__PURE__ */
|
|
4096
|
-
/* @__PURE__ */
|
|
4094
|
+
t && /* @__PURE__ */ O.jsxs("div", { className: "flex items-center", children: [
|
|
4095
|
+
/* @__PURE__ */ O.jsx("label", { className: "cursor-pointer font-medium", htmlFor: t, children: t }),
|
|
4096
|
+
/* @__PURE__ */ O.jsx(
|
|
4097
4097
|
no,
|
|
4098
4098
|
{
|
|
4099
4099
|
onClick: () => {
|
|
4100
4100
|
l(!0);
|
|
4101
4101
|
},
|
|
4102
|
-
className: "
|
|
4102
|
+
className: "ml-2 mt-[2.5px] cursor-pointer text-deepGray",
|
|
4103
4103
|
size: 24
|
|
4104
4104
|
}
|
|
4105
4105
|
)
|
|
4106
4106
|
] })
|
|
4107
4107
|
] })
|
|
4108
4108
|
] });
|
|
4109
|
-
}, zi = ({ isOpen: e, setIsOpen: t, termImageUrl: r }) => /* @__PURE__ */
|
|
4110
|
-
/* @__PURE__ */
|
|
4111
|
-
/* @__PURE__ */
|
|
4112
|
-
/* @__PURE__ */
|
|
4113
|
-
/* @__PURE__ */
|
|
4114
|
-
/* @__PURE__ */
|
|
4109
|
+
}, zi = ({ isOpen: e, setIsOpen: t, termImageUrl: r }) => /* @__PURE__ */ O.jsxs(we, { open: e, onClose: () => t(!1), className: "relative z-50", children: [
|
|
4110
|
+
/* @__PURE__ */ O.jsx("div", { className: "fixed inset-0 bg-black/30", "aria-hidden": "true" }),
|
|
4111
|
+
/* @__PURE__ */ O.jsx("div", { className: "fixed inset-0 w-screen overflow-y-auto", children: /* @__PURE__ */ O.jsx("div", { className: "flex min-h-full items-center justify-center p-4", children: /* @__PURE__ */ O.jsxs(we.Panel, { className: "mx-auto flex max-w-sm flex-col items-center gap-8 rounded bg-white", children: [
|
|
4112
|
+
/* @__PURE__ */ O.jsx("div", { className: "flex h-[36px] w-full flex-row-reverse items-center bg-[#F0F1F2]", children: /* @__PURE__ */ O.jsx(gr, { size: 20, className: "mr-2", onClick: () => t(!1) }) }),
|
|
4113
|
+
/* @__PURE__ */ O.jsx("img", { src: r, alt: "약관동의 이미지" }),
|
|
4114
|
+
/* @__PURE__ */ O.jsx(
|
|
4115
4115
|
Kn,
|
|
4116
4116
|
{
|
|
4117
4117
|
text: "닫기",
|
|
4118
|
-
className: "
|
|
4118
|
+
className: "mb-4 w-[90%] text-base focus:outline-none",
|
|
4119
4119
|
onClick: () => t(!1)
|
|
4120
4120
|
}
|
|
4121
4121
|
)
|
|
@@ -4220,12 +4220,12 @@ var Dr = {}, Mr = {}, mt = {};
|
|
|
4220
4220
|
if (!(m instanceof f))
|
|
4221
4221
|
throw new TypeError("Cannot call a class as a function");
|
|
4222
4222
|
}
|
|
4223
|
-
function
|
|
4223
|
+
function P(m, f) {
|
|
4224
4224
|
for (var w, v = 0; v < f.length; v++)
|
|
4225
4225
|
w = f[v], w.enumerable = w.enumerable || !1, w.configurable = !0, "value" in w && (w.writable = !0), Object.defineProperty(m, w.key, w);
|
|
4226
4226
|
}
|
|
4227
4227
|
function C(m, f, w) {
|
|
4228
|
-
return f &&
|
|
4228
|
+
return f && P(m.prototype, f), w && P(m, w), m;
|
|
4229
4229
|
}
|
|
4230
4230
|
function b(m, f) {
|
|
4231
4231
|
if (typeof f != "function" && f !== null)
|
|
@@ -4389,7 +4389,7 @@ var Fr = {};
|
|
|
4389
4389
|
x = $[E], 0 <= g.indexOf(x) || (j[x] = b[x]);
|
|
4390
4390
|
return j;
|
|
4391
4391
|
}
|
|
4392
|
-
function
|
|
4392
|
+
function P() {
|
|
4393
4393
|
var b = 0 < arguments.length && arguments[0] !== void 0 ? arguments[0] : n.postcodeScriptUrl;
|
|
4394
4394
|
(0, r.useEffect)(function() {
|
|
4395
4395
|
(0, n.default)(b);
|
|
@@ -4403,7 +4403,7 @@ var Fr = {};
|
|
|
4403
4403
|
}, [b]);
|
|
4404
4404
|
return g;
|
|
4405
4405
|
}
|
|
4406
|
-
var C =
|
|
4406
|
+
var C = P;
|
|
4407
4407
|
e.default = C;
|
|
4408
4408
|
})(Fr);
|
|
4409
4409
|
(function(e) {
|
|
@@ -4423,25 +4423,25 @@ var Fr = {};
|
|
|
4423
4423
|
})(Dr);
|
|
4424
4424
|
const Vi = ({ label: e, value: t, onFrontChange: r, onBackChange: n, onPostalCodeChange: o, disabled: l }) => {
|
|
4425
4425
|
const [a, s] = Re(!1), u = (p) => {
|
|
4426
|
-
let
|
|
4427
|
-
p.addressType === "R" && (p.bname !== "" && (C += p.bname), p.buildingName !== "" && (C += C !== "" ? `, ${p.buildingName}` : p.buildingName),
|
|
4426
|
+
let P = p.address, C = "";
|
|
4427
|
+
p.addressType === "R" && (p.bname !== "" && (C += p.bname), p.buildingName !== "" && (C += C !== "" ? `, ${p.buildingName}` : p.buildingName), P += C !== "" ? ` (${C})` : ""), r(P), o && o(p.zonecode), s(!1);
|
|
4428
4428
|
}, y = () => {
|
|
4429
4429
|
s(!0);
|
|
4430
|
-
}, c = () => t.front ? t.front : /* @__PURE__ */
|
|
4431
|
-
return /* @__PURE__ */
|
|
4432
|
-
/* @__PURE__ */
|
|
4433
|
-
/* @__PURE__ */
|
|
4434
|
-
/* @__PURE__ */
|
|
4435
|
-
/* @__PURE__ */
|
|
4436
|
-
/* @__PURE__ */
|
|
4430
|
+
}, c = () => t.front ? t.front : /* @__PURE__ */ O.jsx("p", { className: "text-[#C5C8CD]", children: "주소를 입력해주세요." });
|
|
4431
|
+
return /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
|
|
4432
|
+
/* @__PURE__ */ O.jsx(Wi, { isOpen: a, setIsOpen: s, handleComplete: u }),
|
|
4433
|
+
/* @__PURE__ */ O.jsxs("div", { className: "text-deepGray", children: [
|
|
4434
|
+
/* @__PURE__ */ O.jsx("label", { htmlFor: e, className: "text-sm font-bold text-lightBlack", children: e }),
|
|
4435
|
+
/* @__PURE__ */ O.jsxs("div", { className: "relative flex flex-col", children: [
|
|
4436
|
+
/* @__PURE__ */ O.jsx(
|
|
4437
4437
|
"div",
|
|
4438
4438
|
{
|
|
4439
|
-
className: `
|
|
4439
|
+
className: `mt-4 h-[60px] w-full overflow-hidden whitespace-nowrap rounded-xl bg-[#F8F8F9] p-4 text-base placeholder:text-[#C5C8CD] focus:outline-none ${l && "opacity-50"}`,
|
|
4440
4440
|
onClick: y,
|
|
4441
4441
|
children: c()
|
|
4442
4442
|
}
|
|
4443
4443
|
),
|
|
4444
|
-
/* @__PURE__ */
|
|
4444
|
+
/* @__PURE__ */ O.jsx(
|
|
4445
4445
|
"input",
|
|
4446
4446
|
{
|
|
4447
4447
|
disabled: !t.front || l,
|
|
@@ -4450,7 +4450,7 @@ const Vi = ({ label: e, value: t, onFrontChange: r, onBackChange: n, onPostalCod
|
|
|
4450
4450
|
name: e,
|
|
4451
4451
|
id: e,
|
|
4452
4452
|
placeholder: "상세 주소를 입력해주세요.",
|
|
4453
|
-
className: "
|
|
4453
|
+
className: "mt-4 h-[60px] w-full rounded-xl bg-[#F8F8F9] p-4 text-base placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50",
|
|
4454
4454
|
autoComplete: "off",
|
|
4455
4455
|
onChange: (p) => n(p.target.value)
|
|
4456
4456
|
}
|
|
@@ -4460,11 +4460,11 @@ const Vi = ({ label: e, value: t, onFrontChange: r, onBackChange: n, onPostalCod
|
|
|
4460
4460
|
] });
|
|
4461
4461
|
}, Wi = (e) => {
|
|
4462
4462
|
const { isOpen: t, setIsOpen: r, handleComplete: n } = e;
|
|
4463
|
-
return /* @__PURE__ */
|
|
4464
|
-
/* @__PURE__ */
|
|
4465
|
-
/* @__PURE__ */
|
|
4466
|
-
/* @__PURE__ */
|
|
4467
|
-
/* @__PURE__ */
|
|
4463
|
+
return /* @__PURE__ */ O.jsxs(we, { open: t, onClose: () => r(!1), className: "relateive z-50", children: [
|
|
4464
|
+
/* @__PURE__ */ O.jsx("div", { className: "fixed inset-0 bg-black/40", "aria-hidden": "true" }),
|
|
4465
|
+
/* @__PURE__ */ O.jsx("div", { className: "fixed inset-0 flex w-screen items-center justify-center", children: /* @__PURE__ */ O.jsx(we.Panel, { children: /* @__PURE__ */ O.jsxs("div", { children: [
|
|
4466
|
+
/* @__PURE__ */ O.jsx("div", { className: "flex h-[36px] w-[90vw] flex-row-reverse items-center bg-[#F0F1F2]", children: /* @__PURE__ */ O.jsx(gr, { size: 20, className: "mr-2", onClick: () => r(!1) }) }),
|
|
4467
|
+
/* @__PURE__ */ O.jsx(
|
|
4468
4468
|
Dr.DaumPostcodeEmbed,
|
|
4469
4469
|
{
|
|
4470
4470
|
onComplete: n,
|
|
@@ -4475,27 +4475,28 @@ const Vi = ({ label: e, value: t, onFrontChange: r, onBackChange: n, onPostalCod
|
|
|
4475
4475
|
] });
|
|
4476
4476
|
}, Yi = (e) => {
|
|
4477
4477
|
const { isOpen: t, setIsOpen: r } = e;
|
|
4478
|
-
return /* @__PURE__ */
|
|
4479
|
-
/* @__PURE__ */
|
|
4480
|
-
/* @__PURE__ */
|
|
4481
|
-
/* @__PURE__ */
|
|
4482
|
-
/* @__PURE__ */
|
|
4483
|
-
e.
|
|
4478
|
+
return /* @__PURE__ */ O.jsxs(we, { open: t, onClose: () => r(!1), className: "relative z-50", children: [
|
|
4479
|
+
/* @__PURE__ */ O.jsx("div", { className: "fixed inset-0 bg-black/40", "aria-hidden": "true" }),
|
|
4480
|
+
/* @__PURE__ */ O.jsx("div", { className: "fixed inset-0 flex w-screen items-center justify-center p-4", children: /* @__PURE__ */ O.jsxs(we.Panel, { className: "flex w-[260px] flex-col gap-[16px] rounded-[16px] bg-white p-[20px]", children: [
|
|
4481
|
+
/* @__PURE__ */ O.jsxs("div", { className: "flex flex-col gap-[8px]", children: [
|
|
4482
|
+
e.title && /* @__PURE__ */ O.jsx(we.Title, { className: "whitespace-pre-wrap text-[18px] font-bold leading-[26px] text-[#2C2F34]", children: e.title }),
|
|
4483
|
+
e.image && /* @__PURE__ */ O.jsx("img", { src: e.image.url, alt: e.image.alt }),
|
|
4484
|
+
e.description && e.description !== "" && /* @__PURE__ */ O.jsx(we.Description, { className: "break-all text-[16px] leading-[24px] text-[#585E67]", children: e.description })
|
|
4484
4485
|
] }),
|
|
4485
|
-
/* @__PURE__ */
|
|
4486
|
-
/* @__PURE__ */
|
|
4486
|
+
/* @__PURE__ */ O.jsxs("div", { className: "flex flex-col gap-[4px]", children: [
|
|
4487
|
+
/* @__PURE__ */ O.jsx(
|
|
4487
4488
|
"button",
|
|
4488
4489
|
{
|
|
4489
|
-
className: "w-full
|
|
4490
|
+
className: "w-full rounded-[12px] bg-[#FF592C] px-[12px] py-[14px] text-[14px] font-bold leading-[22px] text-white",
|
|
4490
4491
|
onClick: e.confirm.onClick,
|
|
4491
4492
|
children: e.confirm.text
|
|
4492
4493
|
}
|
|
4493
4494
|
),
|
|
4494
|
-
e.cancel && /* @__PURE__ */
|
|
4495
|
+
e.cancel && /* @__PURE__ */ O.jsx(
|
|
4495
4496
|
"button",
|
|
4496
4497
|
{
|
|
4497
4498
|
onClick: () => r(!1),
|
|
4498
|
-
className: "w-full
|
|
4499
|
+
className: "w-full rounded-[12px] bg-[#F0F1F2] px-[12px] py-[14px] text-[14px] font-bold leading-[22px] text-[#585E67]",
|
|
4499
4500
|
children: e.cancel.text
|
|
4500
4501
|
}
|
|
4501
4502
|
)
|