@smart-coder-labs/apple-design-system 1.0.0 → 1.0.1
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/dist/index.d.ts +0 -240
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -134
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -1
- package/dist/components/AIThinkingIndicator.d.ts +0 -10
- package/dist/components/AIThinkingIndicator.d.ts.map +0 -1
- package/dist/components/AIThinkingIndicator.js +0 -60
- package/dist/components/AIThinkingIndicator.js.map +0 -1
- package/dist/components/Accordion.d.ts +0 -27
- package/dist/components/Accordion.d.ts.map +0 -1
- package/dist/components/Accordion.js +0 -123
- package/dist/components/Accordion.js.map +0 -1
- package/dist/components/ActivityFeed.d.ts +0 -26
- package/dist/components/ActivityFeed.d.ts.map +0 -1
- package/dist/components/ActivityFeed.js +0 -55
- package/dist/components/ActivityFeed.js.map +0 -1
- package/dist/components/ActivityMonitor.d.ts +0 -38
- package/dist/components/ActivityMonitor.d.ts.map +0 -1
- package/dist/components/ActivityMonitor.js +0 -164
- package/dist/components/ActivityMonitor.js.map +0 -1
- package/dist/components/AddressSelector.d.ts +0 -23
- package/dist/components/AddressSelector.d.ts.map +0 -1
- package/dist/components/AddressSelector.js +0 -145
- package/dist/components/AddressSelector.js.map +0 -1
- package/dist/components/AgendaView.d.ts +0 -11
- package/dist/components/AgendaView.d.ts.map +0 -1
- package/dist/components/AgendaView.js +0 -47
- package/dist/components/AgendaView.js.map +0 -1
- package/dist/components/Alert.d.ts +0 -9
- package/dist/components/Alert.d.ts.map +0 -1
- package/dist/components/Alert.js +0 -38
- package/dist/components/Alert.js.map +0 -1
- package/dist/components/AudioPlayer.d.ts +0 -11
- package/dist/components/AudioPlayer.d.ts.map +0 -1
- package/dist/components/AudioPlayer.js +0 -116
- package/dist/components/AudioPlayer.js.map +0 -1
- package/dist/components/Avatar.d.ts +0 -17
- package/dist/components/Avatar.d.ts.map +0 -1
- package/dist/components/Avatar.js +0 -74
- package/dist/components/Avatar.js.map +0 -1
- package/dist/components/AvatarGroup.d.ts +0 -15
- package/dist/components/AvatarGroup.d.ts.map +0 -1
- package/dist/components/AvatarGroup.js +0 -28
- package/dist/components/AvatarGroup.js.map +0 -1
- package/dist/components/Badge.d.ts +0 -21
- package/dist/components/Badge.d.ts.map +0 -1
- package/dist/components/Badge.js +0 -103
- package/dist/components/Badge.js.map +0 -1
- package/dist/components/BarcodeGenerator.d.ts +0 -18
- package/dist/components/BarcodeGenerator.d.ts.map +0 -1
- package/dist/components/BarcodeGenerator.js +0 -64
- package/dist/components/BarcodeGenerator.js.map +0 -1
- package/dist/components/Blockquote.d.ts +0 -9
- package/dist/components/Blockquote.d.ts.map +0 -1
- package/dist/components/Blockquote.js +0 -8
- package/dist/components/Blockquote.js.map +0 -1
- package/dist/components/BottomNavigation.d.ts +0 -21
- package/dist/components/BottomNavigation.d.ts.map +0 -1
- package/dist/components/BottomNavigation.js +0 -77
- package/dist/components/BottomNavigation.js.map +0 -1
- package/dist/components/Breadcrumb.d.ts +0 -20
- package/dist/components/Breadcrumb.d.ts.map +0 -1
- package/dist/components/Breadcrumb.js +0 -24
- package/dist/components/Breadcrumb.js.map +0 -1
- package/dist/components/BreadcrumbTabsHybrid.d.ts +0 -25
- package/dist/components/BreadcrumbTabsHybrid.d.ts.map +0 -1
- package/dist/components/BreadcrumbTabsHybrid.js +0 -58
- package/dist/components/BreadcrumbTabsHybrid.js.map +0 -1
- package/dist/components/Button.d.ts +0 -14
- package/dist/components/Button.d.ts.map +0 -1
- package/dist/components/Button.js +0 -91
- package/dist/components/Button.js.map +0 -1
- package/dist/components/ButtonWithDropdown.d.ts +0 -19
- package/dist/components/ButtonWithDropdown.d.ts.map +0 -1
- package/dist/components/ButtonWithDropdown.js +0 -33
- package/dist/components/ButtonWithDropdown.js.map +0 -1
- package/dist/components/Calendar.d.ts +0 -28
- package/dist/components/Calendar.d.ts.map +0 -1
- package/dist/components/Calendar.js +0 -365
- package/dist/components/Calendar.js.map +0 -1
- package/dist/components/Callout.d.ts +0 -11
- package/dist/components/Callout.d.ts.map +0 -1
- package/dist/components/Callout.js +0 -35
- package/dist/components/Callout.js.map +0 -1
- package/dist/components/Caption.d.ts +0 -6
- package/dist/components/Caption.d.ts.map +0 -1
- package/dist/components/Caption.js +0 -7
- package/dist/components/Caption.js.map +0 -1
- package/dist/components/Card.d.ts +0 -30
- package/dist/components/Card.d.ts.map +0 -1
- package/dist/components/Card.js +0 -72
- package/dist/components/Card.js.map +0 -1
- package/dist/components/CartPreview.d.ts +0 -28
- package/dist/components/CartPreview.d.ts.map +0 -1
- package/dist/components/CartPreview.js +0 -80
- package/dist/components/CartPreview.js.map +0 -1
- package/dist/components/Chart.d.ts +0 -19
- package/dist/components/Chart.d.ts.map +0 -1
- package/dist/components/Chart.js +0 -46
- package/dist/components/Chart.js.map +0 -1
- package/dist/components/ChatBubble.d.ts +0 -19
- package/dist/components/ChatBubble.d.ts.map +0 -1
- package/dist/components/ChatBubble.js +0 -27
- package/dist/components/ChatBubble.js.map +0 -1
- package/dist/components/ChatInput.d.ts +0 -22
- package/dist/components/ChatInput.d.ts.map +0 -1
- package/dist/components/ChatInput.js +0 -115
- package/dist/components/ChatInput.js.map +0 -1
- package/dist/components/Checkbox.d.ts +0 -10
- package/dist/components/Checkbox.d.ts.map +0 -1
- package/dist/components/Checkbox.js +0 -35
- package/dist/components/Checkbox.js.map +0 -1
- package/dist/components/Chip.d.ts +0 -14
- package/dist/components/Chip.d.ts.map +0 -1
- package/dist/components/Chip.js +0 -43
- package/dist/components/Chip.js.map +0 -1
- package/dist/components/CodeBlock.d.ts +0 -9
- package/dist/components/CodeBlock.d.ts.map +0 -1
- package/dist/components/CodeBlock.js +0 -16
- package/dist/components/CodeBlock.js.map +0 -1
- package/dist/components/Collapsible.d.ts +0 -19
- package/dist/components/Collapsible.d.ts.map +0 -1
- package/dist/components/Collapsible.js +0 -42
- package/dist/components/Collapsible.js.map +0 -1
- package/dist/components/Combobox.d.ts +0 -17
- package/dist/components/Combobox.d.ts.map +0 -1
- package/dist/components/Combobox.js +0 -114
- package/dist/components/Combobox.js.map +0 -1
- package/dist/components/CommandMenu.d.ts +0 -36
- package/dist/components/CommandMenu.d.ts.map +0 -1
- package/dist/components/CommandMenu.js +0 -102
- package/dist/components/CommandMenu.js.map +0 -1
- package/dist/components/CommentThread.d.ts +0 -28
- package/dist/components/CommentThread.d.ts.map +0 -1
- package/dist/components/CommentThread.js +0 -66
- package/dist/components/CommentThread.js.map +0 -1
- package/dist/components/ConfirmDialog.d.ts +0 -27
- package/dist/components/ConfirmDialog.d.ts.map +0 -1
- package/dist/components/ConfirmDialog.js +0 -62
- package/dist/components/ConfirmDialog.js.map +0 -1
- package/dist/components/ContextMenu.d.ts +0 -85
- package/dist/components/ContextMenu.d.ts.map +0 -1
- package/dist/components/ContextMenu.js +0 -191
- package/dist/components/ContextMenu.js.map +0 -1
- package/dist/components/ControlCenterToggles.d.ts +0 -18
- package/dist/components/ControlCenterToggles.d.ts.map +0 -1
- package/dist/components/ControlCenterToggles.js +0 -14
- package/dist/components/ControlCenterToggles.js.map +0 -1
- package/dist/components/Counters.d.ts +0 -16
- package/dist/components/Counters.d.ts.map +0 -1
- package/dist/components/Counters.js +0 -9
- package/dist/components/Counters.js.map +0 -1
- package/dist/components/CountersListWithChart.d.ts +0 -15
- package/dist/components/CountersListWithChart.d.ts.map +0 -1
- package/dist/components/CountersListWithChart.js +0 -22
- package/dist/components/CountersListWithChart.js.map +0 -1
- package/dist/components/DataGrid.d.ts +0 -38
- package/dist/components/DataGrid.d.ts.map +0 -1
- package/dist/components/DataGrid.js +0 -271
- package/dist/components/DataGrid.js.map +0 -1
- package/dist/components/DatePicker.d.ts +0 -17
- package/dist/components/DatePicker.d.ts.map +0 -1
- package/dist/components/DatePicker.js +0 -248
- package/dist/components/DatePicker.js.map +0 -1
- package/dist/components/DateRangePicker.d.ts +0 -21
- package/dist/components/DateRangePicker.d.ts.map +0 -1
- package/dist/components/DateRangePicker.js +0 -213
- package/dist/components/DateRangePicker.js.map +0 -1
- package/dist/components/DefinitionList.d.ts +0 -21
- package/dist/components/DefinitionList.d.ts.map +0 -1
- package/dist/components/DefinitionList.js +0 -44
- package/dist/components/DefinitionList.js.map +0 -1
- package/dist/components/DescriptionBlock.d.ts +0 -36
- package/dist/components/DescriptionBlock.d.ts.map +0 -1
- package/dist/components/DescriptionBlock.js +0 -27
- package/dist/components/DescriptionBlock.js.map +0 -1
- package/dist/components/DeviceList.d.ts +0 -24
- package/dist/components/DeviceList.d.ts.map +0 -1
- package/dist/components/DeviceList.js +0 -46
- package/dist/components/DeviceList.js.map +0 -1
- package/dist/components/DiffViewer.d.ts +0 -13
- package/dist/components/DiffViewer.d.ts.map +0 -1
- package/dist/components/DiffViewer.js +0 -93
- package/dist/components/DiffViewer.js.map +0 -1
- package/dist/components/Divider.d.ts +0 -28
- package/dist/components/Divider.d.ts.map +0 -1
- package/dist/components/Divider.js +0 -16
- package/dist/components/Divider.js.map +0 -1
- package/dist/components/DockBar.d.ts +0 -29
- package/dist/components/DockBar.d.ts.map +0 -1
- package/dist/components/DockBar.js +0 -64
- package/dist/components/DockBar.js.map +0 -1
- package/dist/components/EmptyState.d.ts +0 -25
- package/dist/components/EmptyState.d.ts.map +0 -1
- package/dist/components/EmptyState.js +0 -20
- package/dist/components/EmptyState.js.map +0 -1
- package/dist/components/ErrorBoundary.d.ts +0 -24
- package/dist/components/ErrorBoundary.d.ts.map +0 -1
- package/dist/components/ErrorBoundary.js +0 -55
- package/dist/components/ErrorBoundary.js.map +0 -1
- package/dist/components/FAB.d.ts +0 -15
- package/dist/components/FAB.d.ts.map +0 -1
- package/dist/components/FAB.js +0 -46
- package/dist/components/FAB.js.map +0 -1
- package/dist/components/FABGroup.d.ts +0 -15
- package/dist/components/FABGroup.d.ts.map +0 -1
- package/dist/components/FABGroup.js +0 -47
- package/dist/components/FABGroup.js.map +0 -1
- package/dist/components/FileIntelligencePreview.d.ts +0 -25
- package/dist/components/FileIntelligencePreview.d.ts.map +0 -1
- package/dist/components/FileIntelligencePreview.js +0 -66
- package/dist/components/FileIntelligencePreview.js.map +0 -1
- package/dist/components/FileUpload.d.ts +0 -13
- package/dist/components/FileUpload.d.ts.map +0 -1
- package/dist/components/FileUpload.js +0 -107
- package/dist/components/FileUpload.js.map +0 -1
- package/dist/components/FilterBar.d.ts +0 -35
- package/dist/components/FilterBar.d.ts.map +0 -1
- package/dist/components/FilterBar.js +0 -79
- package/dist/components/FilterBar.js.map +0 -1
- package/dist/components/FloatingToolbar.d.ts +0 -24
- package/dist/components/FloatingToolbar.d.ts.map +0 -1
- package/dist/components/FloatingToolbar.js +0 -180
- package/dist/components/FloatingToolbar.js.map +0 -1
- package/dist/components/Footer.d.ts +0 -32
- package/dist/components/Footer.d.ts.map +0 -1
- package/dist/components/Footer.js +0 -31
- package/dist/components/Footer.js.map +0 -1
- package/dist/components/Gallery.d.ts +0 -11
- package/dist/components/Gallery.d.ts.map +0 -1
- package/dist/components/Gallery.js +0 -32
- package/dist/components/Gallery.js.map +0 -1
- package/dist/components/GestureCard.d.ts +0 -12
- package/dist/components/GestureCard.d.ts.map +0 -1
- package/dist/components/GestureCard.js +0 -58
- package/dist/components/GestureCard.js.map +0 -1
- package/dist/components/GridSystem.d.ts +0 -72
- package/dist/components/GridSystem.d.ts.map +0 -1
- package/dist/components/GridSystem.js +0 -65
- package/dist/components/GridSystem.js.map +0 -1
- package/dist/components/HamburgerMenuIcon.d.ts +0 -24
- package/dist/components/HamburgerMenuIcon.d.ts.map +0 -1
- package/dist/components/HamburgerMenuIcon.js +0 -44
- package/dist/components/HamburgerMenuIcon.js.map +0 -1
- package/dist/components/HapticButton.d.ts +0 -23
- package/dist/components/HapticButton.d.ts.map +0 -1
- package/dist/components/HapticButton.js +0 -104
- package/dist/components/HapticButton.js.map +0 -1
- package/dist/components/Heading.d.ts +0 -6
- package/dist/components/Heading.d.ts.map +0 -1
- package/dist/components/Heading.js +0 -7
- package/dist/components/Heading.js.map +0 -1
- package/dist/components/IconButton.d.ts +0 -14
- package/dist/components/IconButton.d.ts.map +0 -1
- package/dist/components/IconButton.js +0 -39
- package/dist/components/IconButton.js.map +0 -1
- package/dist/components/ImageCarousel.d.ts +0 -18
- package/dist/components/ImageCarousel.d.ts.map +0 -1
- package/dist/components/ImageCarousel.js +0 -74
- package/dist/components/ImageCarousel.js.map +0 -1
- package/dist/components/ImageCropper.d.ts +0 -10
- package/dist/components/ImageCropper.d.ts.map +0 -1
- package/dist/components/ImageCropper.js +0 -138
- package/dist/components/ImageCropper.js.map +0 -1
- package/dist/components/Input.d.ts +0 -18
- package/dist/components/Input.d.ts.map +0 -1
- package/dist/components/Input.js +0 -117
- package/dist/components/Input.js.map +0 -1
- package/dist/components/InspectorPanel.d.ts +0 -18
- package/dist/components/InspectorPanel.d.ts.map +0 -1
- package/dist/components/InspectorPanel.js +0 -33
- package/dist/components/InspectorPanel.js.map +0 -1
- package/dist/components/InvoicePreview.d.ts +0 -41
- package/dist/components/InvoicePreview.d.ts.map +0 -1
- package/dist/components/InvoicePreview.js +0 -106
- package/dist/components/InvoicePreview.js.map +0 -1
- package/dist/components/JsonViewer.d.ts +0 -17
- package/dist/components/JsonViewer.d.ts.map +0 -1
- package/dist/components/JsonViewer.js +0 -58
- package/dist/components/JsonViewer.js.map +0 -1
- package/dist/components/KPIBlock.d.ts +0 -23
- package/dist/components/KPIBlock.d.ts.map +0 -1
- package/dist/components/KPIBlock.js +0 -82
- package/dist/components/KPIBlock.js.map +0 -1
- package/dist/components/KanbanBoard.d.ts +0 -34
- package/dist/components/KanbanBoard.d.ts.map +0 -1
- package/dist/components/KanbanBoard.js +0 -296
- package/dist/components/KanbanBoard.js.map +0 -1
- package/dist/components/KeyValueInfo.d.ts +0 -28
- package/dist/components/KeyValueInfo.d.ts.map +0 -1
- package/dist/components/KeyValueInfo.js +0 -80
- package/dist/components/KeyValueInfo.js.map +0 -1
- package/dist/components/Label.d.ts +0 -8
- package/dist/components/Label.d.ts.map +0 -1
- package/dist/components/Label.js +0 -9
- package/dist/components/Label.js.map +0 -1
- package/dist/components/Layout.d.ts +0 -16
- package/dist/components/Layout.d.ts.map +0 -1
- package/dist/components/Layout.js +0 -26
- package/dist/components/Layout.js.map +0 -1
- package/dist/components/Lightbox.d.ts +0 -18
- package/dist/components/Lightbox.d.ts.map +0 -1
- package/dist/components/Lightbox.js +0 -60
- package/dist/components/Lightbox.js.map +0 -1
- package/dist/components/LoadingOverlay.d.ts +0 -32
- package/dist/components/LoadingOverlay.d.ts.map +0 -1
- package/dist/components/LoadingOverlay.js +0 -10
- package/dist/components/LoadingOverlay.js.map +0 -1
- package/dist/components/LoginForm.d.ts +0 -14
- package/dist/components/LoginForm.d.ts.map +0 -1
- package/dist/components/LoginForm.js +0 -36
- package/dist/components/LoginForm.js.map +0 -1
- package/dist/components/MaintenanceMode.d.ts +0 -41
- package/dist/components/MaintenanceMode.d.ts.map +0 -1
- package/dist/components/MaintenanceMode.js +0 -21
- package/dist/components/MaintenanceMode.js.map +0 -1
- package/dist/components/MarkdownEditor.d.ts +0 -14
- package/dist/components/MarkdownEditor.d.ts.map +0 -1
- package/dist/components/MarkdownEditor.js +0 -55
- package/dist/components/MarkdownEditor.js.map +0 -1
- package/dist/components/MasonryLayout.d.ts +0 -31
- package/dist/components/MasonryLayout.d.ts.map +0 -1
- package/dist/components/MasonryLayout.js +0 -17
- package/dist/components/MasonryLayout.js.map +0 -1
- package/dist/components/MenuBar.d.ts +0 -34
- package/dist/components/MenuBar.d.ts.map +0 -1
- package/dist/components/MenuBar.js +0 -66
- package/dist/components/MenuBar.js.map +0 -1
- package/dist/components/MessageReactions.d.ts +0 -22
- package/dist/components/MessageReactions.d.ts.map +0 -1
- package/dist/components/MessageReactions.js +0 -37
- package/dist/components/MessageReactions.js.map +0 -1
- package/dist/components/Modal.d.ts +0 -37
- package/dist/components/Modal.d.ts.map +0 -1
- package/dist/components/Modal.js +0 -93
- package/dist/components/Modal.js.map +0 -1
- package/dist/components/ModalStackManager.d.ts +0 -34
- package/dist/components/ModalStackManager.d.ts.map +0 -1
- package/dist/components/ModalStackManager.js +0 -52
- package/dist/components/ModalStackManager.js.map +0 -1
- package/dist/components/MultiFileUpload.d.ts +0 -15
- package/dist/components/MultiFileUpload.d.ts.map +0 -1
- package/dist/components/MultiFileUpload.js +0 -138
- package/dist/components/MultiFileUpload.js.map +0 -1
- package/dist/components/NavBar.d.ts +0 -30
- package/dist/components/NavBar.d.ts.map +0 -1
- package/dist/components/NavBar.js +0 -80
- package/dist/components/NavBar.js.map +0 -1
- package/dist/components/NavigationDrawer.d.ts +0 -48
- package/dist/components/NavigationDrawer.d.ts.map +0 -1
- package/dist/components/NavigationDrawer.js +0 -95
- package/dist/components/NavigationDrawer.js.map +0 -1
- package/dist/components/NotificationCenterPanel.d.ts +0 -25
- package/dist/components/NotificationCenterPanel.d.ts.map +0 -1
- package/dist/components/NotificationCenterPanel.js +0 -50
- package/dist/components/NotificationCenterPanel.js.map +0 -1
- package/dist/components/OTPInput.d.ts +0 -15
- package/dist/components/OTPInput.d.ts.map +0 -1
- package/dist/components/OTPInput.js +0 -144
- package/dist/components/OTPInput.js.map +0 -1
- package/dist/components/OfflineState.d.ts +0 -36
- package/dist/components/OfflineState.d.ts.map +0 -1
- package/dist/components/OfflineState.js +0 -21
- package/dist/components/OfflineState.js.map +0 -1
- package/dist/components/OrderSummary.d.ts +0 -19
- package/dist/components/OrderSummary.d.ts.map +0 -1
- package/dist/components/OrderSummary.js +0 -8
- package/dist/components/OrderSummary.js.map +0 -1
- package/dist/components/Pagination.d.ts +0 -28
- package/dist/components/Pagination.d.ts.map +0 -1
- package/dist/components/Pagination.js +0 -119
- package/dist/components/Pagination.js.map +0 -1
- package/dist/components/Panel.d.ts +0 -14
- package/dist/components/Panel.d.ts.map +0 -1
- package/dist/components/Panel.js +0 -27
- package/dist/components/Panel.js.map +0 -1
- package/dist/components/Paragraph.d.ts +0 -6
- package/dist/components/Paragraph.d.ts.map +0 -1
- package/dist/components/Paragraph.js +0 -7
- package/dist/components/Paragraph.js.map +0 -1
- package/dist/components/PasswordInput.d.ts +0 -16
- package/dist/components/PasswordInput.d.ts.map +0 -1
- package/dist/components/PasswordInput.js +0 -66
- package/dist/components/PasswordInput.js.map +0 -1
- package/dist/components/PaymentMethodSelector.d.ts +0 -22
- package/dist/components/PaymentMethodSelector.d.ts.map +0 -1
- package/dist/components/PaymentMethodSelector.js +0 -24
- package/dist/components/PaymentMethodSelector.js.map +0 -1
- package/dist/components/PermissionsMatrix.d.ts +0 -23
- package/dist/components/PermissionsMatrix.d.ts.map +0 -1
- package/dist/components/PermissionsMatrix.js +0 -52
- package/dist/components/PermissionsMatrix.js.map +0 -1
- package/dist/components/Popover.d.ts +0 -19
- package/dist/components/Popover.d.ts.map +0 -1
- package/dist/components/Popover.js +0 -159
- package/dist/components/Popover.js.map +0 -1
- package/dist/components/PriceDisplay.d.ts +0 -18
- package/dist/components/PriceDisplay.d.ts.map +0 -1
- package/dist/components/PriceDisplay.js +0 -37
- package/dist/components/PriceDisplay.js.map +0 -1
- package/dist/components/ProductCard.d.ts +0 -30
- package/dist/components/ProductCard.d.ts.map +0 -1
- package/dist/components/ProductCard.js +0 -73
- package/dist/components/ProductCard.js.map +0 -1
- package/dist/components/Progress.d.ts +0 -9
- package/dist/components/Progress.d.ts.map +0 -1
- package/dist/components/Progress.js +0 -13
- package/dist/components/Progress.js.map +0 -1
- package/dist/components/PromptSuggestionChips.d.ts +0 -15
- package/dist/components/PromptSuggestionChips.d.ts.map +0 -1
- package/dist/components/PromptSuggestionChips.js +0 -17
- package/dist/components/PromptSuggestionChips.js.map +0 -1
- package/dist/components/PropertyList.d.ts +0 -29
- package/dist/components/PropertyList.d.ts.map +0 -1
- package/dist/components/PropertyList.js +0 -90
- package/dist/components/PropertyList.js.map +0 -1
- package/dist/components/QRCodeGenerator.d.ts +0 -17
- package/dist/components/QRCodeGenerator.d.ts.map +0 -1
- package/dist/components/QRCodeGenerator.js +0 -56
- package/dist/components/QRCodeGenerator.js.map +0 -1
- package/dist/components/QuantitySelector.d.ts +0 -16
- package/dist/components/QuantitySelector.d.ts.map +0 -1
- package/dist/components/QuantitySelector.js +0 -55
- package/dist/components/QuantitySelector.js.map +0 -1
- package/dist/components/QueryBuilder.d.ts +0 -30
- package/dist/components/QueryBuilder.d.ts.map +0 -1
- package/dist/components/QueryBuilder.js +0 -227
- package/dist/components/QueryBuilder.js.map +0 -1
- package/dist/components/RadioGroup.d.ts +0 -16
- package/dist/components/RadioGroup.d.ts.map +0 -1
- package/dist/components/RadioGroup.js +0 -36
- package/dist/components/RadioGroup.js.map +0 -1
- package/dist/components/RangeSlider.d.ts +0 -18
- package/dist/components/RangeSlider.d.ts.map +0 -1
- package/dist/components/RangeSlider.js +0 -121
- package/dist/components/RangeSlider.js.map +0 -1
- package/dist/components/RatingInput.d.ts +0 -15
- package/dist/components/RatingInput.d.ts.map +0 -1
- package/dist/components/RatingInput.js +0 -44
- package/dist/components/RatingInput.js.map +0 -1
- package/dist/components/RecoveryCodeDisplay.d.ts +0 -12
- package/dist/components/RecoveryCodeDisplay.d.ts.map +0 -1
- package/dist/components/RecoveryCodeDisplay.js +0 -48
- package/dist/components/RecoveryCodeDisplay.js.map +0 -1
- package/dist/components/ResizablePanel.d.ts +0 -18
- package/dist/components/ResizablePanel.d.ts.map +0 -1
- package/dist/components/ResizablePanel.js +0 -64
- package/dist/components/ResizablePanel.js.map +0 -1
- package/dist/components/Reviews.d.ts +0 -26
- package/dist/components/Reviews.d.ts.map +0 -1
- package/dist/components/Reviews.js +0 -30
- package/dist/components/Reviews.js.map +0 -1
- package/dist/components/RichTextEditor.d.ts +0 -14
- package/dist/components/RichTextEditor.d.ts.map +0 -1
- package/dist/components/RichTextEditor.js +0 -38
- package/dist/components/RichTextEditor.js.map +0 -1
- package/dist/components/RotarySelector.d.ts +0 -20
- package/dist/components/RotarySelector.d.ts.map +0 -1
- package/dist/components/RotarySelector.js +0 -99
- package/dist/components/RotarySelector.js.map +0 -1
- package/dist/components/SchedulerTimeline.d.ts +0 -31
- package/dist/components/SchedulerTimeline.d.ts.map +0 -1
- package/dist/components/SchedulerTimeline.js +0 -210
- package/dist/components/SchedulerTimeline.js.map +0 -1
- package/dist/components/ScrollArea.d.ts +0 -11
- package/dist/components/ScrollArea.d.ts.map +0 -1
- package/dist/components/ScrollArea.js +0 -132
- package/dist/components/ScrollArea.js.map +0 -1
- package/dist/components/SearchInput.d.ts +0 -13
- package/dist/components/SearchInput.d.ts.map +0 -1
- package/dist/components/SearchInput.js +0 -34
- package/dist/components/SearchInput.js.map +0 -1
- package/dist/components/SectionHeader.d.ts +0 -27
- package/dist/components/SectionHeader.d.ts.map +0 -1
- package/dist/components/SectionHeader.js +0 -18
- package/dist/components/SectionHeader.js.map +0 -1
- package/dist/components/SecurityActivityLog.d.ts +0 -20
- package/dist/components/SecurityActivityLog.d.ts.map +0 -1
- package/dist/components/SecurityActivityLog.js +0 -56
- package/dist/components/SecurityActivityLog.js.map +0 -1
- package/dist/components/SegmentedInput.d.ts +0 -15
- package/dist/components/SegmentedInput.d.ts.map +0 -1
- package/dist/components/SegmentedInput.js +0 -134
- package/dist/components/SegmentedInput.js.map +0 -1
- package/dist/components/Select.d.ts +0 -57
- package/dist/components/Select.d.ts.map +0 -1
- package/dist/components/Select.js +0 -275
- package/dist/components/Select.js.map +0 -1
- package/dist/components/Sheet.d.ts +0 -35
- package/dist/components/Sheet.d.ts.map +0 -1
- package/dist/components/Sheet.js +0 -117
- package/dist/components/Sheet.js.map +0 -1
- package/dist/components/Sidebar.d.ts +0 -23
- package/dist/components/Sidebar.d.ts.map +0 -1
- package/dist/components/Sidebar.js +0 -21
- package/dist/components/Sidebar.js.map +0 -1
- package/dist/components/SignaturePad.d.ts +0 -19
- package/dist/components/SignaturePad.d.ts.map +0 -1
- package/dist/components/SignaturePad.js +0 -133
- package/dist/components/SignaturePad.js.map +0 -1
- package/dist/components/SignupForm.d.ts +0 -15
- package/dist/components/SignupForm.d.ts.map +0 -1
- package/dist/components/SignupForm.js +0 -50
- package/dist/components/SignupForm.js.map +0 -1
- package/dist/components/Skeleton.d.ts +0 -3
- package/dist/components/Skeleton.d.ts.map +0 -1
- package/dist/components/Skeleton.js +0 -13
- package/dist/components/Skeleton.js.map +0 -1
- package/dist/components/SlideToDelete.d.ts +0 -26
- package/dist/components/SlideToDelete.d.ts.map +0 -1
- package/dist/components/SlideToDelete.js +0 -88
- package/dist/components/SlideToDelete.js.map +0 -1
- package/dist/components/Slider.d.ts +0 -18
- package/dist/components/Slider.d.ts.map +0 -1
- package/dist/components/Slider.js +0 -99
- package/dist/components/Slider.js.map +0 -1
- package/dist/components/Snackbar.d.ts +0 -16
- package/dist/components/Snackbar.d.ts.map +0 -1
- package/dist/components/Snackbar.js +0 -39
- package/dist/components/Snackbar.js.map +0 -1
- package/dist/components/Spacer.d.ts +0 -21
- package/dist/components/Spacer.d.ts.map +0 -1
- package/dist/components/Spacer.js +0 -44
- package/dist/components/Spacer.js.map +0 -1
- package/dist/components/Sparkline.d.ts +0 -17
- package/dist/components/Sparkline.d.ts.map +0 -1
- package/dist/components/Sparkline.js +0 -41
- package/dist/components/Sparkline.js.map +0 -1
- package/dist/components/Spinner.d.ts +0 -8
- package/dist/components/Spinner.d.ts.map +0 -1
- package/dist/components/Spinner.js +0 -26
- package/dist/components/Spinner.js.map +0 -1
- package/dist/components/SplitButton.d.ts +0 -20
- package/dist/components/SplitButton.d.ts.map +0 -1
- package/dist/components/SplitButton.js +0 -48
- package/dist/components/SplitButton.js.map +0 -1
- package/dist/components/SplitView.d.ts +0 -40
- package/dist/components/SplitView.d.ts.map +0 -1
- package/dist/components/SplitView.js +0 -14
- package/dist/components/SplitView.js.map +0 -1
- package/dist/components/StatisticDisplay.d.ts +0 -48
- package/dist/components/StatisticDisplay.d.ts.map +0 -1
- package/dist/components/StatisticDisplay.js +0 -141
- package/dist/components/StatisticDisplay.js.map +0 -1
- package/dist/components/Stepper.d.ts +0 -24
- package/dist/components/Stepper.d.ts.map +0 -1
- package/dist/components/Stepper.js +0 -99
- package/dist/components/Stepper.js.map +0 -1
- package/dist/components/StickyContainer.d.ts +0 -32
- package/dist/components/StickyContainer.d.ts.map +0 -1
- package/dist/components/StickyContainer.js +0 -17
- package/dist/components/StickyContainer.js.map +0 -1
- package/dist/components/Switch.d.ts +0 -12
- package/dist/components/Switch.d.ts.map +0 -1
- package/dist/components/Switch.js +0 -46
- package/dist/components/Switch.js.map +0 -1
- package/dist/components/Table.d.ts +0 -22
- package/dist/components/Table.d.ts.map +0 -1
- package/dist/components/Table.js +0 -72
- package/dist/components/Table.js.map +0 -1
- package/dist/components/Tabs.d.ts +0 -29
- package/dist/components/Tabs.d.ts.map +0 -1
- package/dist/components/Tabs.js +0 -63
- package/dist/components/Tabs.js.map +0 -1
- package/dist/components/Tag.d.ts +0 -14
- package/dist/components/Tag.d.ts.map +0 -1
- package/dist/components/Tag.js +0 -44
- package/dist/components/Tag.js.map +0 -1
- package/dist/components/TagsInput.d.ts +0 -15
- package/dist/components/TagsInput.d.ts.map +0 -1
- package/dist/components/TagsInput.js +0 -54
- package/dist/components/TagsInput.js.map +0 -1
- package/dist/components/Text.d.ts +0 -21
- package/dist/components/Text.d.ts.map +0 -1
- package/dist/components/Text.js +0 -47
- package/dist/components/Text.js.map +0 -1
- package/dist/components/Textarea.d.ts +0 -6
- package/dist/components/Textarea.d.ts.map +0 -1
- package/dist/components/Textarea.js +0 -10
- package/dist/components/Textarea.js.map +0 -1
- package/dist/components/ThemeToggle.d.ts +0 -22
- package/dist/components/ThemeToggle.d.ts.map +0 -1
- package/dist/components/ThemeToggle.js +0 -81
- package/dist/components/ThemeToggle.js.map +0 -1
- package/dist/components/TimePicker.d.ts +0 -15
- package/dist/components/TimePicker.d.ts.map +0 -1
- package/dist/components/TimePicker.js +0 -148
- package/dist/components/TimePicker.js.map +0 -1
- package/dist/components/Timeline.d.ts +0 -21
- package/dist/components/Timeline.d.ts.map +0 -1
- package/dist/components/Timeline.js +0 -63
- package/dist/components/Timeline.js.map +0 -1
- package/dist/components/Title.d.ts +0 -17
- package/dist/components/Title.d.ts.map +0 -1
- package/dist/components/Title.js +0 -46
- package/dist/components/Title.js.map +0 -1
- package/dist/components/Toast.d.ts +0 -25
- package/dist/components/Toast.d.ts.map +0 -1
- package/dist/components/Toast.js +0 -96
- package/dist/components/Toast.js.map +0 -1
- package/dist/components/Tooltip.d.ts +0 -13
- package/dist/components/Tooltip.d.ts.map +0 -1
- package/dist/components/Tooltip.js +0 -20
- package/dist/components/Tooltip.js.map +0 -1
- package/dist/components/TopActionBar.d.ts +0 -60
- package/dist/components/TopActionBar.d.ts.map +0 -1
- package/dist/components/TopActionBar.js +0 -69
- package/dist/components/TopActionBar.js.map +0 -1
- package/dist/components/TreeView.d.ts +0 -29
- package/dist/components/TreeView.d.ts.map +0 -1
- package/dist/components/TreeView.js +0 -97
- package/dist/components/TreeView.js.map +0 -1
- package/dist/components/TwoFactorAuth.d.ts +0 -12
- package/dist/components/TwoFactorAuth.d.ts.map +0 -1
- package/dist/components/TwoFactorAuth.js +0 -48
- package/dist/components/TwoFactorAuth.js.map +0 -1
- package/dist/components/VideoPlayer.d.ts +0 -11
- package/dist/components/VideoPlayer.d.ts.map +0 -1
- package/dist/components/VideoPlayer.js +0 -132
- package/dist/components/VideoPlayer.js.map +0 -1
- package/dist/components/VoiceRecorder.d.ts +0 -11
- package/dist/components/VoiceRecorder.d.ts.map +0 -1
- package/dist/components/VoiceRecorder.js +0 -145
- package/dist/components/VoiceRecorder.js.map +0 -1
- package/dist/components/WindowControls.d.ts +0 -10
- package/dist/components/WindowControls.d.ts.map +0 -1
- package/dist/components/WindowControls.js +0 -18
- package/dist/components/WindowControls.js.map +0 -1
- package/dist/components/WindowFrame.d.ts +0 -11
- package/dist/components/WindowFrame.d.ts.map +0 -1
- package/dist/components/WindowFrame.js +0 -26
- package/dist/components/WindowFrame.js.map +0 -1
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { motion } from 'framer-motion';
|
|
3
|
-
/* ========================================
|
|
4
|
-
STYLES
|
|
5
|
-
======================================== */
|
|
6
|
-
const styles = {
|
|
7
|
-
horizontal: 'flex-row w-full items-start',
|
|
8
|
-
vertical: 'flex-col h-full',
|
|
9
|
-
};
|
|
10
|
-
/* ========================================
|
|
11
|
-
COMPONENT
|
|
12
|
-
======================================== */
|
|
13
|
-
export const Stepper = ({ steps, activeStep, orientation = 'horizontal', onStepClick, variant = 'default', isError = false, className = '', }) => {
|
|
14
|
-
const isVertical = orientation === 'vertical';
|
|
15
|
-
return (_jsx("div", { className: `flex ${styles[orientation]} ${className}`, children: steps.map((step, index) => {
|
|
16
|
-
const isCompleted = index < activeStep;
|
|
17
|
-
const isCurrent = index === activeStep;
|
|
18
|
-
const isLast = index === steps.length - 1;
|
|
19
|
-
const isClickable = !!onStepClick;
|
|
20
|
-
// Status determination
|
|
21
|
-
let status = 'pending';
|
|
22
|
-
if (isCompleted)
|
|
23
|
-
status = 'completed';
|
|
24
|
-
else if (isCurrent)
|
|
25
|
-
status = isError ? 'error' : 'current';
|
|
26
|
-
// Wrapper classes
|
|
27
|
-
// Horizontal: flex-1 for all except last item to ensure equal spacing
|
|
28
|
-
// Vertical: flex-col
|
|
29
|
-
const wrapperClasses = isVertical
|
|
30
|
-
? 'flex-col'
|
|
31
|
-
: `flex-row items-center ${isLast ? 'flex-none' : 'flex-1'}`;
|
|
32
|
-
return (_jsxs("div", { className: `flex ${wrapperClasses} relative`, children: [_jsx(StepItem, { step: step, index: index, status: status, orientation: orientation, variant: variant, isLast: isLast, onClick: isClickable ? () => onStepClick(index) : undefined }), !isLast && (_jsx(StepConnector, { status: isCompleted ? 'completed' : 'pending', orientation: orientation, variant: variant }))] }, step.id));
|
|
33
|
-
}) }));
|
|
34
|
-
};
|
|
35
|
-
const StepItem = ({ step, index, status, orientation, variant, isLast, onClick, }) => {
|
|
36
|
-
const isVertical = orientation === 'vertical';
|
|
37
|
-
const isClickable = !!onClick;
|
|
38
|
-
// Base classes for the container
|
|
39
|
-
const containerClasses = `
|
|
40
|
-
group flex items-center relative
|
|
41
|
-
${isVertical ? 'mb-2' : ''}
|
|
42
|
-
${isClickable ? 'cursor-pointer' : ''}
|
|
43
|
-
`;
|
|
44
|
-
// Circle/Icon styles
|
|
45
|
-
const getIconStyles = () => {
|
|
46
|
-
const base = "flex items-center justify-center rounded-full transition-colors duration-300 z-10 border-2";
|
|
47
|
-
if (variant === 'bullets') {
|
|
48
|
-
const size = "w-3 h-3";
|
|
49
|
-
if (status === 'completed' || status === 'current')
|
|
50
|
-
return `${base} ${size} bg-accent-blue border-accent-blue`;
|
|
51
|
-
if (status === 'error')
|
|
52
|
-
return `${base} ${size} bg-status-error border-status-error`;
|
|
53
|
-
return `${base} ${size} bg-surface-tertiary border-surface-tertiary`;
|
|
54
|
-
}
|
|
55
|
-
const size = "w-8 h-8 text-sm font-medium";
|
|
56
|
-
if (status === 'completed')
|
|
57
|
-
return `${base} ${size} bg-accent-blue border-accent-blue text-white`;
|
|
58
|
-
if (status === 'error')
|
|
59
|
-
return `${base} ${size} bg-status-error border-status-error text-white`;
|
|
60
|
-
if (status === 'current')
|
|
61
|
-
return `${base} ${size} border-accent-blue text-accent-blue bg-surface-primary`;
|
|
62
|
-
return `${base} ${size} border-border-secondary text-text-tertiary bg-surface-primary`;
|
|
63
|
-
};
|
|
64
|
-
// Text styles
|
|
65
|
-
const getTextContainerStyles = () => {
|
|
66
|
-
if (isVertical)
|
|
67
|
-
return 'ml-4 pt-1 pb-8';
|
|
68
|
-
return 'pl-4';
|
|
69
|
-
};
|
|
70
|
-
const titleColor = status === 'pending' ? 'text-text-secondary' : 'text-text-primary';
|
|
71
|
-
const descriptionColor = 'text-text-tertiary';
|
|
72
|
-
return (_jsxs("div", { className: `${containerClasses} flex-row items-center`, onClick: onClick, children: [_jsx(motion.div, { className: getIconStyles(), initial: false, animate: { scale: status === 'current' ? 1.1 : 1 }, transition: { type: 'spring', stiffness: 300, damping: 20 }, children: variant !== 'bullets' && (_jsx(_Fragment, { children: status === 'completed' ? (_jsx(CheckIcon, {})) : status === 'error' ? (_jsx(ErrorIcon, {})) : (_jsx("span", { children: step.icon || index + 1 })) })) }), variant !== 'simple' && (_jsxs("div", { className: getTextContainerStyles(), children: [_jsx("div", { className: `text-sm font-medium ${titleColor} transition-colors`, children: step.title }), step.description && (_jsx("div", { className: `text-xs ${descriptionColor} mt-1`, children: step.description }))] }))] }));
|
|
73
|
-
};
|
|
74
|
-
const StepConnector = ({ status, orientation, variant }) => {
|
|
75
|
-
const isVertical = orientation === 'vertical';
|
|
76
|
-
const isCompleted = status === 'completed';
|
|
77
|
-
// Base classes for the container
|
|
78
|
-
// Horizontal: Line spans full width between items
|
|
79
|
-
// Vertical: Line spans full height between items
|
|
80
|
-
const containerClasses = isVertical
|
|
81
|
-
? 'absolute left-4 top-8 bottom-0 w-0.5 -ml-[1px]'
|
|
82
|
-
: 'flex-1 h-0.5 mx-2';
|
|
83
|
-
// Adjust connector position for bullets
|
|
84
|
-
const bulletClasses = isVertical
|
|
85
|
-
? 'absolute left-[6px] top-3 bottom-0 w-0.5 -ml-[0.5px]'
|
|
86
|
-
: 'flex-1 h-0.5 mx-2';
|
|
87
|
-
const classes = variant === 'bullets' ? bulletClasses : containerClasses;
|
|
88
|
-
return (_jsxs("div", { className: `${classes} relative m-2`, children: [_jsx("div", { className: "absolute inset-0 bg-border-secondary" }), _jsx(motion.div, { className: "absolute bg-accent-blue", style: {
|
|
89
|
-
top: 0,
|
|
90
|
-
left: 0,
|
|
91
|
-
[isVertical ? 'width' : 'height']: '100%',
|
|
92
|
-
}, initial: { [isVertical ? 'height' : 'width']: '0%' }, animate: { [isVertical ? 'height' : 'width']: isCompleted ? '100%' : '0%' }, transition: { duration: 0.4, ease: 'easeInOut' } })] }));
|
|
93
|
-
};
|
|
94
|
-
/* ========================================
|
|
95
|
-
ICONS
|
|
96
|
-
======================================== */
|
|
97
|
-
const CheckIcon = () => (_jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", children: _jsx("polyline", { points: "20 6 9 17 4 12" }) }));
|
|
98
|
-
const ErrorIcon = () => (_jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), _jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })] }));
|
|
99
|
-
//# sourceMappingURL=Stepper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.js","sourceRoot":"","sources":["../../components/Stepper.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AA8BvC;;8CAE8C;AAE9C,MAAM,MAAM,GAAG;IACX,UAAU,EAAE,6BAA6B;IACzC,QAAQ,EAAE,iBAAiB;CAC9B,CAAC;AAEF;;8CAE8C;AAE9C,MAAM,CAAC,MAAM,OAAO,GAA2B,CAAC,EAC5C,KAAK,EACL,UAAU,EACV,WAAW,GAAG,YAAY,EAC1B,WAAW,EACX,OAAO,GAAG,SAAS,EACnB,OAAO,GAAG,KAAK,EACf,SAAS,GAAG,EAAE,GACjB,EAAE,EAAE;IACD,MAAM,UAAU,GAAG,WAAW,KAAK,UAAU,CAAC;IAE9C,OAAO,CACH,cAAK,SAAS,EAAE,QAAQ,MAAM,CAAC,WAAW,CAAC,IAAI,SAAS,EAAE,YACrD,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YACvB,MAAM,WAAW,GAAG,KAAK,GAAG,UAAU,CAAC;YACvC,MAAM,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,EAAC,MAAM,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,GAAG,EAAC,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,YAC1I,mBAAU,MAAM,EAAC,gBAAgB,GAAG,GAClC,CACT,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,CACpB,eAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,GAAG,EAAC,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,aAC1I,eAAM,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,GAAG,EACtC,eAAM,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,GAAG,IACpC,CACT,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface StickyContainerProps {
|
|
3
|
-
/**
|
|
4
|
-
* Children to render inside the sticky container
|
|
5
|
-
*/
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Top offset in px (default: 0)
|
|
9
|
-
*/
|
|
10
|
-
top?: number;
|
|
11
|
-
/**
|
|
12
|
-
* Z-index (default: 20)
|
|
13
|
-
*/
|
|
14
|
-
zIndex?: number;
|
|
15
|
-
/**
|
|
16
|
-
* Optional className for custom styles
|
|
17
|
-
*/
|
|
18
|
-
className?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Optional style for custom CSS
|
|
21
|
-
*/
|
|
22
|
-
style?: React.CSSProperties;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* StickyContainer: Apple/macOS style sticky surface
|
|
26
|
-
* - Uses position: sticky
|
|
27
|
-
* - Glass effect, border, shadow
|
|
28
|
-
* - Top offset configurable
|
|
29
|
-
* - Responsive, works in scrollable containers
|
|
30
|
-
*/
|
|
31
|
-
export declare const StickyContainer: React.FC<StickyContainerProps>;
|
|
32
|
-
//# sourceMappingURL=StickyContainer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StickyContainer.d.ts","sourceRoot":"","sources":["../../components/StickyContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAyB1D,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from '../lib/utils';
|
|
3
|
-
/**
|
|
4
|
-
* StickyContainer: Apple/macOS style sticky surface
|
|
5
|
-
* - Uses position: sticky
|
|
6
|
-
* - Glass effect, border, shadow
|
|
7
|
-
* - Top offset configurable
|
|
8
|
-
* - Responsive, works in scrollable containers
|
|
9
|
-
*/
|
|
10
|
-
export const StickyContainer = ({ children, top = 0, zIndex = 20, className, style, }) => {
|
|
11
|
-
return (_jsx("div", { className: cn('sticky', 'bg-surface-secondary/80 backdrop-blur-xl border border-border-primary shadow-sm', 'rounded-xl', 'px-4 py-2', className), style: {
|
|
12
|
-
top,
|
|
13
|
-
zIndex,
|
|
14
|
-
...style,
|
|
15
|
-
}, children: children }));
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=StickyContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StickyContainer.js","sourceRoot":"","sources":["../../components/StickyContainer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAyBlC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAC9D,QAAQ,EACR,GAAG,GAAG,CAAC,EACP,MAAM,GAAG,EAAE,EACX,SAAS,EACT,KAAK,GACN,EAAE,EAAE;IACH,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CACX,QAAQ,EACR,iFAAiF,EACjF,YAAY,EACZ,WAAW,EACX,SAAS,CACV,EACD,KAAK,EAAE;YACL,GAAG;YACH,MAAM;YACN,GAAG,KAAK;SACT,YAEA,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface SwitchProps {
|
|
3
|
-
checked?: boolean;
|
|
4
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
label?: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
size?: 'sm' | 'md' | 'lg';
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const Switch: React.FC<SwitchProps>;
|
|
12
|
-
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../components/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,WAAW,WAAW;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AA4BD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAwDxC,CAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
3
|
-
import { motion } from 'framer-motion';
|
|
4
|
-
/* ========================================
|
|
5
|
-
STYLES
|
|
6
|
-
======================================== */
|
|
7
|
-
const sizeStyles = {
|
|
8
|
-
sm: {
|
|
9
|
-
root: 'w-9 h-5',
|
|
10
|
-
thumb: 'w-4 h-4',
|
|
11
|
-
translate: 'translate-x-4',
|
|
12
|
-
},
|
|
13
|
-
md: {
|
|
14
|
-
root: 'w-11 h-6',
|
|
15
|
-
thumb: 'w-5 h-5',
|
|
16
|
-
translate: 'translate-x-5',
|
|
17
|
-
},
|
|
18
|
-
lg: {
|
|
19
|
-
root: 'w-14 h-8',
|
|
20
|
-
thumb: 'w-7 h-7',
|
|
21
|
-
translate: 'translate-x-6',
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
/* ========================================
|
|
25
|
-
COMPONENT
|
|
26
|
-
======================================== */
|
|
27
|
-
export const Switch = ({ checked, onCheckedChange, disabled = false, label, description, size = 'md', className = '', }) => {
|
|
28
|
-
const sizes = sizeStyles[size];
|
|
29
|
-
const switchElement = (_jsx(SwitchPrimitive.Root, { checked: checked, onCheckedChange: onCheckedChange, disabled: disabled, className: `
|
|
30
|
-
${sizes.root} relative rounded-full transition-apple focus:outline-none focus-visible:ring-2 focus-visible:ring-accent-blue focus-visible:ring-offset-2 disabled:opacity-40 disabled:cursor-not-allowed data-[state=checked]:bg-accent-blue data-[state=unchecked]:bg-surface-secondary ${className} group
|
|
31
|
-
`, children: _jsx(SwitchPrimitive.Thumb, { asChild: true, children: _jsx(motion.span, { className: `
|
|
32
|
-
${sizes.thumb}
|
|
33
|
-
block
|
|
34
|
-
bg-white
|
|
35
|
-
rounded-full
|
|
36
|
-
shadow-sm
|
|
37
|
-
transform
|
|
38
|
-
`, animate: {
|
|
39
|
-
x: checked ? (size === 'sm' ? 16 : size === 'md' ? 20 : 24) : 0,
|
|
40
|
-
}, transition: { type: 'spring', stiffness: 500, damping: 30 } }) }) }));
|
|
41
|
-
if (label || description) {
|
|
42
|
-
return (_jsxs("label", { className: "flex items-start gap-3 cursor-pointer", children: [switchElement, _jsxs("div", { className: "flex-1", children: [label && (_jsx("p", { className: "text-sm font-medium text-text-primary", children: label })), description && (_jsx("p", { className: "text-xs text-text-secondary mt-0.5", children: description }))] })] }));
|
|
43
|
-
}
|
|
44
|
-
return switchElement;
|
|
45
|
-
};
|
|
46
|
-
//# sourceMappingURL=Switch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../components/Switch.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAgBvC;;8CAE8C;AAE9C,MAAM,UAAU,GAAG;IACf,EAAE,EAAE;QACA,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,eAAe;KAC7B;IACD,EAAE,EAAE;QACA,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,eAAe;KAC7B;IACD,EAAE,EAAE;QACA,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,eAAe;KAC7B;CACJ,CAAC;AAEF;;8CAE8C;AAE9C,MAAM,CAAC,MAAM,MAAM,GAA0B,CAAC,EAC1C,OAAO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|
1
|
-
import * as React from "react";
|
|
2
|
-
export type Column<T> = {
|
|
3
|
-
key: keyof T;
|
|
4
|
-
header: string;
|
|
5
|
-
width?: string;
|
|
6
|
-
sortable?: boolean;
|
|
7
|
-
render?: (value: any, row: T) => React.ReactNode;
|
|
8
|
-
};
|
|
9
|
-
export interface TableProps<T> {
|
|
10
|
-
columns: Column<T>[];
|
|
11
|
-
data: T[];
|
|
12
|
-
selectable?: boolean;
|
|
13
|
-
striped?: boolean;
|
|
14
|
-
hoverable?: boolean;
|
|
15
|
-
density?: "comfortable" | "compact";
|
|
16
|
-
page?: number;
|
|
17
|
-
pageSize?: number;
|
|
18
|
-
onPageChange?: (page: number) => void;
|
|
19
|
-
onSortChange?: (key: keyof T, direction: "asc" | "desc") => void;
|
|
20
|
-
}
|
|
21
|
-
export declare function Table<T>({ columns, data, selectable, striped, hoverable, density, page, pageSize, onPageChange, onSortChange, }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../components/Table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAc/B,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI;IACpB,GAAG,EAAE,MAAM,CAAC,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;CACpD,CAAC;AAEF,MAAM,WAAW,UAAU,CAAC,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IACrB,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,MAAM,KAAK,IAAI,CAAC;CACpE;AAMD,wBAAgB,KAAK,CAAC,CAAC,EAAE,EACrB,OAAO,EACP,IAAI,EACJ,UAAkB,EAClB,OAAc,EACd,SAAgB,EAChB,OAAuB,EACvB,IAAQ,EACR,QAAa,EACb,YAAY,EACZ,YAAY,GACf,EAAE,UAAU,CAAC,CAAC,CAAC,2CA2Kf"}
|
package/dist/components/Table.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import { cn } from "../lib/utils";
|
|
5
|
-
import { motion } from "framer-motion";
|
|
6
|
-
import { ArrowUpDown, ChevronLeft, ChevronRight, Check, } from "lucide-react";
|
|
7
|
-
/* -------------------------------------------------------------------------- */
|
|
8
|
-
/* ROOT COMPONENT */
|
|
9
|
-
/* -------------------------------------------------------------------------- */
|
|
10
|
-
export function Table({ columns, data, selectable = false, striped = true, hoverable = true, density = "comfortable", page = 1, pageSize = 10, onPageChange, onSortChange, }) {
|
|
11
|
-
const [sortKey, setSortKey] = React.useState(null);
|
|
12
|
-
const [sortDirection, setSortDirection] = React.useState("asc");
|
|
13
|
-
const [selectedRows, setSelectedRows] = React.useState(new Set());
|
|
14
|
-
const handleSort = (col) => {
|
|
15
|
-
if (!col.sortable)
|
|
16
|
-
return;
|
|
17
|
-
const newDirection = sortKey === col.key && sortDirection === "asc" ? "desc" : "asc";
|
|
18
|
-
setSortKey(col.key);
|
|
19
|
-
setSortDirection(newDirection);
|
|
20
|
-
onSortChange?.(col.key, newDirection);
|
|
21
|
-
};
|
|
22
|
-
const toggleRow = (index) => {
|
|
23
|
-
const copy = new Set(selectedRows);
|
|
24
|
-
copy.has(index) ? copy.delete(index) : copy.add(index);
|
|
25
|
-
setSelectedRows(copy);
|
|
26
|
-
};
|
|
27
|
-
const toggleAll = () => {
|
|
28
|
-
if (selectedRows.size === data.length) {
|
|
29
|
-
setSelectedRows(new Set());
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
setSelectedRows(new Set(data.map((_, i) => i)));
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
const totalPages = Math.ceil(data.length / pageSize);
|
|
36
|
-
const paginatedData = data.slice((page - 1) * pageSize, page * pageSize);
|
|
37
|
-
const rowPadding = density === "compact" ? "py-2" : "py-3";
|
|
38
|
-
return (_jsxs("div", { className: "overflow-hidden border border-border-primary rounded-xl bg-surface-elevated shadow-lg", children: [_jsxs("table", { className: "w-full border-collapse text-left", children: [_jsx("thead", { className: "bg-surface-secondary/50 border-b border-border-primary", children: _jsxs("tr", { children: [selectable && (_jsx("th", { className: "w-10 px-4", children: _jsx(Checkbox, { checked: selectedRows.size === data.length, onCheckedChange: toggleAll }) })), columns.map((col) => (_jsx("th", { className: cn("px-4 py-3 text-sm font-medium text-text-secondary select-none whitespace-nowrap", col.width && `w-[${col.width}]`), children: _jsxs("button", { className: cn(col.sortable
|
|
39
|
-
? "flex items-center gap-1 hover:text-text-primary transition-colors"
|
|
40
|
-
: ""), onClick: () => handleSort(col), children: [col.header, col.sortable && (_jsx(ArrowUpDown, { className: cn("h-3 w-3 transition-opacity", sortKey === col.key
|
|
41
|
-
? "opacity-100 text-text-primary"
|
|
42
|
-
: "opacity-40") }))] }) }, String(col.key))))] }) }), _jsxs("tbody", { children: [paginatedData.length === 0 && (_jsx("tr", { children: _jsx("td", { colSpan: columns.length + (selectable ? 1 : 0), className: "py-10 text-center text-text-tertiary", children: "No results found." }) })), paginatedData.map((row, index) => {
|
|
43
|
-
const globalIndex = (page - 1) * pageSize + index;
|
|
44
|
-
return (_jsxs(motion.tr, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { duration: 0.18 }, className: cn("border-b border-border-primary/50 transition-colors", striped && index % 2 === 1
|
|
45
|
-
? "bg-surface-secondary/40"
|
|
46
|
-
: "", hoverable &&
|
|
47
|
-
"hover:bg-surface-secondary/70 cursor-pointer"), children: [selectable && (_jsx("td", { className: "px-4", children: _jsx(Checkbox, { checked: selectedRows.has(globalIndex), onCheckedChange: () => toggleRow(globalIndex) }) })), columns.map((col) => (_jsx("td", { className: cn("px-4 text-sm text-text-primary", rowPadding), children: col.render
|
|
48
|
-
? col.render(row[col.key], row)
|
|
49
|
-
: row[col.key] }, String(col.key))))] }, globalIndex));
|
|
50
|
-
})] })] }), _jsxs("div", { className: "flex items-center justify-between px-4 py-3 bg-surface-secondary/40 border-t border-border-primary", children: [_jsxs("p", { className: "text-xs text-text-tertiary", children: ["Page ", page, " of ", totalPages] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(PaginationButton, { disabled: page === 1, onClick: () => onPageChange?.(page - 1), children: _jsx(ChevronLeft, { className: "w-4 h-4" }) }), _jsx(PaginationButton, { disabled: page === totalPages, onClick: () => onPageChange?.(page + 1), children: _jsx(ChevronRight, { className: "w-4 h-4" }) })] })] })] }));
|
|
51
|
-
}
|
|
52
|
-
/* -------------------------------------------------------------------------- */
|
|
53
|
-
/* SUB COMPONENTS */
|
|
54
|
-
/* -------------------------------------------------------------------------- */
|
|
55
|
-
function PaginationButton({ disabled, children, onClick, }) {
|
|
56
|
-
return (_jsx("button", { disabled: disabled, onClick: onClick, className: cn("p-2 rounded-lg border border-border-primary text-text-secondary transition-all", "hover:bg-surface-secondary hover:text-text-primary", "disabled:opacity-40 disabled:cursor-not-allowed"), children: children }));
|
|
57
|
-
}
|
|
58
|
-
function Checkbox({ checked, onCheckedChange, disabled, }) {
|
|
59
|
-
return (_jsx("button", { type: "button", role: "checkbox", "aria-checked": checked, "aria-disabled": disabled || undefined, "data-state": checked ? "checked" : "unchecked", onClick: () => {
|
|
60
|
-
if (disabled)
|
|
61
|
-
return;
|
|
62
|
-
onCheckedChange?.();
|
|
63
|
-
}, onKeyDown: (event) => {
|
|
64
|
-
if (disabled)
|
|
65
|
-
return;
|
|
66
|
-
if (event.key === " " || event.key === "Enter") {
|
|
67
|
-
event.preventDefault();
|
|
68
|
-
onCheckedChange?.();
|
|
69
|
-
}
|
|
70
|
-
}, className: cn("h-4 w-4 rounded-md border border-border-primary bg-surface-primary flex items-center justify-center", "data-[state=checked]:bg-accent-blue data-[state=checked]:border-accent-blue", "transition-colors", disabled && "opacity-50 cursor-not-allowed"), children: checked && _jsx(Check, { className: "h-3 w-3 text-white" }) }));
|
|
71
|
-
}
|
|
72
|
-
//# sourceMappingURL=Table.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../components/Table.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EACH,WAAW,EACX,WAAW,EACX,YAAY,EACZ,KAAK,GACR,MAAM,cAAc,CAAC;AA2BtB,gFAAgF;AAChF,gFAAgF;AAChF,gFAAgF;AAEhF,MAAM,UAAU,KAAK,CAAI,EACrB,OAAO,EACP,IAAI,EACJ,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,IAAI,EACd,SAAS,GAAG,IAAI,EAChB,OAAO,GAAG,aAAa,EACvB,IAAI,GAAG,CAAC,EACR,QAAQ,GAAG,EAAE,EACb,YAAY,EACZ,YAAY,GACA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AI,SAAS,gBACxB,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,EAC7C,OAAO,EAAE,GAAG,EAAE;YACV,IAAI,QAAQ;gBAAE,OAAO;YACrB,eAAe,EAAE,EAAE,CAAC;QACxB,CAAC,EACD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YACjB,IAAI,QAAQ;gBAAE,OAAO;YACrB,IAAI,KAAK,CAAC,GAAG,KAAK,GAAG,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO,EAAE,CAAC;gBAC7C,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,eAAe,EAAE,EAAE,CAAC;YACxB,CAAC;QACL,CAAC,EACD,SAAS,EAAE,EAAE,CACT,qGAAqG,EACrG,6EAA6E,EAC7E,mBAAmB,EACnB,QAAQ,IAAI,+BAA+B,CAC9C,YAEA,OAAO,IAAI,KAAC,KAAK,IAAC,SAAS,EAAC,oBAAoB,GAAG,GAC/C,CACZ,CAAC;AACN,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface TabsProps {
|
|
3
|
-
defaultValue?: string;
|
|
4
|
-
value?: string;
|
|
5
|
-
onValueChange?: (value: string) => void;
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface TabsListProps {
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
className?: string;
|
|
12
|
-
variant?: 'default' | 'segmented';
|
|
13
|
-
}
|
|
14
|
-
export interface TabsTriggerProps {
|
|
15
|
-
value: string;
|
|
16
|
-
children: React.ReactNode;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
className?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface TabsContentProps {
|
|
21
|
-
value: string;
|
|
22
|
-
children: React.ReactNode;
|
|
23
|
-
className?: string;
|
|
24
|
-
}
|
|
25
|
-
export declare const Tabs: React.FC<TabsProps>;
|
|
26
|
-
export declare const TabsList: React.FC<TabsListProps>;
|
|
27
|
-
export declare const TabsTrigger: React.FC<TabsTriggerProps>;
|
|
28
|
-
export declare const TabsContent: React.FC<TabsContentProps>;
|
|
29
|
-
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../components/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,WAAW,SAAS;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;CACrC;AAED,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAeD,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAsCpC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA0B5C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA4DlD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwBlD,CAAC"}
|
package/dist/components/Tabs.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
4
|
-
import { motion } from 'framer-motion';
|
|
5
|
-
import { cn } from '../lib/utils';
|
|
6
|
-
/* ========================================
|
|
7
|
-
CONTEXT
|
|
8
|
-
======================================== */
|
|
9
|
-
const TabsContext = React.createContext({});
|
|
10
|
-
/* ========================================
|
|
11
|
-
COMPONENTS
|
|
12
|
-
======================================== */
|
|
13
|
-
export const Tabs = ({ defaultValue, value, onValueChange, children, className = '', }) => {
|
|
14
|
-
// Manage state to support animations
|
|
15
|
-
const [activeValue, setActiveValue] = React.useState(value || defaultValue);
|
|
16
|
-
// Sync with controlled value if provided
|
|
17
|
-
React.useEffect(() => {
|
|
18
|
-
if (value !== undefined) {
|
|
19
|
-
setActiveValue(value);
|
|
20
|
-
}
|
|
21
|
-
}, [value]);
|
|
22
|
-
const handleValueChange = (newValue) => {
|
|
23
|
-
if (value === undefined) {
|
|
24
|
-
setActiveValue(newValue);
|
|
25
|
-
}
|
|
26
|
-
onValueChange?.(newValue);
|
|
27
|
-
};
|
|
28
|
-
return (_jsx(TabsContext.Provider, { value: { activeValue }, children: _jsx(TabsPrimitive.Root, { defaultValue: defaultValue, value: value, onValueChange: handleValueChange, className: className, children: children }) }));
|
|
29
|
-
};
|
|
30
|
-
export const TabsList = ({ children, className = '', variant = 'default', }) => {
|
|
31
|
-
// Pass variant to context for Triggers to know what style to use
|
|
32
|
-
// We need to clone the context provider or just pass it down?
|
|
33
|
-
// Actually TabsTrigger needs to know the variant.
|
|
34
|
-
// Let's wrap children in another provider or just cloneElement?
|
|
35
|
-
// Context is cleaner.
|
|
36
|
-
// We need to merge with existing context (activeValue)
|
|
37
|
-
const context = React.useContext(TabsContext);
|
|
38
|
-
const variantStyles = {
|
|
39
|
-
default: 'inline-flex items-center gap-1 border-b border-border-primary w-full justify-start',
|
|
40
|
-
segmented: 'inline-flex items-center gap-1 p-1 bg-surface-secondary rounded-xl',
|
|
41
|
-
};
|
|
42
|
-
return (_jsx(TabsContext.Provider, { value: { ...context, variant }, children: _jsx(TabsPrimitive.List, { className: cn(variantStyles[variant], className), children: children }) }));
|
|
43
|
-
};
|
|
44
|
-
export const TabsTrigger = ({ value, children, disabled = false, className = '', }) => {
|
|
45
|
-
const { activeValue, variant } = React.useContext(TabsContext);
|
|
46
|
-
const isSelected = activeValue === value;
|
|
47
|
-
return (_jsxs(TabsPrimitive.Trigger, { value: value, disabled: disabled, className: cn("relative px-4 py-2 text-sm font-medium transition-colors outline-none disabled:opacity-40 disabled:cursor-not-allowed z-10", variant === 'default' && "hover:text-text-primary", variant === 'segmented' && "flex-1 text-center", className), children: [_jsx("span", { className: cn("relative z-20 transition-colors duration-200", isSelected ? "text-text-primary" : "text-text-secondary hover:text-text-primary"), children: children }), isSelected && variant === 'default' && (_jsx(motion.div, { layoutId: "tab-indicator", className: "absolute bottom-0 left-0 right-0 h-0.5 bg-accent-blue rounded-full z-10", initial: false, transition: {
|
|
48
|
-
type: 'spring',
|
|
49
|
-
stiffness: 500,
|
|
50
|
-
damping: 30,
|
|
51
|
-
mass: 0.5,
|
|
52
|
-
} })), isSelected && variant === 'segmented' && (_jsx(motion.div, { layoutId: "tab-background", className: "absolute inset-0 bg-surface-primary rounded-lg shadow-sm z-0", initial: false, transition: {
|
|
53
|
-
type: 'spring',
|
|
54
|
-
stiffness: 500,
|
|
55
|
-
damping: 30,
|
|
56
|
-
mass: 0.5,
|
|
57
|
-
} }))] }));
|
|
58
|
-
};
|
|
59
|
-
export const TabsContent = ({ value, children, className = '', }) => (_jsx(TabsPrimitive.Content, { value: value, className: cn("outline-none focus-visible:ring-2 focus-visible:ring-accent-blue focus-visible:ring-offset-2 rounded-xl mt-4", className), children: _jsx(motion.div, { initial: { opacity: 0, y: 8 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: 8 }, transition: {
|
|
60
|
-
duration: 0.2,
|
|
61
|
-
ease: "easeOut",
|
|
62
|
-
}, children: children }) }));
|
|
63
|
-
//# sourceMappingURL=Tabs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../components/Tabs.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAiClC;;8CAE8C;AAE9C,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAGpC,EAAE,CAAC,CAAC;AAEP;;8CAE8C;AAE9C,MAAM,CAAC,MAAM,IAAI,GAAwB,CAAC,EACtC,YAAY,EACZ,KAAK,EACL,aAAa,EACb,QAAQ,EACR,SAAS,GAAG,EAAE,GACjB,EAAE,EAAE;IACD,qCAAqC;IACrC,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,KAAK,CAAC,QAAQ,CAChD,KAAK,IAAI,YAAY,CACxB,CAAC;IAEF,yCAAyC;IACzC,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,cAAc,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;IACL,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,MAAM,iBAAiB,GAAG,CAAC,QAAgB,EAAE,EAAE;QAC3C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,cAAc,CAAC,QAAQ,CAAC,CAAC;QAC7B,CAAC;QACD,aAAa,EAAE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E,CAAC,EAAE,EAC7B,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAC7B,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAC1B,UAAU,EAAE;YACR,QAAQ,EAAE,GAAG;YACb,IAAI,EAAE,SAAS;SAClB,YAEA,QAAQ,GACA,GACO,CAC3B,CAAC"}
|
package/dist/components/Tag.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type TagVariant = 'default' | 'primary' | 'success' | 'warning' | 'error' | 'info' | 'outline';
|
|
3
|
-
export type TagSize = 'sm' | 'md' | 'lg';
|
|
4
|
-
export interface TagProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'> {
|
|
5
|
-
label: string;
|
|
6
|
-
variant?: TagVariant;
|
|
7
|
-
size?: TagSize;
|
|
8
|
-
icon?: React.ElementType;
|
|
9
|
-
onRemove?: () => void;
|
|
10
|
-
onClick?: () => void;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
//# sourceMappingURL=Tag.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../components/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAS1C,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AACtG,MAAM,MAAM,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEzC,MAAM,WAAW,QAAS,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC;IACnF,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAMD,eAAO,MAAM,GAAG,iFA+Ef,CAAC"}
|
package/dist/components/Tag.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
|
-
import { cn } from '../lib/utils';
|
|
4
|
-
import { motion } from 'framer-motion';
|
|
5
|
-
import { X } from 'lucide-react';
|
|
6
|
-
/* ========================================
|
|
7
|
-
TAG COMPONENT
|
|
8
|
-
======================================== */
|
|
9
|
-
export const Tag = forwardRef(({ label, variant = 'default', size = 'md', icon: Icon, onRemove, onClick, disabled = false, className, ...props }, ref) => {
|
|
10
|
-
const variants = {
|
|
11
|
-
default: "bg-surface-secondary text-text-primary border-border-primary hover:bg-surface-tertiary",
|
|
12
|
-
primary: "bg-accent-blue text-white border-accent-blue hover:bg-accent-blueHover",
|
|
13
|
-
success: "bg-status-success text-white border-status-success hover:bg-status-success/90",
|
|
14
|
-
warning: "bg-status-warning text-white border-status-warning hover:bg-status-warning/90",
|
|
15
|
-
error: "bg-status-error text-white border-status-error hover:bg-status-error/90",
|
|
16
|
-
info: "bg-status-info text-white border-status-info hover:bg-status-info/90",
|
|
17
|
-
outline: "bg-transparent text-text-primary border-border-primary hover:bg-surface-secondary",
|
|
18
|
-
};
|
|
19
|
-
const sizes = {
|
|
20
|
-
sm: {
|
|
21
|
-
container: "h-5 px-2 gap-1 text-xs",
|
|
22
|
-
icon: "w-3 h-3",
|
|
23
|
-
removeButton: "w-3 h-3",
|
|
24
|
-
},
|
|
25
|
-
md: {
|
|
26
|
-
container: "h-6 px-2.5 gap-1.5 text-sm",
|
|
27
|
-
icon: "w-3.5 h-3.5",
|
|
28
|
-
removeButton: "w-3.5 h-3.5",
|
|
29
|
-
},
|
|
30
|
-
lg: {
|
|
31
|
-
container: "h-7 px-3 gap-2 text-base",
|
|
32
|
-
icon: "w-4 h-4",
|
|
33
|
-
removeButton: "w-4 h-4",
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
const isClickable = !!onClick && !disabled;
|
|
37
|
-
const Component = motion.div;
|
|
38
|
-
return (_jsxs(Component, { ref: ref, whileHover: isClickable ? { scale: 1.02 } : undefined, whileTap: isClickable ? { scale: 0.98 } : undefined, onClick: isClickable ? onClick : undefined, className: cn("inline-flex items-center justify-center rounded-md border font-medium transition-colors", variants[variant], sizes[size].container, isClickable && "cursor-pointer", disabled && "opacity-50 cursor-not-allowed", className), children: [Icon && _jsx(Icon, { className: sizes[size].icon }), _jsx("span", { className: "leading-none", children: label }), onRemove && !disabled && (_jsx("button", { onClick: (e) => {
|
|
39
|
-
e.stopPropagation();
|
|
40
|
-
onRemove();
|
|
41
|
-
}, className: "rounded hover:bg-black/10 transition-colors focus:outline-none p-0.5 -mr-0.5", "aria-label": "Remove", children: _jsx(X, { className: sizes[size].removeButton }) }))] }));
|
|
42
|
-
});
|
|
43
|
-
Tag.displayName = 'Tag';
|
|
44
|
-
//# sourceMappingURL=Tag.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../components/Tag.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAmBjC;;8CAE8C;AAE9C,MAAM,CAAC,M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AAyF,EACzF,QAAQ,CAAC,OAAO,CAAC,EACjB,KAAK,CAAC,IAAI,CAAC,CAAC,SAAS,EACrB,WAAW,IAAI,gBAAgB,EAC/B,QAAQ,IAAI,+BAA+B,EAC3C,SAAS,CACZ,aAEA,IAAI,IAAI,KAAC,IAAI,IAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,GAAI,EAC9C,eAAM,SAAS,EAAC,cAAc,YAAE,KAAK,GAAQ,EAC5C,QAAQ,IAAI,CAAC,QAAQ,IAAI,CACtB,iBACI,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACX,CAAC,CAAC,eAAe,EAAE,CAAC;oBACpB,QAAQ,EAAE,CAAC;gBACf,CAAC,EACD,SAAS,EAAC,8EAA8E,gBAC7E,QAAQ,YAEnB,KAAC,CAAC,IAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,YAAY,GAAI,GACrC,CACZ,IACO,CACf,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,GAAG,CAAC,WAAW,GAAG,KAAK,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface TagsInputProps {
|
|
3
|
-
value?: string[];
|
|
4
|
-
onChange?: (tags: string[]) => void;
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
error?: string;
|
|
8
|
-
helperText?: string;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
maxTags?: number;
|
|
11
|
-
className?: string;
|
|
12
|
-
onBlur?: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const TagsInput: React.FC<TagsInputProps>;
|
|
15
|
-
//# sourceMappingURL=TagsInput.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TagsInput.d.ts","sourceRoot":"","sources":["../../components/TagsInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAUhD,MAAM,WAAW,cAAc;IAC3B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAMD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA8H9C,CAAC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useRef } from 'react';
|
|
3
|
-
import { X } from 'lucide-react';
|
|
4
|
-
import { cn } from '../lib/utils';
|
|
5
|
-
import { motion, AnimatePresence } from 'framer-motion';
|
|
6
|
-
import { Label } from './Label';
|
|
7
|
-
/* ========================================
|
|
8
|
-
TAGS INPUT COMPONENT
|
|
9
|
-
======================================== */
|
|
10
|
-
export const TagsInput = ({ value = [], onChange, placeholder = 'Add tags...', label, error, helperText, disabled = false, maxTags, className, onBlur, }) => {
|
|
11
|
-
const [inputValue, setInputValue] = useState('');
|
|
12
|
-
const [isFocused, setIsFocused] = useState(false);
|
|
13
|
-
const inputRef = useRef(null);
|
|
14
|
-
const handleKeyDown = (e) => {
|
|
15
|
-
if (e.key === 'Enter' || e.key === ',') {
|
|
16
|
-
e.preventDefault();
|
|
17
|
-
addTag();
|
|
18
|
-
}
|
|
19
|
-
else if (e.key === 'Backspace' && inputValue === '' && value.length > 0) {
|
|
20
|
-
removeTag(value.length - 1);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
const addTag = () => {
|
|
24
|
-
const trimmedInput = inputValue.trim();
|
|
25
|
-
if (trimmedInput && !value.includes(trimmedInput)) {
|
|
26
|
-
if (maxTags && value.length >= maxTags)
|
|
27
|
-
return;
|
|
28
|
-
onChange?.([...value, trimmedInput]);
|
|
29
|
-
setInputValue('');
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const removeTag = (index) => {
|
|
33
|
-
if (disabled)
|
|
34
|
-
return;
|
|
35
|
-
const newTags = [...value];
|
|
36
|
-
newTags.splice(index, 1);
|
|
37
|
-
onChange?.(newTags);
|
|
38
|
-
};
|
|
39
|
-
const handleContainerClick = () => {
|
|
40
|
-
if (!disabled) {
|
|
41
|
-
inputRef.current?.focus();
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
return (_jsxs("div", { className: cn("w-full space-y-2", className), children: [label && (_jsx(Label, { className: "mb-2", children: label })), _jsxs("div", { onClick: handleContainerClick, className: cn("flex flex-wrap items-center gap-2 w-full min-h-[40px] px-3 py-2 rounded-xl border bg-surface-primary text-text-primary transition-all cursor-text", isFocused ? "ring-2 ring-accent-blue/20 border-accent-blue" : "border-border-primary", error ? "border-status-error focus-within:border-status-error focus-within:ring-status-error/20" : "", disabled ? "opacity-50 cursor-not-allowed bg-surface-secondary" : ""), children: [_jsx(AnimatePresence, { mode: "popLayout", children: value.map((tag, index) => (_jsxs(motion.span, { initial: { opacity: 0, scale: 0.8 }, animate: { opacity: 1, scale: 1 }, exit: { opacity: 0, scale: 0.8 }, layout: true, className: cn("inline-flex items-center gap-1 px-2 py-1 rounded-md text-sm font-medium bg-surface-tertiary text-text-primary", disabled && "bg-surface-secondary text-text-secondary"), children: [tag, !disabled && (_jsx("button", { type: "button", onClick: (e) => {
|
|
45
|
-
e.stopPropagation();
|
|
46
|
-
removeTag(index);
|
|
47
|
-
}, className: "p-0.5 rounded-full hover:bg-surface-secondary text-text-tertiary hover:text-text-primary transition-colors focus:outline-none", children: _jsx(X, { className: "w-3 h-3" }) }))] }, `${tag}-${index}`))) }), _jsx("input", { ref: inputRef, type: "text", value: inputValue, onChange: (e) => setInputValue(e.target.value), onKeyDown: handleKeyDown, onFocus: () => setIsFocused(true), onBlur: () => {
|
|
48
|
-
setIsFocused(false);
|
|
49
|
-
addTag(); // Add tag on blur if there's input
|
|
50
|
-
onBlur?.();
|
|
51
|
-
}, disabled: disabled, placeholder: value.length === 0 ? placeholder : '', className: "flex-1 min-w-[120px] bg-transparent border-none outline-none text-sm placeholder:text-text-tertiary disabled:cursor-not-allowed" })] }), (error || helperText) && (_jsx(motion.p, { initial: { opacity: 0, y: -4 }, animate: { opacity: 1, y: 0 }, className: cn("text-sm", error ? "text-status-error" : "text-text-secondary"), children: error || helperText }))] }));
|
|
52
|
-
};
|
|
53
|
-
TagsInput.displayName = 'TagsInput';
|
|
54
|
-
//# sourceMappingURL=TagsInput.js.map
|