@yamada-ui/react 2.3.0-next-20261009073533 → 2.3.1-dev-20261030022105
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/cjs/components/accordion/accordion.cjs +4 -3
- package/dist/cjs/components/accordion/accordion.cjs.map +1 -1
- package/dist/cjs/components/aspect-ratio/aspect-ratio.cjs +2 -2
- package/dist/cjs/components/aspect-ratio/aspect-ratio.cjs.map +1 -1
- package/dist/cjs/components/blockquote/blockquote.style.cjs +1 -1
- package/dist/cjs/components/blockquote/blockquote.style.cjs.map +1 -1
- package/dist/cjs/components/breadcrumb/use-breadcrumb.cjs +2 -1
- package/dist/cjs/components/breadcrumb/use-breadcrumb.cjs.map +1 -1
- package/dist/cjs/components/bubble/bubble.cjs +163 -0
- package/dist/cjs/components/bubble/bubble.cjs.map +1 -0
- package/dist/cjs/components/bubble/bubble.style.cjs +143 -0
- package/dist/cjs/components/bubble/bubble.style.cjs.map +1 -0
- package/dist/cjs/components/bubble/index.cjs +18 -0
- package/dist/cjs/components/bubble/namespace.cjs +28 -0
- package/dist/cjs/components/bubble/namespace.cjs.map +1 -0
- package/dist/cjs/components/button/button.cjs +11 -8
- package/dist/cjs/components/button/button.cjs.map +1 -1
- package/dist/cjs/components/calendar/calendar.cjs +3 -1
- package/dist/cjs/components/calendar/calendar.cjs.map +1 -1
- package/dist/cjs/components/calendar/use-calendar.cjs +11 -6
- package/dist/cjs/components/calendar/use-calendar.cjs.map +1 -1
- package/dist/cjs/components/code/code.style.cjs +2 -1
- package/dist/cjs/components/code/code.style.cjs.map +1 -1
- package/dist/cjs/components/date-picker/use-date-picker.cjs +10 -10
- package/dist/cjs/components/date-picker/use-date-picker.cjs.map +1 -1
- package/dist/cjs/components/drawer/drawer.cjs +13 -1
- package/dist/cjs/components/drawer/drawer.cjs.map +1 -1
- package/dist/cjs/components/drawer/index.cjs +1 -0
- package/dist/cjs/components/drawer/namespace.cjs +2 -0
- package/dist/cjs/components/drawer/namespace.cjs.map +1 -1
- package/dist/cjs/components/drawer/use-drawer.cjs +139 -11
- package/dist/cjs/components/drawer/use-drawer.cjs.map +1 -1
- package/dist/cjs/components/field/field.cjs +4 -3
- package/dist/cjs/components/field/field.cjs.map +1 -1
- package/dist/cjs/components/file-input/use-file-input.cjs.map +1 -1
- package/dist/cjs/components/icon/icons/armenian-dram-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/armenian-dram-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/bangladeshi-taka-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/bangladeshi-taka-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/belarusian-ruble-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/belarusian-ruble-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/calendar-chevrons-left-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/calendar-chevrons-left-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/certificate-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/certificate-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/circle-fading-play-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/circle-fading-play-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/cpu-ai-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/cpu-ai-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/door-closed-cog-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/door-closed-cog-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/eighth-note-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/eighth-note-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/eighth-notes-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/eighth-notes-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/folder-user-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/folder-user-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/folder-users-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/folder-users-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/graph-star-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/graph-star-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/groceries-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/groceries-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/guitar-electric-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/guitar-electric-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/half-note-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/half-note-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/handle-bottom-right-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/handle-bottom-right-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/hiking-stick-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/hiking-stick-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/index.cjs +123 -12
- package/dist/cjs/components/icon/icons/index.cjs.map +1 -1
- package/dist/cjs/components/icon/icons/kazakh-tenge-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/kazakh-tenge-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/layout-grid-circles-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/layout-grid-circles-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/lens-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/lens-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/letters-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/letters-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/mail-dot-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/mail-dot-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/message-circle-text-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/message-circle-text-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/perfume-bottle-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/perfume-bottle-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/phone-log-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/phone-log-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/printer3d-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/printer3d-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/rugby-ball-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/rugby-ball-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/scratch-blocks-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/scratch-blocks-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/screw-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/screw-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/server-nas-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/server-nas-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/shield-house-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/shield-house-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/sixteenth-notes-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/sixteenth-notes-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/text-align-justify-center-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/text-align-justify-center-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/text-align-justify-end-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/text-align-justify-end-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/text-align-justify-start-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/text-align-justify-start-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/user-round-star-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/user-round-star-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/users-collaboration-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/users-collaboration-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/users-round-collaboration-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/users-round-collaboration-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/wifi-lock-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/wifi-lock-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/icons/wind-arrow-up-icon.cjs +14 -0
- package/dist/cjs/components/icon/icons/wind-arrow-up-icon.cjs.map +1 -0
- package/dist/cjs/components/icon/index.cjs +82 -8
- package/dist/cjs/components/kbd/kbd.style.cjs +2 -1
- package/dist/cjs/components/kbd/kbd.style.cjs.map +1 -1
- package/dist/cjs/components/list/list.cjs +5 -3
- package/dist/cjs/components/list/list.cjs.map +1 -1
- package/dist/cjs/components/marquee/index.cjs +21 -0
- package/dist/cjs/components/marquee/marquee.cjs +74 -0
- package/dist/cjs/components/marquee/marquee.cjs.map +1 -0
- package/dist/cjs/components/marquee/marquee.style.cjs +121 -0
- package/dist/cjs/components/marquee/marquee.style.cjs.map +1 -0
- package/dist/cjs/components/marquee/namespace.cjs +26 -0
- package/dist/cjs/components/marquee/namespace.cjs.map +1 -0
- package/dist/cjs/components/marquee/use-marquee.cjs +183 -0
- package/dist/cjs/components/marquee/use-marquee.cjs.map +1 -0
- package/dist/cjs/components/native-accordion/native-accordion.cjs +4 -3
- package/dist/cjs/components/native-accordion/native-accordion.cjs.map +1 -1
- package/dist/cjs/components/prose/index.cjs +7 -0
- package/dist/cjs/components/prose/prose.cjs +17 -0
- package/dist/cjs/components/prose/prose.cjs.map +1 -0
- package/dist/cjs/components/prose/prose.style.cjs +205 -0
- package/dist/cjs/components/prose/prose.style.cjs.map +1 -0
- package/dist/cjs/components/reorder/use-reorder.cjs +2 -1
- package/dist/cjs/components/reorder/use-reorder.cjs.map +1 -1
- package/dist/cjs/components/resizable/index.cjs +6 -1
- package/dist/cjs/components/resizable/namespace.cjs +6 -1
- package/dist/cjs/components/resizable/use-resizable.cjs +6 -1
- package/dist/cjs/components/select/use-select.cjs.map +1 -1
- package/dist/cjs/components/sidebar/sidebar.cjs +4 -3
- package/dist/cjs/components/sidebar/sidebar.cjs.map +1 -1
- package/dist/cjs/components/slot/slot.cjs +10 -9
- package/dist/cjs/components/slot/slot.cjs.map +1 -1
- package/dist/cjs/components/stack/stack.cjs +2 -1
- package/dist/cjs/components/stack/stack.cjs.map +1 -1
- package/dist/cjs/components/table/index.cjs +6 -1
- package/dist/cjs/components/toggle/toggle.style.cjs +2 -0
- package/dist/cjs/components/toggle/toggle.style.cjs.map +1 -1
- package/dist/cjs/components/tree/tree.cjs +5 -3
- package/dist/cjs/components/tree/tree.cjs.map +1 -1
- package/dist/cjs/core/components/create-component.cjs +1 -1
- package/dist/cjs/core/components/create-component.cjs.map +1 -1
- package/dist/cjs/core/css/conditions.cjs +4 -4
- package/dist/cjs/core/css/conditions.cjs.map +1 -1
- package/dist/cjs/core/css/styles.cjs.map +1 -1
- package/dist/cjs/hooks/use-focus/index.cjs +7 -14
- package/dist/cjs/hooks/use-focus/index.cjs.map +1 -1
- package/dist/cjs/index.cjs +306 -112
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/utils/children.cjs +22 -9
- package/dist/cjs/utils/children.cjs.map +1 -1
- package/dist/cjs/utils/index.cjs +4 -0
- package/dist/esm/components/accordion/accordion.js +5 -4
- package/dist/esm/components/accordion/accordion.js.map +1 -1
- package/dist/esm/components/aspect-ratio/aspect-ratio.js +2 -2
- package/dist/esm/components/aspect-ratio/aspect-ratio.js.map +1 -1
- package/dist/esm/components/blockquote/blockquote.style.js +1 -1
- package/dist/esm/components/blockquote/blockquote.style.js.map +1 -1
- package/dist/esm/components/box/index.js +1 -2
- package/dist/esm/components/breadcrumb/use-breadcrumb.js +2 -1
- package/dist/esm/components/breadcrumb/use-breadcrumb.js.map +1 -1
- package/dist/esm/components/bubble/bubble.js +157 -0
- package/dist/esm/components/bubble/bubble.js.map +1 -0
- package/dist/esm/components/bubble/bubble.style.js +144 -0
- package/dist/esm/components/bubble/bubble.style.js.map +1 -0
- package/dist/esm/components/bubble/index.js +4 -0
- package/dist/esm/components/bubble/namespace.js +16 -0
- package/dist/esm/components/bubble/namespace.js.map +1 -0
- package/dist/esm/components/button/button.js +11 -8
- package/dist/esm/components/button/button.js.map +1 -1
- package/dist/esm/components/calendar/calendar.js +3 -1
- package/dist/esm/components/calendar/calendar.js.map +1 -1
- package/dist/esm/components/calendar/use-calendar.js +12 -7
- package/dist/esm/components/calendar/use-calendar.js.map +1 -1
- package/dist/esm/components/client-only/index.js +1 -2
- package/dist/esm/components/code/code.style.js +2 -1
- package/dist/esm/components/code/code.style.js.map +1 -1
- package/dist/esm/components/date-picker/use-date-picker.js +10 -10
- package/dist/esm/components/date-picker/use-date-picker.js.map +1 -1
- package/dist/esm/components/drawer/drawer.js +13 -2
- package/dist/esm/components/drawer/drawer.js.map +1 -1
- package/dist/esm/components/drawer/index.js +2 -2
- package/dist/esm/components/drawer/namespace.js +3 -2
- package/dist/esm/components/drawer/namespace.js.map +1 -1
- package/dist/esm/components/drawer/use-drawer.js +140 -12
- package/dist/esm/components/drawer/use-drawer.js.map +1 -1
- package/dist/esm/components/field/field.js +5 -4
- package/dist/esm/components/field/field.js.map +1 -1
- package/dist/esm/components/file-input/use-file-input.js.map +1 -1
- package/dist/esm/components/focus-lock/index.js +1 -2
- package/dist/esm/components/for/index.js +1 -2
- package/dist/esm/components/icon/icons/armenian-dram-icon.js +14 -0
- package/dist/esm/components/icon/icons/armenian-dram-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/bangladeshi-taka-icon.js +14 -0
- package/dist/esm/components/icon/icons/bangladeshi-taka-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/belarusian-ruble-icon.js +14 -0
- package/dist/esm/components/icon/icons/belarusian-ruble-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/calendar-chevrons-left-icon.js +14 -0
- package/dist/esm/components/icon/icons/calendar-chevrons-left-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/certificate-icon.js +14 -0
- package/dist/esm/components/icon/icons/certificate-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/circle-fading-play-icon.js +14 -0
- package/dist/esm/components/icon/icons/circle-fading-play-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/cpu-ai-icon.js +14 -0
- package/dist/esm/components/icon/icons/cpu-ai-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/door-closed-cog-icon.js +14 -0
- package/dist/esm/components/icon/icons/door-closed-cog-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/eighth-note-icon.js +14 -0
- package/dist/esm/components/icon/icons/eighth-note-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/eighth-notes-icon.js +14 -0
- package/dist/esm/components/icon/icons/eighth-notes-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/folder-user-icon.js +14 -0
- package/dist/esm/components/icon/icons/folder-user-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/folder-users-icon.js +14 -0
- package/dist/esm/components/icon/icons/folder-users-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/graph-star-icon.js +14 -0
- package/dist/esm/components/icon/icons/graph-star-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/groceries-icon.js +14 -0
- package/dist/esm/components/icon/icons/groceries-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/guitar-electric-icon.js +14 -0
- package/dist/esm/components/icon/icons/guitar-electric-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/half-note-icon.js +14 -0
- package/dist/esm/components/icon/icons/half-note-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/handle-bottom-right-icon.js +14 -0
- package/dist/esm/components/icon/icons/handle-bottom-right-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/hiking-stick-icon.js +14 -0
- package/dist/esm/components/icon/icons/hiking-stick-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/index.js +83 -9
- package/dist/esm/components/icon/icons/index.js.map +1 -1
- package/dist/esm/components/icon/icons/kazakh-tenge-icon.js +14 -0
- package/dist/esm/components/icon/icons/kazakh-tenge-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/layout-grid-circles-icon.js +14 -0
- package/dist/esm/components/icon/icons/layout-grid-circles-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/lens-icon.js +14 -0
- package/dist/esm/components/icon/icons/lens-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/letters-icon.js +14 -0
- package/dist/esm/components/icon/icons/letters-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/mail-dot-icon.js +14 -0
- package/dist/esm/components/icon/icons/mail-dot-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/message-circle-text-icon.js +14 -0
- package/dist/esm/components/icon/icons/message-circle-text-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/perfume-bottle-icon.js +14 -0
- package/dist/esm/components/icon/icons/perfume-bottle-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/phone-log-icon.js +14 -0
- package/dist/esm/components/icon/icons/phone-log-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/printer3d-icon.js +14 -0
- package/dist/esm/components/icon/icons/printer3d-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/rugby-ball-icon.js +14 -0
- package/dist/esm/components/icon/icons/rugby-ball-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/scratch-blocks-icon.js +14 -0
- package/dist/esm/components/icon/icons/scratch-blocks-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/screw-icon.js +14 -0
- package/dist/esm/components/icon/icons/screw-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/server-nas-icon.js +14 -0
- package/dist/esm/components/icon/icons/server-nas-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/shield-house-icon.js +14 -0
- package/dist/esm/components/icon/icons/shield-house-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/sixteenth-notes-icon.js +14 -0
- package/dist/esm/components/icon/icons/sixteenth-notes-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/text-align-justify-center-icon.js +14 -0
- package/dist/esm/components/icon/icons/text-align-justify-center-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/text-align-justify-end-icon.js +14 -0
- package/dist/esm/components/icon/icons/text-align-justify-end-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/text-align-justify-start-icon.js +14 -0
- package/dist/esm/components/icon/icons/text-align-justify-start-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/user-round-star-icon.js +14 -0
- package/dist/esm/components/icon/icons/user-round-star-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/users-collaboration-icon.js +14 -0
- package/dist/esm/components/icon/icons/users-collaboration-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/users-round-collaboration-icon.js +14 -0
- package/dist/esm/components/icon/icons/users-round-collaboration-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/wifi-lock-icon.js +14 -0
- package/dist/esm/components/icon/icons/wifi-lock-icon.js.map +1 -0
- package/dist/esm/components/icon/icons/wind-arrow-up-icon.js +14 -0
- package/dist/esm/components/icon/icons/wind-arrow-up-icon.js.map +1 -0
- package/dist/esm/components/icon/index.js +42 -5
- package/dist/esm/components/kbd/kbd.style.js +2 -1
- package/dist/esm/components/kbd/kbd.style.js.map +1 -1
- package/dist/esm/components/list/list.js +5 -3
- package/dist/esm/components/list/list.js.map +1 -1
- package/dist/esm/components/marquee/index.js +5 -0
- package/dist/esm/components/marquee/marquee.js +69 -0
- package/dist/esm/components/marquee/marquee.js.map +1 -0
- package/dist/esm/components/marquee/marquee.style.js +122 -0
- package/dist/esm/components/marquee/marquee.style.js.map +1 -0
- package/dist/esm/components/marquee/namespace.js +15 -0
- package/dist/esm/components/marquee/namespace.js.map +1 -0
- package/dist/esm/components/marquee/use-marquee.js +181 -0
- package/dist/esm/components/marquee/use-marquee.js.map +1 -0
- package/dist/esm/components/native-accordion/native-accordion.js +5 -4
- package/dist/esm/components/native-accordion/native-accordion.js.map +1 -1
- package/dist/esm/components/picture/index.js +1 -2
- package/dist/esm/components/portal/index.js +1 -2
- package/dist/esm/components/prose/index.js +3 -0
- package/dist/esm/components/prose/prose.js +15 -0
- package/dist/esm/components/prose/prose.js.map +1 -0
- package/dist/esm/components/prose/prose.style.js +205 -0
- package/dist/esm/components/prose/prose.style.js.map +1 -0
- package/dist/esm/components/reorder/use-reorder.js +2 -1
- package/dist/esm/components/reorder/use-reorder.js.map +1 -1
- package/dist/esm/components/select/use-select.js.map +1 -1
- package/dist/esm/components/show/index.js +1 -2
- package/dist/esm/components/sidebar/sidebar.js +5 -4
- package/dist/esm/components/sidebar/sidebar.js.map +1 -1
- package/dist/esm/components/slot/index.js +1 -2
- package/dist/esm/components/slot/slot.js +11 -10
- package/dist/esm/components/slot/slot.js.map +1 -1
- package/dist/esm/components/stack/stack.js +2 -1
- package/dist/esm/components/stack/stack.js.map +1 -1
- package/dist/esm/components/table/index.js +1 -2
- package/dist/esm/components/tip/index.js +1 -2
- package/dist/esm/components/toggle/toggle.style.js +2 -0
- package/dist/esm/components/toggle/toggle.style.js.map +1 -1
- package/dist/esm/components/tree/tree.js +5 -3
- package/dist/esm/components/tree/tree.js.map +1 -1
- package/dist/esm/core/components/create-component.js +1 -1
- package/dist/esm/core/components/create-component.js.map +1 -1
- package/dist/esm/core/css/conditions.js +4 -4
- package/dist/esm/core/css/conditions.js.map +1 -1
- package/dist/esm/core/css/styles.js.map +1 -1
- package/dist/esm/hooks/use-focus/index.js +8 -15
- package/dist/esm/hooks/use-focus/index.js.map +1 -1
- package/dist/esm/index.js +215 -105
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/providers/ui-provider/index.js +1 -2
- package/dist/esm/utils/children.js +22 -11
- package/dist/esm/utils/children.js.map +1 -1
- package/dist/esm/utils/index.js +4 -2
- package/dist/types/components/alert/alert.d.ts +0 -1
- package/dist/types/components/alpha-slider/alpha-slider.d.ts +0 -1
- package/dist/types/components/autocomplete/autocomplete.d.ts +0 -1
- package/dist/types/components/breadcrumb/use-breadcrumb.d.ts +1 -1
- package/dist/types/components/bubble/bubble.d.ts +89 -0
- package/dist/types/components/bubble/bubble.style.d.ts +79 -0
- package/dist/types/components/bubble/index.d.ts +4 -0
- package/dist/types/components/bubble/namespace.d.ts +7 -0
- package/dist/types/components/button/button.d.ts +0 -1
- package/dist/types/components/calendar/calendar.d.ts +0 -1
- package/dist/types/components/calendar/use-calendar.d.ts +4 -3
- package/dist/types/components/color-picker/color-picker.d.ts +0 -3
- package/dist/types/components/color-selector/color-selector.d.ts +0 -1
- package/dist/types/components/color-selector/use-color-selector.d.ts +1 -0
- package/dist/types/components/date-picker/date-picker.d.ts +0 -3
- package/dist/types/components/date-picker/use-date-picker.d.ts +1 -0
- package/dist/types/components/drawer/drawer.d.ts +2 -0
- package/dist/types/components/drawer/index.d.ts +2 -2
- package/dist/types/components/drawer/namespace.d.ts +3 -3
- package/dist/types/components/drawer/use-drawer.d.ts +9 -2
- package/dist/types/components/dropzone/dropzone.d.ts +0 -1
- package/dist/types/components/field/use-field-props.d.ts +1 -1
- package/dist/types/components/hue-slider/hue-slider.d.ts +0 -1
- package/dist/types/components/icon/icons/armenian-dram-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/bangladeshi-taka-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/belarusian-ruble-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/calendar-chevrons-left-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/certificate-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/circle-fading-play-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/cpu-ai-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/door-closed-cog-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/eighth-note-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/eighth-notes-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/folder-user-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/folder-users-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/graph-star-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/groceries-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/guitar-electric-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/half-note-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/handle-bottom-right-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/hiking-stick-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/index.d.ts +43 -6
- package/dist/types/components/icon/icons/index.type.d.ts +1 -1
- package/dist/types/components/icon/icons/kazakh-tenge-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/layout-grid-circles-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/lens-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/letters-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/mail-dot-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/message-circle-text-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/perfume-bottle-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/phone-log-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/printer3d-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/rugby-ball-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/scratch-blocks-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/{music-icon.d.ts → screw-icon.d.ts} +4 -4
- package/dist/types/components/icon/icons/server-nas-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/shield-house-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/sixteenth-notes-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/text-align-justify-center-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/text-align-justify-end-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/text-align-justify-start-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/user-round-star-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/users-collaboration-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/users-round-collaboration-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/wifi-lock-icon.d.ts +12 -0
- package/dist/types/components/icon/icons/wind-arrow-up-icon.d.ts +12 -0
- package/dist/types/components/icon/index.d.ts +42 -5
- package/dist/types/components/loading/loading-provider.d.ts +1 -0
- package/dist/types/components/loading/use-loading-component.d.ts +0 -1
- package/dist/types/components/marquee/index.d.ts +5 -0
- package/dist/types/components/marquee/marquee.d.ts +50 -0
- package/dist/types/components/marquee/marquee.style.d.ts +8 -0
- package/dist/types/components/marquee/namespace.d.ts +8 -0
- package/dist/types/components/marquee/use-marquee.d.ts +127 -0
- package/dist/types/components/menu/menu.d.ts +0 -1
- package/dist/types/components/motion/factory.d.ts +1 -0
- package/dist/types/components/motion/index.type.d.ts +4 -3
- package/dist/types/components/native-select/native-select.d.ts +0 -1
- package/dist/types/components/native-select/use-native-select.d.ts +1 -0
- package/dist/types/components/notice/use-notice.d.ts +0 -1
- package/dist/types/components/number-input/number-input.d.ts +0 -1
- package/dist/types/components/pagination/pagination.d.ts +0 -1
- package/dist/types/components/password-input/password-input.d.ts +0 -1
- package/dist/types/components/prose/index.d.ts +3 -0
- package/dist/types/components/prose/prose.d.ts +17 -0
- package/dist/types/components/prose/prose.style.d.ts +121 -0
- package/dist/types/components/rating/rating.d.ts +1 -0
- package/dist/types/components/reorder/use-reorder.d.ts +1 -1
- package/dist/types/components/select/select.d.ts +0 -1
- package/dist/types/components/sidebar/sidebar.d.ts +0 -2
- package/dist/types/components/sidebar/sidebar.style.d.ts +1 -0
- package/dist/types/components/snacks/use-snacks.d.ts +1 -1
- package/dist/types/components/table/table.d.ts +0 -1
- package/dist/types/components/toggle/toggle.d.ts +6 -0
- package/dist/types/components/toggle/toggle.style.d.ts +2 -0
- package/dist/types/components/tree/tree.d.ts +0 -1
- package/dist/types/core/components/create-component.d.ts +1 -0
- package/dist/types/core/components/index.type.d.ts +4 -2
- package/dist/types/core/components/props.d.ts +1 -0
- package/dist/types/core/components/use-component-style.d.ts +1 -0
- package/dist/types/core/css/conditions.d.ts +10 -10
- package/dist/types/core/css/styles.d.ts +36 -16
- package/dist/types/core/system/breakpoint.d.ts +1 -0
- package/dist/types/core/system/config.d.ts +1 -0
- package/dist/types/core/system/create-system.d.ts +1 -0
- package/dist/types/core/system/factory.d.ts +1 -0
- package/dist/types/core/system/index.type.d.ts +1 -0
- package/dist/types/core/system/system-provider.d.ts +1 -0
- package/dist/types/hooks/use-async/index.d.ts +1 -0
- package/dist/types/hooks/use-async-callback/index.d.ts +1 -1
- package/dist/types/hooks/use-controllable-state/index.d.ts +1 -0
- package/dist/types/hooks/use-descendants/index.d.ts +1 -0
- package/dist/types/hooks/use-eye-dropper/index.d.ts +1 -0
- package/dist/types/hooks/use-popper/index.d.ts +1 -0
- package/dist/types/hooks/use-window-event/index.d.ts +1 -0
- package/dist/types/index.d.ts +103 -54
- package/dist/types/providers/i18n-provider/i18n-cache.d.ts +1 -0
- package/dist/types/providers/i18n-provider/icu.type.d.ts +1 -0
- package/dist/types/utils/children.d.ts +11 -2
- package/dist/types/utils/context.d.ts +1 -0
- package/dist/types/utils/dom.d.ts +1 -0
- package/dist/types/utils/index.d.ts +3 -3
- package/dist/types/utils/store.d.ts +1 -0
- package/package.json +21 -18
- package/dist/cjs/components/icon/icons/music-icon.cjs +0 -14
- package/dist/cjs/components/icon/icons/music-icon.cjs.map +0 -1
- package/dist/cjs/components/icon/icons/music2-icon.cjs +0 -14
- package/dist/cjs/components/icon/icons/music2-icon.cjs.map +0 -1
- package/dist/cjs/components/icon/icons/music3-icon.cjs +0 -14
- package/dist/cjs/components/icon/icons/music3-icon.cjs.map +0 -1
- package/dist/cjs/components/icon/icons/music4-icon.cjs +0 -14
- package/dist/cjs/components/icon/icons/music4-icon.cjs.map +0 -1
- package/dist/esm/components/icon/icons/music-icon.js +0 -14
- package/dist/esm/components/icon/icons/music-icon.js.map +0 -1
- package/dist/esm/components/icon/icons/music2-icon.js +0 -14
- package/dist/esm/components/icon/icons/music2-icon.js.map +0 -1
- package/dist/esm/components/icon/icons/music3-icon.js +0 -14
- package/dist/esm/components/icon/icons/music3-icon.js.map +0 -1
- package/dist/esm/components/icon/icons/music4-icon.js +0 -14
- package/dist/esm/components/icon/icons/music4-icon.js.map +0 -1
- package/dist/types/components/icon/icons/music2-icon.d.ts +0 -12
- package/dist/types/components/icon/icons/music3-icon.d.ts +0 -12
- package/dist/types/components/icon/icons/music4-icon.d.ts +0 -12
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["export * from \"./core\"\nexport * from \"./theme\"\nexport * from \"./utils\"\n\nexport * from \"./components/accordion\"\nexport * from \"./components/action-bar\"\nexport * from \"./components/airy\"\nexport * from \"./components/alert\"\nexport * from \"./components/alpha-slider\"\nexport * from \"./components/aspect-ratio\"\nexport * from \"./components/autocomplete\"\nexport * from \"./components/avatar\"\nexport * from \"./components/badge\"\nexport * from \"./components/bleed\"\nexport * from \"./components/blockquote\"\nexport * from \"./components/box\"\nexport * from \"./components/breadcrumb\"\nexport * from \"./components/button\"\nexport * from \"./components/calendar\"\nexport * from \"./components/card\"\nexport * from \"./components/carousel\"\nexport * from \"./components/center\"\nexport * from \"./components/chart\"\nexport * from \"./components/checkbox\"\nexport * from \"./components/checkbox-card\"\nexport * from \"./components/circle-progress\"\nexport * from \"./components/client-only\"\nexport * from \"./components/close-button\"\nexport * from \"./components/code\"\nexport * from \"./components/collapse\"\nexport * from \"./components/color-picker\"\nexport * from \"./components/color-selector\"\nexport * from \"./components/color-swatch\"\nexport * from \"./components/container\"\nexport * from \"./components/data-list\"\nexport * from \"./components/date-picker\"\nexport * from \"./components/drawer\"\nexport * from \"./components/dropzone\"\nexport * from \"./components/editable\"\nexport * from \"./components/em\"\nexport * from \"./components/empty-state\"\nexport * from \"./components/fade\"\nexport * from \"./components/fade-scale\"\nexport * from \"./components/field\"\nexport * from \"./components/fieldset\"\nexport * from \"./components/file-button\"\nexport * from \"./components/file-input\"\nexport * from \"./components/flex\"\nexport * from \"./components/flip\"\nexport * from \"./components/float\"\nexport * from \"./components/focus-lock\"\nexport * from \"./components/for\"\nexport * from \"./components/form\"\nexport * from \"./components/format\"\nexport * from \"./components/grid\"\nexport * from \"./components/group\"\nexport * from \"./components/heading\"\nexport * from \"./components/highlight\"\nexport * from \"./components/hue-slider\"\nexport * from \"./components/icon\"\nexport * from \"./components/image\"\nexport * from \"./components/indicator\"\nexport * from \"./components/infinite-scroll-area\"\nexport * from \"./components/input\"\nexport * from \"./components/kbd\"\nexport * from \"./components/link\"\nexport * from \"./components/link-box\"\nexport * from \"./components/list\"\nexport * from \"./components/loading\"\nexport * from \"./components/mark\"\nexport * from \"./components/menu\"\nexport * from \"./components/modal\"\nexport * from \"./components/motion\"\nexport * from \"./components/native-accordion\"\nexport * from \"./components/native-popover\"\nexport * from \"./components/native-select\"\nexport * from \"./components/native-table\"\nexport * from \"./components/notice\"\nexport * from \"./components/number-input\"\nexport * from \"./components/pagination\"\nexport * from \"./components/password-input\"\nexport * from \"./components/picture\"\nexport * from \"./components/pin-input\"\nexport * from \"./components/popover\"\nexport * from \"./components/portal\"\nexport * from \"./components/progress\"\nexport * from \"./components/qr-code\"\nexport * from \"./components/radio\"\nexport * from \"./components/radio-card\"\nexport * from \"./components/rating\"\nexport * from \"./components/reorder\"\nexport * from \"./components/resizable\"\nexport * from \"./components/ripple\"\nexport * from \"./components/rotate\"\nexport * from \"./components/saturation-slider\"\nexport * from \"./components/scroll-area\"\nexport * from \"./components/segmented-control\"\nexport * from \"./components/select\"\nexport * from \"./components/separator\"\nexport * from \"./components/show\"\nexport * from \"./components/sidebar\"\nexport * from \"./components/simple-grid\"\nexport * from \"./components/skeleton\"\nexport * from \"./components/slide\"\nexport * from \"./components/slide-fade\"\nexport * from \"./components/slider\"\nexport * from \"./components/slot\"\nexport * from \"./components/snacks\"\nexport * from \"./components/stack\"\nexport * from \"./components/stat\"\nexport * from \"./components/status\"\nexport * from \"./components/steps\"\nexport * from \"./components/switch\"\nexport * from \"./components/table\"\nexport * from \"./components/tabs\"\nexport * from \"./components/tag\"\nexport * from \"./components/text\"\nexport * from \"./components/textarea\"\nexport * from \"./components/timeline\"\nexport * from \"./components/tip\"\nexport * from \"./components/toggle\"\nexport * from \"./components/tooltip\"\nexport * from \"./components/tree\"\nexport * from \"./components/visually-hidden\"\nexport * from \"./components/wrap\"\n\nexport * from \"./hooks/use-animation\"\nexport * from \"./hooks/use-async\"\nexport * from \"./hooks/use-async-callback\"\nexport * from \"./hooks/use-boolean\"\nexport * from \"./hooks/use-breakpoint\"\nexport * from \"./hooks/use-clickable\"\nexport * from \"./hooks/use-clipboard\"\nexport * from \"./hooks/use-combobox\"\nexport * from \"./hooks/use-controllable-state\"\nexport * from \"./hooks/use-counter\"\nexport * from \"./hooks/use-descendants\"\nexport * from \"./hooks/use-disclosure\"\nexport * from \"./hooks/use-event-listener\"\nexport * from \"./hooks/use-eye-dropper\"\nexport * from \"./hooks/use-field-sizing\"\nexport * from \"./hooks/use-focus\"\nexport * from \"./hooks/use-hover\"\nexport * from \"./hooks/use-idle\"\nexport * from \"./hooks/use-interval\"\nexport * from \"./hooks/use-lazy-mount\"\nexport * from \"./hooks/use-local-storage\"\nexport * from \"./hooks/use-media-query\"\nexport * from \"./hooks/use-mounted\"\nexport * from \"./hooks/use-online\"\nexport * from \"./hooks/use-os\"\nexport * from \"./hooks/use-outside-click\"\nexport * from \"./hooks/use-pan-event\"\nexport * from \"./hooks/use-popper\"\nexport * from \"./hooks/use-previous\"\nexport * from \"./hooks/use-processing\"\nexport * from \"./hooks/use-resize-observer\"\nexport * from \"./hooks/use-timeout\"\nexport * from \"./hooks/use-value\"\nexport * from \"./hooks/use-window-event\"\n\nexport * from \"./providers/i18n-provider\"\nexport * from \"./providers/ui-provider\"\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["export * from \"./core\"\nexport * from \"./theme\"\nexport * from \"./utils\"\n\nexport * from \"./components/accordion\"\nexport * from \"./components/action-bar\"\nexport * from \"./components/airy\"\nexport * from \"./components/alert\"\nexport * from \"./components/alpha-slider\"\nexport * from \"./components/aspect-ratio\"\nexport * from \"./components/autocomplete\"\nexport * from \"./components/avatar\"\nexport * from \"./components/badge\"\nexport * from \"./components/bleed\"\nexport * from \"./components/blockquote\"\nexport * from \"./components/box\"\nexport * from \"./components/breadcrumb\"\nexport * from \"./components/bubble\"\nexport * from \"./components/button\"\nexport * from \"./components/calendar\"\nexport * from \"./components/card\"\nexport * from \"./components/carousel\"\nexport * from \"./components/center\"\nexport * from \"./components/chart\"\nexport * from \"./components/checkbox\"\nexport * from \"./components/checkbox-card\"\nexport * from \"./components/circle-progress\"\nexport * from \"./components/client-only\"\nexport * from \"./components/close-button\"\nexport * from \"./components/code\"\nexport * from \"./components/collapse\"\nexport * from \"./components/color-picker\"\nexport * from \"./components/color-selector\"\nexport * from \"./components/color-swatch\"\nexport * from \"./components/container\"\nexport * from \"./components/data-list\"\nexport * from \"./components/date-picker\"\nexport * from \"./components/drawer\"\nexport * from \"./components/dropzone\"\nexport * from \"./components/editable\"\nexport * from \"./components/em\"\nexport * from \"./components/empty-state\"\nexport * from \"./components/fade\"\nexport * from \"./components/fade-scale\"\nexport * from \"./components/field\"\nexport * from \"./components/fieldset\"\nexport * from \"./components/file-button\"\nexport * from \"./components/file-input\"\nexport * from \"./components/flex\"\nexport * from \"./components/flip\"\nexport * from \"./components/float\"\nexport * from \"./components/focus-lock\"\nexport * from \"./components/for\"\nexport * from \"./components/form\"\nexport * from \"./components/format\"\nexport * from \"./components/grid\"\nexport * from \"./components/group\"\nexport * from \"./components/heading\"\nexport * from \"./components/highlight\"\nexport * from \"./components/hue-slider\"\nexport * from \"./components/icon\"\nexport * from \"./components/image\"\nexport * from \"./components/indicator\"\nexport * from \"./components/infinite-scroll-area\"\nexport * from \"./components/input\"\nexport * from \"./components/kbd\"\nexport * from \"./components/link\"\nexport * from \"./components/link-box\"\nexport * from \"./components/list\"\nexport * from \"./components/loading\"\nexport * from \"./components/mark\"\nexport * from \"./components/marquee\"\nexport * from \"./components/menu\"\nexport * from \"./components/modal\"\nexport * from \"./components/motion\"\nexport * from \"./components/native-accordion\"\nexport * from \"./components/native-popover\"\nexport * from \"./components/native-select\"\nexport * from \"./components/native-table\"\nexport * from \"./components/notice\"\nexport * from \"./components/number-input\"\nexport * from \"./components/pagination\"\nexport * from \"./components/password-input\"\nexport * from \"./components/picture\"\nexport * from \"./components/pin-input\"\nexport * from \"./components/popover\"\nexport * from \"./components/portal\"\nexport * from \"./components/progress\"\nexport * from \"./components/prose\"\nexport * from \"./components/qr-code\"\nexport * from \"./components/radio\"\nexport * from \"./components/radio-card\"\nexport * from \"./components/rating\"\nexport * from \"./components/reorder\"\nexport * from \"./components/resizable\"\nexport * from \"./components/ripple\"\nexport * from \"./components/rotate\"\nexport * from \"./components/saturation-slider\"\nexport * from \"./components/scroll-area\"\nexport * from \"./components/segmented-control\"\nexport * from \"./components/select\"\nexport * from \"./components/separator\"\nexport * from \"./components/show\"\nexport * from \"./components/sidebar\"\nexport * from \"./components/simple-grid\"\nexport * from \"./components/skeleton\"\nexport * from \"./components/slide\"\nexport * from \"./components/slide-fade\"\nexport * from \"./components/slider\"\nexport * from \"./components/slot\"\nexport * from \"./components/snacks\"\nexport * from \"./components/stack\"\nexport * from \"./components/stat\"\nexport * from \"./components/status\"\nexport * from \"./components/steps\"\nexport * from \"./components/switch\"\nexport * from \"./components/table\"\nexport * from \"./components/tabs\"\nexport * from \"./components/tag\"\nexport * from \"./components/text\"\nexport * from \"./components/textarea\"\nexport * from \"./components/timeline\"\nexport * from \"./components/tip\"\nexport * from \"./components/toggle\"\nexport * from \"./components/tooltip\"\nexport * from \"./components/tree\"\nexport * from \"./components/visually-hidden\"\nexport * from \"./components/wrap\"\n\nexport * from \"./hooks/use-animation\"\nexport * from \"./hooks/use-async\"\nexport * from \"./hooks/use-async-callback\"\nexport * from \"./hooks/use-boolean\"\nexport * from \"./hooks/use-breakpoint\"\nexport * from \"./hooks/use-clickable\"\nexport * from \"./hooks/use-clipboard\"\nexport * from \"./hooks/use-combobox\"\nexport * from \"./hooks/use-controllable-state\"\nexport * from \"./hooks/use-counter\"\nexport * from \"./hooks/use-descendants\"\nexport * from \"./hooks/use-disclosure\"\nexport * from \"./hooks/use-event-listener\"\nexport * from \"./hooks/use-eye-dropper\"\nexport * from \"./hooks/use-field-sizing\"\nexport * from \"./hooks/use-focus\"\nexport * from \"./hooks/use-hover\"\nexport * from \"./hooks/use-idle\"\nexport * from \"./hooks/use-interval\"\nexport * from \"./hooks/use-lazy-mount\"\nexport * from \"./hooks/use-local-storage\"\nexport * from \"./hooks/use-media-query\"\nexport * from \"./hooks/use-mounted\"\nexport * from \"./hooks/use-online\"\nexport * from \"./hooks/use-os\"\nexport * from \"./hooks/use-outside-click\"\nexport * from \"./hooks/use-pan-event\"\nexport * from \"./hooks/use-popper\"\nexport * from \"./hooks/use-previous\"\nexport * from \"./hooks/use-processing\"\nexport * from \"./hooks/use-resize-observer\"\nexport * from \"./hooks/use-timeout\"\nexport * from \"./hooks/use-value\"\nexport * from \"./hooks/use-window-event\"\n\nexport * from \"./providers/i18n-provider\"\nexport * from \"./providers/ui-provider\"\n"],"mappings":""}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { UIProvider, extendConfig, extendTheme };
|
|
1
|
+
export { UIProvider, extendConfig, extendTheme } from "./ui-provider.js";
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { isArray, isEmpty, isNumber, isString, isUndefined } from "@yamada-ui/utils";
|
|
2
|
+
import { isArray, isEmpty, isNumber, isObject, isString, isUndefined } from "@yamada-ui/utils";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/utils/children.tsx
|
|
5
|
-
function
|
|
6
|
-
return
|
|
7
|
-
}
|
|
8
|
-
function useValidChildren(children) {
|
|
9
|
-
return React.useMemo(() => getValidChildren(children), [children]);
|
|
5
|
+
function isLazy(value) {
|
|
6
|
+
return isObject(value) && "$$typeof" in value && value.$$typeof === Symbol.for("react.lazy");
|
|
10
7
|
}
|
|
11
8
|
function isValidElement$1(child) {
|
|
12
9
|
return React.isValidElement(child) || isString(child) || isNumber(child);
|
|
@@ -35,6 +32,19 @@ function isSomeElement(a, b) {
|
|
|
35
32
|
if (isSomeDisplayName(a, b)) return true;
|
|
36
33
|
return false;
|
|
37
34
|
}
|
|
35
|
+
function getResolvedChild(value) {
|
|
36
|
+
while (isLazy(value)) {
|
|
37
|
+
const { _init, _payload } = value;
|
|
38
|
+
value = _init(_payload);
|
|
39
|
+
}
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
function getValidChildren(children) {
|
|
43
|
+
return React.Children.toArray(children).filter((child) => React.isValidElement(child));
|
|
44
|
+
}
|
|
45
|
+
function useValidChildren(children) {
|
|
46
|
+
return React.useMemo(() => getValidChildren(children), [children]);
|
|
47
|
+
}
|
|
38
48
|
function findChild(children, ...types) {
|
|
39
49
|
return children.find((child) => types.some((type) => isSomeElement(child.type, type)));
|
|
40
50
|
}
|
|
@@ -97,17 +107,18 @@ function useSplitChildren(children, ...types) {
|
|
|
97
107
|
return React.useMemo(() => splitChildren(children, ...typesRef.current), [children]);
|
|
98
108
|
}
|
|
99
109
|
const wrapOrPassProps = (Component, nodeOrProps, additionalProps) => {
|
|
100
|
-
|
|
101
|
-
|
|
110
|
+
const resolved = getResolvedChild(nodeOrProps);
|
|
111
|
+
if (isUndefined(resolved)) return null;
|
|
112
|
+
else if (isValidElement$1(resolved)) {
|
|
102
113
|
additionalProps ??= {};
|
|
103
|
-
additionalProps.children =
|
|
114
|
+
additionalProps.children = resolved;
|
|
104
115
|
return /* @__PURE__ */ jsx(Component, { ...additionalProps });
|
|
105
116
|
} else return /* @__PURE__ */ jsx(Component, {
|
|
106
117
|
...additionalProps,
|
|
107
|
-
...
|
|
118
|
+
...resolved
|
|
108
119
|
});
|
|
109
120
|
};
|
|
110
121
|
//#endregion
|
|
111
|
-
export { findChild, findChildren, getValidChildren, includesChildren, isSomeDisplayName, isSomeElement, isValidElement$1 as isValidElement, omitChildren, pickChildren, splitChildren, useFindChild, useFindChildren, useIncludesChildren, useOmitChildren, usePickChildren, useSplitChildren, useValidChildren, wrapOrPassProps };
|
|
122
|
+
export { findChild, findChildren, getResolvedChild, getValidChildren, includesChildren, isLazy, isSomeDisplayName, isSomeElement, isValidElement$1 as isValidElement, omitChildren, pickChildren, splitChildren, useFindChild, useFindChildren, useIncludesChildren, useOmitChildren, usePickChildren, useSplitChildren, useValidChildren, wrapOrPassProps };
|
|
112
123
|
|
|
113
124
|
//# sourceMappingURL=children.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"children.js","names":["isValidElement"],"sources":["../../../src/utils/children.tsx"],"sourcesContent":["import {\n isArray,\n isEmpty,\n isNumber,\n isString,\n isUndefined,\n} from \"@yamada-ui/utils\"\nimport * as React from \"react\"\n\nexport function getValidChildren(\n children: React.ReactNode,\n): React.ReactElement<any>[] {\n return React.Children.toArray(children).filter((child) =>\n React.isValidElement(child),\n )\n}\n\nexport function useValidChildren(children: React.ReactNode) {\n return React.useMemo(() => getValidChildren(children), [children])\n}\n\nexport function isValidElement(child: any): child is React.ReactNode {\n return React.isValidElement(child) || isString(child) || isNumber(child)\n}\n\nexport function isSomeDisplayName(a: any, b: any): boolean {\n if (isUndefined(a) || isUndefined(b)) return false\n\n if (isArray(a)) {\n if (a.includes(b)) return true\n if (!!b.displayName && a.includes(b.displayName)) return true\n if (!!b.name && a.includes(b.name)) return true\n } else {\n if (a === b) return true\n if (!!a.displayName && !!b.displayName && a.displayName === b.displayName)\n return true\n if (!!a.name && !!b.name && a.name === b.name) return true\n if (!!a.displayName && !!b.name && a.displayName === b.name) return true\n if (!!a.name && !!b.displayName && a.name === b.displayName) return true\n }\n\n return false\n}\n\nexport function isSomeElement(a: any, b: any): boolean {\n if (isUndefined(a) || isUndefined(b)) return false\n if (a === b) return true\n if (isSomeDisplayName(a, b)) return true\n\n a = a._payload?.value\n\n if (isUndefined(a)) return false\n if (isSomeDisplayName(a, b)) return true\n\n return false\n}\n\nexport function findChild<Y = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y> | undefined {\n const child = children.find((child) =>\n types.some((type) => isSomeElement(child.type, type)),\n )\n\n return child as React.ReactElement<Y> | undefined\n}\n\nexport function useFindChild<Y = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y> | undefined {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => findChild<Y>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport function findChildren<Y = any, M = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): [React.ReactElement<Y> | undefined, ...React.ReactElement<M>[]] {\n const child = findChild(children, ...types)\n\n if (child)\n return children.sort((a, b) => {\n if (types.some((type) => isSomeElement(a.type, type))) return -1\n else if (types.some((type) => isSomeElement(b.type, type))) return 1\n else return 0\n }) as [React.ReactElement<Y> | undefined, ...React.ReactElement<M>[]]\n else return [undefined, ...(children as React.ReactElement<M>[])]\n}\n\nexport function useFindChildren<Y = any, M = any>(\n children: React.ReactElement<M>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): [React.ReactElement<Y> | undefined, ...React.ReactElement<M>[]] {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => findChildren<Y, M>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport function includesChildren(\n children: React.ReactElement<any>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): boolean {\n return children.some((child) => {\n if (types.some((type) => isSomeElement(child.type, type))) return true\n\n const children = getValidChildren(child.props.children)\n\n return children.length ? includesChildren(children, ...types) : false\n })\n}\n\nexport function useIncludesChildren(\n children: React.ReactElement<any>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): boolean {\n return React.useMemo(\n () => includesChildren(children, ...types),\n [children, types],\n )\n}\n\nexport function omitChildren<Y = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y>[] {\n return children.filter((child) =>\n types.every((type) => !isSomeElement(child.type, type)),\n ) as React.ReactElement<Y>[]\n}\n\nexport function useOmitChildren<Y = any>(\n children: React.ReactElement<any>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y>[] {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => omitChildren<Y>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport function pickChildren<Y = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y>[] {\n return children.filter((child) =>\n types.some((type) => isSomeElement(child.type, type)),\n ) as React.ReactElement<Y>[]\n}\n\nexport function usePickChildren<Y = any>(\n children: React.ReactElement<any>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y>[] {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => pickChildren<Y>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport function splitChildren<Y = any, M = any>(\n children: React.ReactNode,\n ...types: (\n | (React.JSXElementConstructor<any> | string)[]\n | React.JSXElementConstructor<any>\n | string\n )[]\n): [\n React.ReactElement<M>[] | React.ReactNode,\n ...(React.ReactElement<Y>[] | undefined)[],\n] {\n const validChildren = getValidChildren(children)\n\n if (isEmpty(validChildren)) return [children]\n\n const pickedChildren = types.map((types) => {\n if (isArray(types)) {\n const pickedChildren = pickChildren(validChildren, ...types)\n\n return !isEmpty(pickedChildren) ? pickedChildren : undefined\n } else {\n const pickedChildren = pickChildren(validChildren, types)\n\n return !isEmpty(pickedChildren) ? pickedChildren : undefined\n }\n })\n\n const omittedChildren = omitChildren(validChildren, ...types.flat())\n\n return [omittedChildren, ...pickedChildren] as const\n}\n\nexport function useSplitChildren<Y = any, M = any>(\n children: React.ReactNode,\n ...types: (\n | (React.JSXElementConstructor<any> | string)[]\n | React.JSXElementConstructor<any>\n | string\n )[]\n): [\n React.ReactElement<M>[] | React.ReactNode,\n ...(React.ReactElement<Y>[] | undefined)[],\n] {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => splitChildren<Y, M>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport const wrapOrPassProps = <Y extends React.PropsWithChildren>(\n Component: React.FC<Y>,\n nodeOrProps: React.ReactNode | Y,\n additionalProps?: Y,\n) => {\n if (isUndefined(nodeOrProps)) {\n return null\n } else if (isValidElement(nodeOrProps)) {\n additionalProps ??= {} as Y\n additionalProps.children = nodeOrProps\n\n return <Component {...additionalProps} />\n } else {\n return <Component {...additionalProps} {...nodeOrProps} />\n }\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"children.js","names":["isValidElement"],"sources":["../../../src/utils/children.tsx"],"sourcesContent":["import {\n isArray,\n isEmpty,\n isNumber,\n isObject,\n isString,\n isUndefined,\n} from \"@yamada-ui/utils\"\nimport * as React from \"react\"\n\nexport function isLazy(value: unknown): value is {\n $$typeof: symbol\n _payload: unknown\n _init: (payload: unknown) => unknown\n} {\n return (\n isObject(value) &&\n \"$$typeof\" in value &&\n value.$$typeof === Symbol.for(\"react.lazy\")\n )\n}\n\nexport function isValidElement(child: any): child is React.ReactNode {\n return React.isValidElement(child) || isString(child) || isNumber(child)\n}\n\nexport function isSomeDisplayName(a: any, b: any): boolean {\n if (isUndefined(a) || isUndefined(b)) return false\n\n if (isArray(a)) {\n if (a.includes(b)) return true\n if (!!b.displayName && a.includes(b.displayName)) return true\n if (!!b.name && a.includes(b.name)) return true\n } else {\n if (a === b) return true\n if (!!a.displayName && !!b.displayName && a.displayName === b.displayName)\n return true\n if (!!a.name && !!b.name && a.name === b.name) return true\n if (!!a.displayName && !!b.name && a.displayName === b.name) return true\n if (!!a.name && !!b.displayName && a.name === b.displayName) return true\n }\n\n return false\n}\n\nexport function isSomeElement(a: any, b: any): boolean {\n if (isUndefined(a) || isUndefined(b)) return false\n if (a === b) return true\n if (isSomeDisplayName(a, b)) return true\n\n a = a._payload?.value\n\n if (isUndefined(a)) return false\n if (isSomeDisplayName(a, b)) return true\n\n return false\n}\n\nexport function getResolvedChild(value: React.ReactNode): React.ReactNode\nexport function getResolvedChild<Y>(\n value: Y,\n): Y extends { $$typeof: symbol } ? unknown : Y\nexport function getResolvedChild(value: unknown): unknown {\n while (isLazy(value)) {\n const { _init, _payload } = value\n\n value = _init(_payload)\n }\n\n return value\n}\n\nexport function getValidChildren(\n children: React.ReactNode,\n): React.ReactElement<any>[] {\n return React.Children.toArray(children).filter((child) =>\n React.isValidElement(child),\n )\n}\n\nexport function useValidChildren(children: React.ReactNode) {\n return React.useMemo(() => getValidChildren(children), [children])\n}\n\nexport function findChild<Y = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y> | undefined {\n const child = children.find((child) =>\n types.some((type) => isSomeElement(child.type, type)),\n )\n\n return child as React.ReactElement<Y> | undefined\n}\n\nexport function useFindChild<Y = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y> | undefined {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => findChild<Y>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport function findChildren<Y = any, M = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): [React.ReactElement<Y> | undefined, ...React.ReactElement<M>[]] {\n const child = findChild(children, ...types)\n\n if (child)\n return children.sort((a, b) => {\n if (types.some((type) => isSomeElement(a.type, type))) return -1\n else if (types.some((type) => isSomeElement(b.type, type))) return 1\n else return 0\n }) as [React.ReactElement<Y> | undefined, ...React.ReactElement<M>[]]\n else return [undefined, ...(children as React.ReactElement<M>[])]\n}\n\nexport function useFindChildren<Y = any, M = any>(\n children: React.ReactElement<M>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): [React.ReactElement<Y> | undefined, ...React.ReactElement<M>[]] {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => findChildren<Y, M>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport function includesChildren(\n children: React.ReactElement<any>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): boolean {\n return children.some((child) => {\n if (types.some((type) => isSomeElement(child.type, type))) return true\n\n const children = getValidChildren(child.props.children)\n\n return children.length ? includesChildren(children, ...types) : false\n })\n}\n\nexport function useIncludesChildren(\n children: React.ReactElement<any>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): boolean {\n return React.useMemo(\n () => includesChildren(children, ...types),\n [children, types],\n )\n}\n\nexport function omitChildren<Y = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y>[] {\n return children.filter((child) =>\n types.every((type) => !isSomeElement(child.type, type)),\n ) as React.ReactElement<Y>[]\n}\n\nexport function useOmitChildren<Y = any>(\n children: React.ReactElement<any>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y>[] {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => omitChildren<Y>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport function pickChildren<Y = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y>[] {\n return children.filter((child) =>\n types.some((type) => isSomeElement(child.type, type)),\n ) as React.ReactElement<Y>[]\n}\n\nexport function usePickChildren<Y = any>(\n children: React.ReactElement<any>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y>[] {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => pickChildren<Y>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport function splitChildren<Y = any, M = any>(\n children: React.ReactNode,\n ...types: (\n | (React.JSXElementConstructor<any> | string)[]\n | React.JSXElementConstructor<any>\n | string\n )[]\n): [\n React.ReactElement<M>[] | React.ReactNode,\n ...(React.ReactElement<Y>[] | undefined)[],\n] {\n const validChildren = getValidChildren(children)\n\n if (isEmpty(validChildren)) return [children]\n\n const pickedChildren = types.map((types) => {\n if (isArray(types)) {\n const pickedChildren = pickChildren(validChildren, ...types)\n\n return !isEmpty(pickedChildren) ? pickedChildren : undefined\n } else {\n const pickedChildren = pickChildren(validChildren, types)\n\n return !isEmpty(pickedChildren) ? pickedChildren : undefined\n }\n })\n\n const omittedChildren = omitChildren(validChildren, ...types.flat())\n\n return [omittedChildren, ...pickedChildren] as const\n}\n\nexport function useSplitChildren<Y = any, M = any>(\n children: React.ReactNode,\n ...types: (\n | (React.JSXElementConstructor<any> | string)[]\n | React.JSXElementConstructor<any>\n | string\n )[]\n): [\n React.ReactElement<M>[] | React.ReactNode,\n ...(React.ReactElement<Y>[] | undefined)[],\n] {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => splitChildren<Y, M>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport const wrapOrPassProps = <Y extends React.PropsWithChildren>(\n Component: React.FC<Y>,\n nodeOrProps: React.ReactNode | Y,\n additionalProps?: Y,\n) => {\n const resolved = getResolvedChild(nodeOrProps)\n\n if (isUndefined(resolved)) {\n return null\n } else if (isValidElement(resolved)) {\n additionalProps ??= {} as Y\n additionalProps.children = resolved\n\n return <Component {...additionalProps} />\n } else {\n return <Component {...additionalProps} {...(resolved as Y)} />\n }\n}\n"],"mappings":"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"}
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __exportAll, __reExport } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { findChild, findChildren, getValidChildren, includesChildren, isSomeDisplayName, isSomeElement, isValidElement, omitChildren, pickChildren, splitChildren, useFindChild, useFindChildren, useIncludesChildren, useOmitChildren, usePickChildren, useSplitChildren, useValidChildren, wrapOrPassProps } from "./children.js";
|
|
2
|
+
import { findChild, findChildren, getResolvedChild, getValidChildren, includesChildren, isLazy, isSomeDisplayName, isSomeElement, isValidElement, omitChildren, pickChildren, splitChildren, useFindChild, useFindChildren, useIncludesChildren, useOmitChildren, usePickChildren, useSplitChildren, useValidChildren, wrapOrPassProps } from "./children.js";
|
|
3
3
|
import { createContext } from "./context.js";
|
|
4
4
|
import { getEventRelatedTarget, isComposing, runKeyAction, useAttributeObserver, useIds, visuallyHiddenAttributes } from "./dom.js";
|
|
5
5
|
import { useSafeLayoutEffect, useUnmountEffect, useUpdateEffect } from "./effect.js";
|
|
@@ -15,9 +15,11 @@ var utils_exports = /* @__PURE__ */ __exportAll({
|
|
|
15
15
|
findChild: () => findChild,
|
|
16
16
|
findChildren: () => findChildren,
|
|
17
17
|
getEventRelatedTarget: () => getEventRelatedTarget,
|
|
18
|
+
getResolvedChild: () => getResolvedChild,
|
|
18
19
|
getValidChildren: () => getValidChildren,
|
|
19
20
|
includesChildren: () => includesChildren,
|
|
20
21
|
isComposing: () => isComposing,
|
|
22
|
+
isLazy: () => isLazy,
|
|
21
23
|
isRefObject: () => isRefObject,
|
|
22
24
|
isSomeDisplayName: () => isSomeDisplayName,
|
|
23
25
|
isSomeElement: () => isSomeElement,
|
|
@@ -48,6 +50,6 @@ var utils_exports = /* @__PURE__ */ __exportAll({
|
|
|
48
50
|
import * as import__yamada_ui_utils from "@yamada-ui/utils";
|
|
49
51
|
__reExport(utils_exports, import__yamada_ui_utils);
|
|
50
52
|
//#endregion
|
|
51
|
-
export { assignRef, createContext, createStore, findChild, findChildren, getEventRelatedTarget, getValidChildren, includesChildren, isComposing, isRefObject, isSomeDisplayName, isSomeElement, isValidElement, mergeRefs, omitChildren, pickChildren, runKeyAction, splitChildren, useAttributeObserver, useCallbackRef, useFindChild, useFindChildren, useIds, useIncludesChildren, useMergeRefs, useOmitChildren, usePickChildren, useSafeLayoutEffect, useSplitChildren, useSsr, useUnmountEffect, useUpdateEffect, useValidChildren, utils_exports, visuallyHiddenAttributes, wrapOrPassProps };
|
|
53
|
+
export { assignRef, createContext, createStore, findChild, findChildren, getEventRelatedTarget, getResolvedChild, getValidChildren, includesChildren, isComposing, isLazy, isRefObject, isSomeDisplayName, isSomeElement, isValidElement, mergeRefs, omitChildren, pickChildren, runKeyAction, splitChildren, useAttributeObserver, useCallbackRef, useFindChild, useFindChildren, useIds, useIncludesChildren, useMergeRefs, useOmitChildren, usePickChildren, useSafeLayoutEffect, useSplitChildren, useSsr, useUnmountEffect, useUpdateEffect, useValidChildren, utils_exports, visuallyHiddenAttributes, wrapOrPassProps };
|
|
52
54
|
|
|
53
55
|
//# sourceMappingURL=index.js.map
|
|
@@ -5,7 +5,6 @@ import { AlertStyle } from "./alert.style.js";
|
|
|
5
5
|
import { IconProps } from "../icon/icon.js";
|
|
6
6
|
import "../icon/index.js";
|
|
7
7
|
import { LoadingProps } from "../loading/loading.js";
|
|
8
|
-
import { namespace_d_exports } from "../loading/namespace.js";
|
|
9
8
|
import "../loading/index.js";
|
|
10
9
|
import { StatusScheme } from "../status/status.js";
|
|
11
10
|
import "../status/index.js";
|
|
@@ -3,7 +3,6 @@ import { Component } from "../../core/components/index.type.js";
|
|
|
3
3
|
import "../../core/index.js";
|
|
4
4
|
import { AlphaSliderStyle } from "./alpha-slider.style.js";
|
|
5
5
|
import { HueSliderOverlayProps, HueSliderRootProps, HueSliderThumbProps, HueSliderTrackProps } from "../hue-slider/hue-slider.js";
|
|
6
|
-
import { namespace_d_exports } from "../hue-slider/namespace.js";
|
|
7
6
|
import "../hue-slider/index.js";
|
|
8
7
|
import "../../index.js";
|
|
9
8
|
//#region src/components/alpha-slider/alpha-slider.d.ts
|
|
@@ -9,7 +9,6 @@ import { UseComboboxGroupProps } from "../../hooks/use-combobox/index.js";
|
|
|
9
9
|
import { UseInputBorderProps } from "../input/use-input-border.js";
|
|
10
10
|
import { InputElementProps } from "../input/input-element.js";
|
|
11
11
|
import { InputGroupRootProps } from "../input/input-group.js";
|
|
12
|
-
import { namespace_d_exports } from "../input/namespace.js";
|
|
13
12
|
import "../input/index.js";
|
|
14
13
|
import { UseAutocompleteOptionProps, UseAutocompleteProps } from "./use-autocomplete.js";
|
|
15
14
|
import "../../index.js";
|
|
@@ -36,7 +36,7 @@ export interface UseBreadcrumbProps extends HTMLProps<"nav"> {
|
|
|
36
36
|
*/
|
|
37
37
|
startBoundaries?: number;
|
|
38
38
|
}
|
|
39
|
-
export declare const useBreadcrumb: ({ children, ellipsis, endBoundaries, items, link, startBoundaries, ...rest }?: UseBreadcrumbProps) => {
|
|
39
|
+
export declare const useBreadcrumb: ({ children, ellipsis, endBoundaries, items, link: linkProp, startBoundaries, ...rest }?: UseBreadcrumbProps) => {
|
|
40
40
|
children: (string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | ReactElement<any, string | import("react").JSXElementConstructor<any>> | null | undefined)[];
|
|
41
41
|
getEllipsisProps: PropGetter<"svg", undefined, undefined>;
|
|
42
42
|
getLinkProps: PropGetter<"a", {
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Merge } from "../../utils/index.js";
|
|
2
|
+
import { Direction, SimpleDirection, ThemeProps } from "../../core/system/index.type.js";
|
|
3
|
+
import { Component, HTMLStyledProps } from "../../core/components/index.type.js";
|
|
4
|
+
import "../../core/index.js";
|
|
5
|
+
import { BubbleStyle } from "./bubble.style.js";
|
|
6
|
+
import "../../index.js";
|
|
7
|
+
import { ReactNode } from "react";
|
|
8
|
+
//#region src/components/bubble/bubble.d.ts
|
|
9
|
+
export interface BubbleItemWithContent extends Omit<BubbleItemProps, "children"> {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
reactions?: ReactNode;
|
|
12
|
+
reactionsProps?: Omit<BubbleReactionsProps, "children">;
|
|
13
|
+
}
|
|
14
|
+
export type BubbleItem = BubbleItemWithContent | Omit<BubbleGroupProps, "children" | "direction">;
|
|
15
|
+
export interface BubbleRootProps extends Merge<HTMLStyledProps, ThemeProps<BubbleStyle>> {
|
|
16
|
+
/**
|
|
17
|
+
* If provided, generate elements based on items.
|
|
18
|
+
*/
|
|
19
|
+
items?: BubbleItem[];
|
|
20
|
+
/**
|
|
21
|
+
* The props for content component.
|
|
22
|
+
*/
|
|
23
|
+
contentProps?: Omit<BubbleContentProps, "children">;
|
|
24
|
+
/**
|
|
25
|
+
* The theme props for group component in end direction.
|
|
26
|
+
*/
|
|
27
|
+
endGroupProps?: Omit<BubbleGroupProps, "children" | "direction" | "items">;
|
|
28
|
+
/**
|
|
29
|
+
* The theme props for item component in end direction.
|
|
30
|
+
*/
|
|
31
|
+
endItemProps?: Omit<BubbleItemProps, "children" | "direction">;
|
|
32
|
+
/**
|
|
33
|
+
* The props for group component.
|
|
34
|
+
*/
|
|
35
|
+
groupProps?: Omit<BubbleGroupProps, "children" | "direction" | "items">;
|
|
36
|
+
/**
|
|
37
|
+
* The props for item component.
|
|
38
|
+
*/
|
|
39
|
+
itemProps?: Omit<BubbleItemProps, "children" | "direction">;
|
|
40
|
+
/**
|
|
41
|
+
* The props for reactions component.
|
|
42
|
+
*/
|
|
43
|
+
reactionsProps?: Omit<BubbleReactionsProps, "children">;
|
|
44
|
+
/**
|
|
45
|
+
* The theme props for group component in start direction.
|
|
46
|
+
*/
|
|
47
|
+
startGroupProps?: Omit<BubbleGroupProps, "children" | "direction" | "items">;
|
|
48
|
+
/**
|
|
49
|
+
* The theme props for item component in start direction.
|
|
50
|
+
*/
|
|
51
|
+
startItemProps?: Omit<BubbleItemProps, "children" | "direction">;
|
|
52
|
+
}
|
|
53
|
+
declare const BubblePropsContext: import("react").Context<Partial<BubbleItemProps> | undefined>, useBubblePropsContext: () => Partial<BubbleItemProps> | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* `Bubble` is a component that displays conversational content in a message bubble.
|
|
56
|
+
*
|
|
57
|
+
* @see https://yamada-ui.com/docs/components/bubble
|
|
58
|
+
*/
|
|
59
|
+
export declare const BubbleRoot: Component<"div", BubbleRootProps>;
|
|
60
|
+
export interface BubbleGroupProps extends Merge<HTMLStyledProps, Pick<BubbleItemProps, "direction">>, ThemeProps<BubbleStyle> {
|
|
61
|
+
/**
|
|
62
|
+
* If provided, generate elements based on items.
|
|
63
|
+
*/
|
|
64
|
+
items?: BubbleItemWithContent[];
|
|
65
|
+
}
|
|
66
|
+
export declare const BubbleGroup: Component<"div", BubbleGroupProps>;
|
|
67
|
+
export interface BubbleItemProps extends Omit<HTMLStyledProps, "direction">, Pick<BubbleRootProps, "contentProps">, ThemeProps<BubbleStyle> {
|
|
68
|
+
/**
|
|
69
|
+
* The inline direction of the bubble.
|
|
70
|
+
*
|
|
71
|
+
* @default 'start'
|
|
72
|
+
*/
|
|
73
|
+
direction?: SimpleDirection;
|
|
74
|
+
}
|
|
75
|
+
export declare const BubbleItem: Component<"div", BubbleItemProps>;
|
|
76
|
+
export interface BubbleContentProps extends HTMLStyledProps {}
|
|
77
|
+
export declare const BubbleContent: Component<"div", BubbleContentProps>;
|
|
78
|
+
export interface BubbleReactionsProps extends HTMLStyledProps {
|
|
79
|
+
/**
|
|
80
|
+
* The placement of the reactions.
|
|
81
|
+
*
|
|
82
|
+
* @default 'end-end'
|
|
83
|
+
*/
|
|
84
|
+
placement?: Exclude<Direction, "end" | "start" | `center-${string}`>;
|
|
85
|
+
}
|
|
86
|
+
export declare const BubbleReactions: Component<"div", BubbleReactionsProps>;
|
|
87
|
+
//#endregion
|
|
88
|
+
export { BubblePropsContext, useBubblePropsContext };
|
|
89
|
+
//# sourceMappingURL=bubble.d.ts.map
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
|
+
import { CSSPropObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
|
+
import "../../index.js";
|
|
4
|
+
//#region src/components/bubble/bubble.style.d.ts
|
|
5
|
+
export declare const bubbleStyle: ComponentSlotStyle<"content" | "group" | "root" | "item" | "reactions", CSSPropObject<CSSSlotObject<"content" | "group" | "root" | "item" | "reactions">>, {
|
|
6
|
+
sm: {
|
|
7
|
+
content: {
|
|
8
|
+
"--space-y": "spaces.2";
|
|
9
|
+
fontSize: "sm";
|
|
10
|
+
px: "3";
|
|
11
|
+
};
|
|
12
|
+
reactions: {
|
|
13
|
+
borderWidth: "3px";
|
|
14
|
+
fontSize: "xs";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
md: {
|
|
18
|
+
content: {
|
|
19
|
+
"--space-y": "spaces.3";
|
|
20
|
+
fontSize: "md";
|
|
21
|
+
px: "4";
|
|
22
|
+
};
|
|
23
|
+
reactions: {
|
|
24
|
+
borderWidth: "5px";
|
|
25
|
+
fontSize: "sm";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
lg: {
|
|
29
|
+
content: {
|
|
30
|
+
"--space-y": "spaces.4";
|
|
31
|
+
fontSize: "lg";
|
|
32
|
+
px: "5";
|
|
33
|
+
};
|
|
34
|
+
reactions: {
|
|
35
|
+
borderWidth: "5px";
|
|
36
|
+
fontSize: "md";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
ghost: {
|
|
41
|
+
content: {
|
|
42
|
+
bg: "transparent";
|
|
43
|
+
borderColor: "transparent";
|
|
44
|
+
rounded: "0";
|
|
45
|
+
};
|
|
46
|
+
item: {
|
|
47
|
+
maxW: "full";
|
|
48
|
+
w: "full";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
outline: {
|
|
52
|
+
content: {
|
|
53
|
+
layerStyle: "outline";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
panel: {
|
|
57
|
+
content: {
|
|
58
|
+
bg: "bg.panel";
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
solid: {
|
|
62
|
+
content: {
|
|
63
|
+
layerStyle: "solid";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
subtle: {
|
|
67
|
+
content: {
|
|
68
|
+
layerStyle: "subtle";
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
surface: {
|
|
72
|
+
content: {
|
|
73
|
+
layerStyle: "surface";
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}>;
|
|
77
|
+
export type BubbleStyle = typeof bubbleStyle;
|
|
78
|
+
//#endregion
|
|
79
|
+
//# sourceMappingURL=bubble.style.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { BubbleStyle, bubbleStyle } from "./bubble.style.js";
|
|
2
|
+
import { BubbleContent, BubbleContentProps, BubbleGroup, BubbleGroupProps, BubbleItem, BubbleItemProps, BubblePropsContext, BubbleReactions, BubbleReactionsProps, BubbleRoot, BubbleRootProps, useBubblePropsContext } from "./bubble.js";
|
|
3
|
+
import { namespace_d_exports } from "./namespace.js";
|
|
4
|
+
export { namespace_d_exports as Bubble, BubbleContent, type BubbleContentProps, BubbleGroup, type BubbleGroupProps, BubbleItem, type BubbleItemProps, BubblePropsContext, BubbleReactions, type BubbleReactionsProps, BubbleRoot, type BubbleRootProps, BubbleStyle, bubbleStyle, useBubblePropsContext };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BubbleContent, BubbleContentProps, BubbleGroup, BubbleGroupProps, BubbleItem, BubbleItemProps, BubblePropsContext, BubbleReactions, BubbleReactionsProps, BubbleRoot, BubbleRootProps, useBubblePropsContext } from "./bubble.js";
|
|
2
|
+
declare namespace namespace_d_exports {
|
|
3
|
+
export { BubbleContent as Content, BubbleContentProps as ContentProps, BubbleGroup as Group, BubbleGroupProps as GroupProps, BubbleItem as Item, BubbleItemProps as ItemProps, BubbleItem as ItemType, BubblePropsContext as PropsContext, BubbleReactions as Reactions, BubbleReactionsProps as ReactionsProps, BubbleRoot as Root, BubbleRootProps as RootProps, useBubblePropsContext as usePropsContext };
|
|
4
|
+
}
|
|
5
|
+
//#endregion
|
|
6
|
+
export { BubbleContent as Content, type BubbleContentProps as ContentProps, BubbleGroup as Group, type BubbleGroupProps as GroupProps, BubbleItem as Item, type BubbleItemProps as ItemProps, type BubbleItem as ItemType, BubblePropsContext as PropsContext, BubbleReactions as Reactions, type BubbleReactionsProps as ReactionsProps, BubbleRoot as Root, type BubbleRootProps as RootProps, namespace_d_exports, useBubblePropsContext as usePropsContext };
|
|
7
|
+
//# sourceMappingURL=namespace.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { LoadingScheme, ThemeProps } from "../../core/system/index.type.js";
|
|
2
2
|
import { Component, HTMLProps, HTMLStyledProps } from "../../core/components/index.type.js";
|
|
3
3
|
import "../../core/index.js";
|
|
4
|
-
import { namespace_d_exports } from "../loading/namespace.js";
|
|
5
4
|
import "../loading/index.js";
|
|
6
5
|
import { ButtonStyle } from "./button.style.js";
|
|
7
6
|
import "../../index.js";
|
|
@@ -6,7 +6,6 @@ import "../../core/index.js";
|
|
|
6
6
|
import { CalendarStyle } from "./calendar.style.js";
|
|
7
7
|
import { UseCalendarDayProps, UseCalendarProps } from "./use-calendar.js";
|
|
8
8
|
import { SelectRootProps } from "../select/select.js";
|
|
9
|
-
import { namespace_d_exports } from "../select/namespace.js";
|
|
10
9
|
import "../select/index.js";
|
|
11
10
|
import "../../index.js";
|
|
12
11
|
import { ReactElement } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyString, Dict } from "../../utils/index.js";
|
|
1
|
+
import { AnyString, Dict, index_d_exports } from "../../utils/index.js";
|
|
2
2
|
import { HTMLProps, PropGetter, RequiredPropGetter } from "../../core/components/index.type.js";
|
|
3
3
|
import "../../core/index.js";
|
|
4
4
|
import { Descendant } from "../../hooks/use-descendants/index.js";
|
|
@@ -138,11 +138,11 @@ export interface UseCalendarProps<Multiple extends boolean = false, Range extend
|
|
|
138
138
|
*
|
|
139
139
|
* @default new Date()
|
|
140
140
|
*/
|
|
141
|
-
defaultMonth?: Date;
|
|
141
|
+
defaultMonth?: (() => Date) | Date;
|
|
142
142
|
/**
|
|
143
143
|
* The initial value of the calendar.
|
|
144
144
|
*/
|
|
145
|
-
defaultValue?: MaybeDateValue<Multiple, Range
|
|
145
|
+
defaultValue?: MaybeDateValue<Multiple, Range> | index_d_exports.ToFunction<Exclude<MaybeDateValue<Multiple, Range>, undefined>>;
|
|
146
146
|
/**
|
|
147
147
|
* If `true`, disables the calendar.
|
|
148
148
|
*
|
|
@@ -234,6 +234,7 @@ export interface UseCalendarProps<Multiple extends boolean = false, Range extend
|
|
|
234
234
|
onChangeMonth?: (value: Date) => void;
|
|
235
235
|
}
|
|
236
236
|
export declare const useCalendar: <Multiple extends boolean = false, Range extends boolean = false>({ defaultMonth, multiple, range, defaultValue, disabled, excludeDate, format, holidays, locale: localeProp, max, maxDate, minDate, month: monthProp, startDayOfWeek, today, value: valueProp, weekendDays, onChange: onChangeProp, onChangeMonth: onChangeMonthProp, ...rest }?: UseCalendarProps<Multiple, Range>) => {
|
|
237
|
+
currentDate: Date;
|
|
237
238
|
descendants: {
|
|
238
239
|
active: (target?: HTMLTableCellElement | Descendant<HTMLTableCellElement, {}> | null | undefined, options?: FocusOptions) => void;
|
|
239
240
|
count: (props?: Partial<{}> | undefined) => number;
|
|
@@ -3,18 +3,15 @@ import { ThemeProps } from "../../core/system/index.type.js";
|
|
|
3
3
|
import { Component, HTMLStyledProps } from "../../core/components/index.type.js";
|
|
4
4
|
import "../../core/index.js";
|
|
5
5
|
import { PopoverContentProps, PopoverRootProps, UsePopoverStyleProps, UsePopupAnimationProps } from "../popover/popover.js";
|
|
6
|
-
import { namespace_d_exports } from "../popover/namespace.js";
|
|
7
6
|
import "../popover/index.js";
|
|
8
7
|
import { UseInputBorderProps } from "../input/use-input-border.js";
|
|
9
8
|
import { InputElementProps } from "../input/input-element.js";
|
|
10
9
|
import { InputGroupRootProps } from "../input/input-group.js";
|
|
11
|
-
import { namespace_d_exports as namespace_d_exports$1 } from "../input/namespace.js";
|
|
12
10
|
import "../input/index.js";
|
|
13
11
|
import { ColorPickerStyle } from "./color-picker.style.js";
|
|
14
12
|
import { ColorSwatchProps } from "../color-swatch/color-swatch.js";
|
|
15
13
|
import "../color-swatch/index.js";
|
|
16
14
|
import { ColorSelectorRootProps } from "../color-selector/color-selector.js";
|
|
17
|
-
import { namespace_d_exports as namespace_d_exports$2 } from "../color-selector/namespace.js";
|
|
18
15
|
import "../color-selector/index.js";
|
|
19
16
|
import { UseColorPickerProps } from "./use-color-picker.js";
|
|
20
17
|
import "../../index.js";
|
|
@@ -6,7 +6,6 @@ import "../../core/index.js";
|
|
|
6
6
|
import { HueSliderRootProps } from "../hue-slider/hue-slider.js";
|
|
7
7
|
import "../hue-slider/index.js";
|
|
8
8
|
import { AlphaSliderRootProps } from "../alpha-slider/alpha-slider.js";
|
|
9
|
-
import { namespace_d_exports } from "../alpha-slider/namespace.js";
|
|
10
9
|
import "../alpha-slider/index.js";
|
|
11
10
|
import { ColorSwatchProps } from "../color-swatch/color-swatch.js";
|
|
12
11
|
import "../color-swatch/index.js";
|
|
@@ -3,15 +3,12 @@ import { ThemeProps } from "../../core/system/index.type.js";
|
|
|
3
3
|
import { GenericsComponent, HTMLStyledProps } from "../../core/components/index.type.js";
|
|
4
4
|
import "../../core/index.js";
|
|
5
5
|
import { PopoverContentProps, PopoverRootProps, UsePopoverStyleProps, UsePopupAnimationProps } from "../popover/popover.js";
|
|
6
|
-
import { namespace_d_exports } from "../popover/namespace.js";
|
|
7
6
|
import "../popover/index.js";
|
|
8
7
|
import { UseInputBorderProps } from "../input/use-input-border.js";
|
|
9
8
|
import { InputElementProps } from "../input/input-element.js";
|
|
10
9
|
import { InputGroupRootProps } from "../input/input-group.js";
|
|
11
|
-
import { namespace_d_exports as namespace_d_exports$1 } from "../input/namespace.js";
|
|
12
10
|
import "../input/index.js";
|
|
13
11
|
import { CalendarRootProps } from "../calendar/calendar.js";
|
|
14
|
-
import { namespace_d_exports as namespace_d_exports$2 } from "../calendar/namespace.js";
|
|
15
12
|
import "../calendar/index.js";
|
|
16
13
|
import { DatePickerStyle } from "./date-picker.style.js";
|
|
17
14
|
import { UseDatePickerProps } from "./use-date-picker.js";
|
|
@@ -125,6 +125,8 @@ interface ShorthandDrawerContentProps {
|
|
|
125
125
|
}
|
|
126
126
|
export interface DrawerDragBarProps extends HTMLStyledProps {}
|
|
127
127
|
export declare const DrawerDragBar: Component<"div", DrawerDragBarProps>;
|
|
128
|
+
export interface DrawerDragTriggerProps extends HTMLStyledProps {}
|
|
129
|
+
export declare const DrawerDragTrigger: Component<"div", DrawerDragTriggerProps>;
|
|
128
130
|
export interface DrawerHeaderProps extends HTMLStyledProps<"header"> {}
|
|
129
131
|
export declare const DrawerHeader: Component<"header", DrawerHeaderProps>;
|
|
130
132
|
export interface DrawerTitleProps extends HTMLStyledProps<"h2"> {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DrawerStyle, drawerStyle } from "./drawer.style.js";
|
|
2
2
|
import { UseDrawerProps, UseDrawerReturn, useDrawer } from "./use-drawer.js";
|
|
3
|
-
import { DrawerBody, DrawerBodyProps, DrawerCloseButton, DrawerCloseButtonProps, DrawerCloseTrigger, DrawerCloseTriggerProps, DrawerContent, DrawerContentProps, DrawerDragBar, DrawerDragBarProps, DrawerFooter, DrawerFooterProps, DrawerHeader, DrawerHeaderProps, DrawerOpenTrigger, DrawerOpenTriggerProps, DrawerOverlay, DrawerOverlayProps, DrawerPropsContext, DrawerRoot, DrawerRootProps, DrawerTitle, DrawerTitleProps, useDrawerPropsContext } from "./drawer.js";
|
|
3
|
+
import { DrawerBody, DrawerBodyProps, DrawerCloseButton, DrawerCloseButtonProps, DrawerCloseTrigger, DrawerCloseTriggerProps, DrawerContent, DrawerContentProps, DrawerDragBar, DrawerDragBarProps, DrawerDragTrigger, DrawerDragTriggerProps, DrawerFooter, DrawerFooterProps, DrawerHeader, DrawerHeaderProps, DrawerOpenTrigger, DrawerOpenTriggerProps, DrawerOverlay, DrawerOverlayProps, DrawerPropsContext, DrawerRoot, DrawerRootProps, DrawerTitle, DrawerTitleProps, useDrawerPropsContext } from "./drawer.js";
|
|
4
4
|
import { namespace_d_exports } from "./namespace.js";
|
|
5
|
-
export { namespace_d_exports as Drawer, DrawerBody, type DrawerBodyProps, DrawerCloseButton, type DrawerCloseButtonProps, DrawerCloseTrigger, type DrawerCloseTriggerProps, DrawerContent, type DrawerContentProps, DrawerDragBar, type DrawerDragBarProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, DrawerOpenTrigger, type DrawerOpenTriggerProps, DrawerOverlay, type DrawerOverlayProps, DrawerPropsContext, DrawerRoot, type DrawerRootProps, DrawerStyle, DrawerTitle, type DrawerTitleProps, UseDrawerProps, UseDrawerReturn, drawerStyle, useDrawer, useDrawerPropsContext };
|
|
5
|
+
export { namespace_d_exports as Drawer, DrawerBody, type DrawerBodyProps, DrawerCloseButton, type DrawerCloseButtonProps, DrawerCloseTrigger, type DrawerCloseTriggerProps, DrawerContent, type DrawerContentProps, DrawerDragBar, type DrawerDragBarProps, DrawerDragTrigger, type DrawerDragTriggerProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, DrawerOpenTrigger, type DrawerOpenTriggerProps, DrawerOverlay, type DrawerOverlayProps, DrawerPropsContext, DrawerRoot, type DrawerRootProps, DrawerStyle, DrawerTitle, type DrawerTitleProps, UseDrawerProps, UseDrawerReturn, drawerStyle, useDrawer, useDrawerPropsContext };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DrawerBody, DrawerCloseButton, DrawerCloseButtonProps, DrawerCloseTrigger, DrawerCloseTriggerProps, DrawerContent, DrawerContentProps, DrawerDragBar, DrawerDragBarProps, DrawerFooter, DrawerFooterProps, DrawerHeader, DrawerHeaderProps, DrawerOpenTrigger, DrawerOpenTriggerProps, DrawerOverlay, DrawerOverlayProps, DrawerPropsContext, DrawerRoot, DrawerRootProps, DrawerTitle, DrawerTitleProps, useDrawerPropsContext } from "./drawer.js";
|
|
1
|
+
import { DrawerBody, DrawerCloseButton, DrawerCloseButtonProps, DrawerCloseTrigger, DrawerCloseTriggerProps, DrawerContent, DrawerContentProps, DrawerDragBar, DrawerDragBarProps, DrawerDragTrigger, DrawerDragTriggerProps, DrawerFooter, DrawerFooterProps, DrawerHeader, DrawerHeaderProps, DrawerOpenTrigger, DrawerOpenTriggerProps, DrawerOverlay, DrawerOverlayProps, DrawerPropsContext, DrawerRoot, DrawerRootProps, DrawerTitle, DrawerTitleProps, useDrawerPropsContext } from "./drawer.js";
|
|
2
2
|
declare namespace namespace_d_exports {
|
|
3
|
-
export { DrawerBody as Body, DrawerCloseButton as CloseButton, DrawerCloseButtonProps as CloseButtonProps, DrawerCloseTrigger as CloseTrigger, DrawerCloseTriggerProps as CloseTriggerProps, DrawerContent as Content, DrawerContentProps as ContentProps, DrawerDragBar as DragBar, DrawerDragBarProps as DragBarProps, DrawerFooter as Footer, DrawerFooterProps as FooterProps, DrawerHeader as Header, DrawerHeaderProps as HeaderProps, DrawerOpenTrigger as OpenTrigger, DrawerOpenTriggerProps as OpenTriggerProps, DrawerOverlay as Overlay, DrawerOverlayProps as OverlayProps, DrawerPropsContext as PropsContext, DrawerRoot as Root, DrawerRootProps as RootProps, DrawerTitle as Title, DrawerTitleProps as TitleProps, useDrawerPropsContext as usePropsContext };
|
|
3
|
+
export { DrawerBody as Body, DrawerCloseButton as CloseButton, DrawerCloseButtonProps as CloseButtonProps, DrawerCloseTrigger as CloseTrigger, DrawerCloseTriggerProps as CloseTriggerProps, DrawerContent as Content, DrawerContentProps as ContentProps, DrawerDragBar as DragBar, DrawerDragBarProps as DragBarProps, DrawerDragTrigger as DragTrigger, DrawerDragTriggerProps as DragTriggerProps, DrawerFooter as Footer, DrawerFooterProps as FooterProps, DrawerHeader as Header, DrawerHeaderProps as HeaderProps, DrawerOpenTrigger as OpenTrigger, DrawerOpenTriggerProps as OpenTriggerProps, DrawerOverlay as Overlay, DrawerOverlayProps as OverlayProps, DrawerPropsContext as PropsContext, DrawerRoot as Root, DrawerRootProps as RootProps, DrawerTitle as Title, DrawerTitleProps as TitleProps, useDrawerPropsContext as usePropsContext };
|
|
4
4
|
}
|
|
5
5
|
//#endregion
|
|
6
|
-
export { DrawerBody as Body, DrawerCloseButton as CloseButton, type DrawerCloseButtonProps as CloseButtonProps, DrawerCloseTrigger as CloseTrigger, type DrawerCloseTriggerProps as CloseTriggerProps, DrawerContent as Content, type DrawerContentProps as ContentProps, DrawerDragBar as DragBar, type DrawerDragBarProps as DragBarProps, DrawerFooter as Footer, type DrawerFooterProps as FooterProps, DrawerHeader as Header, type DrawerHeaderProps as HeaderProps, DrawerOpenTrigger as OpenTrigger, type DrawerOpenTriggerProps as OpenTriggerProps, DrawerOverlay as Overlay, type DrawerOverlayProps as OverlayProps, DrawerPropsContext as PropsContext, DrawerRoot as Root, type DrawerRootProps as RootProps, DrawerTitle as Title, type DrawerTitleProps as TitleProps, namespace_d_exports, useDrawerPropsContext as usePropsContext };
|
|
6
|
+
export { DrawerBody as Body, DrawerCloseButton as CloseButton, type DrawerCloseButtonProps as CloseButtonProps, DrawerCloseTrigger as CloseTrigger, type DrawerCloseTriggerProps as CloseTriggerProps, DrawerContent as Content, type DrawerContentProps as ContentProps, DrawerDragBar as DragBar, type DrawerDragBarProps as DragBarProps, DrawerDragTrigger as DragTrigger, type DrawerDragTriggerProps as DragTriggerProps, DrawerFooter as Footer, type DrawerFooterProps as FooterProps, DrawerHeader as Header, type DrawerHeaderProps as HeaderProps, DrawerOpenTrigger as OpenTrigger, type DrawerOpenTriggerProps as OpenTriggerProps, DrawerOverlay as Overlay, type DrawerOverlayProps as OverlayProps, DrawerPropsContext as PropsContext, DrawerRoot as Root, type DrawerRootProps as RootProps, DrawerTitle as Title, type DrawerTitleProps as TitleProps, namespace_d_exports, useDrawerPropsContext as usePropsContext };
|
|
7
7
|
//# sourceMappingURL=namespace.d.ts.map
|
|
@@ -25,6 +25,12 @@ export interface UseDrawerProps extends UseModalProps {
|
|
|
25
25
|
* @default 0.1
|
|
26
26
|
*/
|
|
27
27
|
dragElastic?: number;
|
|
28
|
+
/**
|
|
29
|
+
* If `true`, only the drag bar and drag triggers can start dragging when `closeOnDrag` is `true`.
|
|
30
|
+
*
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
dragHandleOnly?: boolean;
|
|
28
34
|
/**
|
|
29
35
|
* Offset from being dragged to closing.
|
|
30
36
|
*
|
|
@@ -44,12 +50,13 @@ export interface UseDrawerProps extends UseModalProps {
|
|
|
44
50
|
*/
|
|
45
51
|
placement?: SimplePlacement;
|
|
46
52
|
}
|
|
47
|
-
export declare const useDrawer: ({ closeOnDrag, closeOnEsc, closeOnOverlay, dragConstraints, dragElastic, dragOffset, dragVelocity, placement, onEsc, ...rest }?: UseDrawerProps) => {
|
|
53
|
+
export declare const useDrawer: ({ closeOnDrag, closeOnEsc, closeOnOverlay, dragConstraints, dragElastic, dragHandleOnly, dragOffset, dragVelocity, placement, onEsc, ...rest }?: UseDrawerProps) => {
|
|
48
54
|
closeOnDrag: boolean;
|
|
55
|
+
open: boolean;
|
|
49
56
|
getContentProps: PropGetter<HTMLMotionProps<"section">, undefined, undefined>;
|
|
50
57
|
getDragBarProps: PropGetter<"div", undefined, undefined>;
|
|
58
|
+
getDragTriggerProps: PropGetter<"div", undefined, undefined>;
|
|
51
59
|
onClose: () => void | Promise<void>;
|
|
52
|
-
open: boolean;
|
|
53
60
|
getBodyProps: PropGetter<"div", undefined, undefined>;
|
|
54
61
|
getCloseButtonProps: PropGetter<"button", undefined, undefined>;
|
|
55
62
|
getCloseTriggerProps: PropGetter<"button", undefined, undefined>;
|
|
@@ -4,7 +4,6 @@ import { CSSPropObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
|
4
4
|
import { Component, HTMLStyledProps } from "../../core/components/index.type.js";
|
|
5
5
|
import "../../core/index.js";
|
|
6
6
|
import { LoadingProps } from "../loading/loading.js";
|
|
7
|
-
import { namespace_d_exports } from "../loading/namespace.js";
|
|
8
7
|
import "../loading/index.js";
|
|
9
8
|
import { UseInputBorderProps } from "../input/use-input-border.js";
|
|
10
9
|
import "../input/index.js";
|
|
@@ -17,7 +17,7 @@ export declare const useFieldProps: <Y extends HTMLElement, M extends Dict>({ id
|
|
|
17
17
|
disabled: boolean | undefined;
|
|
18
18
|
readOnly: boolean | undefined;
|
|
19
19
|
required: boolean | undefined;
|
|
20
|
-
} & Omit<M & UseFieldProps<Y>, "disabled" | "readOnly" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "
|
|
20
|
+
} & Omit<M & UseFieldProps<Y>, "disabled" | "readOnly" | "invalid" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "name" | "required" | "notSupportReadOnly">;
|
|
21
21
|
ariaProps: {
|
|
22
22
|
"aria-describedby": any;
|
|
23
23
|
"aria-disabled": (boolean | "true" | "false") | undefined;
|