@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
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import type { ElementType, HTMLAttributes, ReactNode, Ref } from "react";
|
|
2
|
+
/** BreadCrumb `items`의 한 단계(경로 항목) 정의. */
|
|
2
3
|
export interface BreadCrumbItemDef {
|
|
4
|
+
/** 항목에 표시할 내용 */
|
|
3
5
|
label: ReactNode;
|
|
4
6
|
/**
|
|
5
7
|
* 렌더링할 컴포넌트를 직접 지정합니다.
|
|
6
|
-
* 예: Next.js `Link
|
|
8
|
+
* 예: Next.js `Link` 등. 전달되는 prop은 `href`·`onClick`·`className`뿐이므로
|
|
9
|
+
* `to`를 받는 React Router `Link`/`NavLink`는 그대로는 쓸 수 없습니다.
|
|
7
10
|
* 지정하지 않으면 href 유무에 따라 <a> 또는 <button>으로 자동 선택됩니다.
|
|
11
|
+
* 마지막(현재) 항목에는 적용되지 않습니다.
|
|
8
12
|
*/
|
|
9
13
|
as?: ElementType;
|
|
10
14
|
/** 있으면 <a href> 로 렌더링 (시맨틱 / 새 탭 열기 지원) */
|
|
@@ -13,13 +17,41 @@ export interface BreadCrumbItemDef {
|
|
|
13
17
|
onClick?: () => void;
|
|
14
18
|
}
|
|
15
19
|
export interface BreadCrumbProps extends HTMLAttributes<HTMLElement> {
|
|
20
|
+
/** 상위 → 현재 순서의 경로 항목. 마지막 항목은 링크 없이 현재 페이지(`aria-current="page"`)로 표시된다. */
|
|
16
21
|
items: BreadCrumbItemDef[];
|
|
17
22
|
/**
|
|
18
23
|
* 이 값을 초과하면 중간 항목을 ··· 으로 축소합니다.
|
|
19
24
|
* 예: maxItems=3이고 항목이 5개면 → 첫번째 / ··· / 마지막
|
|
20
25
|
*/
|
|
21
26
|
maxItems?: number;
|
|
27
|
+
/**
|
|
28
|
+
* 축소된 경로(···) 버튼 aria-label
|
|
29
|
+
* @default "숨겨진 경로 보기"
|
|
30
|
+
*/
|
|
31
|
+
ellipsisAriaLabel?: string;
|
|
22
32
|
ref?: Ref<HTMLElement>;
|
|
23
33
|
}
|
|
24
|
-
|
|
34
|
+
/**
|
|
35
|
+
* 현재 페이지까지의 계층 경로를 `/` 구분자로 보여주는 브레드크럼 내비게이션.
|
|
36
|
+
*
|
|
37
|
+
* `<nav aria-label="Breadcrumb">` + `<ol>`로 렌더링한다. 항목은 `href`가 있으면 `<a>`, 없으면 `<button>`이 되며
|
|
38
|
+
* SPA 라우팅은 `onClick` 또는 `as`(예: Next.js `Link`)로 처리한다.
|
|
39
|
+
* `maxItems`를 넘으면 첫 항목 / ··· / 마지막 항목으로 축소되고, ··· 를 누르면 숨은 경로가 메뉴로 열린다.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```tsx
|
|
43
|
+
* import { BreadCrumb } from "@aivex/ui";
|
|
44
|
+
*
|
|
45
|
+
* <BreadCrumb
|
|
46
|
+
* maxItems={3}
|
|
47
|
+
* items={[
|
|
48
|
+
* { label: "워크스페이스", href: "/workspace" },
|
|
49
|
+
* { label: "폴더", onClick: () => router.push("/folder") },
|
|
50
|
+
* { label: "프로젝트", href: "/project" },
|
|
51
|
+
* { label: "현재 페이지" },
|
|
52
|
+
* ]}
|
|
53
|
+
* />
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
declare function BreadCrumb({ className, items, maxItems, ellipsisAriaLabel, ref, ...props }: BreadCrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
25
57
|
export { BreadCrumb };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { cn as e } from "../../utils.js";
|
|
4
|
+
import { InteractionLayer as t } from "../InteractionLayer/InteractionLayer.js";
|
|
5
|
+
import { Menu as n } from "../Menu/Menu.js";
|
|
6
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/BreadCrumb/BreadCrumb.tsx
|
|
8
|
+
function o({ item: e, isCurrent: n }) {
|
|
9
|
+
if (n) return /* @__PURE__ */ i("span", {
|
|
10
|
+
"aria-current": "page",
|
|
11
|
+
className: "aivex:inline-flex aivex:items-center aivex:gap-xs aivex:px-sm aivex:py-2xs aivex:rounded-xs aivex:text-body-md-medium aivex:text-text-primary aivex:select-none",
|
|
12
|
+
children: e.label
|
|
13
|
+
});
|
|
14
|
+
let r = e.as ?? (e.href ? "a" : "button"), o = r === "button" ? { type: "button" } : {};
|
|
15
|
+
return /* @__PURE__ */ a(r, {
|
|
16
|
+
href: e.href,
|
|
17
|
+
onClick: e.onClick,
|
|
18
|
+
className: "aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:items-center aivex:gap-xs aivex:px-sm aivex:py-2xs aivex:rounded-xs aivex:text-body-md-regular aivex:text-text-secondary aivex:cursor-pointer aivex:transition-colors",
|
|
19
|
+
...o,
|
|
20
|
+
children: [/* @__PURE__ */ i(t, { variant: "default" }), e.label]
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function s() {
|
|
24
|
+
return /* @__PURE__ */ i("span", {
|
|
25
|
+
"aria-hidden": "true",
|
|
26
|
+
className: "aivex:text-text-tertiary aivex:text-body-md-regular aivex:select-none aivex:shrink-0",
|
|
27
|
+
children: "/"
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function c({ items: e, ariaLabel: r }) {
|
|
31
|
+
return /* @__PURE__ */ a(n, { children: [/* @__PURE__ */ a(n.Trigger, {
|
|
32
|
+
render: /* @__PURE__ */ i("button", {
|
|
33
|
+
type: "button",
|
|
34
|
+
"aria-label": r,
|
|
35
|
+
className: "aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:items-center aivex:justify-center aivex:px-sm aivex:py-2xs aivex:rounded-xs aivex:text-body-md-regular aivex:text-text-secondary aivex:cursor-pointer aivex:transition-colors"
|
|
36
|
+
}),
|
|
37
|
+
children: [/* @__PURE__ */ i(t, { variant: "default" }), "···"]
|
|
38
|
+
}), /* @__PURE__ */ i(n.Content, {
|
|
39
|
+
side: "bottom",
|
|
40
|
+
align: "start",
|
|
41
|
+
children: e.map((e, r) => {
|
|
42
|
+
let o = e.as ?? (e.href ? "a" : "button"), s = o === "button" ? { type: "button" } : {};
|
|
43
|
+
return /* @__PURE__ */ a(n.Item, {
|
|
44
|
+
render: /* @__PURE__ */ i(o, {
|
|
45
|
+
href: e.href,
|
|
46
|
+
onClick: e.onClick,
|
|
47
|
+
...s
|
|
48
|
+
}),
|
|
49
|
+
children: [/* @__PURE__ */ i(t, { variant: "default" }), /* @__PURE__ */ i("span", {
|
|
50
|
+
className: "aivex:flex-1 aivex:min-w-0 aivex:truncate aivex:text-left",
|
|
51
|
+
children: e.label
|
|
52
|
+
})]
|
|
53
|
+
}, r);
|
|
54
|
+
})
|
|
55
|
+
})] });
|
|
56
|
+
}
|
|
57
|
+
function l({ className: t, items: n, maxItems: l, ellipsisAriaLabel: u = "숨겨진 경로 보기", ref: d, ...f }) {
|
|
58
|
+
let p = l !== void 0 && n.length > l, m = n[0], h = n[n.length - 1], g = p ? n.slice(1, -1) : [], _ = n.length - 1;
|
|
59
|
+
return /* @__PURE__ */ i("nav", {
|
|
60
|
+
ref: d,
|
|
61
|
+
"aria-label": "Breadcrumb",
|
|
62
|
+
className: e("aivex:flex aivex:items-center", t),
|
|
63
|
+
...f,
|
|
64
|
+
children: /* @__PURE__ */ i("ol", {
|
|
65
|
+
className: "aivex:flex aivex:flex-wrap aivex:items-center aivex:gap-2xs",
|
|
66
|
+
children: p ? /* @__PURE__ */ a(r, { children: [
|
|
67
|
+
/* @__PURE__ */ i("li", {
|
|
68
|
+
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
69
|
+
children: /* @__PURE__ */ i(o, { item: m })
|
|
70
|
+
}),
|
|
71
|
+
/* @__PURE__ */ a("li", {
|
|
72
|
+
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
73
|
+
children: [/* @__PURE__ */ i(s, {}), /* @__PURE__ */ i(c, {
|
|
74
|
+
items: g,
|
|
75
|
+
ariaLabel: u
|
|
76
|
+
})]
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ a("li", {
|
|
79
|
+
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
80
|
+
children: [/* @__PURE__ */ i(s, {}), /* @__PURE__ */ i(o, {
|
|
81
|
+
item: h,
|
|
82
|
+
isCurrent: !0
|
|
83
|
+
})]
|
|
84
|
+
})
|
|
85
|
+
] }) : n.map((e, t) => /* @__PURE__ */ a("li", {
|
|
86
|
+
className: "aivex:inline-flex aivex:items-center aivex:gap-2xs",
|
|
87
|
+
children: [t > 0 && /* @__PURE__ */ i(s, {}), /* @__PURE__ */ i(o, {
|
|
88
|
+
item: e,
|
|
89
|
+
isCurrent: t === _
|
|
90
|
+
})]
|
|
91
|
+
}, t))
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
96
|
+
export { l as BreadCrumb };
|
|
97
|
+
|
|
98
|
+
//# sourceMappingURL=BreadCrumb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BreadCrumb.js","names":[],"sources":["../../../src/components/BreadCrumb/BreadCrumb.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ElementType, HTMLAttributes, ReactNode, Ref } from \"react\";\nimport { InteractionLayer } from \"@/components/InteractionLayer\";\nimport { Menu } from \"@/components/Menu\";\nimport { cn } from \"@/utils/cn\";\n\n// ─── BreadCrumbItemDef ────────────────────────────────────────────────────────\n\n/** BreadCrumb `items`의 한 단계(경로 항목) 정의. */\nexport interface BreadCrumbItemDef {\n /** 항목에 표시할 내용 */\n label: ReactNode;\n /**\n * 렌더링할 컴포넌트를 직접 지정합니다.\n * 예: Next.js `Link` 등. 전달되는 prop은 `href`·`onClick`·`className`뿐이므로\n * `to`를 받는 React Router `Link`/`NavLink`는 그대로는 쓸 수 없습니다.\n * 지정하지 않으면 href 유무에 따라 <a> 또는 <button>으로 자동 선택됩니다.\n * 마지막(현재) 항목에는 적용되지 않습니다.\n */\n as?: ElementType;\n /** 있으면 <a href> 로 렌더링 (시맨틱 / 새 탭 열기 지원) */\n href?: string;\n /** 클릭 핸들러 (SPA 라우팅 등) */\n onClick?: () => void;\n}\n\n// ─── Internal: DepthItem ──────────────────────────────────────────────────────\n\nfunction DepthItem({ item, isCurrent }: { item: BreadCrumbItemDef; isCurrent?: boolean }) {\n const baseClassName =\n \"aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:items-center aivex:gap-xs aivex:px-sm aivex:py-2xs aivex:rounded-xs aivex:text-body-md-regular aivex:text-text-secondary aivex:cursor-pointer aivex:transition-colors\";\n\n if (isCurrent) {\n return (\n <span\n aria-current=\"page\"\n className=\"aivex:inline-flex aivex:items-center aivex:gap-xs aivex:px-sm aivex:py-2xs aivex:rounded-xs aivex:text-body-md-medium aivex:text-text-primary aivex:select-none\"\n >\n {item.label}\n </span>\n );\n }\n\n const Comp = item.as ?? (item.href ? \"a\" : \"button\");\n const extraProps = Comp === \"button\" ? { type: \"button\" as const } : {};\n\n return (\n <Comp href={item.href} onClick={item.onClick} className={baseClassName} {...extraProps}>\n <InteractionLayer variant=\"default\" />\n {item.label}\n </Comp>\n );\n}\n\n// ─── Internal: Separator ─────────────────────────────────────────────────────\n\nfunction Separator() {\n return (\n <span\n aria-hidden=\"true\"\n className=\"aivex:text-text-tertiary aivex:text-body-md-regular aivex:select-none aivex:shrink-0\"\n >\n /\n </span>\n );\n}\n\n// ─── Internal: Ellipsis ───────────────────────────────────────────────────────\n\nfunction Ellipsis({ items, ariaLabel }: { items: BreadCrumbItemDef[]; ariaLabel: string }) {\n return (\n <Menu>\n <Menu.Trigger\n render={\n <button\n type=\"button\"\n aria-label={ariaLabel}\n className=\"aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:items-center aivex:justify-center aivex:px-sm aivex:py-2xs aivex:rounded-xs aivex:text-body-md-regular aivex:text-text-secondary aivex:cursor-pointer aivex:transition-colors\"\n />\n }\n >\n <InteractionLayer variant=\"default\" />\n ···\n </Menu.Trigger>\n <Menu.Content side=\"bottom\" align=\"start\">\n {items.map((item, index) => {\n const Comp = item.as ?? (item.href ? \"a\" : \"button\");\n const extraProps = Comp === \"button\" ? { type: \"button\" as const } : {};\n return (\n <Menu.Item\n key={index}\n render={<Comp href={item.href} onClick={item.onClick} {...extraProps} />}\n >\n <InteractionLayer variant=\"default\" />\n <span className=\"aivex:flex-1 aivex:min-w-0 aivex:truncate aivex:text-left\">\n {item.label}\n </span>\n </Menu.Item>\n );\n })}\n </Menu.Content>\n </Menu>\n );\n}\n\n// ─── BreadCrumb ───────────────────────────────────────────────────────────────\n\nexport interface BreadCrumbProps extends HTMLAttributes<HTMLElement> {\n /** 상위 → 현재 순서의 경로 항목. 마지막 항목은 링크 없이 현재 페이지(`aria-current=\"page\"`)로 표시된다. */\n items: BreadCrumbItemDef[];\n /**\n * 이 값을 초과하면 중간 항목을 ··· 으로 축소합니다.\n * 예: maxItems=3이고 항목이 5개면 → 첫번째 / ··· / 마지막\n */\n maxItems?: number;\n /**\n * 축소된 경로(···) 버튼 aria-label\n * @default \"숨겨진 경로 보기\"\n */\n ellipsisAriaLabel?: string;\n ref?: Ref<HTMLElement>;\n}\n\n/**\n * 현재 페이지까지의 계층 경로를 `/` 구분자로 보여주는 브레드크럼 내비게이션.\n *\n * `<nav aria-label=\"Breadcrumb\">` + `<ol>`로 렌더링한다. 항목은 `href`가 있으면 `<a>`, 없으면 `<button>`이 되며\n * SPA 라우팅은 `onClick` 또는 `as`(예: Next.js `Link`)로 처리한다.\n * `maxItems`를 넘으면 첫 항목 / ··· / 마지막 항목으로 축소되고, ··· 를 누르면 숨은 경로가 메뉴로 열린다.\n *\n * @example\n * ```tsx\n * import { BreadCrumb } from \"@aivex/ui\";\n *\n * <BreadCrumb\n * maxItems={3}\n * items={[\n * { label: \"워크스페이스\", href: \"/workspace\" },\n * { label: \"폴더\", onClick: () => router.push(\"/folder\") },\n * { label: \"프로젝트\", href: \"/project\" },\n * { label: \"현재 페이지\" },\n * ]}\n * />\n * ```\n */\nfunction BreadCrumb({\n className,\n items,\n maxItems,\n ellipsisAriaLabel = \"숨겨진 경로 보기\",\n ref,\n ...props\n}: BreadCrumbProps) {\n const shouldCollapse = maxItems !== undefined && items.length > maxItems;\n const firstItem = items[0];\n const lastItem = items[items.length - 1];\n const hiddenItems = shouldCollapse ? items.slice(1, -1) : [];\n\n const lastIndex = items.length - 1;\n\n return (\n <nav\n ref={ref}\n aria-label=\"Breadcrumb\"\n className={cn(\"aivex:flex aivex:items-center\", className)}\n {...props}\n >\n <ol className=\"aivex:flex aivex:flex-wrap aivex:items-center aivex:gap-2xs\">\n {shouldCollapse ? (\n <>\n <li className=\"aivex:inline-flex aivex:items-center aivex:gap-2xs\">\n <DepthItem item={firstItem} />\n </li>\n <li className=\"aivex:inline-flex aivex:items-center aivex:gap-2xs\">\n <Separator />\n <Ellipsis items={hiddenItems} ariaLabel={ellipsisAriaLabel} />\n </li>\n <li className=\"aivex:inline-flex aivex:items-center aivex:gap-2xs\">\n <Separator />\n <DepthItem item={lastItem} isCurrent />\n </li>\n </>\n ) : (\n items.map((item, index) => (\n <li key={index} className=\"aivex:inline-flex aivex:items-center aivex:gap-2xs\">\n {index > 0 && <Separator />}\n <DepthItem item={item} isCurrent={index === lastIndex} />\n </li>\n ))\n )}\n </ol>\n </nav>\n );\n}\n\nexport { BreadCrumb };\n"],"mappings":";;;;;;;AA6BA,SAAS,EAAU,EAAE,SAAM,gBAA+D;AAIxF,KAAI,EACF,QACE,kBAAC,QAAD;EACE,gBAAa;EACb,WAAU;YAET,EAAK;EACD,CAAA;CAIX,IAAM,IAAO,EAAK,OAAO,EAAK,OAAO,MAAM,WACrC,IAAa,MAAS,WAAW,EAAE,MAAM,UAAmB,GAAG,EAAE;AAEvE,QACE,kBAAC,GAAD;EAAM,MAAM,EAAK;EAAM,SAAS,EAAK;EAAS,WAAW;EAAe,GAAI;YAA5E,CACE,kBAAC,GAAD,EAAkB,SAAQ,WAAY,CAAA,EACrC,EAAK,MACD;;;AAMX,SAAS,IAAY;AACnB,QACE,kBAAC,QAAD;EACE,eAAY;EACZ,WAAU;YACX;EAEM,CAAA;;AAMX,SAAS,EAAS,EAAE,UAAO,gBAAgE;AACzF,QACE,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,EAAK,SAAN;EACE,QACE,kBAAC,UAAD;GACE,MAAK;GACL,cAAY;GACZ,WAAU;GACV,CAAA;YANN,CASE,kBAAC,GAAD,EAAkB,SAAQ,WAAY,CAAA,EAAA,MAEzB;KACf,kBAAC,EAAK,SAAN;EAAc,MAAK;EAAS,OAAM;YAC/B,EAAM,KAAK,GAAM,MAAU;GAC1B,IAAM,IAAO,EAAK,OAAO,EAAK,OAAO,MAAM,WACrC,IAAa,MAAS,WAAW,EAAE,MAAM,UAAmB,GAAG,EAAE;AACvE,UACE,kBAAC,EAAK,MAAN;IAEE,QAAQ,kBAAC,GAAD;KAAM,MAAM,EAAK;KAAM,SAAS,EAAK;KAAS,GAAI;KAAc,CAAA;cAF1E,CAIE,kBAAC,GAAD,EAAkB,SAAQ,WAAY,CAAA,EACtC,kBAAC,QAAD;KAAM,WAAU;eACb,EAAK;KACD,CAAA,CACG;MAPL,EAOK;IAEd;EACW,CAAA,CACV,EAAA,CAAA;;AA4CX,SAAS,EAAW,EAClB,cACA,UACA,aACA,uBAAoB,aACpB,QACA,GAAG,KACe;CAClB,IAAM,IAAiB,MAAa,KAAA,KAAa,EAAM,SAAS,GAC1D,IAAY,EAAM,IAClB,IAAW,EAAM,EAAM,SAAS,IAChC,IAAc,IAAiB,EAAM,MAAM,GAAG,GAAG,GAAG,EAAE,EAEtD,IAAY,EAAM,SAAS;AAEjC,QACE,kBAAC,OAAD;EACO;EACL,cAAW;EACX,WAAW,EAAG,iCAAiC,EAAU;EACzD,GAAI;YAEJ,kBAAC,MAAD;GAAI,WAAU;aACX,IACC,kBAAA,GAAA,EAAA,UAAA;IACE,kBAAC,MAAD;KAAI,WAAU;eACZ,kBAAC,GAAD,EAAW,MAAM,GAAa,CAAA;KAC3B,CAAA;IACL,kBAAC,MAAD;KAAI,WAAU;eAAd,CACE,kBAAC,GAAD,EAAa,CAAA,EACb,kBAAC,GAAD;MAAU,OAAO;MAAa,WAAW;MAAqB,CAAA,CAC3D;;IACL,kBAAC,MAAD;KAAI,WAAU;eAAd,CACE,kBAAC,GAAD,EAAa,CAAA,EACb,kBAAC,GAAD;MAAW,MAAM;MAAU,WAAA;MAAY,CAAA,CACpC;;IACJ,EAAA,CAAA,GAEH,EAAM,KAAK,GAAM,MACf,kBAAC,MAAD;IAAgB,WAAU;cAA1B,CACG,IAAQ,KAAK,kBAAC,GAAD,EAAa,CAAA,EAC3B,kBAAC,GAAD;KAAiB;KAAM,WAAW,MAAU;KAAa,CAAA,CACtD;MAHI,EAGJ,CACL;GAED,CAAA;EACD,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { BreadCrumbItemDef, BreadCrumbProps } from "./BreadCrumb";
|
|
2
|
-
export { BreadCrumb } from "./BreadCrumb";
|
|
1
|
+
export type { BreadCrumbItemDef, BreadCrumbProps } from "./BreadCrumb.js";
|
|
2
|
+
export { BreadCrumb } from "./BreadCrumb.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../utils.cjs`),t=require(`../InteractionLayer/InteractionLayer.cjs`);let n=require(`react/jsx-runtime`),r=require(`@base-ui/react/use-render`);var i=(0,require(`class-variance-authority`).cva)(`aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:cursor-pointer aivex:items-center aivex:justify-center aivex:whitespace-nowrap aivex:border aivex:border-transparent aivex:transition-colors aivex:disabled:pointer-events-none aivex:disabled:opacity-disable aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand`,{variants:{variant:{solid:``,outline:``,ghost:``},color:{primary:``,secondary:``,danger:``},size:{sm:`aivex:h-6 aivex:gap-none aivex:px-sm aivex:rounded-sm aivex:text-label-md`,md:`aivex:h-8 aivex:gap-2xs aivex:px-md aivex:rounded-md aivex:text-label-lg`,lg:`aivex:h-10 aivex:gap-xs aivex:px-lg aivex:rounded-md aivex:text-label-xl`,"icon-sm":`aivex:h-6 aivex:w-6 aivex:px-0 aivex:rounded-sm`,"icon-md":`aivex:h-8 aivex:w-8 aivex:px-0 aivex:rounded-md`,"icon-lg":`aivex:h-10 aivex:w-10 aivex:px-0 aivex:rounded-md`}},compoundVariants:[{variant:`solid`,color:`primary`,className:`aivex:bg-bg-brand aivex:text-text-on-color`},{variant:`solid`,color:`secondary`,className:`aivex:bg-bg-tertiary aivex:text-text-primary`},{variant:`solid`,color:`danger`,className:`aivex:bg-bg-danger aivex:text-text-on-color`},{variant:`outline`,color:`primary`,className:`aivex:border-border-brand aivex:text-text-brand`},{variant:`outline`,color:`secondary`,className:`aivex:border-border-default aivex:text-text-primary`},{variant:`outline`,color:`danger`,className:`aivex:border-border-danger aivex:text-text-danger`},{variant:`ghost`,color:`primary`,className:`aivex:text-text-brand`},{variant:`ghost`,color:`secondary`,className:`aivex:text-text-primary`},{variant:`ghost`,color:`danger`,className:`aivex:text-text-danger`}],defaultVariants:{variant:`solid`,size:`md`}});function a(e=`solid`,t){return t??(e===`solid`?`primary`:`secondary`)}function o(e,t){return e===`solid`?t===`secondary`?`default`:`strong`:t===`danger`?`danger`:`default`}function s({variant:e=`solid`,color:t,size:n=`md`,className:r}={}){let o=e??`solid`;return i({variant:o,color:a(o,t),size:n,className:r})}function c({className:i,variant:c=`solid`,color:l,size:u=`md`,render:d,startContent:f,endContent:p,ref:m,children:h,...g}){let _=c??`solid`,v=a(_,l),y=u??`md`,b=y.startsWith(`icon-`),x=!b&&f,S=!b&&p;return(0,r.useRender)({defaultTagName:`button`,render:d,ref:m,props:{...g,className:e.cn(s({variant:_,color:v,size:y}),i),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.InteractionLayer,{variant:o(_,v)}),x&&(0,n.jsx)(`span`,{className:`aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center`,children:f}),h,S&&(0,n.jsx)(`span`,{className:`aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center`,children:p})]})}})}exports.Button=c,exports.buttonVariants=s;
|
|
2
|
+
//# sourceMappingURL=Button.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.cjs","names":[],"sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import { useRender } from \"@base-ui/react/use-render\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport type { ButtonHTMLAttributes, ReactNode, Ref } from \"react\";\nimport { InteractionLayer, type InteractionLayerVariant } from \"@/components/InteractionLayer\";\nimport { cn } from \"@/utils/cn\";\n\nconst buttonVariantStyles = cva(\n \"aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:cursor-pointer aivex:items-center aivex:justify-center aivex:whitespace-nowrap aivex:border aivex:border-transparent aivex:transition-colors aivex:disabled:pointer-events-none aivex:disabled:opacity-disable aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand\",\n {\n variants: {\n variant: {\n solid: \"\",\n outline: \"\",\n ghost: \"\",\n },\n color: {\n primary: \"\",\n secondary: \"\",\n danger: \"\",\n },\n size: {\n sm: \"aivex:h-6 aivex:gap-none aivex:px-sm aivex:rounded-sm aivex:text-label-md\",\n md: \"aivex:h-8 aivex:gap-2xs aivex:px-md aivex:rounded-md aivex:text-label-lg\",\n lg: \"aivex:h-10 aivex:gap-xs aivex:px-lg aivex:rounded-md aivex:text-label-xl\",\n \"icon-sm\": \"aivex:h-6 aivex:w-6 aivex:px-0 aivex:rounded-sm\",\n \"icon-md\": \"aivex:h-8 aivex:w-8 aivex:px-0 aivex:rounded-md\",\n \"icon-lg\": \"aivex:h-10 aivex:w-10 aivex:px-0 aivex:rounded-md\",\n },\n },\n compoundVariants: [\n {\n variant: \"solid\",\n color: \"primary\",\n className: \"aivex:bg-bg-brand aivex:text-text-on-color\",\n },\n {\n variant: \"solid\",\n color: \"secondary\",\n className: \"aivex:bg-bg-tertiary aivex:text-text-primary\",\n },\n {\n variant: \"solid\",\n color: \"danger\",\n className: \"aivex:bg-bg-danger aivex:text-text-on-color\",\n },\n {\n variant: \"outline\",\n color: \"primary\",\n className: \"aivex:border-border-brand aivex:text-text-brand\",\n },\n {\n variant: \"outline\",\n color: \"secondary\",\n className: \"aivex:border-border-default aivex:text-text-primary\",\n },\n {\n variant: \"outline\",\n color: \"danger\",\n className: \"aivex:border-border-danger aivex:text-text-danger\",\n },\n {\n variant: \"ghost\",\n color: \"primary\",\n className: \"aivex:text-text-brand\",\n },\n {\n variant: \"ghost\",\n color: \"secondary\",\n className: \"aivex:text-text-primary\",\n },\n {\n variant: \"ghost\",\n color: \"danger\",\n className: \"aivex:text-text-danger\",\n },\n ],\n defaultVariants: {\n variant: \"solid\",\n size: \"md\",\n },\n },\n);\n\ntype ButtonVariantProps = VariantProps<typeof buttonVariantStyles>;\ntype ButtonVariant = NonNullable<ButtonVariantProps[\"variant\"]>;\ntype ButtonColor = NonNullable<ButtonVariantProps[\"color\"]>;\n\nfunction getButtonColor(variant: ButtonVariant = \"solid\", color?: ButtonColor | null) {\n return color ?? (variant === \"solid\" ? \"primary\" : \"secondary\");\n}\n\nfunction getInteractionVariant(\n variant: ButtonVariant,\n color: ButtonColor,\n): InteractionLayerVariant {\n if (variant === \"solid\") {\n return color === \"secondary\" ? \"default\" : \"strong\";\n }\n\n return color === \"danger\" ? \"danger\" : \"default\";\n}\n\n/**\n * Button과 같은 모양의 클래스 문자열을 만든다. `color`를 생략하면 solid는 primary, 그 외는 secondary가 된다.\n * 링크 등 Button이 아닌 요소를 버튼처럼 꾸밀 때 쓴다.\n */\nfunction buttonVariants({\n variant = \"solid\",\n color,\n size = \"md\",\n className,\n}: ButtonVariantProps & { className?: string } = {}) {\n const effectiveVariant = variant ?? \"solid\";\n const effectiveColor = getButtonColor(effectiveVariant, color);\n\n return buttonVariantStyles({ variant: effectiveVariant, color: effectiveColor, size, className });\n}\n\nexport interface ButtonProps\n extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, \"color\">,\n ButtonVariantProps {\n /**\n * `<button>` 대신 그릴 요소(예: `<a href=\"…\" />`) 또는 `(props) => 요소` 함수.\n * 버튼의 props·스타일이 그 요소에 합쳐지고, 라벨과 슬롯은 `children`으로 그대로 넘긴다.\n */\n render?: useRender.RenderProp;\n /** 라벨 앞 슬롯(주로 아이콘). `icon-*` 크기에서는 렌더링되지 않는다. */\n startContent?: ReactNode;\n /** 라벨 뒤 슬롯(주로 아이콘). `icon-*` 크기에서는 렌더링되지 않는다. */\n endContent?: ReactNode;\n /** 버튼 라벨. `icon-*` 크기에서는 아이콘 하나를 넣는다. */\n children?: ReactNode;\n ref?: Ref<HTMLButtonElement>;\n}\n\n/**\n * 텍스트 라벨이 있는 기본 액션 버튼.\n *\n * `variant`: solid(채움, 기본)·outline(테두리)·ghost(배경 없음). `color`: primary·secondary·danger이며\n * 생략하면 solid는 primary, outline·ghost는 secondary가 된다. `size`: sm(24px)·md(32px, 기본)·lg(40px),\n * 아이콘 전용 정사각형은 icon-sm·icon-md·icon-lg(이때 `aria-label` 필수).\n * 툴바·닫기 같은 배경 없는 작은 아이콘 버튼은 `IconButton`을 쓴다.\n * `type`을 기본값으로 지정하지 않으므로 폼 안에서 제출 용도가 아니면 `type=\"button\"`을 준다.\n *\n * @example\n * ```tsx\n * import { Button, PlusIcon } from \"@aivex/ui\";\n *\n * <Button type=\"button\" variant=\"outline\" color=\"primary\" startContent={<PlusIcon size={20} />}>\n * 추가\n * </Button>\n * <Button type=\"submit\" color=\"danger\">삭제</Button>\n * ```\n */\nfunction Button({\n className,\n variant = \"solid\",\n color,\n size = \"md\",\n render,\n startContent,\n endContent,\n ref,\n children,\n ...props\n}: ButtonProps) {\n const effectiveVariant = variant ?? \"solid\";\n const effectiveColor = getButtonColor(effectiveVariant, color);\n const effectiveSize = size ?? \"md\";\n const isIconSize = effectiveSize.startsWith(\"icon-\");\n const shouldRenderStartContent = !isIconSize && startContent;\n const shouldRenderEndContent = !isIconSize && endContent;\n\n return useRender({\n defaultTagName: \"button\",\n render,\n ref,\n props: {\n ...props,\n className: cn(\n buttonVariants({ variant: effectiveVariant, color: effectiveColor, size: effectiveSize }),\n className,\n ),\n children: (\n <>\n <InteractionLayer variant={getInteractionVariant(effectiveVariant, effectiveColor)} />\n {shouldRenderStartContent && (\n <span className=\"aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center\">\n {startContent}\n </span>\n )}\n {children}\n {shouldRenderEndContent && (\n <span className=\"aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center\">\n {endContent}\n </span>\n )}\n </>\n ),\n },\n });\n}\n\nexport { Button, buttonVariants };\n"],"mappings":"gOAMA,IAAM,GAAA,sCAAA,KACJ,4XACA,CACE,SAAU,CACR,QAAS,CACP,MAAO,GACP,QAAS,GACT,MAAO,GACR,CACD,MAAO,CACL,QAAS,GACT,UAAW,GACX,OAAQ,GACT,CACD,KAAM,CACJ,GAAI,4EACJ,GAAI,2EACJ,GAAI,2EACJ,UAAW,kDACX,UAAW,kDACX,UAAW,oDACZ,CACF,CACD,iBAAkB,CAChB,CACE,QAAS,QACT,MAAO,UACP,UAAW,6CACZ,CACD,CACE,QAAS,QACT,MAAO,YACP,UAAW,+CACZ,CACD,CACE,QAAS,QACT,MAAO,SACP,UAAW,8CACZ,CACD,CACE,QAAS,UACT,MAAO,UACP,UAAW,kDACZ,CACD,CACE,QAAS,UACT,MAAO,YACP,UAAW,sDACZ,CACD,CACE,QAAS,UACT,MAAO,SACP,UAAW,oDACZ,CACD,CACE,QAAS,QACT,MAAO,UACP,UAAW,wBACZ,CACD,CACE,QAAS,QACT,MAAO,YACP,UAAW,0BACZ,CACD,CACE,QAAS,QACT,MAAO,SACP,UAAW,yBACZ,CACF,CACD,gBAAiB,CACf,QAAS,QACT,KAAM,KACP,CACF,CACF,CAMD,SAAS,EAAe,EAAyB,QAAS,EAA4B,CACpF,OAAO,IAAU,IAAY,QAAU,UAAY,aAGrD,SAAS,EACP,EACA,EACyB,CAKzB,OAJI,IAAY,QACP,IAAU,YAAc,UAAY,SAGtC,IAAU,SAAW,SAAW,UAOzC,SAAS,EAAe,CACtB,UAAU,QACV,QACA,OAAO,KACP,aAC+C,EAAE,CAAE,CACnD,IAAM,EAAmB,GAAW,QAGpC,OAAO,EAAoB,CAAE,QAAS,EAAkB,MAFjC,EAAe,EAAkB,EAAM,CAEiB,OAAM,YAAW,CAAC,CAuCnG,SAAS,EAAO,CACd,YACA,UAAU,QACV,QACA,OAAO,KACP,SACA,eACA,aACA,MACA,WACA,GAAG,GACW,CACd,IAAM,EAAmB,GAAW,QAC9B,EAAiB,EAAe,EAAkB,EAAM,CACxD,EAAgB,GAAQ,KACxB,EAAa,EAAc,WAAW,QAAQ,CAC9C,EAA2B,CAAC,GAAc,EAC1C,EAAyB,CAAC,GAAc,EAE9C,OAAA,EAAA,EAAA,WAAiB,CACf,eAAgB,SAChB,SACA,MACA,MAAO,CACL,GAAG,EACH,UAAW,EAAA,GACT,EAAe,CAAE,QAAS,EAAkB,MAAO,EAAgB,KAAM,EAAe,CAAC,CACzF,EACD,CACD,UACE,EAAA,EAAA,MAAA,EAAA,SAAA,CAAA,SAAA,EACE,EAAA,EAAA,KAAC,EAAA,iBAAD,CAAkB,QAAS,EAAsB,EAAkB,EAAe,CAAI,CAAA,CACrF,IACC,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,6EACb,EACI,CAAA,CAER,EACA,IACC,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,6EACb,EACI,CAAA,CAER,CAAA,CAAA,CAEN,CACF,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
import type { ButtonHTMLAttributes, ReactNode, Ref } from "react";
|
|
4
|
+
declare const buttonVariantStyles: (props?: ({
|
|
5
|
+
variant?: "ghost" | "outline" | "solid" | null | undefined;
|
|
6
|
+
color?: "danger" | "primary" | "secondary" | null | undefined;
|
|
7
|
+
size?: "icon-lg" | "icon-md" | "icon-sm" | "lg" | "md" | "sm" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
+
type ButtonVariantProps = VariantProps<typeof buttonVariantStyles>;
|
|
10
|
+
/**
|
|
11
|
+
* Button과 같은 모양의 클래스 문자열을 만든다. `color`를 생략하면 solid는 primary, 그 외는 secondary가 된다.
|
|
12
|
+
* 링크 등 Button이 아닌 요소를 버튼처럼 꾸밀 때 쓴다.
|
|
13
|
+
*/
|
|
14
|
+
declare function buttonVariants({ variant, color, size, className, }?: ButtonVariantProps & {
|
|
15
|
+
className?: string;
|
|
16
|
+
}): string;
|
|
17
|
+
export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "color">, ButtonVariantProps {
|
|
18
|
+
/**
|
|
19
|
+
* `<button>` 대신 그릴 요소(예: `<a href="…" />`) 또는 `(props) => 요소` 함수.
|
|
20
|
+
* 버튼의 props·스타일이 그 요소에 합쳐지고, 라벨과 슬롯은 `children`으로 그대로 넘긴다.
|
|
21
|
+
*/
|
|
22
|
+
render?: useRender.RenderProp;
|
|
23
|
+
/** 라벨 앞 슬롯(주로 아이콘). `icon-*` 크기에서는 렌더링되지 않는다. */
|
|
24
|
+
startContent?: ReactNode;
|
|
25
|
+
/** 라벨 뒤 슬롯(주로 아이콘). `icon-*` 크기에서는 렌더링되지 않는다. */
|
|
26
|
+
endContent?: ReactNode;
|
|
27
|
+
/** 버튼 라벨. `icon-*` 크기에서는 아이콘 하나를 넣는다. */
|
|
28
|
+
children?: ReactNode;
|
|
29
|
+
ref?: Ref<HTMLButtonElement>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 텍스트 라벨이 있는 기본 액션 버튼.
|
|
33
|
+
*
|
|
34
|
+
* `variant`: solid(채움, 기본)·outline(테두리)·ghost(배경 없음). `color`: primary·secondary·danger이며
|
|
35
|
+
* 생략하면 solid는 primary, outline·ghost는 secondary가 된다. `size`: sm(24px)·md(32px, 기본)·lg(40px),
|
|
36
|
+
* 아이콘 전용 정사각형은 icon-sm·icon-md·icon-lg(이때 `aria-label` 필수).
|
|
37
|
+
* 툴바·닫기 같은 배경 없는 작은 아이콘 버튼은 `IconButton`을 쓴다.
|
|
38
|
+
* `type`을 기본값으로 지정하지 않으므로 폼 안에서 제출 용도가 아니면 `type="button"`을 준다.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* import { Button, PlusIcon } from "@aivex/ui";
|
|
43
|
+
*
|
|
44
|
+
* <Button type="button" variant="outline" color="primary" startContent={<PlusIcon size={20} />}>
|
|
45
|
+
* 추가
|
|
46
|
+
* </Button>
|
|
47
|
+
* <Button type="submit" color="danger">삭제</Button>
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
declare function Button({ className, variant, color, size, render, startContent, endContent, ref, children, ...props }: ButtonProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
51
|
+
export { Button, buttonVariants };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
1
2
|
import { type VariantProps } from "class-variance-authority";
|
|
2
3
|
import type { ButtonHTMLAttributes, ReactNode, Ref } from "react";
|
|
3
4
|
declare const buttonVariantStyles: (props?: ({
|
|
@@ -6,15 +7,45 @@ declare const buttonVariantStyles: (props?: ({
|
|
|
6
7
|
size?: "icon-lg" | "icon-md" | "icon-sm" | "lg" | "md" | "sm" | null | undefined;
|
|
7
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
9
|
type ButtonVariantProps = VariantProps<typeof buttonVariantStyles>;
|
|
10
|
+
/**
|
|
11
|
+
* Button과 같은 모양의 클래스 문자열을 만든다. `color`를 생략하면 solid는 primary, 그 외는 secondary가 된다.
|
|
12
|
+
* 링크 등 Button이 아닌 요소를 버튼처럼 꾸밀 때 쓴다.
|
|
13
|
+
*/
|
|
9
14
|
declare function buttonVariants({ variant, color, size, className, }?: ButtonVariantProps & {
|
|
10
15
|
className?: string;
|
|
11
16
|
}): string;
|
|
12
17
|
export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "color">, ButtonVariantProps {
|
|
13
|
-
|
|
18
|
+
/**
|
|
19
|
+
* `<button>` 대신 그릴 요소(예: `<a href="…" />`) 또는 `(props) => 요소` 함수.
|
|
20
|
+
* 버튼의 props·스타일이 그 요소에 합쳐지고, 라벨과 슬롯은 `children`으로 그대로 넘긴다.
|
|
21
|
+
*/
|
|
22
|
+
render?: useRender.RenderProp;
|
|
23
|
+
/** 라벨 앞 슬롯(주로 아이콘). `icon-*` 크기에서는 렌더링되지 않는다. */
|
|
14
24
|
startContent?: ReactNode;
|
|
25
|
+
/** 라벨 뒤 슬롯(주로 아이콘). `icon-*` 크기에서는 렌더링되지 않는다. */
|
|
15
26
|
endContent?: ReactNode;
|
|
27
|
+
/** 버튼 라벨. `icon-*` 크기에서는 아이콘 하나를 넣는다. */
|
|
16
28
|
children?: ReactNode;
|
|
17
29
|
ref?: Ref<HTMLButtonElement>;
|
|
18
30
|
}
|
|
19
|
-
|
|
31
|
+
/**
|
|
32
|
+
* 텍스트 라벨이 있는 기본 액션 버튼.
|
|
33
|
+
*
|
|
34
|
+
* `variant`: solid(채움, 기본)·outline(테두리)·ghost(배경 없음). `color`: primary·secondary·danger이며
|
|
35
|
+
* 생략하면 solid는 primary, outline·ghost는 secondary가 된다. `size`: sm(24px)·md(32px, 기본)·lg(40px),
|
|
36
|
+
* 아이콘 전용 정사각형은 icon-sm·icon-md·icon-lg(이때 `aria-label` 필수).
|
|
37
|
+
* 툴바·닫기 같은 배경 없는 작은 아이콘 버튼은 `IconButton`을 쓴다.
|
|
38
|
+
* `type`을 기본값으로 지정하지 않으므로 폼 안에서 제출 용도가 아니면 `type="button"`을 준다.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* import { Button, PlusIcon } from "@aivex/ui";
|
|
43
|
+
*
|
|
44
|
+
* <Button type="button" variant="outline" color="primary" startContent={<PlusIcon size={20} />}>
|
|
45
|
+
* 추가
|
|
46
|
+
* </Button>
|
|
47
|
+
* <Button type="submit" color="danger">삭제</Button>
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
declare function Button({ className, variant, color, size, render, startContent, endContent, ref, children, ...props }: ButtonProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
20
51
|
export { Button, buttonVariants };
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../utils.js";
|
|
3
|
+
import { InteractionLayer as t } from "../InteractionLayer/InteractionLayer.js";
|
|
4
|
+
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { useRender as a } from "@base-ui/react/use-render";
|
|
6
|
+
import { cva as o } from "class-variance-authority";
|
|
7
|
+
//#region src/components/Button/Button.tsx
|
|
8
|
+
var s = o("aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:cursor-pointer aivex:items-center aivex:justify-center aivex:whitespace-nowrap aivex:border aivex:border-transparent aivex:transition-colors aivex:disabled:pointer-events-none aivex:disabled:opacity-disable aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand", {
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
solid: "",
|
|
12
|
+
outline: "",
|
|
13
|
+
ghost: ""
|
|
14
|
+
},
|
|
15
|
+
color: {
|
|
16
|
+
primary: "",
|
|
17
|
+
secondary: "",
|
|
18
|
+
danger: ""
|
|
19
|
+
},
|
|
20
|
+
size: {
|
|
21
|
+
sm: "aivex:h-6 aivex:gap-none aivex:px-sm aivex:rounded-sm aivex:text-label-md",
|
|
22
|
+
md: "aivex:h-8 aivex:gap-2xs aivex:px-md aivex:rounded-md aivex:text-label-lg",
|
|
23
|
+
lg: "aivex:h-10 aivex:gap-xs aivex:px-lg aivex:rounded-md aivex:text-label-xl",
|
|
24
|
+
"icon-sm": "aivex:h-6 aivex:w-6 aivex:px-0 aivex:rounded-sm",
|
|
25
|
+
"icon-md": "aivex:h-8 aivex:w-8 aivex:px-0 aivex:rounded-md",
|
|
26
|
+
"icon-lg": "aivex:h-10 aivex:w-10 aivex:px-0 aivex:rounded-md"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
compoundVariants: [
|
|
30
|
+
{
|
|
31
|
+
variant: "solid",
|
|
32
|
+
color: "primary",
|
|
33
|
+
className: "aivex:bg-bg-brand aivex:text-text-on-color"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
variant: "solid",
|
|
37
|
+
color: "secondary",
|
|
38
|
+
className: "aivex:bg-bg-tertiary aivex:text-text-primary"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
variant: "solid",
|
|
42
|
+
color: "danger",
|
|
43
|
+
className: "aivex:bg-bg-danger aivex:text-text-on-color"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
variant: "outline",
|
|
47
|
+
color: "primary",
|
|
48
|
+
className: "aivex:border-border-brand aivex:text-text-brand"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
variant: "outline",
|
|
52
|
+
color: "secondary",
|
|
53
|
+
className: "aivex:border-border-default aivex:text-text-primary"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
variant: "outline",
|
|
57
|
+
color: "danger",
|
|
58
|
+
className: "aivex:border-border-danger aivex:text-text-danger"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
variant: "ghost",
|
|
62
|
+
color: "primary",
|
|
63
|
+
className: "aivex:text-text-brand"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
variant: "ghost",
|
|
67
|
+
color: "secondary",
|
|
68
|
+
className: "aivex:text-text-primary"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
variant: "ghost",
|
|
72
|
+
color: "danger",
|
|
73
|
+
className: "aivex:text-text-danger"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
defaultVariants: {
|
|
77
|
+
variant: "solid",
|
|
78
|
+
size: "md"
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
function c(e = "solid", t) {
|
|
82
|
+
return t ?? (e === "solid" ? "primary" : "secondary");
|
|
83
|
+
}
|
|
84
|
+
function l(e, t) {
|
|
85
|
+
return e === "solid" ? t === "secondary" ? "default" : "strong" : t === "danger" ? "danger" : "default";
|
|
86
|
+
}
|
|
87
|
+
function u({ variant: e = "solid", color: t, size: n = "md", className: r } = {}) {
|
|
88
|
+
let i = e ?? "solid";
|
|
89
|
+
return s({
|
|
90
|
+
variant: i,
|
|
91
|
+
color: c(i, t),
|
|
92
|
+
size: n,
|
|
93
|
+
className: r
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function d({ className: o, variant: s = "solid", color: d, size: f = "md", render: p, startContent: m, endContent: h, ref: g, children: _, ...v }) {
|
|
97
|
+
let y = s ?? "solid", b = c(y, d), x = f ?? "md", S = x.startsWith("icon-"), C = !S && m, w = !S && h;
|
|
98
|
+
return a({
|
|
99
|
+
defaultTagName: "button",
|
|
100
|
+
render: p,
|
|
101
|
+
ref: g,
|
|
102
|
+
props: {
|
|
103
|
+
...v,
|
|
104
|
+
className: e(u({
|
|
105
|
+
variant: y,
|
|
106
|
+
color: b,
|
|
107
|
+
size: x
|
|
108
|
+
}), o),
|
|
109
|
+
children: /* @__PURE__ */ i(n, { children: [
|
|
110
|
+
/* @__PURE__ */ r(t, { variant: l(y, b) }),
|
|
111
|
+
C && /* @__PURE__ */ r("span", {
|
|
112
|
+
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center",
|
|
113
|
+
children: m
|
|
114
|
+
}),
|
|
115
|
+
_,
|
|
116
|
+
w && /* @__PURE__ */ r("span", {
|
|
117
|
+
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center",
|
|
118
|
+
children: h
|
|
119
|
+
})
|
|
120
|
+
] })
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
export { d as Button, u as buttonVariants };
|
|
126
|
+
|
|
127
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","names":[],"sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import { useRender } from \"@base-ui/react/use-render\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport type { ButtonHTMLAttributes, ReactNode, Ref } from \"react\";\nimport { InteractionLayer, type InteractionLayerVariant } from \"@/components/InteractionLayer\";\nimport { cn } from \"@/utils/cn\";\n\nconst buttonVariantStyles = cva(\n \"aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:cursor-pointer aivex:items-center aivex:justify-center aivex:whitespace-nowrap aivex:border aivex:border-transparent aivex:transition-colors aivex:disabled:pointer-events-none aivex:disabled:opacity-disable aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand\",\n {\n variants: {\n variant: {\n solid: \"\",\n outline: \"\",\n ghost: \"\",\n },\n color: {\n primary: \"\",\n secondary: \"\",\n danger: \"\",\n },\n size: {\n sm: \"aivex:h-6 aivex:gap-none aivex:px-sm aivex:rounded-sm aivex:text-label-md\",\n md: \"aivex:h-8 aivex:gap-2xs aivex:px-md aivex:rounded-md aivex:text-label-lg\",\n lg: \"aivex:h-10 aivex:gap-xs aivex:px-lg aivex:rounded-md aivex:text-label-xl\",\n \"icon-sm\": \"aivex:h-6 aivex:w-6 aivex:px-0 aivex:rounded-sm\",\n \"icon-md\": \"aivex:h-8 aivex:w-8 aivex:px-0 aivex:rounded-md\",\n \"icon-lg\": \"aivex:h-10 aivex:w-10 aivex:px-0 aivex:rounded-md\",\n },\n },\n compoundVariants: [\n {\n variant: \"solid\",\n color: \"primary\",\n className: \"aivex:bg-bg-brand aivex:text-text-on-color\",\n },\n {\n variant: \"solid\",\n color: \"secondary\",\n className: \"aivex:bg-bg-tertiary aivex:text-text-primary\",\n },\n {\n variant: \"solid\",\n color: \"danger\",\n className: \"aivex:bg-bg-danger aivex:text-text-on-color\",\n },\n {\n variant: \"outline\",\n color: \"primary\",\n className: \"aivex:border-border-brand aivex:text-text-brand\",\n },\n {\n variant: \"outline\",\n color: \"secondary\",\n className: \"aivex:border-border-default aivex:text-text-primary\",\n },\n {\n variant: \"outline\",\n color: \"danger\",\n className: \"aivex:border-border-danger aivex:text-text-danger\",\n },\n {\n variant: \"ghost\",\n color: \"primary\",\n className: \"aivex:text-text-brand\",\n },\n {\n variant: \"ghost\",\n color: \"secondary\",\n className: \"aivex:text-text-primary\",\n },\n {\n variant: \"ghost\",\n color: \"danger\",\n className: \"aivex:text-text-danger\",\n },\n ],\n defaultVariants: {\n variant: \"solid\",\n size: \"md\",\n },\n },\n);\n\ntype ButtonVariantProps = VariantProps<typeof buttonVariantStyles>;\ntype ButtonVariant = NonNullable<ButtonVariantProps[\"variant\"]>;\ntype ButtonColor = NonNullable<ButtonVariantProps[\"color\"]>;\n\nfunction getButtonColor(variant: ButtonVariant = \"solid\", color?: ButtonColor | null) {\n return color ?? (variant === \"solid\" ? \"primary\" : \"secondary\");\n}\n\nfunction getInteractionVariant(\n variant: ButtonVariant,\n color: ButtonColor,\n): InteractionLayerVariant {\n if (variant === \"solid\") {\n return color === \"secondary\" ? \"default\" : \"strong\";\n }\n\n return color === \"danger\" ? \"danger\" : \"default\";\n}\n\n/**\n * Button과 같은 모양의 클래스 문자열을 만든다. `color`를 생략하면 solid는 primary, 그 외는 secondary가 된다.\n * 링크 등 Button이 아닌 요소를 버튼처럼 꾸밀 때 쓴다.\n */\nfunction buttonVariants({\n variant = \"solid\",\n color,\n size = \"md\",\n className,\n}: ButtonVariantProps & { className?: string } = {}) {\n const effectiveVariant = variant ?? \"solid\";\n const effectiveColor = getButtonColor(effectiveVariant, color);\n\n return buttonVariantStyles({ variant: effectiveVariant, color: effectiveColor, size, className });\n}\n\nexport interface ButtonProps\n extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, \"color\">,\n ButtonVariantProps {\n /**\n * `<button>` 대신 그릴 요소(예: `<a href=\"…\" />`) 또는 `(props) => 요소` 함수.\n * 버튼의 props·스타일이 그 요소에 합쳐지고, 라벨과 슬롯은 `children`으로 그대로 넘긴다.\n */\n render?: useRender.RenderProp;\n /** 라벨 앞 슬롯(주로 아이콘). `icon-*` 크기에서는 렌더링되지 않는다. */\n startContent?: ReactNode;\n /** 라벨 뒤 슬롯(주로 아이콘). `icon-*` 크기에서는 렌더링되지 않는다. */\n endContent?: ReactNode;\n /** 버튼 라벨. `icon-*` 크기에서는 아이콘 하나를 넣는다. */\n children?: ReactNode;\n ref?: Ref<HTMLButtonElement>;\n}\n\n/**\n * 텍스트 라벨이 있는 기본 액션 버튼.\n *\n * `variant`: solid(채움, 기본)·outline(테두리)·ghost(배경 없음). `color`: primary·secondary·danger이며\n * 생략하면 solid는 primary, outline·ghost는 secondary가 된다. `size`: sm(24px)·md(32px, 기본)·lg(40px),\n * 아이콘 전용 정사각형은 icon-sm·icon-md·icon-lg(이때 `aria-label` 필수).\n * 툴바·닫기 같은 배경 없는 작은 아이콘 버튼은 `IconButton`을 쓴다.\n * `type`을 기본값으로 지정하지 않으므로 폼 안에서 제출 용도가 아니면 `type=\"button\"`을 준다.\n *\n * @example\n * ```tsx\n * import { Button, PlusIcon } from \"@aivex/ui\";\n *\n * <Button type=\"button\" variant=\"outline\" color=\"primary\" startContent={<PlusIcon size={20} />}>\n * 추가\n * </Button>\n * <Button type=\"submit\" color=\"danger\">삭제</Button>\n * ```\n */\nfunction Button({\n className,\n variant = \"solid\",\n color,\n size = \"md\",\n render,\n startContent,\n endContent,\n ref,\n children,\n ...props\n}: ButtonProps) {\n const effectiveVariant = variant ?? \"solid\";\n const effectiveColor = getButtonColor(effectiveVariant, color);\n const effectiveSize = size ?? \"md\";\n const isIconSize = effectiveSize.startsWith(\"icon-\");\n const shouldRenderStartContent = !isIconSize && startContent;\n const shouldRenderEndContent = !isIconSize && endContent;\n\n return useRender({\n defaultTagName: \"button\",\n render,\n ref,\n props: {\n ...props,\n className: cn(\n buttonVariants({ variant: effectiveVariant, color: effectiveColor, size: effectiveSize }),\n className,\n ),\n children: (\n <>\n <InteractionLayer variant={getInteractionVariant(effectiveVariant, effectiveColor)} />\n {shouldRenderStartContent && (\n <span className=\"aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center\">\n {startContent}\n </span>\n )}\n {children}\n {shouldRenderEndContent && (\n <span className=\"aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center\">\n {endContent}\n </span>\n )}\n </>\n ),\n },\n });\n}\n\nexport { Button, buttonVariants };\n"],"mappings":";;;;;;;AAMA,IAAM,IAAsB,EAC1B,6XACA;CACE,UAAU;EACR,SAAS;GACP,OAAO;GACP,SAAS;GACT,OAAO;GACR;EACD,OAAO;GACL,SAAS;GACT,WAAW;GACX,QAAQ;GACT;EACD,MAAM;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,WAAW;GACX,WAAW;GACX,WAAW;GACZ;EACF;CACD,kBAAkB;EAChB;GACE,SAAS;GACT,OAAO;GACP,WAAW;GACZ;EACD;GACE,SAAS;GACT,OAAO;GACP,WAAW;GACZ;EACD;GACE,SAAS;GACT,OAAO;GACP,WAAW;GACZ;EACD;GACE,SAAS;GACT,OAAO;GACP,WAAW;GACZ;EACD;GACE,SAAS;GACT,OAAO;GACP,WAAW;GACZ;EACD;GACE,SAAS;GACT,OAAO;GACP,WAAW;GACZ;EACD;GACE,SAAS;GACT,OAAO;GACP,WAAW;GACZ;EACD;GACE,SAAS;GACT,OAAO;GACP,WAAW;GACZ;EACD;GACE,SAAS;GACT,OAAO;GACP,WAAW;GACZ;EACF;CACD,iBAAiB;EACf,SAAS;EACT,MAAM;EACP;CACF,CACF;AAMD,SAAS,EAAe,IAAyB,SAAS,GAA4B;AACpF,QAAO,MAAU,MAAY,UAAU,YAAY;;AAGrD,SAAS,EACP,GACA,GACyB;AAKzB,QAJI,MAAY,UACP,MAAU,cAAc,YAAY,WAGtC,MAAU,WAAW,WAAW;;AAOzC,SAAS,EAAe,EACtB,aAAU,SACV,UACA,UAAO,MACP,iBAC+C,EAAE,EAAE;CACnD,IAAM,IAAmB,KAAW;AAGpC,QAAO,EAAoB;EAAE,SAAS;EAAkB,OAFjC,EAAe,GAAkB,EAAM;EAEiB;EAAM;EAAW,CAAC;;AAuCnG,SAAS,EAAO,EACd,cACA,aAAU,SACV,UACA,UAAO,MACP,WACA,iBACA,eACA,QACA,aACA,GAAG,KACW;CACd,IAAM,IAAmB,KAAW,SAC9B,IAAiB,EAAe,GAAkB,EAAM,EACxD,IAAgB,KAAQ,MACxB,IAAa,EAAc,WAAW,QAAQ,EAC9C,IAA2B,CAAC,KAAc,GAC1C,IAAyB,CAAC,KAAc;AAE9C,QAAO,EAAU;EACf,gBAAgB;EAChB;EACA;EACA,OAAO;GACL,GAAG;GACH,WAAW,EACT,EAAe;IAAE,SAAS;IAAkB,OAAO;IAAgB,MAAM;IAAe,CAAC,EACzF,EACD;GACD,UACE,kBAAA,GAAA,EAAA,UAAA;IACE,kBAAC,GAAD,EAAkB,SAAS,EAAsB,GAAkB,EAAe,EAAI,CAAA;IACrF,KACC,kBAAC,QAAD;KAAM,WAAU;eACb;KACI,CAAA;IAER;IACA,KACC,kBAAC,QAAD;KAAM,WAAU;eACb;KACI,CAAA;IAER,EAAA,CAAA;GAEN;EACF,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { ButtonProps } from "./Button";
|
|
2
|
-
export { Button, buttonVariants } from "./Button";
|
|
1
|
+
export type { ButtonProps } from "./Button.js";
|
|
2
|
+
export { Button, buttonVariants } from "./Button.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";"use client";require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../Icon/index.cjs`),t=require(`../../utils.cjs`),n=require(`../InteractionLayer/InteractionLayer.cjs`),r=require(`../Button/Button.cjs`),i=require(`./date.cjs`);let a=require(`react`),o=require(`react/jsx-runtime`);var s=[`SUNDAY`,`MONDAY`,`TUESDAY`,`WEDNESDAY`,`THURSDAY`,`FRIDAY`,`SATURDAY`];function c({locale:c=`ko-KR`,weekStartsOn:u=`SUNDAY`,prevMonthLabel:d,nextMonthLabel:f,month:p,selected:m,rangeStart:h,rangeEnd:g,onSelectDay:_,markedDates:v,minDate:y,maxDate:b,disabledDate:x,onPrevMonth:S,onNextMonth:C,weekdayLabels:w,formatMonthTitle:T,formatDayLabel:E,className:D}){let{monthFormatter:O,weekdayFormatter:k,dayFormatter:A,fullDateFormatter:j}=(0,a.useMemo)(()=>({monthFormatter:new Intl.DateTimeFormat(c,{calendar:`gregory`,year:`numeric`,month:`long`}),weekdayFormatter:new Intl.DateTimeFormat(c,{weekday:`short`}),dayFormatter:new Intl.NumberFormat(c,{useGrouping:!1}),fullDateFormatter:new Intl.DateTimeFormat(c,{calendar:`gregory`,dateStyle:`full`})}),[c]),M=T?.(p)??O.format(p),N=+(u===`MONDAY`),P=i.getMonthWeeks(p,N),F=[...s.slice(N),...s.slice(0,N)],I=h??m??null,L=g??m??null,R=!!(I&&L&&!i.isSameDay(I,L)),z=e=>y&&i.isBeforeDay(e,y)||b&&i.isAfterDay(e,b)?!0:x?x(e):!1,B=e=>v?.some(t=>i.isSameDay(t,e))??!1,V=(0,a.useRef)(null),[H,U]=(0,a.useState)(null),W=(0,a.useRef)(null),G=e=>e.getFullYear()===p.getFullYear()&&e.getMonth()===p.getMonth(),K=P.flat().filter(e=>e!==null),q=[H,I,new Date].find(e=>e!==null&&G(e)&&!z(e))??K.find(e=>!z(e)),J=e=>{V.current?.querySelector(`[data-day="${e.getTime()}"]:not(:disabled)`)?.focus()};(0,a.useEffect)(()=>{let e=W.current;if(!e)return;W.current=null;let t=G(e)&&!z(e)?e:K.find(e=>!z(e));t&&(U(t),J(t))},[p]);let Y=(e,t)=>{let n={ArrowLeft:-1,ArrowRight:1,ArrowUp:-7,ArrowDown:7},r=i.getKeyboardTarget(t,e.key,N);if(!r)return;e.preventDefault();let a=n[e.key];for(let e=0;a&&z(r)&&e<366&&!(y&&i.isBeforeDay(r,y)||b&&i.isAfterDay(r,b));e+=1)r=new Date(r.getFullYear(),r.getMonth(),r.getDate()+a);if(y&&i.isBeforeDay(r,y)||b&&i.isAfterDay(r,b))return;if(G(r)){if(z(r))return;U(r),J(r);return}let o=i.isBeforeDay(r,p)?S:C;o&&(W.current=r,o())};return(0,o.jsxs)(`div`,{className:t.cn(`aivex:flex aivex:w-[280px] aivex:flex-col aivex:gap-lg`,D),children:[(0,o.jsxs)(`div`,{className:`aivex:flex aivex:w-full aivex:items-center aivex:gap-md`,children:[(0,o.jsx)(l,{children:S&&(0,o.jsx)(r.Button,{variant:`outline`,color:`secondary`,size:`icon-md`,"aria-label":d??O.format(i.addMonths(p,-1)),onClick:S,children:(0,o.jsx)(e.DirectionLeftIcon,{size:20})})}),(0,o.jsx)(`span`,{className:`aivex:flex-1 aivex:text-center aivex:text-heading-sm aivex:text-text-primary aivex:select-none`,children:M}),(0,o.jsx)(l,{children:C&&(0,o.jsx)(r.Button,{variant:`outline`,color:`secondary`,size:`icon-md`,"aria-label":f??O.format(i.addMonths(p,1)),onClick:C,children:(0,o.jsx)(e.DirectionRightIcon,{size:20})})})]}),(0,o.jsxs)(`div`,{className:`aivex:flex aivex:flex-col aivex:gap-xs`,children:[(0,o.jsx)(`div`,{className:`aivex:flex`,children:F.map(e=>(0,o.jsx)(`span`,{className:t.cn(`aivex:flex aivex:size-10 aivex:items-center aivex:justify-center aivex:text-label-lg aivex:select-none`,e===`SUNDAY`?`aivex:text-text-danger`:`aivex:text-text-primary`),children:w?.[e]??k.format(new Date(2023,0,1+s.indexOf(e)))},e))}),(0,o.jsx)(`div`,{ref:V,className:`aivex:flex aivex:flex-col aivex:gap-xs`,children:P.map((e,r)=>(0,o.jsx)(`div`,{className:`aivex:flex`,children:e.map((e,r)=>{if(!e)return(0,o.jsx)(`span`,{className:`aivex:size-10`},r);let a=z(e),s=!!(I&&i.isSameDay(e,I)),c=!!(L&&i.isSameDay(e,L)),l=s||c,u=R&&I&&L&&!i.isBeforeDay(e,I)&&!i.isAfterDay(e,L),d=e.getDay()===0;return(0,o.jsxs)(`button`,{type:`button`,disabled:a,"data-day":e.getTime(),tabIndex:q&&i.isSameDay(e,q)?0:-1,onClick:()=>{U(e),_?.(e)},onKeyDown:t=>Y(t,e),"aria-pressed":l,"aria-label":E?.(e,{marked:B(e)})??j.format(e),className:t.cn(`aivex:group aivex:relative aivex:size-10 aivex:cursor-pointer aivex:select-none`,`aivex:outline-none aivex:focus-visible:z-10 aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:focus-visible:rounded-md`,a&&`aivex:pointer-events-none`),children:[u&&(0,o.jsx)(`span`,{className:t.cn(`aivex:absolute aivex:inset-x-0 aivex:top-1/2 aivex:h-9 aivex:-translate-y-1/2 aivex:bg-bg-tertiary`,s&&`aivex:rounded-l-full`,c&&`aivex:rounded-r-full`)}),l&&(0,o.jsx)(`span`,{className:`aivex:absolute aivex:top-1/2 aivex:left-1/2 aivex:size-9 aivex:-translate-x-1/2 aivex:-translate-y-1/2 aivex:rounded-md aivex:bg-bg-brand`}),!a&&(0,o.jsx)(n.InteractionLayer,{fill:!1,className:`aivex:top-1/2 aivex:left-1/2 aivex:size-9 aivex:-translate-x-1/2 aivex:-translate-y-1/2 aivex:rounded-md`}),(0,o.jsx)(`span`,{className:t.cn(`aivex:relative aivex:text-label-lg`,a?`aivex:text-text-disabled`:l?`aivex:text-text-on-color`:d?`aivex:text-text-danger`:`aivex:text-text-primary`),children:A.format(e.getDate())}),!a&&B(e)&&(0,o.jsx)(`span`,{className:t.cn(`aivex:absolute aivex:top-1 aivex:left-[calc(50%+11px)] aivex:size-1.5 aivex:-translate-x-1/2 aivex:rounded-full`,l?`aivex:bg-icon-on-color`:`aivex:bg-icon-brand`)})]},e.getTime())})},r))})]})]})}function l({children:e}){return(0,o.jsx)(`span`,{className:`aivex:flex aivex:size-8 aivex:shrink-0`,children:e})}exports.Calendar=c;
|
|
2
|
+
//# sourceMappingURL=Calendar.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Calendar.cjs","names":[],"sources":["../../../src/components/Calendar/Calendar.tsx"],"sourcesContent":["\"use client\";\n\nimport { type KeyboardEvent, type ReactNode, useEffect, useMemo, useRef, useState } from \"react\";\nimport { Button } from \"@/components/Button\";\nimport { DirectionLeftIcon, DirectionRightIcon } from \"@/components/Icon\";\nimport { InteractionLayer } from \"@/components/InteractionLayer\";\nimport { cn } from \"@/utils/cn\";\nimport {\n addMonths,\n getKeyboardTarget,\n getMonthWeeks,\n isAfterDay,\n isBeforeDay,\n isSameDay,\n} from \"./date\";\n\nconst WEEKDAYS = [\n \"SUNDAY\",\n \"MONDAY\",\n \"TUESDAY\",\n \"WEDNESDAY\",\n \"THURSDAY\",\n \"FRIDAY\",\n \"SATURDAY\",\n] as const;\n/** 요일 식별자 (\"SUNDAY\" ~ \"SATURDAY\"). */\nexport type CalendarWeekday = (typeof WEEKDAYS)[number];\n/** 요일 식별자별 표시 이름 맵. 7개 요일을 모두 지정해야 한다. */\nexport type CalendarWeekdayLabels = Record<CalendarWeekday, string>;\nexport interface CalendarProps {\n /**\n * BCP 47 언어 태그. 월 제목·요일·일자 표기에 쓰며, 날짜 계산은 그레고리력을 사용한다.\n * @default \"ko-KR\"\n */\n locale?: string;\n /**\n * 주 시작 요일\n * @default \"SUNDAY\"\n */\n weekStartsOn?: \"SUNDAY\" | \"MONDAY\";\n /** 이전 달 버튼의 접근성 이름. 생략하면 이동할 월을 locale에 맞춰 읽는다. */\n prevMonthLabel?: string;\n /** 다음 달 버튼의 접근성 이름. 생략하면 이동할 월을 locale에 맞춰 읽는다. */\n nextMonthLabel?: string;\n /** 표시할 월 (일자는 무시) */\n month: Date;\n /** 단일 선택된 일자 */\n selected?: Date | null;\n /** 범위 시작 일자 */\n rangeStart?: Date | null;\n /** 범위 종료 일자 */\n rangeEnd?: Date | null;\n /** 일자 클릭 시 호출. 선택 상태는 직접 관리해 `selected`/`rangeStart`·`rangeEnd`로 다시 넘긴다. */\n onSelectDay?: (day: Date) => void;\n /** 점 표시할 일자 목록 (예: 데이터가 있는 날) */\n markedDates?: Date[];\n /** 선택 가능한 가장 이른 일자 (이전 일자는 비활성화) */\n minDate?: Date;\n /** 선택 가능한 가장 늦은 일자 (이후 일자는 비활성화) */\n maxDate?: Date;\n /** true 를 반환하면 해당 일자 비활성화 */\n disabledDate?: (date: Date) => boolean;\n /** 이전 달 버튼 — 미지정 시 자리만 확보 */\n onPrevMonth?: () => void;\n /** 다음 달 버튼 — 미지정 시 자리만 확보 */\n onNextMonth?: () => void;\n /** 요일별 표시 이름. 전달 순서와 관계없이 주 시작 요일에 맞춰 배치한다. */\n weekdayLabels?: CalendarWeekdayLabels;\n /** 월 제목 포맷터. 생략하면 locale 기준 \"연도 월\" 형식으로 표시한다. */\n formatMonthTitle?: (month: Date) => string;\n /**\n * 날짜 버튼의 접근성 이름. 숫자만 읽히면 몇 년 몇 월인지 알 수 없어 기본은 locale의 전체 날짜다\n * (예: \"2026년 11월 17일 화요일\"). 데이터 표시 점이 있는 날은 `marked`로 구분해 덧붙일 수 있다.\n */\n formatDayLabel?: (day: Date, state: { marked: boolean }) => string;\n /** 루트(폭 280px) 요소에 추가할 클래스 */\n className?: string;\n}\n\n/**\n * 한 달치 날짜를 그리드로 보여주는 제어형(controlled) 캘린더.\n *\n * 내부 상태가 없다. 표시 월(`month`)과 선택(`selected` 또는 `rangeStart`·`rangeEnd`)을 직접 관리하고,\n * `onSelectDay`·`onPrevMonth`·`onNextMonth`로 갱신한다. 날짜 입력 필드가 아니라\n * 그 안에 들어갈 달력 패널이며, 범위 선택 UI는 1~2개를 조합해 만든다.\n *\n * @example\n * ```tsx\n * import { Calendar } from \"@aivex/ui\";\n *\n * const [month, setMonth] = useState(new Date());\n * const [selected, setSelected] = useState<Date | null>(null);\n *\n * <Calendar\n * month={month}\n * selected={selected}\n * onSelectDay={setSelected}\n * onPrevMonth={() => setMonth((m) => new Date(m.getFullYear(), m.getMonth() - 1, 1))}\n * onNextMonth={() => setMonth((m) => new Date(m.getFullYear(), m.getMonth() + 1, 1))}\n * />\n * ```\n */\nfunction Calendar({\n locale = \"ko-KR\",\n weekStartsOn = \"SUNDAY\",\n prevMonthLabel,\n nextMonthLabel,\n month,\n selected,\n rangeStart,\n rangeEnd,\n onSelectDay,\n markedDates,\n minDate,\n maxDate,\n disabledDate,\n onPrevMonth,\n onNextMonth,\n weekdayLabels,\n formatMonthTitle,\n formatDayLabel,\n className,\n}: CalendarProps) {\n const { monthFormatter, weekdayFormatter, dayFormatter, fullDateFormatter } = useMemo(\n () => ({\n monthFormatter: new Intl.DateTimeFormat(locale, {\n calendar: \"gregory\",\n year: \"numeric\",\n month: \"long\",\n }),\n weekdayFormatter: new Intl.DateTimeFormat(locale, { weekday: \"short\" }),\n dayFormatter: new Intl.NumberFormat(locale, { useGrouping: false }),\n fullDateFormatter: new Intl.DateTimeFormat(locale, {\n calendar: \"gregory\",\n dateStyle: \"full\",\n }),\n }),\n [locale],\n );\n const monthTitle = formatMonthTitle?.(month) ?? monthFormatter.format(month);\n const weekStartIndex = weekStartsOn === \"MONDAY\" ? 1 : 0;\n const weeks = getMonthWeeks(month, weekStartIndex);\n const weekdays = [...WEEKDAYS.slice(weekStartIndex), ...WEEKDAYS.slice(0, weekStartIndex)];\n\n // 단일 선택은 시작=종료 범위와 동일하게 취급 (밴드 없음)\n const start = rangeStart ?? selected ?? null;\n const end = rangeEnd ?? selected ?? null;\n const hasBand = Boolean(start && end && !isSameDay(start, end));\n\n const isDisabled = (day: Date): boolean => {\n if (minDate && isBeforeDay(day, minDate)) return true;\n if (maxDate && isAfterDay(day, maxDate)) return true;\n return disabledDate ? disabledDate(day) : false;\n };\n\n const isMarked = (day: Date): boolean =>\n markedDates?.some((marked) => isSameDay(marked, day)) ?? false;\n\n // 키보드 이동: 날짜 버튼 중 하나만 탭 순서에 두고(roving tabindex) 화살표·Home/End·PageUp/Down으로\n // 옮긴다. 월 밖으로 나가면 onPrevMonth/onNextMonth를 부르고, 월이 바뀐 뒤 그 날짜로 포커스를 옮긴다.\n const gridRef = useRef<HTMLDivElement>(null);\n const [focusDay, setFocusDay] = useState<Date | null>(null);\n const pendingFocusRef = useRef<Date | null>(null);\n const isInMonth = (day: Date) =>\n day.getFullYear() === month.getFullYear() && day.getMonth() === month.getMonth();\n const monthDays = weeks.flat().filter((day): day is Date => day !== null);\n const tabStop =\n [focusDay, start, new Date()].find(\n (day): day is Date => day !== null && isInMonth(day) && !isDisabled(day),\n ) ?? monthDays.find((day) => !isDisabled(day));\n\n const focusButton = (day: Date) => {\n gridRef.current\n ?.querySelector<HTMLButtonElement>(`[data-day=\"${day.getTime()}\"]:not(:disabled)`)\n ?.focus();\n };\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: 표시 월이 바뀐 직후에만 대기 중인 포커스를 옮긴다.\n useEffect(() => {\n const pending = pendingFocusRef.current;\n if (!pending) return;\n pendingFocusRef.current = null;\n // 넘어온 날짜가 이 달 밖이거나 비활성이면(PageUp 등으로 비활성 날짜에 떨어진 경우)\n // 포커스가 사라지지 않게 이 달의 첫 활성 날짜로 받는다.\n const target =\n isInMonth(pending) && !isDisabled(pending)\n ? pending\n : monthDays.find((day) => !isDisabled(day));\n if (!target) return;\n setFocusDay(target);\n focusButton(target);\n }, [month]);\n\n const handleDayKeyDown = (event: KeyboardEvent<HTMLButtonElement>, day: Date) => {\n const step: Record<string, number> = {\n ArrowLeft: -1,\n ArrowRight: 1,\n ArrowUp: -7,\n ArrowDown: 7,\n };\n let target = getKeyboardTarget(day, event.key, weekStartIndex);\n if (!target) return;\n event.preventDefault();\n // 비활성 날짜는 포커스를 받을 수 없으므로 같은 방향으로 건너뛴다. 월 경계를 넘어서도\n // 계속 찾는다 — 다음 달 첫날이 비활성이면 달을 넘긴 뒤 포커스할 버튼이 없다.\n // minDate·maxDate 밖으로 나가면 멈추고(아래 범위 검사가 거른다), 활성 날짜가\n // 없을 때를 대비해 1년치까지만 찾는다.\n const delta = step[event.key];\n for (let tries = 0; delta && isDisabled(target) && tries < 366; tries += 1) {\n if ((minDate && isBeforeDay(target, minDate)) || (maxDate && isAfterDay(target, maxDate))) {\n break;\n }\n target = new Date(target.getFullYear(), target.getMonth(), target.getDate() + delta);\n }\n if ((minDate && isBeforeDay(target, minDate)) || (maxDate && isAfterDay(target, maxDate))) {\n return;\n }\n if (isInMonth(target)) {\n if (isDisabled(target)) return;\n setFocusDay(target);\n focusButton(target);\n return;\n }\n const navigate = isBeforeDay(target, month) ? onPrevMonth : onNextMonth;\n if (!navigate) return;\n pendingFocusRef.current = target;\n navigate();\n };\n\n return (\n <div className={cn(\"aivex:flex aivex:w-[280px] aivex:flex-col aivex:gap-lg\", className)}>\n {/* 월 헤더: [이전|자리] 타이틀 [자리|다음] */}\n <div className=\"aivex:flex aivex:w-full aivex:items-center aivex:gap-md\">\n <NavSlot>\n {onPrevMonth && (\n <Button\n variant=\"outline\"\n color=\"secondary\"\n size=\"icon-md\"\n aria-label={prevMonthLabel ?? monthFormatter.format(addMonths(month, -1))}\n onClick={onPrevMonth}\n >\n <DirectionLeftIcon size={20} />\n </Button>\n )}\n </NavSlot>\n <span className=\"aivex:flex-1 aivex:text-center aivex:text-heading-sm aivex:text-text-primary aivex:select-none\">\n {monthTitle}\n </span>\n <NavSlot>\n {onNextMonth && (\n <Button\n variant=\"outline\"\n color=\"secondary\"\n size=\"icon-md\"\n aria-label={nextMonthLabel ?? monthFormatter.format(addMonths(month, 1))}\n onClick={onNextMonth}\n >\n <DirectionRightIcon size={20} />\n </Button>\n )}\n </NavSlot>\n </div>\n\n <div className=\"aivex:flex aivex:flex-col aivex:gap-xs\">\n {/* 요일 헤더 */}\n <div className=\"aivex:flex\">\n {weekdays.map((weekday) => (\n <span\n key={weekday}\n className={cn(\n \"aivex:flex aivex:size-10 aivex:items-center aivex:justify-center aivex:text-label-lg aivex:select-none\",\n weekday === \"SUNDAY\" ? \"aivex:text-text-danger\" : \"aivex:text-text-primary\",\n )}\n >\n {weekdayLabels?.[weekday] ??\n weekdayFormatter.format(new Date(2023, 0, 1 + WEEKDAYS.indexOf(weekday)))}\n </span>\n ))}\n </div>\n\n {/* 날짜 그리드 */}\n <div ref={gridRef} className=\"aivex:flex aivex:flex-col aivex:gap-xs\">\n {weeks.map((week, weekIndex) => (\n <div key={weekIndex} className=\"aivex:flex\">\n {week.map((day, dayIndex) => {\n if (!day) {\n // 인접 월 자리는 빈 칸\n return <span key={dayIndex} className=\"aivex:size-10\" />;\n }\n\n const disabled = isDisabled(day);\n const isStart = Boolean(start && isSameDay(day, start));\n const isEnd = Boolean(end && isSameDay(day, end));\n const isSelected = isStart || isEnd;\n const inBand =\n hasBand && start && end && !isBeforeDay(day, start) && !isAfterDay(day, end);\n const isSunday = day.getDay() === 0;\n\n return (\n <button\n key={day.getTime()}\n type=\"button\"\n disabled={disabled}\n data-day={day.getTime()}\n tabIndex={tabStop && isSameDay(day, tabStop) ? 0 : -1}\n onClick={() => {\n setFocusDay(day);\n onSelectDay?.(day);\n }}\n onKeyDown={(event) => handleDayKeyDown(event, day)}\n aria-pressed={isSelected}\n aria-label={\n formatDayLabel?.(day, { marked: isMarked(day) }) ??\n fullDateFormatter.format(day)\n }\n className={cn(\n \"aivex:group aivex:relative aivex:size-10 aivex:cursor-pointer aivex:select-none\",\n \"aivex:outline-none aivex:focus-visible:z-10 aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:focus-visible:rounded-md\",\n disabled && \"aivex:pointer-events-none\",\n )}\n >\n {/* 범위 밴드 — 양 끝은 바깥쪽만 pill 라운딩 */}\n {inBand && (\n <span\n className={cn(\n \"aivex:absolute aivex:inset-x-0 aivex:top-1/2 aivex:h-9 aivex:-translate-y-1/2 aivex:bg-bg-tertiary\",\n isStart && \"aivex:rounded-l-full\",\n isEnd && \"aivex:rounded-r-full\",\n )}\n />\n )}\n {/* 선택된 일자 사각형 */}\n {isSelected && (\n <span className=\"aivex:absolute aivex:top-1/2 aivex:left-1/2 aivex:size-9 aivex:-translate-x-1/2 aivex:-translate-y-1/2 aivex:rounded-md aivex:bg-bg-brand\" />\n )}\n {!disabled && (\n <InteractionLayer\n fill={false}\n className=\"aivex:top-1/2 aivex:left-1/2 aivex:size-9 aivex:-translate-x-1/2 aivex:-translate-y-1/2 aivex:rounded-md\"\n />\n )}\n <span\n className={cn(\n \"aivex:relative aivex:text-label-lg\",\n disabled\n ? \"aivex:text-text-disabled\"\n : isSelected\n ? \"aivex:text-text-on-color\"\n : isSunday\n ? \"aivex:text-text-danger\"\n : \"aivex:text-text-primary\",\n )}\n >\n {dayFormatter.format(day.getDate())}\n </span>\n {/* 데이터 표시 점 */}\n {!disabled && isMarked(day) && (\n <span\n className={cn(\n \"aivex:absolute aivex:top-1 aivex:left-[calc(50%+11px)] aivex:size-1.5 aivex:-translate-x-1/2 aivex:rounded-full\",\n isSelected ? \"aivex:bg-icon-on-color\" : \"aivex:bg-icon-brand\",\n )}\n />\n )}\n </button>\n );\n })}\n </div>\n ))}\n </div>\n </div>\n </div>\n );\n}\n\n/** 월 네비게이션 버튼 자리 (32×32) — 좌우 대칭 유지용 */\nfunction NavSlot({ children }: { children?: ReactNode }) {\n return <span className=\"aivex:flex aivex:size-8 aivex:shrink-0\">{children}</span>;\n}\n\nexport { Calendar };\n"],"mappings":"kTAgBA,IAAM,EAAW,CACf,SACA,SACA,UACA,YACA,WACA,SACA,WACD,CA8ED,SAAS,EAAS,CAChB,SAAS,QACT,eAAe,SACf,iBACA,iBACA,QACA,WACA,aACA,WACA,cACA,cACA,UACA,UACA,eACA,cACA,cACA,gBACA,mBACA,iBACA,aACgB,CAChB,GAAM,CAAE,iBAAgB,mBAAkB,eAAc,sBAAA,EAAA,EAAA,cAC/C,CACL,eAAgB,IAAI,KAAK,eAAe,EAAQ,CAC9C,SAAU,UACV,KAAM,UACN,MAAO,OACR,CAAC,CACF,iBAAkB,IAAI,KAAK,eAAe,EAAQ,CAAE,QAAS,QAAS,CAAC,CACvE,aAAc,IAAI,KAAK,aAAa,EAAQ,CAAE,YAAa,GAAO,CAAC,CACnE,kBAAmB,IAAI,KAAK,eAAe,EAAQ,CACjD,SAAU,UACV,UAAW,OACZ,CAAC,CACH,EACD,CAAC,EAAO,CACT,CACK,EAAa,IAAmB,EAAM,EAAI,EAAe,OAAO,EAAM,CACtE,EAAiB,MAAiB,UAClC,EAAQ,EAAA,cAAc,EAAO,EAAe,CAC5C,EAAW,CAAC,GAAG,EAAS,MAAM,EAAe,CAAE,GAAG,EAAS,MAAM,EAAG,EAAe,CAAC,CAGpF,EAAQ,GAAc,GAAY,KAClC,EAAM,GAAY,GAAY,KAC9B,EAAU,GAAQ,GAAS,GAAO,CAAC,EAAA,UAAU,EAAO,EAAI,EAExD,EAAc,GACd,GAAW,EAAA,YAAY,EAAK,EAAQ,EACpC,GAAW,EAAA,WAAW,EAAK,EAAQ,CAAS,GACzC,EAAe,EAAa,EAAI,CAAG,GAGtC,EAAY,GAChB,GAAa,KAAM,GAAW,EAAA,UAAU,EAAQ,EAAI,CAAC,EAAI,GAIrD,GAAA,EAAA,EAAA,QAAiC,KAAK,CACtC,CAAC,EAAU,IAAA,EAAA,EAAA,UAAqC,KAAK,CACrD,GAAA,EAAA,EAAA,QAAsC,KAAK,CAC3C,EAAa,GACjB,EAAI,aAAa,GAAK,EAAM,aAAa,EAAI,EAAI,UAAU,GAAK,EAAM,UAAU,CAC5E,EAAY,EAAM,MAAM,CAAC,OAAQ,GAAqB,IAAQ,KAAK,CACnE,EACJ,CAAC,EAAU,EAAO,IAAI,KAAO,CAAC,KAC3B,GAAqB,IAAQ,MAAQ,EAAU,EAAI,EAAI,CAAC,EAAW,EAAI,CACzE,EAAI,EAAU,KAAM,GAAQ,CAAC,EAAW,EAAI,CAAC,CAE1C,EAAe,GAAc,CACjC,EAAQ,SACJ,cAAiC,cAAc,EAAI,SAAS,CAAC,mBAAmB,EAChF,OAAO,GAIb,EAAA,EAAA,eAAgB,CACd,IAAM,EAAU,EAAgB,QAChC,GAAI,CAAC,EAAS,OACd,EAAgB,QAAU,KAG1B,IAAM,EACJ,EAAU,EAAQ,EAAI,CAAC,EAAW,EAAQ,CACtC,EACA,EAAU,KAAM,GAAQ,CAAC,EAAW,EAAI,CAAC,CAC1C,IACL,EAAY,EAAO,CACnB,EAAY,EAAO,GAClB,CAAC,EAAM,CAAC,CAEX,IAAM,GAAoB,EAAyC,IAAc,CAC/E,IAAM,EAA+B,CACnC,UAAW,GACX,WAAY,EACZ,QAAS,GACT,UAAW,EACZ,CACG,EAAS,EAAA,kBAAkB,EAAK,EAAM,IAAK,EAAe,CAC9D,GAAI,CAAC,EAAQ,OACb,EAAM,gBAAgB,CAKtB,IAAM,EAAQ,EAAK,EAAM,KACzB,IAAK,IAAI,EAAQ,EAAG,GAAS,EAAW,EAAO,EAAI,EAAQ,KACpD,KAAW,EAAA,YAAY,EAAQ,EAAQ,EAAM,GAAW,EAAA,WAAW,EAAQ,EAAQ,EAD1B,GAAS,EAIvE,EAAS,IAAI,KAAK,EAAO,aAAa,CAAE,EAAO,UAAU,CAAE,EAAO,SAAS,CAAG,EAAM,CAEtF,GAAK,GAAW,EAAA,YAAY,EAAQ,EAAQ,EAAM,GAAW,EAAA,WAAW,EAAQ,EAAQ,CACtF,OAEF,GAAI,EAAU,EAAO,CAAE,CACrB,GAAI,EAAW,EAAO,CAAE,OACxB,EAAY,EAAO,CACnB,EAAY,EAAO,CACnB,OAEF,IAAM,EAAW,EAAA,YAAY,EAAQ,EAAM,CAAG,EAAc,EACvD,IACL,EAAgB,QAAU,EAC1B,GAAU,GAGZ,OACE,EAAA,EAAA,MAAC,MAAD,CAAK,UAAW,EAAA,GAAG,yDAA0D,EAAU,UAAvF,EAEE,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,mEAAf,EACE,EAAA,EAAA,KAAC,EAAD,CAAA,SACG,IACC,EAAA,EAAA,KAAC,EAAA,OAAD,CACE,QAAQ,UACR,MAAM,YACN,KAAK,UACL,aAAY,GAAkB,EAAe,OAAO,EAAA,UAAU,EAAO,GAAG,CAAC,CACzE,QAAS,YAET,EAAA,EAAA,KAAC,EAAA,kBAAD,CAAmB,KAAM,GAAM,CAAA,CACxB,CAAA,CAEH,CAAA,EACV,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,0GACb,EACI,CAAA,EACP,EAAA,EAAA,KAAC,EAAD,CAAA,SACG,IACC,EAAA,EAAA,KAAC,EAAA,OAAD,CACE,QAAQ,UACR,MAAM,YACN,KAAK,UACL,aAAY,GAAkB,EAAe,OAAO,EAAA,UAAU,EAAO,EAAE,CAAC,CACxE,QAAS,YAET,EAAA,EAAA,KAAC,EAAA,mBAAD,CAAoB,KAAM,GAAM,CAAA,CACzB,CAAA,CAEH,CAAA,CACN,IAEN,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,kDAAf,EAEE,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,sBACZ,EAAS,IAAK,IACb,EAAA,EAAA,KAAC,OAAD,CAEE,UAAW,EAAA,GACT,yGACA,IAAY,SAAW,yBAA2B,0BACnD,UAEA,IAAgB,IACf,EAAiB,OAAO,IAAI,KAAK,KAAM,EAAG,EAAI,EAAS,QAAQ,EAAQ,CAAC,CAAC,CACtE,CARA,EAQA,CACP,CACE,CAAA,EAGN,EAAA,EAAA,KAAC,MAAD,CAAK,IAAK,EAAS,UAAU,kDAC1B,EAAM,KAAK,EAAM,KAChB,EAAA,EAAA,KAAC,MAAD,CAAqB,UAAU,sBAC5B,EAAK,KAAK,EAAK,IAAa,CAC3B,GAAI,CAAC,EAEH,OAAO,EAAA,EAAA,KAAC,OAAD,CAAqB,UAAU,gBAAkB,CAAtC,EAAsC,CAG1D,IAAM,EAAW,EAAW,EAAI,CAC1B,EAAU,GAAQ,GAAS,EAAA,UAAU,EAAK,EAAM,EAChD,EAAQ,GAAQ,GAAO,EAAA,UAAU,EAAK,EAAI,EAC1C,EAAa,GAAW,EACxB,EACJ,GAAW,GAAS,GAAO,CAAC,EAAA,YAAY,EAAK,EAAM,EAAI,CAAC,EAAA,WAAW,EAAK,EAAI,CACxE,EAAW,EAAI,QAAQ,GAAK,EAElC,OACE,EAAA,EAAA,MAAC,SAAD,CAEE,KAAK,SACK,WACV,WAAU,EAAI,SAAS,CACvB,SAAU,GAAW,EAAA,UAAU,EAAK,EAAQ,CAAG,EAAI,GACnD,YAAe,CACb,EAAY,EAAI,CAChB,IAAc,EAAI,EAEpB,UAAY,GAAU,EAAiB,EAAO,EAAI,CAClD,eAAc,EACd,aACE,IAAiB,EAAK,CAAE,OAAQ,EAAS,EAAI,CAAE,CAAC,EAChD,EAAkB,OAAO,EAAI,CAE/B,UAAW,EAAA,GACT,kFACA,8IACA,GAAY,4BACb,UApBH,CAuBG,IACC,EAAA,EAAA,KAAC,OAAD,CACE,UAAW,EAAA,GACT,qGACA,GAAW,uBACX,GAAS,uBACV,CACD,CAAA,CAGH,IACC,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,4IAA8I,CAAA,CAE/J,CAAC,IACA,EAAA,EAAA,KAAC,EAAA,iBAAD,CACE,KAAM,GACN,UAAU,2GACV,CAAA,EAEJ,EAAA,EAAA,KAAC,OAAD,CACE,UAAW,EAAA,GACT,qCACA,EACI,2BACA,EACE,2BACA,EACE,yBACA,0BACT,UAEA,EAAa,OAAO,EAAI,SAAS,CAAC,CAC9B,CAAA,CAEN,CAAC,GAAY,EAAS,EAAI,GACzB,EAAA,EAAA,KAAC,OAAD,CACE,UAAW,EAAA,GACT,kHACA,EAAa,yBAA2B,sBACzC,CACD,CAAA,CAEG,EAhEF,EAAI,SAAS,CAgEX,EAEX,CACE,CApFI,EAoFJ,CACN,CACE,CAAA,CACF,GACF,GAKV,SAAS,EAAQ,CAAE,YAAsC,CACvD,OAAO,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,yCAA0C,WAAgB,CAAA"}
|