@aivex/ui 1.2.0-dev.6 → 1.2.0-dev.61
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 +195 -1
- package/dist/DESIGN.md +241 -0
- package/dist/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/comment.cjs +1 -114
- package/dist/comment.js +4 -13623
- package/dist/components/Accordion/Accordion.cjs +2 -0
- package/dist/components/Accordion/Accordion.cjs.map +1 -0
- package/dist/components/Accordion/Accordion.d.cts +111 -0
- package/dist/components/Accordion/Accordion.d.ts +111 -0
- package/dist/components/Accordion/Accordion.js +75 -0
- package/dist/components/Accordion/Accordion.js.map +1 -0
- package/dist/components/Accordion/index.d.cts +2 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/Autocomplete/Autocomplete.cjs +2 -0
- package/dist/components/Autocomplete/Autocomplete.cjs.map +1 -0
- package/dist/components/Autocomplete/Autocomplete.d.cts +157 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +157 -0
- package/dist/components/Autocomplete/Autocomplete.js +192 -0
- package/dist/components/Autocomplete/Autocomplete.js.map +1 -0
- package/dist/components/Autocomplete/index.d.cts +2 -0
- package/dist/components/Autocomplete/index.d.ts +2 -0
- package/dist/components/Avatar/Avatar.cjs +2 -0
- package/dist/components/Avatar/Avatar.cjs.map +1 -0
- package/dist/components/Avatar/Avatar.d.cts +42 -0
- package/dist/components/Avatar/Avatar.d.ts +26 -4
- package/dist/components/Avatar/Avatar.js +107 -0
- package/dist/components/Avatar/Avatar.js.map +1 -0
- package/dist/components/Avatar/index.d.cts +2 -0
- package/dist/components/Avatar/index.d.ts +2 -2
- package/dist/components/Badge/Badge.cjs +2 -0
- package/dist/components/Badge/Badge.cjs.map +1 -0
- package/dist/components/Badge/Badge.d.cts +93 -0
- package/dist/components/Badge/Badge.d.ts +66 -1
- package/dist/components/Badge/Badge.js +232 -0
- package/dist/components/Badge/Badge.js.map +1 -0
- package/dist/components/Badge/index.d.cts +2 -0
- package/dist/components/Badge/index.d.ts +2 -2
- package/dist/components/BreadCrumb/BreadCrumb.cjs +2 -0
- package/dist/components/BreadCrumb/BreadCrumb.cjs.map +1 -0
- package/dist/components/BreadCrumb/BreadCrumb.d.cts +57 -0
- package/dist/components/BreadCrumb/BreadCrumb.d.ts +34 -2
- package/dist/components/BreadCrumb/BreadCrumb.js +98 -0
- package/dist/components/BreadCrumb/BreadCrumb.js.map +1 -0
- package/dist/components/BreadCrumb/index.d.cts +2 -0
- package/dist/components/BreadCrumb/index.d.ts +2 -2
- package/dist/components/Button/Button.cjs +2 -0
- package/dist/components/Button/Button.cjs.map +1 -0
- package/dist/components/Button/Button.d.cts +51 -0
- package/dist/components/Button/Button.d.ts +33 -2
- package/dist/components/Button/Button.js +127 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Button/index.d.cts +2 -0
- package/dist/components/Button/index.d.ts +2 -2
- package/dist/components/Calendar/Calendar.cjs +2 -0
- package/dist/components/Calendar/Calendar.cjs.map +1 -0
- package/dist/components/Calendar/Calendar.d.cts +81 -0
- package/dist/components/Calendar/Calendar.d.ts +81 -0
- package/dist/components/Calendar/Calendar.js +150 -0
- package/dist/components/Calendar/Calendar.js.map +1 -0
- package/dist/components/Calendar/date.cjs +2 -0
- package/dist/components/Calendar/date.cjs.map +1 -0
- package/dist/components/Calendar/date.d.cts +35 -0
- package/dist/components/Calendar/date.d.ts +35 -0
- package/dist/components/Calendar/date.js +54 -0
- package/dist/components/Calendar/date.js.map +1 -0
- package/dist/components/Calendar/index.d.cts +2 -0
- package/dist/components/Calendar/index.d.ts +2 -0
- package/dist/components/Card/Card.cjs +2 -0
- package/dist/components/Card/Card.cjs.map +1 -0
- package/dist/components/Card/Card.d.cts +47 -0
- package/dist/components/Card/Card.d.ts +38 -6
- package/dist/components/Card/Card.js +33 -0
- package/dist/components/Card/Card.js.map +1 -0
- package/dist/components/Card/index.d.cts +2 -0
- package/dist/components/Card/index.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.cjs +2 -0
- package/dist/components/Checkbox/Checkbox.cjs.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.cts +36 -0
- package/dist/components/Checkbox/Checkbox.d.ts +30 -7
- package/dist/components/Checkbox/Checkbox.js +49 -0
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Checkbox/ChipsCheckbox.cjs +2 -0
- package/dist/components/Checkbox/ChipsCheckbox.cjs.map +1 -0
- package/dist/components/Checkbox/ChipsCheckbox.d.cts +26 -0
- package/dist/components/Checkbox/ChipsCheckbox.d.ts +24 -5
- package/dist/components/Checkbox/ChipsCheckbox.js +27 -0
- package/dist/components/Checkbox/ChipsCheckbox.js.map +1 -0
- package/dist/components/Checkbox/index.d.cts +4 -0
- package/dist/components/Checkbox/index.d.ts +4 -4
- package/dist/components/Coachmark/Coachmark.cjs +2 -0
- package/dist/components/Coachmark/Coachmark.cjs.map +1 -0
- package/dist/components/Coachmark/Coachmark.d.cts +92 -0
- package/dist/components/Coachmark/Coachmark.d.ts +58 -20
- package/dist/components/Coachmark/Coachmark.js +110 -0
- package/dist/components/Coachmark/Coachmark.js.map +1 -0
- package/dist/components/Coachmark/index.d.cts +2 -0
- package/dist/components/Coachmark/index.d.ts +2 -2
- package/dist/components/Comment/CommentInput.cjs +2 -0
- package/dist/components/Comment/CommentInput.cjs.map +1 -0
- package/dist/components/Comment/CommentInput.d.cts +75 -0
- package/dist/components/Comment/CommentInput.d.ts +51 -6
- package/dist/components/Comment/CommentInput.js +76 -0
- package/dist/components/Comment/CommentInput.js.map +1 -0
- package/dist/components/Comment/CommentPin.cjs +2 -0
- package/dist/components/Comment/CommentPin.cjs.map +1 -0
- package/dist/components/Comment/CommentPin.d.cts +48 -0
- package/dist/components/Comment/CommentPin.d.ts +35 -4
- package/dist/components/Comment/CommentPin.js +40 -0
- package/dist/components/Comment/CommentPin.js.map +1 -0
- package/dist/components/Comment/MentionInput.cjs +2 -0
- package/dist/components/Comment/MentionInput.cjs.map +1 -0
- package/dist/components/Comment/MentionInput.d.cts +45 -0
- package/dist/components/Comment/MentionInput.d.ts +19 -4
- package/dist/components/Comment/MentionInput.js +93 -0
- package/dist/components/Comment/MentionInput.js.map +1 -0
- package/dist/components/Comment/MentionList.cjs +2 -0
- package/dist/components/Comment/MentionList.cjs.map +1 -0
- package/dist/components/Comment/MentionList.d.cts +19 -0
- package/dist/components/Comment/MentionList.d.ts +9 -4
- package/dist/components/Comment/MentionList.js +97 -0
- package/dist/components/Comment/MentionList.js.map +1 -0
- package/dist/components/Comment/index.d.cts +4 -0
- package/dist/components/Comment/index.d.ts +4 -4
- package/dist/components/Comment/mentionContent.cjs +5 -0
- package/dist/components/Comment/mentionContent.cjs.map +1 -0
- package/dist/components/Comment/mentionContent.d.cts +5 -0
- package/dist/components/Comment/mentionContent.d.ts +5 -0
- package/dist/components/Comment/mentionContent.js +40 -0
- package/dist/components/Comment/mentionContent.js.map +1 -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 +2 -0
- package/dist/components/Comment/useMentionSuggestion.cjs.map +1 -0
- package/dist/components/Comment/useMentionSuggestion.d.cts +19 -0
- package/dist/components/Comment/useMentionSuggestion.d.ts +6 -2
- package/dist/components/Comment/useMentionSuggestion.js +78 -0
- package/dist/components/Comment/useMentionSuggestion.js.map +1 -0
- package/dist/components/ContextMenu/ContextMenu.cjs +2 -0
- package/dist/components/ContextMenu/ContextMenu.cjs.map +1 -0
- package/dist/components/ContextMenu/ContextMenu.d.cts +72 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +72 -0
- package/dist/components/ContextMenu/ContextMenu.js +56 -0
- package/dist/components/ContextMenu/ContextMenu.js.map +1 -0
- package/dist/components/ContextMenu/index.d.cts +2 -0
- package/dist/components/ContextMenu/index.d.ts +2 -0
- package/dist/components/DataGrid/DataGrid.cjs +2 -0
- package/dist/components/DataGrid/DataGrid.cjs.map +1 -0
- package/dist/components/DataGrid/DataGrid.d.cts +136 -0
- package/dist/components/DataGrid/DataGrid.d.ts +114 -70
- package/dist/components/DataGrid/DataGrid.js +188 -0
- package/dist/components/DataGrid/DataGrid.js.map +1 -0
- package/dist/components/DataGrid/DataGridColumnSettings.cjs +2 -0
- package/dist/components/DataGrid/DataGridColumnSettings.cjs.map +1 -0
- package/dist/components/DataGrid/DataGridColumnSettings.d.cts +41 -0
- package/dist/components/DataGrid/DataGridColumnSettings.d.ts +41 -0
- package/dist/components/DataGrid/DataGridColumnSettings.js +199 -0
- package/dist/components/DataGrid/DataGridColumnSettings.js.map +1 -0
- package/dist/components/DataGrid/DataGridPrimitives.cjs +2 -0
- package/dist/components/DataGrid/DataGridPrimitives.cjs.map +1 -0
- package/dist/components/DataGrid/DataGridPrimitives.d.cts +165 -0
- package/dist/components/DataGrid/DataGridPrimitives.d.ts +165 -0
- package/dist/components/DataGrid/DataGridPrimitives.js +141 -0
- package/dist/components/DataGrid/DataGridPrimitives.js.map +1 -0
- package/dist/components/DataGrid/DataGridRows.cjs +2 -0
- package/dist/components/DataGrid/DataGridRows.cjs.map +1 -0
- package/dist/components/DataGrid/DataGridRows.d.cts +66 -0
- package/dist/components/DataGrid/DataGridRows.d.ts +66 -0
- package/dist/components/DataGrid/DataGridRows.js +108 -0
- package/dist/components/DataGrid/DataGridRows.js.map +1 -0
- package/dist/components/DataGrid/index.d.cts +8 -0
- package/dist/components/DataGrid/index.d.ts +6 -2
- package/dist/components/DataGrid/index.js +6 -0
- package/dist/components/Dialog/Dialog.cjs +2 -0
- package/dist/components/Dialog/Dialog.cjs.map +1 -0
- package/dist/components/Dialog/Dialog.d.cts +77 -0
- package/dist/components/Dialog/Dialog.d.ts +63 -6
- package/dist/components/Dialog/Dialog.js +109 -0
- package/dist/components/Dialog/Dialog.js.map +1 -0
- package/dist/components/Dialog/index.d.cts +2 -0
- package/dist/components/Dialog/index.d.ts +2 -2
- package/dist/components/Divider/Divider.cjs +2 -0
- package/dist/components/Divider/Divider.cjs.map +1 -0
- package/dist/components/Divider/Divider.d.cts +30 -0
- package/dist/components/Divider/Divider.d.ts +19 -0
- package/dist/components/Divider/Divider.js +58 -0
- package/dist/components/Divider/Divider.js.map +1 -0
- package/dist/components/Divider/index.d.cts +2 -0
- package/dist/components/Divider/index.d.ts +2 -2
- package/dist/components/DraggableScroll/DraggableScroll.cjs +2 -0
- package/dist/components/DraggableScroll/DraggableScroll.cjs.map +1 -0
- package/dist/components/DraggableScroll/DraggableScroll.d.cts +47 -0
- package/dist/components/DraggableScroll/DraggableScroll.d.ts +38 -2
- package/dist/components/DraggableScroll/DraggableScroll.js +45 -0
- package/dist/components/DraggableScroll/DraggableScroll.js.map +1 -0
- package/dist/components/DraggableScroll/index.d.cts +2 -0
- package/dist/components/DraggableScroll/index.d.ts +2 -2
- package/dist/components/Drawer/Drawer.cjs +2 -0
- package/dist/components/Drawer/Drawer.cjs.map +1 -0
- package/dist/components/Drawer/Drawer.d.cts +161 -0
- package/dist/components/Drawer/Drawer.d.ts +161 -0
- package/dist/components/Drawer/Drawer.js +110 -0
- package/dist/components/Drawer/Drawer.js.map +1 -0
- package/dist/components/Drawer/index.d.cts +2 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/EmptyState/EmptyState.cjs +2 -0
- package/dist/components/EmptyState/EmptyState.cjs.map +1 -0
- package/dist/components/EmptyState/EmptyState.d.cts +61 -0
- package/dist/components/EmptyState/EmptyState.d.ts +61 -0
- package/dist/components/EmptyState/EmptyState.js +50 -0
- package/dist/components/EmptyState/EmptyState.js.map +1 -0
- package/dist/components/EmptyState/index.d.cts +2 -0
- package/dist/components/EmptyState/index.d.ts +2 -0
- package/dist/components/Field/Field.cjs +2 -0
- package/dist/components/Field/Field.cjs.map +1 -0
- package/dist/components/Field/Field.d.cts +111 -0
- package/dist/components/Field/Field.d.ts +85 -20
- package/dist/components/Field/Field.js +78 -0
- package/dist/components/Field/Field.js.map +1 -0
- package/dist/components/Field/FieldStateContext.cjs +2 -0
- package/dist/components/Field/FieldStateContext.cjs.map +1 -0
- package/dist/components/Field/FieldStateContext.d.cts +12 -0
- package/dist/components/Field/FieldStateContext.d.ts +12 -0
- package/dist/components/Field/FieldStateContext.js +14 -0
- package/dist/components/Field/FieldStateContext.js.map +1 -0
- package/dist/components/Field/index.d.cts +1 -0
- package/dist/components/Field/index.d.ts +1 -1
- package/dist/components/FilterModal/FilterModal.cjs +2 -0
- package/dist/components/FilterModal/FilterModal.cjs.map +1 -0
- package/dist/components/FilterModal/FilterModal.d.cts +83 -0
- package/dist/components/FilterModal/FilterModal.d.ts +52 -1
- package/dist/components/FilterModal/FilterModal.js +120 -0
- package/dist/components/FilterModal/FilterModal.js.map +1 -0
- package/dist/components/FilterModal/index.d.cts +2 -0
- package/dist/components/FilterModal/index.d.ts +2 -2
- package/dist/components/HoverCard/HoverCard.cjs +2 -0
- package/dist/components/HoverCard/HoverCard.cjs.map +1 -0
- package/dist/components/HoverCard/HoverCard.d.cts +61 -0
- package/dist/components/HoverCard/HoverCard.d.ts +61 -0
- package/dist/components/HoverCard/HoverCard.js +44 -0
- package/dist/components/HoverCard/HoverCard.js.map +1 -0
- package/dist/components/HoverCard/index.d.cts +2 -0
- package/dist/components/HoverCard/index.d.ts +2 -0
- package/dist/components/Icon/index.cjs +2 -0
- package/dist/components/Icon/index.cjs.map +1 -0
- package/dist/components/Icon/index.d.cts +2105 -0
- package/dist/components/Icon/index.d.ts +2093 -275
- package/dist/components/Icon/index.js +4490 -0
- package/dist/components/Icon/index.js.map +1 -0
- package/dist/components/Icon/svgA11y.cjs +2 -0
- package/dist/components/Icon/svgA11y.cjs.map +1 -0
- package/dist/components/Icon/svgA11y.d.cts +10 -0
- package/dist/components/Icon/svgA11y.d.ts +10 -0
- package/dist/components/Icon/svgA11y.js +9 -0
- package/dist/components/Icon/svgA11y.js.map +1 -0
- package/dist/components/Icon/uniqueSvgIds.cjs +2 -0
- package/dist/components/Icon/uniqueSvgIds.cjs.map +1 -0
- package/dist/components/Icon/uniqueSvgIds.d.cts +8 -0
- package/dist/components/Icon/uniqueSvgIds.d.ts +8 -0
- package/dist/components/Icon/uniqueSvgIds.js +42 -0
- package/dist/components/Icon/uniqueSvgIds.js.map +1 -0
- package/dist/components/IconButton/IconButton.cjs +2 -0
- package/dist/components/IconButton/IconButton.cjs.map +1 -0
- package/dist/components/IconButton/IconButton.d.cts +46 -0
- package/dist/components/IconButton/IconButton.d.ts +33 -4
- package/dist/components/IconButton/IconButton.js +74 -0
- package/dist/components/IconButton/IconButton.js.map +1 -0
- 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 +2 -0
- package/dist/components/InputBase/InputBase.cjs.map +1 -0
- package/dist/components/InputBase/InputBase.d.cts +59 -0
- package/dist/components/InputBase/InputBase.d.ts +35 -7
- package/dist/components/InputBase/InputBase.js +87 -0
- package/dist/components/InputBase/InputBase.js.map +1 -0
- package/dist/components/InputBase/index.d.cts +1 -0
- package/dist/components/InputBase/index.d.ts +1 -1
- package/dist/components/InputBase/useInputState.cjs +2 -0
- package/dist/components/InputBase/useInputState.cjs.map +1 -0
- package/dist/components/InputBase/useInputState.d.cts +19 -0
- package/dist/components/InputBase/useInputState.d.ts +19 -0
- package/dist/components/InputBase/useInputState.js +25 -0
- package/dist/components/InputBase/useInputState.js.map +1 -0
- package/dist/components/InteractionLayer/InteractionLayer.cjs +2 -0
- package/dist/components/InteractionLayer/InteractionLayer.cjs.map +1 -0
- package/dist/components/InteractionLayer/InteractionLayer.d.cts +43 -0
- package/dist/components/InteractionLayer/InteractionLayer.d.ts +34 -0
- package/dist/components/InteractionLayer/InteractionLayer.js +17 -0
- package/dist/components/InteractionLayer/InteractionLayer.js.map +1 -0
- package/dist/components/InteractionLayer/index.d.cts +1 -0
- package/dist/components/InteractionLayer/index.d.ts +1 -1
- package/dist/components/Logo/index.cjs +2 -0
- package/dist/components/Logo/index.cjs.map +1 -0
- package/dist/components/Logo/index.d.cts +92 -0
- package/dist/components/Logo/index.d.ts +88 -13
- package/dist/components/Logo/index.js +1949 -0
- package/dist/components/Logo/index.js.map +1 -0
- package/dist/components/Menu/Menu.cjs +2 -0
- package/dist/components/Menu/Menu.cjs.map +1 -0
- package/dist/components/Menu/Menu.d.cts +183 -0
- package/dist/components/Menu/Menu.d.ts +126 -27
- package/dist/components/Menu/Menu.js +216 -0
- package/dist/components/Menu/Menu.js.map +1 -0
- package/dist/components/Menu/index.d.cts +2 -0
- package/dist/components/Menu/index.d.ts +2 -2
- package/dist/components/Messagebox/Messagebox.cjs +2 -0
- package/dist/components/Messagebox/Messagebox.cjs.map +1 -0
- package/dist/components/Messagebox/Messagebox.d.cts +50 -0
- package/dist/components/Messagebox/Messagebox.d.ts +39 -3
- package/dist/components/Messagebox/Messagebox.js +84 -0
- package/dist/components/Messagebox/Messagebox.js.map +1 -0
- package/dist/components/Messagebox/index.d.cts +2 -0
- package/dist/components/Messagebox/index.d.ts +2 -2
- package/dist/components/Modal/Modal.cjs +2 -0
- package/dist/components/Modal/Modal.cjs.map +1 -0
- package/dist/components/Modal/Modal.d.cts +161 -0
- package/dist/components/Modal/Modal.d.ts +131 -7
- package/dist/components/Modal/Modal.js +195 -0
- package/dist/components/Modal/Modal.js.map +1 -0
- package/dist/components/Modal/ModalBase.cjs +2 -0
- package/dist/components/Modal/ModalBase.cjs.map +1 -0
- package/dist/components/Modal/ModalBase.d.cts +80 -0
- package/dist/components/Modal/ModalBase.d.ts +80 -0
- package/dist/components/Modal/ModalBase.js +44 -0
- package/dist/components/Modal/ModalBase.js.map +1 -0
- package/dist/components/Modal/index.d.cts +4 -0
- package/dist/components/Modal/index.d.ts +4 -2
- package/dist/components/Nav/Nav.cjs +2 -0
- package/dist/components/Nav/Nav.cjs.map +1 -0
- package/dist/components/Nav/Nav.d.cts +69 -0
- package/dist/components/Nav/Nav.d.ts +46 -0
- package/dist/components/Nav/Nav.js +73 -0
- package/dist/components/Nav/Nav.js.map +1 -0
- package/dist/components/Nav/index.d.cts +2 -0
- package/dist/components/Nav/index.d.ts +2 -2
- package/dist/components/NumberField/NumberField.cjs +2 -0
- package/dist/components/NumberField/NumberField.cjs.map +1 -0
- package/dist/components/NumberField/NumberField.d.cts +79 -0
- package/dist/components/NumberField/NumberField.d.ts +79 -0
- package/dist/components/NumberField/NumberField.js +65 -0
- package/dist/components/NumberField/NumberField.js.map +1 -0
- package/dist/components/NumberField/index.d.cts +2 -0
- package/dist/components/NumberField/index.d.ts +2 -0
- package/dist/components/Overlay/Overlay.cjs +2 -0
- package/dist/components/Overlay/Overlay.cjs.map +1 -0
- package/dist/components/Overlay/Overlay.d.cts +36 -0
- package/dist/components/Overlay/Overlay.d.ts +30 -4
- package/dist/components/Overlay/Overlay.js +24 -0
- package/dist/components/Overlay/Overlay.js.map +1 -0
- package/dist/components/Overlay/index.d.cts +2 -0
- package/dist/components/Overlay/index.d.ts +2 -2
- package/dist/components/Pagination/Pagination.cjs +2 -0
- package/dist/components/Pagination/Pagination.cjs.map +1 -0
- package/dist/components/Pagination/Pagination.d.cts +68 -0
- package/dist/components/Pagination/Pagination.d.ts +45 -2
- package/dist/components/Pagination/Pagination.js +127 -0
- package/dist/components/Pagination/Pagination.js.map +1 -0
- package/dist/components/Pagination/index.d.cts +2 -0
- package/dist/components/Pagination/index.d.ts +2 -2
- package/dist/components/Panel/Panel.cjs +2 -0
- package/dist/components/Panel/Panel.cjs.map +1 -0
- package/dist/components/Panel/Panel.d.cts +124 -0
- package/dist/components/Panel/Panel.d.ts +119 -8
- package/dist/components/Panel/Panel.js +92 -0
- package/dist/components/Panel/Panel.js.map +1 -0
- package/dist/components/Panel/index.d.cts +2 -0
- package/dist/components/Panel/index.d.ts +2 -2
- package/dist/components/Popover/Popover.cjs +2 -0
- package/dist/components/Popover/Popover.cjs.map +1 -0
- package/dist/components/Popover/Popover.d.cts +105 -0
- package/dist/components/Popover/Popover.d.ts +72 -14
- package/dist/components/Popover/Popover.js +79 -0
- package/dist/components/Popover/Popover.js.map +1 -0
- package/dist/components/Popover/index.d.cts +2 -0
- package/dist/components/Popover/index.d.ts +2 -2
- package/dist/components/ProgressBar/ProgressBar.cjs +2 -0
- package/dist/components/ProgressBar/ProgressBar.cjs.map +1 -0
- package/dist/components/ProgressBar/ProgressBar.d.cts +45 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +32 -0
- package/dist/components/ProgressBar/ProgressBar.js +41 -0
- package/dist/components/ProgressBar/ProgressBar.js.map +1 -0
- package/dist/components/ProgressBar/index.d.cts +2 -0
- package/dist/components/ProgressBar/index.d.ts +2 -2
- package/dist/components/Radio/Radio.cjs +2 -0
- package/dist/components/Radio/Radio.cjs.map +1 -0
- package/dist/components/Radio/Radio.d.cts +61 -0
- package/dist/components/Radio/Radio.d.ts +56 -6
- package/dist/components/Radio/Radio.js +62 -0
- package/dist/components/Radio/Radio.js.map +1 -0
- package/dist/components/Radio/index.d.cts +2 -0
- package/dist/components/Radio/index.d.ts +2 -2
- package/dist/components/ScrollArea/ScrollArea.cjs +2 -0
- package/dist/components/ScrollArea/ScrollArea.cjs.map +1 -0
- package/dist/components/ScrollArea/ScrollArea.d.cts +59 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +51 -6
- package/dist/components/ScrollArea/ScrollArea.js +62 -0
- package/dist/components/ScrollArea/ScrollArea.js.map +1 -0
- package/dist/components/ScrollArea/index.d.cts +2 -0
- package/dist/components/ScrollArea/index.d.ts +2 -2
- package/dist/components/Segmented/Segmented.cjs +2 -0
- package/dist/components/Segmented/Segmented.cjs.map +1 -0
- package/dist/components/Segmented/Segmented.d.cts +56 -0
- package/dist/components/Segmented/Segmented.d.ts +45 -4
- package/dist/components/Segmented/Segmented.js +61 -0
- package/dist/components/Segmented/Segmented.js.map +1 -0
- package/dist/components/Segmented/index.d.cts +2 -0
- package/dist/components/Segmented/index.d.ts +2 -2
- package/dist/components/SelectBox/SelectBox.cjs +2 -0
- package/dist/components/SelectBox/SelectBox.cjs.map +1 -0
- package/dist/components/SelectBox/SelectBox.d.cts +93 -0
- package/dist/components/SelectBox/SelectBox.d.ts +62 -5
- package/dist/components/SelectBox/SelectBox.js +85 -0
- package/dist/components/SelectBox/SelectBox.js.map +1 -0
- package/dist/components/SelectBox/index.d.cts +2 -0
- package/dist/components/SelectBox/index.d.ts +2 -2
- package/dist/components/SelectButton/SelectButton.cjs +2 -0
- package/dist/components/SelectButton/SelectButton.cjs.map +1 -0
- package/dist/components/SelectButton/SelectButton.d.cts +57 -0
- package/dist/components/SelectButton/SelectButton.d.ts +57 -0
- package/dist/components/SelectButton/SelectButton.js +43 -0
- package/dist/components/SelectButton/SelectButton.js.map +1 -0
- package/dist/components/SelectButton/index.d.cts +2 -0
- package/dist/components/SelectButton/index.d.ts +2 -0
- package/dist/components/ShapeEditor/ShapeEditor.cjs +2 -0
- package/dist/components/ShapeEditor/ShapeEditor.cjs.map +1 -0
- package/dist/components/ShapeEditor/ShapeEditor.d.cts +40 -0
- package/dist/components/ShapeEditor/ShapeEditor.d.ts +38 -7
- package/dist/components/ShapeEditor/ShapeEditor.js +564 -0
- package/dist/components/ShapeEditor/ShapeEditor.js.map +1 -0
- package/dist/components/ShapeEditor/ShapeViewer.cjs +2 -0
- package/dist/components/ShapeEditor/ShapeViewer.cjs.map +1 -0
- package/dist/components/ShapeEditor/ShapeViewer.d.cts +92 -0
- package/dist/components/ShapeEditor/ShapeViewer.d.ts +57 -7
- package/dist/components/ShapeEditor/ShapeViewer.js +303 -0
- package/dist/components/ShapeEditor/ShapeViewer.js.map +1 -0
- package/dist/components/ShapeEditor/_components/AssistantOverlay.cjs +2 -0
- package/dist/components/ShapeEditor/_components/AssistantOverlay.cjs.map +1 -0
- 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/AssistantOverlay.js +64 -0
- package/dist/components/ShapeEditor/_components/AssistantOverlay.js.map +1 -0
- package/dist/components/ShapeEditor/_components/ContextMenu.cjs +2 -0
- package/dist/components/ShapeEditor/_components/ContextMenu.cjs.map +1 -0
- package/dist/components/ShapeEditor/_components/ContextMenu.d.cts +13 -0
- package/dist/components/ShapeEditor/_components/ContextMenu.d.ts +3 -3
- package/dist/components/ShapeEditor/_components/ContextMenu.js +67 -0
- package/dist/components/ShapeEditor/_components/ContextMenu.js.map +1 -0
- package/dist/components/ShapeEditor/_components/CursorGuide.cjs +2 -0
- package/dist/components/ShapeEditor/_components/CursorGuide.cjs.map +1 -0
- package/dist/components/ShapeEditor/_components/CursorGuide.d.cts +8 -0
- package/dist/components/ShapeEditor/_components/CursorGuide.js +56 -0
- package/dist/components/ShapeEditor/_components/CursorGuide.js.map +1 -0
- package/dist/components/ShapeEditor/_components/ImageStateOverlay.cjs +2 -0
- package/dist/components/ShapeEditor/_components/ImageStateOverlay.cjs.map +1 -0
- package/dist/components/ShapeEditor/_components/ImageStateOverlay.d.cts +17 -0
- package/dist/components/ShapeEditor/_components/ImageStateOverlay.d.ts +9 -3
- package/dist/components/ShapeEditor/_components/ImageStateOverlay.js +101 -0
- package/dist/components/ShapeEditor/_components/ImageStateOverlay.js.map +1 -0
- package/dist/components/ShapeEditor/_components/Minimap.cjs +2 -0
- package/dist/components/ShapeEditor/_components/Minimap.cjs.map +1 -0
- package/dist/components/ShapeEditor/_components/Minimap.d.cts +46 -0
- package/dist/components/ShapeEditor/_components/Minimap.d.ts +17 -16
- package/dist/components/ShapeEditor/_components/Minimap.js +172 -0
- package/dist/components/ShapeEditor/_components/Minimap.js.map +1 -0
- package/dist/components/ShapeEditor/_components/MinimapShape.cjs +2 -0
- package/dist/components/ShapeEditor/_components/MinimapShape.cjs.map +1 -0
- package/dist/components/ShapeEditor/_components/MinimapShape.d.cts +6 -0
- package/dist/components/ShapeEditor/_components/MinimapShape.d.ts +3 -3
- package/dist/components/ShapeEditor/_components/MinimapShape.js +55 -0
- package/dist/components/ShapeEditor/_components/MinimapShape.js.map +1 -0
- package/dist/components/ShapeEditor/_components/OverlayMarkers.cjs +2 -0
- package/dist/components/ShapeEditor/_components/OverlayMarkers.cjs.map +1 -0
- package/dist/components/ShapeEditor/_components/OverlayMarkers.d.cts +16 -0
- package/dist/components/ShapeEditor/_components/OverlayMarkers.d.ts +16 -0
- package/dist/components/ShapeEditor/_components/OverlayMarkers.js +41 -0
- package/dist/components/ShapeEditor/_components/OverlayMarkers.js.map +1 -0
- package/dist/components/ShapeEditor/_components/RegionOverlay.cjs +2 -0
- package/dist/components/ShapeEditor/_components/RegionOverlay.cjs.map +1 -0
- 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/RegionOverlay.js +59 -0
- package/dist/components/ShapeEditor/_components/RegionOverlay.js.map +1 -0
- package/dist/components/ShapeEditor/_components/SelectionInfo.cjs +2 -0
- package/dist/components/ShapeEditor/_components/SelectionInfo.cjs.map +1 -0
- package/dist/components/ShapeEditor/_components/SelectionInfo.d.cts +20 -0
- package/dist/components/ShapeEditor/_components/SelectionInfo.d.ts +10 -3
- package/dist/components/ShapeEditor/_components/SelectionInfo.js +115 -0
- package/dist/components/ShapeEditor/_components/SelectionInfo.js.map +1 -0
- package/dist/components/ShapeEditor/_components/SettingsPanel.cjs +2 -0
- package/dist/components/ShapeEditor/_components/SettingsPanel.cjs.map +1 -0
- package/dist/components/ShapeEditor/_components/SettingsPanel.d.cts +28 -0
- package/dist/components/ShapeEditor/_components/SettingsPanel.d.ts +18 -5
- package/dist/components/ShapeEditor/_components/SettingsPanel.js +167 -0
- package/dist/components/ShapeEditor/_components/SettingsPanel.js.map +1 -0
- package/dist/components/ShapeEditor/_constants.cjs +2 -0
- package/dist/components/ShapeEditor/_constants.cjs.map +1 -0
- package/dist/components/ShapeEditor/_constants.d.cts +15 -0
- package/dist/components/ShapeEditor/_constants.d.ts +7 -25
- package/dist/components/ShapeEditor/_constants.js +7 -0
- package/dist/components/ShapeEditor/_constants.js.map +1 -0
- package/dist/components/ShapeEditor/_model/brush.cjs +2 -0
- package/dist/components/ShapeEditor/_model/brush.cjs.map +1 -0
- 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/brush.js +27 -0
- package/dist/components/ShapeEditor/_model/brush.js.map +1 -0
- package/dist/components/ShapeEditor/_model/clipboard.cjs +2 -0
- package/dist/components/ShapeEditor/_model/clipboard.cjs.map +1 -0
- package/dist/components/ShapeEditor/_model/clipboard.d.cts +22 -0
- package/dist/components/ShapeEditor/_model/clipboard.d.ts +22 -0
- package/dist/components/ShapeEditor/_model/clipboard.js +85 -0
- package/dist/components/ShapeEditor/_model/clipboard.js.map +1 -0
- package/dist/components/ShapeEditor/_model/cursors.cjs +2 -0
- package/dist/components/ShapeEditor/_model/cursors.cjs.map +1 -0
- package/dist/components/ShapeEditor/_model/cursors.d.cts +23 -0
- package/dist/components/ShapeEditor/_model/cursors.d.ts +7 -2
- package/dist/components/ShapeEditor/_model/cursors.js +52 -0
- package/dist/components/ShapeEditor/_model/cursors.js.map +1 -0
- package/dist/components/ShapeEditor/_model/geometry.cjs +2 -0
- package/dist/components/ShapeEditor/_model/geometry.cjs.map +1 -0
- package/dist/components/ShapeEditor/_model/geometry.d.cts +182 -0
- package/dist/components/ShapeEditor/_model/geometry.d.ts +54 -2
- package/dist/components/ShapeEditor/_model/geometry.js +431 -0
- package/dist/components/ShapeEditor/_model/geometry.js.map +1 -0
- package/dist/components/ShapeEditor/_model/imageDiagnosis.cjs +2 -0
- package/dist/components/ShapeEditor/_model/imageDiagnosis.cjs.map +1 -0
- package/dist/components/ShapeEditor/_model/imageDiagnosis.d.cts +38 -0
- package/dist/components/ShapeEditor/_model/imageDiagnosis.d.ts +38 -0
- package/dist/components/ShapeEditor/_model/imageDiagnosis.js +358 -0
- package/dist/components/ShapeEditor/_model/imageDiagnosis.js.map +1 -0
- package/dist/components/ShapeEditor/_model/imageLoad.cjs +2 -0
- package/dist/components/ShapeEditor/_model/imageLoad.cjs.map +1 -0
- package/dist/components/ShapeEditor/_model/imageLoad.d.cts +29 -0
- package/dist/components/ShapeEditor/_model/imageLoad.d.ts +29 -0
- package/dist/components/ShapeEditor/_model/imageLoad.js +88 -0
- package/dist/components/ShapeEditor/_model/imageLoad.js.map +1 -0
- package/dist/components/ShapeEditor/_model/imageSignature.cjs +2 -0
- package/dist/components/ShapeEditor/_model/imageSignature.cjs.map +1 -0
- package/dist/components/ShapeEditor/_model/imageSignature.d.cts +18 -0
- package/dist/components/ShapeEditor/_model/imageSignature.d.ts +18 -0
- package/dist/components/ShapeEditor/_model/imageSignature.js +196 -0
- package/dist/components/ShapeEditor/_model/imageSignature.js.map +1 -0
- package/dist/components/ShapeEditor/_model/imageTiles.cjs +2 -0
- package/dist/components/ShapeEditor/_model/imageTiles.cjs.map +1 -0
- package/dist/components/ShapeEditor/_model/imageTiles.d.cts +11 -0
- package/dist/components/ShapeEditor/_model/imageTiles.js +28 -0
- package/dist/components/ShapeEditor/_model/imageTiles.js.map +1 -0
- package/dist/components/ShapeEditor/_model/keymap.cjs +2 -0
- package/dist/components/ShapeEditor/_model/keymap.cjs.map +1 -0
- 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 +75 -0
- package/dist/components/ShapeEditor/_model/keymap.js.map +1 -0
- package/dist/components/ShapeEditor/_model/overlays.cjs +2 -0
- package/dist/components/ShapeEditor/_model/overlays.cjs.map +1 -0
- package/dist/components/ShapeEditor/_model/overlays.d.cts +108 -0
- package/dist/components/ShapeEditor/_model/overlays.d.ts +11 -25
- package/dist/components/ShapeEditor/_model/overlays.js +186 -0
- package/dist/components/ShapeEditor/_model/overlays.js.map +1 -0
- package/dist/components/ShapeEditor/_model/pinIcon.cjs +2 -0
- package/dist/components/ShapeEditor/_model/pinIcon.cjs.map +1 -0
- package/dist/components/ShapeEditor/_model/pinIcon.d.cts +13 -0
- package/dist/components/ShapeEditor/_model/pinIcon.js +10 -0
- package/dist/components/ShapeEditor/_model/pinIcon.js.map +1 -0
- package/dist/components/ShapeEditor/_model/polygonFill.cjs +2 -0
- package/dist/components/ShapeEditor/_model/polygonFill.cjs.map +1 -0
- package/dist/components/ShapeEditor/_model/polygonFill.d.cts +2 -0
- package/dist/components/ShapeEditor/_model/polygonFill.d.ts +2 -0
- package/dist/components/ShapeEditor/_model/polygonFill.js +12 -0
- package/dist/components/ShapeEditor/_model/polygonFill.js.map +1 -0
- package/dist/components/ShapeEditor/_model/props.d.cts +13 -0
- package/dist/components/ShapeEditor/_model/props.d.ts +11 -443
- package/dist/components/ShapeEditor/_model/scalarMask.cjs +2 -0
- package/dist/components/ShapeEditor/_model/scalarMask.cjs.map +1 -0
- 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/scalarMask.js +188 -0
- package/dist/components/ShapeEditor/_model/scalarMask.js.map +1 -0
- package/dist/components/ShapeEditor/_model/shapeHitTest.cjs +2 -0
- package/dist/components/ShapeEditor/_model/shapeHitTest.cjs.map +1 -0
- package/dist/components/ShapeEditor/_model/shapeHitTest.d.cts +14 -0
- package/dist/components/ShapeEditor/_model/shapeHitTest.d.ts +14 -0
- package/dist/components/ShapeEditor/_model/shapeHitTest.js +38 -0
- package/dist/components/ShapeEditor/_model/shapeHitTest.js.map +1 -0
- package/dist/components/ShapeEditor/_model/shapeRenderStyle.cjs +2 -0
- package/dist/components/ShapeEditor/_model/shapeRenderStyle.cjs.map +1 -0
- 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/shapeRenderStyle.js +19 -0
- package/dist/components/ShapeEditor/_model/shapeRenderStyle.js.map +1 -0
- package/dist/components/ShapeEditor/_model/strings.cjs +2 -0
- package/dist/components/ShapeEditor/_model/strings.cjs.map +1 -0
- package/dist/components/ShapeEditor/_model/strings.d.cts +62 -0
- package/dist/components/ShapeEditor/_model/strings.d.ts +10 -1
- package/dist/components/ShapeEditor/_model/strings.js +130 -0
- package/dist/components/ShapeEditor/_model/strings.js.map +1 -0
- package/dist/components/ShapeEditor/_model/tools.cjs +2 -0
- package/dist/components/ShapeEditor/_model/tools.cjs.map +1 -0
- 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 +19 -0
- package/dist/components/ShapeEditor/_model/tools.js.map +1 -0
- package/dist/components/ShapeEditor/_model/types/assistant.d.cts +37 -0
- package/dist/components/ShapeEditor/_model/types/assistant.d.ts +37 -0
- package/dist/components/ShapeEditor/_model/types/handle.d.cts +124 -0
- package/dist/components/ShapeEditor/_model/types/handle.d.ts +124 -0
- package/dist/components/ShapeEditor/_model/types/props.d.cts +432 -0
- package/dist/components/ShapeEditor/_model/types/props.d.ts +432 -0
- package/dist/components/ShapeEditor/_model/viewSettings.cjs +2 -0
- package/dist/components/ShapeEditor/_model/viewSettings.cjs.map +1 -0
- package/dist/components/ShapeEditor/_model/viewSettings.d.cts +73 -0
- package/dist/components/ShapeEditor/_model/viewSettings.d.ts +60 -2
- package/dist/components/ShapeEditor/_model/viewSettings.js +57 -0
- package/dist/components/ShapeEditor/_model/viewSettings.js.map +1 -0
- package/dist/components/ShapeEditor/_model/viewerPatch.cjs +2 -0
- package/dist/components/ShapeEditor/_model/viewerPatch.cjs.map +1 -0
- package/dist/components/ShapeEditor/_model/viewerPatch.d.cts +60 -0
- package/dist/components/ShapeEditor/_model/viewerPatch.d.ts +60 -0
- package/dist/components/ShapeEditor/_model/viewerPatch.js +57 -0
- package/dist/components/ShapeEditor/_model/viewerPatch.js.map +1 -0
- package/dist/components/ShapeEditor/_model/viewport.cjs +2 -0
- package/dist/components/ShapeEditor/_model/viewport.cjs.map +1 -0
- package/dist/components/ShapeEditor/_model/viewport.d.cts +36 -0
- package/dist/components/ShapeEditor/_model/viewport.d.ts +10 -2
- package/dist/components/ShapeEditor/_model/viewport.js +79 -0
- package/dist/components/ShapeEditor/_model/viewport.js.map +1 -0
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.cjs +2 -0
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.cjs.map +1 -0
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.cts +121 -0
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.ts +28 -76
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.js +305 -0
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.js.map +1 -0
- package/dist/components/ShapeEditor/_renderers/imageLayer.cjs +2 -0
- package/dist/components/ShapeEditor/_renderers/imageLayer.cjs.map +1 -0
- package/dist/components/ShapeEditor/_renderers/imageLayer.d.cts +35 -0
- package/dist/components/ShapeEditor/_renderers/imageLayer.d.ts +35 -0
- package/dist/components/ShapeEditor/_renderers/imageLayer.js +59 -0
- package/dist/components/ShapeEditor/_renderers/imageLayer.js.map +1 -0
- package/dist/components/ShapeEditor/_renderers/overlayLayer.cjs +2 -0
- package/dist/components/ShapeEditor/_renderers/overlayLayer.cjs.map +1 -0
- package/dist/components/ShapeEditor/_renderers/overlayLayer.d.cts +36 -0
- package/dist/components/ShapeEditor/_renderers/overlayLayer.d.ts +36 -0
- package/dist/components/ShapeEditor/_renderers/overlayLayer.js +65 -0
- package/dist/components/ShapeEditor/_renderers/overlayLayer.js.map +1 -0
- package/dist/components/ShapeEditor/_renderers/previewLayer.cjs +2 -0
- package/dist/components/ShapeEditor/_renderers/previewLayer.cjs.map +1 -0
- package/dist/components/ShapeEditor/_renderers/previewLayer.d.cts +34 -0
- package/dist/components/ShapeEditor/_renderers/previewLayer.d.ts +34 -0
- package/dist/components/ShapeEditor/_renderers/previewLayer.js +112 -0
- package/dist/components/ShapeEditor/_renderers/previewLayer.js.map +1 -0
- package/dist/components/ShapeEditor/_renderers/shapeLayer.cjs +2 -0
- package/dist/components/ShapeEditor/_renderers/shapeLayer.cjs.map +1 -0
- package/dist/components/ShapeEditor/_renderers/shapeLayer.d.cts +49 -0
- package/dist/components/ShapeEditor/_renderers/shapeLayer.d.ts +49 -0
- package/dist/components/ShapeEditor/_renderers/shapeLayer.js +94 -0
- package/dist/components/ShapeEditor/_renderers/shapeLayer.js.map +1 -0
- package/dist/components/ShapeEditor/_renderers/shapePainter.cjs +2 -0
- package/dist/components/ShapeEditor/_renderers/shapePainter.cjs.map +1 -0
- package/dist/components/ShapeEditor/_renderers/shapePainter.d.cts +27 -0
- package/dist/components/ShapeEditor/_renderers/shapePainter.d.ts +27 -0
- package/dist/components/ShapeEditor/_renderers/shapePainter.js +166 -0
- package/dist/components/ShapeEditor/_renderers/shapePainter.js.map +1 -0
- package/dist/components/ShapeEditor/_renderers/transformDriver.cjs +2 -0
- package/dist/components/ShapeEditor/_renderers/transformDriver.cjs.map +1 -0
- package/dist/components/ShapeEditor/_renderers/transformDriver.d.cts +55 -0
- package/dist/components/ShapeEditor/_renderers/transformDriver.d.ts +55 -0
- package/dist/components/ShapeEditor/_renderers/transformDriver.js +94 -0
- package/dist/components/ShapeEditor/_renderers/transformDriver.js.map +1 -0
- package/dist/components/ShapeEditor/_renderers/transformSession.cjs +2 -0
- package/dist/components/ShapeEditor/_renderers/transformSession.cjs.map +1 -0
- package/dist/components/ShapeEditor/_renderers/transformSession.d.cts +74 -0
- package/dist/components/ShapeEditor/_renderers/transformSession.d.ts +11 -5
- package/dist/components/ShapeEditor/_renderers/transformSession.js +135 -0
- package/dist/components/ShapeEditor/_renderers/transformSession.js.map +1 -0
- package/dist/components/ShapeEditor/_renderers/transformerLayer.cjs +2 -0
- package/dist/components/ShapeEditor/_renderers/transformerLayer.cjs.map +1 -0
- package/dist/components/ShapeEditor/_renderers/transformerLayer.d.cts +69 -0
- package/dist/components/ShapeEditor/_renderers/transformerLayer.d.ts +69 -0
- package/dist/components/ShapeEditor/_renderers/transformerLayer.js +248 -0
- package/dist/components/ShapeEditor/_renderers/transformerLayer.js.map +1 -0
- package/dist/components/ShapeEditor/_renderers/types.d.cts +129 -0
- package/dist/components/ShapeEditor/_renderers/types.d.ts +50 -27
- package/dist/components/ShapeEditor/_state/buildContextMenuItems.cjs +2 -0
- package/dist/components/ShapeEditor/_state/buildContextMenuItems.cjs.map +1 -0
- package/dist/components/ShapeEditor/_state/buildContextMenuItems.d.cts +26 -0
- package/dist/components/ShapeEditor/_state/buildContextMenuItems.d.ts +26 -0
- package/dist/components/ShapeEditor/_state/buildContextMenuItems.js +118 -0
- package/dist/components/ShapeEditor/_state/buildContextMenuItems.js.map +1 -0
- package/dist/components/ShapeEditor/_state/buildHotkeyActions.cjs +2 -0
- package/dist/components/ShapeEditor/_state/buildHotkeyActions.cjs.map +1 -0
- package/dist/components/ShapeEditor/_state/buildHotkeyActions.d.cts +42 -0
- package/dist/components/ShapeEditor/_state/buildHotkeyActions.d.ts +42 -0
- package/dist/components/ShapeEditor/_state/buildHotkeyActions.js +86 -0
- package/dist/components/ShapeEditor/_state/buildHotkeyActions.js.map +1 -0
- package/dist/components/ShapeEditor/_state/createInteractionController.cjs +2 -0
- package/dist/components/ShapeEditor/_state/createInteractionController.cjs.map +1 -0
- package/dist/components/ShapeEditor/_state/createInteractionController.d.cts +73 -0
- package/dist/components/ShapeEditor/_state/createInteractionController.d.ts +30 -11
- package/dist/components/ShapeEditor/_state/createInteractionController.js +398 -0
- package/dist/components/ShapeEditor/_state/createInteractionController.js.map +1 -0
- package/dist/components/ShapeEditor/_state/drawSessionState.cjs +2 -0
- package/dist/components/ShapeEditor/_state/drawSessionState.cjs.map +1 -0
- 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/drawSessionState.js +21 -0
- package/dist/components/ShapeEditor/_state/drawSessionState.js.map +1 -0
- package/dist/components/ShapeEditor/_state/useAssistant.cjs +2 -0
- package/dist/components/ShapeEditor/_state/useAssistant.cjs.map +1 -0
- package/dist/components/ShapeEditor/_state/useAssistant.d.cts +49 -0
- package/dist/components/ShapeEditor/_state/useAssistant.d.ts +4 -3
- package/dist/components/ShapeEditor/_state/useAssistant.js +178 -0
- package/dist/components/ShapeEditor/_state/useAssistant.js.map +1 -0
- package/dist/components/ShapeEditor/_state/useDrawSession.cjs +2 -0
- package/dist/components/ShapeEditor/_state/useDrawSession.cjs.map +1 -0
- package/dist/components/ShapeEditor/_state/useDrawSession.d.cts +64 -0
- package/dist/components/ShapeEditor/_state/useDrawSession.d.ts +9 -6
- package/dist/components/ShapeEditor/_state/useDrawSession.js +372 -0
- package/dist/components/ShapeEditor/_state/useDrawSession.js.map +1 -0
- package/dist/components/ShapeEditor/_state/useEditorDocument.cjs +2 -0
- package/dist/components/ShapeEditor/_state/useEditorDocument.cjs.map +1 -0
- package/dist/components/ShapeEditor/_state/useEditorDocument.d.cts +30 -0
- package/dist/components/ShapeEditor/_state/useEditorDocument.d.ts +8 -1
- package/dist/components/ShapeEditor/_state/useEditorDocument.js +173 -0
- package/dist/components/ShapeEditor/_state/useEditorDocument.js.map +1 -0
- package/dist/components/ShapeEditor/_state/useEditorHandle.cjs +2 -0
- package/dist/components/ShapeEditor/_state/useEditorHandle.cjs.map +1 -0
- package/dist/components/ShapeEditor/_state/useEditorHandle.d.cts +34 -0
- package/dist/components/ShapeEditor/_state/useEditorHandle.d.ts +34 -0
- package/dist/components/ShapeEditor/_state/useEditorHandle.js +95 -0
- package/dist/components/ShapeEditor/_state/useEditorHandle.js.map +1 -0
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.cjs +2 -0
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.cjs.map +1 -0
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.cts +25 -0
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.ts +5 -5
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.js +44 -0
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.js.map +1 -0
- package/dist/components/ShapeEditor/_state/useEditorView.cjs +2 -0
- package/dist/components/ShapeEditor/_state/useEditorView.cjs.map +1 -0
- package/dist/components/ShapeEditor/_state/useEditorView.d.cts +15 -0
- package/dist/components/ShapeEditor/_state/useEditorView.d.ts +15 -0
- package/dist/components/ShapeEditor/_state/useEditorView.js +45 -0
- package/dist/components/ShapeEditor/_state/useEditorView.js.map +1 -0
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.cjs +2 -0
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.cjs.map +1 -0
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.cts +89 -0
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.ts +48 -17
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.js +126 -0
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.js.map +1 -0
- package/dist/components/ShapeEditor/_state/useLatestRef.cjs +2 -0
- package/dist/components/ShapeEditor/_state/useLatestRef.cjs.map +1 -0
- package/dist/components/ShapeEditor/_state/useLatestRef.d.cts +7 -0
- package/dist/components/ShapeEditor/_state/useLatestRef.d.ts +7 -0
- package/dist/components/ShapeEditor/_state/useLatestRef.js +13 -0
- package/dist/components/ShapeEditor/_state/useLatestRef.js.map +1 -0
- package/dist/components/ShapeEditor/_state/useMinimapNavigation.cjs +2 -0
- package/dist/components/ShapeEditor/_state/useMinimapNavigation.cjs.map +1 -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/useMinimapNavigation.js +118 -0
- package/dist/components/ShapeEditor/_state/useMinimapNavigation.js.map +1 -0
- package/dist/components/ShapeEditor/_state/useMinimapSync.cjs +2 -0
- package/dist/components/ShapeEditor/_state/useMinimapSync.cjs.map +1 -0
- package/dist/components/ShapeEditor/_state/useMinimapSync.d.cts +26 -0
- package/dist/components/ShapeEditor/_state/useMinimapSync.d.ts +6 -4
- package/dist/components/ShapeEditor/_state/useMinimapSync.js +69 -0
- package/dist/components/ShapeEditor/_state/useMinimapSync.js.map +1 -0
- package/dist/components/ShapeEditor/_state/useSelectionActions.cjs +2 -0
- package/dist/components/ShapeEditor/_state/useSelectionActions.cjs.map +1 -0
- package/dist/components/ShapeEditor/_state/useSelectionActions.d.cts +31 -0
- package/dist/components/ShapeEditor/_state/useSelectionActions.d.ts +9 -6
- package/dist/components/ShapeEditor/_state/useSelectionActions.js +151 -0
- package/dist/components/ShapeEditor/_state/useSelectionActions.js.map +1 -0
- package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.cjs +2 -0
- package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.cjs.map +1 -0
- package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.d.cts +32 -0
- package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.d.ts +32 -0
- package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.js +64 -0
- package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.js.map +1 -0
- package/dist/components/ShapeEditor/_state/useSelectionModel.cjs +2 -0
- package/dist/components/ShapeEditor/_state/useSelectionModel.cjs.map +1 -0
- package/dist/components/ShapeEditor/_state/useSelectionModel.d.cts +24 -0
- package/dist/components/ShapeEditor/_state/useSelectionModel.d.ts +24 -0
- package/dist/components/ShapeEditor/_state/useSelectionModel.js +65 -0
- package/dist/components/ShapeEditor/_state/useSelectionModel.js.map +1 -0
- package/dist/components/ShapeEditor/_state/useViewportControls.cjs +2 -0
- package/dist/components/ShapeEditor/_state/useViewportControls.cjs.map +1 -0
- package/dist/components/ShapeEditor/_state/useViewportControls.d.cts +23 -0
- package/dist/components/ShapeEditor/_state/useViewportControls.d.ts +3 -3
- package/dist/components/ShapeEditor/_state/useViewportControls.js +79 -0
- package/dist/components/ShapeEditor/_state/useViewportControls.js.map +1 -0
- package/dist/components/ShapeEditor/index.d.cts +13 -0
- package/dist/components/ShapeEditor/index.d.ts +13 -8
- package/dist/components/Shortcut/Shortcut.cjs +2 -0
- package/dist/components/Shortcut/Shortcut.cjs.map +1 -0
- package/dist/components/Shortcut/Shortcut.d.cts +24 -0
- package/dist/components/Shortcut/Shortcut.d.ts +16 -0
- package/dist/components/Shortcut/Shortcut.js +22 -0
- package/dist/components/Shortcut/Shortcut.js.map +1 -0
- package/dist/components/Shortcut/index.d.cts +2 -0
- package/dist/components/Shortcut/index.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.cjs +2 -0
- package/dist/components/Skeleton/Skeleton.cjs.map +1 -0
- package/dist/components/Skeleton/Skeleton.d.cts +26 -0
- package/dist/components/Skeleton/Skeleton.d.ts +21 -2
- package/dist/components/Skeleton/Skeleton.js +20 -0
- package/dist/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/Skeleton/index.d.cts +2 -0
- package/dist/components/Skeleton/index.d.ts +2 -2
- package/dist/components/Slider/Slider.cjs +2 -0
- package/dist/components/Slider/Slider.cjs.map +1 -0
- package/dist/components/Slider/Slider.d.cts +58 -0
- package/dist/components/Slider/Slider.d.ts +52 -5
- package/dist/components/Slider/Slider.js +78 -0
- package/dist/components/Slider/Slider.js.map +1 -0
- package/dist/components/Slider/index.d.cts +2 -0
- package/dist/components/Slider/index.d.ts +2 -2
- package/dist/components/Spinner/Spinner.cjs +2 -0
- package/dist/components/Spinner/Spinner.cjs.map +1 -0
- package/dist/components/Spinner/Spinner.d.cts +32 -0
- package/dist/components/Spinner/Spinner.d.ts +32 -0
- package/dist/components/Spinner/Spinner.js +27 -0
- package/dist/components/Spinner/Spinner.js.map +1 -0
- package/dist/components/Spinner/index.d.cts +2 -0
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Switch/Switch.cjs +2 -0
- package/dist/components/Switch/Switch.cjs.map +1 -0
- package/dist/components/Switch/Switch.d.cts +31 -0
- package/dist/components/Switch/Switch.d.ts +22 -3
- package/dist/components/Switch/Switch.js +48 -0
- package/dist/components/Switch/Switch.js.map +1 -0
- package/dist/components/Switch/index.d.cts +2 -0
- package/dist/components/Switch/index.d.ts +2 -2
- package/dist/components/Tab/Tab.cjs +2 -0
- package/dist/components/Tab/Tab.cjs.map +1 -0
- package/dist/components/Tab/Tab.d.cts +76 -0
- package/dist/components/Tab/Tab.d.ts +70 -13
- package/dist/components/Tab/Tab.js +43 -0
- package/dist/components/Tab/Tab.js.map +1 -0
- package/dist/components/Tab/index.d.cts +2 -0
- package/dist/components/Tab/index.d.ts +2 -2
- package/dist/components/Tag/Tag.cjs +2 -0
- package/dist/components/Tag/Tag.cjs.map +1 -0
- package/dist/components/Tag/Tag.d.cts +50 -0
- package/dist/components/Tag/Tag.d.ts +37 -3
- package/dist/components/Tag/Tag.js +60 -0
- package/dist/components/Tag/Tag.js.map +1 -0
- package/dist/components/Tag/index.d.cts +2 -0
- package/dist/components/Tag/index.d.ts +2 -2
- package/dist/components/Tagbox/Tagbox.cjs +2 -0
- package/dist/components/Tagbox/Tagbox.cjs.map +1 -0
- package/dist/components/Tagbox/Tagbox.d.cts +65 -0
- package/dist/components/Tagbox/Tagbox.d.ts +48 -8
- package/dist/components/Tagbox/Tagbox.js +89 -0
- package/dist/components/Tagbox/Tagbox.js.map +1 -0
- package/dist/components/Tagbox/index.d.cts +2 -0
- package/dist/components/Tagbox/index.d.ts +2 -2
- package/dist/components/Textarea/Textarea.cjs +2 -0
- package/dist/components/Textarea/Textarea.cjs.map +1 -0
- package/dist/components/Textarea/Textarea.d.cts +49 -0
- package/dist/components/Textarea/Textarea.d.ts +36 -6
- package/dist/components/Textarea/Textarea.js +60 -0
- package/dist/components/Textarea/Textarea.js.map +1 -0
- package/dist/components/Textarea/index.d.cts +2 -0
- package/dist/components/Textarea/index.d.ts +2 -2
- package/dist/components/Textbox/Textbox.cjs +2 -0
- package/dist/components/Textbox/Textbox.cjs.map +1 -0
- package/dist/components/Textbox/Textbox.d.cts +47 -0
- package/dist/components/Textbox/Textbox.d.ts +36 -8
- package/dist/components/Textbox/Textbox.js +61 -0
- package/dist/components/Textbox/Textbox.js.map +1 -0
- package/dist/components/Textbox/index.d.cts +2 -0
- package/dist/components/Textbox/index.d.ts +2 -2
- package/dist/components/Toast/Toast.cjs +2 -0
- package/dist/components/Toast/Toast.cjs.map +1 -0
- package/dist/components/Toast/Toast.d.cts +100 -0
- package/dist/components/Toast/Toast.d.ts +88 -5
- package/dist/components/Toast/Toast.js +82 -0
- package/dist/components/Toast/Toast.js.map +1 -0
- package/dist/components/Toast/index.d.cts +2 -0
- package/dist/components/Toast/index.d.ts +2 -2
- package/dist/components/ToggleButton/ToggleButton.cjs +2 -0
- package/dist/components/ToggleButton/ToggleButton.cjs.map +1 -0
- package/dist/components/ToggleButton/ToggleButton.d.cts +41 -0
- package/dist/components/ToggleButton/ToggleButton.d.ts +26 -2
- package/dist/components/ToggleButton/ToggleButton.js +117 -0
- package/dist/components/ToggleButton/ToggleButton.js.map +1 -0
- package/dist/components/ToggleButton/index.d.cts +2 -0
- package/dist/components/ToggleButton/index.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.cjs +2 -0
- package/dist/components/Tooltip/Tooltip.cjs.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.cts +40 -0
- package/dist/components/Tooltip/Tooltip.d.ts +28 -1
- package/dist/components/Tooltip/Tooltip.js +62 -0
- package/dist/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/components/Tooltip/index.d.cts +2 -0
- package/dist/components/Tooltip/index.d.ts +2 -2
- package/dist/components/TruncatedText/TruncatedText.cjs +2 -0
- package/dist/components/TruncatedText/TruncatedText.cjs.map +1 -0
- package/dist/components/TruncatedText/TruncatedText.d.cts +44 -0
- package/dist/components/TruncatedText/TruncatedText.d.ts +44 -0
- package/dist/components/TruncatedText/TruncatedText.js +84 -0
- package/dist/components/TruncatedText/TruncatedText.js.map +1 -0
- package/dist/components/TruncatedText/index.d.cts +2 -0
- package/dist/components/TruncatedText/index.d.ts +2 -0
- package/dist/components/Typography/Typography.cjs +2 -0
- package/dist/components/Typography/Typography.cjs.map +1 -0
- package/dist/components/Typography/Typography.d.cts +33 -0
- package/dist/components/Typography/Typography.d.ts +21 -0
- package/dist/components/Typography/Typography.js +59 -0
- package/dist/components/Typography/Typography.js.map +1 -0
- package/dist/components/Typography/index.d.cts +2 -0
- package/dist/components/Typography/index.d.ts +2 -2
- package/dist/components/UploadArea/UploadArea.cjs +2 -0
- package/dist/components/UploadArea/UploadArea.cjs.map +1 -0
- package/dist/components/UploadArea/UploadArea.d.cts +82 -0
- package/dist/components/UploadArea/UploadArea.d.ts +66 -1
- package/dist/components/UploadArea/UploadArea.js +121 -0
- package/dist/components/UploadArea/UploadArea.js.map +1 -0
- package/dist/components/UploadArea/index.d.cts +2 -0
- package/dist/components/UploadArea/index.d.ts +2 -2
- package/dist/fonts.css +4 -0
- package/dist/illustration.cjs +1 -0
- package/dist/illustration.js +3 -0
- package/dist/index.cjs +1 -15
- package/dist/index.d.cts +58 -0
- package/dist/index.d.ts +58 -49
- package/dist/index.js +65 -8751
- package/dist/llms-full.txt +6663 -0
- package/dist/llms.txt +125 -0
- package/dist/shape-editor.cjs +1 -1
- package/dist/shape-editor.cjs.map +1 -1
- package/dist/shape-editor.js +10 -5732
- package/dist/shape-editor.js.map +1 -1
- package/dist/styles.css +5 -2
- package/dist/tailwind.css +434 -0
- package/dist/tokens/tokens.css +629 -611
- package/dist/utils/PortalEventBoundary.cjs +2 -0
- package/dist/utils/PortalEventBoundary.cjs.map +1 -0
- package/dist/utils/PortalEventBoundary.d.cts +13 -0
- package/dist/utils/PortalEventBoundary.d.ts +13 -0
- package/dist/utils/PortalEventBoundary.js +12 -0
- package/dist/utils/PortalEventBoundary.js.map +1 -0
- package/dist/utils/Primitive.cjs +2 -0
- package/dist/utils/Primitive.cjs.map +1 -0
- package/dist/utils/Primitive.d.cts +9 -0
- package/dist/utils/Primitive.d.ts +9 -0
- package/dist/utils/Primitive.js +15 -0
- package/dist/utils/Primitive.js.map +1 -0
- package/dist/utils/cn.d.cts +12 -0
- package/dist/utils/cn.d.ts +10 -0
- package/dist/utils/dataAttributes.d.cts +7 -0
- package/dist/utils/dataAttributes.d.ts +7 -0
- package/dist/utils/keyboard.cjs +2 -0
- package/dist/utils/keyboard.cjs.map +1 -0
- package/dist/utils/keyboard.d.cts +3 -0
- package/dist/utils/keyboard.d.ts +3 -0
- package/dist/utils/keyboard.js +14 -0
- package/dist/utils/keyboard.js.map +1 -0
- package/dist/utils/popupArrow.cjs +2 -0
- package/dist/utils/popupArrow.cjs.map +1 -0
- package/dist/utils/popupArrow.d.cts +14 -0
- package/dist/utils/popupArrow.d.ts +14 -0
- package/dist/utils/popupArrow.js +26 -0
- package/dist/utils/popupArrow.js.map +1 -0
- package/dist/utils/popupPositioning.cjs +2 -0
- package/dist/utils/popupPositioning.cjs.map +1 -0
- package/dist/utils/popupPositioning.d.cts +11 -0
- package/dist/utils/popupPositioning.d.ts +11 -0
- package/dist/utils/popupPositioning.js +25 -0
- package/dist/utils/popupPositioning.js.map +1 -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/useComposedRefs.cjs +2 -0
- package/dist/utils/useComposedRefs.cjs.map +1 -0
- package/dist/utils/useComposedRefs.d.cts +6 -0
- package/dist/utils/useComposedRefs.d.ts +6 -0
- package/dist/utils/useComposedRefs.js +22 -0
- package/dist/utils/useComposedRefs.js.map +1 -0
- package/dist/utils/useControllableState.cjs +2 -0
- package/dist/utils/useControllableState.cjs.map +1 -0
- package/dist/utils/useControllableState.d.cts +17 -0
- package/dist/utils/useControllableState.d.ts +17 -0
- package/dist/utils/useControllableState.js +13 -0
- package/dist/utils/useControllableState.js.map +1 -0
- package/dist/utils/useModalFocus.cjs +2 -0
- package/dist/utils/useModalFocus.cjs.map +1 -0
- package/dist/utils/useModalFocus.d.cts +31 -0
- package/dist/utils/useModalFocus.d.ts +31 -0
- package/dist/utils/useModalFocus.js +28 -0
- package/dist/utils/useModalFocus.js.map +1 -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 +2 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.js +59 -0
- package/dist/utils.js.map +1 -0
- package/package.json +68 -28
- package/dist/Button-C_GP2mJ-.cjs +0 -2
- package/dist/Button-C_GP2mJ-.cjs.map +0 -1
- package/dist/Button-CzqDPqUT.js +0 -8600
- package/dist/Button-CzqDPqUT.js.map +0 -1
- package/dist/IconButton-B-MspnYP.cjs +0 -2
- package/dist/IconButton-B-MspnYP.cjs.map +0 -1
- package/dist/IconButton-DTGSfJme.js +0 -560
- package/dist/IconButton-DTGSfJme.js.map +0 -1
- package/dist/Switch-B2irM7Pp.js +0 -2656
- package/dist/Switch-B2irM7Pp.js.map +0 -1
- package/dist/Switch-CMKBdqkX.cjs +0 -42
- package/dist/Switch-CMKBdqkX.cjs.map +0 -1
- package/dist/comment.cjs.map +0 -1
- package/dist/comment.js.map +0 -1
- package/dist/components/Chips/index.d.ts +0 -19
- package/dist/components/DatePicker/Calendar.d.ts +0 -27
- package/dist/components/DatePicker/DatePicker.d.ts +0 -119
- package/dist/components/DatePicker/date.d.ts +0 -24
- package/dist/components/DatePicker/index.d.ts +0 -4
- package/dist/components/ShapeEditor/_model/imageFetch.d.ts +0 -9
- package/dist/components/ShapeEditor/_model/konva.d.ts +0 -4
- package/dist/components/ShapeEditor/_model/overlays.test.d.ts +0 -1
- package/dist/components/ShapeEditor/_renderers/KonvaRenderer.d.ts +0 -124
- package/dist/components/Table/Table.d.ts +0 -61
- package/dist/components/Table/index.d.ts +0 -2
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataGridRows.js","names":[],"sources":["../../../src/components/DataGrid/DataGridRows.tsx"],"sourcesContent":["import { flexRender, type Row } from \"@tanstack/react-table\";\nimport { useVirtualizer, type VirtualItem } from \"@tanstack/react-virtual\";\nimport type { KeyboardEvent, MouseEvent, ReactNode, Ref, RefObject } from \"react\";\nimport { memo, useEffect, useId, useState } from \"react\";\nimport { cn } from \"@/utils/cn\";\nimport { DataGridCell, DataGridRow, resolveDataGridValue } from \"./DataGridPrimitives\";\n\nexport interface DataGridDataRowProps<TData> {\n row: Row<TData>;\n virtualIndex?: number;\n virtualStart?: number;\n measureRef?: Ref<HTMLDivElement>;\n interactive?: boolean;\n selected?: boolean;\n disabled?: boolean;\n className?: string;\n onRowClick?: (row: TData, index: number, event: MouseEvent<HTMLDivElement>) => void;\n /** row.getIsExpanded() 시 행 아래에 렌더할 커스텀 상세 패널 */\n expandedContent?: ReactNode;\n /** 펼칠 수 있는 행인지 — aria-expanded 노출 여부를 정한다 */\n expandable?: boolean;\n /** 비활성/펼침 가능 여부를 반영해 부모에서 계산한 포커스 가능 상태 */\n focusable?: boolean;\n /**\n * 이 행의 React Table 상태(선택/펼침). 셀은 row.getIsSelected() 같은 메서드로\n * 상태를 직접 읽는데, 그 값이 바뀌어도 row 객체 자체는 그대로라 memo가 렌더를\n * 건너뛴다 — 상태를 프롭으로 올려야 체크박스 같은 셀이 다시 그려진다.\n */\n rowSelected?: boolean;\n rowExpanded?: boolean;\n /**\n * 셀 렌더러가 담긴 컬럼 정의 — 렌더에는 쓰지 않고 memo 비교에만 쓴다.\n * 셀이 외부 상태를 클로저로 읽는 경우(검토 상태 등) 소비자는 컬럼을 그 상태\n * 의존 useMemo로 만든다. 그 identity 변화가 \"셀 출력이 바뀔 수 있다\"는\n * 신호인데, row 객체는 그대로라 이 프롭 없이는 memo가 렌더를 건너뛴다.\n */\n columns?: unknown;\n /**\n * 보이는 컬럼 id를 순서대로 이은 키 — 렌더에는 쓰지 않고 memo 비교에만 쓴다.\n * 컬럼 표시/숨김·순서가 바뀌면 row.getVisibleCells() 결과가 달라지지만 row\n * 객체는 그대로라, 이 프롭 없이는 헤더만 바뀌고 본문 셀은 이전 그대로 남는다.\n */\n visibleColumnKey?: string;\n /** 셀의 ARIA 롤 — 펼침을 쓰는 그리드(treegrid)에서는 gridcell이어야 한다 */\n cellRole?: \"cell\" | \"gridcell\";\n /** 로빙 tabindex의 탭 스톱 여부 — 그리드 전체에서 한 행만 true (미지정 시 탭 스톱) */\n tabStop?: boolean;\n /** 위/아래 화살표로 행 사이 포커스를 옮길 때 호출 */\n onNavigate?: (rowId: string, delta: -1 | 1) => void;\n /** 행(또는 그 안의 요소)이 포커스를 받아 탭 스톱을 옮겨야 할 때 호출 */\n onFocusRow?: (rowId: string) => void;\n}\n\nfunction DataGridDataRowBase<TData>({\n row,\n virtualIndex,\n virtualStart,\n measureRef,\n interactive,\n selected,\n disabled,\n className,\n onRowClick,\n expandedContent,\n expandable,\n focusable,\n rowSelected,\n rowExpanded,\n cellRole,\n tabStop,\n onNavigate,\n onFocusRow,\n}: DataGridDataRowProps<TData>) {\n const { original, id: rowId } = row;\n const index = row.index;\n const panelId = useId();\n const expanded = Boolean(rowExpanded);\n // 클릭 콜백이 있으면 Enter/Space로 행을 활성화할 수 있다\n const activatable = Boolean(onRowClick) && !disabled;\n // 가상화 중에만 행+패널을 감싸는 래퍼를 둔다 — 이 래퍼가 절대배치·측정의 기준이 된다.\n // 펼침 여부로 래퍼를 넣고 빼면 행 엘리먼트가 리마운트되어 포커스가 날아가므로,\n // 비가상 경로에서는 패널을 행의 형제로 붙인다.\n const wrapped = virtualStart !== undefined;\n\n const handleKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {\n // 셀 안의 입력·버튼에서 올라온 키는 가로채지 않는다 — 텍스트 입력의 스페이스,\n // 체크박스의 스페이스, 셀렉트의 화살표가 그대로 살아 있어야 한다\n if (event.target !== event.currentTarget) return;\n\n if (onNavigate && (event.key === \"ArrowDown\" || event.key === \"ArrowUp\")) {\n event.preventDefault();\n onNavigate(rowId, event.key === \"ArrowDown\" ? 1 : -1);\n return;\n }\n // treegrid 관례 — 오른쪽 화살표로 펼치고 왼쪽 화살표로 접는다\n if (expandable && (event.key === \"ArrowRight\" || event.key === \"ArrowLeft\")) {\n const shouldExpand = event.key === \"ArrowRight\";\n if (shouldExpand === expanded) return;\n event.preventDefault();\n row.toggleExpanded(shouldExpand);\n return;\n }\n if (activatable && (event.key === \"Enter\" || event.key === \" \")) {\n event.preventDefault();\n // click()을 통해 기존 onRowClick의 MouseEvent API를 유지하면서 키보드도 같은 경로로 활성화한다.\n event.currentTarget.click();\n }\n };\n\n const rowEl = (\n <DataGridRow\n // 래퍼가 없을 때만 행 자체가 측정 대상 (비가상·비펼침 경로)\n ref={wrapped ? undefined : measureRef}\n // 화살표 이동 후 대상 행에 포커스를 넣을 때 DataGrid가 찾는 마커\n data-datagrid-row-id={rowId}\n // React Table 선택/펼침 상태 — CSS에서 잡을 수 있게 열어 두고, 동시에\n // 이 값이 프롭으로 들어와야 상태가 바뀔 때 memo가 행을 다시 그린다.\n data-row-selected={rowSelected ? \"\" : undefined}\n data-row-expanded={rowExpanded ? \"\" : undefined}\n interactive={interactive}\n selected={selected}\n disabled={disabled}\n className={className}\n // 펼칠 수 있는 행만 상태를 알린다 — 펼침을 쓰지 않는 그리드에는 붙지 않는다\n aria-expanded={expandable ? expanded : undefined}\n aria-controls={expandedContent != null ? panelId : undefined}\n // 로빙 tabindex — 그리드 전체가 탭 한 번으로 진입되고, 이후는 화살표로 이동한다\n tabIndex={focusable ? (tabStop === false ? -1 : 0) : undefined}\n onClick={onRowClick ? (event) => onRowClick(original, index, event) : undefined}\n onKeyDown={focusable ? handleKeyDown : undefined}\n onFocus={focusable && onFocusRow ? () => onFocusRow(rowId) : undefined}\n >\n {row.getVisibleCells().map((cell) => {\n const { meta } = cell.column.columnDef;\n\n return (\n <DataGridCell\n key={cell.id}\n role={cellRole}\n align={meta?.cellAlign ?? meta?.align}\n className={cn(\n meta?.className,\n resolveDataGridValue(meta?.cellClassName, original, index),\n )}\n >\n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n </DataGridCell>\n );\n })}\n </DataGridRow>\n );\n\n const panelEl = expandedContent != null && (\n // 패널도 rowgroup의 자식이라 행/셀로 노출한다 — HTML table의 colspan 상세 행에 해당\n // biome-ignore lint/a11y/useSemanticElements: 플렉스 폭·가상화를 위해 div 기반으로 구성 — 시맨틱 table 요소 대신 ARIA role 사용\n // biome-ignore lint/a11y/useFocusableInteractive: 상세 패널 행은 구조 표현용이고 포커스는 안쪽 콘텐츠가 받는다\n <div role=\"row\" className=\"aivex:w-full\">\n {/* 상세 패널은 행 전체를 차지하는 단일 셀 */}\n <div role={cellRole ?? \"cell\"} id={panelId} className=\"aivex:w-full\">\n {expandedContent}\n </div>\n </div>\n );\n\n // 비가상 경로는 래퍼 없이 행과 패널을 형제로 둔다 — DOM 구조가 펼침 여부와 무관하게 고정된다\n if (!wrapped) {\n return (\n <>\n {rowEl}\n {panelEl}\n </>\n );\n }\n\n return (\n // 가상화에서는 이 래퍼가 절대배치·측정 대상 — 펼침 패널 높이까지 함께 실측된다.\n // role=\"presentation\"으로 rowgroup과 row 사이에 낀 래퍼를 접근성 트리에서 지운다.\n <div\n ref={measureRef}\n data-index={virtualIndex}\n role=\"presentation\"\n className=\"aivex:flex aivex:w-full aivex:flex-col\"\n style={{\n position: \"absolute\",\n top: 0,\n left: 0,\n width: \"100%\",\n transform: `translateY(${virtualStart}px)`,\n }}\n >\n {rowEl}\n {panelEl}\n </div>\n );\n}\n\n// 스크롤 리렌더에서 프롭이 동일한 행을 건너뛰기 위한 memo — 창에 새로 들어온 행만 렌더된다\nexport const DataGridDataRow = memo(DataGridDataRowBase) as typeof DataGridDataRowBase;\n\nexport interface DataGridVirtualizedRowsProps<TData> {\n rows: Row<TData>[];\n viewportRef: RefObject<HTMLDivElement | null>;\n estimateRowHeight?: number;\n overscan?: number;\n /** 로빙 tabindex의 현재 포커스 행 id */\n activeRowId?: string | null;\n focusableRowIds: Set<string>;\n pendingFocusRowId?: string | null;\n focusRowElement: (rowId: string) => boolean;\n onFocusSettled: () => void;\n scrollToRowRef: RefObject<((index: number) => void) | null>;\n renderRow: (\n row: Row<TData>,\n virtualItem: VirtualItem,\n measureRef: Ref<HTMLDivElement>,\n tabStop: boolean,\n ) => ReactNode;\n}\n\n// 가상화기를 바디 전용 컴포넌트로 격리해 스크롤 리렌더를 행 창 계산에만 한정한다\nexport function DataGridVirtualizedRows<TData>({\n rows,\n viewportRef,\n estimateRowHeight,\n overscan,\n activeRowId,\n focusableRowIds,\n pendingFocusRowId,\n focusRowElement,\n onFocusSettled,\n scrollToRowRef,\n renderRow,\n}: DataGridVirtualizedRowsProps<TData>) {\n // 뷰포트는 조상 노드라 마운트 시점엔 ref가 null — 커밋 후 상태로 승격해야 구독이 시작된다\n const [scrollElement, setScrollElement] = useState<HTMLDivElement | null>(null);\n useEffect(() => {\n setScrollElement(viewportRef.current);\n }, [viewportRef]);\n\n const rowVirtualizer = useVirtualizer({\n count: rows.length,\n getScrollElement: () => scrollElement,\n estimateSize: () => estimateRowHeight ?? 48,\n overscan: overscan ?? 6,\n });\n scrollToRowRef.current = (index) => rowVirtualizer.scrollToIndex(index, { align: \"auto\" });\n useEffect(\n () => () => {\n scrollToRowRef.current = null;\n },\n [scrollToRowRef],\n );\n\n const virtualItems = rowVirtualizer.getVirtualItems();\n // 탭 스톱은 마운트된 행 중에서 고른다 — 포커스 행이 창 밖으로 밀려나도\n // 창의 첫 행이 탭 스톱을 이어받아 그리드가 탭으로 도달 가능한 상태를 유지한다\n const windowRowIds = virtualItems.map((virtualItem) => rows[virtualItem.index]?.id);\n const tabStopId =\n activeRowId != null && windowRowIds.includes(activeRowId)\n ? activeRowId\n : windowRowIds.find((rowId) => rowId != null && focusableRowIds.has(rowId));\n const pendingFocusMounted = pendingFocusRowId != null && windowRowIds.includes(pendingFocusRowId);\n\n useEffect(() => {\n if (!pendingFocusMounted || pendingFocusRowId == null) return;\n if (focusRowElement(pendingFocusRowId)) onFocusSettled();\n }, [focusRowElement, onFocusSettled, pendingFocusMounted, pendingFocusRowId]);\n\n return (\n <div\n className=\"aivex:relative aivex:w-full aivex:shrink-0\"\n style={{ height: rowVirtualizer.getTotalSize() }}\n >\n {virtualItems.map((virtualItem) => {\n const row = rows[virtualItem.index];\n\n return renderRow(row, virtualItem, rowVirtualizer.measureElement, row?.id === tabStopId);\n })}\n </div>\n );\n}\n"],"mappings":";;;;;;;;AAqDA,SAAS,EAA2B,EAClC,QACA,iBACA,iBACA,eACA,gBACA,aACA,aACA,cACA,eACA,oBACA,eACA,cACA,gBACA,gBACA,aACA,YACA,eACA,iBAC8B;CAC9B,IAAM,EAAE,aAAU,IAAI,MAAU,GAC1B,IAAQ,EAAI,OACZ,IAAU,GAAO,EACjB,IAAW,EAAQ,GAEnB,IAAc,EAAQ,KAAe,CAAC,GAItC,IAAU,MAAiB,KAAA,GA2B3B,IACJ,kBAAC,GAAD;EAEE,KAAK,IAAU,KAAA,IAAY;EAE3B,wBAAsB;EAGtB,qBAAmB,IAAc,KAAK,KAAA;EACtC,qBAAmB,IAAc,KAAK,KAAA;EACzB;EACH;EACA;EACC;EAEX,iBAAe,IAAa,IAAW,KAAA;EACvC,iBAAe,KAAmB,OAAiB,KAAA,IAAV;EAEzC,UAAU,IAAa,MAAY,KAAQ,KAAK,IAAK,KAAA;EACrD,SAAS,KAAc,MAAU,EAAW,GAAU,GAAO,EAAM,GAAG,KAAA;EACtE,WAAW,KA7CQ,MAAyC;AAG1D,SAAM,WAAW,EAAM,eAE3B;QAAI,MAAe,EAAM,QAAQ,eAAe,EAAM,QAAQ,YAAY;AAExE,KADA,EAAM,gBAAgB,EACtB,EAAW,GAAO,EAAM,QAAQ,cAAc,IAAI,GAAG;AACrD;;AAGF,QAAI,MAAe,EAAM,QAAQ,gBAAgB,EAAM,QAAQ,cAAc;KAC3E,IAAM,IAAe,EAAM,QAAQ;AACnC,SAAI,MAAiB,EAAU;AAE/B,KADA,EAAM,gBAAgB,EACtB,EAAI,eAAe,EAAa;AAChC;;AAEF,IAAI,MAAgB,EAAM,QAAQ,WAAW,EAAM,QAAQ,SACzD,EAAM,gBAAgB,EAEtB,EAAM,cAAc,OAAO;;MAwBY,KAAA;EACvC,SAAS,KAAa,UAAmB,EAAW,EAAM,GAAG,KAAA;YAE5D,EAAI,iBAAiB,CAAC,KAAK,MAAS;GACnC,IAAM,EAAE,YAAS,EAAK,OAAO;AAE7B,UACE,kBAAC,GAAD;IAEE,MAAM;IACN,OAAO,GAAM,aAAa,GAAM;IAChC,WAAW,EACT,GAAM,WACN,EAAqB,GAAM,eAAe,GAAU,EAAM,CAC3D;cAEA,EAAW,EAAK,OAAO,UAAU,MAAM,EAAK,YAAY,CAAC;IAC7C,EATR,EAAK,GASG;IAEjB;EACU,CAAA,EAGV,IAAU,KAAmB,QAIjC,kBAAC,OAAD;EAAK,MAAK;EAAM,WAAU;YAExB,kBAAC,OAAD;GAAK,MAAM,KAAY;GAAQ,IAAI;GAAS,WAAU;aACnD;GACG,CAAA;EACF,CAAA;AAaR,QATK,IAYH,kBAAC,OAAD;EACE,KAAK;EACL,cAAY;EACZ,MAAK;EACL,WAAU;EACV,OAAO;GACL,UAAU;GACV,KAAK;GACL,MAAM;GACN,OAAO;GACP,WAAW,cAAc,EAAa;GACvC;YAXH,CAaG,GACA,EACG;MAzBJ,kBAAA,GAAA,EAAA,UAAA,CACG,GACA,EACA,EAAA,CAAA;;AA2BT,IAAa,IAAkB,EAAK,EAAoB;AAuBxD,SAAgB,EAA+B,EAC7C,SACA,gBACA,sBACA,aACA,gBACA,oBACA,sBACA,oBACA,mBACA,mBACA,gBACsC;CAEtC,IAAM,CAAC,GAAe,KAAoB,EAAgC,KAAK;AAC/E,SAAgB;AACd,IAAiB,EAAY,QAAQ;IACpC,CAAC,EAAY,CAAC;CAEjB,IAAM,IAAiB,EAAe;EACpC,OAAO,EAAK;EACZ,wBAAwB;EACxB,oBAAoB,KAAqB;EACzC,UAAU,KAAY;EACvB,CAAC;AAEF,CADA,EAAe,WAAW,MAAU,EAAe,cAAc,GAAO,EAAE,OAAO,QAAQ,CAAC,EAC1F,cACc;AACV,IAAe,UAAU;IAE3B,CAAC,EAAe,CACjB;CAED,IAAM,IAAe,EAAe,iBAAiB,EAG/C,IAAe,EAAa,KAAK,MAAgB,EAAK,EAAY,QAAQ,GAAG,EAC7E,IACJ,KAAe,QAAQ,EAAa,SAAS,EAAY,GACrD,IACA,EAAa,MAAM,MAAU,KAAS,QAAQ,EAAgB,IAAI,EAAM,CAAC,EACzE,IAAsB,KAAqB,QAAQ,EAAa,SAAS,EAAkB;AAOjG,QALA,QAAgB;AACV,GAAC,KAAuB,KAAqB,QAC7C,EAAgB,EAAkB,IAAE,GAAgB;IACvD;EAAC;EAAiB;EAAgB;EAAqB;EAAkB,CAAC,EAG3E,kBAAC,OAAD;EACE,WAAU;EACV,OAAO,EAAE,QAAQ,EAAe,cAAc,EAAE;YAE/C,EAAa,KAAK,MAAgB;GACjC,IAAM,IAAM,EAAK,EAAY;AAE7B,UAAO,EAAU,GAAK,GAAa,EAAe,gBAAgB,GAAK,OAAO,EAAU;IACxF;EACE,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type { CellContext, ColumnDef, ColumnFiltersState, ColumnOrderState, ColumnPinningState, ColumnSizingState, ExpandedState, GroupingState, PaginationState, Row, RowSelectionState, SortingState, Table as ReactTableInstance, TableOptions, VisibilityState, } from "@tanstack/react-table";
|
|
2
|
+
export { getCoreRowModel, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGroupedRowModel, getPaginationRowModel, getSortedRowModel, } from "@tanstack/react-table";
|
|
3
|
+
export type { DataGridProps } from "./DataGrid.cjs";
|
|
4
|
+
export { DataGrid } from "./DataGrid.cjs";
|
|
5
|
+
export type { DataGridColumnSettingsOptions } from "./DataGridColumnSettings.cjs";
|
|
6
|
+
export { DataGridColumnSettings } from "./DataGridColumnSettings.cjs";
|
|
7
|
+
export type { DataGridAlign, DataGridBodyProps, DataGridCellProps, DataGridEmptyProps, DataGridHeaderCellProps, DataGridHeaderProps, DataGridInfiniteTriggerProps, DataGridLoadingProps, DataGridRootProps, DataGridRowProps, DataGridVariant, DataGridViewportProps, } from "./DataGridPrimitives.cjs";
|
|
8
|
+
export { DataGridBody, DataGridCell, DataGridEmpty, DataGridHeader, DataGridHeaderCell, DataGridInfiniteTrigger, DataGridLoading, DataGridRoot, DataGridRow, DataGridViewport, } from "./DataGridPrimitives.cjs";
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export type { CellContext, ColumnDef, ColumnFiltersState, ColumnOrderState, ColumnPinningState, ColumnSizingState, ExpandedState, GroupingState, PaginationState, Row, RowSelectionState, SortingState, Table as ReactTableInstance, TableOptions, VisibilityState, } from "@tanstack/react-table";
|
|
2
2
|
export { getCoreRowModel, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGroupedRowModel, getPaginationRowModel, getSortedRowModel, } from "@tanstack/react-table";
|
|
3
|
-
export type {
|
|
4
|
-
export { DataGrid
|
|
3
|
+
export type { DataGridProps } from "./DataGrid.js";
|
|
4
|
+
export { DataGrid } from "./DataGrid.js";
|
|
5
|
+
export type { DataGridColumnSettingsOptions } from "./DataGridColumnSettings.js";
|
|
6
|
+
export { DataGridColumnSettings } from "./DataGridColumnSettings.js";
|
|
7
|
+
export type { DataGridAlign, DataGridBodyProps, DataGridCellProps, DataGridEmptyProps, DataGridHeaderCellProps, DataGridHeaderProps, DataGridInfiniteTriggerProps, DataGridLoadingProps, DataGridRootProps, DataGridRowProps, DataGridVariant, DataGridViewportProps, } from "./DataGridPrimitives.js";
|
|
8
|
+
export { DataGridBody, DataGridCell, DataGridEmpty, DataGridHeader, DataGridHeaderCell, DataGridInfiniteTrigger, DataGridLoading, DataGridRoot, DataGridRow, DataGridViewport, } from "./DataGridPrimitives.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./DataGridColumnSettings.js";
|
|
3
|
+
import "./DataGridPrimitives.js";
|
|
4
|
+
import "./DataGrid.js";
|
|
5
|
+
import { getCoreRowModel as e, getExpandedRowModel as t, getFacetedMinMaxValues as n, getFacetedRowModel as r, getFacetedUniqueValues as i, getFilteredRowModel as a, getGroupedRowModel as o, getPaginationRowModel as s, getSortedRowModel as c } from "@tanstack/react-table";
|
|
6
|
+
export { e as getCoreRowModel, t as getExpandedRowModel, n as getFacetedMinMaxValues, r as getFacetedRowModel, i as getFacetedUniqueValues, a as getFilteredRowModel, o as getGroupedRowModel, s as getPaginationRowModel, c as getSortedRowModel };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../Icon/index.cjs`),t=require(`../../utils.cjs`),n=require(`../../utils/PortalEventBoundary.cjs`),r=require(`../Button/Button.cjs`),i=require(`../../utils/useComposedRefs.cjs`),a=require(`../Overlay/Overlay.cjs`),o=require(`../../utils/useModalFocus.cjs`);let s=require(`react`),c=require(`react/jsx-runtime`),l=require(`@base-ui/react/alert-dialog`);var u={default:{component:e.CheckCircleFilledIcon,className:`aivex:text-icon-success`},warning:{component:e.WarningTriangleFilledIcon,className:`aivex:text-icon-warning`}};function d({open:e,defaultOpen:r,onOpenChange:d,variant:m=`default`,title:h,description:g,children:_,cancelButton:v,confirmButton:y,showIcon:b=!1,ref:x}){let S=(0,s.useRef)(null),C=(0,s.useRef)(null),w=i.useComposedRefs(x,C),T=o.useModalFocus({open:e,modal:!0,initialFocus:v?S:!0,finalFocus:void 0,popupRef:C}),E=u[m],D=b?E.component:null,O=!!D,k=m===`warning`?`danger`:`primary`;return(0,c.jsx)(l.AlertDialog.Root,{open:e,defaultOpen:r,onOpenChange:d,children:(0,c.jsx)(n.PortalEventBoundary,{children:(0,c.jsxs)(l.AlertDialog.Portal,{children:[(0,c.jsx)(l.AlertDialog.Backdrop,{forceRender:!0,render:(0,c.jsx)(a.Overlay,{variant:`dim`})}),(0,c.jsx)(l.AlertDialog.Popup,{ref:w,initialFocus:T.initialFocus,finalFocus:T.finalFocus,onFocusCapture:T.onFocusCapture,className:`aivex:fixed aivex:left-1/2 aivex:top-1/2 aivex:z-(--aivex-z-modal) aivex:w-[calc(100vw-32px)] aivex:max-w-[384px] aivex:-translate-x-1/2 aivex:-translate-y-1/2 aivex:outline-none`,children:(0,c.jsxs)(`div`,{className:`aivex:flex aivex:w-full aivex:flex-col aivex:items-start aivex:gap-2xl aivex:rounded-2xl aivex:border aivex:border-border-subtle aivex:bg-bg-primary aivex:p-2xl aivex:shadow-xl`,children:[(0,c.jsxs)(`div`,{className:t.cn(`aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs aivex:px-md aivex:py-xs`,O?`aivex:items-center aivex:justify-center aivex:text-center`:`aivex:items-start aivex:text-left`),children:[D&&(0,c.jsx)(`span`,{className:t.cn(`aivex:flex aivex:h-12 aivex:w-12 aivex:shrink-0 aivex:items-center aivex:justify-center aivex:leading-none`,E.className),children:(0,c.jsx)(D,{size:28})}),(0,c.jsx)(l.AlertDialog.Title,{className:`aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary`,children:h}),g&&(0,c.jsx)(l.AlertDialog.Description,{className:`aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-body-lg-regular aivex:text-text-secondary`,children:g}),_]}),(v||y)&&(0,c.jsxs)(`div`,{className:`aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-lg`,children:[v&&(0,c.jsx)(f,{...v,buttonRef:S}),y&&(0,c.jsx)(p,{...y,defaultColor:k})]})]})})]})})})}function f({children:e,onClick:t,buttonRef:n,...i}){return(0,c.jsx)(l.AlertDialog.Close,{ref:n,render:(0,c.jsx)(r.Button,{variant:`solid`,color:`secondary`,size:`lg`,className:`aivex:min-w-0 aivex:basis-0 aivex:flex-1`,onClick:e=>{t?.(e)},...i,children:e})})}function p({children:e,defaultColor:t,onClick:n,...i}){return(0,c.jsx)(r.Button,{variant:`solid`,color:t,size:`lg`,className:`aivex:min-w-0 aivex:basis-0 aivex:flex-1`,onClick:e=>{n?.(e)},...i,children:e})}exports.Dialog=d;
|
|
2
|
+
//# sourceMappingURL=Dialog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dialog.cjs","names":[],"sources":["../../../src/components/Dialog/Dialog.tsx"],"sourcesContent":["import { AlertDialog as DialogPrimitive } from \"@base-ui/react/alert-dialog\";\nimport { type ReactNode, type Ref, useRef } from \"react\";\nimport { Button, type ButtonProps } from \"@/components/Button\";\nimport { CheckCircleFilledIcon, WarningTriangleFilledIcon } from \"@/components/Icon\";\nimport { Overlay } from \"@/components/Overlay\";\nimport { cn } from \"@/utils/cn\";\nimport type { DataAttributes } from \"@/utils/dataAttributes\";\nimport { PortalEventBoundary } from \"@/utils/PortalEventBoundary\";\nimport { useComposedRefs } from \"@/utils/useComposedRefs\";\nimport { useModalFocus } from \"@/utils/useModalFocus\";\n\n/**\n * Dialog 톤. default는 확인 버튼이 primary, warning은 확인 버튼이 danger 색이 된다\n * (showIcon이면 아이콘도 성공/경고 아이콘으로 바뀐다).\n */\nexport type DialogVariant = \"default\" | \"warning\";\n/** Dialog 하단 버튼 — Button props에서 색·크기·스타일은 Dialog가 고정하고 라벨은 children으로 받는다. */\nexport interface DialogButtonProps\n extends Omit<\n ButtonProps,\n \"children\" | \"className\" | \"color\" | \"ref\" | \"render\" | \"size\" | \"style\" | \"variant\"\n >,\n DataAttributes {\n /** 버튼 라벨 */\n children: ReactNode;\n}\n\n/** 확인 버튼 props. 누른다고 자동으로 닫히지 않으니 onClick에서 open을 false로 바꾼다. */\nexport type DialogConfirmButtonProps = DialogButtonProps;\n\ninterface DialogConfirmButtonInternalProps extends DialogConfirmButtonProps {\n defaultColor: ButtonProps[\"color\"];\n}\n\nexport interface DialogProps {\n /** 열림 상태(제어). onOpenChange와 함께 쓴다. */\n open?: boolean;\n /** 초기 열림 상태(비제어). */\n defaultOpen?: boolean;\n /**\n * 열림 상태가 바뀔 때 호출 — Esc·취소 버튼 모두 false로 알린다.\n * 두 번째 인자의 `reason`(\"escape-key\"·\"close-press\" 등)으로 원인을 구분하고\n * `cancel()`로 닫힘을 막는다.\n */\n onOpenChange?: DialogPrimitive.Root.Props[\"onOpenChange\"];\n /**\n * 톤. warning이면 확인 버튼이 danger 색이 된다(삭제 등 되돌릴 수 없는 동작).\n * @default \"default\"\n */\n variant?: DialogVariant;\n /** 제목(필수) — 다이얼로그의 접근성 이름이 된다. 줄바꿈(\\n)을 그대로 표시한다. */\n title: ReactNode;\n /** 제목 아래 설명 — 접근성 설명(aria-describedby)으로 연결된다. */\n description?: ReactNode;\n /** 설명 아래에 덧붙이는 추가 내용(체크박스 등). */\n children?: ReactNode;\n /** 취소 버튼. 누르면 다이얼로그가 닫힌다(onOpenChange(false) 호출). */\n cancelButton?: DialogButtonProps;\n /** 확인 버튼. 자동으로 닫히지 않으니 onClick에서 직접 닫는다. */\n confirmButton?: DialogConfirmButtonProps;\n /**\n * 제목 위에 톤 아이콘(default=성공, warning=경고)을 표시하고 내용을 가운데 정렬한다.\n * @default false\n */\n showIcon?: boolean;\n ref?: Ref<HTMLDivElement>;\n}\n\nconst iconMap = {\n default: { component: CheckCircleFilledIcon, className: \"aivex:text-icon-success\" },\n warning: { component: WarningTriangleFilledIcon, className: \"aivex:text-icon-warning\" },\n} as const;\n\n/**\n * 사용자에게 확인·취소를 묻는 작은 경고형(alert) 다이얼로그.\n *\n * 제목·설명·버튼 1~2개로 끝나는 확인 질문(저장할까요? 삭제할까요?)에 쓴다. 입력 폼이나\n * 긴 내용이 들어가면 Modal, 화면 안에 머무는 안내 문구는 Messagebox, 잠깐 뜨는 알림은\n * Toast를 쓴다. alertdialog라 바깥 클릭으로 닫히지 않고 Esc·취소 버튼으로만 닫힌다.\n * open/onOpenChange로 제어하거나 defaultOpen으로 비제어로 쓴다. title은 필수다.\n *\n * @example\n * ```tsx\n * import { Button, Dialog } from \"@aivex/ui\";\n *\n * const [open, setOpen] = useState(false);\n *\n * <Button color=\"danger\" onClick={() => setOpen(true)}>삭제</Button>\n * <Dialog\n * open={open}\n * onOpenChange={setOpen}\n * variant=\"warning\"\n * title=\"프로젝트를 삭제할까요?\"\n * description=\"삭제한 프로젝트는 복구할 수 없습니다.\"\n * cancelButton={{ children: \"취소\" }}\n * confirmButton={{ children: \"삭제\", onClick: () => setOpen(false) }}\n * />\n * ```\n */\nfunction Dialog({\n open,\n defaultOpen,\n onOpenChange,\n variant = \"default\",\n title,\n description,\n children,\n cancelButton,\n confirmButton,\n showIcon = false,\n ref,\n}: DialogProps) {\n const cancelRef = useRef<HTMLButtonElement>(null);\n const popupRef = useRef<HTMLDivElement | null>(null);\n const composedRef = useComposedRefs(ref, popupRef);\n const focus = useModalFocus({\n open,\n modal: true,\n // 확인 질문은 덜 위험한 취소 버튼에서 시작한다. 취소 버튼이 없으면 첫 탭 가능한 요소.\n initialFocus: cancelButton ? cancelRef : true,\n finalFocus: undefined,\n popupRef,\n });\n const icon = iconMap[variant];\n const IconComponent = showIcon ? icon.component : null;\n const isCenterAligned = Boolean(IconComponent);\n const confirmButtonColor = variant === \"warning\" ? \"danger\" : \"primary\";\n\n return (\n <DialogPrimitive.Root open={open} defaultOpen={defaultOpen} onOpenChange={onOpenChange}>\n <PortalEventBoundary>\n <DialogPrimitive.Portal>\n {/* 다른 모달 위에 뜰 때도 자기 딤을 그린다(forceRender). */}\n <DialogPrimitive.Backdrop forceRender render={<Overlay variant=\"dim\" />} />\n <DialogPrimitive.Popup\n ref={composedRef}\n initialFocus={focus.initialFocus}\n finalFocus={focus.finalFocus}\n onFocusCapture={focus.onFocusCapture}\n className=\"aivex:fixed aivex:left-1/2 aivex:top-1/2 aivex:z-(--aivex-z-modal) aivex:w-[calc(100vw-32px)] aivex:max-w-[384px] aivex:-translate-x-1/2 aivex:-translate-y-1/2 aivex:outline-none\"\n >\n <div className=\"aivex:flex aivex:w-full aivex:flex-col aivex:items-start aivex:gap-2xl aivex:rounded-2xl aivex:border aivex:border-border-subtle aivex:bg-bg-primary aivex:p-2xl aivex:shadow-xl\">\n <div\n className={cn(\n \"aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs aivex:px-md aivex:py-xs\",\n isCenterAligned\n ? \"aivex:items-center aivex:justify-center aivex:text-center\"\n : \"aivex:items-start aivex:text-left\",\n )}\n >\n {IconComponent && (\n <span\n className={cn(\n \"aivex:flex aivex:h-12 aivex:w-12 aivex:shrink-0 aivex:items-center aivex:justify-center aivex:leading-none\",\n icon.className,\n )}\n >\n <IconComponent size={28} />\n </span>\n )}\n <DialogPrimitive.Title className=\"aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary\">\n {title}\n </DialogPrimitive.Title>\n {description && (\n <DialogPrimitive.Description className=\"aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-body-lg-regular aivex:text-text-secondary\">\n {description}\n </DialogPrimitive.Description>\n )}\n {children}\n </div>\n\n {(cancelButton || confirmButton) && (\n <div className=\"aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-lg\">\n {cancelButton && <DialogCancelButton {...cancelButton} buttonRef={cancelRef} />}\n {confirmButton && (\n <DialogConfirmButton {...confirmButton} defaultColor={confirmButtonColor} />\n )}\n </div>\n )}\n </div>\n </DialogPrimitive.Popup>\n </DialogPrimitive.Portal>\n </PortalEventBoundary>\n </DialogPrimitive.Root>\n );\n}\n\nfunction DialogCancelButton({\n children,\n onClick,\n buttonRef,\n ...props\n}: DialogButtonProps & { buttonRef: Ref<HTMLButtonElement> }) {\n return (\n <DialogPrimitive.Close\n ref={buttonRef}\n render={\n <Button\n variant=\"solid\"\n color=\"secondary\"\n size=\"lg\"\n className=\"aivex:min-w-0 aivex:basis-0 aivex:flex-1\"\n onClick={(event) => {\n void onClick?.(event);\n }}\n {...props}\n >\n {children}\n </Button>\n }\n />\n );\n}\n\nfunction DialogConfirmButton({\n children,\n defaultColor,\n onClick,\n ...props\n}: DialogConfirmButtonInternalProps) {\n return (\n <Button\n variant=\"solid\"\n color={defaultColor}\n size=\"lg\"\n className=\"aivex:min-w-0 aivex:basis-0 aivex:flex-1\"\n onClick={(event) => {\n void onClick?.(event);\n }}\n {...props}\n >\n {children}\n </Button>\n );\n}\n\nexport { Dialog };\n"],"mappings":"6aAoEA,IAAM,EAAU,CACd,QAAS,CAAE,UAAW,EAAA,sBAAuB,UAAW,0BAA2B,CACnF,QAAS,CAAE,UAAW,EAAA,0BAA2B,UAAW,0BAA2B,CACxF,CA4BD,SAAS,EAAO,CACd,OACA,cACA,eACA,UAAU,UACV,QACA,cACA,WACA,eACA,gBACA,WAAW,GACX,OACc,CACd,IAAM,GAAA,EAAA,EAAA,QAAsC,KAAK,CAC3C,GAAA,EAAA,EAAA,QAAyC,KAAK,CAC9C,EAAc,EAAA,gBAAgB,EAAK,EAAS,CAC5C,EAAQ,EAAA,cAAc,CAC1B,OACA,MAAO,GAEP,aAAc,EAAe,EAAY,GACzC,WAAY,IAAA,GACZ,WACD,CAAC,CACI,EAAO,EAAQ,GACf,EAAgB,EAAW,EAAK,UAAY,KAC5C,EAAkB,EAAQ,EAC1B,EAAqB,IAAY,UAAY,SAAW,UAE9D,OACE,EAAA,EAAA,KAAC,EAAA,YAAgB,KAAjB,CAA4B,OAAmB,cAA2B,yBACxE,EAAA,EAAA,KAAC,EAAA,oBAAD,CAAA,UACE,EAAA,EAAA,MAAC,EAAA,YAAgB,OAAjB,CAAA,SAAA,EAEE,EAAA,EAAA,KAAC,EAAA,YAAgB,SAAjB,CAA0B,YAAA,GAAY,QAAQ,EAAA,EAAA,KAAC,EAAA,QAAD,CAAS,QAAQ,MAAQ,CAAA,CAAI,CAAA,EAC3E,EAAA,EAAA,KAAC,EAAA,YAAgB,MAAjB,CACE,IAAK,EACL,aAAc,EAAM,aACpB,WAAY,EAAM,WAClB,eAAgB,EAAM,eACtB,UAAU,+LAEV,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,4LAAf,EACE,EAAA,EAAA,MAAC,MAAD,CACE,UAAW,EAAA,GACT,8EACA,EACI,4DACA,oCACL,UANH,CAQG,IACC,EAAA,EAAA,KAAC,OAAD,CACE,UAAW,EAAA,GACT,6GACA,EAAK,UACN,WAED,EAAA,EAAA,KAAC,EAAD,CAAe,KAAM,GAAM,CAAA,CACtB,CAAA,EAET,EAAA,EAAA,KAAC,EAAA,YAAgB,MAAjB,CAAuB,UAAU,0GAC9B,EACqB,CAAA,CACvB,IACC,EAAA,EAAA,KAAC,EAAA,YAAgB,YAAjB,CAA6B,UAAU,iHACpC,EAC2B,CAAA,CAE/B,EACG,IAEJ,GAAgB,KAChB,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,wFAAf,CACG,IAAgB,EAAA,EAAA,KAAC,EAAD,CAAoB,GAAI,EAAc,UAAW,EAAa,CAAA,CAC9E,IACC,EAAA,EAAA,KAAC,EAAD,CAAqB,GAAI,EAAe,aAAc,EAAsB,CAAA,CAE1E,GAEJ,GACgB,CAAA,CACD,CAAA,CAAA,CACL,CAAA,CACD,CAAA,CAI3B,SAAS,EAAmB,CAC1B,WACA,UACA,YACA,GAAG,GACyD,CAC5D,OACE,EAAA,EAAA,KAAC,EAAA,YAAgB,MAAjB,CACE,IAAK,EACL,QACE,EAAA,EAAA,KAAC,EAAA,OAAD,CACE,QAAQ,QACR,MAAM,YACN,KAAK,KACL,UAAU,2CACV,QAAU,GAAU,CACb,IAAU,EAAM,EAEvB,GAAI,EAEH,WACM,CAAA,CAEX,CAAA,CAIN,SAAS,EAAoB,CAC3B,WACA,eACA,UACA,GAAG,GACgC,CACnC,OACE,EAAA,EAAA,KAAC,EAAA,OAAD,CACE,QAAQ,QACR,MAAO,EACP,KAAK,KACL,UAAU,2CACV,QAAU,GAAU,CACb,IAAU,EAAM,EAEvB,GAAI,EAEH,WACM,CAAA"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { AlertDialog as DialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
2
|
+
import { type ReactNode, type Ref } from "react";
|
|
3
|
+
import { type ButtonProps } from "../Button/index.cjs";
|
|
4
|
+
import type { DataAttributes } from "../../utils/dataAttributes.cjs";
|
|
5
|
+
/**
|
|
6
|
+
* Dialog 톤. default는 확인 버튼이 primary, warning은 확인 버튼이 danger 색이 된다
|
|
7
|
+
* (showIcon이면 아이콘도 성공/경고 아이콘으로 바뀐다).
|
|
8
|
+
*/
|
|
9
|
+
export type DialogVariant = "default" | "warning";
|
|
10
|
+
/** Dialog 하단 버튼 — Button props에서 색·크기·스타일은 Dialog가 고정하고 라벨은 children으로 받는다. */
|
|
11
|
+
export interface DialogButtonProps extends Omit<ButtonProps, "children" | "className" | "color" | "ref" | "render" | "size" | "style" | "variant">, DataAttributes {
|
|
12
|
+
/** 버튼 라벨 */
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/** 확인 버튼 props. 누른다고 자동으로 닫히지 않으니 onClick에서 open을 false로 바꾼다. */
|
|
16
|
+
export type DialogConfirmButtonProps = DialogButtonProps;
|
|
17
|
+
export interface DialogProps {
|
|
18
|
+
/** 열림 상태(제어). onOpenChange와 함께 쓴다. */
|
|
19
|
+
open?: boolean;
|
|
20
|
+
/** 초기 열림 상태(비제어). */
|
|
21
|
+
defaultOpen?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 열림 상태가 바뀔 때 호출 — Esc·취소 버튼 모두 false로 알린다.
|
|
24
|
+
* 두 번째 인자의 `reason`("escape-key"·"close-press" 등)으로 원인을 구분하고
|
|
25
|
+
* `cancel()`로 닫힘을 막는다.
|
|
26
|
+
*/
|
|
27
|
+
onOpenChange?: DialogPrimitive.Root.Props["onOpenChange"];
|
|
28
|
+
/**
|
|
29
|
+
* 톤. warning이면 확인 버튼이 danger 색이 된다(삭제 등 되돌릴 수 없는 동작).
|
|
30
|
+
* @default "default"
|
|
31
|
+
*/
|
|
32
|
+
variant?: DialogVariant;
|
|
33
|
+
/** 제목(필수) — 다이얼로그의 접근성 이름이 된다. 줄바꿈(\n)을 그대로 표시한다. */
|
|
34
|
+
title: ReactNode;
|
|
35
|
+
/** 제목 아래 설명 — 접근성 설명(aria-describedby)으로 연결된다. */
|
|
36
|
+
description?: ReactNode;
|
|
37
|
+
/** 설명 아래에 덧붙이는 추가 내용(체크박스 등). */
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
/** 취소 버튼. 누르면 다이얼로그가 닫힌다(onOpenChange(false) 호출). */
|
|
40
|
+
cancelButton?: DialogButtonProps;
|
|
41
|
+
/** 확인 버튼. 자동으로 닫히지 않으니 onClick에서 직접 닫는다. */
|
|
42
|
+
confirmButton?: DialogConfirmButtonProps;
|
|
43
|
+
/**
|
|
44
|
+
* 제목 위에 톤 아이콘(default=성공, warning=경고)을 표시하고 내용을 가운데 정렬한다.
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
showIcon?: boolean;
|
|
48
|
+
ref?: Ref<HTMLDivElement>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* 사용자에게 확인·취소를 묻는 작은 경고형(alert) 다이얼로그.
|
|
52
|
+
*
|
|
53
|
+
* 제목·설명·버튼 1~2개로 끝나는 확인 질문(저장할까요? 삭제할까요?)에 쓴다. 입력 폼이나
|
|
54
|
+
* 긴 내용이 들어가면 Modal, 화면 안에 머무는 안내 문구는 Messagebox, 잠깐 뜨는 알림은
|
|
55
|
+
* Toast를 쓴다. alertdialog라 바깥 클릭으로 닫히지 않고 Esc·취소 버튼으로만 닫힌다.
|
|
56
|
+
* open/onOpenChange로 제어하거나 defaultOpen으로 비제어로 쓴다. title은 필수다.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```tsx
|
|
60
|
+
* import { Button, Dialog } from "@aivex/ui";
|
|
61
|
+
*
|
|
62
|
+
* const [open, setOpen] = useState(false);
|
|
63
|
+
*
|
|
64
|
+
* <Button color="danger" onClick={() => setOpen(true)}>삭제</Button>
|
|
65
|
+
* <Dialog
|
|
66
|
+
* open={open}
|
|
67
|
+
* onOpenChange={setOpen}
|
|
68
|
+
* variant="warning"
|
|
69
|
+
* title="프로젝트를 삭제할까요?"
|
|
70
|
+
* description="삭제한 프로젝트는 복구할 수 없습니다."
|
|
71
|
+
* cancelButton={{ children: "취소" }}
|
|
72
|
+
* confirmButton={{ children: "삭제", onClick: () => setOpen(false) }}
|
|
73
|
+
* />
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
declare function Dialog({ open, defaultOpen, onOpenChange, variant, title, description, children, cancelButton, confirmButton, showIcon, ref, }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
export { Dialog };
|
|
@@ -1,20 +1,77 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { type ButtonProps } from "
|
|
1
|
+
import { AlertDialog as DialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
2
|
+
import { type ReactNode, type Ref } from "react";
|
|
3
|
+
import { type ButtonProps } from "../Button/index.js";
|
|
4
|
+
import type { DataAttributes } from "../../utils/dataAttributes.js";
|
|
5
|
+
/**
|
|
6
|
+
* Dialog 톤. default는 확인 버튼이 primary, warning은 확인 버튼이 danger 색이 된다
|
|
7
|
+
* (showIcon이면 아이콘도 성공/경고 아이콘으로 바뀐다).
|
|
8
|
+
*/
|
|
4
9
|
export type DialogVariant = "default" | "warning";
|
|
5
|
-
|
|
10
|
+
/** Dialog 하단 버튼 — Button props에서 색·크기·스타일은 Dialog가 고정하고 라벨은 children으로 받는다. */
|
|
11
|
+
export interface DialogButtonProps extends Omit<ButtonProps, "children" | "className" | "color" | "ref" | "render" | "size" | "style" | "variant">, DataAttributes {
|
|
12
|
+
/** 버튼 라벨 */
|
|
6
13
|
children: ReactNode;
|
|
7
14
|
}
|
|
15
|
+
/** 확인 버튼 props. 누른다고 자동으로 닫히지 않으니 onClick에서 open을 false로 바꾼다. */
|
|
8
16
|
export type DialogConfirmButtonProps = DialogButtonProps;
|
|
9
|
-
export interface DialogProps
|
|
17
|
+
export interface DialogProps {
|
|
18
|
+
/** 열림 상태(제어). onOpenChange와 함께 쓴다. */
|
|
19
|
+
open?: boolean;
|
|
20
|
+
/** 초기 열림 상태(비제어). */
|
|
21
|
+
defaultOpen?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 열림 상태가 바뀔 때 호출 — Esc·취소 버튼 모두 false로 알린다.
|
|
24
|
+
* 두 번째 인자의 `reason`("escape-key"·"close-press" 등)으로 원인을 구분하고
|
|
25
|
+
* `cancel()`로 닫힘을 막는다.
|
|
26
|
+
*/
|
|
27
|
+
onOpenChange?: DialogPrimitive.Root.Props["onOpenChange"];
|
|
28
|
+
/**
|
|
29
|
+
* 톤. warning이면 확인 버튼이 danger 색이 된다(삭제 등 되돌릴 수 없는 동작).
|
|
30
|
+
* @default "default"
|
|
31
|
+
*/
|
|
10
32
|
variant?: DialogVariant;
|
|
33
|
+
/** 제목(필수) — 다이얼로그의 접근성 이름이 된다. 줄바꿈(\n)을 그대로 표시한다. */
|
|
11
34
|
title: ReactNode;
|
|
35
|
+
/** 제목 아래 설명 — 접근성 설명(aria-describedby)으로 연결된다. */
|
|
12
36
|
description?: ReactNode;
|
|
37
|
+
/** 설명 아래에 덧붙이는 추가 내용(체크박스 등). */
|
|
13
38
|
children?: ReactNode;
|
|
39
|
+
/** 취소 버튼. 누르면 다이얼로그가 닫힌다(onOpenChange(false) 호출). */
|
|
14
40
|
cancelButton?: DialogButtonProps;
|
|
41
|
+
/** 확인 버튼. 자동으로 닫히지 않으니 onClick에서 직접 닫는다. */
|
|
15
42
|
confirmButton?: DialogConfirmButtonProps;
|
|
43
|
+
/**
|
|
44
|
+
* 제목 위에 톤 아이콘(default=성공, warning=경고)을 표시하고 내용을 가운데 정렬한다.
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
16
47
|
showIcon?: boolean;
|
|
17
48
|
ref?: Ref<HTMLDivElement>;
|
|
18
49
|
}
|
|
19
|
-
|
|
50
|
+
/**
|
|
51
|
+
* 사용자에게 확인·취소를 묻는 작은 경고형(alert) 다이얼로그.
|
|
52
|
+
*
|
|
53
|
+
* 제목·설명·버튼 1~2개로 끝나는 확인 질문(저장할까요? 삭제할까요?)에 쓴다. 입력 폼이나
|
|
54
|
+
* 긴 내용이 들어가면 Modal, 화면 안에 머무는 안내 문구는 Messagebox, 잠깐 뜨는 알림은
|
|
55
|
+
* Toast를 쓴다. alertdialog라 바깥 클릭으로 닫히지 않고 Esc·취소 버튼으로만 닫힌다.
|
|
56
|
+
* open/onOpenChange로 제어하거나 defaultOpen으로 비제어로 쓴다. title은 필수다.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```tsx
|
|
60
|
+
* import { Button, Dialog } from "@aivex/ui";
|
|
61
|
+
*
|
|
62
|
+
* const [open, setOpen] = useState(false);
|
|
63
|
+
*
|
|
64
|
+
* <Button color="danger" onClick={() => setOpen(true)}>삭제</Button>
|
|
65
|
+
* <Dialog
|
|
66
|
+
* open={open}
|
|
67
|
+
* onOpenChange={setOpen}
|
|
68
|
+
* variant="warning"
|
|
69
|
+
* title="프로젝트를 삭제할까요?"
|
|
70
|
+
* description="삭제한 프로젝트는 복구할 수 없습니다."
|
|
71
|
+
* cancelButton={{ children: "취소" }}
|
|
72
|
+
* confirmButton={{ children: "삭제", onClick: () => setOpen(false) }}
|
|
73
|
+
* />
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
declare function Dialog({ open, defaultOpen, onOpenChange, variant, title, description, children, cancelButton, confirmButton, showIcon, ref, }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
20
77
|
export { Dialog };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { CheckCircleFilledIcon as e, WarningTriangleFilledIcon as t } from "../Icon/index.js";
|
|
3
|
+
import { cn as n } from "../../utils.js";
|
|
4
|
+
import { PortalEventBoundary as r } from "../../utils/PortalEventBoundary.js";
|
|
5
|
+
import { Button as i } from "../Button/Button.js";
|
|
6
|
+
import { useComposedRefs as a } from "../../utils/useComposedRefs.js";
|
|
7
|
+
import { Overlay as o } from "../Overlay/Overlay.js";
|
|
8
|
+
import { useModalFocus as s } from "../../utils/useModalFocus.js";
|
|
9
|
+
import { useRef as c } from "react";
|
|
10
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
11
|
+
import { AlertDialog as d } from "@base-ui/react/alert-dialog";
|
|
12
|
+
//#region src/components/Dialog/Dialog.tsx
|
|
13
|
+
var f = {
|
|
14
|
+
default: {
|
|
15
|
+
component: e,
|
|
16
|
+
className: "aivex:text-icon-success"
|
|
17
|
+
},
|
|
18
|
+
warning: {
|
|
19
|
+
component: t,
|
|
20
|
+
className: "aivex:text-icon-warning"
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
function p({ open: e, defaultOpen: t, onOpenChange: i, variant: p = "default", title: g, description: _, children: v, cancelButton: y, confirmButton: b, showIcon: x = !1, ref: S }) {
|
|
24
|
+
let C = c(null), w = c(null), T = a(S, w), E = s({
|
|
25
|
+
open: e,
|
|
26
|
+
modal: !0,
|
|
27
|
+
initialFocus: y ? C : !0,
|
|
28
|
+
finalFocus: void 0,
|
|
29
|
+
popupRef: w
|
|
30
|
+
}), D = f[p], O = x ? D.component : null, k = !!O, A = p === "warning" ? "danger" : "primary";
|
|
31
|
+
return /* @__PURE__ */ l(d.Root, {
|
|
32
|
+
open: e,
|
|
33
|
+
defaultOpen: t,
|
|
34
|
+
onOpenChange: i,
|
|
35
|
+
children: /* @__PURE__ */ l(r, { children: /* @__PURE__ */ u(d.Portal, { children: [/* @__PURE__ */ l(d.Backdrop, {
|
|
36
|
+
forceRender: !0,
|
|
37
|
+
render: /* @__PURE__ */ l(o, { variant: "dim" })
|
|
38
|
+
}), /* @__PURE__ */ l(d.Popup, {
|
|
39
|
+
ref: T,
|
|
40
|
+
initialFocus: E.initialFocus,
|
|
41
|
+
finalFocus: E.finalFocus,
|
|
42
|
+
onFocusCapture: E.onFocusCapture,
|
|
43
|
+
className: "aivex:fixed aivex:left-1/2 aivex:top-1/2 aivex:z-(--aivex-z-modal) aivex:w-[calc(100vw-32px)] aivex:max-w-[384px] aivex:-translate-x-1/2 aivex:-translate-y-1/2 aivex:outline-none",
|
|
44
|
+
children: /* @__PURE__ */ u("div", {
|
|
45
|
+
className: "aivex:flex aivex:w-full aivex:flex-col aivex:items-start aivex:gap-2xl aivex:rounded-2xl aivex:border aivex:border-border-subtle aivex:bg-bg-primary aivex:p-2xl aivex:shadow-xl",
|
|
46
|
+
children: [/* @__PURE__ */ u("div", {
|
|
47
|
+
className: n("aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs aivex:px-md aivex:py-xs", k ? "aivex:items-center aivex:justify-center aivex:text-center" : "aivex:items-start aivex:text-left"),
|
|
48
|
+
children: [
|
|
49
|
+
O && /* @__PURE__ */ l("span", {
|
|
50
|
+
className: n("aivex:flex aivex:h-12 aivex:w-12 aivex:shrink-0 aivex:items-center aivex:justify-center aivex:leading-none", D.className),
|
|
51
|
+
children: /* @__PURE__ */ l(O, { size: 28 })
|
|
52
|
+
}),
|
|
53
|
+
/* @__PURE__ */ l(d.Title, {
|
|
54
|
+
className: "aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary",
|
|
55
|
+
children: g
|
|
56
|
+
}),
|
|
57
|
+
_ && /* @__PURE__ */ l(d.Description, {
|
|
58
|
+
className: "aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-body-lg-regular aivex:text-text-secondary",
|
|
59
|
+
children: _
|
|
60
|
+
}),
|
|
61
|
+
v
|
|
62
|
+
]
|
|
63
|
+
}), (y || b) && /* @__PURE__ */ u("div", {
|
|
64
|
+
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-lg",
|
|
65
|
+
children: [y && /* @__PURE__ */ l(m, {
|
|
66
|
+
...y,
|
|
67
|
+
buttonRef: C
|
|
68
|
+
}), b && /* @__PURE__ */ l(h, {
|
|
69
|
+
...b,
|
|
70
|
+
defaultColor: A
|
|
71
|
+
})]
|
|
72
|
+
})]
|
|
73
|
+
})
|
|
74
|
+
})] }) })
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function m({ children: e, onClick: t, buttonRef: n, ...r }) {
|
|
78
|
+
return /* @__PURE__ */ l(d.Close, {
|
|
79
|
+
ref: n,
|
|
80
|
+
render: /* @__PURE__ */ l(i, {
|
|
81
|
+
variant: "solid",
|
|
82
|
+
color: "secondary",
|
|
83
|
+
size: "lg",
|
|
84
|
+
className: "aivex:min-w-0 aivex:basis-0 aivex:flex-1",
|
|
85
|
+
onClick: (e) => {
|
|
86
|
+
t?.(e);
|
|
87
|
+
},
|
|
88
|
+
...r,
|
|
89
|
+
children: e
|
|
90
|
+
})
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
function h({ children: e, defaultColor: t, onClick: n, ...r }) {
|
|
94
|
+
return /* @__PURE__ */ l(i, {
|
|
95
|
+
variant: "solid",
|
|
96
|
+
color: t,
|
|
97
|
+
size: "lg",
|
|
98
|
+
className: "aivex:min-w-0 aivex:basis-0 aivex:flex-1",
|
|
99
|
+
onClick: (e) => {
|
|
100
|
+
n?.(e);
|
|
101
|
+
},
|
|
102
|
+
...r,
|
|
103
|
+
children: e
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
export { p as Dialog };
|
|
108
|
+
|
|
109
|
+
//# sourceMappingURL=Dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dialog.js","names":[],"sources":["../../../src/components/Dialog/Dialog.tsx"],"sourcesContent":["import { AlertDialog as DialogPrimitive } from \"@base-ui/react/alert-dialog\";\nimport { type ReactNode, type Ref, useRef } from \"react\";\nimport { Button, type ButtonProps } from \"@/components/Button\";\nimport { CheckCircleFilledIcon, WarningTriangleFilledIcon } from \"@/components/Icon\";\nimport { Overlay } from \"@/components/Overlay\";\nimport { cn } from \"@/utils/cn\";\nimport type { DataAttributes } from \"@/utils/dataAttributes\";\nimport { PortalEventBoundary } from \"@/utils/PortalEventBoundary\";\nimport { useComposedRefs } from \"@/utils/useComposedRefs\";\nimport { useModalFocus } from \"@/utils/useModalFocus\";\n\n/**\n * Dialog 톤. default는 확인 버튼이 primary, warning은 확인 버튼이 danger 색이 된다\n * (showIcon이면 아이콘도 성공/경고 아이콘으로 바뀐다).\n */\nexport type DialogVariant = \"default\" | \"warning\";\n/** Dialog 하단 버튼 — Button props에서 색·크기·스타일은 Dialog가 고정하고 라벨은 children으로 받는다. */\nexport interface DialogButtonProps\n extends Omit<\n ButtonProps,\n \"children\" | \"className\" | \"color\" | \"ref\" | \"render\" | \"size\" | \"style\" | \"variant\"\n >,\n DataAttributes {\n /** 버튼 라벨 */\n children: ReactNode;\n}\n\n/** 확인 버튼 props. 누른다고 자동으로 닫히지 않으니 onClick에서 open을 false로 바꾼다. */\nexport type DialogConfirmButtonProps = DialogButtonProps;\n\ninterface DialogConfirmButtonInternalProps extends DialogConfirmButtonProps {\n defaultColor: ButtonProps[\"color\"];\n}\n\nexport interface DialogProps {\n /** 열림 상태(제어). onOpenChange와 함께 쓴다. */\n open?: boolean;\n /** 초기 열림 상태(비제어). */\n defaultOpen?: boolean;\n /**\n * 열림 상태가 바뀔 때 호출 — Esc·취소 버튼 모두 false로 알린다.\n * 두 번째 인자의 `reason`(\"escape-key\"·\"close-press\" 등)으로 원인을 구분하고\n * `cancel()`로 닫힘을 막는다.\n */\n onOpenChange?: DialogPrimitive.Root.Props[\"onOpenChange\"];\n /**\n * 톤. warning이면 확인 버튼이 danger 색이 된다(삭제 등 되돌릴 수 없는 동작).\n * @default \"default\"\n */\n variant?: DialogVariant;\n /** 제목(필수) — 다이얼로그의 접근성 이름이 된다. 줄바꿈(\\n)을 그대로 표시한다. */\n title: ReactNode;\n /** 제목 아래 설명 — 접근성 설명(aria-describedby)으로 연결된다. */\n description?: ReactNode;\n /** 설명 아래에 덧붙이는 추가 내용(체크박스 등). */\n children?: ReactNode;\n /** 취소 버튼. 누르면 다이얼로그가 닫힌다(onOpenChange(false) 호출). */\n cancelButton?: DialogButtonProps;\n /** 확인 버튼. 자동으로 닫히지 않으니 onClick에서 직접 닫는다. */\n confirmButton?: DialogConfirmButtonProps;\n /**\n * 제목 위에 톤 아이콘(default=성공, warning=경고)을 표시하고 내용을 가운데 정렬한다.\n * @default false\n */\n showIcon?: boolean;\n ref?: Ref<HTMLDivElement>;\n}\n\nconst iconMap = {\n default: { component: CheckCircleFilledIcon, className: \"aivex:text-icon-success\" },\n warning: { component: WarningTriangleFilledIcon, className: \"aivex:text-icon-warning\" },\n} as const;\n\n/**\n * 사용자에게 확인·취소를 묻는 작은 경고형(alert) 다이얼로그.\n *\n * 제목·설명·버튼 1~2개로 끝나는 확인 질문(저장할까요? 삭제할까요?)에 쓴다. 입력 폼이나\n * 긴 내용이 들어가면 Modal, 화면 안에 머무는 안내 문구는 Messagebox, 잠깐 뜨는 알림은\n * Toast를 쓴다. alertdialog라 바깥 클릭으로 닫히지 않고 Esc·취소 버튼으로만 닫힌다.\n * open/onOpenChange로 제어하거나 defaultOpen으로 비제어로 쓴다. title은 필수다.\n *\n * @example\n * ```tsx\n * import { Button, Dialog } from \"@aivex/ui\";\n *\n * const [open, setOpen] = useState(false);\n *\n * <Button color=\"danger\" onClick={() => setOpen(true)}>삭제</Button>\n * <Dialog\n * open={open}\n * onOpenChange={setOpen}\n * variant=\"warning\"\n * title=\"프로젝트를 삭제할까요?\"\n * description=\"삭제한 프로젝트는 복구할 수 없습니다.\"\n * cancelButton={{ children: \"취소\" }}\n * confirmButton={{ children: \"삭제\", onClick: () => setOpen(false) }}\n * />\n * ```\n */\nfunction Dialog({\n open,\n defaultOpen,\n onOpenChange,\n variant = \"default\",\n title,\n description,\n children,\n cancelButton,\n confirmButton,\n showIcon = false,\n ref,\n}: DialogProps) {\n const cancelRef = useRef<HTMLButtonElement>(null);\n const popupRef = useRef<HTMLDivElement | null>(null);\n const composedRef = useComposedRefs(ref, popupRef);\n const focus = useModalFocus({\n open,\n modal: true,\n // 확인 질문은 덜 위험한 취소 버튼에서 시작한다. 취소 버튼이 없으면 첫 탭 가능한 요소.\n initialFocus: cancelButton ? cancelRef : true,\n finalFocus: undefined,\n popupRef,\n });\n const icon = iconMap[variant];\n const IconComponent = showIcon ? icon.component : null;\n const isCenterAligned = Boolean(IconComponent);\n const confirmButtonColor = variant === \"warning\" ? \"danger\" : \"primary\";\n\n return (\n <DialogPrimitive.Root open={open} defaultOpen={defaultOpen} onOpenChange={onOpenChange}>\n <PortalEventBoundary>\n <DialogPrimitive.Portal>\n {/* 다른 모달 위에 뜰 때도 자기 딤을 그린다(forceRender). */}\n <DialogPrimitive.Backdrop forceRender render={<Overlay variant=\"dim\" />} />\n <DialogPrimitive.Popup\n ref={composedRef}\n initialFocus={focus.initialFocus}\n finalFocus={focus.finalFocus}\n onFocusCapture={focus.onFocusCapture}\n className=\"aivex:fixed aivex:left-1/2 aivex:top-1/2 aivex:z-(--aivex-z-modal) aivex:w-[calc(100vw-32px)] aivex:max-w-[384px] aivex:-translate-x-1/2 aivex:-translate-y-1/2 aivex:outline-none\"\n >\n <div className=\"aivex:flex aivex:w-full aivex:flex-col aivex:items-start aivex:gap-2xl aivex:rounded-2xl aivex:border aivex:border-border-subtle aivex:bg-bg-primary aivex:p-2xl aivex:shadow-xl\">\n <div\n className={cn(\n \"aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs aivex:px-md aivex:py-xs\",\n isCenterAligned\n ? \"aivex:items-center aivex:justify-center aivex:text-center\"\n : \"aivex:items-start aivex:text-left\",\n )}\n >\n {IconComponent && (\n <span\n className={cn(\n \"aivex:flex aivex:h-12 aivex:w-12 aivex:shrink-0 aivex:items-center aivex:justify-center aivex:leading-none\",\n icon.className,\n )}\n >\n <IconComponent size={28} />\n </span>\n )}\n <DialogPrimitive.Title className=\"aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary\">\n {title}\n </DialogPrimitive.Title>\n {description && (\n <DialogPrimitive.Description className=\"aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-body-lg-regular aivex:text-text-secondary\">\n {description}\n </DialogPrimitive.Description>\n )}\n {children}\n </div>\n\n {(cancelButton || confirmButton) && (\n <div className=\"aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-lg\">\n {cancelButton && <DialogCancelButton {...cancelButton} buttonRef={cancelRef} />}\n {confirmButton && (\n <DialogConfirmButton {...confirmButton} defaultColor={confirmButtonColor} />\n )}\n </div>\n )}\n </div>\n </DialogPrimitive.Popup>\n </DialogPrimitive.Portal>\n </PortalEventBoundary>\n </DialogPrimitive.Root>\n );\n}\n\nfunction DialogCancelButton({\n children,\n onClick,\n buttonRef,\n ...props\n}: DialogButtonProps & { buttonRef: Ref<HTMLButtonElement> }) {\n return (\n <DialogPrimitive.Close\n ref={buttonRef}\n render={\n <Button\n variant=\"solid\"\n color=\"secondary\"\n size=\"lg\"\n className=\"aivex:min-w-0 aivex:basis-0 aivex:flex-1\"\n onClick={(event) => {\n void onClick?.(event);\n }}\n {...props}\n >\n {children}\n </Button>\n }\n />\n );\n}\n\nfunction DialogConfirmButton({\n children,\n defaultColor,\n onClick,\n ...props\n}: DialogConfirmButtonInternalProps) {\n return (\n <Button\n variant=\"solid\"\n color={defaultColor}\n size=\"lg\"\n className=\"aivex:min-w-0 aivex:basis-0 aivex:flex-1\"\n onClick={(event) => {\n void onClick?.(event);\n }}\n {...props}\n >\n {children}\n </Button>\n );\n}\n\nexport { Dialog };\n"],"mappings":";;;;;;;;;;;;AAoEA,IAAM,IAAU;CACd,SAAS;EAAE,WAAW;EAAuB,WAAW;EAA2B;CACnF,SAAS;EAAE,WAAW;EAA2B,WAAW;EAA2B;CACxF;AA4BD,SAAS,EAAO,EACd,SACA,gBACA,iBACA,aAAU,WACV,UACA,gBACA,aACA,iBACA,kBACA,cAAW,IACX,UACc;CACd,IAAM,IAAY,EAA0B,KAAK,EAC3C,IAAW,EAA8B,KAAK,EAC9C,IAAc,EAAgB,GAAK,EAAS,EAC5C,IAAQ,EAAc;EAC1B;EACA,OAAO;EAEP,cAAc,IAAe,IAAY;EACzC,YAAY,KAAA;EACZ;EACD,CAAC,EACI,IAAO,EAAQ,IACf,IAAgB,IAAW,EAAK,YAAY,MAC5C,IAAkB,EAAQ,GAC1B,IAAqB,MAAY,YAAY,WAAW;AAE9D,QACE,kBAAC,EAAgB,MAAjB;EAA4B;EAAmB;EAA2B;YACxE,kBAAC,GAAD,EAAA,UACE,kBAAC,EAAgB,QAAjB,EAAA,UAAA,CAEE,kBAAC,EAAgB,UAAjB;GAA0B,aAAA;GAAY,QAAQ,kBAAC,GAAD,EAAS,SAAQ,OAAQ,CAAA;GAAI,CAAA,EAC3E,kBAAC,EAAgB,OAAjB;GACE,KAAK;GACL,cAAc,EAAM;GACpB,YAAY,EAAM;GAClB,gBAAgB,EAAM;GACtB,WAAU;aAEV,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,OAAD;KACE,WAAW,EACT,+EACA,IACI,8DACA,oCACL;eANH;MAQG,KACC,kBAAC,QAAD;OACE,WAAW,EACT,8GACA,EAAK,UACN;iBAED,kBAAC,GAAD,EAAe,MAAM,IAAM,CAAA;OACtB,CAAA;MAET,kBAAC,EAAgB,OAAjB;OAAuB,WAAU;iBAC9B;OACqB,CAAA;MACvB,KACC,kBAAC,EAAgB,aAAjB;OAA6B,WAAU;iBACpC;OAC2B,CAAA;MAE/B;MACG;SAEJ,KAAgB,MAChB,kBAAC,OAAD;KAAK,WAAU;eAAf,CACG,KAAgB,kBAAC,GAAD;MAAoB,GAAI;MAAc,WAAW;MAAa,CAAA,EAC9E,KACC,kBAAC,GAAD;MAAqB,GAAI;MAAe,cAAc;MAAsB,CAAA,CAE1E;OAEJ;;GACgB,CAAA,CACD,EAAA,CAAA,EACL,CAAA;EACD,CAAA;;AAI3B,SAAS,EAAmB,EAC1B,aACA,YACA,cACA,GAAG,KACyD;AAC5D,QACE,kBAAC,EAAgB,OAAjB;EACE,KAAK;EACL,QACE,kBAAC,GAAD;GACE,SAAQ;GACR,OAAM;GACN,MAAK;GACL,WAAU;GACV,UAAU,MAAU;AACb,QAAU,EAAM;;GAEvB,GAAI;GAEH;GACM,CAAA;EAEX,CAAA;;AAIN,SAAS,EAAoB,EAC3B,aACA,iBACA,YACA,GAAG,KACgC;AACnC,QACE,kBAAC,GAAD;EACE,SAAQ;EACR,OAAO;EACP,MAAK;EACL,WAAU;EACV,UAAU,MAAU;AACb,OAAU,EAAM;;EAEvB,GAAI;EAEH;EACM,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { DialogButtonProps, DialogConfirmButtonProps, DialogProps, DialogVariant, } from "./Dialog";
|
|
2
|
-
export { Dialog } from "./Dialog";
|
|
1
|
+
export type { DialogButtonProps, DialogConfirmButtonProps, DialogProps, DialogVariant, } from "./Dialog.js";
|
|
2
|
+
export { Dialog } from "./Dialog.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../utils.cjs`);let t=require(`react/jsx-runtime`);var n=(0,require(`class-variance-authority`).cva)(`aivex:shrink-0`,{variants:{strength:{basic:``,bold:``},direction:{horizontal:`aivex:w-full`,vertical:`aivex:h-full`}},compoundVariants:[{strength:`basic`,direction:`horizontal`,className:`aivex:border-t aivex:border-border-default`},{strength:`basic`,direction:`vertical`,className:`aivex:border-l aivex:border-border-default`},{strength:`bold`,direction:`horizontal`,className:`aivex:border-t-2 aivex:border-border-subtle`},{strength:`bold`,direction:`vertical`,className:`aivex:border-l-2 aivex:border-border-subtle`}],defaultVariants:{strength:`basic`,direction:`horizontal`}});function r({className:r,strength:i,direction:a,ref:o,...s}){return(0,t.jsx)(`hr`,{ref:o,"aria-orientation":a===`vertical`?`vertical`:`horizontal`,className:e.cn(n({strength:i,direction:a}),r),...s})}exports.Divider=r,exports.dividerVariants=n;
|
|
2
|
+
//# sourceMappingURL=Divider.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Divider.cjs","names":[],"sources":["../../../src/components/Divider/Divider.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport type { HTMLAttributes, Ref } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\n/** Divider의 굵기(`strength`)·방향(`direction`) 클래스를 만드는 cva 변형 함수. */\nconst dividerVariants = cva(\"aivex:shrink-0\", {\n variants: {\n strength: {\n basic: \"\",\n bold: \"\",\n },\n direction: {\n horizontal: \"aivex:w-full\",\n vertical: \"aivex:h-full\",\n },\n },\n compoundVariants: [\n {\n strength: \"basic\",\n direction: \"horizontal\",\n className: \"aivex:border-t aivex:border-border-default\",\n },\n {\n strength: \"basic\",\n direction: \"vertical\",\n className: \"aivex:border-l aivex:border-border-default\",\n },\n {\n strength: \"bold\",\n direction: \"horizontal\",\n className: \"aivex:border-t-2 aivex:border-border-subtle\",\n },\n {\n strength: \"bold\",\n direction: \"vertical\",\n className: \"aivex:border-l-2 aivex:border-border-subtle\",\n },\n ],\n defaultVariants: {\n strength: \"basic\",\n direction: \"horizontal\",\n },\n});\n\nexport interface DividerProps\n extends HTMLAttributes<HTMLHRElement>,\n VariantProps<typeof dividerVariants> {\n ref?: Ref<HTMLHRElement>;\n}\n\n/**\n * 콘텐츠 영역을 나누는 가로·세로 구분선(`<hr>`).\n *\n * `direction`: horizontal(기본, 폭 100%)·vertical(높이 100% — 부모에 높이가 있거나 flex `items-stretch`여야 보인다).\n * `strength`: basic(기본, 1px default 색)·bold(2px subtle 색, 섹션 구분용).\n *\n * @example\n * ```tsx\n * import { Divider } from \"@aivex/ui\";\n *\n * <Divider />\n * <div className=\"flex h-6 items-stretch gap-md\">\n * <span>왼쪽</span>\n * <Divider direction=\"vertical\" />\n * <span>오른쪽</span>\n * </div>\n * ```\n */\nfunction Divider({ className, strength, direction, ref, ...props }: DividerProps) {\n return (\n <hr\n ref={ref}\n aria-orientation={direction === \"vertical\" ? \"vertical\" : \"horizontal\"}\n className={cn(dividerVariants({ strength, direction }), className)}\n {...props}\n />\n );\n}\n\nexport { Divider, dividerVariants };\n"],"mappings":"mIAKA,IAAM,GAAA,sCAAA,KAAsB,iBAAkB,CAC5C,SAAU,CACR,SAAU,CACR,MAAO,GACP,KAAM,GACP,CACD,UAAW,CACT,WAAY,eACZ,SAAU,eACX,CACF,CACD,iBAAkB,CAChB,CACE,SAAU,QACV,UAAW,aACX,UAAW,6CACZ,CACD,CACE,SAAU,QACV,UAAW,WACX,UAAW,6CACZ,CACD,CACE,SAAU,OACV,UAAW,aACX,UAAW,8CACZ,CACD,CACE,SAAU,OACV,UAAW,WACX,UAAW,8CACZ,CACF,CACD,gBAAiB,CACf,SAAU,QACV,UAAW,aACZ,CACF,CAAC,CA0BF,SAAS,EAAQ,CAAE,YAAW,WAAU,YAAW,MAAK,GAAG,GAAuB,CAChF,OACE,EAAA,EAAA,KAAC,KAAD,CACO,MACL,mBAAkB,IAAc,WAAa,WAAa,aAC1D,UAAW,EAAA,GAAG,EAAgB,CAAE,WAAU,YAAW,CAAC,CAAE,EAAU,CAClE,GAAI,EACJ,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import type { HTMLAttributes, Ref } from "react";
|
|
3
|
+
/** Divider의 굵기(`strength`)·방향(`direction`) 클래스를 만드는 cva 변형 함수. */
|
|
4
|
+
declare const dividerVariants: (props?: ({
|
|
5
|
+
strength?: "basic" | "bold" | null | undefined;
|
|
6
|
+
direction?: "horizontal" | "vertical" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
export interface DividerProps extends HTMLAttributes<HTMLHRElement>, VariantProps<typeof dividerVariants> {
|
|
9
|
+
ref?: Ref<HTMLHRElement>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 콘텐츠 영역을 나누는 가로·세로 구분선(`<hr>`).
|
|
13
|
+
*
|
|
14
|
+
* `direction`: horizontal(기본, 폭 100%)·vertical(높이 100% — 부모에 높이가 있거나 flex `items-stretch`여야 보인다).
|
|
15
|
+
* `strength`: basic(기본, 1px default 색)·bold(2px subtle 색, 섹션 구분용).
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* import { Divider } from "@aivex/ui";
|
|
20
|
+
*
|
|
21
|
+
* <Divider />
|
|
22
|
+
* <div className="flex h-6 items-stretch gap-md">
|
|
23
|
+
* <span>왼쪽</span>
|
|
24
|
+
* <Divider direction="vertical" />
|
|
25
|
+
* <span>오른쪽</span>
|
|
26
|
+
* </div>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
declare function Divider({ className, strength, direction, ref, ...props }: DividerProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export { Divider, dividerVariants };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
2
|
import type { HTMLAttributes, Ref } from "react";
|
|
3
|
+
/** Divider의 굵기(`strength`)·방향(`direction`) 클래스를 만드는 cva 변형 함수. */
|
|
3
4
|
declare const dividerVariants: (props?: ({
|
|
4
5
|
strength?: "basic" | "bold" | null | undefined;
|
|
5
6
|
direction?: "horizontal" | "vertical" | null | undefined;
|
|
@@ -7,5 +8,23 @@ declare const dividerVariants: (props?: ({
|
|
|
7
8
|
export interface DividerProps extends HTMLAttributes<HTMLHRElement>, VariantProps<typeof dividerVariants> {
|
|
8
9
|
ref?: Ref<HTMLHRElement>;
|
|
9
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* 콘텐츠 영역을 나누는 가로·세로 구분선(`<hr>`).
|
|
13
|
+
*
|
|
14
|
+
* `direction`: horizontal(기본, 폭 100%)·vertical(높이 100% — 부모에 높이가 있거나 flex `items-stretch`여야 보인다).
|
|
15
|
+
* `strength`: basic(기본, 1px default 색)·bold(2px subtle 색, 섹션 구분용).
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* import { Divider } from "@aivex/ui";
|
|
20
|
+
*
|
|
21
|
+
* <Divider />
|
|
22
|
+
* <div className="flex h-6 items-stretch gap-md">
|
|
23
|
+
* <span>왼쪽</span>
|
|
24
|
+
* <Divider direction="vertical" />
|
|
25
|
+
* <span>오른쪽</span>
|
|
26
|
+
* </div>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
10
29
|
declare function Divider({ className, strength, direction, ref, ...props }: DividerProps): import("react/jsx-runtime").JSX.Element;
|
|
11
30
|
export { Divider, dividerVariants };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../utils.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import { cva as n } from "class-variance-authority";
|
|
5
|
+
//#region src/components/Divider/Divider.tsx
|
|
6
|
+
var r = n("aivex:shrink-0", {
|
|
7
|
+
variants: {
|
|
8
|
+
strength: {
|
|
9
|
+
basic: "",
|
|
10
|
+
bold: ""
|
|
11
|
+
},
|
|
12
|
+
direction: {
|
|
13
|
+
horizontal: "aivex:w-full",
|
|
14
|
+
vertical: "aivex:h-full"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
compoundVariants: [
|
|
18
|
+
{
|
|
19
|
+
strength: "basic",
|
|
20
|
+
direction: "horizontal",
|
|
21
|
+
className: "aivex:border-t aivex:border-border-default"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
strength: "basic",
|
|
25
|
+
direction: "vertical",
|
|
26
|
+
className: "aivex:border-l aivex:border-border-default"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
strength: "bold",
|
|
30
|
+
direction: "horizontal",
|
|
31
|
+
className: "aivex:border-t-2 aivex:border-border-subtle"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
strength: "bold",
|
|
35
|
+
direction: "vertical",
|
|
36
|
+
className: "aivex:border-l-2 aivex:border-border-subtle"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
defaultVariants: {
|
|
40
|
+
strength: "basic",
|
|
41
|
+
direction: "horizontal"
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
function i({ className: n, strength: i, direction: a, ref: o, ...s }) {
|
|
45
|
+
return /* @__PURE__ */ t("hr", {
|
|
46
|
+
ref: o,
|
|
47
|
+
"aria-orientation": a === "vertical" ? "vertical" : "horizontal",
|
|
48
|
+
className: e(r({
|
|
49
|
+
strength: i,
|
|
50
|
+
direction: a
|
|
51
|
+
}), n),
|
|
52
|
+
...s
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { i as Divider, r as dividerVariants };
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=Divider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Divider.js","names":[],"sources":["../../../src/components/Divider/Divider.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport type { HTMLAttributes, Ref } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\n/** Divider의 굵기(`strength`)·방향(`direction`) 클래스를 만드는 cva 변형 함수. */\nconst dividerVariants = cva(\"aivex:shrink-0\", {\n variants: {\n strength: {\n basic: \"\",\n bold: \"\",\n },\n direction: {\n horizontal: \"aivex:w-full\",\n vertical: \"aivex:h-full\",\n },\n },\n compoundVariants: [\n {\n strength: \"basic\",\n direction: \"horizontal\",\n className: \"aivex:border-t aivex:border-border-default\",\n },\n {\n strength: \"basic\",\n direction: \"vertical\",\n className: \"aivex:border-l aivex:border-border-default\",\n },\n {\n strength: \"bold\",\n direction: \"horizontal\",\n className: \"aivex:border-t-2 aivex:border-border-subtle\",\n },\n {\n strength: \"bold\",\n direction: \"vertical\",\n className: \"aivex:border-l-2 aivex:border-border-subtle\",\n },\n ],\n defaultVariants: {\n strength: \"basic\",\n direction: \"horizontal\",\n },\n});\n\nexport interface DividerProps\n extends HTMLAttributes<HTMLHRElement>,\n VariantProps<typeof dividerVariants> {\n ref?: Ref<HTMLHRElement>;\n}\n\n/**\n * 콘텐츠 영역을 나누는 가로·세로 구분선(`<hr>`).\n *\n * `direction`: horizontal(기본, 폭 100%)·vertical(높이 100% — 부모에 높이가 있거나 flex `items-stretch`여야 보인다).\n * `strength`: basic(기본, 1px default 색)·bold(2px subtle 색, 섹션 구분용).\n *\n * @example\n * ```tsx\n * import { Divider } from \"@aivex/ui\";\n *\n * <Divider />\n * <div className=\"flex h-6 items-stretch gap-md\">\n * <span>왼쪽</span>\n * <Divider direction=\"vertical\" />\n * <span>오른쪽</span>\n * </div>\n * ```\n */\nfunction Divider({ className, strength, direction, ref, ...props }: DividerProps) {\n return (\n <hr\n ref={ref}\n aria-orientation={direction === \"vertical\" ? \"vertical\" : \"horizontal\"}\n className={cn(dividerVariants({ strength, direction }), className)}\n {...props}\n />\n );\n}\n\nexport { Divider, dividerVariants };\n"],"mappings":";;;;;AAKA,IAAM,IAAkB,EAAI,kBAAkB;CAC5C,UAAU;EACR,UAAU;GACR,OAAO;GACP,MAAM;GACP;EACD,WAAW;GACT,YAAY;GACZ,UAAU;GACX;EACF;CACD,kBAAkB;EAChB;GACE,UAAU;GACV,WAAW;GACX,WAAW;GACZ;EACD;GACE,UAAU;GACV,WAAW;GACX,WAAW;GACZ;EACD;GACE,UAAU;GACV,WAAW;GACX,WAAW;GACZ;EACD;GACE,UAAU;GACV,WAAW;GACX,WAAW;GACZ;EACF;CACD,iBAAiB;EACf,UAAU;EACV,WAAW;EACZ;CACF,CAAC;AA0BF,SAAS,EAAQ,EAAE,cAAW,aAAU,cAAW,QAAK,GAAG,KAAuB;AAChF,QACE,kBAAC,MAAD;EACO;EACL,oBAAkB,MAAc,aAAa,aAAa;EAC1D,WAAW,EAAG,EAAgB;GAAE;GAAU;GAAW,CAAC,EAAE,EAAU;EAClE,GAAI;EACJ,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { DividerProps } from "./Divider";
|
|
2
|
-
export { Divider, dividerVariants } from "./Divider";
|
|
1
|
+
export type { DividerProps } from "./Divider.js";
|
|
2
|
+
export { Divider, dividerVariants } from "./Divider.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../utils.cjs`);let t=require(`react`),n=require(`react/jsx-runtime`);function r({children:r,className:i,autoScrollToEnd:a=!1,smoothScroll:o=!0,edgeFade:s=!1}){let c=(0,t.useRef)(null),l=(0,t.useRef)({isDragging:!1,startX:0,scrollLeft:0}),u=e=>{let t=c.current,{current:n}=l;if(t)if(e.type===`mousedown`)n.isDragging=!0,n.startX=e.clientX,n.scrollLeft=t.scrollLeft;else if(e.type===`mousemove`&&n.isDragging){e.preventDefault();let r=n.startX-e.clientX;t.scrollLeft=n.scrollLeft+r}else (e.type===`mouseup`||e.type===`mouseleave`)&&(n.isDragging=!1)};return(0,t.useEffect)(()=>{let e=c.current;a&&e&&requestAnimationFrame(()=>{e.scrollTo({left:e.scrollWidth,behavior:o?`smooth`:`auto`})})},[r,a,o]),(0,n.jsx)(`div`,{ref:c,className:e.cn(`aivex:overflow-x-auto aivex:overflow-y-hidden aivex:hide-scrollbar aivex:cursor-grab aivex:active:cursor-grabbing aivex:select-none`,s&&`aivex:scroll-fade-x`,i),onMouseDown:u,onMouseMove:u,onMouseUp:u,onMouseLeave:u,children:r})}exports.DraggableScroll=r;
|
|
2
|
+
//# sourceMappingURL=DraggableScroll.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DraggableScroll.cjs","names":[],"sources":["../../../src/components/DraggableScroll/DraggableScroll.tsx"],"sourcesContent":["import { type MouseEvent, type ReactNode, useEffect, useRef } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\ninterface DraggableScrollProps {\n /** 가로로 스크롤할 내용. 보통 `flex` 한 줄로 감싼 아이템 목록을 넣는다. */\n children: ReactNode;\n /** 스크롤 컨테이너에 추가할 클래스 */\n className?: string;\n /**\n * children이 바뀔 때 가로 스크롤을 끝으로 이동합니다.\n * @default false\n */\n autoScrollToEnd?: boolean;\n /**\n * `autoScrollToEnd` 이동을 부드럽게(smooth) 할지 여부\n * @default true\n */\n smoothScroll?: boolean;\n /**\n * 좌우에 가려진 내용이 있으면 그 방향 가장자리를 그라데이션으로 페이드합니다.\n * CSS 스크롤 타임라인 기반이라 미지원 브라우저에서는 페이드 없이 동작합니다.\n * @default false\n */\n edgeFade?: boolean;\n}\n\n/**\n * 스크롤바를 숨기고 마우스 드래그로도 가로 스크롤할 수 있는 컨테이너.\n *\n * 칩·태그 목록처럼 한 줄로 넘치는 내용에 쓴다. 휠·터치 등 기본 스크롤도 그대로 동작한다.\n * 컨테이너 내부 텍스트는 선택할 수 없다(`select-none`). 세로 스크롤·커스텀 스크롤바가 필요하면 `ScrollArea`를 쓴다.\n *\n * @example\n * ```tsx\n * import { DraggableScroll, Tag } from \"@aivex/ui\";\n *\n * <DraggableScroll autoScrollToEnd edgeFade>\n * <div className=\"flex gap-md\">\n * {filters.map((f) => (\n * <Tag key={f.id} className=\"shrink-0\" onRemove={() => remove(f.id)}>\n * {f.label}\n * </Tag>\n * ))}\n * </div>\n * </DraggableScroll>\n * ```\n */\nfunction DraggableScroll({\n children,\n className,\n autoScrollToEnd = false,\n smoothScroll = true,\n edgeFade = false,\n}: DraggableScrollProps) {\n const containerRef = useRef<HTMLDivElement>(null);\n const dragRef = useRef({ isDragging: false, startX: 0, scrollLeft: 0 });\n\n const handleDragScroll = (e: MouseEvent<HTMLDivElement>) => {\n const container = containerRef.current;\n const { current: drag } = dragRef;\n\n if (!container) return;\n\n if (e.type === \"mousedown\") {\n drag.isDragging = true;\n drag.startX = e.clientX;\n drag.scrollLeft = container.scrollLeft;\n } else if (e.type === \"mousemove\" && drag.isDragging) {\n e.preventDefault();\n const diff = drag.startX - e.clientX;\n container.scrollLeft = drag.scrollLeft + diff;\n } else if (e.type === \"mouseup\" || e.type === \"mouseleave\") {\n drag.isDragging = false;\n }\n };\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: children 변경 시 끝으로 스크롤\n useEffect(() => {\n const container = containerRef.current;\n if (autoScrollToEnd && container) {\n requestAnimationFrame(() => {\n container.scrollTo({\n left: container.scrollWidth,\n behavior: smoothScroll ? \"smooth\" : \"auto\",\n });\n });\n }\n }, [children, autoScrollToEnd, smoothScroll]);\n\n return (\n // biome-ignore lint/a11y/noStaticElementInteractions: 마우스 드래그 스크롤 보조일 뿐이다 — 기본 스크롤은 그대로 동작한다\n <div\n ref={containerRef}\n className={cn(\n \"aivex:overflow-x-auto aivex:overflow-y-hidden aivex:hide-scrollbar aivex:cursor-grab aivex:active:cursor-grabbing aivex:select-none\",\n edgeFade && \"aivex:scroll-fade-x\",\n className,\n )}\n onMouseDown={handleDragScroll}\n onMouseMove={handleDragScroll}\n onMouseUp={handleDragScroll}\n onMouseLeave={handleDragScroll}\n >\n {children}\n </div>\n );\n}\n\nexport type { DraggableScrollProps };\nexport { DraggableScroll };\n"],"mappings":"sJA+CA,SAAS,EAAgB,CACvB,WACA,YACA,kBAAkB,GAClB,eAAe,GACf,WAAW,IACY,CACvB,IAAM,GAAA,EAAA,EAAA,QAAsC,KAAK,CAC3C,GAAA,EAAA,EAAA,QAAiB,CAAE,WAAY,GAAO,OAAQ,EAAG,WAAY,EAAG,CAAC,CAEjE,EAAoB,GAAkC,CAC1D,IAAM,EAAY,EAAa,QACzB,CAAE,QAAS,GAAS,EAErB,KAEL,GAAI,EAAE,OAAS,YACb,EAAK,WAAa,GAClB,EAAK,OAAS,EAAE,QAChB,EAAK,WAAa,EAAU,mBACnB,EAAE,OAAS,aAAe,EAAK,WAAY,CACpD,EAAE,gBAAgB,CAClB,IAAM,EAAO,EAAK,OAAS,EAAE,QAC7B,EAAU,WAAa,EAAK,WAAa,QAChC,EAAE,OAAS,WAAa,EAAE,OAAS,gBAC5C,EAAK,WAAa,KAiBtB,OAZA,EAAA,EAAA,eAAgB,CACd,IAAM,EAAY,EAAa,QAC3B,GAAmB,GACrB,0BAA4B,CAC1B,EAAU,SAAS,CACjB,KAAM,EAAU,YAChB,SAAU,EAAe,SAAW,OACrC,CAAC,EACF,EAEH,CAAC,EAAU,EAAiB,EAAa,CAAC,EAI3C,EAAA,EAAA,KAAC,MAAD,CACE,IAAK,EACL,UAAW,EAAA,GACT,sIACA,GAAY,sBACZ,EACD,CACD,YAAa,EACb,YAAa,EACb,UAAW,EACX,aAAc,EAEb,WACG,CAAA"}
|