@aivex/ui 1.2.0-dev.6 → 1.2.0-dev.60
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/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 +100 -0
- package/dist/components/Popover/Popover.d.ts +67 -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 +57 -0
- package/dist/index.d.ts +57 -49
- package/dist/index.js +64 -8751
- package/dist/llms-full.txt +6596 -0
- package/dist/llms.txt +123 -0
- package/dist/shape-editor.cjs +1 -1
- package/dist/shape-editor.cjs.map +1 -1
- package/dist/shape-editor.js +10 -5732
- package/dist/shape-editor.js.map +1 -1
- package/dist/styles.css +5 -2
- package/dist/tailwind.css +434 -0
- package/dist/tokens/tokens.css +629 -611
- package/dist/utils/PortalEventBoundary.cjs +2 -0
- package/dist/utils/PortalEventBoundary.cjs.map +1 -0
- package/dist/utils/PortalEventBoundary.d.cts +13 -0
- package/dist/utils/PortalEventBoundary.d.ts +13 -0
- package/dist/utils/PortalEventBoundary.js +12 -0
- package/dist/utils/PortalEventBoundary.js.map +1 -0
- package/dist/utils/Primitive.cjs +2 -0
- package/dist/utils/Primitive.cjs.map +1 -0
- package/dist/utils/Primitive.d.cts +9 -0
- package/dist/utils/Primitive.d.ts +9 -0
- package/dist/utils/Primitive.js +15 -0
- package/dist/utils/Primitive.js.map +1 -0
- package/dist/utils/cn.d.cts +12 -0
- package/dist/utils/cn.d.ts +10 -0
- package/dist/utils/dataAttributes.d.cts +7 -0
- package/dist/utils/dataAttributes.d.ts +7 -0
- package/dist/utils/keyboard.cjs +2 -0
- package/dist/utils/keyboard.cjs.map +1 -0
- package/dist/utils/keyboard.d.cts +3 -0
- package/dist/utils/keyboard.d.ts +3 -0
- package/dist/utils/keyboard.js +14 -0
- package/dist/utils/keyboard.js.map +1 -0
- package/dist/utils/popupArrow.cjs +2 -0
- package/dist/utils/popupArrow.cjs.map +1 -0
- package/dist/utils/popupArrow.d.cts +14 -0
- package/dist/utils/popupArrow.d.ts +14 -0
- package/dist/utils/popupArrow.js +26 -0
- package/dist/utils/popupArrow.js.map +1 -0
- package/dist/utils/popupPositioning.cjs +2 -0
- package/dist/utils/popupPositioning.cjs.map +1 -0
- package/dist/utils/popupPositioning.d.cts +11 -0
- package/dist/utils/popupPositioning.d.ts +11 -0
- package/dist/utils/popupPositioning.js +25 -0
- package/dist/utils/popupPositioning.js.map +1 -0
- package/dist/utils/sheet.cjs +2 -0
- package/dist/utils/sheet.cjs.map +1 -0
- package/dist/utils/sheet.d.cts +17 -0
- package/dist/utils/sheet.d.ts +17 -0
- package/dist/utils/sheet.js +7 -0
- package/dist/utils/sheet.js.map +1 -0
- package/dist/utils/useComposedRefs.cjs +2 -0
- package/dist/utils/useComposedRefs.cjs.map +1 -0
- package/dist/utils/useComposedRefs.d.cts +6 -0
- package/dist/utils/useComposedRefs.d.ts +6 -0
- package/dist/utils/useComposedRefs.js +22 -0
- package/dist/utils/useComposedRefs.js.map +1 -0
- package/dist/utils/useControllableState.cjs +2 -0
- package/dist/utils/useControllableState.cjs.map +1 -0
- package/dist/utils/useControllableState.d.cts +17 -0
- package/dist/utils/useControllableState.d.ts +17 -0
- package/dist/utils/useControllableState.js +13 -0
- package/dist/utils/useControllableState.js.map +1 -0
- package/dist/utils/useModalFocus.cjs +2 -0
- package/dist/utils/useModalFocus.cjs.map +1 -0
- package/dist/utils/useModalFocus.d.cts +31 -0
- package/dist/utils/useModalFocus.d.ts +31 -0
- package/dist/utils/useModalFocus.js +28 -0
- package/dist/utils/useModalFocus.js.map +1 -0
- package/dist/utils/useResizableWidth.cjs +2 -0
- package/dist/utils/useResizableWidth.cjs.map +1 -0
- package/dist/utils/useResizableWidth.d.cts +30 -0
- package/dist/utils/useResizableWidth.d.ts +30 -0
- package/dist/utils/useResizableWidth.js +32 -0
- package/dist/utils/useResizableWidth.js.map +1 -0
- package/dist/utils.cjs +2 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.js +59 -0
- package/dist/utils.js.map +1 -0
- package/package.json +68 -28
- package/dist/Button-C_GP2mJ-.cjs +0 -2
- package/dist/Button-C_GP2mJ-.cjs.map +0 -1
- package/dist/Button-CzqDPqUT.js +0 -8600
- package/dist/Button-CzqDPqUT.js.map +0 -1
- package/dist/IconButton-B-MspnYP.cjs +0 -2
- package/dist/IconButton-B-MspnYP.cjs.map +0 -1
- package/dist/IconButton-DTGSfJme.js +0 -560
- package/dist/IconButton-DTGSfJme.js.map +0 -1
- package/dist/Switch-B2irM7Pp.js +0 -2656
- package/dist/Switch-B2irM7Pp.js.map +0 -1
- package/dist/Switch-CMKBdqkX.cjs +0 -42
- package/dist/Switch-CMKBdqkX.cjs.map +0 -1
- package/dist/comment.cjs.map +0 -1
- package/dist/comment.js.map +0 -1
- package/dist/components/Chips/index.d.ts +0 -19
- package/dist/components/DatePicker/Calendar.d.ts +0 -27
- package/dist/components/DatePicker/DatePicker.d.ts +0 -119
- package/dist/components/DatePicker/date.d.ts +0 -24
- package/dist/components/DatePicker/index.d.ts +0 -4
- package/dist/components/ShapeEditor/_model/imageFetch.d.ts +0 -9
- package/dist/components/ShapeEditor/_model/konva.d.ts +0 -4
- package/dist/components/ShapeEditor/_model/overlays.test.d.ts +0 -1
- package/dist/components/ShapeEditor/_renderers/KonvaRenderer.d.ts +0 -124
- package/dist/components/Table/Table.d.ts +0 -61
- package/dist/components/Table/index.d.ts +0 -2
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../utils.js";
|
|
3
|
+
import { useFieldState as t } from "../Field/FieldStateContext.js";
|
|
4
|
+
import { useId as n } from "react";
|
|
5
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
|
+
import { cva as a } from "class-variance-authority";
|
|
7
|
+
import { Switch as o } from "@base-ui/react/switch";
|
|
8
|
+
//#region src/components/Switch/Switch.tsx
|
|
9
|
+
var s = a("aivex:relative aivex:inline-flex aivex:shrink-0 aivex:items-center aivex:rounded-full aivex:transition-colors aivex:duration-200 aivex:cursor-pointer aivex:bg-bg-tertiary aivex:data-[checked]:bg-bg-brand aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:disabled:cursor-not-allowed", {
|
|
10
|
+
variants: { size: {
|
|
11
|
+
sm: "aivex:w-6 aivex:h-4",
|
|
12
|
+
md: "aivex:w-8 aivex:h-5",
|
|
13
|
+
lg: "aivex:w-10 aivex:h-6"
|
|
14
|
+
} },
|
|
15
|
+
defaultVariants: { size: "md" }
|
|
16
|
+
}), c = {
|
|
17
|
+
sm: "aivex:w-2.5 aivex:h-2.5 aivex:translate-x-[3px] aivex:data-[checked]:translate-x-[11px]",
|
|
18
|
+
md: "aivex:w-3.5 aivex:h-3.5 aivex:translate-x-[3px] aivex:data-[checked]:translate-x-[15px]",
|
|
19
|
+
lg: "aivex:w-[18px] aivex:h-[18px] aivex:translate-x-[3px] aivex:data-[checked]:translate-x-[19px]"
|
|
20
|
+
}, l = {
|
|
21
|
+
sm: "aivex:h-4",
|
|
22
|
+
md: "aivex:h-5",
|
|
23
|
+
lg: "aivex:h-6"
|
|
24
|
+
};
|
|
25
|
+
function u({ className: a, label: u, size: d = "md", disabled: f, id: p, ref: m, ...h }) {
|
|
26
|
+
let g = d ?? "md", _ = n(), v = p ?? _, y = t(), b = !!f || y.disabled;
|
|
27
|
+
return /* @__PURE__ */ i("span", {
|
|
28
|
+
className: e("aivex:inline-flex aivex:items-center aivex:gap-md", b && "aivex:opacity-disable"),
|
|
29
|
+
children: [/* @__PURE__ */ r(o.Root, {
|
|
30
|
+
ref: m,
|
|
31
|
+
id: v,
|
|
32
|
+
disabled: f,
|
|
33
|
+
nativeButton: !0,
|
|
34
|
+
render: /* @__PURE__ */ r("button", { type: "button" }),
|
|
35
|
+
className: e(s({ size: g }), a),
|
|
36
|
+
...h,
|
|
37
|
+
children: /* @__PURE__ */ r(o.Thumb, { className: e("aivex:block aivex:rounded-full aivex:bg-static-white aivex:shadow-[var(--aivex-elevation-sm)] aivex:transition-transform aivex:duration-200 aivex:will-change-transform", c[g]) })
|
|
38
|
+
}), u && /* @__PURE__ */ r("label", {
|
|
39
|
+
htmlFor: v,
|
|
40
|
+
className: e("aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary", b && "aivex:cursor-not-allowed", l[g]),
|
|
41
|
+
children: u
|
|
42
|
+
})]
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { u as Switch };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=Switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.js","names":[],"sources":["../../../src/components/Switch/Switch.tsx"],"sourcesContent":["import { Switch as SwitchPrimitive } from \"@base-ui/react/switch\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { type Ref, useId } from \"react\";\nimport { useFieldState } from \"@/components/Field/FieldStateContext\";\nimport { cn } from \"@/utils/cn\";\n\nconst switchTrackVariants = cva(\n // off 트랙은 bg/tertiary(반투명 채움) — border/default를 쓰면 테두리색이 면으로 깔려 탁해진다.\n \"aivex:relative aivex:inline-flex aivex:shrink-0 aivex:items-center aivex:rounded-full aivex:transition-colors aivex:duration-200 aivex:cursor-pointer aivex:bg-bg-tertiary aivex:data-[checked]:bg-bg-brand aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:disabled:cursor-not-allowed\",\n {\n variants: {\n size: {\n sm: \"aivex:w-6 aivex:h-4\",\n md: \"aivex:w-8 aivex:h-5\",\n lg: \"aivex:w-10 aivex:h-6\",\n },\n },\n defaultVariants: { size: \"md\" },\n },\n);\n\ntype SwitchSize = NonNullable<VariantProps<typeof switchTrackVariants>[\"size\"]>;\n\n// 시안 규칙: 노브는 트랙 상하좌우 3px 안쪽 → 노브 = 트랙 높이 - 6.\n// md(32×20, 노브 14px)가 시안 SM과 정확히 일치하고, sm·lg는 같은 규칙으로 맞춘다.\nconst thumbClass: Record<SwitchSize, string> = {\n sm: \"aivex:w-2.5 aivex:h-2.5 aivex:translate-x-[3px] aivex:data-[checked]:translate-x-[11px]\",\n md: \"aivex:w-3.5 aivex:h-3.5 aivex:translate-x-[3px] aivex:data-[checked]:translate-x-[15px]\",\n lg: \"aivex:w-[18px] aivex:h-[18px] aivex:translate-x-[3px] aivex:data-[checked]:translate-x-[19px]\",\n};\n\nconst switchLabelSizeClass: Record<SwitchSize, string> = {\n sm: \"aivex:h-4\",\n md: \"aivex:h-5\",\n lg: \"aivex:h-6\",\n};\n\nexport interface SwitchProps\n extends Omit<\n SwitchPrimitive.Root.Props,\n \"children\" | \"className\" | \"nativeButton\" | \"onCheckedChange\" | \"ref\" | \"render\"\n >,\n VariantProps<typeof switchTrackVariants> {\n /** 스위치 트랙(button)에 덧붙일 클래스 */\n className?: string;\n /** 스위치 옆 라벨(htmlFor로 연결). 없으면 aria-label이나 Field로 접근 가능한 이름을 제공한다 */\n label?: string;\n // 배포된 선언을 소비할 때도 콜백 인자의 contextual typing을 보존한다.\n /** on/off가 바뀔 때 새 checked 값으로 호출된다 */\n onCheckedChange?: (checked: boolean) => void;\n /** 스위치 button 요소 ref */\n ref?: Ref<HTMLButtonElement>;\n}\n\n/**\n * 설정을 즉시 켜고 끄는 토글 스위치(Base UI Switch 기반, `role=\"switch\"`).\n * 바로 반영되는 on/off 설정에 쓴다. 제출 시 반영되는 동의·선택 항목은 Checkbox, 버튼 모양의 눌림 토글은 ToggleButton.\n * 제어는 checked+onCheckedChange(boolean), 비제어는 defaultChecked. 네이티브 onChange는 없다.\n * size는 `\"sm\"`·`\"md\"`(기본)·`\"lg\"`.\n *\n * @example\n * ```tsx\n * import { Switch } from \"@aivex/ui\";\n *\n * <Switch label=\"알림 받기\" checked={enabled} onCheckedChange={setEnabled} />\n * ```\n */\nfunction Switch({ className, label, size = \"md\", disabled, id, ref, ...props }: SwitchProps) {\n const resolvedSize = size ?? \"md\";\n const generatedId = useId();\n const switchId = id ?? generatedId;\n // Field가 비활성이면 Base UI가 스위치를 비활성화한다. 흐리게 보이는 처리는 여기서 맞춘다.\n const field = useFieldState();\n const isDisabled = Boolean(disabled) || field.disabled;\n\n return (\n <span\n className={cn(\n \"aivex:inline-flex aivex:items-center aivex:gap-md\",\n isDisabled && \"aivex:opacity-disable\",\n )}\n >\n {/* 라벨의 htmlFor와 button ref를 유지하도록 span 대신 네이티브 button으로 그린다. */}\n <SwitchPrimitive.Root\n ref={ref}\n id={switchId}\n disabled={disabled}\n nativeButton\n render={<button type=\"button\" />}\n className={cn(switchTrackVariants({ size: resolvedSize }), className)}\n {...props}\n >\n <SwitchPrimitive.Thumb\n className={cn(\n \"aivex:block aivex:rounded-full aivex:bg-static-white aivex:shadow-[var(--aivex-elevation-sm)] aivex:transition-transform aivex:duration-200 aivex:will-change-transform\",\n thumbClass[resolvedSize],\n )}\n />\n </SwitchPrimitive.Root>\n {label && (\n <label\n htmlFor={switchId}\n className={cn(\n \"aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary\",\n isDisabled && \"aivex:cursor-not-allowed\",\n switchLabelSizeClass[resolvedSize],\n )}\n >\n {label}\n </label>\n )}\n </span>\n );\n}\n\nexport { Switch };\n"],"mappings":";;;;;;;;AAMA,IAAM,IAAsB,EAE1B,mVACA;CACE,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACD,iBAAiB,EAAE,MAAM,MAAM;CAChC,CACF,EAMK,IAAyC;CAC7C,IAAI;CACJ,IAAI;CACJ,IAAI;CACL,EAEK,IAAmD;CACvD,IAAI;CACJ,IAAI;CACJ,IAAI;CACL;AAgCD,SAAS,EAAO,EAAE,cAAW,UAAO,UAAO,MAAM,aAAU,OAAI,QAAK,GAAG,KAAsB;CAC3F,IAAM,IAAe,KAAQ,MACvB,IAAc,GAAO,EACrB,IAAW,KAAM,GAEjB,IAAQ,GAAe,EACvB,IAAa,EAAQ,KAAa,EAAM;AAE9C,QACE,kBAAC,QAAD;EACE,WAAW,EACT,qDACA,KAAc,wBACf;YAJH,CAOE,kBAAC,EAAgB,MAAjB;GACO;GACL,IAAI;GACM;GACV,cAAA;GACA,QAAQ,kBAAC,UAAD,EAAQ,MAAK,UAAW,CAAA;GAChC,WAAW,EAAG,EAAoB,EAAE,MAAM,GAAc,CAAC,EAAE,EAAU;GACrE,GAAI;aAEJ,kBAAC,EAAgB,OAAjB,EACE,WAAW,EACT,2KACA,EAAW,GACZ,EACD,CAAA;GACmB,CAAA,EACtB,KACC,kBAAC,SAAD;GACE,SAAS;GACT,WAAW,EACT,2HACA,KAAc,4BACd,EAAqB,GACtB;aAEA;GACK,CAAA,CAEL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { SwitchProps } from "./Switch";
|
|
2
|
-
export { Switch } from "./Switch";
|
|
1
|
+
export type { SwitchProps } from "./Switch.js";
|
|
2
|
+
export { Switch } from "./Switch.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../utils.cjs`);let t=require(`react/jsx-runtime`),n=require(`@base-ui/react/tabs`);function r({className:r,onValueChange:i,ref:a,...o}){return(0,t.jsx)(n.Tabs.Root,{ref:a,className:e.cn(`aivex:flex aivex:flex-col`,r),onValueChange:i,...o})}var i=`aivex:flex aivex:items-center aivex:gap-md aivex:border-b aivex:border-border-subtle`;function a({className:r,activateOnFocus:a=!0,ref:o,...s}){return(0,t.jsx)(n.Tabs.List,{ref:o,activateOnFocus:a,className:e.cn(i,r),...s})}var o=`aivex:relative aivex:inline-flex aivex:h-12 aivex:items-center aivex:justify-center aivex:gap-sm aivex:overflow-hidden aivex:px-md aivex:text-label-xl aivex:text-text-primary aivex:transition-colors aivex:before:absolute aivex:before:inset-x-0 aivex:before:top-md aivex:before:bottom-md aivex:before:rounded-md aivex:before:bg-bg-inverse-strong aivex:before:opacity-0 aivex:before:pointer-events-none aivex:before:transition-opacity aivex:before:content-[''] aivex:hover:before:opacity-4 aivex:active:before:opacity-8 aivex:focus-visible:outline-none aivex:focus-visible:before:opacity-8 aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:opacity-40 aivex:data-[active]:after:absolute aivex:data-[active]:after:bottom-0 aivex:data-[active]:after:left-0 aivex:data-[active]:after:right-0 aivex:data-[active]:after:h-0.5 aivex:data-[active]:after:bg-bg-inverse aivex:data-[active]:after:content-['']`;function s({className:r,nativeButton:i,render:a,ref:s,...c}){return(0,t.jsx)(n.Tabs.Tab,{ref:s,render:a,nativeButton:i??a===void 0,className:e.cn(o,r),...c})}function c({className:r,ref:i,...a}){return(0,t.jsx)(n.Tabs.Panel,{ref:i,className:e.cn(`aivex:flex-1 aivex:outline-none`,r),...a})}exports.TabContent=c,exports.TabList=a,exports.TabRoot=r,exports.TabTrigger=s;
|
|
2
|
+
//# sourceMappingURL=Tab.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tab.cjs","names":[],"sources":["../../../src/components/Tab/Tab.tsx"],"sourcesContent":["import { Tabs as TabsPrimitive } from \"@base-ui/react/tabs\";\nimport type { Ref } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\n// ─── TabRoot ──────────────────────────────────────────────────────────────────\n\nexport interface TabRootProps\n extends Omit<\n TabsPrimitive.Root.Props,\n \"className\" | \"defaultValue\" | \"onValueChange\" | \"ref\" | \"value\"\n > {\n /** 루트에 덧붙일 클래스 */\n className?: string;\n /** 활성 탭의 value (제어) */\n value?: string;\n /** 처음 활성화할 탭의 value (비제어) */\n defaultValue?: string;\n // 배포된 선언을 소비할 때도 콜백 인자의 contextual typing을 보존한다.\n /** 활성 탭이 바뀔 때 새 value로 호출된다 */\n onValueChange?: (value: string) => void;\n /** 루트 DOM ref */\n ref?: Ref<HTMLDivElement>;\n}\n\n/**\n * 밑줄형 탭의 루트(Base UI Tabs 기반). `TabList`·`TabTrigger`·`TabContent`를 조합한다.\n * 선택 상태는 `value`/`onValueChange`(제어) 또는 `defaultValue`(비제어)로 둔다.\n * 화살표 키 이동과 tablist/tab/tabpanel ARIA 연결은 Base UI가 처리한다.\n *\n * @example\n * ```tsx\n * import { TabContent, TabList, TabRoot, TabTrigger } from \"@aivex/ui\";\n *\n * <TabRoot defaultValue=\"overview\">\n * <TabList aria-label=\"프로젝트 정보\">\n * <TabTrigger value=\"overview\">개요</TabTrigger>\n * <TabTrigger value=\"members\">멤버</TabTrigger>\n * </TabList>\n * <TabContent value=\"overview\">개요 내용</TabContent>\n * <TabContent value=\"members\">멤버 목록</TabContent>\n * </TabRoot>\n * ```\n */\nfunction TabRoot({ className, onValueChange, ref, ...props }: TabRootProps) {\n return (\n <TabsPrimitive.Root\n ref={ref}\n className={cn(\"aivex:flex aivex:flex-col\", className)}\n onValueChange={onValueChange}\n {...props}\n />\n );\n}\n\n// ─── TabList ──────────────────────────────────────────────────────────────────\n\n// 시안 Tab-Underline(5319:146777) — 탭 간격 8px, 하단선은 subtle(#e8e7eb).\nconst tabListClassName =\n \"aivex:flex aivex:items-center aivex:gap-md aivex:border-b aivex:border-border-subtle\";\n\nexport interface TabListProps extends Omit<TabsPrimitive.List.Props, \"className\" | \"ref\"> {\n /** 목록에 덧붙일 클래스 */\n className?: string;\n /**\n * true면 화살표 키로 포커스를 옮길 때 바로 탭이 바뀐다. false면 포커스만 옮기고 Enter·Space로 바꾼다\n * @default true\n */\n activateOnFocus?: boolean;\n /** 목록 DOM ref */\n ref?: Ref<HTMLDivElement>;\n}\n\n/** 탭 버튼들을 가로로 나열하는 tablist. 하단에 subtle 구분선이 있다. */\nfunction TabList({ className, activateOnFocus = true, ref, ...props }: TabListProps) {\n return (\n <TabsPrimitive.List\n ref={ref}\n activateOnFocus={activateOnFocus}\n className={cn(tabListClassName, className)}\n {...props}\n />\n );\n}\n\n// ─── TabTrigger ───────────────────────────────────────────────────────────────\n\nconst tabTriggerClassName =\n \"aivex:relative aivex:inline-flex aivex:h-12 aivex:items-center aivex:justify-center aivex:gap-sm aivex:overflow-hidden aivex:px-md aivex:text-label-xl aivex:text-text-primary aivex:transition-colors aivex:before:absolute aivex:before:inset-x-0 aivex:before:top-md aivex:before:bottom-md aivex:before:rounded-md aivex:before:bg-bg-inverse-strong aivex:before:opacity-0 aivex:before:pointer-events-none aivex:before:transition-opacity aivex:before:content-[''] aivex:hover:before:opacity-4 aivex:active:before:opacity-8 aivex:focus-visible:outline-none aivex:focus-visible:before:opacity-8 aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:opacity-40 aivex:data-[active]:after:absolute aivex:data-[active]:after:bottom-0 aivex:data-[active]:after:left-0 aivex:data-[active]:after:right-0 aivex:data-[active]:after:h-0.5 aivex:data-[active]:after:bg-bg-inverse aivex:data-[active]:after:content-['']\";\n\nexport interface TabTriggerProps\n extends Omit<TabsPrimitive.Tab.Props, \"className\" | \"ref\" | \"value\"> {\n /** 버튼에 덧붙일 클래스 */\n className?: string;\n /** 탭을 식별하는 값. 같은 value의 TabContent와 짝을 이룬다 */\n value: string;\n /**\n * `render`로 바꿔 그린 요소가 네이티브 `<button>`인지 여부.\n * 생략하면 `render`가 없을 때 true, 있을 때 false(링크 등)로 본다.\n */\n nativeButton?: boolean;\n /** 버튼 DOM ref */\n ref?: Ref<HTMLElement>;\n}\n\n/**\n * 개별 탭 버튼. `value`가 필수이며 활성 탭엔 하단 밑줄이 그려진다.\n * 링크로 그리려면 `render`에 요소를 넘긴다: `<TabTrigger value=\"a\" render={<a href=\"/a\" />}>A</TabTrigger>`.\n */\nfunction TabTrigger({ className, nativeButton, render, ref, ...props }: TabTriggerProps) {\n return (\n <TabsPrimitive.Tab\n ref={ref}\n render={render}\n nativeButton={nativeButton ?? render === undefined}\n className={cn(tabTriggerClassName, className)}\n {...props}\n />\n );\n}\n\n// ─── TabContent ───────────────────────────────────────────────────────────────\n\nexport interface TabContentProps\n extends Omit<TabsPrimitive.Panel.Props, \"className\" | \"ref\" | \"value\"> {\n /** 패널에 덧붙일 클래스 */\n className?: string;\n /** 이 패널과 짝을 이루는 TabTrigger의 value */\n value: string;\n /** 패널 DOM ref */\n ref?: Ref<HTMLDivElement>;\n}\n\n/** 같은 `value`의 탭이 활성일 때 보이는 패널(tabpanel). */\nfunction TabContent({ className, ref, ...props }: TabContentProps) {\n return (\n <TabsPrimitive.Panel\n ref={ref}\n className={cn(\"aivex:flex-1 aivex:outline-none\", className)}\n {...props}\n />\n );\n}\n\nexport { TabContent, TabList, TabRoot, TabTrigger };\n"],"mappings":"oKA2CA,SAAS,EAAQ,CAAE,YAAW,gBAAe,MAAK,GAAG,GAAuB,CAC1E,OACE,EAAA,EAAA,KAAC,EAAA,KAAc,KAAf,CACO,MACL,UAAW,EAAA,GAAG,4BAA6B,EAAU,CACtC,gBACf,GAAI,EACJ,CAAA,CAON,IAAM,EACJ,uFAeF,SAAS,EAAQ,CAAE,YAAW,kBAAkB,GAAM,MAAK,GAAG,GAAuB,CACnF,OACE,EAAA,EAAA,KAAC,EAAA,KAAc,KAAf,CACO,MACY,kBACjB,UAAW,EAAA,GAAG,EAAkB,EAAU,CAC1C,GAAI,EACJ,CAAA,CAMN,IAAM,EACJ,g5BAqBF,SAAS,EAAW,CAAE,YAAW,eAAc,SAAQ,MAAK,GAAG,GAA0B,CACvF,OACE,EAAA,EAAA,KAAC,EAAA,KAAc,IAAf,CACO,MACG,SACR,aAAc,GAAgB,IAAW,IAAA,GACzC,UAAW,EAAA,GAAG,EAAqB,EAAU,CAC7C,GAAI,EACJ,CAAA,CAiBN,SAAS,EAAW,CAAE,YAAW,MAAK,GAAG,GAA0B,CACjE,OACE,EAAA,EAAA,KAAC,EAAA,KAAc,MAAf,CACO,MACL,UAAW,EAAA,GAAG,kCAAmC,EAAU,CAC3D,GAAI,EACJ,CAAA"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
2
|
+
import type { Ref } from "react";
|
|
3
|
+
export interface TabRootProps extends Omit<TabsPrimitive.Root.Props, "className" | "defaultValue" | "onValueChange" | "ref" | "value"> {
|
|
4
|
+
/** 루트에 덧붙일 클래스 */
|
|
5
|
+
className?: string;
|
|
6
|
+
/** 활성 탭의 value (제어) */
|
|
7
|
+
value?: string;
|
|
8
|
+
/** 처음 활성화할 탭의 value (비제어) */
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
/** 활성 탭이 바뀔 때 새 value로 호출된다 */
|
|
11
|
+
onValueChange?: (value: string) => void;
|
|
12
|
+
/** 루트 DOM ref */
|
|
13
|
+
ref?: Ref<HTMLDivElement>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 밑줄형 탭의 루트(Base UI Tabs 기반). `TabList`·`TabTrigger`·`TabContent`를 조합한다.
|
|
17
|
+
* 선택 상태는 `value`/`onValueChange`(제어) 또는 `defaultValue`(비제어)로 둔다.
|
|
18
|
+
* 화살표 키 이동과 tablist/tab/tabpanel ARIA 연결은 Base UI가 처리한다.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* import { TabContent, TabList, TabRoot, TabTrigger } from "@aivex/ui";
|
|
23
|
+
*
|
|
24
|
+
* <TabRoot defaultValue="overview">
|
|
25
|
+
* <TabList aria-label="프로젝트 정보">
|
|
26
|
+
* <TabTrigger value="overview">개요</TabTrigger>
|
|
27
|
+
* <TabTrigger value="members">멤버</TabTrigger>
|
|
28
|
+
* </TabList>
|
|
29
|
+
* <TabContent value="overview">개요 내용</TabContent>
|
|
30
|
+
* <TabContent value="members">멤버 목록</TabContent>
|
|
31
|
+
* </TabRoot>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
declare function TabRoot({ className, onValueChange, ref, ...props }: TabRootProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export interface TabListProps extends Omit<TabsPrimitive.List.Props, "className" | "ref"> {
|
|
36
|
+
/** 목록에 덧붙일 클래스 */
|
|
37
|
+
className?: string;
|
|
38
|
+
/**
|
|
39
|
+
* true면 화살표 키로 포커스를 옮길 때 바로 탭이 바뀐다. false면 포커스만 옮기고 Enter·Space로 바꾼다
|
|
40
|
+
* @default true
|
|
41
|
+
*/
|
|
42
|
+
activateOnFocus?: boolean;
|
|
43
|
+
/** 목록 DOM ref */
|
|
44
|
+
ref?: Ref<HTMLDivElement>;
|
|
45
|
+
}
|
|
46
|
+
/** 탭 버튼들을 가로로 나열하는 tablist. 하단에 subtle 구분선이 있다. */
|
|
47
|
+
declare function TabList({ className, activateOnFocus, ref, ...props }: TabListProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export interface TabTriggerProps extends Omit<TabsPrimitive.Tab.Props, "className" | "ref" | "value"> {
|
|
49
|
+
/** 버튼에 덧붙일 클래스 */
|
|
50
|
+
className?: string;
|
|
51
|
+
/** 탭을 식별하는 값. 같은 value의 TabContent와 짝을 이룬다 */
|
|
52
|
+
value: string;
|
|
53
|
+
/**
|
|
54
|
+
* `render`로 바꿔 그린 요소가 네이티브 `<button>`인지 여부.
|
|
55
|
+
* 생략하면 `render`가 없을 때 true, 있을 때 false(링크 등)로 본다.
|
|
56
|
+
*/
|
|
57
|
+
nativeButton?: boolean;
|
|
58
|
+
/** 버튼 DOM ref */
|
|
59
|
+
ref?: Ref<HTMLElement>;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* 개별 탭 버튼. `value`가 필수이며 활성 탭엔 하단 밑줄이 그려진다.
|
|
63
|
+
* 링크로 그리려면 `render`에 요소를 넘긴다: `<TabTrigger value="a" render={<a href="/a" />}>A</TabTrigger>`.
|
|
64
|
+
*/
|
|
65
|
+
declare function TabTrigger({ className, nativeButton, render, ref, ...props }: TabTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
export interface TabContentProps extends Omit<TabsPrimitive.Panel.Props, "className" | "ref" | "value"> {
|
|
67
|
+
/** 패널에 덧붙일 클래스 */
|
|
68
|
+
className?: string;
|
|
69
|
+
/** 이 패널과 짝을 이루는 TabTrigger의 value */
|
|
70
|
+
value: string;
|
|
71
|
+
/** 패널 DOM ref */
|
|
72
|
+
ref?: Ref<HTMLDivElement>;
|
|
73
|
+
}
|
|
74
|
+
/** 같은 `value`의 탭이 활성일 때 보이는 패널(tabpanel). */
|
|
75
|
+
declare function TabContent({ className, ref, ...props }: TabContentProps): import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
export { TabContent, TabList, TabRoot, TabTrigger };
|
|
@@ -1,19 +1,76 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type {
|
|
3
|
-
export interface TabRootProps extends
|
|
4
|
-
|
|
1
|
+
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
2
|
+
import type { Ref } from "react";
|
|
3
|
+
export interface TabRootProps extends Omit<TabsPrimitive.Root.Props, "className" | "defaultValue" | "onValueChange" | "ref" | "value"> {
|
|
4
|
+
/** 루트에 덧붙일 클래스 */
|
|
5
|
+
className?: string;
|
|
6
|
+
/** 활성 탭의 value (제어) */
|
|
7
|
+
value?: string;
|
|
8
|
+
/** 처음 활성화할 탭의 value (비제어) */
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
/** 활성 탭이 바뀔 때 새 value로 호출된다 */
|
|
11
|
+
onValueChange?: (value: string) => void;
|
|
12
|
+
/** 루트 DOM ref */
|
|
13
|
+
ref?: Ref<HTMLDivElement>;
|
|
5
14
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
15
|
+
/**
|
|
16
|
+
* 밑줄형 탭의 루트(Base UI Tabs 기반). `TabList`·`TabTrigger`·`TabContent`를 조합한다.
|
|
17
|
+
* 선택 상태는 `value`/`onValueChange`(제어) 또는 `defaultValue`(비제어)로 둔다.
|
|
18
|
+
* 화살표 키 이동과 tablist/tab/tabpanel ARIA 연결은 Base UI가 처리한다.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* import { TabContent, TabList, TabRoot, TabTrigger } from "@aivex/ui";
|
|
23
|
+
*
|
|
24
|
+
* <TabRoot defaultValue="overview">
|
|
25
|
+
* <TabList aria-label="프로젝트 정보">
|
|
26
|
+
* <TabTrigger value="overview">개요</TabTrigger>
|
|
27
|
+
* <TabTrigger value="members">멤버</TabTrigger>
|
|
28
|
+
* </TabList>
|
|
29
|
+
* <TabContent value="overview">개요 내용</TabContent>
|
|
30
|
+
* <TabContent value="members">멤버 목록</TabContent>
|
|
31
|
+
* </TabRoot>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
declare function TabRoot({ className, onValueChange, ref, ...props }: TabRootProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export interface TabListProps extends Omit<TabsPrimitive.List.Props, "className" | "ref"> {
|
|
36
|
+
/** 목록에 덧붙일 클래스 */
|
|
37
|
+
className?: string;
|
|
38
|
+
/**
|
|
39
|
+
* true면 화살표 키로 포커스를 옮길 때 바로 탭이 바뀐다. false면 포커스만 옮기고 Enter·Space로 바꾼다
|
|
40
|
+
* @default true
|
|
41
|
+
*/
|
|
42
|
+
activateOnFocus?: boolean;
|
|
43
|
+
/** 목록 DOM ref */
|
|
44
|
+
ref?: Ref<HTMLDivElement>;
|
|
9
45
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
46
|
+
/** 탭 버튼들을 가로로 나열하는 tablist. 하단에 subtle 구분선이 있다. */
|
|
47
|
+
declare function TabList({ className, activateOnFocus, ref, ...props }: TabListProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export interface TabTriggerProps extends Omit<TabsPrimitive.Tab.Props, "className" | "ref" | "value"> {
|
|
49
|
+
/** 버튼에 덧붙일 클래스 */
|
|
50
|
+
className?: string;
|
|
51
|
+
/** 탭을 식별하는 값. 같은 value의 TabContent와 짝을 이룬다 */
|
|
52
|
+
value: string;
|
|
53
|
+
/**
|
|
54
|
+
* `render`로 바꿔 그린 요소가 네이티브 `<button>`인지 여부.
|
|
55
|
+
* 생략하면 `render`가 없을 때 true, 있을 때 false(링크 등)로 본다.
|
|
56
|
+
*/
|
|
57
|
+
nativeButton?: boolean;
|
|
58
|
+
/** 버튼 DOM ref */
|
|
59
|
+
ref?: Ref<HTMLElement>;
|
|
13
60
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
61
|
+
/**
|
|
62
|
+
* 개별 탭 버튼. `value`가 필수이며 활성 탭엔 하단 밑줄이 그려진다.
|
|
63
|
+
* 링크로 그리려면 `render`에 요소를 넘긴다: `<TabTrigger value="a" render={<a href="/a" />}>A</TabTrigger>`.
|
|
64
|
+
*/
|
|
65
|
+
declare function TabTrigger({ className, nativeButton, render, ref, ...props }: TabTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
export interface TabContentProps extends Omit<TabsPrimitive.Panel.Props, "className" | "ref" | "value"> {
|
|
67
|
+
/** 패널에 덧붙일 클래스 */
|
|
68
|
+
className?: string;
|
|
69
|
+
/** 이 패널과 짝을 이루는 TabTrigger의 value */
|
|
70
|
+
value: string;
|
|
71
|
+
/** 패널 DOM ref */
|
|
72
|
+
ref?: Ref<HTMLDivElement>;
|
|
17
73
|
}
|
|
74
|
+
/** 같은 `value`의 탭이 활성일 때 보이는 패널(tabpanel). */
|
|
18
75
|
declare function TabContent({ className, ref, ...props }: TabContentProps): import("react/jsx-runtime").JSX.Element;
|
|
19
76
|
export { TabContent, TabList, TabRoot, TabTrigger };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../utils.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import { Tabs as n } from "@base-ui/react/tabs";
|
|
5
|
+
//#region src/components/Tab/Tab.tsx
|
|
6
|
+
function r({ className: r, onValueChange: i, ref: a, ...o }) {
|
|
7
|
+
return /* @__PURE__ */ t(n.Root, {
|
|
8
|
+
ref: a,
|
|
9
|
+
className: e("aivex:flex aivex:flex-col", r),
|
|
10
|
+
onValueChange: i,
|
|
11
|
+
...o
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
var i = "aivex:flex aivex:items-center aivex:gap-md aivex:border-b aivex:border-border-subtle";
|
|
15
|
+
function a({ className: r, activateOnFocus: a = !0, ref: o, ...s }) {
|
|
16
|
+
return /* @__PURE__ */ t(n.List, {
|
|
17
|
+
ref: o,
|
|
18
|
+
activateOnFocus: a,
|
|
19
|
+
className: e(i, r),
|
|
20
|
+
...s
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
var o = "aivex:relative aivex:inline-flex aivex:h-12 aivex:items-center aivex:justify-center aivex:gap-sm aivex:overflow-hidden aivex:px-md aivex:text-label-xl aivex:text-text-primary aivex:transition-colors aivex:before:absolute aivex:before:inset-x-0 aivex:before:top-md aivex:before:bottom-md aivex:before:rounded-md aivex:before:bg-bg-inverse-strong aivex:before:opacity-0 aivex:before:pointer-events-none aivex:before:transition-opacity aivex:before:content-[''] aivex:hover:before:opacity-4 aivex:active:before:opacity-8 aivex:focus-visible:outline-none aivex:focus-visible:before:opacity-8 aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:opacity-40 aivex:data-[active]:after:absolute aivex:data-[active]:after:bottom-0 aivex:data-[active]:after:left-0 aivex:data-[active]:after:right-0 aivex:data-[active]:after:h-0.5 aivex:data-[active]:after:bg-bg-inverse aivex:data-[active]:after:content-['']";
|
|
24
|
+
function s({ className: r, nativeButton: i, render: a, ref: s, ...c }) {
|
|
25
|
+
return /* @__PURE__ */ t(n.Tab, {
|
|
26
|
+
ref: s,
|
|
27
|
+
render: a,
|
|
28
|
+
nativeButton: i ?? a === void 0,
|
|
29
|
+
className: e(o, r),
|
|
30
|
+
...c
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function c({ className: r, ref: i, ...a }) {
|
|
34
|
+
return /* @__PURE__ */ t(n.Panel, {
|
|
35
|
+
ref: i,
|
|
36
|
+
className: e("aivex:flex-1 aivex:outline-none", r),
|
|
37
|
+
...a
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { c as TabContent, a as TabList, r as TabRoot, s as TabTrigger };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=Tab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tab.js","names":[],"sources":["../../../src/components/Tab/Tab.tsx"],"sourcesContent":["import { Tabs as TabsPrimitive } from \"@base-ui/react/tabs\";\nimport type { Ref } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\n// ─── TabRoot ──────────────────────────────────────────────────────────────────\n\nexport interface TabRootProps\n extends Omit<\n TabsPrimitive.Root.Props,\n \"className\" | \"defaultValue\" | \"onValueChange\" | \"ref\" | \"value\"\n > {\n /** 루트에 덧붙일 클래스 */\n className?: string;\n /** 활성 탭의 value (제어) */\n value?: string;\n /** 처음 활성화할 탭의 value (비제어) */\n defaultValue?: string;\n // 배포된 선언을 소비할 때도 콜백 인자의 contextual typing을 보존한다.\n /** 활성 탭이 바뀔 때 새 value로 호출된다 */\n onValueChange?: (value: string) => void;\n /** 루트 DOM ref */\n ref?: Ref<HTMLDivElement>;\n}\n\n/**\n * 밑줄형 탭의 루트(Base UI Tabs 기반). `TabList`·`TabTrigger`·`TabContent`를 조합한다.\n * 선택 상태는 `value`/`onValueChange`(제어) 또는 `defaultValue`(비제어)로 둔다.\n * 화살표 키 이동과 tablist/tab/tabpanel ARIA 연결은 Base UI가 처리한다.\n *\n * @example\n * ```tsx\n * import { TabContent, TabList, TabRoot, TabTrigger } from \"@aivex/ui\";\n *\n * <TabRoot defaultValue=\"overview\">\n * <TabList aria-label=\"프로젝트 정보\">\n * <TabTrigger value=\"overview\">개요</TabTrigger>\n * <TabTrigger value=\"members\">멤버</TabTrigger>\n * </TabList>\n * <TabContent value=\"overview\">개요 내용</TabContent>\n * <TabContent value=\"members\">멤버 목록</TabContent>\n * </TabRoot>\n * ```\n */\nfunction TabRoot({ className, onValueChange, ref, ...props }: TabRootProps) {\n return (\n <TabsPrimitive.Root\n ref={ref}\n className={cn(\"aivex:flex aivex:flex-col\", className)}\n onValueChange={onValueChange}\n {...props}\n />\n );\n}\n\n// ─── TabList ──────────────────────────────────────────────────────────────────\n\n// 시안 Tab-Underline(5319:146777) — 탭 간격 8px, 하단선은 subtle(#e8e7eb).\nconst tabListClassName =\n \"aivex:flex aivex:items-center aivex:gap-md aivex:border-b aivex:border-border-subtle\";\n\nexport interface TabListProps extends Omit<TabsPrimitive.List.Props, \"className\" | \"ref\"> {\n /** 목록에 덧붙일 클래스 */\n className?: string;\n /**\n * true면 화살표 키로 포커스를 옮길 때 바로 탭이 바뀐다. false면 포커스만 옮기고 Enter·Space로 바꾼다\n * @default true\n */\n activateOnFocus?: boolean;\n /** 목록 DOM ref */\n ref?: Ref<HTMLDivElement>;\n}\n\n/** 탭 버튼들을 가로로 나열하는 tablist. 하단에 subtle 구분선이 있다. */\nfunction TabList({ className, activateOnFocus = true, ref, ...props }: TabListProps) {\n return (\n <TabsPrimitive.List\n ref={ref}\n activateOnFocus={activateOnFocus}\n className={cn(tabListClassName, className)}\n {...props}\n />\n );\n}\n\n// ─── TabTrigger ───────────────────────────────────────────────────────────────\n\nconst tabTriggerClassName =\n \"aivex:relative aivex:inline-flex aivex:h-12 aivex:items-center aivex:justify-center aivex:gap-sm aivex:overflow-hidden aivex:px-md aivex:text-label-xl aivex:text-text-primary aivex:transition-colors aivex:before:absolute aivex:before:inset-x-0 aivex:before:top-md aivex:before:bottom-md aivex:before:rounded-md aivex:before:bg-bg-inverse-strong aivex:before:opacity-0 aivex:before:pointer-events-none aivex:before:transition-opacity aivex:before:content-[''] aivex:hover:before:opacity-4 aivex:active:before:opacity-8 aivex:focus-visible:outline-none aivex:focus-visible:before:opacity-8 aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:opacity-40 aivex:data-[active]:after:absolute aivex:data-[active]:after:bottom-0 aivex:data-[active]:after:left-0 aivex:data-[active]:after:right-0 aivex:data-[active]:after:h-0.5 aivex:data-[active]:after:bg-bg-inverse aivex:data-[active]:after:content-['']\";\n\nexport interface TabTriggerProps\n extends Omit<TabsPrimitive.Tab.Props, \"className\" | \"ref\" | \"value\"> {\n /** 버튼에 덧붙일 클래스 */\n className?: string;\n /** 탭을 식별하는 값. 같은 value의 TabContent와 짝을 이룬다 */\n value: string;\n /**\n * `render`로 바꿔 그린 요소가 네이티브 `<button>`인지 여부.\n * 생략하면 `render`가 없을 때 true, 있을 때 false(링크 등)로 본다.\n */\n nativeButton?: boolean;\n /** 버튼 DOM ref */\n ref?: Ref<HTMLElement>;\n}\n\n/**\n * 개별 탭 버튼. `value`가 필수이며 활성 탭엔 하단 밑줄이 그려진다.\n * 링크로 그리려면 `render`에 요소를 넘긴다: `<TabTrigger value=\"a\" render={<a href=\"/a\" />}>A</TabTrigger>`.\n */\nfunction TabTrigger({ className, nativeButton, render, ref, ...props }: TabTriggerProps) {\n return (\n <TabsPrimitive.Tab\n ref={ref}\n render={render}\n nativeButton={nativeButton ?? render === undefined}\n className={cn(tabTriggerClassName, className)}\n {...props}\n />\n );\n}\n\n// ─── TabContent ───────────────────────────────────────────────────────────────\n\nexport interface TabContentProps\n extends Omit<TabsPrimitive.Panel.Props, \"className\" | \"ref\" | \"value\"> {\n /** 패널에 덧붙일 클래스 */\n className?: string;\n /** 이 패널과 짝을 이루는 TabTrigger의 value */\n value: string;\n /** 패널 DOM ref */\n ref?: Ref<HTMLDivElement>;\n}\n\n/** 같은 `value`의 탭이 활성일 때 보이는 패널(tabpanel). */\nfunction TabContent({ className, ref, ...props }: TabContentProps) {\n return (\n <TabsPrimitive.Panel\n ref={ref}\n className={cn(\"aivex:flex-1 aivex:outline-none\", className)}\n {...props}\n />\n );\n}\n\nexport { TabContent, TabList, TabRoot, TabTrigger };\n"],"mappings":";;;;;AA2CA,SAAS,EAAQ,EAAE,cAAW,kBAAe,QAAK,GAAG,KAAuB;AAC1E,QACE,kBAAC,EAAc,MAAf;EACO;EACL,WAAW,EAAG,6BAA6B,EAAU;EACtC;EACf,GAAI;EACJ,CAAA;;AAON,IAAM,IACJ;AAeF,SAAS,EAAQ,EAAE,cAAW,qBAAkB,IAAM,QAAK,GAAG,KAAuB;AACnF,QACE,kBAAC,EAAc,MAAf;EACO;EACY;EACjB,WAAW,EAAG,GAAkB,EAAU;EAC1C,GAAI;EACJ,CAAA;;AAMN,IAAM,IACJ;AAqBF,SAAS,EAAW,EAAE,cAAW,iBAAc,WAAQ,QAAK,GAAG,KAA0B;AACvF,QACE,kBAAC,EAAc,KAAf;EACO;EACG;EACR,cAAc,KAAgB,MAAW,KAAA;EACzC,WAAW,EAAG,GAAqB,EAAU;EAC7C,GAAI;EACJ,CAAA;;AAiBN,SAAS,EAAW,EAAE,cAAW,QAAK,GAAG,KAA0B;AACjE,QACE,kBAAC,EAAc,OAAf;EACO;EACL,WAAW,EAAG,mCAAmC,EAAU;EAC3D,GAAI;EACJ,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { TabContentProps, TabListProps, TabRootProps, TabTriggerProps, } from "./Tab";
|
|
2
|
-
export { TabContent, TabList, TabRoot, TabTrigger } from "./Tab";
|
|
1
|
+
export type { TabContentProps, TabListProps, TabRootProps, TabTriggerProps, } from "./Tab.js";
|
|
2
|
+
export { TabContent, TabList, TabRoot, TabTrigger } from "./Tab.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../Icon/index.cjs`),t=require(`../../utils.cjs`),n=require(`../IconButton/IconButton.cjs`);let r=require(`react/jsx-runtime`);var i=(0,require(`class-variance-authority`).cva)(`aivex:inline-flex aivex:items-center aivex:gap-[2px] aivex:rounded-full aivex:overflow-hidden`,{variants:{size:{sm:`aivex:min-h-6 aivex:px-[6px] aivex:py-[2px]`,md:`aivex:min-h-8 aivex:px-[10px] aivex:py-[6px]`},variant:{default:`aivex:bg-bg-tertiary aivex:text-text-primary`,error:`aivex:bg-bg-danger-subtle aivex:text-text-danger`}},defaultVariants:{size:`sm`,variant:`default`}});function a({className:a,size:o=`sm`,variant:s=`default`,startContent:c,showIcon:l=!1,disabled:u=!1,onRemove:d,removeAriaLabel:f=`태그 삭제`,children:p,ref:m,...h}){return(0,r.jsxs)(`div`,{ref:m,className:t.cn(i({size:o,variant:s}),u&&`aivex:opacity-disable`,a),...h,children:[c?(0,r.jsx)(`span`,{className:`aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center`,children:c}):l?(0,r.jsx)(`span`,{className:`aivex:shrink-0 aivex:flex aivex:items-center aivex:justify-center aivex:opacity-40`,children:(0,r.jsx)(e.CircleDashedIcon,{size:16})}):null,(0,r.jsx)(`span`,{className:t.cn(`aivex:px-[2px] aivex:truncate`,o===`sm`?`aivex:text-label-md aivex:max-w-[160px]`:`aivex:text-label-lg aivex:max-w-[180px]`),children:p}),!u&&d&&(0,r.jsx)(n.IconButton,{size:`xs`,shape:`rounded`,onClick:e=>{e.stopPropagation(),d()},className:`aivex:shrink-0`,"aria-label":f,children:(0,r.jsx)(e.CloseIcon,{size:12})})]})}exports.Tag=a,exports.tagVariants=i;
|
|
2
|
+
//# sourceMappingURL=Tag.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.cjs","names":[],"sources":["../../../src/components/Tag/Tag.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport type { HTMLAttributes, ReactNode, Ref } from \"react\";\nimport { CircleDashedIcon, CloseIcon } from \"@/components/Icon\";\nimport { IconButton } from \"@/components/IconButton\";\nimport { cn } from \"@/utils/cn\";\n\n/** 태그 크기·색 클래스를 만드는 cva 변형. */\nconst tagVariants = cva(\n \"aivex:inline-flex aivex:items-center aivex:gap-[2px] aivex:rounded-full aivex:overflow-hidden\",\n {\n variants: {\n size: {\n sm: \"aivex:min-h-6 aivex:px-[6px] aivex:py-[2px]\",\n md: \"aivex:min-h-8 aivex:px-[10px] aivex:py-[6px]\",\n },\n variant: {\n default: \"aivex:bg-bg-tertiary aivex:text-text-primary\",\n error: \"aivex:bg-bg-danger-subtle aivex:text-text-danger\",\n },\n },\n defaultVariants: {\n size: \"sm\",\n variant: \"default\",\n },\n },\n);\n\n/** 태그 색 변형: default(중립)·error(위험). */\nexport type TagVariant = NonNullable<VariantProps<typeof tagVariants>[\"variant\"]>;\n\nexport interface TagProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof tagVariants> {\n /** 텍스트 앞 슬롯(아이콘·색 점 등). 지정하면 showIcon보다 우선한다 */\n startContent?: ReactNode;\n /**\n * startContent가 없을 때 기본 점선 원 아이콘을 표시\n * @default false\n */\n showIcon?: boolean;\n /**\n * 비활성 스타일. 삭제 버튼도 숨겨진다\n * @default false\n */\n disabled?: boolean;\n /** 지정하면 삭제(X) 버튼을 표시하고 클릭 시 호출된다(클릭 이벤트 전파는 막는다) */\n onRemove?: () => void;\n /**\n * 삭제 버튼 aria-label.\n * @default \"태그 삭제\"\n */\n removeAriaLabel?: string;\n /** 태그 텍스트. sm 160px·md 180px를 넘으면 말줄임된다 */\n children?: ReactNode;\n /** 루트 div ref */\n ref?: Ref<HTMLDivElement>;\n}\n\n/**\n * 값·속성을 작게 표시하는 칩. 선택적으로 삭제 버튼을 가진다.\n * 클릭해서 켜고 끄는 선택 칩이 아니다 — 선택 가능한 칩은 ToggleButton, 입력으로 태그를 추가·삭제하려면 Tagbox.\n * size는 `\"sm\"`(기본, 24px)·`\"md\"`(32px), variant는 `\"default\"`·`\"error\"`.\n *\n * @example\n * ```tsx\n * import { Tag } from \"@aivex/ui\";\n *\n * <Tag size=\"md\" onRemove={() => removeFilter(id)} removeAriaLabel=\"필터 삭제\">\n * 디자인\n * </Tag>\n * ```\n */\nfunction Tag({\n className,\n size = \"sm\",\n variant = \"default\",\n startContent,\n showIcon = false,\n disabled = false,\n onRemove,\n removeAriaLabel = \"태그 삭제\",\n children,\n ref,\n ...props\n}: TagProps) {\n return (\n <div\n ref={ref}\n className={cn(tagVariants({ size, variant }), disabled && \"aivex:opacity-disable\", className)}\n {...props}\n >\n {startContent ? (\n <span className=\"aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center\">\n {startContent}\n </span>\n ) : showIcon ? (\n <span className=\"aivex:shrink-0 aivex:flex aivex:items-center aivex:justify-center aivex:opacity-40\">\n <CircleDashedIcon size={16} />\n </span>\n ) : null}\n <span\n className={cn(\n \"aivex:px-[2px] aivex:truncate\",\n size === \"sm\"\n ? \"aivex:text-label-md aivex:max-w-[160px]\"\n : \"aivex:text-label-lg aivex:max-w-[180px]\",\n )}\n >\n {children}\n </span>\n {!disabled && onRemove && (\n <IconButton\n size=\"xs\"\n shape=\"rounded\"\n onClick={(e) => {\n e.stopPropagation();\n onRemove();\n }}\n className=\"aivex:shrink-0\"\n aria-label={removeAriaLabel}\n >\n <CloseIcon size={12} />\n </IconButton>\n )}\n </div>\n );\n}\n\nexport { Tag, tagVariants };\n"],"mappings":"4MAOA,IAAM,GAAA,sCAAA,KACJ,gGACA,CACE,SAAU,CACR,KAAM,CACJ,GAAI,8CACJ,GAAI,+CACL,CACD,QAAS,CACP,QAAS,+CACT,MAAO,mDACR,CACF,CACD,gBAAiB,CACf,KAAM,KACN,QAAS,UACV,CACF,CACF,CA6CD,SAAS,EAAI,CACX,YACA,OAAO,KACP,UAAU,UACV,eACA,WAAW,GACX,WAAW,GACX,WACA,kBAAkB,QAClB,WACA,MACA,GAAG,GACQ,CACX,OACE,EAAA,EAAA,MAAC,MAAD,CACO,MACL,UAAW,EAAA,GAAG,EAAY,CAAE,OAAM,UAAS,CAAC,CAAE,GAAY,wBAAyB,EAAU,CAC7F,GAAI,WAHN,CAKG,GACC,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,6EACb,EACI,CAAA,CACL,GACF,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,+FACd,EAAA,EAAA,KAAC,EAAA,iBAAD,CAAkB,KAAM,GAAM,CAAA,CACzB,CAAA,CACL,MACJ,EAAA,EAAA,KAAC,OAAD,CACE,UAAW,EAAA,GACT,gCACA,IAAS,KACL,0CACA,0CACL,CAEA,WACI,CAAA,CACN,CAAC,GAAY,IACZ,EAAA,EAAA,KAAC,EAAA,WAAD,CACE,KAAK,KACL,MAAM,UACN,QAAU,GAAM,CACd,EAAE,iBAAiB,CACnB,GAAU,EAEZ,UAAU,iBACV,aAAY,YAEZ,EAAA,EAAA,KAAC,EAAA,UAAD,CAAW,KAAM,GAAM,CAAA,CACZ,CAAA,CAEX"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import type { HTMLAttributes, ReactNode, Ref } from "react";
|
|
3
|
+
/** 태그 크기·색 클래스를 만드는 cva 변형. */
|
|
4
|
+
declare const tagVariants: (props?: ({
|
|
5
|
+
size?: "md" | "sm" | null | undefined;
|
|
6
|
+
variant?: "default" | "error" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
/** 태그 색 변형: default(중립)·error(위험). */
|
|
9
|
+
export type TagVariant = NonNullable<VariantProps<typeof tagVariants>["variant"]>;
|
|
10
|
+
export interface TagProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof tagVariants> {
|
|
11
|
+
/** 텍스트 앞 슬롯(아이콘·색 점 등). 지정하면 showIcon보다 우선한다 */
|
|
12
|
+
startContent?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* startContent가 없을 때 기본 점선 원 아이콘을 표시
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
showIcon?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 비활성 스타일. 삭제 버튼도 숨겨진다
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/** 지정하면 삭제(X) 버튼을 표시하고 클릭 시 호출된다(클릭 이벤트 전파는 막는다) */
|
|
24
|
+
onRemove?: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* 삭제 버튼 aria-label.
|
|
27
|
+
* @default "태그 삭제"
|
|
28
|
+
*/
|
|
29
|
+
removeAriaLabel?: string;
|
|
30
|
+
/** 태그 텍스트. sm 160px·md 180px를 넘으면 말줄임된다 */
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
/** 루트 div ref */
|
|
33
|
+
ref?: Ref<HTMLDivElement>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 값·속성을 작게 표시하는 칩. 선택적으로 삭제 버튼을 가진다.
|
|
37
|
+
* 클릭해서 켜고 끄는 선택 칩이 아니다 — 선택 가능한 칩은 ToggleButton, 입력으로 태그를 추가·삭제하려면 Tagbox.
|
|
38
|
+
* size는 `"sm"`(기본, 24px)·`"md"`(32px), variant는 `"default"`·`"error"`.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* import { Tag } from "@aivex/ui";
|
|
43
|
+
*
|
|
44
|
+
* <Tag size="md" onRemove={() => removeFilter(id)} removeAriaLabel="필터 삭제">
|
|
45
|
+
* 디자인
|
|
46
|
+
* </Tag>
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
declare function Tag({ className, size, variant, startContent, showIcon, disabled, onRemove, removeAriaLabel, children, ref, ...props }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export { Tag, tagVariants };
|
|
@@ -1,16 +1,50 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
2
|
import type { HTMLAttributes, ReactNode, Ref } from "react";
|
|
3
|
+
/** 태그 크기·색 클래스를 만드는 cva 변형. */
|
|
3
4
|
declare const tagVariants: (props?: ({
|
|
4
5
|
size?: "md" | "sm" | null | undefined;
|
|
5
|
-
|
|
6
|
+
variant?: "default" | "error" | null | undefined;
|
|
6
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
|
|
8
|
+
/** 태그 색 변형: default(중립)·error(위험). */
|
|
9
|
+
export type TagVariant = NonNullable<VariantProps<typeof tagVariants>["variant"]>;
|
|
10
|
+
export interface TagProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof tagVariants> {
|
|
11
|
+
/** 텍스트 앞 슬롯(아이콘·색 점 등). 지정하면 showIcon보다 우선한다 */
|
|
8
12
|
startContent?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* startContent가 없을 때 기본 점선 원 아이콘을 표시
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
9
17
|
showIcon?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 비활성 스타일. 삭제 버튼도 숨겨진다
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
10
22
|
disabled?: boolean;
|
|
23
|
+
/** 지정하면 삭제(X) 버튼을 표시하고 클릭 시 호출된다(클릭 이벤트 전파는 막는다) */
|
|
11
24
|
onRemove?: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* 삭제 버튼 aria-label.
|
|
27
|
+
* @default "태그 삭제"
|
|
28
|
+
*/
|
|
29
|
+
removeAriaLabel?: string;
|
|
30
|
+
/** 태그 텍스트. sm 160px·md 180px를 넘으면 말줄임된다 */
|
|
12
31
|
children?: ReactNode;
|
|
32
|
+
/** 루트 div ref */
|
|
13
33
|
ref?: Ref<HTMLDivElement>;
|
|
14
34
|
}
|
|
15
|
-
|
|
35
|
+
/**
|
|
36
|
+
* 값·속성을 작게 표시하는 칩. 선택적으로 삭제 버튼을 가진다.
|
|
37
|
+
* 클릭해서 켜고 끄는 선택 칩이 아니다 — 선택 가능한 칩은 ToggleButton, 입력으로 태그를 추가·삭제하려면 Tagbox.
|
|
38
|
+
* size는 `"sm"`(기본, 24px)·`"md"`(32px), variant는 `"default"`·`"error"`.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* import { Tag } from "@aivex/ui";
|
|
43
|
+
*
|
|
44
|
+
* <Tag size="md" onRemove={() => removeFilter(id)} removeAriaLabel="필터 삭제">
|
|
45
|
+
* 디자인
|
|
46
|
+
* </Tag>
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
declare function Tag({ className, size, variant, startContent, showIcon, disabled, onRemove, removeAriaLabel, children, ref, ...props }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
16
50
|
export { Tag, tagVariants };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { CircleDashedIcon as e, CloseIcon as t } from "../Icon/index.js";
|
|
3
|
+
import { cn as n } from "../../utils.js";
|
|
4
|
+
import { IconButton as r } from "../IconButton/IconButton.js";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
import { cva as o } from "class-variance-authority";
|
|
7
|
+
//#region src/components/Tag/Tag.tsx
|
|
8
|
+
var s = o("aivex:inline-flex aivex:items-center aivex:gap-[2px] aivex:rounded-full aivex:overflow-hidden", {
|
|
9
|
+
variants: {
|
|
10
|
+
size: {
|
|
11
|
+
sm: "aivex:min-h-6 aivex:px-[6px] aivex:py-[2px]",
|
|
12
|
+
md: "aivex:min-h-8 aivex:px-[10px] aivex:py-[6px]"
|
|
13
|
+
},
|
|
14
|
+
variant: {
|
|
15
|
+
default: "aivex:bg-bg-tertiary aivex:text-text-primary",
|
|
16
|
+
error: "aivex:bg-bg-danger-subtle aivex:text-text-danger"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
size: "sm",
|
|
21
|
+
variant: "default"
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
function c({ className: o, size: c = "sm", variant: l = "default", startContent: u, showIcon: d = !1, disabled: f = !1, onRemove: p, removeAriaLabel: m = "태그 삭제", children: h, ref: g, ..._ }) {
|
|
25
|
+
return /* @__PURE__ */ a("div", {
|
|
26
|
+
ref: g,
|
|
27
|
+
className: n(s({
|
|
28
|
+
size: c,
|
|
29
|
+
variant: l
|
|
30
|
+
}), f && "aivex:opacity-disable", o),
|
|
31
|
+
..._,
|
|
32
|
+
children: [
|
|
33
|
+
u ? /* @__PURE__ */ i("span", {
|
|
34
|
+
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center",
|
|
35
|
+
children: u
|
|
36
|
+
}) : d ? /* @__PURE__ */ i("span", {
|
|
37
|
+
className: "aivex:shrink-0 aivex:flex aivex:items-center aivex:justify-center aivex:opacity-40",
|
|
38
|
+
children: /* @__PURE__ */ i(e, { size: 16 })
|
|
39
|
+
}) : null,
|
|
40
|
+
/* @__PURE__ */ i("span", {
|
|
41
|
+
className: n("aivex:px-[2px] aivex:truncate", c === "sm" ? "aivex:text-label-md aivex:max-w-[160px]" : "aivex:text-label-lg aivex:max-w-[180px]"),
|
|
42
|
+
children: h
|
|
43
|
+
}),
|
|
44
|
+
!f && p && /* @__PURE__ */ i(r, {
|
|
45
|
+
size: "xs",
|
|
46
|
+
shape: "rounded",
|
|
47
|
+
onClick: (e) => {
|
|
48
|
+
e.stopPropagation(), p();
|
|
49
|
+
},
|
|
50
|
+
className: "aivex:shrink-0",
|
|
51
|
+
"aria-label": m,
|
|
52
|
+
children: /* @__PURE__ */ i(t, { size: 12 })
|
|
53
|
+
})
|
|
54
|
+
]
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
export { c as Tag, s as tagVariants };
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=Tag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.js","names":[],"sources":["../../../src/components/Tag/Tag.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport type { HTMLAttributes, ReactNode, Ref } from \"react\";\nimport { CircleDashedIcon, CloseIcon } from \"@/components/Icon\";\nimport { IconButton } from \"@/components/IconButton\";\nimport { cn } from \"@/utils/cn\";\n\n/** 태그 크기·색 클래스를 만드는 cva 변형. */\nconst tagVariants = cva(\n \"aivex:inline-flex aivex:items-center aivex:gap-[2px] aivex:rounded-full aivex:overflow-hidden\",\n {\n variants: {\n size: {\n sm: \"aivex:min-h-6 aivex:px-[6px] aivex:py-[2px]\",\n md: \"aivex:min-h-8 aivex:px-[10px] aivex:py-[6px]\",\n },\n variant: {\n default: \"aivex:bg-bg-tertiary aivex:text-text-primary\",\n error: \"aivex:bg-bg-danger-subtle aivex:text-text-danger\",\n },\n },\n defaultVariants: {\n size: \"sm\",\n variant: \"default\",\n },\n },\n);\n\n/** 태그 색 변형: default(중립)·error(위험). */\nexport type TagVariant = NonNullable<VariantProps<typeof tagVariants>[\"variant\"]>;\n\nexport interface TagProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof tagVariants> {\n /** 텍스트 앞 슬롯(아이콘·색 점 등). 지정하면 showIcon보다 우선한다 */\n startContent?: ReactNode;\n /**\n * startContent가 없을 때 기본 점선 원 아이콘을 표시\n * @default false\n */\n showIcon?: boolean;\n /**\n * 비활성 스타일. 삭제 버튼도 숨겨진다\n * @default false\n */\n disabled?: boolean;\n /** 지정하면 삭제(X) 버튼을 표시하고 클릭 시 호출된다(클릭 이벤트 전파는 막는다) */\n onRemove?: () => void;\n /**\n * 삭제 버튼 aria-label.\n * @default \"태그 삭제\"\n */\n removeAriaLabel?: string;\n /** 태그 텍스트. sm 160px·md 180px를 넘으면 말줄임된다 */\n children?: ReactNode;\n /** 루트 div ref */\n ref?: Ref<HTMLDivElement>;\n}\n\n/**\n * 값·속성을 작게 표시하는 칩. 선택적으로 삭제 버튼을 가진다.\n * 클릭해서 켜고 끄는 선택 칩이 아니다 — 선택 가능한 칩은 ToggleButton, 입력으로 태그를 추가·삭제하려면 Tagbox.\n * size는 `\"sm\"`(기본, 24px)·`\"md\"`(32px), variant는 `\"default\"`·`\"error\"`.\n *\n * @example\n * ```tsx\n * import { Tag } from \"@aivex/ui\";\n *\n * <Tag size=\"md\" onRemove={() => removeFilter(id)} removeAriaLabel=\"필터 삭제\">\n * 디자인\n * </Tag>\n * ```\n */\nfunction Tag({\n className,\n size = \"sm\",\n variant = \"default\",\n startContent,\n showIcon = false,\n disabled = false,\n onRemove,\n removeAriaLabel = \"태그 삭제\",\n children,\n ref,\n ...props\n}: TagProps) {\n return (\n <div\n ref={ref}\n className={cn(tagVariants({ size, variant }), disabled && \"aivex:opacity-disable\", className)}\n {...props}\n >\n {startContent ? (\n <span className=\"aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center\">\n {startContent}\n </span>\n ) : showIcon ? (\n <span className=\"aivex:shrink-0 aivex:flex aivex:items-center aivex:justify-center aivex:opacity-40\">\n <CircleDashedIcon size={16} />\n </span>\n ) : null}\n <span\n className={cn(\n \"aivex:px-[2px] aivex:truncate\",\n size === \"sm\"\n ? \"aivex:text-label-md aivex:max-w-[160px]\"\n : \"aivex:text-label-lg aivex:max-w-[180px]\",\n )}\n >\n {children}\n </span>\n {!disabled && onRemove && (\n <IconButton\n size=\"xs\"\n shape=\"rounded\"\n onClick={(e) => {\n e.stopPropagation();\n onRemove();\n }}\n className=\"aivex:shrink-0\"\n aria-label={removeAriaLabel}\n >\n <CloseIcon size={12} />\n </IconButton>\n )}\n </div>\n );\n}\n\nexport { Tag, tagVariants };\n"],"mappings":";;;;;;;AAOA,IAAM,IAAc,EAClB,iGACA;CACE,UAAU;EACR,MAAM;GACJ,IAAI;GACJ,IAAI;GACL;EACD,SAAS;GACP,SAAS;GACT,OAAO;GACR;EACF;CACD,iBAAiB;EACf,MAAM;EACN,SAAS;EACV;CACF,CACF;AA6CD,SAAS,EAAI,EACX,cACA,UAAO,MACP,aAAU,WACV,iBACA,cAAW,IACX,cAAW,IACX,aACA,qBAAkB,SAClB,aACA,QACA,GAAG,KACQ;AACX,QACE,kBAAC,OAAD;EACO;EACL,WAAW,EAAG,EAAY;GAAE;GAAM;GAAS,CAAC,EAAE,KAAY,yBAAyB,EAAU;EAC7F,GAAI;YAHN;GAKG,IACC,kBAAC,QAAD;IAAM,WAAU;cACb;IACI,CAAA,GACL,IACF,kBAAC,QAAD;IAAM,WAAU;cACd,kBAAC,GAAD,EAAkB,MAAM,IAAM,CAAA;IACzB,CAAA,GACL;GACJ,kBAAC,QAAD;IACE,WAAW,EACT,iCACA,MAAS,OACL,4CACA,0CACL;IAEA;IACI,CAAA;GACN,CAAC,KAAY,KACZ,kBAAC,GAAD;IACE,MAAK;IACL,OAAM;IACN,UAAU,MAAM;AAEd,KADA,EAAE,iBAAiB,EACnB,GAAU;;IAEZ,WAAU;IACV,cAAY;cAEZ,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA;IACZ,CAAA;GAEX"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { TagProps } from "./Tag";
|
|
2
|
-
export { Tag, tagVariants } from "./Tag";
|
|
1
|
+
export type { TagProps, TagVariant } from "./Tag.js";
|
|
2
|
+
export { Tag, tagVariants } from "./Tag.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../utils.cjs`),t=require(`../../utils/useControllableState.cjs`),n=require(`../InputBase/useInputState.cjs`),r=require(`../Field/FieldStateContext.cjs`),i=require(`../Tag/Tag.cjs`),a=require(`../InputBase/InputBase.cjs`);let o=require(`react`),s=require(`react/jsx-runtime`),c=require(`@base-ui/react/input`);function l({className:l,size:u=`sm`,error:d,disabled:f,readOnly:p,value:m,defaultValue:h=[],onValueChange:g,parsePaste:_,validate:v,renderTag:y,placeholder:b,id:x,ref:S,onBlur:C,onCompositionEnd:w,onCompositionStart:T,onFocus:E,onKeyDown:D,onPaste:O,...k}){let[A,j]=t.useControllableState({value:m,defaultValue:h,onChange:g}),[M,N]=(0,o.useState)(``),P=(0,o.useRef)(!1),F=n.useInputFocus({onFocus:E,onBlur:C}),I=r.useFieldState(),L=!!f||I.disabled,R=F.focused&&!p,z=v?A.some(e=>!v(e)):!1,B=n.resolveInputError(d,k[`aria-invalid`])||I.invalid||z,V=e=>{let t=e.trim();t&&(A.includes(t)||(j([...A,t]),N(``)))},H=e=>{j(A.filter((t,n)=>n!==e))},U=e=>{if(D?.(e),!e.defaultPrevented&&!p)if(e.key===`Enter`){if(P.current||e.nativeEvent.isComposing||e.nativeEvent.keyCode===229)return;e.preventDefault(),M&&V(M)}else e.key===`Backspace`&&!M&&A.length>0&&H(A.length-1)},W=e=>{if(O?.(e),e.defaultPrevented||p||!_)return;e.preventDefault();let t=_(e.clipboardData.getData(`text`)),n=[...new Set(t.map(e=>e.trim()))].filter(e=>e&&!A.includes(e));n.length>0&&j([...A,...n]),N(``)},G=A.map((e,t)=>{let n=()=>H(t),r=v?v(e)?`default`:`error`:B?`error`:`default`;return y?(0,s.jsx)(o.Fragment,{children:y(e,t,{remove:n,size:u,disabled:L,readOnly:p,variant:r})},`${e}-${t}`):(0,s.jsx)(i.Tag,{size:u===`md`?`md`:`sm`,variant:r,disabled:L,onRemove:p?void 0:n,removeAriaLabel:`${e} 삭제`,children:e},`${e}-${t}`)}),K=(0,s.jsx)(c.Input,{ref:S,id:x,value:M,disabled:f,readOnly:p,placeholder:A.length===0?b:void 0,onChange:e=>{p||N(e.target.value)},onKeyDown:U,onPaste:W,onCompositionStart:e=>{P.current=!0,T?.(e)},onCompositionEnd:e=>{P.current=!1,p||N(e.currentTarget.value),w?.(e)},onFocus:F.onFocus,onBlur:e=>{F.onBlur(e),!p&&!P.current&&M&&V(M)},className:e.cn(`aivex:bg-transparent aivex:outline-none aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:min-w-[80px] aivex:flex-1`,p&&`aivex:cursor-default`,u===`sm`?`aivex:text-body-md-regular aivex:h-6`:`aivex:text-body-lg-regular aivex:h-8`),...k});return(0,s.jsxs)(a.InputBase,{error:B,disabled:L,focused:R,size:u,layout:`wrap`,className:e.cn(l,p&&`aivex:cursor-default`),children:[G,K]})}exports.Tagbox=l;
|
|
2
|
+
//# sourceMappingURL=Tagbox.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tagbox.cjs","names":[],"sources":["../../../src/components/Tagbox/Tagbox.tsx"],"sourcesContent":["import { Input } from \"@base-ui/react/input\";\nimport {\n Fragment,\n type InputHTMLAttributes,\n type ReactNode,\n type Ref,\n useRef,\n useState,\n} from \"react\";\nimport { useFieldState } from \"@/components/Field/FieldStateContext\";\nimport { InputBase } from \"@/components/InputBase\";\nimport { resolveInputError, useInputFocus } from \"@/components/InputBase/useInputState\";\nimport { Tag, type TagVariant } from \"@/components/Tag\";\nimport { cn } from \"@/utils/cn\";\nimport { useControllableState } from \"@/utils/useControllableState\";\n\nexport interface TagboxProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, \"size\" | \"value\" | \"onChange\" | \"onPaste\"> {\n /**\n * 크기. 컨테이너 최소 높이 sm 32px·md 40px이며 태그 크기도 함께 바뀐다\n * @default \"sm\"\n */\n size?: \"sm\" | \"md\";\n /** 에러 상태(validate 미지정 시 모든 태그가 error 색). Field의 invalid가 주입하는 aria-invalid로도 켜진다 */\n error?: boolean;\n /** 태그 목록(제어). 지정하면 onValueChange로 직접 갱신해야 한다 */\n value?: string[];\n /**\n * 비제어 모드의 초기 태그 목록\n * @default []\n */\n defaultValue?: string[];\n /** 태그 목록이 바뀔 때(추가·삭제·붙여넣기) 호출된다. */\n onValueChange?: (tags: string[]) => void;\n /**\n * 붙여넣기 텍스트를 태그 배열로 파싱하는 함수.\n * 지정하면 붙여넣기를 가로채 빈 값·기존 태그와 중복된 값을 빼고 추가한다. 미지정 시 일반 텍스트로 붙여넣는다.\n * @example parsePaste={(text) => text.split(/[,\\n]/)}\n */\n parsePaste?: (text: string) => string[];\n /** 네이티브 paste 이벤트. preventDefault()하면 parsePaste 처리를 건너뛴다 */\n onPaste?: (e: React.ClipboardEvent<HTMLInputElement>) => void;\n /** 태그 유효성 검사. false 반환 시 인풋이 error 상태로 전환되고 해당 태그가 error 색으로 표시된다 */\n validate?: (tag: string) => boolean;\n /** 기본 Tag 대신 태그를 직접 렌더한다. options.remove를 삭제 버튼에 연결한다 */\n renderTag?: (\n tag: string,\n index: number,\n options: {\n remove: () => void;\n size: \"sm\" | \"md\";\n disabled?: boolean;\n /** true면 삭제할 수 없으므로 삭제 버튼을 그리지 않는다 */\n readOnly?: boolean;\n variant: TagVariant;\n },\n ) => ReactNode;\n /** 내부 텍스트 input ref */\n ref?: Ref<HTMLInputElement>;\n}\n\n/**\n * 텍스트를 입력해 문자열 태그 목록(`string[]`)을 만드는 태그 입력.\n * Enter 또는 blur 시 입력값을 태그로 추가하고(한글 조합 중 Enter는 무시), 빈 입력에서 Backspace는 마지막 태그를 지운다.\n * Enter·blur·붙여넣기 모두 앞뒤 공백을 자르고, 빈 값과 이미 있는 태그는 추가하지 않는다(중복이면 입력을 남겨 둔다).\n * 제어는 value+onValueChange(string[]), 비제어는 defaultValue. 네이티브 onChange는 없다.\n * 정해진 옵션 중 여러 개를 고르는 용도면 ToggleButton·FilterModal을 쓴다. 라벨은 Field 안에 넣으면 자동으로 연결된다.\n *\n * @example\n * ```tsx\n * import { Field, FieldLabel, Tagbox } from \"@aivex/ui\";\n *\n * <Field>\n * <FieldLabel>키워드</FieldLabel>\n * <Tagbox\n * value={keywords}\n * onValueChange={setKeywords}\n * parsePaste={(text) => text.split(\",\")}\n * placeholder=\"입력 후 Enter\"\n * />\n * </Field>\n * ```\n */\nfunction Tagbox({\n className,\n size = \"sm\",\n error,\n disabled,\n readOnly,\n value,\n defaultValue = [],\n onValueChange,\n parsePaste,\n validate,\n renderTag,\n placeholder,\n id,\n ref,\n onBlur,\n onCompositionEnd,\n onCompositionStart,\n onFocus,\n onKeyDown,\n onPaste,\n ...props\n}: TagboxProps) {\n const [currentTags, setTags] = useControllableState<string[]>({\n value,\n defaultValue,\n onChange: onValueChange,\n });\n\n const [inputValue, setInputValue] = useState(\"\");\n const isComposingRef = useRef(false);\n const focus = useInputFocus({ onFocus, onBlur });\n const field = useFieldState();\n // Field가 비활성이면 태그 삭제·입력도 함께 막는다.\n const isDisabled = Boolean(disabled) || field.disabled;\n // readOnly에서는 포커스 링을 그리지 않는다.\n const isFocused = focus.focused && !readOnly;\n\n // Field의 invalid는 Base UI가 input에 직접 전달한다. 테두리 박스와 태그 색은 여기서 맞춘다.\n const hasValidationError = validate ? currentTags.some((tag) => !validate(tag)) : false;\n const resolvedError =\n resolveInputError(error, props[\"aria-invalid\"]) || field.invalid || hasValidationError;\n\n const addTag = (tag: string) => {\n const trimmed = tag.trim();\n if (!trimmed) return;\n // 붙여넣기와 같은 규칙: 이미 있는 태그는 다시 넣지 않는다. 입력은 그대로 두어\n // 사용자가 추가되지 않았다는 걸 보고 고칠 수 있게 한다.\n if (currentTags.includes(trimmed)) return;\n setTags([...currentTags, trimmed]);\n setInputValue(\"\");\n };\n\n const removeTag = (index: number) => {\n const next = currentTags.filter((_, i) => i !== index);\n setTags(next);\n };\n\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n onKeyDown?.(e);\n if (e.defaultPrevented) return;\n if (readOnly) return;\n\n if (e.key === \"Enter\") {\n if (isComposingRef.current || e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229) {\n return;\n }\n e.preventDefault();\n if (inputValue) addTag(inputValue);\n } else if (e.key === \"Backspace\" && !inputValue && currentTags.length > 0) {\n removeTag(currentTags.length - 1);\n }\n };\n\n const handlePaste = (e: React.ClipboardEvent<HTMLInputElement>) => {\n onPaste?.(e);\n if (e.defaultPrevented || readOnly || !parsePaste) return;\n e.preventDefault();\n const parsed = parsePaste(e.clipboardData.getData(\"text\"));\n // 공백을 먼저 걷어내야 \" a\"와 \"a\"를 같은 태그로 본다.\n const newTags = [...new Set(parsed.map((t) => t.trim()))].filter(\n (t) => t && !currentTags.includes(t),\n );\n if (newTags.length > 0) {\n const next = [...currentTags, ...newTags];\n setTags(next);\n }\n setInputValue(\"\");\n };\n\n const tagNodes = currentTags.map((tag, i) => {\n const remove = () => removeTag(i);\n const tagVariant = validate\n ? validate(tag)\n ? \"default\"\n : \"error\"\n : resolvedError\n ? \"error\"\n : \"default\";\n\n return renderTag ? (\n <Fragment key={`${tag}-${i}`}>\n {renderTag(tag, i, { remove, size, disabled: isDisabled, readOnly, variant: tagVariant })}\n </Fragment>\n ) : (\n <Tag\n key={`${tag}-${i}`}\n size={size === \"md\" ? \"md\" : \"sm\"}\n variant={tagVariant}\n disabled={isDisabled}\n // readOnly는 입력만이 아니라 삭제도 막는다.\n onRemove={readOnly ? undefined : remove}\n removeAriaLabel={`${tag} 삭제`}\n >\n {tag}\n </Tag>\n );\n });\n\n const inputElement = (\n // Base UI Input — Field 안에서는 라벨·설명·에러·invalid·disabled가 자동으로 연결된다.\n <Input\n ref={ref as Ref<HTMLElement>}\n id={id}\n value={inputValue}\n disabled={disabled}\n readOnly={readOnly}\n placeholder={currentTags.length === 0 ? placeholder : undefined}\n onChange={(e) => {\n if (!readOnly) setInputValue(e.target.value);\n }}\n onKeyDown={handleKeyDown}\n onPaste={handlePaste}\n onCompositionStart={(e) => {\n isComposingRef.current = true;\n onCompositionStart?.(e);\n }}\n onCompositionEnd={(e) => {\n isComposingRef.current = false;\n if (!readOnly) setInputValue(e.currentTarget.value);\n onCompositionEnd?.(e);\n }}\n onFocus={focus.onFocus}\n onBlur={(e) => {\n focus.onBlur(e);\n if (!readOnly && !isComposingRef.current && inputValue) addTag(inputValue);\n }}\n className={cn(\n \"aivex:bg-transparent aivex:outline-none aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:min-w-[80px] aivex:flex-1\",\n readOnly && \"aivex:cursor-default\",\n size === \"sm\"\n ? \"aivex:text-body-md-regular aivex:h-6\"\n : \"aivex:text-body-lg-regular aivex:h-8\",\n )}\n {...props}\n />\n );\n\n return (\n <InputBase\n error={resolvedError}\n disabled={isDisabled}\n focused={isFocused}\n size={size}\n layout=\"wrap\"\n className={cn(className, readOnly && \"aivex:cursor-default\")}\n >\n {tagNodes}\n {inputElement}\n </InputBase>\n );\n}\n\nexport { Tagbox };\n"],"mappings":"sYAmFA,SAAS,EAAO,CACd,YACA,OAAO,KACP,QACA,WACA,WACA,QACA,eAAe,EAAE,CACjB,gBACA,aACA,WACA,YACA,cACA,KACA,MACA,SACA,mBACA,qBACA,UACA,YACA,UACA,GAAG,GACW,CACd,GAAM,CAAC,EAAa,GAAW,EAAA,qBAA+B,CAC5D,QACA,eACA,SAAU,EACX,CAAC,CAEI,CAAC,EAAY,IAAA,EAAA,EAAA,UAA0B,GAAG,CAC1C,GAAA,EAAA,EAAA,QAAwB,GAAM,CAC9B,EAAQ,EAAA,cAAc,CAAE,UAAS,SAAQ,CAAC,CAC1C,EAAQ,EAAA,eAAe,CAEvB,EAAa,EAAQ,GAAa,EAAM,SAExC,EAAY,EAAM,SAAW,CAAC,EAG9B,EAAqB,EAAW,EAAY,KAAM,GAAQ,CAAC,EAAS,EAAI,CAAC,CAAG,GAC5E,EACJ,EAAA,kBAAkB,EAAO,EAAM,gBAAgB,EAAI,EAAM,SAAW,EAEhE,EAAU,GAAgB,CAC9B,IAAM,EAAU,EAAI,MAAM,CACrB,IAGD,EAAY,SAAS,EAAQ,GACjC,EAAQ,CAAC,GAAG,EAAa,EAAQ,CAAC,CAClC,EAAc,GAAG,IAGb,EAAa,GAAkB,CAEnC,EADa,EAAY,QAAQ,EAAG,IAAM,IAAM,EAAM,CACzC,EAGT,EAAiB,GAA6C,CAClE,OAAY,EAAE,CACV,GAAE,kBACF,GAEJ,GAAI,EAAE,MAAQ,QAAS,CACrB,GAAI,EAAe,SAAW,EAAE,YAAY,aAAe,EAAE,YAAY,UAAY,IACnF,OAEF,EAAE,gBAAgB,CACd,GAAY,EAAO,EAAW,MACzB,EAAE,MAAQ,aAAe,CAAC,GAAc,EAAY,OAAS,GACtE,EAAU,EAAY,OAAS,EAAE,EAI/B,EAAe,GAA8C,CAEjE,GADA,IAAU,EAAE,CACR,EAAE,kBAAoB,GAAY,CAAC,EAAY,OACnD,EAAE,gBAAgB,CAClB,IAAM,EAAS,EAAW,EAAE,cAAc,QAAQ,OAAO,CAAC,CAEpD,EAAU,CAAC,GAAG,IAAI,IAAI,EAAO,IAAK,GAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,OACvD,GAAM,GAAK,CAAC,EAAY,SAAS,EAAE,CACrC,CACG,EAAQ,OAAS,GAEnB,EADa,CAAC,GAAG,EAAa,GAAG,EAAQ,CAC5B,CAEf,EAAc,GAAG,EAGb,EAAW,EAAY,KAAK,EAAK,IAAM,CAC3C,IAAM,MAAe,EAAU,EAAE,CAC3B,EAAa,EACf,EAAS,EAAI,CACX,UACA,QACF,EACE,QACA,UAEN,OAAO,GACL,EAAA,EAAA,KAAC,EAAA,SAAD,CAAA,SACG,EAAU,EAAK,EAAG,CAAE,SAAQ,OAAM,SAAU,EAAY,WAAU,QAAS,EAAY,CAAC,CAChF,CAFI,GAAG,EAAI,GAAG,IAEd,EAEX,EAAA,EAAA,KAAC,EAAA,IAAD,CAEE,KAAM,IAAS,KAAO,KAAO,KAC7B,QAAS,EACT,SAAU,EAEV,SAAU,EAAW,IAAA,GAAY,EACjC,gBAAiB,GAAG,EAAI,cAEvB,EACG,CATC,GAAG,EAAI,GAAG,IASX,EAER,CAEI,GAEJ,EAAA,EAAA,KAAC,EAAA,MAAD,CACO,MACD,KACJ,MAAO,EACG,WACA,WACV,YAAa,EAAY,SAAW,EAAI,EAAc,IAAA,GACtD,SAAW,GAAM,CACV,GAAU,EAAc,EAAE,OAAO,MAAM,EAE9C,UAAW,EACX,QAAS,EACT,mBAAqB,GAAM,CACzB,EAAe,QAAU,GACzB,IAAqB,EAAE,EAEzB,iBAAmB,GAAM,CACvB,EAAe,QAAU,GACpB,GAAU,EAAc,EAAE,cAAc,MAAM,CACnD,IAAmB,EAAE,EAEvB,QAAS,EAAM,QACf,OAAS,GAAM,CACb,EAAM,OAAO,EAAE,CACX,CAAC,GAAY,CAAC,EAAe,SAAW,GAAY,EAAO,EAAW,EAE5E,UAAW,EAAA,GACT,uIACA,GAAY,uBACZ,IAAS,KACL,uCACA,uCACL,CACD,GAAI,EACJ,CAAA,CAGJ,OACE,EAAA,EAAA,MAAC,EAAA,UAAD,CACE,MAAO,EACP,SAAU,EACV,QAAS,EACH,OACN,OAAO,OACP,UAAW,EAAA,GAAG,EAAW,GAAY,uBAAuB,UAN9D,CAQG,EACA,EACS"}
|