@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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { PopoverAnchorProps, PopoverBodyProps, PopoverCloseProps, PopoverContentProps, PopoverFooterProps, PopoverRootProps, PopoverTitleProps, PopoverTriggerProps, } from "./Popover";
|
|
2
|
-
export { Popover } from "./Popover";
|
|
1
|
+
export type { PopoverAnchorProps, PopoverBodyProps, PopoverCloseProps, PopoverContentProps, PopoverFooterProps, PopoverRootProps, PopoverTitleProps, PopoverTriggerProps, } from "./Popover.js";
|
|
2
|
+
export { Popover } from "./Popover.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressBar.cjs","names":[],"sources":["../../../src/components/ProgressBar/ProgressBar.tsx"],"sourcesContent":["import type { CSSProperties, HTMLAttributes, Ref } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\nexport type ProgressBarColor = \"success\" | \"warning\" | \"info\" | \"danger\";\n\nexport interface ProgressBarProps extends Omit<HTMLAttributes<HTMLDivElement>, \"color\"> {\n current: number;\n total: number;\n color?: ProgressBarColor;\n width?: string | number;\n height?: string | number;\n isProgressing?: boolean;\n ref?: Ref<HTMLDivElement>;\n}\n\nconst semanticColorVars = {\n success: { fill: \"var(--aivex-bg-success-glow)\" },\n warning: { fill: \"var(--aivex-bg-warning-glow)\" },\n info: { fill: \"var(--aivex-bg-info-glow)\" },\n danger: { fill: \"var(--aivex-bg-danger-glow)\" },\n} as const;\n\nconst toCssSize = (value: string | number) => (typeof value === \"number\" ? `${value}px` : value);\n\nconst toPercentage = (current: number, total: number) => {\n if (!Number.isFinite(current) || !Number.isFinite(total) || total <= 0) return 0;\n return Math.min(100, Math.max(0, (current / total) * 100));\n};\n\nfunction ProgressBar({\n className,\n current,\n total,\n color = \"success\",\n width = \"100%\",\n height = 6,\n isProgressing = false,\n ref,\n style,\n ...props\n}: ProgressBarProps) {\n const percentageValue = toPercentage(current, total);\n const widthValue = toCssSize(width);\n const heightValue = toCssSize(height);\n const colors = semanticColorVars[color];\n\n const fillStyle: CSSProperties = isProgressing\n ? {\n width: \"100%\",\n backgroundImage: `linear-gradient(90deg, ${colors.fill} 0%, color-mix(in srgb, ${colors.fill}, #fff 35%) 50%, ${colors.fill} 100%)`,\n }\n : {\n width: `${percentageValue}%`,\n backgroundColor: colors.fill,\n };\n\n return (\n <div\n ref={ref}\n role=\"progressbar\"\n aria-valuemin={0}\n aria-valuemax={total}\n aria-valuenow={isProgressing ? undefined : current}\n className={cn(\n \"aivex:relative aivex:overflow-hidden aivex:rounded-full aivex:bg-bg-tertiary\",\n className,\n )}\n style={{\n width: widthValue,\n height: heightValue,\n ...style,\n }}\n {...props}\n >\n <div\n className={cn(\n \"aivex:absolute aivex:left-0 aivex:top-0 aivex:h-full aivex:rounded-full aivex:transition-all aivex:duration-300\",\n isProgressing && \"aivex-progressbar-indeterminate\",\n )}\n style={fillStyle}\n />\n </div>\n );\n}\n\nexport { ProgressBar };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProgressBar.cjs","names":[],"sources":["../../../src/components/ProgressBar/ProgressBar.tsx"],"sourcesContent":["import type { CSSProperties, HTMLAttributes, Ref } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\n/** 진행 막대 채움 색(시맨틱 glow 토큰). */\nexport type ProgressBarColor = \"success\" | \"warning\" | \"info\" | \"danger\";\n\nexport interface ProgressBarProps extends Omit<HTMLAttributes<HTMLDivElement>, \"color\"> {\n /** 현재 진행량. `current / total` 비율로 채우며 0~100%로 잘린다 */\n current: number;\n /** 전체량. 0 이하이거나 유한수가 아니면 0%로 표시 */\n total: number;\n /**\n * 채움 색\n * @default \"success\"\n */\n color?: ProgressBarColor;\n /**\n * 막대 폭. 숫자는 px\n * @default \"100%\"\n */\n width?: string | number;\n /**\n * 막대 높이. 숫자는 px\n * @default 6\n */\n height?: string | number;\n /**\n * 진행률을 모를 때의 불확정(indeterminate) 모드. 전체 폭에 흐르는 애니메이션을 보이고 `aria-valuenow`를 생략한다\n * @default false\n */\n isProgressing?: boolean;\n /** 트랙 DOM ref */\n ref?: Ref<HTMLDivElement>;\n}\n\nconst semanticColorVars = {\n success: { fill: \"var(--aivex-bg-success-glow)\" },\n warning: { fill: \"var(--aivex-bg-warning-glow)\" },\n info: { fill: \"var(--aivex-bg-info-glow)\" },\n danger: { fill: \"var(--aivex-bg-danger-glow)\" },\n} as const;\n\nconst toCssSize = (value: string | number) => (typeof value === \"number\" ? `${value}px` : value);\n\nconst toPercentage = (current: number, total: number) => {\n if (!Number.isFinite(current) || !Number.isFinite(total) || total <= 0) return 0;\n return Math.min(100, Math.max(0, (current / total) * 100));\n};\n\n/**\n * `current / total` 비율을 가로 막대로 보여주는 진행 표시줄.\n * 업로드·처리 진행률처럼 수치가 있을 때 쓰고, 끝을 모르는 대기는 `isProgressing` 또는 `Spinner`를 쓴다.\n * `role=\"progressbar\"`와 aria-value*를 자동으로 붙인다. 무엇의 진행인지 `aria-label`을 함께 준다.\n *\n * @example\n * ```tsx\n * import { ProgressBar } from \"@aivex/ui\";\n *\n * <ProgressBar current={65} total={100} color=\"info\" height={4} aria-label=\"업로드 진행률\" />\n * ```\n */\nfunction ProgressBar({\n className,\n current,\n total,\n color = \"success\",\n width = \"100%\",\n height = 6,\n isProgressing = false,\n ref,\n style,\n ...props\n}: ProgressBarProps) {\n const percentageValue = toPercentage(current, total);\n const widthValue = toCssSize(width);\n const heightValue = toCssSize(height);\n const colors = semanticColorVars[color];\n\n const fillStyle: CSSProperties = isProgressing\n ? {\n width: \"100%\",\n backgroundImage: `linear-gradient(90deg, ${colors.fill} 0%, color-mix(in srgb, ${colors.fill}, #fff 35%) 50%, ${colors.fill} 100%)`,\n }\n : {\n width: `${percentageValue}%`,\n backgroundColor: colors.fill,\n };\n\n return (\n <div\n ref={ref}\n role=\"progressbar\"\n aria-valuemin={0}\n aria-valuemax={total}\n aria-valuenow={isProgressing ? undefined : current}\n className={cn(\n \"aivex:relative aivex:overflow-hidden aivex:rounded-full aivex:bg-bg-tertiary\",\n className,\n )}\n style={{\n width: widthValue,\n height: heightValue,\n ...style,\n }}\n {...props}\n >\n <div\n className={cn(\n \"aivex:absolute aivex:left-0 aivex:top-0 aivex:h-full aivex:rounded-full aivex:transition-all aivex:duration-300\",\n isProgressing && \"aivex-progressbar-indeterminate\",\n )}\n style={fillStyle}\n />\n </div>\n );\n}\n\nexport { ProgressBar };\n"],"mappings":"mIAmCA,IAAM,EAAoB,CACxB,QAAS,CAAE,KAAM,+BAAgC,CACjD,QAAS,CAAE,KAAM,+BAAgC,CACjD,KAAM,CAAE,KAAM,4BAA6B,CAC3C,OAAQ,CAAE,KAAM,8BAA+B,CAChD,CAEK,EAAa,GAA4B,OAAO,GAAU,SAAW,GAAG,EAAM,IAAM,EAEpF,GAAgB,EAAiB,IACjC,CAAC,OAAO,SAAS,EAAQ,EAAI,CAAC,OAAO,SAAS,EAAM,EAAI,GAAS,EAAU,EACxE,KAAK,IAAI,IAAK,KAAK,IAAI,EAAI,EAAU,EAAS,IAAI,CAAC,CAe5D,SAAS,EAAY,CACnB,YACA,UACA,QACA,QAAQ,UACR,QAAQ,OACR,SAAS,EACT,gBAAgB,GAChB,MACA,QACA,GAAG,GACgB,CACnB,IAAM,EAAkB,EAAa,EAAS,EAAM,CAC9C,EAAa,EAAU,EAAM,CAC7B,EAAc,EAAU,EAAO,CAC/B,EAAS,EAAkB,GAE3B,EAA2B,EAC7B,CACE,MAAO,OACP,gBAAiB,0BAA0B,EAAO,KAAK,0BAA0B,EAAO,KAAK,mBAAmB,EAAO,KAAK,QAC7H,CACD,CACE,MAAO,GAAG,EAAgB,GAC1B,gBAAiB,EAAO,KACzB,CAEL,OACE,EAAA,EAAA,KAAC,MAAD,CACO,MACL,KAAK,cACL,gBAAe,EACf,gBAAe,EACf,gBAAe,EAAgB,IAAA,GAAY,EAC3C,UAAW,EAAA,GACT,+EACA,EACD,CACD,MAAO,CACL,MAAO,EACP,OAAQ,EACR,GAAG,EACJ,CACD,GAAI,YAEJ,EAAA,EAAA,KAAC,MAAD,CACE,UAAW,EAAA,GACT,kHACA,GAAiB,kCAClB,CACD,MAAO,EACP,CAAA,CACE,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { HTMLAttributes, Ref } from "react";
|
|
2
|
+
/** 진행 막대 채움 색(시맨틱 glow 토큰). */
|
|
3
|
+
export type ProgressBarColor = "success" | "warning" | "info" | "danger";
|
|
4
|
+
export interface ProgressBarProps extends Omit<HTMLAttributes<HTMLDivElement>, "color"> {
|
|
5
|
+
/** 현재 진행량. `current / total` 비율로 채우며 0~100%로 잘린다 */
|
|
6
|
+
current: number;
|
|
7
|
+
/** 전체량. 0 이하이거나 유한수가 아니면 0%로 표시 */
|
|
8
|
+
total: number;
|
|
9
|
+
/**
|
|
10
|
+
* 채움 색
|
|
11
|
+
* @default "success"
|
|
12
|
+
*/
|
|
13
|
+
color?: ProgressBarColor;
|
|
14
|
+
/**
|
|
15
|
+
* 막대 폭. 숫자는 px
|
|
16
|
+
* @default "100%"
|
|
17
|
+
*/
|
|
18
|
+
width?: string | number;
|
|
19
|
+
/**
|
|
20
|
+
* 막대 높이. 숫자는 px
|
|
21
|
+
* @default 6
|
|
22
|
+
*/
|
|
23
|
+
height?: string | number;
|
|
24
|
+
/**
|
|
25
|
+
* 진행률을 모를 때의 불확정(indeterminate) 모드. 전체 폭에 흐르는 애니메이션을 보이고 `aria-valuenow`를 생략한다
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
isProgressing?: boolean;
|
|
29
|
+
/** 트랙 DOM ref */
|
|
30
|
+
ref?: Ref<HTMLDivElement>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* `current / total` 비율을 가로 막대로 보여주는 진행 표시줄.
|
|
34
|
+
* 업로드·처리 진행률처럼 수치가 있을 때 쓰고, 끝을 모르는 대기는 `isProgressing` 또는 `Spinner`를 쓴다.
|
|
35
|
+
* `role="progressbar"`와 aria-value*를 자동으로 붙인다. 무엇의 진행인지 `aria-label`을 함께 준다.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```tsx
|
|
39
|
+
* import { ProgressBar } from "@aivex/ui";
|
|
40
|
+
*
|
|
41
|
+
* <ProgressBar current={65} total={100} color="info" height={4} aria-label="업로드 진행률" />
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
declare function ProgressBar({ className, current, total, color, width, height, isProgressing, ref, style, ...props }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export { ProgressBar };
|
|
@@ -1,13 +1,45 @@
|
|
|
1
1
|
import type { HTMLAttributes, Ref } from "react";
|
|
2
|
+
/** 진행 막대 채움 색(시맨틱 glow 토큰). */
|
|
2
3
|
export type ProgressBarColor = "success" | "warning" | "info" | "danger";
|
|
3
4
|
export interface ProgressBarProps extends Omit<HTMLAttributes<HTMLDivElement>, "color"> {
|
|
5
|
+
/** 현재 진행량. `current / total` 비율로 채우며 0~100%로 잘린다 */
|
|
4
6
|
current: number;
|
|
7
|
+
/** 전체량. 0 이하이거나 유한수가 아니면 0%로 표시 */
|
|
5
8
|
total: number;
|
|
9
|
+
/**
|
|
10
|
+
* 채움 색
|
|
11
|
+
* @default "success"
|
|
12
|
+
*/
|
|
6
13
|
color?: ProgressBarColor;
|
|
14
|
+
/**
|
|
15
|
+
* 막대 폭. 숫자는 px
|
|
16
|
+
* @default "100%"
|
|
17
|
+
*/
|
|
7
18
|
width?: string | number;
|
|
19
|
+
/**
|
|
20
|
+
* 막대 높이. 숫자는 px
|
|
21
|
+
* @default 6
|
|
22
|
+
*/
|
|
8
23
|
height?: string | number;
|
|
24
|
+
/**
|
|
25
|
+
* 진행률을 모를 때의 불확정(indeterminate) 모드. 전체 폭에 흐르는 애니메이션을 보이고 `aria-valuenow`를 생략한다
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
9
28
|
isProgressing?: boolean;
|
|
29
|
+
/** 트랙 DOM ref */
|
|
10
30
|
ref?: Ref<HTMLDivElement>;
|
|
11
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* `current / total` 비율을 가로 막대로 보여주는 진행 표시줄.
|
|
34
|
+
* 업로드·처리 진행률처럼 수치가 있을 때 쓰고, 끝을 모르는 대기는 `isProgressing` 또는 `Spinner`를 쓴다.
|
|
35
|
+
* `role="progressbar"`와 aria-value*를 자동으로 붙인다. 무엇의 진행인지 `aria-label`을 함께 준다.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```tsx
|
|
39
|
+
* import { ProgressBar } from "@aivex/ui";
|
|
40
|
+
*
|
|
41
|
+
* <ProgressBar current={65} total={100} color="info" height={4} aria-label="업로드 진행률" />
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
12
44
|
declare function ProgressBar({ className, current, total, color, width, height, isProgressing, ref, style, ...props }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
13
45
|
export { ProgressBar };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressBar.js","names":[],"sources":["../../../src/components/ProgressBar/ProgressBar.tsx"],"sourcesContent":["import type { CSSProperties, HTMLAttributes, Ref } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\nexport type ProgressBarColor = \"success\" | \"warning\" | \"info\" | \"danger\";\n\nexport interface ProgressBarProps extends Omit<HTMLAttributes<HTMLDivElement>, \"color\"> {\n current: number;\n total: number;\n color?: ProgressBarColor;\n width?: string | number;\n height?: string | number;\n isProgressing?: boolean;\n ref?: Ref<HTMLDivElement>;\n}\n\nconst semanticColorVars = {\n success: { fill: \"var(--aivex-bg-success-glow)\" },\n warning: { fill: \"var(--aivex-bg-warning-glow)\" },\n info: { fill: \"var(--aivex-bg-info-glow)\" },\n danger: { fill: \"var(--aivex-bg-danger-glow)\" },\n} as const;\n\nconst toCssSize = (value: string | number) => (typeof value === \"number\" ? `${value}px` : value);\n\nconst toPercentage = (current: number, total: number) => {\n if (!Number.isFinite(current) || !Number.isFinite(total) || total <= 0) return 0;\n return Math.min(100, Math.max(0, (current / total) * 100));\n};\n\nfunction ProgressBar({\n className,\n current,\n total,\n color = \"success\",\n width = \"100%\",\n height = 6,\n isProgressing = false,\n ref,\n style,\n ...props\n}: ProgressBarProps) {\n const percentageValue = toPercentage(current, total);\n const widthValue = toCssSize(width);\n const heightValue = toCssSize(height);\n const colors = semanticColorVars[color];\n\n const fillStyle: CSSProperties = isProgressing\n ? {\n width: \"100%\",\n backgroundImage: `linear-gradient(90deg, ${colors.fill} 0%, color-mix(in srgb, ${colors.fill}, #fff 35%) 50%, ${colors.fill} 100%)`,\n }\n : {\n width: `${percentageValue}%`,\n backgroundColor: colors.fill,\n };\n\n return (\n <div\n ref={ref}\n role=\"progressbar\"\n aria-valuemin={0}\n aria-valuemax={total}\n aria-valuenow={isProgressing ? undefined : current}\n className={cn(\n \"aivex:relative aivex:overflow-hidden aivex:rounded-full aivex:bg-bg-tertiary\",\n className,\n )}\n style={{\n width: widthValue,\n height: heightValue,\n ...style,\n }}\n {...props}\n >\n <div\n className={cn(\n \"aivex:absolute aivex:left-0 aivex:top-0 aivex:h-full aivex:rounded-full aivex:transition-all aivex:duration-300\",\n isProgressing && \"aivex-progressbar-indeterminate\",\n )}\n style={fillStyle}\n />\n </div>\n );\n}\n\nexport { ProgressBar };\n"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"ProgressBar.js","names":[],"sources":["../../../src/components/ProgressBar/ProgressBar.tsx"],"sourcesContent":["import type { CSSProperties, HTMLAttributes, Ref } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\n/** 진행 막대 채움 색(시맨틱 glow 토큰). */\nexport type ProgressBarColor = \"success\" | \"warning\" | \"info\" | \"danger\";\n\nexport interface ProgressBarProps extends Omit<HTMLAttributes<HTMLDivElement>, \"color\"> {\n /** 현재 진행량. `current / total` 비율로 채우며 0~100%로 잘린다 */\n current: number;\n /** 전체량. 0 이하이거나 유한수가 아니면 0%로 표시 */\n total: number;\n /**\n * 채움 색\n * @default \"success\"\n */\n color?: ProgressBarColor;\n /**\n * 막대 폭. 숫자는 px\n * @default \"100%\"\n */\n width?: string | number;\n /**\n * 막대 높이. 숫자는 px\n * @default 6\n */\n height?: string | number;\n /**\n * 진행률을 모를 때의 불확정(indeterminate) 모드. 전체 폭에 흐르는 애니메이션을 보이고 `aria-valuenow`를 생략한다\n * @default false\n */\n isProgressing?: boolean;\n /** 트랙 DOM ref */\n ref?: Ref<HTMLDivElement>;\n}\n\nconst semanticColorVars = {\n success: { fill: \"var(--aivex-bg-success-glow)\" },\n warning: { fill: \"var(--aivex-bg-warning-glow)\" },\n info: { fill: \"var(--aivex-bg-info-glow)\" },\n danger: { fill: \"var(--aivex-bg-danger-glow)\" },\n} as const;\n\nconst toCssSize = (value: string | number) => (typeof value === \"number\" ? `${value}px` : value);\n\nconst toPercentage = (current: number, total: number) => {\n if (!Number.isFinite(current) || !Number.isFinite(total) || total <= 0) return 0;\n return Math.min(100, Math.max(0, (current / total) * 100));\n};\n\n/**\n * `current / total` 비율을 가로 막대로 보여주는 진행 표시줄.\n * 업로드·처리 진행률처럼 수치가 있을 때 쓰고, 끝을 모르는 대기는 `isProgressing` 또는 `Spinner`를 쓴다.\n * `role=\"progressbar\"`와 aria-value*를 자동으로 붙인다. 무엇의 진행인지 `aria-label`을 함께 준다.\n *\n * @example\n * ```tsx\n * import { ProgressBar } from \"@aivex/ui\";\n *\n * <ProgressBar current={65} total={100} color=\"info\" height={4} aria-label=\"업로드 진행률\" />\n * ```\n */\nfunction ProgressBar({\n className,\n current,\n total,\n color = \"success\",\n width = \"100%\",\n height = 6,\n isProgressing = false,\n ref,\n style,\n ...props\n}: ProgressBarProps) {\n const percentageValue = toPercentage(current, total);\n const widthValue = toCssSize(width);\n const heightValue = toCssSize(height);\n const colors = semanticColorVars[color];\n\n const fillStyle: CSSProperties = isProgressing\n ? {\n width: \"100%\",\n backgroundImage: `linear-gradient(90deg, ${colors.fill} 0%, color-mix(in srgb, ${colors.fill}, #fff 35%) 50%, ${colors.fill} 100%)`,\n }\n : {\n width: `${percentageValue}%`,\n backgroundColor: colors.fill,\n };\n\n return (\n <div\n ref={ref}\n role=\"progressbar\"\n aria-valuemin={0}\n aria-valuemax={total}\n aria-valuenow={isProgressing ? undefined : current}\n className={cn(\n \"aivex:relative aivex:overflow-hidden aivex:rounded-full aivex:bg-bg-tertiary\",\n className,\n )}\n style={{\n width: widthValue,\n height: heightValue,\n ...style,\n }}\n {...props}\n >\n <div\n className={cn(\n \"aivex:absolute aivex:left-0 aivex:top-0 aivex:h-full aivex:rounded-full aivex:transition-all aivex:duration-300\",\n isProgressing && \"aivex-progressbar-indeterminate\",\n )}\n style={fillStyle}\n />\n </div>\n );\n}\n\nexport { ProgressBar };\n"],"mappings":";;;;AAmCA,IAAM,IAAoB;CACxB,SAAS,EAAE,MAAM,gCAAgC;CACjD,SAAS,EAAE,MAAM,gCAAgC;CACjD,MAAM,EAAE,MAAM,6BAA6B;CAC3C,QAAQ,EAAE,MAAM,+BAA+B;CAChD,EAEK,KAAa,MAA4B,OAAO,KAAU,WAAW,GAAG,EAAM,MAAM,GAEpF,KAAgB,GAAiB,MACjC,CAAC,OAAO,SAAS,EAAQ,IAAI,CAAC,OAAO,SAAS,EAAM,IAAI,KAAS,IAAU,IACxE,KAAK,IAAI,KAAK,KAAK,IAAI,GAAI,IAAU,IAAS,IAAI,CAAC;AAe5D,SAAS,EAAY,EACnB,cACA,YACA,UACA,WAAQ,WACR,WAAQ,QACR,YAAS,GACT,mBAAgB,IAChB,QACA,UACA,GAAG,KACgB;CACnB,IAAM,IAAkB,EAAa,GAAS,EAAM,EAC9C,IAAa,EAAU,EAAM,EAC7B,IAAc,EAAU,EAAO,EAC/B,IAAS,EAAkB,IAE3B,IAA2B,IAC7B;EACE,OAAO;EACP,iBAAiB,0BAA0B,EAAO,KAAK,0BAA0B,EAAO,KAAK,mBAAmB,EAAO,KAAK;EAC7H,GACD;EACE,OAAO,GAAG,EAAgB;EAC1B,iBAAiB,EAAO;EACzB;AAEL,QACE,kBAAC,OAAD;EACO;EACL,MAAK;EACL,iBAAe;EACf,iBAAe;EACf,iBAAe,IAAgB,KAAA,IAAY;EAC3C,WAAW,EACT,gFACA,EACD;EACD,OAAO;GACL,OAAO;GACP,QAAQ;GACR,GAAG;GACJ;EACD,GAAI;YAEJ,kBAAC,OAAD;GACE,WAAW,EACT,mHACA,KAAiB,kCAClB;GACD,OAAO;GACP,CAAA;EACE,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { ProgressBarColor, ProgressBarProps } from "./ProgressBar";
|
|
2
|
-
export { ProgressBar } from "./ProgressBar";
|
|
1
|
+
export type { ProgressBarColor, ProgressBarProps } from "./ProgressBar.js";
|
|
2
|
+
export { ProgressBar } from "./ProgressBar.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.cjs","names":[],"sources":["../../../src/components/Radio/Radio.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport { type InputHTMLAttributes, type Ref, useId } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\nconst radioVariants = cva(\n \"aivex:peer aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-full aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:checked:border-transparent aivex:checked:bg-bg-brand\",\n {\n variants: {\n size: {\n sm: \"aivex:w-4 aivex:h-4\",\n md: \"aivex:w-[18px] aivex:h-[18px]\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n },\n);\n\nexport interface RadioProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, \"size\" | \"type\">,\n VariantProps<typeof radioVariants> {\n label?: string;\n ref?: Ref<HTMLInputElement>;\n}\n\nconst radioContainerSizeClass = {\n sm: \"aivex:w-5 aivex:h-5\",\n md: \"aivex:w-6 aivex:h-6\",\n};\n\nconst radioLabelSizeClass = {\n sm: \"aivex:h-5\",\n md: \"aivex:h-6\",\n};\n\nfunction Radio({\n className,\n label,\n size = \"md\",\n disabled,\n checked,\n id,\n ref,\n ...props\n}: RadioProps) {\n const resolvedSize = size ?? \"md\";\n const dotSize = {\n sm: \"aivex:w-2 aivex:h-2\",\n md: \"aivex:w-2.5 aivex:h-2.5\",\n }[resolvedSize];\n const generatedId = useId();\n const inputId = id ?? generatedId;\n\n return (\n <span\n className={cn(\n \"aivex:inline-flex aivex:items-center aivex:gap-md\",\n disabled && \"aivex:opacity-disable aivex:pointer-events-none\",\n )}\n >\n <span\n className={cn(\n \"aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group\",\n radioContainerSizeClass[resolvedSize],\n )}\n >\n <span className=\"aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity\" />\n <input\n ref={ref}\n id={inputId}\n type=\"radio\"\n disabled={disabled}\n checked={checked}\n className={cn(radioVariants({ size: resolvedSize }), className)}\n {...props}\n />\n <span\n className={cn(\n \"aivex:pointer-events-none aivex:absolute aivex:rounded-full aivex:bg-static-white aivex:opacity-0 aivex:transition-opacity aivex:peer-checked:opacity-100\",\n dotSize,\n )}\n />\n </span>\n {label && (\n <label\n htmlFor={inputId}\n className={cn(\n \"aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary\",\n disabled && \"aivex:cursor-not-allowed\",\n radioLabelSizeClass[resolvedSize],\n )}\n >\n {label}\n </label>\n )}\n </span>\n );\n}\n\nexport { Radio, radioVariants };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Radio.cjs","names":[],"sources":["../../../src/components/Radio/Radio.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport { type InputHTMLAttributes, type Ref, useId } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\n/** 라디오 원(input) 외형·크기 클래스를 만드는 cva 변형. */\nconst radioVariants = cva(\n \"aivex:peer aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-full aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:checked:border-transparent aivex:checked:bg-bg-brand\",\n {\n variants: {\n size: {\n sm: \"aivex:w-4 aivex:h-4\",\n md: \"aivex:w-[18px] aivex:h-[18px]\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n },\n);\n\nexport interface RadioProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, \"size\" | \"type\">,\n VariantProps<typeof radioVariants> {\n /** input 옆에 표시할 라벨(htmlFor로 연결). 없으면 aria-label이나 Field로 접근 가능한 이름을 제공한다 */\n label?: string;\n /** 내부 input 요소 ref */\n ref?: Ref<HTMLInputElement>;\n}\n\nconst radioContainerSizeClass = {\n sm: \"aivex:w-5 aivex:h-5\",\n md: \"aivex:w-6 aivex:h-6\",\n};\n\nconst radioLabelSizeClass = {\n sm: \"aivex:h-5\",\n md: \"aivex:h-6\",\n};\n\n/**\n * 네이티브 `input[type=\"radio\"]` 기반의 단일 라디오 버튼.\n * 별도 그룹 컴포넌트가 없으므로 같은 `name`을 준 Radio 여러 개로 그룹을 만들고, 값은 네이티브\n * `checked`/`defaultChecked` + `onChange`(e.target.value)로 다룬다(onValueChange 없음).\n * 2~5개 옵션을 항상 펼쳐 보이며 하나를 고를 때 쓴다. 옵션이 많으면 SelectBox, 보기 모드처럼\n * 즉시 전환되는 짧은 옵션이면 Segmented. 그룹에는 `role=\"radiogroup\"`과 이름(aria-label 등)을 붙인다.\n * size는 `\"sm\"`(16px)·`\"md\"`(18px, 기본).\n *\n * @example\n * ```tsx\n * import { Radio } from \"@aivex/ui\";\n *\n * <div role=\"radiogroup\" aria-label=\"정렬\">\n * <Radio name=\"sort\" value=\"latest\" label=\"최신순\" checked={sort === \"latest\"} onChange={(e) => setSort(e.target.value)} />\n * <Radio name=\"sort\" value=\"name\" label=\"이름순\" checked={sort === \"name\"} onChange={(e) => setSort(e.target.value)} />\n * </div>\n * ```\n */\nfunction Radio({\n className,\n label,\n size = \"md\",\n disabled,\n checked,\n id,\n ref,\n ...props\n}: RadioProps) {\n const resolvedSize = size ?? \"md\";\n const dotSize = {\n sm: \"aivex:w-2 aivex:h-2\",\n md: \"aivex:w-2.5 aivex:h-2.5\",\n }[resolvedSize];\n const generatedId = useId();\n const inputId = id ?? generatedId;\n\n return (\n <span\n className={cn(\n \"aivex:inline-flex aivex:items-center aivex:gap-md\",\n disabled && \"aivex:opacity-disable aivex:pointer-events-none\",\n )}\n >\n <span\n className={cn(\n \"aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group\",\n radioContainerSizeClass[resolvedSize],\n )}\n >\n <span className=\"aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity\" />\n <input\n ref={ref}\n id={inputId}\n type=\"radio\"\n disabled={disabled}\n checked={checked}\n className={cn(radioVariants({ size: resolvedSize }), className)}\n {...props}\n />\n <span\n className={cn(\n \"aivex:pointer-events-none aivex:absolute aivex:rounded-full aivex:bg-static-white aivex:opacity-0 aivex:transition-opacity aivex:peer-checked:opacity-100\",\n dotSize,\n )}\n />\n </span>\n {label && (\n <label\n htmlFor={inputId}\n className={cn(\n \"aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary\",\n disabled && \"aivex:cursor-not-allowed\",\n radioLabelSizeClass[resolvedSize],\n )}\n >\n {label}\n </label>\n )}\n </span>\n );\n}\n\nexport { Radio, radioVariants };\n"],"mappings":"4LAKA,IAAM,GAAA,EAAA,EAAA,KACJ,mQACA,CACE,SAAU,CACR,KAAM,CACJ,GAAI,sBACJ,GAAI,gCACL,CACF,CACD,gBAAiB,CACf,KAAM,KACP,CACF,CACF,CAWK,EAA0B,CAC9B,GAAI,sBACJ,GAAI,sBACL,CAEK,EAAsB,CAC1B,GAAI,YACJ,GAAI,YACL,CAoBD,SAAS,EAAM,CACb,YACA,QACA,OAAO,KACP,WACA,UACA,KACA,MACA,GAAG,GACU,CACb,IAAM,EAAe,GAAQ,KACvB,EAAU,CACd,GAAI,sBACJ,GAAI,0BACL,CAAC,GACI,GAAA,EAAA,EAAA,QAAqB,CACrB,EAAU,GAAM,EAEtB,OACE,EAAA,EAAA,MAAC,OAAD,CACE,UAAW,EAAA,GACT,oDACA,GAAY,kDACb,UAJH,EAME,EAAA,EAAA,MAAC,OAAD,CACE,UAAW,EAAA,GACT,sGACA,EAAwB,GACzB,UAJH,EAME,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,0MAA4M,CAAA,EAC5N,EAAA,EAAA,KAAC,QAAD,CACO,MACL,GAAI,EACJ,KAAK,QACK,WACD,UACT,UAAW,EAAA,GAAG,EAAc,CAAE,KAAM,EAAc,CAAC,CAAE,EAAU,CAC/D,GAAI,EACJ,CAAA,EACF,EAAA,EAAA,KAAC,OAAD,CACE,UAAW,EAAA,GACT,4JACA,EACD,CACD,CAAA,CACG,GACN,IACC,EAAA,EAAA,KAAC,QAAD,CACE,QAAS,EACT,UAAW,EAAA,GACT,0HACA,GAAY,2BACZ,EAAoB,GACrB,UAEA,EACK,CAAA,CAEL"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import { type InputHTMLAttributes, type Ref } from "react";
|
|
3
|
+
/** 라디오 원(input) 외형·크기 클래스를 만드는 cva 변형. */
|
|
4
|
+
declare const radioVariants: (props?: ({
|
|
5
|
+
size?: "md" | "sm" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type">, VariantProps<typeof radioVariants> {
|
|
8
|
+
/** input 옆에 표시할 라벨(htmlFor로 연결). 없으면 aria-label이나 Field로 접근 가능한 이름을 제공한다 */
|
|
9
|
+
label?: string;
|
|
10
|
+
/** 내부 input 요소 ref */
|
|
11
|
+
ref?: Ref<HTMLInputElement>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 네이티브 `input[type="radio"]` 기반의 단일 라디오 버튼.
|
|
15
|
+
* 별도 그룹 컴포넌트가 없으므로 같은 `name`을 준 Radio 여러 개로 그룹을 만들고, 값은 네이티브
|
|
16
|
+
* `checked`/`defaultChecked` + `onChange`(e.target.value)로 다룬다(onValueChange 없음).
|
|
17
|
+
* 2~5개 옵션을 항상 펼쳐 보이며 하나를 고를 때 쓴다. 옵션이 많으면 SelectBox, 보기 모드처럼
|
|
18
|
+
* 즉시 전환되는 짧은 옵션이면 Segmented. 그룹에는 `role="radiogroup"`과 이름(aria-label 등)을 붙인다.
|
|
19
|
+
* size는 `"sm"`(16px)·`"md"`(18px, 기본).
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* import { Radio } from "@aivex/ui";
|
|
24
|
+
*
|
|
25
|
+
* <div role="radiogroup" aria-label="정렬">
|
|
26
|
+
* <Radio name="sort" value="latest" label="최신순" checked={sort === "latest"} onChange={(e) => setSort(e.target.value)} />
|
|
27
|
+
* <Radio name="sort" value="name" label="이름순" checked={sort === "name"} onChange={(e) => setSort(e.target.value)} />
|
|
28
|
+
* </div>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare function Radio({ className, label, size, disabled, checked, id, ref, ...props }: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export { Radio, radioVariants };
|
|
@@ -1,11 +1,32 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
2
|
import { type InputHTMLAttributes, type Ref } from "react";
|
|
3
|
+
/** 라디오 원(input) 외형·크기 클래스를 만드는 cva 변형. */
|
|
3
4
|
declare const radioVariants: (props?: ({
|
|
4
5
|
size?: "md" | "sm" | null | undefined;
|
|
5
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
7
|
export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type">, VariantProps<typeof radioVariants> {
|
|
8
|
+
/** input 옆에 표시할 라벨(htmlFor로 연결). 없으면 aria-label이나 Field로 접근 가능한 이름을 제공한다 */
|
|
7
9
|
label?: string;
|
|
10
|
+
/** 내부 input 요소 ref */
|
|
8
11
|
ref?: Ref<HTMLInputElement>;
|
|
9
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* 네이티브 `input[type="radio"]` 기반의 단일 라디오 버튼.
|
|
15
|
+
* 별도 그룹 컴포넌트가 없으므로 같은 `name`을 준 Radio 여러 개로 그룹을 만들고, 값은 네이티브
|
|
16
|
+
* `checked`/`defaultChecked` + `onChange`(e.target.value)로 다룬다(onValueChange 없음).
|
|
17
|
+
* 2~5개 옵션을 항상 펼쳐 보이며 하나를 고를 때 쓴다. 옵션이 많으면 SelectBox, 보기 모드처럼
|
|
18
|
+
* 즉시 전환되는 짧은 옵션이면 Segmented. 그룹에는 `role="radiogroup"`과 이름(aria-label 등)을 붙인다.
|
|
19
|
+
* size는 `"sm"`(16px)·`"md"`(18px, 기본).
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* import { Radio } from "@aivex/ui";
|
|
24
|
+
*
|
|
25
|
+
* <div role="radiogroup" aria-label="정렬">
|
|
26
|
+
* <Radio name="sort" value="latest" label="최신순" checked={sort === "latest"} onChange={(e) => setSort(e.target.value)} />
|
|
27
|
+
* <Radio name="sort" value="name" label="이름순" checked={sort === "name"} onChange={(e) => setSort(e.target.value)} />
|
|
28
|
+
* </div>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
10
31
|
declare function Radio({ className, label, size, disabled, checked, id, ref, ...props }: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
11
32
|
export { Radio, radioVariants };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.js","names":[],"sources":["../../../src/components/Radio/Radio.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport { type InputHTMLAttributes, type Ref, useId } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\nconst radioVariants = cva(\n \"aivex:peer aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-full aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:checked:border-transparent aivex:checked:bg-bg-brand\",\n {\n variants: {\n size: {\n sm: \"aivex:w-4 aivex:h-4\",\n md: \"aivex:w-[18px] aivex:h-[18px]\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n },\n);\n\nexport interface RadioProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, \"size\" | \"type\">,\n VariantProps<typeof radioVariants> {\n label?: string;\n ref?: Ref<HTMLInputElement>;\n}\n\nconst radioContainerSizeClass = {\n sm: \"aivex:w-5 aivex:h-5\",\n md: \"aivex:w-6 aivex:h-6\",\n};\n\nconst radioLabelSizeClass = {\n sm: \"aivex:h-5\",\n md: \"aivex:h-6\",\n};\n\nfunction Radio({\n className,\n label,\n size = \"md\",\n disabled,\n checked,\n id,\n ref,\n ...props\n}: RadioProps) {\n const resolvedSize = size ?? \"md\";\n const dotSize = {\n sm: \"aivex:w-2 aivex:h-2\",\n md: \"aivex:w-2.5 aivex:h-2.5\",\n }[resolvedSize];\n const generatedId = useId();\n const inputId = id ?? generatedId;\n\n return (\n <span\n className={cn(\n \"aivex:inline-flex aivex:items-center aivex:gap-md\",\n disabled && \"aivex:opacity-disable aivex:pointer-events-none\",\n )}\n >\n <span\n className={cn(\n \"aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group\",\n radioContainerSizeClass[resolvedSize],\n )}\n >\n <span className=\"aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity\" />\n <input\n ref={ref}\n id={inputId}\n type=\"radio\"\n disabled={disabled}\n checked={checked}\n className={cn(radioVariants({ size: resolvedSize }), className)}\n {...props}\n />\n <span\n className={cn(\n \"aivex:pointer-events-none aivex:absolute aivex:rounded-full aivex:bg-static-white aivex:opacity-0 aivex:transition-opacity aivex:peer-checked:opacity-100\",\n dotSize,\n )}\n />\n </span>\n {label && (\n <label\n htmlFor={inputId}\n className={cn(\n \"aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary\",\n disabled && \"aivex:cursor-not-allowed\",\n radioLabelSizeClass[resolvedSize],\n )}\n >\n {label}\n </label>\n )}\n </span>\n );\n}\n\nexport { Radio, radioVariants };\n"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"Radio.js","names":[],"sources":["../../../src/components/Radio/Radio.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport { type InputHTMLAttributes, type Ref, useId } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\n/** 라디오 원(input) 외형·크기 클래스를 만드는 cva 변형. */\nconst radioVariants = cva(\n \"aivex:peer aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-full aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:checked:border-transparent aivex:checked:bg-bg-brand\",\n {\n variants: {\n size: {\n sm: \"aivex:w-4 aivex:h-4\",\n md: \"aivex:w-[18px] aivex:h-[18px]\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n },\n);\n\nexport interface RadioProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, \"size\" | \"type\">,\n VariantProps<typeof radioVariants> {\n /** input 옆에 표시할 라벨(htmlFor로 연결). 없으면 aria-label이나 Field로 접근 가능한 이름을 제공한다 */\n label?: string;\n /** 내부 input 요소 ref */\n ref?: Ref<HTMLInputElement>;\n}\n\nconst radioContainerSizeClass = {\n sm: \"aivex:w-5 aivex:h-5\",\n md: \"aivex:w-6 aivex:h-6\",\n};\n\nconst radioLabelSizeClass = {\n sm: \"aivex:h-5\",\n md: \"aivex:h-6\",\n};\n\n/**\n * 네이티브 `input[type=\"radio\"]` 기반의 단일 라디오 버튼.\n * 별도 그룹 컴포넌트가 없으므로 같은 `name`을 준 Radio 여러 개로 그룹을 만들고, 값은 네이티브\n * `checked`/`defaultChecked` + `onChange`(e.target.value)로 다룬다(onValueChange 없음).\n * 2~5개 옵션을 항상 펼쳐 보이며 하나를 고를 때 쓴다. 옵션이 많으면 SelectBox, 보기 모드처럼\n * 즉시 전환되는 짧은 옵션이면 Segmented. 그룹에는 `role=\"radiogroup\"`과 이름(aria-label 등)을 붙인다.\n * size는 `\"sm\"`(16px)·`\"md\"`(18px, 기본).\n *\n * @example\n * ```tsx\n * import { Radio } from \"@aivex/ui\";\n *\n * <div role=\"radiogroup\" aria-label=\"정렬\">\n * <Radio name=\"sort\" value=\"latest\" label=\"최신순\" checked={sort === \"latest\"} onChange={(e) => setSort(e.target.value)} />\n * <Radio name=\"sort\" value=\"name\" label=\"이름순\" checked={sort === \"name\"} onChange={(e) => setSort(e.target.value)} />\n * </div>\n * ```\n */\nfunction Radio({\n className,\n label,\n size = \"md\",\n disabled,\n checked,\n id,\n ref,\n ...props\n}: RadioProps) {\n const resolvedSize = size ?? \"md\";\n const dotSize = {\n sm: \"aivex:w-2 aivex:h-2\",\n md: \"aivex:w-2.5 aivex:h-2.5\",\n }[resolvedSize];\n const generatedId = useId();\n const inputId = id ?? generatedId;\n\n return (\n <span\n className={cn(\n \"aivex:inline-flex aivex:items-center aivex:gap-md\",\n disabled && \"aivex:opacity-disable aivex:pointer-events-none\",\n )}\n >\n <span\n className={cn(\n \"aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group\",\n radioContainerSizeClass[resolvedSize],\n )}\n >\n <span className=\"aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity\" />\n <input\n ref={ref}\n id={inputId}\n type=\"radio\"\n disabled={disabled}\n checked={checked}\n className={cn(radioVariants({ size: resolvedSize }), className)}\n {...props}\n />\n <span\n className={cn(\n \"aivex:pointer-events-none aivex:absolute aivex:rounded-full aivex:bg-static-white aivex:opacity-0 aivex:transition-opacity aivex:peer-checked:opacity-100\",\n dotSize,\n )}\n />\n </span>\n {label && (\n <label\n htmlFor={inputId}\n className={cn(\n \"aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary\",\n disabled && \"aivex:cursor-not-allowed\",\n radioLabelSizeClass[resolvedSize],\n )}\n >\n {label}\n </label>\n )}\n </span>\n );\n}\n\nexport { Radio, radioVariants };\n"],"mappings":";;;;;;AAKA,IAAM,IAAgB,EACpB,oQACA;CACE,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACD,iBAAiB,EACf,MAAM,MACP;CACF,CACF,EAWK,IAA0B;CAC9B,IAAI;CACJ,IAAI;CACL,EAEK,IAAsB;CAC1B,IAAI;CACJ,IAAI;CACL;AAoBD,SAAS,EAAM,EACb,cACA,UACA,UAAO,MACP,aACA,YACA,OACA,QACA,GAAG,KACU;CACb,IAAM,IAAe,KAAQ,MACvB,IAAU;EACd,IAAI;EACJ,IAAI;EACL,CAAC,IACI,IAAc,GAAO,EACrB,IAAU,KAAM;AAEtB,QACE,kBAAC,QAAD;EACE,WAAW,EACT,qDACA,KAAY,kDACb;YAJH,CAME,kBAAC,QAAD;GACE,WAAW,EACT,uGACA,EAAwB,GACzB;aAJH;IAME,kBAAC,QAAD,EAAM,WAAU,2MAA4M,CAAA;IAC5N,kBAAC,SAAD;KACO;KACL,IAAI;KACJ,MAAK;KACK;KACD;KACT,WAAW,EAAG,EAAc,EAAE,MAAM,GAAc,CAAC,EAAE,EAAU;KAC/D,GAAI;KACJ,CAAA;IACF,kBAAC,QAAD,EACE,WAAW,EACT,6JACA,EACD,EACD,CAAA;IACG;MACN,KACC,kBAAC,SAAD;GACE,SAAS;GACT,WAAW,EACT,2HACA,KAAY,4BACZ,EAAoB,GACrB;aAEA;GACK,CAAA,CAEL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { RadioProps } from "./Radio";
|
|
2
|
-
export { Radio, radioVariants } from "./Radio";
|
|
1
|
+
export type { RadioProps } from "./Radio.js";
|
|
2
|
+
export { Radio, radioVariants } from "./Radio.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollArea.cjs","names":[],"sources":["../../../src/components/ScrollArea/ScrollArea.tsx"],"sourcesContent":["import * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\";\nimport type { ComponentProps, Ref, UIEventHandler } from \"react\";\nimport { InteractionLayer } from \"@/components/InteractionLayer\";\nimport { cn } from \"@/utils/cn\";\n\ntype ScrollAreaScrollbars = \"both\" | \"horizontal\" | \"vertical\";\ntype ScrollAreaProps = ComponentProps<typeof ScrollAreaPrimitive.Root> & {\n /** 세로 가장자리 페이드 — 가려진 방향만 40px, 넘치지 않으면 없음. 세로 전용 */\n edgeFade?: boolean;\n onViewportScroll?: UIEventHandler<HTMLDivElement>;\n scrollbars?: ScrollAreaScrollbars;\n /** 세로 스크롤바에 덧붙일 클래스 — 고정 헤더 아래에서 시작시킬 때 쓴다 */\n verticalScrollbarClassName?: string;\n viewportClassName?: string;\n viewportRef?: Ref<HTMLDivElement>;\n};\ntype ScrollBarProps = ComponentProps<typeof ScrollAreaPrimitive.Scrollbar>;\n\nfunction ScrollArea({\n className,\n children,\n edgeFade,\n onViewportScroll,\n ref,\n scrollbars = \"vertical\",\n type = \"hover\",\n verticalScrollbarClassName,\n viewportClassName,\n viewportRef,\n ...props\n}: ScrollAreaProps) {\n const showVerticalScrollbar = scrollbars === \"vertical\" || scrollbars === \"both\";\n const showHorizontalScrollbar = scrollbars === \"horizontal\" || scrollbars === \"both\";\n\n return (\n <ScrollAreaPrimitive.Root\n ref={ref}\n className={cn(\"aivex:relative aivex:overflow-hidden aivex:scroll-sync-root\", className)}\n type={type}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport\n ref={viewportRef}\n className={cn(\n // 래퍼는 grid여야 한다: block + min-h-full은 래퍼만 채울 뿐 자식의 % 높이가 해석되지 않아\n // 빈 상태 중앙정렬이 깨진다. grid는 자식을 stretch로 채우고, min-h-full이라 스크롤바 갱신도 유지된다.\n \"aivex:h-full aivex:w-full aivex:rounded-[inherit] aivex:[&>div]:!grid aivex:[&>div]:min-h-full aivex:scroll-sync-viewport\",\n edgeFade && \"aivex:scroll-fade-y\",\n viewportClassName,\n )}\n onScroll={onViewportScroll}\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n {showVerticalScrollbar ? <ScrollBar className={verticalScrollbarClassName} /> : null}\n {showHorizontalScrollbar ? <ScrollBar orientation=\"horizontal\" /> : null}\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n );\n}\n\nfunction ScrollBar({ className, orientation = \"vertical\", ref, ...props }: ScrollBarProps) {\n return (\n <ScrollAreaPrimitive.Scrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n \"aivex:z-20 aivex:flex aivex:touch-none aivex:select-none aivex:rounded-full aivex:p-2xs aivex:transition-colors aivex:scroll-sync-scrollbar\",\n orientation === \"vertical\" && \"aivex:h-full aivex:w-2.5\",\n orientation === \"horizontal\" && \"aivex:h-2.5 aivex:flex-col\",\n className,\n )}\n {...props}\n >\n <ScrollAreaPrimitive.Thumb\n className={cn(\n \"aivex:group aivex:relative aivex:flex-1 aivex:cursor-pointer aivex:overflow-hidden aivex:rounded-full aivex:bg-bg-primary\",\n // 막대 위치는 스크롤 타임라인이 맞춘다(styles.css scroll-sync).\n orientation === \"vertical\" ? \"aivex:scroll-sync-thumb-y\" : \"aivex:scroll-sync-thumb-x\",\n )}\n >\n <span className=\"aivex:absolute aivex:inset-0 aivex:bg-icon-tertiary aivex:opacity-50\" />\n <InteractionLayer variant=\"strong\" />\n </ScrollAreaPrimitive.Thumb>\n </ScrollAreaPrimitive.Scrollbar>\n );\n}\n\nexport type { ScrollAreaProps, ScrollAreaScrollbars, ScrollBarProps };\nexport { ScrollArea, ScrollBar };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScrollArea.cjs","names":[],"sources":["../../../src/components/ScrollArea/ScrollArea.tsx"],"sourcesContent":["import * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\";\nimport type { ComponentProps, Ref, UIEventHandler } from \"react\";\nimport { InteractionLayer } from \"@/components/InteractionLayer\";\nimport { cn } from \"@/utils/cn\";\n\n/** 표시할 스크롤바 방향. */\ntype ScrollAreaScrollbars = \"both\" | \"horizontal\" | \"vertical\";\ntype ScrollAreaProps = ComponentProps<typeof ScrollAreaPrimitive.Root> & {\n /** 세로 가장자리 페이드 — 가려진 방향만 40px, 넘치지 않으면 없음. 세로 전용 */\n edgeFade?: boolean;\n /** 실제 스크롤되는 viewport 요소의 scroll 이벤트 */\n onViewportScroll?: UIEventHandler<HTMLDivElement>;\n /**\n * 표시할 스크롤바 방향\n * @default \"vertical\"\n */\n scrollbars?: ScrollAreaScrollbars;\n /** 세로 스크롤바에 덧붙일 클래스 — 고정 헤더 아래에서 시작시킬 때 쓴다 */\n verticalScrollbarClassName?: string;\n /** viewport 요소에 덧붙일 클래스 */\n viewportClassName?: string;\n /** viewport 요소 ref — scrollTop 조작·IntersectionObserver root 등에 쓴다 */\n viewportRef?: Ref<HTMLDivElement>;\n};\n/** {@link ScrollBar} props (Radix ScrollArea.Scrollbar). */\ntype ScrollBarProps = ComponentProps<typeof ScrollAreaPrimitive.Scrollbar>;\n\n/**\n * 디자인 시스템 스타일 커스텀 스크롤바를 가진 스크롤 컨테이너(Radix ScrollArea 기반).\n * 높이(또는 폭)를 제한해야 스크롤된다. 기본은 세로 스크롤바만, 호버 시 표시(`type=\"hover\"`).\n * 가로 스크롤은 `scrollbars=\"horizontal\"`/`\"both\"`, 가려진 쪽 페이드는 `edgeFade`.\n *\n * @example\n * ```tsx\n * import { ScrollArea } from \"@aivex/ui\";\n *\n * <ScrollArea style={{ height: 256 }} edgeFade>\n * {items.map((item) => <div key={item.id}>{item.name}</div>)}\n * </ScrollArea>\n * ```\n */\nfunction ScrollArea({\n className,\n children,\n edgeFade,\n onViewportScroll,\n ref,\n scrollbars = \"vertical\",\n type = \"hover\",\n verticalScrollbarClassName,\n viewportClassName,\n viewportRef,\n ...props\n}: ScrollAreaProps) {\n const showVerticalScrollbar = scrollbars === \"vertical\" || scrollbars === \"both\";\n const showHorizontalScrollbar = scrollbars === \"horizontal\" || scrollbars === \"both\";\n\n return (\n <ScrollAreaPrimitive.Root\n ref={ref}\n className={cn(\"aivex:relative aivex:overflow-hidden aivex:scroll-sync-root\", className)}\n type={type}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport\n ref={viewportRef}\n className={cn(\n // 래퍼는 grid여야 한다: block + min-h-full은 래퍼만 채울 뿐 자식의 % 높이가 해석되지 않아\n // 빈 상태 중앙정렬이 깨진다. grid는 자식을 stretch로 채우고, min-h-full이라 스크롤바 갱신도 유지된다.\n \"aivex:h-full aivex:w-full aivex:rounded-[inherit] aivex:[&>div]:!grid aivex:[&>div]:min-h-full aivex:scroll-sync-viewport\",\n edgeFade && \"aivex:scroll-fade-y\",\n viewportClassName,\n )}\n onScroll={onViewportScroll}\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n {showVerticalScrollbar ? <ScrollBar className={verticalScrollbarClassName} /> : null}\n {showHorizontalScrollbar ? <ScrollBar orientation=\"horizontal\" /> : null}\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n );\n}\n\n/** ScrollArea 내부 스크롤바. Radix ScrollArea.Root를 직접 조합할 때만 쓴다(기본 `orientation=\"vertical\"`). */\nfunction ScrollBar({ className, orientation = \"vertical\", ref, ...props }: ScrollBarProps) {\n return (\n <ScrollAreaPrimitive.Scrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n \"aivex:z-20 aivex:flex aivex:touch-none aivex:select-none aivex:rounded-full aivex:p-2xs aivex:transition-colors aivex:scroll-sync-scrollbar\",\n orientation === \"vertical\" && \"aivex:h-full aivex:w-2.5\",\n orientation === \"horizontal\" && \"aivex:h-2.5 aivex:flex-col\",\n className,\n )}\n {...props}\n >\n <ScrollAreaPrimitive.Thumb\n className={cn(\n \"aivex:group aivex:relative aivex:flex-1 aivex:cursor-pointer aivex:overflow-hidden aivex:rounded-full aivex:bg-bg-primary\",\n // 막대 위치는 스크롤 타임라인이 맞춘다(styles.css scroll-sync).\n orientation === \"vertical\" ? \"aivex:scroll-sync-thumb-y\" : \"aivex:scroll-sync-thumb-x\",\n )}\n >\n <span className=\"aivex:absolute aivex:inset-0 aivex:bg-icon-tertiary aivex:opacity-50\" />\n <InteractionLayer variant=\"strong\" />\n </ScrollAreaPrimitive.Thumb>\n </ScrollAreaPrimitive.Scrollbar>\n );\n}\n\nexport type { ScrollAreaProps, ScrollAreaScrollbars, ScrollBarProps };\nexport { ScrollArea, ScrollBar };\n"],"mappings":"qPAyCA,SAAS,EAAW,CAClB,YACA,WACA,WACA,mBACA,MACA,aAAa,WACb,OAAO,QACP,6BACA,oBACA,cACA,GAAG,GACe,CAClB,IAAM,EAAwB,IAAe,YAAc,IAAe,OACpE,EAA0B,IAAe,cAAgB,IAAe,OAE9E,OACE,EAAA,EAAA,MAAC,EAAoB,KAArB,CACO,MACL,UAAW,EAAA,GAAG,8DAA+D,EAAU,CACjF,OACN,GAAI,WAJN,EAME,EAAA,EAAA,KAAC,EAAoB,SAArB,CACE,IAAK,EACL,UAAW,EAAA,GAGT,4HACA,GAAY,sBACZ,EACD,CACD,SAAU,EAET,WAC4B,CAAA,CAC9B,GAAwB,EAAA,EAAA,KAAC,EAAD,CAAW,UAAW,EAA8B,CAAA,CAAG,KAC/E,GAA0B,EAAA,EAAA,KAAC,EAAD,CAAW,YAAY,aAAe,CAAA,CAAG,MACpE,EAAA,EAAA,KAAC,EAAoB,OAArB,EAA8B,CAAA,CACL,GAK/B,SAAS,EAAU,CAAE,YAAW,cAAc,WAAY,MAAK,GAAG,GAAyB,CACzF,OACE,EAAA,EAAA,KAAC,EAAoB,UAArB,CACO,MACQ,cACb,UAAW,EAAA,GACT,8IACA,IAAgB,YAAc,2BAC9B,IAAgB,cAAgB,6BAChC,EACD,CACD,GAAI,YAEJ,EAAA,EAAA,MAAC,EAAoB,MAArB,CACE,UAAW,EAAA,GACT,4HAEA,IAAgB,WAAa,4BAA8B,4BAC5D,UALH,EAOE,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,uEAAyE,CAAA,EACzF,EAAA,EAAA,KAAC,EAAA,iBAAD,CAAkB,QAAQ,SAAW,CAAA,CACX,GACE,CAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
2
|
+
import type { ComponentProps, Ref, UIEventHandler } from "react";
|
|
3
|
+
/** 표시할 스크롤바 방향. */
|
|
4
|
+
type ScrollAreaScrollbars = "both" | "horizontal" | "vertical";
|
|
5
|
+
type ScrollAreaProps = ComponentProps<typeof ScrollAreaPrimitive.Root> & {
|
|
6
|
+
/** 세로 가장자리 페이드 — 가려진 방향만 40px, 넘치지 않으면 없음. 세로 전용 */
|
|
7
|
+
edgeFade?: boolean;
|
|
8
|
+
/** 실제 스크롤되는 viewport 요소의 scroll 이벤트 */
|
|
9
|
+
onViewportScroll?: UIEventHandler<HTMLDivElement>;
|
|
10
|
+
/**
|
|
11
|
+
* 표시할 스크롤바 방향
|
|
12
|
+
* @default "vertical"
|
|
13
|
+
*/
|
|
14
|
+
scrollbars?: ScrollAreaScrollbars;
|
|
15
|
+
/** 세로 스크롤바에 덧붙일 클래스 — 고정 헤더 아래에서 시작시킬 때 쓴다 */
|
|
16
|
+
verticalScrollbarClassName?: string;
|
|
17
|
+
/** viewport 요소에 덧붙일 클래스 */
|
|
18
|
+
viewportClassName?: string;
|
|
19
|
+
/** viewport 요소 ref — scrollTop 조작·IntersectionObserver root 등에 쓴다 */
|
|
20
|
+
viewportRef?: Ref<HTMLDivElement>;
|
|
21
|
+
};
|
|
22
|
+
/** {@link ScrollBar} props (Radix ScrollArea.Scrollbar). */
|
|
23
|
+
type ScrollBarProps = ComponentProps<typeof ScrollAreaPrimitive.Scrollbar>;
|
|
24
|
+
/**
|
|
25
|
+
* 디자인 시스템 스타일 커스텀 스크롤바를 가진 스크롤 컨테이너(Radix ScrollArea 기반).
|
|
26
|
+
* 높이(또는 폭)를 제한해야 스크롤된다. 기본은 세로 스크롤바만, 호버 시 표시(`type="hover"`).
|
|
27
|
+
* 가로 스크롤은 `scrollbars="horizontal"`/`"both"`, 가려진 쪽 페이드는 `edgeFade`.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* import { ScrollArea } from "@aivex/ui";
|
|
32
|
+
*
|
|
33
|
+
* <ScrollArea style={{ height: 256 }} edgeFade>
|
|
34
|
+
* {items.map((item) => <div key={item.id}>{item.name}</div>)}
|
|
35
|
+
* </ScrollArea>
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
declare function ScrollArea({ className, children, edgeFade, onViewportScroll, ref, scrollbars, type, verticalScrollbarClassName, viewportClassName, viewportRef, ...props }: ScrollAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
/** ScrollArea 내부 스크롤바. Radix ScrollArea.Root를 직접 조합할 때만 쓴다(기본 `orientation="vertical"`). */
|
|
40
|
+
declare function ScrollBar({ className, orientation, ref, ...props }: ScrollBarProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export type { ScrollAreaProps, ScrollAreaScrollbars, ScrollBarProps };
|
|
42
|
+
export { ScrollArea, ScrollBar };
|
|
@@ -1,18 +1,42 @@
|
|
|
1
1
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
2
2
|
import type { ComponentProps, Ref, UIEventHandler } from "react";
|
|
3
|
+
/** 표시할 스크롤바 방향. */
|
|
3
4
|
type ScrollAreaScrollbars = "both" | "horizontal" | "vertical";
|
|
4
5
|
type ScrollAreaProps = ComponentProps<typeof ScrollAreaPrimitive.Root> & {
|
|
5
6
|
/** 세로 가장자리 페이드 — 가려진 방향만 40px, 넘치지 않으면 없음. 세로 전용 */
|
|
6
7
|
edgeFade?: boolean;
|
|
8
|
+
/** 실제 스크롤되는 viewport 요소의 scroll 이벤트 */
|
|
7
9
|
onViewportScroll?: UIEventHandler<HTMLDivElement>;
|
|
10
|
+
/**
|
|
11
|
+
* 표시할 스크롤바 방향
|
|
12
|
+
* @default "vertical"
|
|
13
|
+
*/
|
|
8
14
|
scrollbars?: ScrollAreaScrollbars;
|
|
9
15
|
/** 세로 스크롤바에 덧붙일 클래스 — 고정 헤더 아래에서 시작시킬 때 쓴다 */
|
|
10
16
|
verticalScrollbarClassName?: string;
|
|
17
|
+
/** viewport 요소에 덧붙일 클래스 */
|
|
11
18
|
viewportClassName?: string;
|
|
19
|
+
/** viewport 요소 ref — scrollTop 조작·IntersectionObserver root 등에 쓴다 */
|
|
12
20
|
viewportRef?: Ref<HTMLDivElement>;
|
|
13
21
|
};
|
|
22
|
+
/** {@link ScrollBar} props (Radix ScrollArea.Scrollbar). */
|
|
14
23
|
type ScrollBarProps = ComponentProps<typeof ScrollAreaPrimitive.Scrollbar>;
|
|
24
|
+
/**
|
|
25
|
+
* 디자인 시스템 스타일 커스텀 스크롤바를 가진 스크롤 컨테이너(Radix ScrollArea 기반).
|
|
26
|
+
* 높이(또는 폭)를 제한해야 스크롤된다. 기본은 세로 스크롤바만, 호버 시 표시(`type="hover"`).
|
|
27
|
+
* 가로 스크롤은 `scrollbars="horizontal"`/`"both"`, 가려진 쪽 페이드는 `edgeFade`.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* import { ScrollArea } from "@aivex/ui";
|
|
32
|
+
*
|
|
33
|
+
* <ScrollArea style={{ height: 256 }} edgeFade>
|
|
34
|
+
* {items.map((item) => <div key={item.id}>{item.name}</div>)}
|
|
35
|
+
* </ScrollArea>
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
15
38
|
declare function ScrollArea({ className, children, edgeFade, onViewportScroll, ref, scrollbars, type, verticalScrollbarClassName, viewportClassName, viewportRef, ...props }: ScrollAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
/** ScrollArea 내부 스크롤바. Radix ScrollArea.Root를 직접 조합할 때만 쓴다(기본 `orientation="vertical"`). */
|
|
16
40
|
declare function ScrollBar({ className, orientation, ref, ...props }: ScrollBarProps): import("react/jsx-runtime").JSX.Element;
|
|
17
41
|
export type { ScrollAreaProps, ScrollAreaScrollbars, ScrollBarProps };
|
|
18
42
|
export { ScrollArea, ScrollBar };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollArea.js","names":[],"sources":["../../../src/components/ScrollArea/ScrollArea.tsx"],"sourcesContent":["import * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\";\nimport type { ComponentProps, Ref, UIEventHandler } from \"react\";\nimport { InteractionLayer } from \"@/components/InteractionLayer\";\nimport { cn } from \"@/utils/cn\";\n\ntype ScrollAreaScrollbars = \"both\" | \"horizontal\" | \"vertical\";\ntype ScrollAreaProps = ComponentProps<typeof ScrollAreaPrimitive.Root> & {\n /** 세로 가장자리 페이드 — 가려진 방향만 40px, 넘치지 않으면 없음. 세로 전용 */\n edgeFade?: boolean;\n onViewportScroll?: UIEventHandler<HTMLDivElement>;\n scrollbars?: ScrollAreaScrollbars;\n /** 세로 스크롤바에 덧붙일 클래스 — 고정 헤더 아래에서 시작시킬 때 쓴다 */\n verticalScrollbarClassName?: string;\n viewportClassName?: string;\n viewportRef?: Ref<HTMLDivElement>;\n};\ntype ScrollBarProps = ComponentProps<typeof ScrollAreaPrimitive.Scrollbar>;\n\nfunction ScrollArea({\n className,\n children,\n edgeFade,\n onViewportScroll,\n ref,\n scrollbars = \"vertical\",\n type = \"hover\",\n verticalScrollbarClassName,\n viewportClassName,\n viewportRef,\n ...props\n}: ScrollAreaProps) {\n const showVerticalScrollbar = scrollbars === \"vertical\" || scrollbars === \"both\";\n const showHorizontalScrollbar = scrollbars === \"horizontal\" || scrollbars === \"both\";\n\n return (\n <ScrollAreaPrimitive.Root\n ref={ref}\n className={cn(\"aivex:relative aivex:overflow-hidden aivex:scroll-sync-root\", className)}\n type={type}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport\n ref={viewportRef}\n className={cn(\n // 래퍼는 grid여야 한다: block + min-h-full은 래퍼만 채울 뿐 자식의 % 높이가 해석되지 않아\n // 빈 상태 중앙정렬이 깨진다. grid는 자식을 stretch로 채우고, min-h-full이라 스크롤바 갱신도 유지된다.\n \"aivex:h-full aivex:w-full aivex:rounded-[inherit] aivex:[&>div]:!grid aivex:[&>div]:min-h-full aivex:scroll-sync-viewport\",\n edgeFade && \"aivex:scroll-fade-y\",\n viewportClassName,\n )}\n onScroll={onViewportScroll}\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n {showVerticalScrollbar ? <ScrollBar className={verticalScrollbarClassName} /> : null}\n {showHorizontalScrollbar ? <ScrollBar orientation=\"horizontal\" /> : null}\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n );\n}\n\nfunction ScrollBar({ className, orientation = \"vertical\", ref, ...props }: ScrollBarProps) {\n return (\n <ScrollAreaPrimitive.Scrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n \"aivex:z-20 aivex:flex aivex:touch-none aivex:select-none aivex:rounded-full aivex:p-2xs aivex:transition-colors aivex:scroll-sync-scrollbar\",\n orientation === \"vertical\" && \"aivex:h-full aivex:w-2.5\",\n orientation === \"horizontal\" && \"aivex:h-2.5 aivex:flex-col\",\n className,\n )}\n {...props}\n >\n <ScrollAreaPrimitive.Thumb\n className={cn(\n \"aivex:group aivex:relative aivex:flex-1 aivex:cursor-pointer aivex:overflow-hidden aivex:rounded-full aivex:bg-bg-primary\",\n // 막대 위치는 스크롤 타임라인이 맞춘다(styles.css scroll-sync).\n orientation === \"vertical\" ? \"aivex:scroll-sync-thumb-y\" : \"aivex:scroll-sync-thumb-x\",\n )}\n >\n <span className=\"aivex:absolute aivex:inset-0 aivex:bg-icon-tertiary aivex:opacity-50\" />\n <InteractionLayer variant=\"strong\" />\n </ScrollAreaPrimitive.Thumb>\n </ScrollAreaPrimitive.Scrollbar>\n );\n}\n\nexport type { ScrollAreaProps, ScrollAreaScrollbars, ScrollBarProps };\nexport { ScrollArea, ScrollBar };\n"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"ScrollArea.js","names":[],"sources":["../../../src/components/ScrollArea/ScrollArea.tsx"],"sourcesContent":["import * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\";\nimport type { ComponentProps, Ref, UIEventHandler } from \"react\";\nimport { InteractionLayer } from \"@/components/InteractionLayer\";\nimport { cn } from \"@/utils/cn\";\n\n/** 표시할 스크롤바 방향. */\ntype ScrollAreaScrollbars = \"both\" | \"horizontal\" | \"vertical\";\ntype ScrollAreaProps = ComponentProps<typeof ScrollAreaPrimitive.Root> & {\n /** 세로 가장자리 페이드 — 가려진 방향만 40px, 넘치지 않으면 없음. 세로 전용 */\n edgeFade?: boolean;\n /** 실제 스크롤되는 viewport 요소의 scroll 이벤트 */\n onViewportScroll?: UIEventHandler<HTMLDivElement>;\n /**\n * 표시할 스크롤바 방향\n * @default \"vertical\"\n */\n scrollbars?: ScrollAreaScrollbars;\n /** 세로 스크롤바에 덧붙일 클래스 — 고정 헤더 아래에서 시작시킬 때 쓴다 */\n verticalScrollbarClassName?: string;\n /** viewport 요소에 덧붙일 클래스 */\n viewportClassName?: string;\n /** viewport 요소 ref — scrollTop 조작·IntersectionObserver root 등에 쓴다 */\n viewportRef?: Ref<HTMLDivElement>;\n};\n/** {@link ScrollBar} props (Radix ScrollArea.Scrollbar). */\ntype ScrollBarProps = ComponentProps<typeof ScrollAreaPrimitive.Scrollbar>;\n\n/**\n * 디자인 시스템 스타일 커스텀 스크롤바를 가진 스크롤 컨테이너(Radix ScrollArea 기반).\n * 높이(또는 폭)를 제한해야 스크롤된다. 기본은 세로 스크롤바만, 호버 시 표시(`type=\"hover\"`).\n * 가로 스크롤은 `scrollbars=\"horizontal\"`/`\"both\"`, 가려진 쪽 페이드는 `edgeFade`.\n *\n * @example\n * ```tsx\n * import { ScrollArea } from \"@aivex/ui\";\n *\n * <ScrollArea style={{ height: 256 }} edgeFade>\n * {items.map((item) => <div key={item.id}>{item.name}</div>)}\n * </ScrollArea>\n * ```\n */\nfunction ScrollArea({\n className,\n children,\n edgeFade,\n onViewportScroll,\n ref,\n scrollbars = \"vertical\",\n type = \"hover\",\n verticalScrollbarClassName,\n viewportClassName,\n viewportRef,\n ...props\n}: ScrollAreaProps) {\n const showVerticalScrollbar = scrollbars === \"vertical\" || scrollbars === \"both\";\n const showHorizontalScrollbar = scrollbars === \"horizontal\" || scrollbars === \"both\";\n\n return (\n <ScrollAreaPrimitive.Root\n ref={ref}\n className={cn(\"aivex:relative aivex:overflow-hidden aivex:scroll-sync-root\", className)}\n type={type}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport\n ref={viewportRef}\n className={cn(\n // 래퍼는 grid여야 한다: block + min-h-full은 래퍼만 채울 뿐 자식의 % 높이가 해석되지 않아\n // 빈 상태 중앙정렬이 깨진다. grid는 자식을 stretch로 채우고, min-h-full이라 스크롤바 갱신도 유지된다.\n \"aivex:h-full aivex:w-full aivex:rounded-[inherit] aivex:[&>div]:!grid aivex:[&>div]:min-h-full aivex:scroll-sync-viewport\",\n edgeFade && \"aivex:scroll-fade-y\",\n viewportClassName,\n )}\n onScroll={onViewportScroll}\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n {showVerticalScrollbar ? <ScrollBar className={verticalScrollbarClassName} /> : null}\n {showHorizontalScrollbar ? <ScrollBar orientation=\"horizontal\" /> : null}\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n );\n}\n\n/** ScrollArea 내부 스크롤바. Radix ScrollArea.Root를 직접 조합할 때만 쓴다(기본 `orientation=\"vertical\"`). */\nfunction ScrollBar({ className, orientation = \"vertical\", ref, ...props }: ScrollBarProps) {\n return (\n <ScrollAreaPrimitive.Scrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n \"aivex:z-20 aivex:flex aivex:touch-none aivex:select-none aivex:rounded-full aivex:p-2xs aivex:transition-colors aivex:scroll-sync-scrollbar\",\n orientation === \"vertical\" && \"aivex:h-full aivex:w-2.5\",\n orientation === \"horizontal\" && \"aivex:h-2.5 aivex:flex-col\",\n className,\n )}\n {...props}\n >\n <ScrollAreaPrimitive.Thumb\n className={cn(\n \"aivex:group aivex:relative aivex:flex-1 aivex:cursor-pointer aivex:overflow-hidden aivex:rounded-full aivex:bg-bg-primary\",\n // 막대 위치는 스크롤 타임라인이 맞춘다(styles.css scroll-sync).\n orientation === \"vertical\" ? \"aivex:scroll-sync-thumb-y\" : \"aivex:scroll-sync-thumb-x\",\n )}\n >\n <span className=\"aivex:absolute aivex:inset-0 aivex:bg-icon-tertiary aivex:opacity-50\" />\n <InteractionLayer variant=\"strong\" />\n </ScrollAreaPrimitive.Thumb>\n </ScrollAreaPrimitive.Scrollbar>\n );\n}\n\nexport type { ScrollAreaProps, ScrollAreaScrollbars, ScrollBarProps };\nexport { ScrollArea, ScrollBar };\n"],"mappings":";;;;;;AAyCA,SAAS,EAAW,EAClB,cACA,aACA,aACA,qBACA,QACA,gBAAa,YACb,UAAO,SACP,+BACA,sBACA,gBACA,GAAG,KACe;CAClB,IAAM,IAAwB,MAAe,cAAc,MAAe,QACpE,IAA0B,MAAe,gBAAgB,MAAe;AAE9E,QACE,kBAAC,EAAoB,MAArB;EACO;EACL,WAAW,EAAG,+DAA+D,EAAU;EACjF;EACN,GAAI;YAJN;GAME,kBAAC,EAAoB,UAArB;IACE,KAAK;IACL,WAAW,EAGT,6HACA,KAAY,uBACZ,EACD;IACD,UAAU;IAET;IAC4B,CAAA;GAC9B,IAAwB,kBAAC,GAAD,EAAW,WAAW,GAA8B,CAAA,GAAG;GAC/E,IAA0B,kBAAC,GAAD,EAAW,aAAY,cAAe,CAAA,GAAG;GACpE,kBAAC,EAAoB,QAArB,EAA8B,CAAA;GACL;;;AAK/B,SAAS,EAAU,EAAE,cAAW,iBAAc,YAAY,QAAK,GAAG,KAAyB;AACzF,QACE,kBAAC,EAAoB,WAArB;EACO;EACQ;EACb,WAAW,EACT,+IACA,MAAgB,cAAc,4BAC9B,MAAgB,gBAAgB,8BAChC,EACD;EACD,GAAI;YAEJ,kBAAC,EAAoB,OAArB;GACE,WAAW,EACT,6HAEA,MAAgB,aAAa,8BAA8B,4BAC5D;aALH,CAOE,kBAAC,QAAD,EAAM,WAAU,wEAAyE,CAAA,EACzF,kBAAC,GAAD,EAAkB,SAAQ,UAAW,CAAA,CACX;;EACE,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { ScrollAreaProps, ScrollAreaScrollbars, ScrollBarProps } from "./ScrollArea";
|
|
2
|
-
export { ScrollArea, ScrollBar } from "./ScrollArea";
|
|
1
|
+
export type { ScrollAreaProps, ScrollAreaScrollbars, ScrollBarProps } from "./ScrollArea.js";
|
|
2
|
+
export { ScrollArea, ScrollBar } from "./ScrollArea.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Segmented.cjs","names":[],"sources":["../../../src/components/Segmented/Segmented.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ToggleGroupItemProps, ToggleGroupSingleProps } from \"@radix-ui/react-toggle-group\";\nimport * as ToggleGroupPrimitive from \"@radix-ui/react-toggle-group\";\nimport { createContext, type ReactNode, type RefAttributes, useContext } from \"react\";\nimport { cn } from \"@/utils/cn\";\nimport { useControllableState } from \"@/utils/useControllableState\";\n\ntype SegmentedSize = \"sm\" | \"md\" | \"lg\" | \"icon-sm\" | \"icon-md\" | \"icon-lg\";\n\ninterface SegmentedContextValue {\n size: SegmentedSize;\n fullWidth?: boolean;\n}\n\nconst SegmentedContext = createContext<SegmentedContextValue>({\n size: \"md\",\n});\n\nconst segmentedRootSizeClass: Record<SegmentedSize, string> = {\n sm: \"aivex:h-7\",\n md: \"aivex:h-8\",\n lg: \"aivex:h-10 aivex:rounded-md\",\n \"icon-sm\": \"aivex:h-7\",\n \"icon-md\": \"aivex:h-8\",\n \"icon-lg\": \"aivex:h-10 aivex:rounded-md\",\n};\n\nexport interface SegmentedRootProps\n extends Omit<ToggleGroupSingleProps, \"onValueChange\" | \"type\">,\n RefAttributes<HTMLDivElement> {\n size?: SegmentedSize;\n onValueChange?: (value: string) => void;\n fullWidth?: boolean;\n children?: ReactNode;\n}\n\nfunction SegmentedRoot({\n className,\n size = \"md\",\n value,\n defaultValue,\n onValueChange,\n fullWidth,\n children,\n ref,\n ...props\n}: SegmentedRootProps) {\n const [currentValue, setValue] = useControllableState({\n value,\n defaultValue: defaultValue ?? value ?? \"\",\n onChange: onValueChange,\n });\n\n const handleValueChange = (nextValue: string) => {\n // 선택 해제(빈 값)는 무시해 항상 하나가 선택된 상태를 유지한다.\n if (!nextValue) {\n return;\n }\n setValue(nextValue);\n };\n\n return (\n <SegmentedContext.Provider value={{ size, fullWidth }}>\n <ToggleGroupPrimitive.Root\n ref={ref}\n type=\"single\"\n value={currentValue}\n onValueChange={handleValueChange}\n className={cn(\n \"aivex:inline-flex aivex:items-center aivex:justify-center aivex:rounded-sm aivex:bg-bg-tertiary aivex:p-2xs\",\n fullWidth ? \"aivex:w-full\" : \"aivex:w-fit\",\n segmentedRootSizeClass[size],\n className,\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Root>\n </SegmentedContext.Provider>\n );\n}\n\nconst segmentedItemSizeClass: Record<SegmentedSize, string> = {\n sm: \"aivex:h-6 aivex:px-md aivex:text-label-sm aivex:[&>svg]:size-4\",\n md: \"aivex:h-7 aivex:px-md aivex:text-label-lg aivex:[&>svg]:size-4\",\n lg: \"aivex:h-9 aivex:px-lg aivex:text-label-xl aivex:rounded-sm aivex:[&>svg]:size-5\",\n \"icon-sm\": \"aivex:h-6 aivex:w-6 aivex:px-xs aivex:[&>svg]:size-4\",\n \"icon-md\": \"aivex:h-7 aivex:w-7 aivex:px-xs aivex:[&>svg]:size-5\",\n \"icon-lg\": \"aivex:h-9 aivex:w-9 aivex:px-sm aivex:rounded-sm aivex:[&>svg]:size-6\",\n};\n\nexport type SegmentedItemProps = ToggleGroupItemProps &\n RefAttributes<HTMLButtonElement> & {\n children?: ReactNode;\n };\n\nfunction SegmentedItem({ className, children, ref, ...props }: SegmentedItemProps) {\n const { size, fullWidth } = useContext(SegmentedContext);\n\n return (\n <ToggleGroupPrimitive.Item\n ref={ref}\n className={cn(\n \"aivex:inline-flex aivex:min-w-px aivex:shrink-0 aivex:items-center aivex:justify-center aivex:gap-xs aivex:rounded-xs aivex:text-text-secondary aivex:transition-colors aivex:duration-150 aivex:cursor-pointer aivex:select-none aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:data-[state=on]:bg-bg-float aivex:data-[state=on]:text-text-primary aivex:data-[state=on]:shadow-sm aivex:hover:text-text-primary aivex:data-[disabled]:pointer-events-none aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:!text-text-disabled\",\n segmentedItemSizeClass[size],\n fullWidth && \"aivex:flex-1\",\n className,\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n );\n}\n\nexport { SegmentedItem, SegmentedRoot };\n"],"mappings":"kRAeA,IAAM,GAAA,EAAA,EAAA,eAAwD,CAC5D,KAAM,KACP,CAAC,CAEI,EAAwD,CAC5D,GAAI,YACJ,GAAI,YACJ,GAAI,8BACJ,UAAW,YACX,UAAW,YACX,UAAW,8BACZ,
|
|
1
|
+
{"version":3,"file":"Segmented.cjs","names":[],"sources":["../../../src/components/Segmented/Segmented.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ToggleGroupItemProps, ToggleGroupSingleProps } from \"@radix-ui/react-toggle-group\";\nimport * as ToggleGroupPrimitive from \"@radix-ui/react-toggle-group\";\nimport { createContext, type ReactNode, type RefAttributes, useContext } from \"react\";\nimport { cn } from \"@/utils/cn\";\nimport { useControllableState } from \"@/utils/useControllableState\";\n\ntype SegmentedSize = \"sm\" | \"md\" | \"lg\" | \"icon-sm\" | \"icon-md\" | \"icon-lg\";\n\ninterface SegmentedContextValue {\n size: SegmentedSize;\n fullWidth?: boolean;\n}\n\nconst SegmentedContext = createContext<SegmentedContextValue>({\n size: \"md\",\n});\n\nconst segmentedRootSizeClass: Record<SegmentedSize, string> = {\n sm: \"aivex:h-7\",\n md: \"aivex:h-8\",\n lg: \"aivex:h-10 aivex:rounded-md\",\n \"icon-sm\": \"aivex:h-7\",\n \"icon-md\": \"aivex:h-8\",\n \"icon-lg\": \"aivex:h-10 aivex:rounded-md\",\n};\n\nexport interface SegmentedRootProps\n extends Omit<ToggleGroupSingleProps, \"onValueChange\" | \"type\">,\n RefAttributes<HTMLDivElement> {\n /**\n * 크기. sm·md·lg는 텍스트 아이템(높이 28/32/40px), icon-sm·icon-md·icon-lg는 아이콘 전용 정사각 아이템\n * @default \"md\"\n */\n size?: SegmentedSize;\n /** 선택이 바뀔 때 새 값으로 호출된다. 선택 해제는 무시되어 항상 하나가 선택된 상태를 유지한다 */\n onValueChange?: (value: string) => void;\n /** true면 루트가 가로를 채우고 아이템이 균등 분할된다 */\n fullWidth?: boolean;\n /** SegmentedItem 목록 */\n children?: ReactNode;\n}\n\n/**\n * 짧은 옵션 중 하나를 즉시 전환하는 세그먼트 컨트롤(Radix ToggleGroup single 기반).\n * 보기 모드(목록/갤러리)·기간 같은 2~5개 옵션을 바로 바꿀 때 쓴다. 폼 제출 값 선택은 Radio,\n * 옵션이 많으면 SelectBox, 각각 독립적으로 켜고 끄는 칩은 ToggleButton, 아래 패널 콘텐츠 전환은 Tab.\n * 값은 string이며 제어는 value+onValueChange, 비제어는 defaultValue(항상 하나가 선택되므로 지정 권장).\n * 아이콘 전용 아이템에는 aria-label을 반드시 지정한다.\n *\n * @example\n * ```tsx\n * import { SegmentedItem, SegmentedRoot } from \"@aivex/ui\";\n *\n * <SegmentedRoot value={view} onValueChange={setView} size=\"md\" aria-label=\"보기 방식\">\n * <SegmentedItem value=\"list\">목록</SegmentedItem>\n * <SegmentedItem value=\"gallery\">갤러리</SegmentedItem>\n * </SegmentedRoot>\n * ```\n */\nfunction SegmentedRoot({\n className,\n size = \"md\",\n value,\n defaultValue,\n onValueChange,\n fullWidth,\n children,\n ref,\n ...props\n}: SegmentedRootProps) {\n const [currentValue, setValue] = useControllableState({\n value,\n defaultValue: defaultValue ?? value ?? \"\",\n onChange: onValueChange,\n });\n\n const handleValueChange = (nextValue: string) => {\n // 선택 해제(빈 값)는 무시해 항상 하나가 선택된 상태를 유지한다.\n if (!nextValue) {\n return;\n }\n setValue(nextValue);\n };\n\n return (\n <SegmentedContext.Provider value={{ size, fullWidth }}>\n <ToggleGroupPrimitive.Root\n ref={ref}\n type=\"single\"\n value={currentValue}\n onValueChange={handleValueChange}\n className={cn(\n \"aivex:inline-flex aivex:items-center aivex:justify-center aivex:rounded-sm aivex:bg-bg-tertiary aivex:p-2xs\",\n fullWidth ? \"aivex:w-full\" : \"aivex:w-fit\",\n segmentedRootSizeClass[size],\n className,\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Root>\n </SegmentedContext.Provider>\n );\n}\n\nconst segmentedItemSizeClass: Record<SegmentedSize, string> = {\n sm: \"aivex:h-6 aivex:px-md aivex:text-label-sm aivex:[&>svg]:size-4\",\n md: \"aivex:h-7 aivex:px-md aivex:text-label-lg aivex:[&>svg]:size-4\",\n lg: \"aivex:h-9 aivex:px-lg aivex:text-label-xl aivex:rounded-sm aivex:[&>svg]:size-5\",\n \"icon-sm\": \"aivex:h-6 aivex:w-6 aivex:px-xs aivex:[&>svg]:size-4\",\n \"icon-md\": \"aivex:h-7 aivex:w-7 aivex:px-xs aivex:[&>svg]:size-5\",\n \"icon-lg\": \"aivex:h-9 aivex:w-9 aivex:px-sm aivex:rounded-sm aivex:[&>svg]:size-6\",\n};\n\nexport type SegmentedItemProps = ToggleGroupItemProps &\n RefAttributes<HTMLButtonElement> & {\n /** 아이템 라벨 또는 아이콘 */\n children?: ReactNode;\n };\n\n/** SegmentedRoot 안의 개별 옵션. `value`는 필수이며 루트의 size·fullWidth를 따른다. */\nfunction SegmentedItem({ className, children, ref, ...props }: SegmentedItemProps) {\n const { size, fullWidth } = useContext(SegmentedContext);\n\n return (\n <ToggleGroupPrimitive.Item\n ref={ref}\n className={cn(\n \"aivex:inline-flex aivex:min-w-px aivex:shrink-0 aivex:items-center aivex:justify-center aivex:gap-xs aivex:rounded-xs aivex:text-text-secondary aivex:transition-colors aivex:duration-150 aivex:cursor-pointer aivex:select-none aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:data-[state=on]:bg-bg-float aivex:data-[state=on]:text-text-primary aivex:data-[state=on]:shadow-sm aivex:hover:text-text-primary aivex:data-[disabled]:pointer-events-none aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:!text-text-disabled\",\n segmentedItemSizeClass[size],\n fullWidth && \"aivex:flex-1\",\n className,\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n );\n}\n\nexport { SegmentedItem, SegmentedRoot };\n"],"mappings":"kRAeA,IAAM,GAAA,EAAA,EAAA,eAAwD,CAC5D,KAAM,KACP,CAAC,CAEI,EAAwD,CAC5D,GAAI,YACJ,GAAI,YACJ,GAAI,8BACJ,UAAW,YACX,UAAW,YACX,UAAW,8BACZ,CAmCD,SAAS,EAAc,CACrB,YACA,OAAO,KACP,QACA,eACA,gBACA,YACA,WACA,MACA,GAAG,GACkB,CACrB,GAAM,CAAC,EAAc,GAAY,EAAA,qBAAqB,CACpD,QACA,aAAc,GAAgB,GAAS,GACvC,SAAU,EACX,CAAC,CAUF,OACE,EAAA,EAAA,KAAC,EAAiB,SAAlB,CAA2B,MAAO,CAAE,OAAM,YAAW,WACnD,EAAA,EAAA,KAAC,EAAqB,KAAtB,CACO,MACL,KAAK,SACL,MAAO,EACP,cAdqB,GAAsB,CAE1C,GAGL,EAAS,EAAU,EAUf,UAAW,EAAA,GACT,8GACA,EAAY,eAAiB,cAC7B,EAAuB,GACvB,EACD,CACD,GAAI,EAEH,WACyB,CAAA,CACF,CAAA,CAIhC,IAAM,EAAwD,CAC5D,GAAI,iEACJ,GAAI,iEACJ,GAAI,kFACJ,UAAW,uDACX,UAAW,uDACX,UAAW,wEACZ,CASD,SAAS,EAAc,CAAE,YAAW,WAAU,MAAK,GAAG,GAA6B,CACjF,GAAM,CAAE,OAAM,cAAA,EAAA,EAAA,YAAyB,EAAiB,CAExD,OACE,EAAA,EAAA,KAAC,EAAqB,KAAtB,CACO,MACL,UAAW,EAAA,GACT,2kBACA,EAAuB,GACvB,GAAa,eACb,EACD,CACD,GAAI,EAEH,WACyB,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ToggleGroupItemProps, ToggleGroupSingleProps } from "@radix-ui/react-toggle-group";
|
|
2
|
+
import { type ReactNode, type RefAttributes } from "react";
|
|
3
|
+
type SegmentedSize = "sm" | "md" | "lg" | "icon-sm" | "icon-md" | "icon-lg";
|
|
4
|
+
export interface SegmentedRootProps extends Omit<ToggleGroupSingleProps, "onValueChange" | "type">, RefAttributes<HTMLDivElement> {
|
|
5
|
+
/**
|
|
6
|
+
* 크기. sm·md·lg는 텍스트 아이템(높이 28/32/40px), icon-sm·icon-md·icon-lg는 아이콘 전용 정사각 아이템
|
|
7
|
+
* @default "md"
|
|
8
|
+
*/
|
|
9
|
+
size?: SegmentedSize;
|
|
10
|
+
/** 선택이 바뀔 때 새 값으로 호출된다. 선택 해제는 무시되어 항상 하나가 선택된 상태를 유지한다 */
|
|
11
|
+
onValueChange?: (value: string) => void;
|
|
12
|
+
/** true면 루트가 가로를 채우고 아이템이 균등 분할된다 */
|
|
13
|
+
fullWidth?: boolean;
|
|
14
|
+
/** SegmentedItem 목록 */
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 짧은 옵션 중 하나를 즉시 전환하는 세그먼트 컨트롤(Radix ToggleGroup single 기반).
|
|
19
|
+
* 보기 모드(목록/갤러리)·기간 같은 2~5개 옵션을 바로 바꿀 때 쓴다. 폼 제출 값 선택은 Radio,
|
|
20
|
+
* 옵션이 많으면 SelectBox, 각각 독립적으로 켜고 끄는 칩은 ToggleButton, 아래 패널 콘텐츠 전환은 Tab.
|
|
21
|
+
* 값은 string이며 제어는 value+onValueChange, 비제어는 defaultValue(항상 하나가 선택되므로 지정 권장).
|
|
22
|
+
* 아이콘 전용 아이템에는 aria-label을 반드시 지정한다.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* import { SegmentedItem, SegmentedRoot } from "@aivex/ui";
|
|
27
|
+
*
|
|
28
|
+
* <SegmentedRoot value={view} onValueChange={setView} size="md" aria-label="보기 방식">
|
|
29
|
+
* <SegmentedItem value="list">목록</SegmentedItem>
|
|
30
|
+
* <SegmentedItem value="gallery">갤러리</SegmentedItem>
|
|
31
|
+
* </SegmentedRoot>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
declare function SegmentedRoot({ className, size, value, defaultValue, onValueChange, fullWidth, children, ref, ...props }: SegmentedRootProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export type SegmentedItemProps = ToggleGroupItemProps & RefAttributes<HTMLButtonElement> & {
|
|
36
|
+
/** 아이템 라벨 또는 아이콘 */
|
|
37
|
+
children?: ReactNode;
|
|
38
|
+
};
|
|
39
|
+
/** SegmentedRoot 안의 개별 옵션. `value`는 필수이며 루트의 size·fullWidth를 따른다. */
|
|
40
|
+
declare function SegmentedItem({ className, children, ref, ...props }: SegmentedItemProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export { SegmentedItem, SegmentedRoot };
|
|
@@ -2,14 +2,40 @@ import type { ToggleGroupItemProps, ToggleGroupSingleProps } from "@radix-ui/rea
|
|
|
2
2
|
import { type ReactNode, type RefAttributes } from "react";
|
|
3
3
|
type SegmentedSize = "sm" | "md" | "lg" | "icon-sm" | "icon-md" | "icon-lg";
|
|
4
4
|
export interface SegmentedRootProps extends Omit<ToggleGroupSingleProps, "onValueChange" | "type">, RefAttributes<HTMLDivElement> {
|
|
5
|
+
/**
|
|
6
|
+
* 크기. sm·md·lg는 텍스트 아이템(높이 28/32/40px), icon-sm·icon-md·icon-lg는 아이콘 전용 정사각 아이템
|
|
7
|
+
* @default "md"
|
|
8
|
+
*/
|
|
5
9
|
size?: SegmentedSize;
|
|
10
|
+
/** 선택이 바뀔 때 새 값으로 호출된다. 선택 해제는 무시되어 항상 하나가 선택된 상태를 유지한다 */
|
|
6
11
|
onValueChange?: (value: string) => void;
|
|
12
|
+
/** true면 루트가 가로를 채우고 아이템이 균등 분할된다 */
|
|
7
13
|
fullWidth?: boolean;
|
|
14
|
+
/** SegmentedItem 목록 */
|
|
8
15
|
children?: ReactNode;
|
|
9
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* 짧은 옵션 중 하나를 즉시 전환하는 세그먼트 컨트롤(Radix ToggleGroup single 기반).
|
|
19
|
+
* 보기 모드(목록/갤러리)·기간 같은 2~5개 옵션을 바로 바꿀 때 쓴다. 폼 제출 값 선택은 Radio,
|
|
20
|
+
* 옵션이 많으면 SelectBox, 각각 독립적으로 켜고 끄는 칩은 ToggleButton, 아래 패널 콘텐츠 전환은 Tab.
|
|
21
|
+
* 값은 string이며 제어는 value+onValueChange, 비제어는 defaultValue(항상 하나가 선택되므로 지정 권장).
|
|
22
|
+
* 아이콘 전용 아이템에는 aria-label을 반드시 지정한다.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* import { SegmentedItem, SegmentedRoot } from "@aivex/ui";
|
|
27
|
+
*
|
|
28
|
+
* <SegmentedRoot value={view} onValueChange={setView} size="md" aria-label="보기 방식">
|
|
29
|
+
* <SegmentedItem value="list">목록</SegmentedItem>
|
|
30
|
+
* <SegmentedItem value="gallery">갤러리</SegmentedItem>
|
|
31
|
+
* </SegmentedRoot>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
10
34
|
declare function SegmentedRoot({ className, size, value, defaultValue, onValueChange, fullWidth, children, ref, ...props }: SegmentedRootProps): import("react/jsx-runtime").JSX.Element;
|
|
11
35
|
export type SegmentedItemProps = ToggleGroupItemProps & RefAttributes<HTMLButtonElement> & {
|
|
36
|
+
/** 아이템 라벨 또는 아이콘 */
|
|
12
37
|
children?: ReactNode;
|
|
13
38
|
};
|
|
39
|
+
/** SegmentedRoot 안의 개별 옵션. `value`는 필수이며 루트의 size·fullWidth를 따른다. */
|
|
14
40
|
declare function SegmentedItem({ className, children, ref, ...props }: SegmentedItemProps): import("react/jsx-runtime").JSX.Element;
|
|
15
41
|
export { SegmentedItem, SegmentedRoot };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Segmented.js","names":[],"sources":["../../../src/components/Segmented/Segmented.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ToggleGroupItemProps, ToggleGroupSingleProps } from \"@radix-ui/react-toggle-group\";\nimport * as ToggleGroupPrimitive from \"@radix-ui/react-toggle-group\";\nimport { createContext, type ReactNode, type RefAttributes, useContext } from \"react\";\nimport { cn } from \"@/utils/cn\";\nimport { useControllableState } from \"@/utils/useControllableState\";\n\ntype SegmentedSize = \"sm\" | \"md\" | \"lg\" | \"icon-sm\" | \"icon-md\" | \"icon-lg\";\n\ninterface SegmentedContextValue {\n size: SegmentedSize;\n fullWidth?: boolean;\n}\n\nconst SegmentedContext = createContext<SegmentedContextValue>({\n size: \"md\",\n});\n\nconst segmentedRootSizeClass: Record<SegmentedSize, string> = {\n sm: \"aivex:h-7\",\n md: \"aivex:h-8\",\n lg: \"aivex:h-10 aivex:rounded-md\",\n \"icon-sm\": \"aivex:h-7\",\n \"icon-md\": \"aivex:h-8\",\n \"icon-lg\": \"aivex:h-10 aivex:rounded-md\",\n};\n\nexport interface SegmentedRootProps\n extends Omit<ToggleGroupSingleProps, \"onValueChange\" | \"type\">,\n RefAttributes<HTMLDivElement> {\n size?: SegmentedSize;\n onValueChange?: (value: string) => void;\n fullWidth?: boolean;\n children?: ReactNode;\n}\n\nfunction SegmentedRoot({\n className,\n size = \"md\",\n value,\n defaultValue,\n onValueChange,\n fullWidth,\n children,\n ref,\n ...props\n}: SegmentedRootProps) {\n const [currentValue, setValue] = useControllableState({\n value,\n defaultValue: defaultValue ?? value ?? \"\",\n onChange: onValueChange,\n });\n\n const handleValueChange = (nextValue: string) => {\n // 선택 해제(빈 값)는 무시해 항상 하나가 선택된 상태를 유지한다.\n if (!nextValue) {\n return;\n }\n setValue(nextValue);\n };\n\n return (\n <SegmentedContext.Provider value={{ size, fullWidth }}>\n <ToggleGroupPrimitive.Root\n ref={ref}\n type=\"single\"\n value={currentValue}\n onValueChange={handleValueChange}\n className={cn(\n \"aivex:inline-flex aivex:items-center aivex:justify-center aivex:rounded-sm aivex:bg-bg-tertiary aivex:p-2xs\",\n fullWidth ? \"aivex:w-full\" : \"aivex:w-fit\",\n segmentedRootSizeClass[size],\n className,\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Root>\n </SegmentedContext.Provider>\n );\n}\n\nconst segmentedItemSizeClass: Record<SegmentedSize, string> = {\n sm: \"aivex:h-6 aivex:px-md aivex:text-label-sm aivex:[&>svg]:size-4\",\n md: \"aivex:h-7 aivex:px-md aivex:text-label-lg aivex:[&>svg]:size-4\",\n lg: \"aivex:h-9 aivex:px-lg aivex:text-label-xl aivex:rounded-sm aivex:[&>svg]:size-5\",\n \"icon-sm\": \"aivex:h-6 aivex:w-6 aivex:px-xs aivex:[&>svg]:size-4\",\n \"icon-md\": \"aivex:h-7 aivex:w-7 aivex:px-xs aivex:[&>svg]:size-5\",\n \"icon-lg\": \"aivex:h-9 aivex:w-9 aivex:px-sm aivex:rounded-sm aivex:[&>svg]:size-6\",\n};\n\nexport type SegmentedItemProps = ToggleGroupItemProps &\n RefAttributes<HTMLButtonElement> & {\n children?: ReactNode;\n };\n\nfunction SegmentedItem({ className, children, ref, ...props }: SegmentedItemProps) {\n const { size, fullWidth } = useContext(SegmentedContext);\n\n return (\n <ToggleGroupPrimitive.Item\n ref={ref}\n className={cn(\n \"aivex:inline-flex aivex:min-w-px aivex:shrink-0 aivex:items-center aivex:justify-center aivex:gap-xs aivex:rounded-xs aivex:text-text-secondary aivex:transition-colors aivex:duration-150 aivex:cursor-pointer aivex:select-none aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:data-[state=on]:bg-bg-float aivex:data-[state=on]:text-text-primary aivex:data-[state=on]:shadow-sm aivex:hover:text-text-primary aivex:data-[disabled]:pointer-events-none aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:!text-text-disabled\",\n segmentedItemSizeClass[size],\n fullWidth && \"aivex:flex-1\",\n className,\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n );\n}\n\nexport { SegmentedItem, SegmentedRoot };\n"],"mappings":";;;;;;;;AAeA,IAAM,IAAmB,EAAqC,EAC5D,MAAM,MACP,CAAC,EAEI,IAAwD;CAC5D,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,WAAW;CACX,WAAW;CACX,WAAW;CACZ;
|
|
1
|
+
{"version":3,"file":"Segmented.js","names":[],"sources":["../../../src/components/Segmented/Segmented.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ToggleGroupItemProps, ToggleGroupSingleProps } from \"@radix-ui/react-toggle-group\";\nimport * as ToggleGroupPrimitive from \"@radix-ui/react-toggle-group\";\nimport { createContext, type ReactNode, type RefAttributes, useContext } from \"react\";\nimport { cn } from \"@/utils/cn\";\nimport { useControllableState } from \"@/utils/useControllableState\";\n\ntype SegmentedSize = \"sm\" | \"md\" | \"lg\" | \"icon-sm\" | \"icon-md\" | \"icon-lg\";\n\ninterface SegmentedContextValue {\n size: SegmentedSize;\n fullWidth?: boolean;\n}\n\nconst SegmentedContext = createContext<SegmentedContextValue>({\n size: \"md\",\n});\n\nconst segmentedRootSizeClass: Record<SegmentedSize, string> = {\n sm: \"aivex:h-7\",\n md: \"aivex:h-8\",\n lg: \"aivex:h-10 aivex:rounded-md\",\n \"icon-sm\": \"aivex:h-7\",\n \"icon-md\": \"aivex:h-8\",\n \"icon-lg\": \"aivex:h-10 aivex:rounded-md\",\n};\n\nexport interface SegmentedRootProps\n extends Omit<ToggleGroupSingleProps, \"onValueChange\" | \"type\">,\n RefAttributes<HTMLDivElement> {\n /**\n * 크기. sm·md·lg는 텍스트 아이템(높이 28/32/40px), icon-sm·icon-md·icon-lg는 아이콘 전용 정사각 아이템\n * @default \"md\"\n */\n size?: SegmentedSize;\n /** 선택이 바뀔 때 새 값으로 호출된다. 선택 해제는 무시되어 항상 하나가 선택된 상태를 유지한다 */\n onValueChange?: (value: string) => void;\n /** true면 루트가 가로를 채우고 아이템이 균등 분할된다 */\n fullWidth?: boolean;\n /** SegmentedItem 목록 */\n children?: ReactNode;\n}\n\n/**\n * 짧은 옵션 중 하나를 즉시 전환하는 세그먼트 컨트롤(Radix ToggleGroup single 기반).\n * 보기 모드(목록/갤러리)·기간 같은 2~5개 옵션을 바로 바꿀 때 쓴다. 폼 제출 값 선택은 Radio,\n * 옵션이 많으면 SelectBox, 각각 독립적으로 켜고 끄는 칩은 ToggleButton, 아래 패널 콘텐츠 전환은 Tab.\n * 값은 string이며 제어는 value+onValueChange, 비제어는 defaultValue(항상 하나가 선택되므로 지정 권장).\n * 아이콘 전용 아이템에는 aria-label을 반드시 지정한다.\n *\n * @example\n * ```tsx\n * import { SegmentedItem, SegmentedRoot } from \"@aivex/ui\";\n *\n * <SegmentedRoot value={view} onValueChange={setView} size=\"md\" aria-label=\"보기 방식\">\n * <SegmentedItem value=\"list\">목록</SegmentedItem>\n * <SegmentedItem value=\"gallery\">갤러리</SegmentedItem>\n * </SegmentedRoot>\n * ```\n */\nfunction SegmentedRoot({\n className,\n size = \"md\",\n value,\n defaultValue,\n onValueChange,\n fullWidth,\n children,\n ref,\n ...props\n}: SegmentedRootProps) {\n const [currentValue, setValue] = useControllableState({\n value,\n defaultValue: defaultValue ?? value ?? \"\",\n onChange: onValueChange,\n });\n\n const handleValueChange = (nextValue: string) => {\n // 선택 해제(빈 값)는 무시해 항상 하나가 선택된 상태를 유지한다.\n if (!nextValue) {\n return;\n }\n setValue(nextValue);\n };\n\n return (\n <SegmentedContext.Provider value={{ size, fullWidth }}>\n <ToggleGroupPrimitive.Root\n ref={ref}\n type=\"single\"\n value={currentValue}\n onValueChange={handleValueChange}\n className={cn(\n \"aivex:inline-flex aivex:items-center aivex:justify-center aivex:rounded-sm aivex:bg-bg-tertiary aivex:p-2xs\",\n fullWidth ? \"aivex:w-full\" : \"aivex:w-fit\",\n segmentedRootSizeClass[size],\n className,\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Root>\n </SegmentedContext.Provider>\n );\n}\n\nconst segmentedItemSizeClass: Record<SegmentedSize, string> = {\n sm: \"aivex:h-6 aivex:px-md aivex:text-label-sm aivex:[&>svg]:size-4\",\n md: \"aivex:h-7 aivex:px-md aivex:text-label-lg aivex:[&>svg]:size-4\",\n lg: \"aivex:h-9 aivex:px-lg aivex:text-label-xl aivex:rounded-sm aivex:[&>svg]:size-5\",\n \"icon-sm\": \"aivex:h-6 aivex:w-6 aivex:px-xs aivex:[&>svg]:size-4\",\n \"icon-md\": \"aivex:h-7 aivex:w-7 aivex:px-xs aivex:[&>svg]:size-5\",\n \"icon-lg\": \"aivex:h-9 aivex:w-9 aivex:px-sm aivex:rounded-sm aivex:[&>svg]:size-6\",\n};\n\nexport type SegmentedItemProps = ToggleGroupItemProps &\n RefAttributes<HTMLButtonElement> & {\n /** 아이템 라벨 또는 아이콘 */\n children?: ReactNode;\n };\n\n/** SegmentedRoot 안의 개별 옵션. `value`는 필수이며 루트의 size·fullWidth를 따른다. */\nfunction SegmentedItem({ className, children, ref, ...props }: SegmentedItemProps) {\n const { size, fullWidth } = useContext(SegmentedContext);\n\n return (\n <ToggleGroupPrimitive.Item\n ref={ref}\n className={cn(\n \"aivex:inline-flex aivex:min-w-px aivex:shrink-0 aivex:items-center aivex:justify-center aivex:gap-xs aivex:rounded-xs aivex:text-text-secondary aivex:transition-colors aivex:duration-150 aivex:cursor-pointer aivex:select-none aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:data-[state=on]:bg-bg-float aivex:data-[state=on]:text-text-primary aivex:data-[state=on]:shadow-sm aivex:hover:text-text-primary aivex:data-[disabled]:pointer-events-none aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:!text-text-disabled\",\n segmentedItemSizeClass[size],\n fullWidth && \"aivex:flex-1\",\n className,\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n );\n}\n\nexport { SegmentedItem, SegmentedRoot };\n"],"mappings":";;;;;;;;AAeA,IAAM,IAAmB,EAAqC,EAC5D,MAAM,MACP,CAAC,EAEI,IAAwD;CAC5D,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,WAAW;CACX,WAAW;CACX,WAAW;CACZ;AAmCD,SAAS,EAAc,EACrB,cACA,UAAO,MACP,UACA,iBACA,kBACA,cACA,aACA,QACA,GAAG,KACkB;CACrB,IAAM,CAAC,GAAc,KAAY,EAAqB;EACpD;EACA,cAAc,KAAgB,KAAS;EACvC,UAAU;EACX,CAAC;AAUF,QACE,kBAAC,EAAiB,UAAlB;EAA2B,OAAO;GAAE;GAAM;GAAW;YACnD,kBAAC,EAAqB,MAAtB;GACO;GACL,MAAK;GACL,OAAO;GACP,gBAdqB,MAAsB;AAE1C,SAGL,EAAS,EAAU;;GAUf,WAAW,EACT,+GACA,IAAY,iBAAiB,eAC7B,EAAuB,IACvB,EACD;GACD,GAAI;GAEH;GACyB,CAAA;EACF,CAAA;;AAIhC,IAAM,IAAwD;CAC5D,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,WAAW;CACX,WAAW;CACX,WAAW;CACZ;AASD,SAAS,EAAc,EAAE,cAAW,aAAU,QAAK,GAAG,KAA6B;CACjF,IAAM,EAAE,SAAM,iBAAc,EAAW,EAAiB;AAExD,QACE,kBAAC,EAAqB,MAAtB;EACO;EACL,WAAW,EACT,4kBACA,EAAuB,IACvB,KAAa,gBACb,EACD;EACD,GAAI;EAEH;EACyB,CAAA"}
|