motile-ui 1.3.0 โ 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -6
- package/dist/components/Accordion/Accordion.css +1 -1
- package/dist/components/Badge/Badge.css +1 -1
- package/dist/components/Button/Button.css +1 -1
- package/dist/components/Checkbox/Checkbox.css +1 -1
- package/dist/components/Checkbox/Checkbox.js +7 -5
- package/dist/components/Dock/Dock.css +1 -1
- package/dist/components/Drawer/Drawer.css +1 -1
- package/dist/components/Drawer/Drawer.js +3 -1
- package/dist/components/Input/Input.css +1 -1
- package/dist/components/Input/Input.d.ts +6 -0
- package/dist/components/Input/Input.js +48 -44
- package/dist/components/Modal/Modal.css +1 -1
- package/dist/components/Modal/Modal.js +53 -51
- package/dist/components/NumberFlow/NumberFlow.css +1 -1
- package/dist/components/Popover/Popover.css +1 -1
- package/dist/components/Popover/Popover.js +77 -80
- package/dist/components/Select/Select.css +1 -1
- package/dist/components/Select/Select.js +61 -59
- package/dist/components/Sheet/Sheet.css +1 -1
- package/dist/components/Sheet/Sheet.js +3 -1
- package/dist/components/Skeleton/Skeleton.css +1 -1
- package/dist/components/SpeedDial/SpeedDial.css +1 -1
- package/dist/components/SpeedDial/SpeedDial.js +38 -36
- package/dist/components/Switch/Switch.css +1 -1
- package/dist/components/Switch/Switch.js +15 -14
- package/dist/components/Tab/Tab.css +1 -1
- package/dist/components/Textarea/Textarea.css +1 -1
- package/dist/components/Textarea/Textarea.d.ts +6 -0
- package/dist/components/Textarea/Textarea.js +44 -40
- package/dist/components/TimePicker/TimePicker.css +1 -1
- package/dist/components/Toast/Toast.css +1 -1
- package/dist/components/Tooltip/Tooltip.css +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +2 -1
- package/dist/components/Tooltip/Tooltip.js +169 -176
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +10 -8
- package/dist/hooks/useAutoBlur.d.ts +45 -0
- package/dist/hooks/useAutoBlur.js +32 -0
- package/dist/hooks/useEscapeKey.d.ts +15 -1
- package/dist/hooks/useEscapeKey.js +27 -12
- package/dist/hooks/useHistoryClose.js +92 -44
- package/dist/hooks/useScrollLock.js +42 -24
- package/package.json +1 -1
- package/dist/components/Accordion/Accordion.test.d.ts +0 -1
- package/dist/components/Badge/Badge.test.d.ts +0 -1
- package/dist/components/Button/Button.test.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.test.d.ts +0 -1
- package/dist/components/Dock/Dock.test.d.ts +0 -1
- package/dist/components/Drawer/Drawer.test.d.ts +0 -1
- package/dist/components/Input/Input.test.d.ts +0 -1
- package/dist/components/Modal/Modal.test.d.ts +0 -1
- package/dist/components/NumberFlow/NumberFlow.test.d.ts +0 -1
- package/dist/components/Popover/Popover.test.d.ts +0 -1
- package/dist/components/Select/Select.test.d.ts +0 -1
- package/dist/components/Sheet/Sheet.test.d.ts +0 -1
- package/dist/components/Skeleton/Skeleton.test.d.ts +0 -1
- package/dist/components/SpeedDial/SpeedDial.test.d.ts +0 -1
- package/dist/components/Switch/Switch.test.d.ts +0 -1
- package/dist/components/Tab/Tab.test.d.ts +0 -1
- package/dist/components/Textarea/Textarea.test.d.ts +0 -1
- package/dist/components/TimePicker/TimePicker.test.d.ts +0 -1
- package/dist/components/Toast/Toast.test.d.ts +0 -1
- package/dist/components/Tooltip/Tooltip.test.d.ts +0 -1
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/utils.d.ts +0 -22
package/README.md
CHANGED
|
@@ -43,6 +43,8 @@
|
|
|
43
43
|
- ๐ฑ **๋ชจ๋ฐ์ผ ์ต์ ํ** - ํฐ์น ์นํ์ ์ธํฐ๋์
๊ณผ ๋ฐ์ํ ๋์์ธ
|
|
44
44
|
- โฟ **์ ๊ทผ์ฑ** - WCAG 2.1 AA ์ค์ ์ปดํฌ๋ํธ
|
|
45
45
|
- ๐ฏ **ํธ๋ฆฌ์์ดํน ์ง์** - ํ์ํ ๊ฒ๋ง import
|
|
46
|
+
- ๐ง
**์ค์ฒฉ ์ค๋ฒ๋ ์ด ์์ ** - Sheet ์ Sheet์ฒ๋ผ ์ค๋ฒ๋ ์ด๊ฐ ๊ฒน์ณ๋ ๋ค๋ก๊ฐ๊ธฐยทESCยท์คํฌ๋กค ์ ๊ธ์ด ํ ๊ฒน์ฉ ์ ํํ ๋์
|
|
47
|
+
- โจ๏ธ **์คํฌ๋กค ์ ํค๋ณด๋ ๋ซ๊ธฐ** - ๋ชจ๋ฐ์ผ์์ ์
๋ ฅ์ ํฌ์ปค์คํ ์ฑ ์คํฌ๋กคํ๋ฉด ์ํํธ ํค๋ณด๋๋ฅผ ์๋์ผ๋ก ๋ซ์ (useAutoBlur ํ
ยท autoBlur prop)
|
|
46
48
|
- ๐ **ํ๋ถํ ๋ฌธ์** - Storybook์ ํตํ ๋ผ์ด๋ธ ์์ ์ ๊ณต
|
|
47
49
|
|
|
48
50
|
---
|
|
@@ -117,16 +119,23 @@ Motile UI๋ CSS ๋ณ์๋ฅผ ํตํด ์ ์ญ ํ
๋ง๋ฅผ ์ฝ๊ฒ ์ปค์คํฐ๋ง์ด์งํ
|
|
|
117
119
|
/* ์
๋ ฅ ํ๋ */
|
|
118
120
|
--motile-ui-input: #8b5cf6; /* Input ํฌ์ปค์ค ์์ */
|
|
119
121
|
--motile-ui-textarea: #ec4899; /* Textarea ํฌ์ปค์ค ์์ */
|
|
122
|
+
--motile-ui-select: #3b82f6; /* Select ํฌ์ปค์ค ์์ */
|
|
120
123
|
|
|
121
124
|
/* ์ ํ ์ปจํธ๋กค */
|
|
122
125
|
--motile-ui-checkbox: #f59e0b; /* Checkbox ์ฒดํฌ ์์ */
|
|
123
126
|
--motile-ui-switch: #14b8a6; /* Switch ํ์ฑํ ์์ */
|
|
124
127
|
|
|
125
|
-
/*
|
|
126
|
-
--motile-ui-
|
|
128
|
+
/* ๋ค๋น๊ฒ์ด์
*/
|
|
129
|
+
--motile-ui-tab: #3b82f6; /* Tab ํ์ฑํ ์์ */
|
|
130
|
+
--motile-ui-dock: #3b82f6; /* Dock ํ์ด๋ผ์ดํธ ์์ */
|
|
131
|
+
|
|
132
|
+
/* ์ค๋ฒ๋ ์ด */
|
|
127
133
|
--motile-ui-tooltip: #1f2937; /* Tooltip ๋ฐฐ๊ฒฝ ์์ */
|
|
128
134
|
--motile-ui-popover: #3b82f6; /* Popover ๊ฐ์กฐ ์์ */
|
|
129
|
-
|
|
135
|
+
|
|
136
|
+
/* ๊ธฐํ ์ปดํฌ๋ํธ */
|
|
137
|
+
--motile-ui-badge: #ef4444; /* Badge ๋ฐฐ๊ฒฝ ์์ */
|
|
138
|
+
--motile-ui-speeddial: #3b82f6; /* SpeedDial ๋ฒํผ ์์ */
|
|
130
139
|
}
|
|
131
140
|
```
|
|
132
141
|
|
|
@@ -227,6 +236,8 @@ MIT ยฉ [Innopers](https://github.com/Innopers)
|
|
|
227
236
|
- ๐ฑ **Mobile Optimized** - Touch-friendly interactions and responsive design
|
|
228
237
|
- โฟ **Accessible** - WCAG 2.1 AA compliant components
|
|
229
238
|
- ๐ฏ **Tree-shakeable** - Import only what you need
|
|
239
|
+
- ๐ง
**Nesting-Safe Overlays** - Back navigation, ESC, and scroll lock peel one layer at a time when overlays stack (e.g. Sheet over Sheet)
|
|
240
|
+
- โจ๏ธ **Dismiss Keyboard on Scroll** - On mobile, scrolling with an input focused auto-dismisses the soft keyboard (useAutoBlur hook ยท autoBlur prop)
|
|
230
241
|
- ๐ **Well Documented** - Comprehensive docs with live examples via Storybook
|
|
231
242
|
|
|
232
243
|
---
|
|
@@ -301,16 +312,23 @@ Set global colors for specific component types:
|
|
|
301
312
|
/* Input Fields */
|
|
302
313
|
--motile-ui-input: #8b5cf6; /* Input focus color */
|
|
303
314
|
--motile-ui-textarea: #ec4899; /* Textarea focus color */
|
|
315
|
+
--motile-ui-select: #3b82f6; /* Select focus color */
|
|
304
316
|
|
|
305
317
|
/* Selection Controls */
|
|
306
318
|
--motile-ui-checkbox: #f59e0b; /* Checkbox checked color */
|
|
307
319
|
--motile-ui-switch: #14b8a6; /* Switch active color */
|
|
308
320
|
|
|
309
|
-
/*
|
|
310
|
-
--motile-ui-
|
|
321
|
+
/* Navigation */
|
|
322
|
+
--motile-ui-tab: #3b82f6; /* Tab active color */
|
|
323
|
+
--motile-ui-dock: #3b82f6; /* Dock highlight color */
|
|
324
|
+
|
|
325
|
+
/* Overlays */
|
|
311
326
|
--motile-ui-tooltip: #1f2937; /* Tooltip background color */
|
|
312
327
|
--motile-ui-popover: #3b82f6; /* Popover highlight color */
|
|
313
|
-
|
|
328
|
+
|
|
329
|
+
/* Other Components */
|
|
330
|
+
--motile-ui-badge: #ef4444; /* Badge background color */
|
|
331
|
+
--motile-ui-speeddial: #3b82f6; /* SpeedDial button color */
|
|
314
332
|
}
|
|
315
333
|
```
|
|
316
334
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.motile-accordion{overflow:hidden}.motile-accordion__header{width:100%;border:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;transition:background-color .2s ease;text-align:left;-webkit-tap-highlight-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;-webkit-user-select:none;user-select:none;padding:16px 20px;color:#111827;background-color:transparent;font-size:16px;font-weight:400;-webkit-text-size-adjust:100%}.motile-accordion__header:focus-visible{outline:2px solid #3b82f6;outline-offset:-2px}@media (hover: hover) and (pointer: fine){.motile-accordion__header:not(:disabled):hover{background-color:#f9fafb}}@media (hover: none) and (pointer: coarse){.motile-accordion__header:not(:disabled):active{background-color:#f3f4f6}}.motile-accordion__title{flex:1;min-width:0;text-align:left;font-size:16px;font-weight:400;color:#111827}.motile-accordion__chevron{flex-shrink:0;transition:transform .2s cubic-bezier(.4,0,.2,1);width:20px;height:20px;color:#9ca3af}.motile-accordion--expanded .motile-accordion__chevron
|
|
1
|
+
:where(.motile-accordion){overflow:hidden}:where(.motile-accordion__header){width:100%;border:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;transition:background-color .2s ease;text-align:left;-webkit-tap-highlight-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;-webkit-user-select:none;user-select:none;padding:16px 20px;color:#111827;background-color:transparent;font-size:16px;font-weight:400;-webkit-text-size-adjust:100%}:where(.motile-accordion__header:focus-visible){outline:2px solid #3b82f6;outline-offset:-2px}@media (hover: hover) and (pointer: fine){:where(.motile-accordion__header:not(:disabled):hover){background-color:#f9fafb}}@media (hover: none) and (pointer: coarse){:where(.motile-accordion__header:not(:disabled):active){background-color:#f3f4f6}}:where(.motile-accordion__title){flex:1;min-width:0;text-align:left;font-size:16px;font-weight:400;color:#111827}:where(.motile-accordion__chevron){flex-shrink:0;transition:transform .2s cubic-bezier(.4,0,.2,1);width:20px;height:20px;color:#9ca3af}:where(.motile-accordion--expanded .motile-accordion__chevron),:where(.motile-accordion[data-state=open] .motile-accordion__chevron){transform:rotate(180deg)}:where(.motile-accordion__panel){overflow:hidden;height:0;transition:height .25s cubic-bezier(.4,0,.2,1)}:where(.motile-accordion__content){line-height:1.6;opacity:0;transform:translateY(-8px);transition:opacity .25s cubic-bezier(.4,0,.2,1),transform .25s cubic-bezier(.4,0,.2,1);padding:14px 20px 20px;color:#374151;font-size:14px}:where(.motile-accordion--expanded .motile-accordion__content),:where(.motile-accordion[data-state=open] .motile-accordion__content){opacity:1;transform:translateY(0)}:where(.motile-accordion--disabled),:where(.motile-accordion[data-disabled]){cursor:not-allowed;opacity:.6}:where(.motile-accordion--disabled .motile-accordion__header),:where(.motile-accordion[data-disabled] .motile-accordion__header){cursor:not-allowed}:where(.motile-accordion--outlined){border:1.5px solid #e5e7eb;border-radius:12px}:where(.motile-accordion--outlined.motile-accordion--expanded .motile-accordion__header),:where(.motile-accordion--outlined[data-state=open] .motile-accordion__header){border-bottom:1px solid #e5e7eb}@media (max-width: 768px){:where(.motile-accordion__header){padding:16px 18px;font-size:16px;-webkit-text-size-adjust:100%}:where(.motile-accordion__content){padding:14px 18px 18px;font-size:15px;-webkit-text-size-adjust:100%}:where(.motile-accordion__title){font-size:16px}:where(.motile-accordion__chevron){width:20px;height:20px}}@media (prefers-reduced-motion: reduce){:where(.motile-accordion__panel),:where(.motile-accordion__content),:where(.motile-accordion__chevron){transition:none!important}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.motile-badge{display:inline-flex;align-items:center;justify-content:center;font-weight:500;line-height:1.2;border-radius:9999px;white-space:nowrap;vertical-align:middle;background-color:var( --motile-badge-color, var(--motile-ui-badge, var(--motile-theme, #3b82f6)) );color:#fff}.motile-badge--large{padding:6px 16px;font-size:1rem;min-height:32px}.motile-badge--medium{padding:5px 12px;font-size:.875rem;min-height:26px}.motile-badge--small{padding:4px 8px;font-size:.75rem;min-height:24px}.motile-badge--primary{background-color:var( --motile-badge-color, var(--motile-ui-badge, var(--motile-theme, #3b82f6)) );color:#fff}.motile-badge--secondary{background:color-mix(in srgb,var( --motile-badge-color, var(--motile-ui-badge, var(--motile-theme, #3b82f6)) ) 10%,transparent);color:var( --motile-badge-color, var(--motile-ui-badge, var(--motile-theme, #3b82f6)) );border:1px solid var( --motile-badge-color, var(--motile-ui-badge, var(--motile-theme, #3b82f6)) )}.motile-badge--secondary.motile-badge--large{padding:5px 15px;min-height:30px}.motile-badge--secondary.motile-badge--medium{padding:4px 11px;min-height:24px}.motile-badge--secondary.motile-badge--small{padding:3px 7px;min-height:22px}.motile-badge--outlined{background-color:#fff;color:var( --motile-badge-color, var(--motile-ui-badge, var(--motile-theme, #3b82f6)) );border:1px solid var( --motile-badge-color, var(--motile-ui-badge, var(--motile-theme, #3b82f6)) )}.motile-badge--outlined.motile-badge--large{padding:5px 15px;min-height:30px}.motile-badge--outlined.motile-badge--medium{padding:4px 11px;min-height:24px}.motile-badge--outlined.motile-badge--small{padding:3px 7px;min-height:22px}.motile-badge--dot{background-color:transparent;padding:0;gap:6px;color:inherit}.motile-badge__dot{display:inline-block;border-radius:50%;background-color:var( --motile-badge-color, var(--motile-ui-badge, var(--motile-theme, #3b82f6)) )}.motile-badge__text{line-height:1.2}.motile-badge--dot.motile-badge--large .motile-badge__dot{width:12px;height:12px}.motile-badge--dot.motile-badge--medium .motile-badge__dot{width:10px;height:10px}.motile-badge--dot.motile-badge--small .motile-badge__dot{width:8px;height:8px}.motile-badge--shimmer{background-color:var( --motile-badge-color, var(--motile-ui-badge, var(--motile-theme, #3b82f6)) );color:#fff;position:relative;overflow:hidden}.motile-badge--shimmer:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.3) 50%,transparent 100%);animation:shimmer 2s infinite}@keyframes shimmer{0%{transform:translate(0)}to{transform:translate(200%)}}@media (prefers-reduced-motion: reduce){.motile-badge--shimmer:before{animation:none}}@media (max-width: 768px){.motile-badge:active{filter:brightness(.92)}}@supports (-webkit-touch-callout: none){.motile-badge{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}}
|
|
1
|
+
:where(.motile-badge){display:inline-flex;align-items:center;justify-content:center;font-weight:500;line-height:1.2;border-radius:9999px;white-space:nowrap;vertical-align:middle;background-color:var( --motile-badge-color, var(--motile-ui-badge, var(--motile-theme, #3b82f6)) );color:#fff}:where(.motile-badge--large){padding:6px 16px;font-size:1rem;min-height:32px}:where(.motile-badge--medium){padding:5px 12px;font-size:.875rem;min-height:26px}:where(.motile-badge--small){padding:4px 8px;font-size:.75rem;min-height:24px}:where(.motile-badge--primary){background-color:var( --motile-badge-color, var(--motile-ui-badge, var(--motile-theme, #3b82f6)) );color:#fff}:where(.motile-badge--secondary){background:color-mix(in srgb,var( --motile-badge-color, var(--motile-ui-badge, var(--motile-theme, #3b82f6)) ) 10%,transparent);color:var( --motile-badge-color, var(--motile-ui-badge, var(--motile-theme, #3b82f6)) );border:1px solid var( --motile-badge-color, var(--motile-ui-badge, var(--motile-theme, #3b82f6)) )}:where(.motile-badge--secondary.motile-badge--large){padding:5px 15px;min-height:30px}:where(.motile-badge--secondary.motile-badge--medium){padding:4px 11px;min-height:24px}:where(.motile-badge--secondary.motile-badge--small){padding:3px 7px;min-height:22px}:where(.motile-badge--outlined){background-color:#fff;color:var( --motile-badge-color, var(--motile-ui-badge, var(--motile-theme, #3b82f6)) );border:1px solid var( --motile-badge-color, var(--motile-ui-badge, var(--motile-theme, #3b82f6)) )}:where(.motile-badge--outlined.motile-badge--large){padding:5px 15px;min-height:30px}:where(.motile-badge--outlined.motile-badge--medium){padding:4px 11px;min-height:24px}:where(.motile-badge--outlined.motile-badge--small){padding:3px 7px;min-height:22px}:where(.motile-badge--dot){background-color:transparent;padding:0;gap:6px;color:inherit}:where(.motile-badge__dot){display:inline-block;border-radius:50%;background-color:var( --motile-badge-color, var(--motile-ui-badge, var(--motile-theme, #3b82f6)) )}:where(.motile-badge__text){line-height:1.2}:where(.motile-badge--dot.motile-badge--large .motile-badge__dot){width:12px;height:12px}:where(.motile-badge--dot.motile-badge--medium .motile-badge__dot){width:10px;height:10px}:where(.motile-badge--dot.motile-badge--small .motile-badge__dot){width:8px;height:8px}:where(.motile-badge--shimmer){background-color:var( --motile-badge-color, var(--motile-ui-badge, var(--motile-theme, #3b82f6)) );color:#fff;position:relative;overflow:hidden}:where(.motile-badge--shimmer):before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.3) 50%,transparent 100%);animation:shimmer 2s infinite}@keyframes shimmer{0%{transform:translate(0)}to{transform:translate(200%)}}@media (prefers-reduced-motion: reduce){:where(.motile-badge--shimmer):before{animation:none}}@media (max-width: 768px){:where(.motile-badge:active){filter:brightness(.92)}}@supports (-webkit-touch-callout: none){:where(.motile-badge){-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.motile-btn{width:fit-content;border:none;border-radius:12px;font-weight:600;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);outline:none;display:inline-flex;align-items:center;justify-content:center;position:relative;overflow:hidden;min-height:fit-content}.motile-btn:active:not(.motile-btn--disabled){filter:brightness(.95);box-shadow:0 2px 4px #0000001a}.motile-btn--primary{background:var( --motile-btn-color, var(--motile-ui-btn, var(--motile-theme, #3b82f6)) );color:#fff;box-shadow:0 1px 2px #0000000d}@media (hover: hover){.motile-btn--primary:hover:not(.motile-btn--disabled){filter:brightness(.9);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}}.motile-btn--hover-on-touch.motile-btn--primary:hover:not(.motile-btn--disabled){filter:brightness(.9);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.motile-btn--secondary{background:#fff;color:var( --motile-btn-color, var(--motile-ui-btn, var(--motile-theme, #3b82f6)) );border:1px solid var(--motile-btn-color, var(--motile-ui-btn, var(--motile-theme, #3b82f6)));box-shadow:none}@media (hover: hover){.motile-btn--secondary:hover:not(.motile-btn--disabled){background:color-mix(in srgb,var( --motile-btn-color, var(--motile-ui-btn, var(--motile-theme, #3b82f6)) ) 10%,transparent);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}}.motile-btn--hover-on-touch.motile-btn--secondary:hover:not(.motile-btn--disabled){background:color-mix(in srgb,var(--motile-btn-color, var(--motile-ui-btn, var(--motile-theme, #3b82f6))) 10%,transparent);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.motile-btn--ghost{background:transparent;border:none;color:var( --motile-btn-color, var(--motile-ui-btn, var(--motile-theme, #3b82f6)) );box-shadow:none}@media (hover: hover){.motile-btn--ghost:hover:not(.motile-btn--disabled){box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}}.motile-btn--hover-on-touch.motile-btn--ghost:hover:not(.motile-btn--disabled){box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.motile-btn--large{padding:0 24px;font-size:16px;height:56px;min-height:56px;line-height:1.4}.motile-btn--medium{padding:0 20px;font-size:15px;height:48px;min-height:48px;min-width:80px;line-height:1.4}.motile-btn--small{padding:0 16px;font-size:14px;height:40px;min-height:40px;min-width:64px;line-height:1.4}.motile-btn--primary.motile-btn--disabled{opacity:.5;filter:saturate(.9);cursor:not-allowed;transform:none;box-shadow:none;pointer-events:none}.motile-btn--secondary.motile-btn--disabled{background:#e5e7eb;color:#6b7280;border:none;cursor:not-allowed;transform:none;box-shadow:none;pointer-events:none}.motile-btn--ghost.motile-btn--disabled{background:#e5e7eb;color:#6b7280;cursor:not-allowed;transform:none;box-shadow:none;pointer-events:none}.motile-btn--full-width{width:100%}.motile-btn svg{flex-shrink:0;margin-right:8px}.motile-btn svg:last-child{margin-right:0;margin-left:8px}.motile-btn svg:only-child{margin:0}@media (max-width: 1024px){.motile-btn--large{padding:0 20px;font-size:15px;height:54px;min-height:54px}}@media (max-width: 768px){.motile-btn--large{padding:0 18px;font-size:15px;height:52px;min-height:52px}.motile-btn:active:not(.motile-btn--disabled){filter:brightness(.92)}}@supports (-webkit-touch-callout: none){.motile-btn{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}}.motile-btn__wrapper{display:grid;grid-template-areas:"content";place-items:center;width:100%;height:100%}.motile-btn__content{grid-area:content;display:inline-flex;align-items:center;justify-content:center}.motile-btn__loading{grid-area:content;display:flex;align-items:center;justify-content:center}.motile-btn__dots{display:flex;gap:8px;align-items:center;height:1em}.motile-btn--large .motile-btn__dot{width:8px;height:8px}.motile-btn--medium .motile-btn__dot{width:6px;height:6px}.motile-btn--small .motile-btn__dot{width:5px;height:5px}.motile-btn__dot{border-radius:50%;background-color:#ffffffb3;animation:motile-btn-loading-bounce 1.4s ease-in-out infinite both}.motile-btn__dot:nth-child(1){animation-delay:-.32s}.motile-btn__dot:nth-child(2){animation-delay:-.16s}.motile-btn__dot:nth-child(3){animation-delay:0s}.motile-btn--primary .motile-btn__dot{background-color:#ffffffb3}.motile-btn--secondary .motile-btn__dot
|
|
1
|
+
:where(.motile-btn){width:fit-content;border:none;border-radius:12px;font-weight:600;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);outline:none;display:inline-flex;align-items:center;justify-content:center;position:relative;overflow:hidden;min-height:fit-content}:where(.motile-btn:active:not(.motile-btn--disabled)){filter:brightness(.95);box-shadow:0 2px 4px #0000001a}:where(.motile-btn--primary){background:var( --motile-btn-color, var(--motile-ui-btn, var(--motile-theme, #3b82f6)) );color:#fff;box-shadow:0 1px 2px #0000000d}@media (hover: hover){:where(.motile-btn--primary:hover:not(.motile-btn--disabled)){filter:brightness(.9);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}}:where(.motile-btn--hover-on-touch.motile-btn--primary:hover:not(.motile-btn--disabled)){filter:brightness(.9);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}:where(.motile-btn--secondary){background:#fff;color:var( --motile-btn-color, var(--motile-ui-btn, var(--motile-theme, #3b82f6)) );border:1px solid var(--motile-btn-color, var(--motile-ui-btn, var(--motile-theme, #3b82f6)));box-shadow:none}@media (hover: hover){:where(.motile-btn--secondary:hover:not(.motile-btn--disabled)){background:color-mix(in srgb,var( --motile-btn-color, var(--motile-ui-btn, var(--motile-theme, #3b82f6)) ) 10%,transparent);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}}:where(.motile-btn--hover-on-touch.motile-btn--secondary:hover:not(.motile-btn--disabled)){background:color-mix(in srgb,var(--motile-btn-color, var(--motile-ui-btn, var(--motile-theme, #3b82f6))) 10%,transparent);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}:where(.motile-btn--ghost){background:transparent;border:none;color:var( --motile-btn-color, var(--motile-ui-btn, var(--motile-theme, #3b82f6)) );box-shadow:none}@media (hover: hover){:where(.motile-btn--ghost:hover:not(.motile-btn--disabled)){box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}}:where(.motile-btn--hover-on-touch.motile-btn--ghost:hover:not(.motile-btn--disabled)){box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}:where(.motile-btn--large){padding:0 24px;font-size:16px;height:56px;min-height:56px;line-height:1.4}:where(.motile-btn--medium){padding:0 20px;font-size:15px;height:48px;min-height:48px;min-width:80px;line-height:1.4}:where(.motile-btn--small){padding:0 16px;font-size:14px;height:40px;min-height:40px;min-width:64px;line-height:1.4}:where(.motile-btn--primary.motile-btn--disabled){opacity:.5;filter:saturate(.9);cursor:not-allowed;transform:none;box-shadow:none;pointer-events:none}:where(.motile-btn--secondary.motile-btn--disabled){background:#e5e7eb;color:#6b7280;border:none;cursor:not-allowed;transform:none;box-shadow:none;pointer-events:none}:where(.motile-btn--ghost.motile-btn--disabled){background:#e5e7eb;color:#6b7280;cursor:not-allowed;transform:none;box-shadow:none;pointer-events:none}:where(.motile-btn--full-width){width:100%}:where(.motile-btn svg){flex-shrink:0;margin-right:8px}:where(.motile-btn svg:last-child){margin-right:0;margin-left:8px}:where(.motile-btn svg:only-child){margin:0}@media (max-width: 1024px){:where(.motile-btn--large){padding:0 20px;font-size:15px;height:54px;min-height:54px}}@media (max-width: 768px){:where(.motile-btn--large){padding:0 18px;font-size:15px;height:52px;min-height:52px}:where(.motile-btn:active:not(.motile-btn--disabled)){filter:brightness(.92)}}@supports (-webkit-touch-callout: none){:where(.motile-btn){-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}}:where(.motile-btn__wrapper){display:grid;grid-template-areas:"content";place-items:center;width:100%;height:100%}:where(.motile-btn__content){grid-area:content;display:inline-flex;align-items:center;justify-content:center}:where(.motile-btn__loading){grid-area:content;display:flex;align-items:center;justify-content:center}:where(.motile-btn__dots){display:flex;gap:8px;align-items:center;height:1em}:where(.motile-btn--large .motile-btn__dot){width:8px;height:8px}:where(.motile-btn--medium .motile-btn__dot){width:6px;height:6px}:where(.motile-btn--small .motile-btn__dot){width:5px;height:5px}:where(.motile-btn__dot){border-radius:50%;background-color:#ffffffb3;animation:motile-btn-loading-bounce 1.4s ease-in-out infinite both}:where(.motile-btn__dot:nth-child(1)){animation-delay:-.32s}:where(.motile-btn__dot:nth-child(2)){animation-delay:-.16s}:where(.motile-btn__dot:nth-child(3)){animation-delay:0s}:where(.motile-btn--primary .motile-btn__dot){background-color:#ffffffb3}:where(.motile-btn--secondary .motile-btn__dot){background-color:#9ca3afb3}:where(.motile-btn--ghost .motile-btn__dot){background-color:#9ca3afb3}@keyframes motile-btn-loading-bounce{0%,80%,to{transform:scale(1);opacity:.4}40%{transform:scale(1.2);opacity:1}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.motile-checkbox-container{display:inline-flex;flex-direction:column;gap:4px}.motile-checkbox-wrapper{display:flex;align-items:center;gap:8px;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.motile-checkbox-container--disabled .motile-checkbox-wrapper{cursor:not-allowed;opacity:.6}.motile-checkbox{position:absolute;opacity:0;width:0;height:0;margin:0;pointer-events:none}.motile-checkbox:focus{outline:none}.motile-checkbox__mark{position:relative;width:20px;height:20px;min-width:20px;min-height:20px;border:2px solid #d1d5db;border-radius:4px;background-color:#fff;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box}.motile-checkbox--rounded+.motile-checkbox__mark{border-radius:50%}.motile-checkbox--square+.motile-checkbox__mark{border-radius:0}.motile-checkbox--large+.motile-checkbox__mark{width:24px;height:24px;min-width:24px;min-height:24px}.motile-checkbox--large+.motile-checkbox__mark .motile-checkbox__check-icon{width:14px;height:14px}.motile-checkbox--medium+.motile-checkbox__mark{width:20px;height:20px;min-width:20px;min-height:20px}.motile-checkbox--medium+.motile-checkbox__mark .motile-checkbox__check-icon{width:12px;height:12px}.motile-checkbox--small+.motile-checkbox__mark{width:16px;height:16px;min-width:16px;min-height:16px}.motile-checkbox--small+.motile-checkbox__mark .motile-checkbox__check-icon{width:10px;height:10px}.motile-checkbox__check-icon{width:12px;height:12px;color:#fff;flex-shrink:0;opacity:0;transform:scale(.8);transition:all .2s cubic-bezier(.4,0,.2,1)}.motile-checkbox__check-icon path{stroke-dasharray:16;stroke-dashoffset:16;transition:stroke-dashoffset .3s cubic-bezier(.65,0,.35,1) .05s}.motile-checkbox--filled+.motile-checkbox__mark{background-color:#e5e7eb;border-color:#e5e7eb}.motile-checkbox--filled+.motile-checkbox__mark .motile-checkbox__check-icon{opacity:1;transform:scale(1)}.motile-checkbox--filled+.motile-checkbox__mark .motile-checkbox__check-icon path{stroke-dashoffset:0}.motile-checkbox:checked+.motile-checkbox__mark{background-color:var( --motile-checkbox-color, var(--motile-ui-checkbox, var(--motile-theme, #3b82f6)) );border-color:var( --motile-checkbox-color, var(--motile-ui-checkbox, var(--motile-theme, #3b82f6)) );animation:checkboxBounce .4s cubic-bezier(.68,-.55,.265,1.55)}.motile-checkbox:checked+.motile-checkbox__mark .motile-checkbox__check-icon{opacity:1;transform:scale(1)}.motile-checkbox:checked+.motile-checkbox__mark .motile-checkbox__check-icon path{stroke-dashoffset:0}.motile-checkbox--filled:checked+.motile-checkbox__mark{background-color:var( --motile-checkbox-color, var(--motile-ui-checkbox, var(--motile-theme, #3b82f6)) );border-color:var( --motile-checkbox-color, var(--motile-ui-checkbox, var(--motile-theme, #3b82f6)) )}@keyframes checkboxBounce{0%{transform:scale(1)}50%{transform:scale(1.15)}to{transform:scale(1)}}.motile-checkbox-container:not(.motile-checkbox-container--filled) .motile-checkbox-wrapper:hover .motile-checkbox__mark{border-color:var( --motile-checkbox-color, var(--motile-ui-checkbox, var(--motile-theme, #3b82f6)) )}.motile-checkbox-container:not(.motile-checkbox-container--filled) .motile-checkbox:checked+.motile-checkbox__mark:hover{background-color:color-mix(in srgb,var( --motile-checkbox-color, var(--motile-ui-checkbox, var(--motile-theme, #3b82f6)) ) 90%,black);border-color:color-mix(in srgb,var( --motile-checkbox-color, var(--motile-ui-checkbox, var(--motile-theme, #3b82f6)) ) 90%,black)}.motile-checkbox:disabled+.motile-checkbox__mark{background-color:#f3f4f6;border-color:#d1d5db;cursor:not-allowed}.motile-checkbox:disabled:checked+.motile-checkbox__mark{background-color:#d1d5db;border-color:#d1d5db}.motile-checkbox__label{font-size:14px;color:#374151;cursor:pointer;margin:0;padding:0}.motile-checkbox-container--large .motile-checkbox__label{font-size:16px}.motile-checkbox-container--medium .motile-checkbox__label{font-size:14px}.motile-checkbox-container--small .motile-checkbox__label{font-size:12px}.motile-checkbox__label--disabled{color:#9ca3af;cursor:not-allowed}
|
|
1
|
+
:where(.motile-checkbox-container){display:inline-flex;flex-direction:column;gap:4px}:where(.motile-checkbox-wrapper){display:flex;align-items:center;gap:8px;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}:where(.motile-checkbox-container--disabled .motile-checkbox-wrapper){cursor:not-allowed;opacity:.6}:where(.motile-checkbox){position:absolute;opacity:0;width:0;height:0;margin:0;pointer-events:none}:where(.motile-checkbox:focus){outline:none}:where(.motile-checkbox__mark){position:relative;width:20px;height:20px;min-width:20px;min-height:20px;border:2px solid #d1d5db;border-radius:4px;background-color:#fff;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box}:where(.motile-checkbox--rounded+.motile-checkbox__mark){border-radius:50%}:where(.motile-checkbox--square+.motile-checkbox__mark){border-radius:0}:where(.motile-checkbox--large+.motile-checkbox__mark){width:24px;height:24px;min-width:24px;min-height:24px}:where(.motile-checkbox--large+.motile-checkbox__mark .motile-checkbox__check-icon){width:14px;height:14px}:where(.motile-checkbox--medium+.motile-checkbox__mark){width:20px;height:20px;min-width:20px;min-height:20px}:where(.motile-checkbox--medium+.motile-checkbox__mark .motile-checkbox__check-icon){width:12px;height:12px}:where(.motile-checkbox--small+.motile-checkbox__mark){width:16px;height:16px;min-width:16px;min-height:16px}:where(.motile-checkbox--small+.motile-checkbox__mark .motile-checkbox__check-icon){width:10px;height:10px}:where(.motile-checkbox__check-icon){width:12px;height:12px;color:#fff;flex-shrink:0;opacity:0;transform:scale(.8);transition:all .2s cubic-bezier(.4,0,.2,1)}:where(.motile-checkbox__check-icon path){stroke-dasharray:16;stroke-dashoffset:16;transition:stroke-dashoffset .3s cubic-bezier(.65,0,.35,1) .05s}:where(.motile-checkbox--filled+.motile-checkbox__mark){background-color:#e5e7eb;border-color:#e5e7eb}:where(.motile-checkbox--filled+.motile-checkbox__mark .motile-checkbox__check-icon){opacity:1;transform:scale(1)}:where(.motile-checkbox--filled+.motile-checkbox__mark .motile-checkbox__check-icon path){stroke-dashoffset:0}:where(.motile-checkbox:checked+.motile-checkbox__mark){background-color:var( --motile-checkbox-color, var(--motile-ui-checkbox, var(--motile-theme, #3b82f6)) );border-color:var( --motile-checkbox-color, var(--motile-ui-checkbox, var(--motile-theme, #3b82f6)) );animation:checkboxBounce .4s cubic-bezier(.68,-.55,.265,1.55)}:where(.motile-checkbox:checked+.motile-checkbox__mark .motile-checkbox__check-icon){opacity:1;transform:scale(1)}:where(.motile-checkbox:checked+.motile-checkbox__mark .motile-checkbox__check-icon path){stroke-dashoffset:0}:where(.motile-checkbox--filled:checked+.motile-checkbox__mark){background-color:var( --motile-checkbox-color, var(--motile-ui-checkbox, var(--motile-theme, #3b82f6)) );border-color:var( --motile-checkbox-color, var(--motile-ui-checkbox, var(--motile-theme, #3b82f6)) )}@keyframes checkboxBounce{0%{transform:scale(1)}50%{transform:scale(1.15)}to{transform:scale(1)}}:where(.motile-checkbox-container:not(.motile-checkbox-container--filled) .motile-checkbox-wrapper:hover .motile-checkbox__mark){border-color:var( --motile-checkbox-color, var(--motile-ui-checkbox, var(--motile-theme, #3b82f6)) )}:where(.motile-checkbox-container:not(.motile-checkbox-container--filled) .motile-checkbox:checked+.motile-checkbox__mark:hover){background-color:color-mix(in srgb,var( --motile-checkbox-color, var(--motile-ui-checkbox, var(--motile-theme, #3b82f6)) ) 90%,black);border-color:color-mix(in srgb,var( --motile-checkbox-color, var(--motile-ui-checkbox, var(--motile-theme, #3b82f6)) ) 90%,black)}:where(.motile-checkbox:disabled+.motile-checkbox__mark){background-color:#f3f4f6;border-color:#d1d5db;cursor:not-allowed}:where(.motile-checkbox:disabled:checked+.motile-checkbox__mark){background-color:#d1d5db;border-color:#d1d5db}:where(.motile-checkbox__label){font-size:14px;color:#374151;cursor:pointer;margin:0;padding:0}:where(.motile-checkbox-container--large .motile-checkbox__label){font-size:16px}:where(.motile-checkbox-container--medium .motile-checkbox__label){font-size:14px}:where(.motile-checkbox-container--small .motile-checkbox__label){font-size:12px}:where(.motile-checkbox__label--disabled){color:#9ca3af;cursor:not-allowed}
|
|
@@ -12,13 +12,15 @@ const f = b(
|
|
|
12
12
|
disabled: n,
|
|
13
13
|
style: i,
|
|
14
14
|
...d
|
|
15
|
-
},
|
|
16
|
-
const e = "motile-checkbox",
|
|
15
|
+
}, $) => {
|
|
16
|
+
const e = "motile-checkbox", m = [
|
|
17
17
|
`${e}-container`,
|
|
18
18
|
`${e}-container--${s}`,
|
|
19
19
|
`${e}-container--${a}`,
|
|
20
20
|
n && `${e}-container--disabled`,
|
|
21
|
-
r && `${e}-container--filled
|
|
21
|
+
r && `${e}-container--filled`,
|
|
22
|
+
t
|
|
23
|
+
// CSS ๋ณ์๊ฐ ์์ ์์๋ก ์์๋๋๋ก container์๋ ์ ์ฉ
|
|
22
24
|
].filter(Boolean).join(" "), h = [
|
|
23
25
|
e,
|
|
24
26
|
`${e}--${s}`,
|
|
@@ -29,12 +31,12 @@ const f = b(
|
|
|
29
31
|
`${e}__label`,
|
|
30
32
|
n && `${e}__label--disabled`
|
|
31
33
|
].filter(Boolean).join(" ");
|
|
32
|
-
return /* @__PURE__ */ o("div", { className:
|
|
34
|
+
return /* @__PURE__ */ o("div", { className: m, style: l ? { "--motile-checkbox-color": l } : void 0, children: /* @__PURE__ */ k("label", { className: `${e}-wrapper`, children: [
|
|
33
35
|
/* @__PURE__ */ o(
|
|
34
36
|
"input",
|
|
35
37
|
{
|
|
36
38
|
...d,
|
|
37
|
-
ref:
|
|
39
|
+
ref: $,
|
|
38
40
|
type: "checkbox",
|
|
39
41
|
className: h,
|
|
40
42
|
disabled: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.motile-dock{display:inline-flex;align-items:center;gap:12px;padding:8px 16px;background:#ffffff40;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border-radius:50px;border:1px solid rgba(255,255,255,.3);box-shadow:0 8px 32px #0000001a,0 2px 8px #0000000d,inset 0 0 0 1px #fff3;position:relative;-webkit-user-select:none;user-select:none;transition:all .3s cubic-bezier(.4,0,.2,1)}.motile-dock[data-position=top]
|
|
1
|
+
:where(.motile-dock){display:inline-flex;align-items:center;gap:12px;padding:8px 16px;background:#ffffff40;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border-radius:50px;border:1px solid rgba(255,255,255,.3);box-shadow:0 8px 32px #0000001a,0 2px 8px #0000000d,inset 0 0 0 1px #fff3;position:relative;-webkit-user-select:none;user-select:none;transition:all .3s cubic-bezier(.4,0,.2,1)}:where(.motile-dock[data-position=top]){flex-direction:row}:where(.motile-dock[data-position=bottom]){flex-direction:row}:where(.motile-dock[data-position=left]){flex-direction:column}:where(.motile-dock[data-position=right]){flex-direction:column}:where(.motile-dock__item){position:relative;display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;min-height:40px;border:none;border-radius:10px;background:transparent;color:#374151;cursor:pointer;transition:background .2s ease;outline:none;will-change:transform;transform:translateZ(0)}:where(.motile-dock[data-position=top] .motile-dock__item){transform-origin:center top}:where(.motile-dock[data-position=bottom] .motile-dock__item){transform-origin:center bottom}:where(.motile-dock[data-position=left] .motile-dock__item){transform-origin:left center}:where(.motile-dock[data-position=right] .motile-dock__item){transform-origin:right center}:where(.motile-dock__item:hover){background:#fff6}:where(.motile-dock__item:active){background:#fff9;filter:brightness(.9)}:where(.motile-dock__item:focus-visible){outline:2px solid rgba(100,116,139,.6);outline-offset:2px}:where(.motile-dock__item>*){pointer-events:none}:where(.motile-dock__separator){position:relative;flex-shrink:0}:where(.motile-dock__separator[data-position=top]),:where(.motile-dock__separator[data-position=bottom]){width:1px;height:40px;margin:0 6px;background:linear-gradient(to bottom,#0000,#00000026 20%,#00000026 80%,#0000)}:where(.motile-dock__separator[data-position=left]),:where(.motile-dock__separator[data-position=right]){height:1px;width:40px;margin:6px 0;background:linear-gradient(to right,#0000,#00000026 20%,#00000026 80%,#0000)}@media (prefers-color-scheme: dark){:where(.motile-dock){background:#1e1e1eb3;border:1px solid rgba(255,255,255,.1);box-shadow:0 8px 32px #0006,0 2px 8px #0003,inset 0 0 0 1px #ffffff0d}:where(.motile-dock__item){color:#e5e7eb}:where(.motile-dock__item:hover){background:#ffffff1a}:where(.motile-dock__item:active){background:#fff3;filter:brightness(.9)}:where(.motile-dock__separator[data-position=top]),:where(.motile-dock__separator[data-position=bottom]){background:linear-gradient(to bottom,#fff0,#ffffff26 20%,#ffffff26 80%,#fff0)}:where(.motile-dock__separator[data-position=left]),:where(.motile-dock__separator[data-position=right]){background:linear-gradient(to right,#fff0,#ffffff26 20%,#ffffff26 80%,#fff0)}}@media (prefers-contrast: high){:where(.motile-dock){border:2px solid currentColor;background:#fffffff2}:where(.motile-dock__item){border:1px solid currentColor}}@media (prefers-reduced-motion: reduce){:where(.motile-dock),:where(.motile-dock__item){transition:none}}@media (max-width: 768px){:where(.motile-dock){gap:6px;padding:6px 12px;border-radius:40px}:where(.motile-dock__item){width:36px;height:36px;min-width:36px;min-height:36px}}@media (hover: none) and (pointer: coarse){:where(.motile-dock__item){min-width:44px;min-height:44px;transform:scale(1)!important}}:where(.motile-dock):before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50px;padding:1px;background:linear-gradient(135deg,#fff6,#ffffff1a);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}@media (prefers-color-scheme: dark){:where(.motile-dock):before{background:linear-gradient(135deg,#fff3,#ffffff0d)}}:where(.motile-dock__item):before{content:"";position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;border-radius:14px;background:radial-gradient(circle at center,color-mix(in srgb,var( --motile-dock-color, var(--motile-ui-dock, var(--motile-theme, #3b82f6)) ) 30%,transparent),transparent 70%);opacity:0;transition:opacity .3s ease;pointer-events:none;z-index:-1}:where(.motile-dock__item:hover):before{opacity:1}@media (prefers-contrast: high){:where(.motile-dock__item):before{display:none}:where(.motile-dock):before{display:none}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.motile-drawer__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0000;transition:background-color .3s ease;overscroll-behavior:contain;touch-action:pan-y}.motile-drawer__overlay--visible{background-color:#0006}.motile-drawer__content{position:fixed;bottom:0;left:0;right:0;margin:0 auto;transform:translateY(100%);width:100%;max-width:var(--drawer-max-width, var(--drawer-width, 480px));height:auto;max-height:var(--drawer-max-height, 70dvh);background-color:#fff;border-radius:20px 20px 0 0;box-shadow:0 -8px 30px #00000026;display:flex;flex-direction:column;transition:transform .3s ease;will-change:transform;overscroll-behavior:contain;box-sizing:border-box}.motile-drawer__content--visible{transform:translateY(0)}@media (max-width: 768px){.motile-drawer__overlay{top:0;left:0;right:0;bottom:0;width:100%;height:100%}.motile-drawer__content{left:0;right:0;margin:0;width:100%;max-width:none;border-radius:20px 20px 0 0}}.motile-drawer__header{height:48px;display:flex;align-items:center;justify-content:center;flex-shrink:0;cursor:grab;user-select:none;-webkit-user-select:none}.motile-drawer__header:active{cursor:grabbing}.motile-drawer__handle{width:40px;height:6px;background-color:#d1d5db;border-radius:3px;transition:background-color .2s ease}.motile-drawer__header:hover .motile-drawer__handle{background-color:#9ca3af}.motile-drawer__header:active .motile-drawer__handle{background-color:#6b7280}.motile-drawer__title-wrapper{padding:0 24px 16px;flex-shrink:0;border-bottom:1px solid #e5e7eb;width:100%;box-sizing:border-box}.motile-drawer__title{margin:0;font-size:16px;font-weight:600;color:#111827;line-height:1.4}@media (max-width: 768px){.motile-drawer__title{font-size:15px}}.motile-drawer__body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:20px 24px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;width:100%;box-sizing:border-box}.motile-drawer__body::-webkit-scrollbar{width:6px}.motile-drawer__body::-webkit-scrollbar-track{background:transparent}.motile-drawer__body::-webkit-scrollbar-thumb{background-color:#0003;border-radius:3px}.motile-drawer__body::-webkit-scrollbar-thumb:hover{background-color:#0000004d}@media (prefers-color-scheme: dark){.motile-drawer__content{background-color:#1f2937;box-shadow:0 -8px 30px #00000080}.motile-drawer__title{color:#f9fafb}.motile-drawer__title-wrapper{border-bottom-color:#374151}.motile-drawer__handle{background-color:#4b5563}.motile-drawer__header:hover .motile-drawer__handle{background-color:#6b7280}.motile-drawer__header:active .motile-drawer__handle{background-color:#9ca3af}.motile-drawer__body::-webkit-scrollbar-thumb{background-color:#fff3}.motile-drawer__body::-webkit-scrollbar-thumb:hover{background-color:#ffffff4d}}@media (prefers-reduced-motion: reduce){.motile-drawer__content
|
|
1
|
+
:where(.motile-drawer__overlay){position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0000;transition:background-color .3s ease;overscroll-behavior:contain;touch-action:pan-y}:where(.motile-drawer__overlay--visible){background-color:#0006}:where(.motile-drawer__content){position:fixed;bottom:0;left:0;right:0;margin:0 auto;transform:translateY(100%);width:100%;max-width:var(--drawer-max-width, var(--drawer-width, 480px));height:auto;max-height:var(--drawer-max-height, 70dvh);background-color:#fff;border-radius:20px 20px 0 0;box-shadow:0 -8px 30px #00000026;display:flex;flex-direction:column;transition:transform .3s ease;will-change:transform;overscroll-behavior:contain;box-sizing:border-box}:where(.motile-drawer__content--visible){transform:translateY(0)}@media (max-width: 768px){:where(.motile-drawer__overlay){top:0;left:0;right:0;bottom:0;width:100%;height:100%}:where(.motile-drawer__content){left:0;right:0;margin:0;width:100%;max-width:none;border-radius:20px 20px 0 0}}:where(.motile-drawer__header){height:48px;display:flex;align-items:center;justify-content:center;flex-shrink:0;cursor:grab;user-select:none;-webkit-user-select:none}:where(.motile-drawer__header:active){cursor:grabbing}:where(.motile-drawer__handle){width:40px;height:6px;background-color:#d1d5db;border-radius:3px;transition:background-color .2s ease}:where(.motile-drawer__header:hover .motile-drawer__handle){background-color:#9ca3af}:where(.motile-drawer__header:active .motile-drawer__handle){background-color:#6b7280}:where(.motile-drawer__title-wrapper){padding:0 24px 16px;flex-shrink:0;border-bottom:1px solid #e5e7eb;width:100%;box-sizing:border-box}:where(.motile-drawer__title){margin:0;font-size:16px;font-weight:600;color:#111827;line-height:1.4}@media (max-width: 768px){:where(.motile-drawer__title){font-size:15px}}:where(.motile-drawer__body){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:20px 24px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;width:100%;box-sizing:border-box}:where(.motile-drawer__body::-webkit-scrollbar){width:6px}:where(.motile-drawer__body::-webkit-scrollbar-track){background:transparent}:where(.motile-drawer__body::-webkit-scrollbar-thumb){background-color:#0003;border-radius:3px}:where(.motile-drawer__body::-webkit-scrollbar-thumb:hover){background-color:#0000004d}@media (prefers-color-scheme: dark){:where(.motile-drawer__content){background-color:#1f2937;box-shadow:0 -8px 30px #00000080}:where(.motile-drawer__title){color:#f9fafb}:where(.motile-drawer__title-wrapper){border-bottom-color:#374151}:where(.motile-drawer__handle){background-color:#4b5563}:where(.motile-drawer__header:hover .motile-drawer__handle){background-color:#6b7280}:where(.motile-drawer__header:active .motile-drawer__handle){background-color:#9ca3af}:where(.motile-drawer__body::-webkit-scrollbar-thumb){background-color:#fff3}:where(.motile-drawer__body::-webkit-scrollbar-thumb:hover){background-color:#ffffff4d}}@media (prefers-reduced-motion: reduce){:where(.motile-drawer__content),:where(.motile-drawer__overlay){transition:none}}@media (hover: none) and (pointer: coarse){:where(.motile-drawer__header){height:56px}:where(.motile-drawer__handle){width:48px;height:7px}}
|
|
@@ -60,7 +60,9 @@ const $ = G(null), f = () => {
|
|
|
60
60
|
enabled: D && S.clickOutside
|
|
61
61
|
}), Z({
|
|
62
62
|
handler: p,
|
|
63
|
-
enabled: D && S.escapeKey
|
|
63
|
+
enabled: D && S.escapeKey,
|
|
64
|
+
stacked: !0
|
|
65
|
+
// ์ค์ฒฉ ์ค๋ฒ๋ ์ด์์ ESC๋ ์ต์๋จ๋ง ๋ซ๋๋ค
|
|
64
66
|
});
|
|
65
67
|
const j = {
|
|
66
68
|
open: x,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.motile-input-root{display:block;width:100%}.motile-input{width:100%;border:1px solid #e5e8eb;border-radius:12px;padding:12px 16px;font-size:15px;font-weight:400;color:#111827;background:#fff;outline:none;transition:none;min-height:48px;line-height:1.4;box-sizing:border-box}.motile-input:hover:not(:disabled):not(:focus):not(.motile-input--error){border-color:#c9cdd2}.motile-input--outlined{border:2px solid #e5e8eb}.motile-input--outlined:focus{border:2px solid var( --motile-input-color, var(--motile-ui-input, var(--motile-theme, #3182f6)) )}.motile-input--outlined:disabled{background:#f9fafb;color:#9ca3af;cursor:not-allowed;border-color:#e5e7eb}.motile-input--underline:disabled{background:transparent;color:#9ca3af;cursor:not-allowed;border-bottom-color:#e5e7eb;opacity:.5}.motile-input--outlined.motile-input--error{border:2px solid #ef4444;background:#fef5f5}.motile-input--outlined.motile-input--error:focus{border:2px solid #ef4444;background:#fef5f5}.motile-input-wrapper--shake{animation:motile-input-shake .5s ease-in-out}@keyframes motile-input-shake{0%{transform:translate(0)}15%{transform:translate(-10px)}30%{transform:translate(8px)}45%{transform:translate(-6px)}60%{transform:translate(4px)}75%{transform:translate(-2px)}to{transform:translate(0)}}.motile-input::placeholder{color:#9ca3af;opacity:1}.motile-input-wrapper{position:relative;width:100%}.motile-input--underline{border:none;border-bottom:2px solid #e5e8eb;border-radius:0;background:transparent;padding:18px 4px 4px;height:48px;line-height:1.5;transition:border-color .2s ease}.motile-input--underline:hover:not(:disabled):not(:focus):not(.motile-input--error){border-bottom-color:#9ca3af}.motile-input--underline:focus{border:none;border-bottom:2px solid var( --motile-input-color, var(--motile-ui-input, var(--motile-theme, #3182f6)) );padding:18px 4px 4px;height:48px;line-height:1.5}.motile-input--underline.motile-input--error{border-bottom-color:#ef4444}.motile-input--underline.motile-input--error:focus{border-bottom:2px solid #ef4444;padding:18px 4px 4px;height:48px;line-height:1.5}.motile-input--with-left-icon{padding-left:40px}.motile-input--outlined.motile-input--with-left-icon:focus{padding-left:40px}.motile-input--underline.motile-input--with-left-icon{padding-left:32px}.motile-input--underline.motile-input--with-left-icon:focus{padding-left:32px}.motile-input--with-right-content{padding-right:40px}.motile-input--outlined.motile-input--with-right-content:focus{padding-right:40px}.motile-input--underline.motile-input--with-right-content{padding-right:32px}.motile-input--underline.motile-input--with-right-content:focus{padding-right:32px}.motile-input__left-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:20px;height:20px;color:#9ca3af;pointer-events:none}.motile-input-wrapper:has(.motile-input--underline) .motile-input__left-icon{left:4px;top:calc(50% + 7px)}.motile-input__left-icon svg{width:100%;height:100%}.motile-input__right-icon{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:20px;height:20px;color:#9ca3af;pointer-events:none}.motile-input-wrapper:has(.motile-input--underline) .motile-input__right-icon{right:4px;top:calc(50% + 7px)}.motile-input__right-icon svg{width:100%;height:100%}.motile-input__clear-button{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;background:transparent;border:none;color:#9ca3af;cursor:pointer;border-radius:4px;transition:background-color .2s ease,color .2s ease}.motile-input-wrapper:has(.motile-input--underline) .motile-input__clear-button{right:4px;top:calc(50% + 7px)}.motile-input__clear-button:hover{background:#f3f4f6;color:#6b7280}.motile-input__clear-icon{width:16px;height:16px}@media (max-width: 768px){.motile-input{font-size:16px;padding:12px;min-height:44px}.motile-input--outlined{border:2px solid #e5e8eb}.motile-input--outlined:focus{border:2px solid var( --motile-input-color, var(--motile-ui-input, var(--motile-theme, #3182f6)) )}.motile-input--underline{padding:18px 4px 4px;height:48px;line-height:1.5}.motile-input--underline:focus{border-bottom:2px solid var( --motile-input-color, var(--motile-ui-input, var(--motile-theme, #3182f6)) );padding:18px 4px 4px;height:48px;line-height:1.5}.motile-input-wrapper:has(.motile-input--underline) .motile-input__left-icon{top:calc(50% + 7px);transform:translateY(-50%)}.motile-input-wrapper:has(.motile-input--underline) .motile-input__right-icon{top:calc(50% + 7px);transform:translateY(-50%)}.motile-input-wrapper:has(.motile-input--underline) .motile-input__clear-button{top:calc(50% + 7px);transform:translateY(-50%)}.motile-input--with-left-icon{padding-left:40px}.motile-input--outlined.motile-input--with-left-icon:focus{padding-left:40px}.motile-input--outlined.motile-input--with-label.motile-input--with-left-icon{padding-left:40px}.motile-input--outlined.motile-input--with-label.motile-input--with-left-icon:focus{padding-left:40px}.motile-input--underline.motile-input--with-left-icon{padding-left:32px}.motile-input--underline.motile-input--with-left-icon:focus{padding-left:32px}.motile-input-wrapper:has(.motile-input--underline) .motile-input--with-label.motile-input--with-left-icon{padding-left:32px}.motile-input-wrapper:has(.motile-input--underline) .motile-input--with-label.motile-input--with-left-icon:focus{padding-left:32px}.motile-input--with-right-content{padding-right:36px}.motile-input--outlined.motile-input--with-right-content:focus{padding-right:36px}.motile-input--underline.motile-input--with-right-content{padding-right:32px}.motile-input--underline.motile-input--with-right-content:focus{padding-right:32px}}@supports (-webkit-touch-callout: none){.motile-input{-webkit-tap-highlight-color:transparent}}.motile-input__helper-text{display:flex;align-items:flex-start;margin-top:4px;min-height:16px;gap:8px}.motile-input__helper-text--both{justify-content:space-between}.motile-input__helper-text--error-only{justify-content:flex-start}.motile-input__helper-text--counter-only{justify-content:flex-end}.motile-input__error-message{font-size:12px;color:#ef4444;line-height:16px;flex:1}.motile-input__counter{font-size:12px;color:#9ca3af;line-height:16px;white-space:nowrap;flex-shrink:0}.motile-input__label{position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:15px;color:#9ca3af;pointer-events:none;transition:all .2s ease;background:transparent;padding:0;z-index:1}.motile-input--with-label::placeholder{opacity:0}.motile-input--with-label:focus::placeholder{opacity:1}.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input:focus) .motile-input__label,.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input:not(:placeholder-shown)) .motile-input__label{top:0;transform:translateY(-50%);font-size:12px;background:#fff;padding:0 4px}.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input:focus) .motile-input__label:not(.motile-input__label--error),.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input:not(:placeholder-shown)) .motile-input__label:not(.motile-input__label--error){color:var( --motile-input-color, var(--motile-ui-input, var(--motile-theme, #3182f6)) )}.motile-input-wrapper:has(.motile-input--underline) .motile-input__label{left:4px;top:calc(50% + 7px);transform:translateY(-50%)}.motile-input-wrapper:has(.motile-input--underline):has(.motile-input:focus) .motile-input__label,.motile-input-wrapper:has(.motile-input--underline):has(.motile-input:not(:placeholder-shown)) .motile-input__label{top:14px;transform:translateY(-100%);font-size:12px}.motile-input-wrapper:has(.motile-input--underline):has(.motile-input:focus) .motile-input__label:not(.motile-input__label--error),.motile-input-wrapper:has(.motile-input--underline):has(.motile-input:not(:placeholder-shown)) .motile-input__label:not(.motile-input__label--error){color:var( --motile-input-color, var(--motile-ui-input, var(--motile-theme, #3182f6)) )}.motile-input-wrapper:has(.motile-input:focus) .motile-input__label--error,.motile-input-wrapper:has(.motile-input:not(:placeholder-shown)) .motile-input__label--error{color:#ef4444}.motile-input--outlined.motile-input--with-label{padding-top:12px;padding-bottom:12px}.motile-input--outlined.motile-input--with-label.motile-input--with-left-icon{padding-left:40px}.motile-input--outlined.motile-input--with-label.motile-input--with-left-icon:focus{padding-left:40px}.motile-input-wrapper:has(.motile-input--underline) .motile-input--with-label.motile-input--with-left-icon{padding-left:32px}.motile-input-wrapper:has(.motile-input--underline) .motile-input--with-label.motile-input--with-left-icon:focus{padding-left:32px}.motile-input-wrapper:has(.motile-input--with-left-icon) .motile-input__label{left:44px}.motile-input-wrapper:has(.motile-input--underline.motile-input--with-left-icon) .motile-input__label{left:32px;top:calc(50% + 7px);transform:translateY(-50%)}.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input--with-left-icon):has(.motile-input:focus) .motile-input__label,.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input--with-left-icon):has(.motile-input:not(:placeholder-shown)) .motile-input__label{left:40px}.motile-input-wrapper:has(.motile-input--underline.motile-input--with-left-icon):has(.motile-input:focus) .motile-input__label,.motile-input-wrapper:has(.motile-input--underline.motile-input--with-left-icon):has(.motile-input:not(:placeholder-shown)) .motile-input__label{left:4px;top:14px;transform:translateY(-100%)}@media (max-width: 768px){.motile-input__label{font-size:16px;left:12px}.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input:focus) .motile-input__label,.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input:not(:placeholder-shown)) .motile-input__label{font-size:12px}.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input:focus) .motile-input__label:not(.motile-input__label--error),.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input:not(:placeholder-shown)) .motile-input__label:not(.motile-input__label--error){color:var( --motile-input-color, var(--motile-ui-input, var(--motile-theme, #3182f6)) )}.motile-input-wrapper:has(.motile-input--underline) .motile-input__label{left:4px;top:calc(50% + 7px);transform:translateY(-50%)}.motile-input-wrapper:has(.motile-input--underline):has(.motile-input:focus) .motile-input__label,.motile-input-wrapper:has(.motile-input--underline):has(.motile-input:not(:placeholder-shown)) .motile-input__label{font-size:12px;top:14px;transform:translateY(-100%)}.motile-input-wrapper:has(.motile-input--underline):has(.motile-input:focus) .motile-input__label:not(.motile-input__label--error),.motile-input-wrapper:has(.motile-input--underline):has(.motile-input:not(:placeholder-shown)) .motile-input__label:not(.motile-input__label--error){color:var( --motile-input-color, var(--motile-ui-input, var(--motile-theme, #3182f6)) )}.motile-input-wrapper:has(.motile-input--with-left-icon) .motile-input__label{left:40px}.motile-input-wrapper:has(.motile-input--underline.motile-input--with-left-icon) .motile-input__label{left:32px;top:calc(50% + 7px);transform:translateY(-50%)}.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input--with-left-icon):has(.motile-input:focus) .motile-input__label,.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input--with-left-icon):has(.motile-input:not(:placeholder-shown)) .motile-input__label{left:36px}.motile-input-wrapper:has(.motile-input--underline.motile-input--with-left-icon):has(.motile-input:focus) .motile-input__label,.motile-input-wrapper:has(.motile-input--underline.motile-input--with-left-icon):has(.motile-input:not(:placeholder-shown)) .motile-input__label{left:4px;top:14px;transform:translateY(-100%)}}
|
|
1
|
+
:where(.motile-input-root){display:block;width:100%}:where(.motile-input){width:100%;border:1px solid #e5e8eb;border-radius:12px;padding:12px 16px;font-size:15px;font-weight:400;color:#111827;background:#fff;outline:none;transition:none;min-height:48px;line-height:1.4;box-sizing:border-box}:where(.motile-input:hover:not(:disabled):not(:focus):not(.motile-input--error)){border-color:#c9cdd2}:where(.motile-input--outlined){border:2px solid #e5e8eb}:where(.motile-input--outlined:focus){border:2px solid var( --motile-input-color, var(--motile-ui-input, var(--motile-theme, #3182f6)) )}:where(.motile-input--outlined:disabled){background:#f9fafb;color:#9ca3af;cursor:not-allowed;border-color:#e5e7eb}:where(.motile-input--underline:disabled){background:transparent;color:#9ca3af;cursor:not-allowed;border-bottom-color:#e5e7eb;opacity:.5}:where(.motile-input--outlined.motile-input--error){border:2px solid #ef4444;background:#fef5f5}:where(.motile-input--outlined.motile-input--error:focus){border:2px solid #ef4444;background:#fef5f5}:where(.motile-input-wrapper--shake){animation:motile-input-shake .5s ease-in-out}@keyframes motile-input-shake{0%{transform:translate(0)}15%{transform:translate(-10px)}30%{transform:translate(8px)}45%{transform:translate(-6px)}60%{transform:translate(4px)}75%{transform:translate(-2px)}to{transform:translate(0)}}:where(.motile-input)::placeholder{color:#9ca3af;opacity:1}:where(.motile-input-wrapper){position:relative;width:100%}:where(.motile-input--underline){border:none;border-bottom:2px solid #e5e8eb;border-radius:0;background:transparent;padding:18px 4px 4px;height:48px;line-height:1.5;transition:border-color .2s ease}:where(.motile-input--underline:hover:not(:disabled):not(:focus):not(.motile-input--error)){border-bottom-color:#9ca3af}:where(.motile-input--underline:focus){border:none;border-bottom:2px solid var( --motile-input-color, var(--motile-ui-input, var(--motile-theme, #3182f6)) );padding:18px 4px 4px;height:48px;line-height:1.5}:where(.motile-input--underline.motile-input--error){border-bottom-color:#ef4444}:where(.motile-input--underline.motile-input--error:focus){border-bottom:2px solid #ef4444;padding:18px 4px 4px;height:48px;line-height:1.5}:where(.motile-input--with-left-icon){padding-left:40px}:where(.motile-input--outlined.motile-input--with-left-icon:focus){padding-left:40px}:where(.motile-input--underline.motile-input--with-left-icon){padding-left:32px}:where(.motile-input--underline.motile-input--with-left-icon:focus){padding-left:32px}:where(.motile-input--with-right-content){padding-right:40px}:where(.motile-input--outlined.motile-input--with-right-content:focus){padding-right:40px}:where(.motile-input--underline.motile-input--with-right-content){padding-right:32px}:where(.motile-input--underline.motile-input--with-right-content:focus){padding-right:32px}:where(.motile-input__left-icon){position:absolute;left:12px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:20px;height:20px;color:#9ca3af;pointer-events:none}:where(.motile-input-wrapper:has(.motile-input--underline) .motile-input__left-icon){left:4px;top:calc(50% + 7px)}:where(.motile-input__left-icon svg){width:100%;height:100%}:where(.motile-input__right-icon){position:absolute;right:12px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:20px;height:20px;color:#9ca3af;pointer-events:none}:where(.motile-input-wrapper:has(.motile-input--underline) .motile-input__right-icon){right:4px;top:calc(50% + 7px)}:where(.motile-input__right-icon svg){width:100%;height:100%}:where(.motile-input__clear-button){position:absolute;right:12px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;background:transparent;border:none;color:#9ca3af;cursor:pointer;border-radius:4px;transition:background-color .2s ease,color .2s ease}:where(.motile-input-wrapper:has(.motile-input--underline) .motile-input__clear-button){right:4px;top:calc(50% + 7px)}:where(.motile-input__clear-button:hover){background:#f3f4f6;color:#6b7280}:where(.motile-input__clear-icon){width:16px;height:16px}@media (max-width: 768px){:where(.motile-input){font-size:16px;padding:12px;min-height:44px}:where(.motile-input--outlined){border:2px solid #e5e8eb}:where(.motile-input--outlined:focus){border:2px solid var( --motile-input-color, var(--motile-ui-input, var(--motile-theme, #3182f6)) )}:where(.motile-input--underline){padding:18px 4px 4px;height:48px;line-height:1.5}:where(.motile-input--underline:focus){border-bottom:2px solid var( --motile-input-color, var(--motile-ui-input, var(--motile-theme, #3182f6)) );padding:18px 4px 4px;height:48px;line-height:1.5}:where(.motile-input-wrapper:has(.motile-input--underline) .motile-input__left-icon){top:calc(50% + 7px);transform:translateY(-50%)}:where(.motile-input-wrapper:has(.motile-input--underline) .motile-input__right-icon){top:calc(50% + 7px);transform:translateY(-50%)}:where(.motile-input-wrapper:has(.motile-input--underline) .motile-input__clear-button){top:calc(50% + 7px);transform:translateY(-50%)}:where(.motile-input--with-left-icon){padding-left:40px}:where(.motile-input--outlined.motile-input--with-left-icon:focus){padding-left:40px}:where(.motile-input--outlined.motile-input--with-label.motile-input--with-left-icon){padding-left:40px}:where(.motile-input--outlined.motile-input--with-label.motile-input--with-left-icon:focus){padding-left:40px}:where(.motile-input--underline.motile-input--with-left-icon){padding-left:32px}:where(.motile-input--underline.motile-input--with-left-icon:focus){padding-left:32px}:where(.motile-input-wrapper:has(.motile-input--underline) .motile-input--with-label.motile-input--with-left-icon){padding-left:32px}:where(.motile-input-wrapper:has(.motile-input--underline) .motile-input--with-label.motile-input--with-left-icon:focus){padding-left:32px}:where(.motile-input--with-right-content){padding-right:36px}:where(.motile-input--outlined.motile-input--with-right-content:focus){padding-right:36px}:where(.motile-input--underline.motile-input--with-right-content){padding-right:32px}:where(.motile-input--underline.motile-input--with-right-content:focus){padding-right:32px}}@supports (-webkit-touch-callout: none){:where(.motile-input){-webkit-tap-highlight-color:transparent}}:where(.motile-input__helper-text){display:flex;align-items:flex-start;margin-top:4px;min-height:16px;gap:8px}:where(.motile-input__helper-text--both){justify-content:space-between}:where(.motile-input__helper-text--error-only){justify-content:flex-start}:where(.motile-input__helper-text--counter-only){justify-content:flex-end}:where(.motile-input__error-message){font-size:12px;color:#ef4444;line-height:16px;flex:1}:where(.motile-input__counter){font-size:12px;color:#9ca3af;line-height:16px;white-space:nowrap;flex-shrink:0}:where(.motile-input__label){position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:15px;color:#9ca3af;pointer-events:none;transition:all .2s ease;background:transparent;padding:0;z-index:1}:where(.motile-input--with-label)::placeholder{opacity:0}:where(.motile-input--with-label:focus)::placeholder{opacity:1}:where(.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input:focus) .motile-input__label),:where(.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input:not(:placeholder-shown)) .motile-input__label){top:0;transform:translateY(-50%);font-size:12px;background:#fff;padding:0 4px}:where(.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input:focus) .motile-input__label:not(.motile-input__label--error)),:where(.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input:not(:placeholder-shown)) .motile-input__label:not(.motile-input__label--error)){color:var( --motile-input-color, var(--motile-ui-input, var(--motile-theme, #3182f6)) )}:where(.motile-input-wrapper:has(.motile-input--underline) .motile-input__label){left:4px;top:calc(50% + 7px);transform:translateY(-50%)}:where(.motile-input-wrapper:has(.motile-input--underline):has(.motile-input:focus) .motile-input__label),:where(.motile-input-wrapper:has(.motile-input--underline):has(.motile-input:not(:placeholder-shown)) .motile-input__label){top:14px;transform:translateY(-100%);font-size:12px}:where(.motile-input-wrapper:has(.motile-input--underline):has(.motile-input:focus) .motile-input__label:not(.motile-input__label--error)),:where(.motile-input-wrapper:has(.motile-input--underline):has(.motile-input:not(:placeholder-shown)) .motile-input__label:not(.motile-input__label--error)){color:var( --motile-input-color, var(--motile-ui-input, var(--motile-theme, #3182f6)) )}:where(.motile-input-wrapper:has(.motile-input:focus) .motile-input__label--error),:where(.motile-input-wrapper:has(.motile-input:not(:placeholder-shown)) .motile-input__label--error){color:#ef4444}:where(.motile-input--outlined.motile-input--with-label){padding-top:12px;padding-bottom:12px}:where(.motile-input--outlined.motile-input--with-label.motile-input--with-left-icon){padding-left:40px}:where(.motile-input--outlined.motile-input--with-label.motile-input--with-left-icon:focus){padding-left:40px}:where(.motile-input-wrapper:has(.motile-input--underline) .motile-input--with-label.motile-input--with-left-icon){padding-left:32px}:where(.motile-input-wrapper:has(.motile-input--underline) .motile-input--with-label.motile-input--with-left-icon:focus){padding-left:32px}:where(.motile-input-wrapper:has(.motile-input--with-left-icon) .motile-input__label){left:44px}:where(.motile-input-wrapper:has(.motile-input--underline.motile-input--with-left-icon) .motile-input__label){left:32px;top:calc(50% + 7px);transform:translateY(-50%)}:where(.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input--with-left-icon):has(.motile-input:focus) .motile-input__label),:where(.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input--with-left-icon):has(.motile-input:not(:placeholder-shown)) .motile-input__label){left:40px}:where(.motile-input-wrapper:has(.motile-input--underline.motile-input--with-left-icon):has(.motile-input:focus) .motile-input__label),:where(.motile-input-wrapper:has(.motile-input--underline.motile-input--with-left-icon):has(.motile-input:not(:placeholder-shown)) .motile-input__label){left:4px;top:14px;transform:translateY(-100%)}@media (max-width: 768px){:where(.motile-input__label){font-size:16px;left:12px}:where(.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input:focus) .motile-input__label),:where(.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input:not(:placeholder-shown)) .motile-input__label){font-size:12px}:where(.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input:focus) .motile-input__label:not(.motile-input__label--error)),:where(.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input:not(:placeholder-shown)) .motile-input__label:not(.motile-input__label--error)){color:var( --motile-input-color, var(--motile-ui-input, var(--motile-theme, #3182f6)) )}:where(.motile-input-wrapper:has(.motile-input--underline) .motile-input__label){left:4px;top:calc(50% + 7px);transform:translateY(-50%)}:where(.motile-input-wrapper:has(.motile-input--underline):has(.motile-input:focus) .motile-input__label),:where(.motile-input-wrapper:has(.motile-input--underline):has(.motile-input:not(:placeholder-shown)) .motile-input__label){font-size:12px;top:14px;transform:translateY(-100%)}:where(.motile-input-wrapper:has(.motile-input--underline):has(.motile-input:focus) .motile-input__label:not(.motile-input__label--error)),:where(.motile-input-wrapper:has(.motile-input--underline):has(.motile-input:not(:placeholder-shown)) .motile-input__label:not(.motile-input__label--error)){color:var( --motile-input-color, var(--motile-ui-input, var(--motile-theme, #3182f6)) )}:where(.motile-input-wrapper:has(.motile-input--with-left-icon) .motile-input__label){left:40px}:where(.motile-input-wrapper:has(.motile-input--underline.motile-input--with-left-icon) .motile-input__label){left:32px;top:calc(50% + 7px);transform:translateY(-50%)}:where(.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input--with-left-icon):has(.motile-input:focus) .motile-input__label),:where(.motile-input-wrapper:not(:has(.motile-input--underline)):has(.motile-input--with-left-icon):has(.motile-input:not(:placeholder-shown)) .motile-input__label){left:36px}:where(.motile-input-wrapper:has(.motile-input--underline.motile-input--with-left-icon):has(.motile-input:focus) .motile-input__label),:where(.motile-input-wrapper:has(.motile-input--underline.motile-input--with-left-icon):has(.motile-input:not(:placeholder-shown)) .motile-input__label){left:4px;top:14px;transform:translateY(-100%)}}
|
|
@@ -56,6 +56,12 @@ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
56
56
|
* Floating label (focus ์ ์๋ placeholder ์์น, focus/๊ฐ ์์ ๋ ์๋ก ์ด๋)
|
|
57
57
|
*/
|
|
58
58
|
label?: string;
|
|
59
|
+
/**
|
|
60
|
+
* ๋ชจ๋ฐ์ผ์์ ์ด ์
๋ ฅ์ ํฌ์ปค์ค๋ ์ฑ ์คํฌ๋กคํ๋ฉด ํฌ์ปค์ค๋ฅผ ํด์ ํด ์ํํธ ํค๋ณด๋๋ฅผ
|
|
61
|
+
* ๋ซ์ต๋๋ค (useAutoBlur ๋ด์ฅ). ๋ฐ์คํฌํฑ(๋นํฐ์น)์๋ ์ํฅ์ด ์์ต๋๋ค.
|
|
62
|
+
* @default false
|
|
63
|
+
*/
|
|
64
|
+
autoBlur?: boolean;
|
|
59
65
|
}
|
|
60
66
|
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
61
67
|
export {};
|
|
@@ -1,78 +1,82 @@
|
|
|
1
1
|
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as H, useId as J, useRef as v, useEffect as K } from "react";
|
|
3
|
+
import { useAutoBlur as O } from "../../hooks/useAutoBlur.js";
|
|
3
4
|
import './Input.css';/* empty css */
|
|
4
|
-
const
|
|
5
|
+
const P = H(
|
|
5
6
|
({
|
|
6
|
-
id:
|
|
7
|
+
id: y,
|
|
7
8
|
autoFocus: $ = !1,
|
|
8
|
-
autoSelect:
|
|
9
|
-
variant:
|
|
10
|
-
isError:
|
|
9
|
+
autoSelect: f = !1,
|
|
10
|
+
variant: B = "outlined",
|
|
11
|
+
isError: C,
|
|
11
12
|
errorMessage: r,
|
|
12
13
|
onClear: m,
|
|
13
14
|
leftIcon: d,
|
|
14
15
|
rightIcon: p,
|
|
15
|
-
className:
|
|
16
|
-
value:
|
|
17
|
-
color:
|
|
18
|
-
style:
|
|
19
|
-
maxLength:
|
|
16
|
+
className: R,
|
|
17
|
+
value: l,
|
|
18
|
+
color: _,
|
|
19
|
+
style: j,
|
|
20
|
+
maxLength: u,
|
|
20
21
|
label: i,
|
|
22
|
+
autoBlur: x = !1,
|
|
21
23
|
placeholder: b,
|
|
22
24
|
...w
|
|
23
|
-
},
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
}, L) => {
|
|
26
|
+
const k = J().replace(/:/g, ""), n = y ?? `motile-input-${k}`, E = v(null), o = L || E, N = v(null);
|
|
27
|
+
O({ containerRef: N, enabled: x });
|
|
28
|
+
const s = C ?? !!r;
|
|
29
|
+
K(() => {
|
|
30
|
+
if ($ && o.current) {
|
|
31
|
+
const G = setTimeout(() => {
|
|
32
|
+
o.current && (o.current.focus(), f && o.current.select());
|
|
29
33
|
}, 50);
|
|
30
|
-
return () => clearTimeout(
|
|
34
|
+
return () => clearTimeout(G);
|
|
31
35
|
}
|
|
32
|
-
}, [$,
|
|
33
|
-
const e = "motile-input",
|
|
36
|
+
}, [$, f]);
|
|
37
|
+
const e = "motile-input", h = m && l, S = !!d, T = h || p, z = [
|
|
34
38
|
e,
|
|
35
|
-
`${e}--${
|
|
39
|
+
`${e}--${B}`,
|
|
36
40
|
s && `${e}--error`,
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
S && `${e}--with-left-icon`,
|
|
42
|
+
T && `${e}--with-right-content`,
|
|
39
43
|
i && `${e}--with-label`,
|
|
40
|
-
|
|
41
|
-
].filter(Boolean).join(" "),
|
|
44
|
+
R
|
|
45
|
+
].filter(Boolean).join(" "), A = [
|
|
42
46
|
`${e}-wrapper`,
|
|
43
47
|
i && `${e}-wrapper--with-label`,
|
|
44
48
|
s && `${e}-wrapper--shake`
|
|
45
|
-
].filter(Boolean).join(" "),
|
|
49
|
+
].filter(Boolean).join(" "), I = [
|
|
46
50
|
`${e}__label`,
|
|
47
51
|
s && `${e}__label--error`
|
|
48
|
-
].filter(Boolean).join(" "),
|
|
49
|
-
...
|
|
50
|
-
},
|
|
52
|
+
].filter(Boolean).join(" "), g = _ ? { "--motile-input-color": _ } : void 0, q = {
|
|
53
|
+
...j
|
|
54
|
+
}, D = l ? String(l).length : 0, c = u !== void 0, F = [
|
|
51
55
|
w["aria-describedby"],
|
|
52
56
|
r ? `${n}-error` : void 0,
|
|
53
57
|
c ? `${n}-counter` : void 0
|
|
54
58
|
].filter(Boolean).join(" ") || void 0;
|
|
55
|
-
return /* @__PURE__ */ a("div", { className: `${e}-root`, children: [
|
|
56
|
-
/* @__PURE__ */ a("div", { className:
|
|
57
|
-
i && /* @__PURE__ */ t("label", { className:
|
|
59
|
+
return /* @__PURE__ */ a("div", { className: `${e}-root`, ref: N, children: [
|
|
60
|
+
/* @__PURE__ */ a("div", { className: A, style: g, children: [
|
|
61
|
+
i && /* @__PURE__ */ t("label", { className: I, htmlFor: n, children: i }),
|
|
58
62
|
d && /* @__PURE__ */ t("div", { className: `${e}__left-icon`, children: d }),
|
|
59
63
|
/* @__PURE__ */ t(
|
|
60
64
|
"input",
|
|
61
65
|
{
|
|
62
66
|
id: n,
|
|
63
67
|
...w,
|
|
64
|
-
"aria-describedby":
|
|
68
|
+
"aria-describedby": F,
|
|
65
69
|
"aria-invalid": s || void 0,
|
|
66
|
-
ref:
|
|
67
|
-
className:
|
|
68
|
-
value:
|
|
69
|
-
maxLength:
|
|
70
|
-
style:
|
|
70
|
+
ref: o,
|
|
71
|
+
className: z,
|
|
72
|
+
value: l,
|
|
73
|
+
maxLength: u,
|
|
74
|
+
style: q,
|
|
71
75
|
placeholder: i ? b || " " : b
|
|
72
76
|
}
|
|
73
77
|
),
|
|
74
|
-
p && !
|
|
75
|
-
|
|
78
|
+
p && !h && /* @__PURE__ */ t("div", { className: `${e}__right-icon`, children: p }),
|
|
79
|
+
h && /* @__PURE__ */ t(
|
|
76
80
|
"button",
|
|
77
81
|
{
|
|
78
82
|
type: "button",
|
|
@@ -106,9 +110,9 @@ const J = D(
|
|
|
106
110
|
}
|
|
107
111
|
),
|
|
108
112
|
c && /* @__PURE__ */ a("span", { id: `${n}-counter`, className: `${e}__counter`, children: [
|
|
109
|
-
|
|
113
|
+
D,
|
|
110
114
|
"/",
|
|
111
|
-
|
|
115
|
+
u
|
|
112
116
|
] })
|
|
113
117
|
]
|
|
114
118
|
}
|
|
@@ -116,7 +120,7 @@ const J = D(
|
|
|
116
120
|
] });
|
|
117
121
|
}
|
|
118
122
|
);
|
|
119
|
-
|
|
123
|
+
P.displayName = "Input";
|
|
120
124
|
export {
|
|
121
|
-
|
|
125
|
+
P as Input
|
|
122
126
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.motile-modal__backdrop{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;display:flex;align-items:center;justify-content:center;background-color:#00000080;padding:0 16px;box-sizing:border-box;overscroll-behavior:contain}.motile-modal__backdrop[data-variant=scale]{animation:motile-modal-fade-in .2s ease-out}.motile-modal__backdrop[data-variant=slideDown]
|
|
1
|
+
:where(.motile-modal__backdrop){position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;display:flex;align-items:center;justify-content:center;background-color:#00000080;padding:0 16px;box-sizing:border-box;overscroll-behavior:contain}:where(.motile-modal__backdrop[data-variant=scale]){animation:motile-modal-fade-in .2s ease-out}:where(.motile-modal__backdrop[data-variant=slideDown]),:where(.motile-modal__backdrop[data-variant=slideUp]){animation:motile-modal-fade-in .3s ease-out}:where(.motile-modal__backdrop[data-variant=bottomSheet]){animation:motile-modal-fade-in .3s ease-out;align-items:flex-end;padding:0}@media (min-width: 769px){:where(.motile-modal__backdrop){padding:0 24px}}:where(.motile-modal){position:relative;z-index:1001;width:var(--modal-width);max-width:var(--modal-max-width, 100%)}:where(.motile-modal[data-variant=scale]){animation:motile-modal-scale-in .25s ease-out}:where(.motile-modal[data-variant=slideDown]){animation:motile-modal-slide-down .55s cubic-bezier(.34,1.3,.64,1)}:where(.motile-modal[data-variant=slideUp]){animation:motile-modal-slide-up .5s cubic-bezier(.34,1.3,.64,1)}:where(.motile-modal[data-variant=bottomSheet]){animation:motile-modal-bottom-sheet .35s cubic-bezier(.32,.72,0,1);width:var(--modal-width, 100%);max-width:var(--modal-max-width, 100%)}@media (min-width: 769px){:where(.motile-modal[data-variant=bottomSheet]){width:var(--modal-width, 100%);max-width:var(--modal-max-width, var(--modal-width, 480px))}}@media (max-width: 768px){:where(.motile-modal[data-variant=bottomSheet]){width:100%;max-width:none}}:where(.motile-modal__content){background-color:#fff;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;max-height:90vh;max-height:calc(90vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height:calc(90dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}:where(.motile-modal[data-variant=bottomSheet] .motile-modal__content){border-radius:20px 20px 0 0;max-height:90vh;max-height:calc(90vh - env(safe-area-inset-top));max-height:calc(90dvh - env(safe-area-inset-top));box-shadow:0 -10px 25px -5px #0000001a,0 -4px 10px -5px #0000000a}:where(.motile-modal__header){display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid #e5e7eb;flex-shrink:0}:where(.motile-modal__title){font-size:1rem;font-weight:600;color:#111827;margin:0;line-height:1.4}:where(.motile-modal__close){display:flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;padding:8px;margin:-8px;border-radius:8px;color:#6b7280;transition:all .15s ease}:where(.motile-modal__close:hover){background-color:#f3f4f6;color:#111827}:where(.motile-modal__close:active){transform:scale(.95)}:where(.motile-modal__close:focus-visible){outline:2px solid #3b82f6;outline-offset:2px}:where(.motile-modal__body){padding:24px;overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;color:#374151;line-height:1.6;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}:where(.motile-modal__body::-webkit-scrollbar){width:6px}:where(.motile-modal__body::-webkit-scrollbar-track){background:transparent}:where(.motile-modal__body::-webkit-scrollbar-thumb){background-color:#0003;border-radius:3px}:where(.motile-modal__body::-webkit-scrollbar-thumb:hover){background-color:#0000004d}:where(.motile-modal__footer){display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:12px 16px;border-top:1px solid #e5e7eb;flex-shrink:0}@keyframes motile-modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes motile-modal-scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes motile-modal-slide-down{0%{opacity:0;transform:translateY(-100vh)}to{opacity:1;transform:translateY(0)}}@keyframes motile-modal-slide-up{0%{opacity:0;transform:translateY(100vh)}to{opacity:1;transform:translateY(0)}}@keyframes motile-modal-bottom-sheet{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion: reduce){:where(.motile-modal__backdrop[data-variant=scale]),:where(.motile-modal__backdrop[data-variant=slideDown]),:where(.motile-modal__backdrop[data-variant=slideUp]),:where(.motile-modal__backdrop[data-variant=bottomSheet]){animation:none}:where(.motile-modal[data-variant=scale]),:where(.motile-modal[data-variant=slideDown]),:where(.motile-modal[data-variant=slideUp]),:where(.motile-modal[data-variant=bottomSheet]){animation:none;opacity:1;transform:none}:where(.motile-modal__close:active){transform:none}}@media (prefers-contrast: high){:where(.motile-modal__content){border:2px solid #000000}:where(.motile-modal__header){border-bottom-width:2px}:where(.motile-modal__footer){border-top-width:2px}:where(.motile-modal__title){font-weight:700}}@media (max-width: 768px){:where(.motile-modal__content){border-radius:16px}:where(.motile-modal__header){padding:20px}:where(.motile-modal__body){padding:20px}:where(.motile-modal__footer){padding:20px}:where(.motile-modal__title){font-size:1.125rem}:where(.motile-modal__close:active){background-color:#e5e7eb}}@media (max-width: 390px){:where(.motile-modal__backdrop){padding:0 12px}:where(.motile-modal__header){padding:16px}:where(.motile-modal__body){padding:16px}:where(.motile-modal__footer){padding:16px}:where(.motile-modal__title){font-size:1rem}}@media (hover: none) and (pointer: coarse){:where(.motile-modal__close){min-width:44px;min-height:44px;padding:10px}}@supports (-webkit-touch-callout: none){:where(.motile-modal__close){-webkit-tap-highlight-color:transparent}:where(.motile-modal__content){margin-bottom:env(safe-area-inset-bottom)}}@media (max-height: 600px) and (orientation: landscape){:where(.motile-modal__content){max-height:85vh;max-height:85dvh;border-radius:8px}:where(.motile-modal__header){padding:16px 24px}:where(.motile-modal__body){padding:16px 24px}:where(.motile-modal__footer){padding:16px 24px}:where(.motile-modal__title){font-size:1rem}}@media (prefers-color-scheme: dark){:where(.motile-modal__backdrop){background-color:#000000bf}:where(.motile-modal__content){background-color:#1f2937;box-shadow:0 20px 25px -5px #00000080,0 10px 10px -5px #0000004d}:where(.motile-modal__header){border-bottom-color:#374151}:where(.motile-modal__title){color:#f9fafb}:where(.motile-modal__close){color:#9ca3af}:where(.motile-modal__close:hover){background-color:#374151;color:#f9fafb}:where(.motile-modal__body){color:#e5e7eb}:where(.motile-modal__footer){border-top-color:#374151}:where(.motile-modal__body::-webkit-scrollbar-thumb){background-color:#fff3}:where(.motile-modal__body::-webkit-scrollbar-thumb:hover){background-color:#ffffff4d}}
|