@aivex/ui 1.2.0-dev.54 → 1.2.0-dev.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -1
- package/dist/DESIGN.md +241 -0
- package/dist/comment.cjs +1 -1
- package/dist/comment.js +1 -1
- package/dist/components/Avatar/Avatar.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.d.cts +42 -0
- package/dist/components/Avatar/Avatar.d.ts +24 -0
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/Avatar/index.d.cts +2 -0
- package/dist/components/Avatar/index.d.ts +2 -2
- package/dist/components/Badge/Badge.cjs.map +1 -1
- package/dist/components/Badge/Badge.d.cts +93 -0
- package/dist/components/Badge/Badge.d.ts +58 -0
- package/dist/components/Badge/Badge.js.map +1 -1
- package/dist/components/Badge/index.d.cts +2 -0
- package/dist/components/Badge/index.d.ts +2 -2
- package/dist/components/BreadCrumb/BreadCrumb.cjs.map +1 -1
- package/dist/components/BreadCrumb/BreadCrumb.d.cts +57 -0
- package/dist/components/BreadCrumb/BreadCrumb.d.ts +32 -2
- package/dist/components/BreadCrumb/BreadCrumb.js.map +1 -1
- package/dist/components/BreadCrumb/index.d.cts +2 -0
- package/dist/components/BreadCrumb/index.d.ts +2 -2
- package/dist/components/Button/Button.cjs +1 -1
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.d.cts +50 -0
- package/dist/components/Button/Button.d.ts +31 -1
- package/dist/components/Button/Button.js +25 -24
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/index.d.cts +2 -0
- package/dist/components/Button/index.d.ts +2 -2
- package/dist/components/Calendar/Calendar.cjs +1 -1
- package/dist/components/Calendar/Calendar.cjs.map +1 -1
- package/dist/components/Calendar/Calendar.d.cts +81 -0
- package/dist/components/Calendar/Calendar.d.ts +48 -5
- package/dist/components/Calendar/Calendar.js +104 -57
- package/dist/components/Calendar/Calendar.js.map +1 -1
- package/dist/components/Calendar/date.cjs +1 -1
- package/dist/components/Calendar/date.cjs.map +1 -1
- package/dist/components/Calendar/date.d.cts +35 -0
- package/dist/components/Calendar/date.d.ts +10 -0
- package/dist/components/Calendar/date.js +22 -1
- package/dist/components/Calendar/date.js.map +1 -1
- package/dist/components/Calendar/index.d.cts +2 -0
- package/dist/components/Calendar/index.d.ts +2 -2
- package/dist/components/Card/Card.cjs.map +1 -1
- package/dist/components/Card/Card.d.cts +46 -0
- package/dist/components/Card/Card.d.ts +30 -3
- package/dist/components/Card/Card.js.map +1 -1
- package/dist/components/Card/index.d.cts +2 -0
- package/dist/components/Card/index.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.cjs +1 -1
- package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.cts +37 -0
- package/dist/components/Checkbox/Checkbox.d.ts +24 -0
- package/dist/components/Checkbox/Checkbox.js +24 -23
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Checkbox/ChipsCheckbox.cjs.map +1 -1
- package/dist/components/Checkbox/ChipsCheckbox.d.cts +24 -0
- package/dist/components/Checkbox/ChipsCheckbox.d.ts +15 -0
- package/dist/components/Checkbox/ChipsCheckbox.js.map +1 -1
- package/dist/components/Checkbox/index.d.cts +4 -0
- package/dist/components/Checkbox/index.d.ts +4 -4
- package/dist/components/Coachmark/Coachmark.cjs.map +1 -1
- package/dist/components/Coachmark/Coachmark.d.cts +87 -0
- package/dist/components/Coachmark/Coachmark.d.ts +39 -8
- package/dist/components/Coachmark/Coachmark.js.map +1 -1
- package/dist/components/Coachmark/index.d.cts +2 -0
- package/dist/components/Coachmark/index.d.ts +2 -2
- package/dist/components/Comment/CommentInput.cjs +1 -1
- package/dist/components/Comment/CommentInput.cjs.map +1 -1
- package/dist/components/Comment/CommentInput.d.cts +75 -0
- package/dist/components/Comment/CommentInput.d.ts +46 -6
- package/dist/components/Comment/CommentInput.js +15 -14
- package/dist/components/Comment/CommentInput.js.map +1 -1
- package/dist/components/Comment/CommentPin.cjs +1 -1
- package/dist/components/Comment/CommentPin.cjs.map +1 -1
- package/dist/components/Comment/CommentPin.d.cts +48 -0
- package/dist/components/Comment/CommentPin.d.ts +35 -4
- package/dist/components/Comment/CommentPin.js +29 -20
- package/dist/components/Comment/CommentPin.js.map +1 -1
- package/dist/components/Comment/MentionInput.cjs +1 -1
- package/dist/components/Comment/MentionInput.cjs.map +1 -1
- package/dist/components/Comment/MentionInput.d.cts +45 -0
- package/dist/components/Comment/MentionInput.d.ts +19 -4
- package/dist/components/Comment/MentionInput.js +51 -38
- package/dist/components/Comment/MentionInput.js.map +1 -1
- package/dist/components/Comment/MentionList.cjs +1 -1
- package/dist/components/Comment/MentionList.cjs.map +1 -1
- package/dist/components/Comment/MentionList.d.cts +19 -0
- package/dist/components/Comment/MentionList.d.ts +3 -3
- package/dist/components/Comment/MentionList.js +1 -1
- package/dist/components/Comment/MentionList.js.map +1 -1
- package/dist/components/Comment/index.d.cts +4 -0
- package/dist/components/Comment/index.d.ts +4 -4
- package/dist/components/Comment/mentionContent.d.cts +5 -0
- package/dist/components/Comment/types.d.cts +16 -0
- package/dist/components/Comment/types.d.ts +6 -2
- package/dist/components/Comment/useMentionSuggestion.cjs +1 -1
- package/dist/components/Comment/useMentionSuggestion.cjs.map +1 -1
- package/dist/components/Comment/useMentionSuggestion.d.cts +19 -0
- package/dist/components/Comment/useMentionSuggestion.d.ts +6 -2
- package/dist/components/Comment/useMentionSuggestion.js +72 -62
- package/dist/components/Comment/useMentionSuggestion.js.map +1 -1
- package/dist/components/DataGrid/DataGrid.cjs +1 -1
- package/dist/components/DataGrid/DataGrid.cjs.map +1 -1
- package/dist/components/DataGrid/DataGrid.d.cts +136 -0
- package/dist/components/DataGrid/DataGrid.d.ts +77 -5
- package/dist/components/DataGrid/DataGrid.js +109 -106
- package/dist/components/DataGrid/DataGrid.js.map +1 -1
- package/dist/components/DataGrid/DataGridColumnSettings.cjs +1 -1
- package/dist/components/DataGrid/DataGridColumnSettings.cjs.map +1 -1
- package/dist/components/DataGrid/DataGridColumnSettings.d.cts +41 -0
- package/dist/components/DataGrid/DataGridColumnSettings.d.ts +21 -3
- package/dist/components/DataGrid/DataGridColumnSettings.js +8 -5
- package/dist/components/DataGrid/DataGridColumnSettings.js.map +1 -1
- package/dist/components/DataGrid/DataGridPrimitives.cjs.map +1 -1
- package/dist/components/DataGrid/DataGridPrimitives.d.cts +167 -0
- package/dist/components/DataGrid/DataGridPrimitives.d.ts +81 -1
- package/dist/components/DataGrid/DataGridPrimitives.js.map +1 -1
- package/dist/components/DataGrid/DataGridRows.d.cts +66 -0
- package/dist/components/DataGrid/index.d.cts +8 -0
- package/dist/components/DataGrid/index.d.ts +6 -6
- package/dist/components/Dialog/Dialog.cjs.map +1 -1
- package/dist/components/Dialog/Dialog.d.cts +66 -0
- package/dist/components/Dialog/Dialog.d.ts +47 -1
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Dialog/index.d.cts +2 -0
- package/dist/components/Dialog/index.d.ts +2 -2
- package/dist/components/Divider/Divider.cjs.map +1 -1
- package/dist/components/Divider/Divider.d.cts +30 -0
- package/dist/components/Divider/Divider.d.ts +19 -0
- package/dist/components/Divider/Divider.js.map +1 -1
- package/dist/components/Divider/index.d.cts +2 -0
- package/dist/components/Divider/index.d.ts +2 -2
- package/dist/components/DraggableScroll/DraggableScroll.cjs.map +1 -1
- package/dist/components/DraggableScroll/DraggableScroll.d.cts +47 -0
- package/dist/components/DraggableScroll/DraggableScroll.d.ts +32 -1
- package/dist/components/DraggableScroll/DraggableScroll.js.map +1 -1
- package/dist/components/DraggableScroll/index.d.cts +2 -0
- package/dist/components/DraggableScroll/index.d.ts +2 -2
- package/dist/components/Drawer/Drawer.cjs +1 -1
- package/dist/components/Drawer/Drawer.cjs.map +1 -1
- package/dist/components/Drawer/Drawer.d.cts +149 -0
- package/dist/components/Drawer/Drawer.d.ts +119 -12
- package/dist/components/Drawer/Drawer.js +87 -29
- package/dist/components/Drawer/Drawer.js.map +1 -1
- package/dist/components/Drawer/index.d.cts +2 -0
- package/dist/components/Drawer/index.d.ts +2 -2
- package/dist/components/Field/Field.cjs +1 -1
- package/dist/components/Field/Field.cjs.map +1 -1
- package/dist/components/Field/Field.d.cts +100 -0
- package/dist/components/Field/Field.d.ts +59 -5
- package/dist/components/Field/Field.js +49 -42
- package/dist/components/Field/Field.js.map +1 -1
- package/dist/components/Field/index.d.cts +1 -0
- package/dist/components/Field/index.d.ts +1 -1
- package/dist/components/FilterModal/FilterModal.cjs +1 -1
- package/dist/components/FilterModal/FilterModal.cjs.map +1 -1
- package/dist/components/FilterModal/FilterModal.d.cts +83 -0
- package/dist/components/FilterModal/FilterModal.d.ts +52 -1
- package/dist/components/FilterModal/FilterModal.js +5 -4
- package/dist/components/FilterModal/FilterModal.js.map +1 -1
- package/dist/components/FilterModal/index.d.cts +2 -0
- package/dist/components/FilterModal/index.d.ts +2 -2
- package/dist/components/Icon/index.cjs.map +1 -1
- package/dist/components/Icon/index.d.cts +2077 -0
- package/dist/components/Icon/index.d.ts +41 -0
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/Icon/svgA11y.d.cts +10 -0
- package/dist/components/Icon/uniqueSvgIds.d.cts +8 -0
- package/dist/components/IconButton/IconButton.cjs +1 -1
- package/dist/components/IconButton/IconButton.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.d.cts +45 -0
- package/dist/components/IconButton/IconButton.d.ts +31 -3
- package/dist/components/IconButton/IconButton.js +25 -24
- package/dist/components/IconButton/IconButton.js.map +1 -1
- package/dist/components/IconButton/index.d.cts +2 -0
- package/dist/components/IconButton/index.d.ts +2 -2
- package/dist/components/Illustration/Illustration.cjs +2 -0
- package/dist/components/Illustration/Illustration.cjs.map +1 -0
- package/dist/components/Illustration/Illustration.d.cts +37 -0
- package/dist/components/Illustration/Illustration.d.ts +37 -0
- package/dist/components/Illustration/Illustration.js +40 -0
- package/dist/components/Illustration/Illustration.js.map +1 -0
- package/dist/components/Illustration/assets/box-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/box-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/box-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/box-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/box-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/box-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/box-light.webp.js +7 -0
- package/dist/components/Illustration/assets/box-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/equipment-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/equipment-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/equipment-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/equipment-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/equipment-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/equipment-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/equipment-light.webp.js +7 -0
- package/dist/components/Illustration/assets/equipment-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/failed-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/failed-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/failed-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/failed-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/failed-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/failed-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/failed-light.webp.js +7 -0
- package/dist/components/Illustration/assets/failed-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/file-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/file-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/file-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/file-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/file-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/file-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/file-light.webp.js +7 -0
- package/dist/components/Illustration/assets/file-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/images-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/images-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/images-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/images-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/images-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/images-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/images-light.webp.js +7 -0
- package/dist/components/Illustration/assets/images-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/letter-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/letter-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/letter-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/letter-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/letter-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/letter-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/letter-light.webp.js +7 -0
- package/dist/components/Illustration/assets/letter-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/message-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/message-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/message-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/message-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/message-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/message-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/message-light.webp.js +7 -0
- package/dist/components/Illustration/assets/message-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/network-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/network-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/network-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/network-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/network-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/network-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/network-light.webp.js +7 -0
- package/dist/components/Illustration/assets/network-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/no-data-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/no-data-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/no-data-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/no-data-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/no-data-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/no-data-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/no-data-light.webp.js +7 -0
- package/dist/components/Illustration/assets/no-data-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/paper-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/paper-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/paper-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/paper-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/paper-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/paper-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/paper-light.webp.js +7 -0
- package/dist/components/Illustration/assets/paper-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/success-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/success-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/success-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/success-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/success-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/success-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/success-light.webp.js +7 -0
- package/dist/components/Illustration/assets/success-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/warning-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/warning-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/warning-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/warning-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/warning-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/warning-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/warning-light.webp.js +7 -0
- package/dist/components/Illustration/assets/warning-light.webp.js.map +1 -0
- package/dist/components/Illustration/illustrations.cjs +2 -0
- package/dist/components/Illustration/illustrations.cjs.map +1 -0
- package/dist/components/Illustration/illustrations.d.cts +81 -0
- package/dist/components/Illustration/illustrations.d.ts +81 -0
- package/dist/components/Illustration/illustrations.js +104 -0
- package/dist/components/Illustration/illustrations.js.map +1 -0
- package/dist/components/Illustration/index.d.cts +1 -0
- package/dist/components/Illustration/index.d.ts +1 -0
- package/dist/components/InputBase/InputBase.cjs.map +1 -1
- package/dist/components/InputBase/InputBase.d.cts +59 -0
- package/dist/components/InputBase/InputBase.d.ts +30 -0
- package/dist/components/InputBase/InputBase.js.map +1 -1
- package/dist/components/InputBase/index.d.cts +1 -0
- package/dist/components/InputBase/index.d.ts +1 -1
- package/dist/components/InputBase/useInputState.d.cts +19 -0
- package/dist/components/InteractionLayer/InteractionLayer.cjs.map +1 -1
- package/dist/components/InteractionLayer/InteractionLayer.d.cts +43 -0
- package/dist/components/InteractionLayer/InteractionLayer.d.ts +34 -0
- package/dist/components/InteractionLayer/InteractionLayer.js.map +1 -1
- package/dist/components/InteractionLayer/index.d.cts +1 -0
- package/dist/components/InteractionLayer/index.d.ts +1 -1
- package/dist/components/Logo/index.cjs.map +1 -1
- package/dist/components/Logo/index.d.cts +73 -0
- package/dist/components/Logo/index.d.ts +27 -1
- package/dist/components/Logo/index.js.map +1 -1
- package/dist/components/Menu/Menu.cjs.map +1 -1
- package/dist/components/Menu/Menu.d.cts +146 -0
- package/dist/components/Menu/Menu.d.ts +62 -0
- package/dist/components/Menu/Menu.js.map +1 -1
- package/dist/components/Menu/index.d.cts +2 -0
- package/dist/components/Menu/index.d.ts +2 -2
- package/dist/components/Messagebox/Messagebox.cjs.map +1 -1
- package/dist/components/Messagebox/Messagebox.d.cts +50 -0
- package/dist/components/Messagebox/Messagebox.d.ts +33 -3
- package/dist/components/Messagebox/Messagebox.js.map +1 -1
- package/dist/components/Messagebox/index.d.cts +2 -0
- package/dist/components/Messagebox/index.d.ts +2 -2
- package/dist/components/Modal/Modal.cjs +1 -1
- package/dist/components/Modal/Modal.cjs.map +1 -1
- package/dist/components/Modal/Modal.d.cts +137 -0
- package/dist/components/Modal/Modal.d.ts +95 -2
- package/dist/components/Modal/Modal.js +0 -1
- package/dist/components/Modal/Modal.js.map +1 -1
- package/dist/components/Modal/ModalBase.cjs.map +1 -1
- package/dist/components/Modal/ModalBase.d.cts +71 -0
- package/dist/components/Modal/ModalBase.d.ts +39 -1
- package/dist/components/Modal/ModalBase.js.map +1 -1
- package/dist/components/Modal/index.d.cts +4 -0
- package/dist/components/Modal/index.d.ts +4 -4
- package/dist/components/Nav/Nav.cjs.map +1 -1
- package/dist/components/Nav/Nav.d.cts +69 -0
- package/dist/components/Nav/Nav.d.ts +46 -0
- package/dist/components/Nav/Nav.js.map +1 -1
- package/dist/components/Nav/index.d.cts +2 -0
- package/dist/components/Nav/index.d.ts +2 -2
- package/dist/components/Overlay/Overlay.cjs.map +1 -1
- package/dist/components/Overlay/Overlay.d.cts +36 -0
- package/dist/components/Overlay/Overlay.d.ts +21 -3
- package/dist/components/Overlay/Overlay.js.map +1 -1
- package/dist/components/Overlay/index.d.cts +2 -0
- package/dist/components/Overlay/index.d.ts +2 -2
- package/dist/components/Pagination/Pagination.cjs +1 -1
- package/dist/components/Pagination/Pagination.cjs.map +1 -1
- package/dist/components/Pagination/Pagination.d.cts +68 -0
- package/dist/components/Pagination/Pagination.d.ts +43 -1
- package/dist/components/Pagination/Pagination.js +55 -41
- package/dist/components/Pagination/Pagination.js.map +1 -1
- package/dist/components/Pagination/index.d.cts +2 -0
- package/dist/components/Pagination/index.d.ts +2 -2
- package/dist/components/Panel/Panel.cjs +1 -1
- package/dist/components/Panel/Panel.cjs.map +1 -1
- package/dist/components/Panel/Panel.d.cts +124 -0
- package/dist/components/Panel/Panel.d.ts +119 -8
- package/dist/components/Panel/Panel.js +83 -46
- package/dist/components/Panel/Panel.js.map +1 -1
- package/dist/components/Panel/index.d.cts +2 -0
- package/dist/components/Panel/index.d.ts +2 -2
- package/dist/components/Popover/Popover.cjs.map +1 -1
- package/dist/components/Popover/Popover.d.cts +96 -0
- package/dist/components/Popover/Popover.d.ts +42 -0
- package/dist/components/Popover/Popover.js.map +1 -1
- package/dist/components/Popover/index.d.cts +2 -0
- package/dist/components/Popover/index.d.ts +2 -2
- package/dist/components/ProgressBar/ProgressBar.cjs.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.cts +45 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +32 -0
- package/dist/components/ProgressBar/ProgressBar.js.map +1 -1
- package/dist/components/ProgressBar/index.d.cts +2 -0
- package/dist/components/ProgressBar/index.d.ts +2 -2
- package/dist/components/Radio/Radio.cjs.map +1 -1
- package/dist/components/Radio/Radio.d.cts +32 -0
- package/dist/components/Radio/Radio.d.ts +21 -0
- package/dist/components/Radio/Radio.js.map +1 -1
- package/dist/components/Radio/index.d.cts +2 -0
- package/dist/components/Radio/index.d.ts +2 -2
- package/dist/components/ScrollArea/ScrollArea.cjs.map +1 -1
- package/dist/components/ScrollArea/ScrollArea.d.cts +42 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +24 -0
- package/dist/components/ScrollArea/ScrollArea.js.map +1 -1
- package/dist/components/ScrollArea/index.d.cts +2 -0
- package/dist/components/ScrollArea/index.d.ts +2 -2
- package/dist/components/Segmented/Segmented.cjs.map +1 -1
- package/dist/components/Segmented/Segmented.d.cts +41 -0
- package/dist/components/Segmented/Segmented.d.ts +26 -0
- package/dist/components/Segmented/Segmented.js.map +1 -1
- package/dist/components/Segmented/index.d.cts +2 -0
- package/dist/components/Segmented/index.d.ts +2 -2
- package/dist/components/SelectBox/SelectBox.cjs +1 -1
- package/dist/components/SelectBox/SelectBox.cjs.map +1 -1
- package/dist/components/SelectBox/SelectBox.d.cts +95 -0
- package/dist/components/SelectBox/SelectBox.d.ts +55 -3
- package/dist/components/SelectBox/SelectBox.js +17 -12
- package/dist/components/SelectBox/SelectBox.js.map +1 -1
- package/dist/components/SelectBox/index.d.cts +2 -0
- package/dist/components/SelectBox/index.d.ts +2 -2
- package/dist/components/SelectButton/SelectButton.cjs +1 -1
- package/dist/components/SelectButton/SelectButton.cjs.map +1 -1
- package/dist/components/SelectButton/SelectButton.d.cts +54 -0
- package/dist/components/SelectButton/SelectButton.d.ts +37 -1
- package/dist/components/SelectButton/SelectButton.js +31 -31
- package/dist/components/SelectButton/SelectButton.js.map +1 -1
- package/dist/components/SelectButton/index.d.cts +2 -0
- package/dist/components/SelectButton/index.d.ts +2 -2
- package/dist/components/ShapeEditor/ShapeEditor.cjs +1 -1
- package/dist/components/ShapeEditor/ShapeEditor.cjs.map +1 -1
- package/dist/components/ShapeEditor/ShapeEditor.d.cts +40 -0
- package/dist/components/ShapeEditor/ShapeEditor.d.ts +36 -3
- package/dist/components/ShapeEditor/ShapeEditor.js +1 -1
- package/dist/components/ShapeEditor/ShapeEditor.js.map +1 -1
- package/dist/components/ShapeEditor/ShapeViewer.cjs +1 -1
- package/dist/components/ShapeEditor/ShapeViewer.cjs.map +1 -1
- package/dist/components/ShapeEditor/ShapeViewer.d.cts +92 -0
- package/dist/components/ShapeEditor/ShapeViewer.d.ts +55 -5
- package/dist/components/ShapeEditor/ShapeViewer.js +47 -41
- package/dist/components/ShapeEditor/ShapeViewer.js.map +1 -1
- package/dist/components/ShapeEditor/_components/AssistantOverlay.d.cts +17 -0
- package/dist/components/ShapeEditor/_components/AssistantOverlay.d.ts +2 -2
- package/dist/components/ShapeEditor/_components/ContextMenu.d.cts +13 -0
- package/dist/components/ShapeEditor/_components/ContextMenu.d.ts +1 -1
- package/dist/components/ShapeEditor/_components/CursorGuide.d.cts +8 -0
- package/dist/components/ShapeEditor/_components/ImageStateOverlay.d.cts +17 -0
- package/dist/components/ShapeEditor/_components/ImageStateOverlay.d.ts +1 -1
- package/dist/components/ShapeEditor/_components/Minimap.d.cts +46 -0
- package/dist/components/ShapeEditor/_components/Minimap.d.ts +6 -6
- package/dist/components/ShapeEditor/_components/MinimapShape.d.cts +6 -0
- package/dist/components/ShapeEditor/_components/MinimapShape.d.ts +1 -1
- package/dist/components/ShapeEditor/_components/RegionOverlay.d.cts +21 -0
- package/dist/components/ShapeEditor/_components/RegionOverlay.d.ts +1 -1
- package/dist/components/ShapeEditor/_components/SelectionInfo.d.cts +20 -0
- package/dist/components/ShapeEditor/_components/SelectionInfo.d.ts +3 -3
- package/dist/components/ShapeEditor/_components/SettingsPanel.cjs.map +1 -1
- package/dist/components/ShapeEditor/_components/SettingsPanel.d.cts +28 -0
- package/dist/components/ShapeEditor/_components/SettingsPanel.d.ts +5 -5
- package/dist/components/ShapeEditor/_components/SettingsPanel.js.map +1 -1
- package/dist/components/ShapeEditor/_constants.cjs +1 -1
- package/dist/components/ShapeEditor/_constants.cjs.map +1 -1
- package/dist/components/ShapeEditor/_constants.d.cts +15 -0
- package/dist/components/ShapeEditor/_constants.d.ts +0 -21
- package/dist/components/ShapeEditor/_constants.js +1 -1
- package/dist/components/ShapeEditor/_constants.js.map +1 -1
- package/dist/components/ShapeEditor/_model/brush.d.cts +3 -0
- package/dist/components/ShapeEditor/_model/brush.d.ts +1 -1
- package/dist/components/ShapeEditor/_model/clipboard.d.cts +22 -0
- package/dist/components/ShapeEditor/_model/clipboard.d.ts +1 -1
- package/dist/components/ShapeEditor/_model/cursors.d.cts +23 -0
- package/dist/components/ShapeEditor/_model/cursors.d.ts +2 -2
- package/dist/components/ShapeEditor/_model/geometry.cjs.map +1 -1
- package/dist/components/ShapeEditor/_model/geometry.d.cts +182 -0
- package/dist/components/ShapeEditor/_model/geometry.d.ts +17 -1
- package/dist/components/ShapeEditor/_model/geometry.js.map +1 -1
- package/dist/components/ShapeEditor/_model/imageDiagnosis.cjs +1 -1
- package/dist/components/ShapeEditor/_model/imageDiagnosis.cjs.map +1 -1
- package/dist/components/ShapeEditor/_model/imageDiagnosis.d.cts +38 -0
- package/dist/components/ShapeEditor/_model/imageDiagnosis.d.ts +4 -1
- package/dist/components/ShapeEditor/_model/imageDiagnosis.js +29 -20
- package/dist/components/ShapeEditor/_model/imageDiagnosis.js.map +1 -1
- package/dist/components/ShapeEditor/_model/imageLoad.d.cts +29 -0
- package/dist/components/ShapeEditor/_model/imageSignature.d.cts +18 -0
- package/dist/components/ShapeEditor/_model/imageTiles.d.cts +11 -0
- package/dist/components/ShapeEditor/_model/keymap.cjs.map +1 -1
- package/dist/components/ShapeEditor/_model/keymap.d.cts +17 -0
- package/dist/components/ShapeEditor/_model/keymap.d.ts +2 -0
- package/dist/components/ShapeEditor/_model/keymap.js.map +1 -1
- package/dist/components/ShapeEditor/_model/overlays.d.cts +108 -0
- package/dist/components/ShapeEditor/_model/overlays.d.ts +1 -1
- package/dist/components/ShapeEditor/_model/pinIcon.d.cts +13 -0
- package/dist/components/ShapeEditor/_model/polygonFill.d.cts +2 -0
- package/dist/components/ShapeEditor/_model/polygonFill.d.ts +1 -1
- package/dist/components/ShapeEditor/_model/props.d.cts +13 -0
- package/dist/components/ShapeEditor/_model/props.d.ts +8 -8
- package/dist/components/ShapeEditor/_model/scalarMask.d.cts +21 -0
- package/dist/components/ShapeEditor/_model/scalarMask.d.ts +1 -1
- package/dist/components/ShapeEditor/_model/shapeHitTest.d.cts +14 -0
- package/dist/components/ShapeEditor/_model/shapeHitTest.d.ts +2 -2
- package/dist/components/ShapeEditor/_model/shapeRenderStyle.d.cts +16 -0
- package/dist/components/ShapeEditor/_model/shapeRenderStyle.d.ts +1 -1
- package/dist/components/ShapeEditor/_model/strings.cjs.map +1 -1
- package/dist/components/ShapeEditor/_model/strings.d.cts +62 -0
- package/dist/components/ShapeEditor/_model/strings.d.ts +2 -1
- package/dist/components/ShapeEditor/_model/strings.js.map +1 -1
- package/dist/components/ShapeEditor/_model/tools.cjs.map +1 -1
- package/dist/components/ShapeEditor/_model/tools.d.cts +29 -0
- package/dist/components/ShapeEditor/_model/tools.d.ts +4 -2
- package/dist/components/ShapeEditor/_model/tools.js.map +1 -1
- package/dist/components/ShapeEditor/_model/types/assistant.d.cts +37 -0
- package/dist/components/ShapeEditor/_model/types/assistant.d.ts +3 -1
- package/dist/components/ShapeEditor/_model/types/handle.d.cts +124 -0
- package/dist/components/ShapeEditor/_model/types/handle.d.ts +30 -4
- package/dist/components/ShapeEditor/_model/types/props.d.cts +430 -0
- package/dist/components/ShapeEditor/_model/types/props.d.ts +83 -20
- package/dist/components/ShapeEditor/_model/viewSettings.cjs.map +1 -1
- package/dist/components/ShapeEditor/_model/viewSettings.d.cts +73 -0
- package/dist/components/ShapeEditor/_model/viewSettings.d.ts +13 -1
- package/dist/components/ShapeEditor/_model/viewSettings.js.map +1 -1
- package/dist/components/ShapeEditor/_model/viewerPatch.d.cts +60 -0
- package/dist/components/ShapeEditor/_model/viewerPatch.d.ts +1 -1
- package/dist/components/ShapeEditor/_model/viewport.d.cts +36 -0
- package/dist/components/ShapeEditor/_model/viewport.d.ts +1 -1
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.cjs +1 -1
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.cjs.map +1 -1
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.cts +121 -0
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.ts +5 -5
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.js +1 -1
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.js.map +1 -1
- package/dist/components/ShapeEditor/_renderers/imageLayer.d.cts +35 -0
- package/dist/components/ShapeEditor/_renderers/overlayLayer.d.cts +36 -0
- package/dist/components/ShapeEditor/_renderers/overlayLayer.d.ts +2 -2
- package/dist/components/ShapeEditor/_renderers/previewLayer.cjs +1 -1
- package/dist/components/ShapeEditor/_renderers/previewLayer.cjs.map +1 -1
- package/dist/components/ShapeEditor/_renderers/previewLayer.d.cts +34 -0
- package/dist/components/ShapeEditor/_renderers/previewLayer.d.ts +5 -3
- package/dist/components/ShapeEditor/_renderers/previewLayer.js +3 -0
- package/dist/components/ShapeEditor/_renderers/previewLayer.js.map +1 -1
- package/dist/components/ShapeEditor/_renderers/shapeLayer.d.cts +49 -0
- package/dist/components/ShapeEditor/_renderers/shapeLayer.d.ts +3 -3
- package/dist/components/ShapeEditor/_renderers/shapePainter.d.cts +27 -0
- package/dist/components/ShapeEditor/_renderers/shapePainter.d.ts +1 -1
- package/dist/components/ShapeEditor/_renderers/transformDriver.d.cts +55 -0
- package/dist/components/ShapeEditor/_renderers/transformDriver.d.ts +3 -3
- package/dist/components/ShapeEditor/_renderers/transformSession.d.cts +74 -0
- package/dist/components/ShapeEditor/_renderers/transformSession.d.ts +1 -1
- package/dist/components/ShapeEditor/_renderers/transformerLayer.d.cts +69 -0
- package/dist/components/ShapeEditor/_renderers/transformerLayer.d.ts +2 -2
- package/dist/components/ShapeEditor/_renderers/types.d.cts +129 -0
- package/dist/components/ShapeEditor/_renderers/types.d.ts +6 -6
- package/dist/components/ShapeEditor/_state/buildContextMenuItems.d.cts +26 -0
- package/dist/components/ShapeEditor/_state/buildContextMenuItems.d.ts +5 -5
- package/dist/components/ShapeEditor/_state/buildHotkeyActions.d.cts +42 -0
- package/dist/components/ShapeEditor/_state/buildHotkeyActions.d.ts +7 -7
- package/dist/components/ShapeEditor/_state/createInteractionController.d.cts +73 -0
- package/dist/components/ShapeEditor/_state/createInteractionController.d.ts +9 -9
- package/dist/components/ShapeEditor/_state/drawSessionState.d.cts +6 -0
- package/dist/components/ShapeEditor/_state/drawSessionState.d.ts +2 -2
- package/dist/components/ShapeEditor/_state/useAssistant.d.cts +48 -0
- package/dist/components/ShapeEditor/_state/useAssistant.d.ts +3 -3
- package/dist/components/ShapeEditor/_state/useDrawSession.d.cts +61 -0
- package/dist/components/ShapeEditor/_state/useDrawSession.d.ts +5 -5
- package/dist/components/ShapeEditor/_state/useEditorDocument.d.cts +23 -0
- package/dist/components/ShapeEditor/_state/useEditorDocument.d.ts +1 -1
- package/dist/components/ShapeEditor/_state/useEditorHandle.d.cts +34 -0
- package/dist/components/ShapeEditor/_state/useEditorHandle.d.ts +9 -9
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.cjs +1 -1
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.cjs.map +1 -1
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.cts +25 -0
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.ts +1 -1
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.js +15 -15
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.js.map +1 -1
- package/dist/components/ShapeEditor/_state/useEditorView.d.cts +15 -0
- package/dist/components/ShapeEditor/_state/useEditorView.d.ts +1 -1
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.cjs +1 -1
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.cjs.map +1 -1
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.cts +89 -0
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.ts +6 -6
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.js +23 -20
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.js.map +1 -1
- package/dist/components/ShapeEditor/_state/useLatestRef.d.cts +7 -0
- package/dist/components/ShapeEditor/_state/useMinimapNavigation.d.cts +27 -0
- package/dist/components/ShapeEditor/_state/useMinimapNavigation.d.ts +1 -1
- package/dist/components/ShapeEditor/_state/useMinimapSync.d.cts +26 -0
- package/dist/components/ShapeEditor/_state/useMinimapSync.d.ts +3 -3
- package/dist/components/ShapeEditor/_state/useSelectionActions.d.cts +31 -0
- package/dist/components/ShapeEditor/_state/useSelectionActions.d.ts +2 -2
- package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.d.cts +32 -0
- package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.d.ts +4 -4
- package/dist/components/ShapeEditor/_state/useSelectionModel.d.cts +24 -0
- package/dist/components/ShapeEditor/_state/useSelectionModel.d.ts +4 -4
- package/dist/components/ShapeEditor/_state/useViewportControls.d.cts +23 -0
- package/dist/components/ShapeEditor/_state/useViewportControls.d.ts +3 -3
- package/dist/components/ShapeEditor/index.d.cts +13 -0
- package/dist/components/ShapeEditor/index.d.ts +13 -8
- package/dist/components/Shortcut/Shortcut.cjs.map +1 -1
- package/dist/components/Shortcut/Shortcut.d.cts +24 -0
- package/dist/components/Shortcut/Shortcut.d.ts +16 -0
- package/dist/components/Shortcut/Shortcut.js.map +1 -1
- package/dist/components/Shortcut/index.d.cts +2 -0
- package/dist/components/Shortcut/index.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.d.cts +26 -0
- package/dist/components/Skeleton/Skeleton.d.ts +19 -0
- package/dist/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/Skeleton/index.d.cts +2 -0
- package/dist/components/Skeleton/index.d.ts +2 -2
- package/dist/components/Slider/Slider.cjs +1 -1
- package/dist/components/Slider/Slider.cjs.map +1 -1
- package/dist/components/Slider/Slider.d.cts +45 -0
- package/dist/components/Slider/Slider.d.ts +33 -1
- package/dist/components/Slider/Slider.js +18 -14
- package/dist/components/Slider/Slider.js.map +1 -1
- package/dist/components/Slider/index.d.cts +2 -0
- package/dist/components/Slider/index.d.ts +2 -2
- package/dist/components/Spinner/Spinner.cjs.map +1 -1
- package/dist/components/Spinner/Spinner.d.cts +32 -0
- package/dist/components/Spinner/Spinner.d.ts +18 -1
- package/dist/components/Spinner/Spinner.js.map +1 -1
- package/dist/components/Spinner/index.d.cts +2 -0
- package/dist/components/Spinner/index.d.ts +2 -2
- package/dist/components/Switch/Switch.cjs +1 -1
- package/dist/components/Switch/Switch.cjs.map +1 -1
- package/dist/components/Switch/Switch.d.cts +29 -0
- package/dist/components/Switch/Switch.d.ts +16 -0
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Switch/Switch.js.map +1 -1
- package/dist/components/Switch/index.d.cts +2 -0
- package/dist/components/Switch/index.d.ts +2 -2
- package/dist/components/Tab/Tab.cjs.map +1 -1
- package/dist/components/Tab/Tab.d.cts +45 -0
- package/dist/components/Tab/Tab.d.ts +26 -0
- package/dist/components/Tab/Tab.js.map +1 -1
- package/dist/components/Tab/index.d.cts +2 -0
- package/dist/components/Tab/index.d.ts +2 -2
- package/dist/components/Tag/Tag.cjs.map +1 -1
- package/dist/components/Tag/Tag.d.cts +50 -0
- package/dist/components/Tag/Tag.d.ts +32 -1
- package/dist/components/Tag/Tag.js.map +1 -1
- package/dist/components/Tag/index.d.cts +2 -0
- package/dist/components/Tag/index.d.ts +2 -2
- package/dist/components/Tagbox/Tagbox.cjs +1 -1
- package/dist/components/Tagbox/Tagbox.cjs.map +1 -1
- package/dist/components/Tagbox/Tagbox.d.cts +67 -0
- package/dist/components/Tagbox/Tagbox.d.ts +46 -3
- package/dist/components/Tagbox/Tagbox.js +5 -3
- package/dist/components/Tagbox/Tagbox.js.map +1 -1
- package/dist/components/Tagbox/index.d.cts +2 -0
- package/dist/components/Tagbox/index.d.ts +2 -2
- package/dist/components/Textarea/Textarea.cjs +1 -1
- package/dist/components/Textarea/Textarea.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.d.cts +51 -0
- package/dist/components/Textarea/Textarea.d.ts +32 -3
- package/dist/components/Textarea/Textarea.js +20 -19
- package/dist/components/Textarea/Textarea.js.map +1 -1
- package/dist/components/Textarea/index.d.cts +2 -0
- package/dist/components/Textarea/index.d.ts +2 -2
- package/dist/components/Textbox/Textbox.cjs.map +1 -1
- package/dist/components/Textbox/Textbox.d.cts +49 -0
- package/dist/components/Textbox/Textbox.d.ts +30 -1
- package/dist/components/Textbox/Textbox.js.map +1 -1
- package/dist/components/Textbox/index.d.cts +2 -0
- package/dist/components/Textbox/index.d.ts +2 -2
- package/dist/components/Toast/Toast.cjs +1 -1
- package/dist/components/Toast/Toast.cjs.map +1 -1
- package/dist/components/Toast/Toast.d.cts +99 -0
- package/dist/components/Toast/Toast.d.ts +72 -4
- package/dist/components/Toast/Toast.js +3 -2
- package/dist/components/Toast/Toast.js.map +1 -1
- package/dist/components/Toast/index.d.cts +2 -0
- package/dist/components/Toast/index.d.ts +2 -2
- package/dist/components/ToggleButton/ToggleButton.cjs.map +1 -1
- package/dist/components/ToggleButton/ToggleButton.d.cts +41 -0
- package/dist/components/ToggleButton/ToggleButton.d.ts +21 -0
- package/dist/components/ToggleButton/ToggleButton.js.map +1 -1
- package/dist/components/ToggleButton/index.d.cts +2 -0
- package/dist/components/ToggleButton/index.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.cjs.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.cts +40 -0
- package/dist/components/Tooltip/Tooltip.d.ts +27 -0
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/Tooltip/index.d.cts +2 -0
- package/dist/components/Tooltip/index.d.ts +2 -2
- package/dist/components/TruncatedText/TruncatedText.cjs.map +1 -1
- package/dist/components/TruncatedText/TruncatedText.d.cts +44 -0
- package/dist/components/TruncatedText/TruncatedText.d.ts +22 -0
- package/dist/components/TruncatedText/TruncatedText.js.map +1 -1
- package/dist/components/TruncatedText/index.d.cts +2 -0
- package/dist/components/TruncatedText/index.d.ts +2 -2
- package/dist/components/Typography/Typography.cjs.map +1 -1
- package/dist/components/Typography/Typography.d.cts +33 -0
- package/dist/components/Typography/Typography.d.ts +21 -0
- package/dist/components/Typography/Typography.js.map +1 -1
- package/dist/components/Typography/index.d.cts +2 -0
- package/dist/components/Typography/index.d.ts +2 -2
- package/dist/components/UploadArea/UploadArea.cjs +1 -1
- package/dist/components/UploadArea/UploadArea.cjs.map +1 -1
- package/dist/components/UploadArea/UploadArea.d.cts +82 -0
- package/dist/components/UploadArea/UploadArea.d.ts +66 -1
- package/dist/components/UploadArea/UploadArea.js +55 -34
- package/dist/components/UploadArea/UploadArea.js.map +1 -1
- package/dist/components/UploadArea/index.d.cts +2 -0
- package/dist/components/UploadArea/index.d.ts +2 -2
- package/dist/illustration.cjs +1 -0
- package/dist/illustration.js +3 -0
- package/dist/index.d.cts +52 -0
- package/dist/index.d.ts +52 -52
- package/dist/llms-full.txt +5993 -0
- package/dist/llms.txt +118 -0
- package/dist/shape-editor.cjs +2 -1
- package/dist/shape-editor.cjs.map +1 -0
- package/dist/shape-editor.js +8 -3
- package/dist/shape-editor.js.map +1 -0
- package/dist/styles.css +2 -2
- package/dist/tailwind.css +434 -0
- package/dist/tokens/tokens.css +1 -1
- package/dist/utils/cn.d.cts +12 -0
- package/dist/utils/cn.d.ts +10 -0
- package/dist/utils/keyboard.d.cts +3 -0
- package/dist/utils/sheet.cjs +2 -0
- package/dist/utils/sheet.cjs.map +1 -0
- package/dist/utils/sheet.d.cts +17 -0
- package/dist/utils/sheet.d.ts +17 -0
- package/dist/utils/sheet.js +7 -0
- package/dist/utils/sheet.js.map +1 -0
- package/dist/utils/useControllableState.d.cts +17 -0
- package/dist/utils/useModalAutoFocus.d.cts +11 -0
- package/dist/utils/useResizableWidth.cjs +2 -0
- package/dist/utils/useResizableWidth.cjs.map +1 -0
- package/dist/utils/useResizableWidth.d.cts +30 -0
- package/dist/utils/useResizableWidth.d.ts +30 -0
- package/dist/utils/useResizableWidth.js +32 -0
- package/dist/utils/useResizableWidth.js.map +1 -0
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +54 -17
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
/* @aivex/ui Tailwind v4 프리셋 — 빌드 시 생성됨. 직접 수정하지 말 것.
|
|
2
|
+
*
|
|
3
|
+
* 앱 전역 CSS:
|
|
4
|
+
* @layer aivex-base, theme, base, components, utilities; (첫 줄 — 리셋이 앱 유틸리티를 이기지 않게)
|
|
5
|
+
* @import "tailwindcss";
|
|
6
|
+
* @import "@aivex/ui/styles.css";
|
|
7
|
+
* @import "@aivex/ui/tailwind.css";
|
|
8
|
+
*
|
|
9
|
+
* 등록되는 유틸리티: bg-bg-*, text-text-*, border-border-*, text-icon-*, bg-canvas-*,
|
|
10
|
+
* *-category-*, p·m·gap 계열-{2xs…3xl}, rounded-{xs…full}, shadow-{sm,md,xl}, opacity-{disable,dim},
|
|
11
|
+
* z-{overlay,modal,dropdown,tooltip}, max-w-modal-{sm,md,lg}, w-panel, max-w-content, font-aivex, text-{display,heading,body,label,caption}-*
|
|
12
|
+
*
|
|
13
|
+
* rounded-{xs,sm,md,xl,2xl}·shadow-{sm,md,xl}은 Tailwind 기본값 대신 DS 값이 된다.
|
|
14
|
+
* w-*·h-*·max-w-* 같은 크기 유틸리티의 기본 스케일(max-w-md = 28rem 등)은 바꾸지 않는다.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/* inline: 유틸리티가 --aivex-* 토큰을 직접 참조한다. inline이 아니면 --aivex-color-* 같은 중간 변수가
|
|
18
|
+
:root에서 한 번 값이 정해져, 하위 영역의 data-theme="dark"가 배경·글자색 유틸리티에 반영되지 않는다. */
|
|
19
|
+
@theme inline {
|
|
20
|
+
/* Background Colors → bg-bg-* */
|
|
21
|
+
--color-bg-primary: var(--aivex-bg-primary);
|
|
22
|
+
--color-bg-secondary: var(--aivex-bg-secondary);
|
|
23
|
+
--color-bg-tertiary: var(--aivex-bg-tertiary);
|
|
24
|
+
--color-bg-float: var(--aivex-bg-float);
|
|
25
|
+
--color-bg-inverse: var(--aivex-bg-inverse);
|
|
26
|
+
--color-bg-inverse-strong: var(--aivex-bg-inverse-strong);
|
|
27
|
+
--color-bg-brand: var(--aivex-bg-brand);
|
|
28
|
+
--color-bg-brand-subtle: var(--aivex-bg-brand-subtle);
|
|
29
|
+
--color-bg-danger: var(--aivex-bg-danger);
|
|
30
|
+
--color-bg-danger-subtle: var(--aivex-bg-danger-subtle);
|
|
31
|
+
--color-bg-info: var(--aivex-bg-info);
|
|
32
|
+
--color-bg-info-subtle: var(--aivex-bg-info-subtle);
|
|
33
|
+
--color-bg-success: var(--aivex-bg-success);
|
|
34
|
+
--color-bg-success-subtle: var(--aivex-bg-success-subtle);
|
|
35
|
+
--color-bg-warning: var(--aivex-bg-warning);
|
|
36
|
+
--color-bg-warning-subtle: var(--aivex-bg-warning-subtle);
|
|
37
|
+
--color-bg-disabled: var(--aivex-bg-disabled);
|
|
38
|
+
|
|
39
|
+
/* Text Colors → text-text-* */
|
|
40
|
+
--color-text-primary: var(--aivex-text-primary);
|
|
41
|
+
--color-text-secondary: var(--aivex-text-secondary);
|
|
42
|
+
--color-text-tertiary: var(--aivex-text-tertiary);
|
|
43
|
+
--color-text-disabled: var(--aivex-text-disabled);
|
|
44
|
+
--color-text-on-color: var(--aivex-text-on-color);
|
|
45
|
+
--color-text-brand: var(--aivex-text-brand);
|
|
46
|
+
--color-text-danger: var(--aivex-text-danger);
|
|
47
|
+
--color-text-info: var(--aivex-text-info);
|
|
48
|
+
--color-text-success: var(--aivex-text-success);
|
|
49
|
+
--color-text-warning: var(--aivex-text-warning);
|
|
50
|
+
|
|
51
|
+
/* Border Colors → border-border-* */
|
|
52
|
+
--color-border-default: var(--aivex-border-default);
|
|
53
|
+
--color-border-medium: var(--aivex-border-medium);
|
|
54
|
+
--color-border-strong: var(--aivex-border-strong);
|
|
55
|
+
--color-border-subtle: var(--aivex-border-subtle);
|
|
56
|
+
--color-border-brand: var(--aivex-border-brand);
|
|
57
|
+
--color-border-brand-subtle: var(--aivex-border-brand-subtle);
|
|
58
|
+
--color-border-danger: var(--aivex-border-danger);
|
|
59
|
+
--color-border-danger-subtle: var(--aivex-border-danger-subtle);
|
|
60
|
+
--color-border-disabled: var(--aivex-border-disabled);
|
|
61
|
+
--color-border-info: var(--aivex-border-info);
|
|
62
|
+
--color-border-info-subtle: var(--aivex-border-info-subtle);
|
|
63
|
+
--color-border-success: var(--aivex-border-success);
|
|
64
|
+
--color-border-success-subtle: var(--aivex-border-success-subtle);
|
|
65
|
+
--color-border-warning: var(--aivex-border-warning);
|
|
66
|
+
--color-border-warning-subtle: var(--aivex-border-warning-subtle);
|
|
67
|
+
|
|
68
|
+
/* Icon Colors → text-icon-* */
|
|
69
|
+
--color-icon-primary: var(--aivex-icon-primary);
|
|
70
|
+
--color-icon-secondary: var(--aivex-icon-secondary);
|
|
71
|
+
--color-icon-tertiary: var(--aivex-icon-tertiary);
|
|
72
|
+
--color-icon-on-color: var(--aivex-icon-on-color);
|
|
73
|
+
--color-icon-brand: var(--aivex-icon-brand);
|
|
74
|
+
--color-icon-danger: var(--aivex-icon-danger);
|
|
75
|
+
--color-icon-info: var(--aivex-icon-info);
|
|
76
|
+
--color-icon-success: var(--aivex-icon-success);
|
|
77
|
+
--color-icon-warning: var(--aivex-icon-warning);
|
|
78
|
+
|
|
79
|
+
/* Static Colors */
|
|
80
|
+
--color-static-black: var(--aivex-static-black);
|
|
81
|
+
--color-static-white: var(--aivex-static-white);
|
|
82
|
+
--color-static-gray: var(--aivex-static-gray);
|
|
83
|
+
|
|
84
|
+
/* Dim → bg-dim (static/black × opacity/dim) */
|
|
85
|
+
--color-dim: var(--aivex-dim);
|
|
86
|
+
|
|
87
|
+
/* Canvas Colors → bg-canvas-* */
|
|
88
|
+
--color-canvas-primary: var(--aivex-canvas-primary);
|
|
89
|
+
--color-canvas-secondary: var(--aivex-canvas-secondary);
|
|
90
|
+
--color-canvas-elevated: var(--aivex-canvas-elevated);
|
|
91
|
+
|
|
92
|
+
/* Category Colors */
|
|
93
|
+
--color-category-blue-text: var(--aivex-category-blue-text);
|
|
94
|
+
--color-category-blue-bg: var(--aivex-category-blue-bg);
|
|
95
|
+
--color-category-blue-bg-subtle: var(--aivex-category-blue-bg-subtle);
|
|
96
|
+
--color-category-blue-border: var(--aivex-category-blue-border);
|
|
97
|
+
--color-category-gray-text: var(--aivex-category-gray-text);
|
|
98
|
+
--color-category-gray-bg: var(--aivex-category-gray-bg);
|
|
99
|
+
--color-category-gray-bg-subtle: var(--aivex-category-gray-bg-subtle);
|
|
100
|
+
--color-category-gray-border: var(--aivex-category-gray-border);
|
|
101
|
+
--color-category-red-text: var(--aivex-category-red-text);
|
|
102
|
+
--color-category-red-bg: var(--aivex-category-red-bg);
|
|
103
|
+
--color-category-red-bg-subtle: var(--aivex-category-red-bg-subtle);
|
|
104
|
+
--color-category-red-border: var(--aivex-category-red-border);
|
|
105
|
+
--color-category-green-text: var(--aivex-category-green-text);
|
|
106
|
+
--color-category-green-bg: var(--aivex-category-green-bg);
|
|
107
|
+
--color-category-green-bg-subtle: var(--aivex-category-green-bg-subtle);
|
|
108
|
+
--color-category-green-border: var(--aivex-category-green-border);
|
|
109
|
+
--color-category-yellow-text: var(--aivex-category-yellow-text);
|
|
110
|
+
--color-category-yellow-bg: var(--aivex-category-yellow-bg);
|
|
111
|
+
--color-category-yellow-bg-subtle: var(--aivex-category-yellow-bg-subtle);
|
|
112
|
+
--color-category-yellow-border: var(--aivex-category-yellow-border);
|
|
113
|
+
--color-category-orange-text: var(--aivex-category-orange-text);
|
|
114
|
+
--color-category-orange-bg: var(--aivex-category-orange-bg);
|
|
115
|
+
--color-category-orange-bg-subtle: var(--aivex-category-orange-bg-subtle);
|
|
116
|
+
--color-category-orange-border: var(--aivex-category-orange-border);
|
|
117
|
+
--color-category-lime-text: var(--aivex-category-lime-text);
|
|
118
|
+
--color-category-lime-bg: var(--aivex-category-lime-bg);
|
|
119
|
+
--color-category-lime-bg-subtle: var(--aivex-category-lime-bg-subtle);
|
|
120
|
+
--color-category-lime-border: var(--aivex-category-lime-border);
|
|
121
|
+
--color-category-split-training: var(--aivex-category-split-training);
|
|
122
|
+
--color-category-split-validation: var(--aivex-category-split-validation);
|
|
123
|
+
--color-category-split-unassigned: var(--aivex-category-split-unassigned);
|
|
124
|
+
--color-category-teal-text: var(--aivex-category-teal-text);
|
|
125
|
+
--color-category-teal-bg: var(--aivex-category-teal-bg);
|
|
126
|
+
--color-category-teal-bg-subtle: var(--aivex-category-teal-bg-subtle);
|
|
127
|
+
--color-category-teal-border: var(--aivex-category-teal-border);
|
|
128
|
+
--color-category-cyan-text: var(--aivex-category-cyan-text);
|
|
129
|
+
--color-category-cyan-bg: var(--aivex-category-cyan-bg);
|
|
130
|
+
--color-category-cyan-bg-subtle: var(--aivex-category-cyan-bg-subtle);
|
|
131
|
+
--color-category-cyan-border: var(--aivex-category-cyan-border);
|
|
132
|
+
--color-category-indigo-text: var(--aivex-category-indigo-text);
|
|
133
|
+
--color-category-indigo-bg: var(--aivex-category-indigo-bg);
|
|
134
|
+
--color-category-indigo-bg-subtle: var(--aivex-category-indigo-bg-subtle);
|
|
135
|
+
--color-category-indigo-border: var(--aivex-category-indigo-border);
|
|
136
|
+
--color-category-violet-text: var(--aivex-category-violet-text);
|
|
137
|
+
--color-category-violet-bg: var(--aivex-category-violet-bg);
|
|
138
|
+
--color-category-violet-bg-subtle: var(--aivex-category-violet-bg-subtle);
|
|
139
|
+
--color-category-violet-border: var(--aivex-category-violet-border);
|
|
140
|
+
--color-category-pink-text: var(--aivex-category-pink-text);
|
|
141
|
+
--color-category-pink-bg: var(--aivex-category-pink-bg);
|
|
142
|
+
--color-category-pink-bg-subtle: var(--aivex-category-pink-bg-subtle);
|
|
143
|
+
--color-category-pink-border: var(--aivex-category-pink-border);
|
|
144
|
+
|
|
145
|
+
/* Spacing → 아래 여백 유틸리티 전용 (p-xl, gap-md, -m-xs …) */
|
|
146
|
+
--aivex-space-2xs: var(--aivex-spacing-2xs);
|
|
147
|
+
--aivex-space-xs: var(--aivex-spacing-xs);
|
|
148
|
+
--aivex-space-sm: var(--aivex-spacing-sm);
|
|
149
|
+
--aivex-space-md: var(--aivex-spacing-md);
|
|
150
|
+
--aivex-space-lg: var(--aivex-spacing-lg);
|
|
151
|
+
--aivex-space-xl: var(--aivex-spacing-xl);
|
|
152
|
+
--aivex-space-2xl: var(--aivex-spacing-2xl);
|
|
153
|
+
--aivex-space-3xl: var(--aivex-spacing-3xl);
|
|
154
|
+
/* Border Radius → rounded-* */
|
|
155
|
+
--radius-xs: var(--aivex-radius-xs);
|
|
156
|
+
--radius-sm: var(--aivex-radius-sm);
|
|
157
|
+
--radius-md: var(--aivex-radius-md);
|
|
158
|
+
--radius-xl: var(--aivex-radius-xl);
|
|
159
|
+
--radius-2xl: var(--aivex-radius-2xl);
|
|
160
|
+
--radius-full: var(--aivex-radius-full);
|
|
161
|
+
|
|
162
|
+
/* Opacity → opacity-* */
|
|
163
|
+
--opacity-disable: var(--aivex-opacity-disable);
|
|
164
|
+
--opacity-dim: var(--aivex-opacity-dim);
|
|
165
|
+
|
|
166
|
+
/* Font */
|
|
167
|
+
--font-aivex: var(--aivex-font-family);
|
|
168
|
+
|
|
169
|
+
/* Z-index → z-overlay, z-modal, z-dropdown, z-tooltip */
|
|
170
|
+
--z-index-overlay: var(--aivex-z-overlay);
|
|
171
|
+
--z-index-modal: var(--aivex-z-modal);
|
|
172
|
+
--z-index-dropdown: var(--aivex-z-dropdown);
|
|
173
|
+
--z-index-tooltip: var(--aivex-z-tooltip);
|
|
174
|
+
|
|
175
|
+
/* Shadows → shadow-* */
|
|
176
|
+
--shadow-sm: var(--aivex-elevation-sm);
|
|
177
|
+
--shadow-md: var(--aivex-elevation-md);
|
|
178
|
+
--shadow-xl: var(--aivex-elevation-xl);
|
|
179
|
+
|
|
180
|
+
/* Container sizes → max-w-modal-{sm,md,lg}, w-panel, max-w-content */
|
|
181
|
+
--container-modal-sm: 24rem;
|
|
182
|
+
--container-modal-md: 34.25rem;
|
|
183
|
+
--container-modal-lg: 45rem;
|
|
184
|
+
--container-panel: 40rem;
|
|
185
|
+
--container-content: 72rem;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* 여백: 이름 붙은 spacing 토큰 */
|
|
189
|
+
@utility p-* {
|
|
190
|
+
padding: --value(--aivex-space-*);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@utility px-* {
|
|
194
|
+
padding-inline: --value(--aivex-space-*);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@utility py-* {
|
|
198
|
+
padding-block: --value(--aivex-space-*);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
@utility pt-* {
|
|
202
|
+
padding-top: --value(--aivex-space-*);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@utility pr-* {
|
|
206
|
+
padding-right: --value(--aivex-space-*);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@utility pb-* {
|
|
210
|
+
padding-bottom: --value(--aivex-space-*);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@utility pl-* {
|
|
214
|
+
padding-left: --value(--aivex-space-*);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@utility ps-* {
|
|
218
|
+
padding-inline-start: --value(--aivex-space-*);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
@utility pe-* {
|
|
222
|
+
padding-inline-end: --value(--aivex-space-*);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@utility m-* {
|
|
226
|
+
margin: --value(--aivex-space-*);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
@utility -m-* {
|
|
230
|
+
margin: calc(--value(--aivex-space-*) * -1);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
@utility mx-* {
|
|
234
|
+
margin-inline: --value(--aivex-space-*);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@utility -mx-* {
|
|
238
|
+
margin-inline: calc(--value(--aivex-space-*) * -1);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
@utility my-* {
|
|
242
|
+
margin-block: --value(--aivex-space-*);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@utility -my-* {
|
|
246
|
+
margin-block: calc(--value(--aivex-space-*) * -1);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
@utility mt-* {
|
|
250
|
+
margin-top: --value(--aivex-space-*);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
@utility -mt-* {
|
|
254
|
+
margin-top: calc(--value(--aivex-space-*) * -1);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
@utility mr-* {
|
|
258
|
+
margin-right: --value(--aivex-space-*);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@utility -mr-* {
|
|
262
|
+
margin-right: calc(--value(--aivex-space-*) * -1);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
@utility mb-* {
|
|
266
|
+
margin-bottom: --value(--aivex-space-*);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
@utility -mb-* {
|
|
270
|
+
margin-bottom: calc(--value(--aivex-space-*) * -1);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
@utility ml-* {
|
|
274
|
+
margin-left: --value(--aivex-space-*);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
@utility -ml-* {
|
|
278
|
+
margin-left: calc(--value(--aivex-space-*) * -1);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
@utility ms-* {
|
|
282
|
+
margin-inline-start: --value(--aivex-space-*);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
@utility -ms-* {
|
|
286
|
+
margin-inline-start: calc(--value(--aivex-space-*) * -1);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
@utility me-* {
|
|
290
|
+
margin-inline-end: --value(--aivex-space-*);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
@utility -me-* {
|
|
294
|
+
margin-inline-end: calc(--value(--aivex-space-*) * -1);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
@utility gap-* {
|
|
298
|
+
gap: --value(--aivex-space-*);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
@utility gap-x-* {
|
|
302
|
+
column-gap: --value(--aivex-space-*);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
@utility gap-y-* {
|
|
306
|
+
row-gap: --value(--aivex-space-*);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/* 타이포그래피 */
|
|
310
|
+
@utility text-display-lg {
|
|
311
|
+
font-size: 56px;
|
|
312
|
+
line-height: 68px;
|
|
313
|
+
letter-spacing: -0.8px;
|
|
314
|
+
font-weight: 600;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
@utility text-display-md {
|
|
318
|
+
font-size: 40px;
|
|
319
|
+
line-height: 48px;
|
|
320
|
+
letter-spacing: -0.4px;
|
|
321
|
+
font-weight: 600;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
@utility text-heading-xl {
|
|
325
|
+
font-size: 36px;
|
|
326
|
+
line-height: 44px;
|
|
327
|
+
letter-spacing: -0.4px;
|
|
328
|
+
font-weight: 600;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
@utility text-heading-lg {
|
|
332
|
+
font-size: 28px;
|
|
333
|
+
line-height: 40px;
|
|
334
|
+
letter-spacing: -0.4px;
|
|
335
|
+
font-weight: 600;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
@utility text-heading-md {
|
|
339
|
+
font-size: 24px;
|
|
340
|
+
line-height: 32px;
|
|
341
|
+
letter-spacing: -0.1px;
|
|
342
|
+
font-weight: 600;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
@utility text-heading-sm {
|
|
346
|
+
font-size: 20px;
|
|
347
|
+
line-height: 28px;
|
|
348
|
+
letter-spacing: -0.1px;
|
|
349
|
+
font-weight: 600;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
@utility text-heading-xs {
|
|
353
|
+
font-size: 18px;
|
|
354
|
+
line-height: 26px;
|
|
355
|
+
letter-spacing: -0.1px;
|
|
356
|
+
font-weight: 500;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
@utility text-body-lg-regular {
|
|
360
|
+
font-size: 16px;
|
|
361
|
+
line-height: 24px;
|
|
362
|
+
letter-spacing: 0px;
|
|
363
|
+
font-weight: 400;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
@utility text-body-lg-medium {
|
|
367
|
+
font-size: 16px;
|
|
368
|
+
line-height: 24px;
|
|
369
|
+
letter-spacing: 0px;
|
|
370
|
+
font-weight: 500;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
@utility text-body-md-regular {
|
|
374
|
+
font-size: 14px;
|
|
375
|
+
line-height: 22px;
|
|
376
|
+
letter-spacing: 0px;
|
|
377
|
+
font-weight: 400;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
@utility text-body-md-medium {
|
|
381
|
+
font-size: 14px;
|
|
382
|
+
line-height: 22px;
|
|
383
|
+
letter-spacing: 0px;
|
|
384
|
+
font-weight: 500;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
@utility text-body-sm-regular {
|
|
388
|
+
font-size: 12px;
|
|
389
|
+
line-height: 18px;
|
|
390
|
+
letter-spacing: 0px;
|
|
391
|
+
font-weight: 400;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
@utility text-body-sm-medium {
|
|
395
|
+
font-size: 12px;
|
|
396
|
+
line-height: 18px;
|
|
397
|
+
letter-spacing: 0px;
|
|
398
|
+
font-weight: 500;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
@utility text-label-xl {
|
|
402
|
+
font-size: 16px;
|
|
403
|
+
line-height: 24px;
|
|
404
|
+
letter-spacing: 0.1px;
|
|
405
|
+
font-weight: 500;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
@utility text-label-lg {
|
|
409
|
+
font-size: 14px;
|
|
410
|
+
line-height: 20px;
|
|
411
|
+
letter-spacing: 0.1px;
|
|
412
|
+
font-weight: 500;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
@utility text-label-md {
|
|
416
|
+
font-size: 12px;
|
|
417
|
+
line-height: 18px;
|
|
418
|
+
letter-spacing: 0.1px;
|
|
419
|
+
font-weight: 500;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
@utility text-label-sm {
|
|
423
|
+
font-size: 10px;
|
|
424
|
+
line-height: 16px;
|
|
425
|
+
letter-spacing: 0.1px;
|
|
426
|
+
font-weight: 500;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
@utility text-caption-md {
|
|
430
|
+
font-size: 12px;
|
|
431
|
+
line-height: 18px;
|
|
432
|
+
letter-spacing: 0.1px;
|
|
433
|
+
font-weight: 400;
|
|
434
|
+
}
|
package/dist/tokens/tokens.css
CHANGED
|
@@ -390,7 +390,7 @@
|
|
|
390
390
|
/* Z-index — 레이어 쌓임 순서. 현재는 모두 50으로 같아 같은 값끼리는 DOM(포털)
|
|
391
391
|
순서대로 쌓인다. 앱이 레이어 간 우선순위를 정하려면 이 값을 오버라이드한다. */
|
|
392
392
|
--aivex-z-overlay: 50; /* Overlay·모달/패널 딤 배경 */
|
|
393
|
-
--aivex-z-modal: 50; /* Modal·ModalBase·Dialog·Drawer
|
|
393
|
+
--aivex-z-modal: 50; /* Modal·ModalBase·Dialog·Drawer 콘텐츠 */
|
|
394
394
|
--aivex-z-dropdown: 50; /* Menu·Popover·Coachmark */
|
|
395
395
|
--aivex-z-tooltip: 50; /* Tooltip */
|
|
396
396
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ClassValue } from "clsx";
|
|
2
|
+
/**
|
|
3
|
+
* 클래스 이름을 조건부로 합치고, 충돌하는 Tailwind 클래스는 뒤의 것만 남긴다(clsx + tailwind-merge).
|
|
4
|
+
* DS 타이포(`text-heading-md` 등)와 텍스트 색(`text-text-secondary` 등)을 서로 다른 그룹으로 알아
|
|
5
|
+
* 한쪽이 다른 쪽을 지우지 않는다. Server Component에서는 `@aivex/ui/utils`에서 가져온다.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <div className={cn("p-xl text-text-primary", isActive && "text-text-brand", className)} />
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
package/dist/utils/cn.d.ts
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
import { type ClassValue } from "clsx";
|
|
2
|
+
/**
|
|
3
|
+
* 클래스 이름을 조건부로 합치고, 충돌하는 Tailwind 클래스는 뒤의 것만 남긴다(clsx + tailwind-merge).
|
|
4
|
+
* DS 타이포(`text-heading-md` 등)와 텍스트 색(`text-text-secondary` 등)을 서로 다른 그룹으로 알아
|
|
5
|
+
* 한쪽이 다른 쪽을 지우지 않는다. Server Component에서는 `@aivex/ui/utils`에서 가져온다.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <div className={cn("p-xl text-text-primary", isActive && "text-text-brand", className)} />
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
2
12
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";var e=`aivex:flex aivex:min-h-[50px] aivex:w-full aivex:shrink-0 aivex:items-center aivex:justify-between aivex:gap-md aivex:border-b aivex:border-border-subtle aivex:px-xl aivex:py-[11px]`,t=`aivex:m-0 aivex:min-w-0 aivex:truncate aivex:text-heading-xs aivex:text-text-primary`,n=`aivex:flex aivex:shrink-0 aivex:items-center aivex:gap-md`,r=`aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col aivex:overflow-y-auto`,i=`aivex:p-xl`;exports.sheetActionsClassName=n,exports.sheetBodyClassName=r,exports.sheetBodyPaddingClassName=i,exports.sheetHeaderClassName=e,exports.sheetTitleClassName=t;
|
|
2
|
+
//# sourceMappingURL=sheet.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.cjs","names":[],"sources":["../../src/utils/sheet.ts"],"sourcesContent":["/**\n * Drawer·Panel이 함께 쓰는 사이드 시트 조각의 모양 — Figma ADS 2.0의 Drawer·Panel\n * (Header 50px·제목 Body1/Medium 18/26·좌우 16px·아래 구분선, Body 사방 16px).\n * 두 컴포넌트는 동작(오버레이 vs 레이아웃)이 달라 조각만 공유한다.\n */\n\n/** 시트 기본 폭(px) — Figma 기본값. */\nexport const SHEET_DEFAULT_WIDTH = 420;\n\n/** 헤더 줄 — 높이 50px(위아래 11px + 제목 26px + 구분선 1px), 좌우 16px. */\nexport const sheetHeaderClassName =\n \"aivex:flex aivex:min-h-[50px] aivex:w-full aivex:shrink-0 aivex:items-center aivex:justify-between aivex:gap-md aivex:border-b aivex:border-border-subtle aivex:px-xl aivex:py-[11px]\";\n\n/** 헤더 제목 — Body1/Medium(18px/26px). */\nexport const sheetTitleClassName =\n \"aivex:m-0 aivex:min-w-0 aivex:truncate aivex:text-heading-xs aivex:text-text-primary\";\n\n/** 헤더 오른쪽 동작 묶음 — 24px 아이콘 버튼을 8px 간격으로 둔다. */\nexport const sheetActionsClassName = \"aivex:flex aivex:shrink-0 aivex:items-center aivex:gap-md\";\n\n/** 남은 높이를 채우고 넘치면 세로 스크롤하는 본문. */\nexport const sheetBodyClassName =\n \"aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col aivex:overflow-y-auto\";\n\n/** 본문 기본 여백 — 사방 16px. */\nexport const sheetBodyPaddingClassName = \"aivex:p-xl\";\n"],"mappings":"aAUA,IAAa,EACX,wLAGW,EACX,uFAGW,EAAwB,4DAGxB,EACX,6EAGW,EAA4B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Drawer·Panel이 함께 쓰는 사이드 시트 조각의 모양 — Figma ADS 2.0의 Drawer·Panel
|
|
3
|
+
* (Header 50px·제목 Body1/Medium 18/26·좌우 16px·아래 구분선, Body 사방 16px).
|
|
4
|
+
* 두 컴포넌트는 동작(오버레이 vs 레이아웃)이 달라 조각만 공유한다.
|
|
5
|
+
*/
|
|
6
|
+
/** 시트 기본 폭(px) — Figma 기본값. */
|
|
7
|
+
export declare const SHEET_DEFAULT_WIDTH = 420;
|
|
8
|
+
/** 헤더 줄 — 높이 50px(위아래 11px + 제목 26px + 구분선 1px), 좌우 16px. */
|
|
9
|
+
export declare const sheetHeaderClassName = "aivex:flex aivex:min-h-[50px] aivex:w-full aivex:shrink-0 aivex:items-center aivex:justify-between aivex:gap-md aivex:border-b aivex:border-border-subtle aivex:px-xl aivex:py-[11px]";
|
|
10
|
+
/** 헤더 제목 — Body1/Medium(18px/26px). */
|
|
11
|
+
export declare const sheetTitleClassName = "aivex:m-0 aivex:min-w-0 aivex:truncate aivex:text-heading-xs aivex:text-text-primary";
|
|
12
|
+
/** 헤더 오른쪽 동작 묶음 — 24px 아이콘 버튼을 8px 간격으로 둔다. */
|
|
13
|
+
export declare const sheetActionsClassName = "aivex:flex aivex:shrink-0 aivex:items-center aivex:gap-md";
|
|
14
|
+
/** 남은 높이를 채우고 넘치면 세로 스크롤하는 본문. */
|
|
15
|
+
export declare const sheetBodyClassName = "aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col aivex:overflow-y-auto";
|
|
16
|
+
/** 본문 기본 여백 — 사방 16px. */
|
|
17
|
+
export declare const sheetBodyPaddingClassName = "aivex:p-xl";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Drawer·Panel이 함께 쓰는 사이드 시트 조각의 모양 — Figma ADS 2.0의 Drawer·Panel
|
|
3
|
+
* (Header 50px·제목 Body1/Medium 18/26·좌우 16px·아래 구분선, Body 사방 16px).
|
|
4
|
+
* 두 컴포넌트는 동작(오버레이 vs 레이아웃)이 달라 조각만 공유한다.
|
|
5
|
+
*/
|
|
6
|
+
/** 시트 기본 폭(px) — Figma 기본값. */
|
|
7
|
+
export declare const SHEET_DEFAULT_WIDTH = 420;
|
|
8
|
+
/** 헤더 줄 — 높이 50px(위아래 11px + 제목 26px + 구분선 1px), 좌우 16px. */
|
|
9
|
+
export declare const sheetHeaderClassName = "aivex:flex aivex:min-h-[50px] aivex:w-full aivex:shrink-0 aivex:items-center aivex:justify-between aivex:gap-md aivex:border-b aivex:border-border-subtle aivex:px-xl aivex:py-[11px]";
|
|
10
|
+
/** 헤더 제목 — Body1/Medium(18px/26px). */
|
|
11
|
+
export declare const sheetTitleClassName = "aivex:m-0 aivex:min-w-0 aivex:truncate aivex:text-heading-xs aivex:text-text-primary";
|
|
12
|
+
/** 헤더 오른쪽 동작 묶음 — 24px 아이콘 버튼을 8px 간격으로 둔다. */
|
|
13
|
+
export declare const sheetActionsClassName = "aivex:flex aivex:shrink-0 aivex:items-center aivex:gap-md";
|
|
14
|
+
/** 남은 높이를 채우고 넘치면 세로 스크롤하는 본문. */
|
|
15
|
+
export declare const sheetBodyClassName = "aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col aivex:overflow-y-auto";
|
|
16
|
+
/** 본문 기본 여백 — 사방 16px. */
|
|
17
|
+
export declare const sheetBodyPaddingClassName = "aivex:p-xl";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/utils/sheet.ts
|
|
3
|
+
var e = "aivex:flex aivex:min-h-[50px] aivex:w-full aivex:shrink-0 aivex:items-center aivex:justify-between aivex:gap-md aivex:border-b aivex:border-border-subtle aivex:px-xl aivex:py-[11px]", t = "aivex:m-0 aivex:min-w-0 aivex:truncate aivex:text-heading-xs aivex:text-text-primary", n = "aivex:flex aivex:shrink-0 aivex:items-center aivex:gap-md", r = "aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col aivex:overflow-y-auto", i = "aivex:p-xl";
|
|
4
|
+
//#endregion
|
|
5
|
+
export { n as sheetActionsClassName, r as sheetBodyClassName, i as sheetBodyPaddingClassName, e as sheetHeaderClassName, t as sheetTitleClassName };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=sheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.js","names":[],"sources":["../../src/utils/sheet.ts"],"sourcesContent":["/**\n * Drawer·Panel이 함께 쓰는 사이드 시트 조각의 모양 — Figma ADS 2.0의 Drawer·Panel\n * (Header 50px·제목 Body1/Medium 18/26·좌우 16px·아래 구분선, Body 사방 16px).\n * 두 컴포넌트는 동작(오버레이 vs 레이아웃)이 달라 조각만 공유한다.\n */\n\n/** 시트 기본 폭(px) — Figma 기본값. */\nexport const SHEET_DEFAULT_WIDTH = 420;\n\n/** 헤더 줄 — 높이 50px(위아래 11px + 제목 26px + 구분선 1px), 좌우 16px. */\nexport const sheetHeaderClassName =\n \"aivex:flex aivex:min-h-[50px] aivex:w-full aivex:shrink-0 aivex:items-center aivex:justify-between aivex:gap-md aivex:border-b aivex:border-border-subtle aivex:px-xl aivex:py-[11px]\";\n\n/** 헤더 제목 — Body1/Medium(18px/26px). */\nexport const sheetTitleClassName =\n \"aivex:m-0 aivex:min-w-0 aivex:truncate aivex:text-heading-xs aivex:text-text-primary\";\n\n/** 헤더 오른쪽 동작 묶음 — 24px 아이콘 버튼을 8px 간격으로 둔다. */\nexport const sheetActionsClassName = \"aivex:flex aivex:shrink-0 aivex:items-center aivex:gap-md\";\n\n/** 남은 높이를 채우고 넘치면 세로 스크롤하는 본문. */\nexport const sheetBodyClassName =\n \"aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col aivex:overflow-y-auto\";\n\n/** 본문 기본 여백 — 사방 16px. */\nexport const sheetBodyPaddingClassName = \"aivex:p-xl\";\n"],"mappings":";;AAUA,IAAa,IACX,yLAGW,IACX,wFAGW,IAAwB,6DAGxB,IACX,8EAGW,IAA4B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface UseControllableStateParams<T> {
|
|
2
|
+
/** 제어 값. `undefined`가 아니면 제어 모드로 동작한다. */
|
|
3
|
+
value?: T;
|
|
4
|
+
/** 비제어 모드의 초기값. */
|
|
5
|
+
defaultValue: T;
|
|
6
|
+
/** 값이 바뀔 때 호출된다. 제어/비제어 모드 모두에서 호출된다. */
|
|
7
|
+
onChange?: (value: T) => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 제어/비제어 상태를 한 곳에서 다루는 훅 (Radix `useControllableState`와 같은 계약).
|
|
11
|
+
*
|
|
12
|
+
* - `value !== undefined`이면 제어 모드: 반환 값은 항상 `value`이고 내부 상태는 갱신하지 않는다.
|
|
13
|
+
* - 그 외에는 비제어 모드: `defaultValue`로 시작하는 내부 상태를 갱신한다.
|
|
14
|
+
* - setter는 두 모드 모두에서 `onChange(next)`를 호출한다.
|
|
15
|
+
*/
|
|
16
|
+
declare function useControllableState<T>({ value, defaultValue, onChange, }: UseControllableStateParams<T>): [T, (next: T) => void];
|
|
17
|
+
export { useControllableState };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trigger 없이 열리는 모달의 복원 위치를 기억한다. 소비자 핸들러가 우선한다.
|
|
3
|
+
*
|
|
4
|
+
* 닫힐 때 포커스가 이미 콘텐츠 바깥의 다른 요소로 옮겨 가 있으면(비모달 드로어를
|
|
5
|
+
* 연 채 뒤 화면을 조작한 경우) 그 포커스를 빼앗지 않는다. 모달은 포커스가 갇혀
|
|
6
|
+
* 있어 이 경우가 생기지 않는다.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useModalAutoFocus(onOpenAutoFocus?: (event: Event) => void, onCloseAutoFocus?: (event: Event) => void): {
|
|
9
|
+
onOpenAutoFocus(event: Event): void;
|
|
10
|
+
onCloseAutoFocus(event: Event): void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";require(`../_virtual/_rolldown/runtime.cjs`);let e=require(`react`);var t=16;function n({side:n,minWidth:r,maxWidth:i,viewportGap:a=48}){let[o,s]=(0,e.useState)(null),c=(0,e.useRef)(!1),l=e=>Math.max(r,i??(e.defaultView?.innerWidth??0)-a),u=(e,t)=>Math.round(Math.min(l(t),Math.max(r,e))),d=e=>e.parentElement??e,f=e=>{e.button===0&&(e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),c.current=!0)},p=e=>{if(!c.current)return;let t=d(e.currentTarget).getBoundingClientRect();s(u(n===`right`?t.right-e.clientX:e.clientX-t.left,e.currentTarget.ownerDocument))},m=e=>{c.current&&(c.current=!1,e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId))};return{width:o,handlers:{onPointerDown:f,onPointerMove:p,onPointerUp:m,onPointerCancel:m,onKeyDown:e=>{let i=e.currentTarget.ownerDocument,a=o??d(e.currentTarget).getBoundingClientRect().width,c=e.shiftKey?t*4:t,f=n===`right`?`ArrowLeft`:`ArrowRight`,p=n===`right`?`ArrowRight`:`ArrowLeft`,m=null;e.key===f?m=a+c:e.key===p?m=a-c:e.key===`Home`?m=r:e.key===`End`&&(m=l(i)),m!==null&&(e.preventDefault(),e.stopPropagation(),s(u(m,i)))}}}}exports.useResizableWidth=n;
|
|
2
|
+
//# sourceMappingURL=useResizableWidth.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResizableWidth.cjs","names":[],"sources":["../../src/utils/useResizableWidth.ts"],"sourcesContent":["import type { KeyboardEvent, PointerEvent } from \"react\";\nimport { useRef, useState } from \"react\";\n\n/** 키보드 한 번에 바뀌는 폭(px). Shift를 누르면 4배. */\nconst KEYBOARD_STEP = 16;\n\nexport interface ResizableWidthOptions {\n /** 핸들이 붙는 쪽의 반대 — 시트가 붙은 화면 가장자리. right면 핸들은 왼쪽 모서리에 있다. */\n side: \"left\" | \"right\";\n /** 최소 폭(px). */\n minWidth: number;\n /** 최대 폭(px). 생략하면 화면 폭에서 viewportGap을 뺀 값. */\n maxWidth?: number;\n /** maxWidth를 생략했을 때 화면 반대편에 남길 여백(px). */\n viewportGap?: number;\n}\n\n/**\n * 사이드 시트의 바깥쪽 모서리를 끌어 폭을 바꾼다 — 포인터 드래그와 방향키를 모두 받는다.\n * 폭은 핸들의 부모(시트 요소)의 화면 위치를 기준으로 계산하므로 시트가 화면 끝이\n * 아닌 곳(GNB 옆 등)에 붙어 있어도 맞는다. width가 null이면 아직 조절하지 않은 상태다.\n */\nexport function useResizableWidth({\n side,\n minWidth,\n maxWidth,\n viewportGap = 48,\n}: ResizableWidthOptions) {\n const [width, setWidth] = useState<number | null>(null);\n const draggingRef = useRef(false);\n\n const resolveMax = (doc: Document) =>\n Math.max(minWidth, maxWidth ?? (doc.defaultView?.innerWidth ?? 0) - viewportGap);\n const clamp = (value: number, doc: Document) =>\n Math.round(Math.min(resolveMax(doc), Math.max(minWidth, value)));\n\n const sheetOf = (handle: HTMLElement) => handle.parentElement ?? handle;\n\n const onPointerDown = (event: PointerEvent<HTMLElement>) => {\n if (event.button !== 0) return;\n event.preventDefault();\n event.currentTarget.setPointerCapture(event.pointerId);\n draggingRef.current = true;\n };\n\n const onPointerMove = (event: PointerEvent<HTMLElement>) => {\n if (!draggingRef.current) return;\n const rect = sheetOf(event.currentTarget).getBoundingClientRect();\n const next = side === \"right\" ? rect.right - event.clientX : event.clientX - rect.left;\n setWidth(clamp(next, event.currentTarget.ownerDocument));\n };\n\n const endDrag = (event: PointerEvent<HTMLElement>) => {\n if (!draggingRef.current) return;\n draggingRef.current = false;\n if (event.currentTarget.hasPointerCapture(event.pointerId)) {\n event.currentTarget.releasePointerCapture(event.pointerId);\n }\n };\n\n const onKeyDown = (event: KeyboardEvent<HTMLElement>) => {\n const doc = event.currentTarget.ownerDocument;\n const current = width ?? sheetOf(event.currentTarget).getBoundingClientRect().width;\n const step = event.shiftKey ? KEYBOARD_STEP * 4 : KEYBOARD_STEP;\n // 시트가 오른쪽에 붙어 있으면 왼쪽 화살표가 넓힌다(모서리가 왼쪽으로 간다).\n const grow = side === \"right\" ? \"ArrowLeft\" : \"ArrowRight\";\n const shrink = side === \"right\" ? \"ArrowRight\" : \"ArrowLeft\";\n let next: number | null = null;\n if (event.key === grow) next = current + step;\n else if (event.key === shrink) next = current - step;\n else if (event.key === \"Home\") next = minWidth;\n else if (event.key === \"End\") next = resolveMax(doc);\n if (next === null) return;\n event.preventDefault();\n event.stopPropagation();\n setWidth(clamp(next, doc));\n };\n\n return {\n width,\n /**\n * 핸들 요소에 펼치는 포인터·키보드 핸들러. 핸들에는 role=\"separator\",\n * aria-orientation=\"vertical\", tabIndex={0}, aria-valuenow={width}를 함께 둔다.\n */\n handlers: {\n onPointerDown,\n onPointerMove,\n onPointerUp: endDrag,\n onPointerCancel: endDrag,\n onKeyDown,\n },\n };\n}\n"],"mappings":"iFAIA,IAAM,EAAgB,GAkBtB,SAAgB,EAAkB,CAChC,OACA,WACA,WACA,cAAc,IACU,CACxB,GAAM,CAAC,EAAO,IAAA,EAAA,EAAA,UAAoC,KAAK,CACjD,GAAA,EAAA,EAAA,QAAqB,GAAM,CAE3B,EAAc,GAClB,KAAK,IAAI,EAAU,IAAa,EAAI,aAAa,YAAc,GAAK,EAAY,CAC5E,GAAS,EAAe,IAC5B,KAAK,MAAM,KAAK,IAAI,EAAW,EAAI,CAAE,KAAK,IAAI,EAAU,EAAM,CAAC,CAAC,CAE5D,EAAW,GAAwB,EAAO,eAAiB,EAE3D,EAAiB,GAAqC,CACtD,EAAM,SAAW,IACrB,EAAM,gBAAgB,CACtB,EAAM,cAAc,kBAAkB,EAAM,UAAU,CACtD,EAAY,QAAU,KAGlB,EAAiB,GAAqC,CAC1D,GAAI,CAAC,EAAY,QAAS,OAC1B,IAAM,EAAO,EAAQ,EAAM,cAAc,CAAC,uBAAuB,CAEjE,EAAS,EADI,IAAS,QAAU,EAAK,MAAQ,EAAM,QAAU,EAAM,QAAU,EAAK,KAC7D,EAAM,cAAc,cAAc,CAAC,EAGpD,EAAW,GAAqC,CAC/C,EAAY,UACjB,EAAY,QAAU,GAClB,EAAM,cAAc,kBAAkB,EAAM,UAAU,EACxD,EAAM,cAAc,sBAAsB,EAAM,UAAU,GAsB9D,MAAO,CACL,QAKA,SAAU,CACR,gBACA,gBACA,YAAa,EACb,gBAAiB,EACjB,UA7Be,GAAsC,CACvD,IAAM,EAAM,EAAM,cAAc,cAC1B,EAAU,GAAS,EAAQ,EAAM,cAAc,CAAC,uBAAuB,CAAC,MACxE,EAAO,EAAM,SAAW,EAAgB,EAAI,EAE5C,EAAO,IAAS,QAAU,YAAc,aACxC,EAAS,IAAS,QAAU,aAAe,YAC7C,EAAsB,KACtB,EAAM,MAAQ,EAAM,EAAO,EAAU,EAChC,EAAM,MAAQ,EAAQ,EAAO,EAAU,EACvC,EAAM,MAAQ,OAAQ,EAAO,EAC7B,EAAM,MAAQ,QAAO,EAAO,EAAW,EAAI,EAChD,IAAS,OACb,EAAM,gBAAgB,CACtB,EAAM,iBAAiB,CACvB,EAAS,EAAM,EAAM,EAAI,CAAC,GAezB,CACF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { KeyboardEvent, PointerEvent } from "react";
|
|
2
|
+
export interface ResizableWidthOptions {
|
|
3
|
+
/** 핸들이 붙는 쪽의 반대 — 시트가 붙은 화면 가장자리. right면 핸들은 왼쪽 모서리에 있다. */
|
|
4
|
+
side: "left" | "right";
|
|
5
|
+
/** 최소 폭(px). */
|
|
6
|
+
minWidth: number;
|
|
7
|
+
/** 최대 폭(px). 생략하면 화면 폭에서 viewportGap을 뺀 값. */
|
|
8
|
+
maxWidth?: number;
|
|
9
|
+
/** maxWidth를 생략했을 때 화면 반대편에 남길 여백(px). */
|
|
10
|
+
viewportGap?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 사이드 시트의 바깥쪽 모서리를 끌어 폭을 바꾼다 — 포인터 드래그와 방향키를 모두 받는다.
|
|
14
|
+
* 폭은 핸들의 부모(시트 요소)의 화면 위치를 기준으로 계산하므로 시트가 화면 끝이
|
|
15
|
+
* 아닌 곳(GNB 옆 등)에 붙어 있어도 맞는다. width가 null이면 아직 조절하지 않은 상태다.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useResizableWidth({ side, minWidth, maxWidth, viewportGap, }: ResizableWidthOptions): {
|
|
18
|
+
width: number | null;
|
|
19
|
+
/**
|
|
20
|
+
* 핸들 요소에 펼치는 포인터·키보드 핸들러. 핸들에는 role="separator",
|
|
21
|
+
* aria-orientation="vertical", tabIndex={0}, aria-valuenow={width}를 함께 둔다.
|
|
22
|
+
*/
|
|
23
|
+
handlers: {
|
|
24
|
+
onPointerDown: (event: PointerEvent<HTMLElement>) => void;
|
|
25
|
+
onPointerMove: (event: PointerEvent<HTMLElement>) => void;
|
|
26
|
+
onPointerUp: (event: PointerEvent<HTMLElement>) => void;
|
|
27
|
+
onPointerCancel: (event: PointerEvent<HTMLElement>) => void;
|
|
28
|
+
onKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { KeyboardEvent, PointerEvent } from "react";
|
|
2
|
+
export interface ResizableWidthOptions {
|
|
3
|
+
/** 핸들이 붙는 쪽의 반대 — 시트가 붙은 화면 가장자리. right면 핸들은 왼쪽 모서리에 있다. */
|
|
4
|
+
side: "left" | "right";
|
|
5
|
+
/** 최소 폭(px). */
|
|
6
|
+
minWidth: number;
|
|
7
|
+
/** 최대 폭(px). 생략하면 화면 폭에서 viewportGap을 뺀 값. */
|
|
8
|
+
maxWidth?: number;
|
|
9
|
+
/** maxWidth를 생략했을 때 화면 반대편에 남길 여백(px). */
|
|
10
|
+
viewportGap?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 사이드 시트의 바깥쪽 모서리를 끌어 폭을 바꾼다 — 포인터 드래그와 방향키를 모두 받는다.
|
|
14
|
+
* 폭은 핸들의 부모(시트 요소)의 화면 위치를 기준으로 계산하므로 시트가 화면 끝이
|
|
15
|
+
* 아닌 곳(GNB 옆 등)에 붙어 있어도 맞는다. width가 null이면 아직 조절하지 않은 상태다.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useResizableWidth({ side, minWidth, maxWidth, viewportGap, }: ResizableWidthOptions): {
|
|
18
|
+
width: number | null;
|
|
19
|
+
/**
|
|
20
|
+
* 핸들 요소에 펼치는 포인터·키보드 핸들러. 핸들에는 role="separator",
|
|
21
|
+
* aria-orientation="vertical", tabIndex={0}, aria-valuenow={width}를 함께 둔다.
|
|
22
|
+
*/
|
|
23
|
+
handlers: {
|
|
24
|
+
onPointerDown: (event: PointerEvent<HTMLElement>) => void;
|
|
25
|
+
onPointerMove: (event: PointerEvent<HTMLElement>) => void;
|
|
26
|
+
onPointerUp: (event: PointerEvent<HTMLElement>) => void;
|
|
27
|
+
onPointerCancel: (event: PointerEvent<HTMLElement>) => void;
|
|
28
|
+
onKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
|
|
29
|
+
};
|
|
30
|
+
};
|