@stisocial/ui 0.2.0 → 0.3.0
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/CHANGELOG.md +82 -0
- package/dist/agency/AnnotationLayer/AnnotationLayer.css +209 -0
- package/dist/agency/AnnotationLayer/AnnotationLayer.d.ts +35 -0
- package/dist/agency/AnnotationLayer/AnnotationLayer.js +226 -0
- package/dist/agency/AnnotationLayer/AnnotationLayer.module.js +23 -0
- package/dist/agency/ApprovalActions/ApprovalActions.css +16 -0
- package/dist/agency/ApprovalActions/ApprovalActions.d.ts +22 -0
- package/dist/agency/ApprovalActions/ApprovalActions.js +104 -0
- package/dist/agency/ApprovalActions/ApprovalActions.module.js +7 -0
- package/dist/agency/ApprovalFlow/ApprovalFlow.css +159 -0
- package/dist/agency/ApprovalFlow/ApprovalFlow.d.ts +34 -0
- package/dist/agency/ApprovalFlow/ApprovalFlow.js +115 -0
- package/dist/agency/ApprovalFlow/ApprovalFlow.module.js +19 -0
- package/dist/agency/ApprovalFlow/index.d.ts +2 -0
- package/dist/agency/AssetCard/AssetCard.css +194 -0
- package/dist/agency/AssetCard/AssetCard.d.ts +47 -0
- package/dist/agency/AssetCard/AssetCard.js +137 -0
- package/dist/agency/AssetCard/AssetCard.module.js +19 -0
- package/dist/agency/AssetCard/index.d.ts +2 -0
- package/dist/agency/AssetLibrary/AssetLibrary.css +60 -0
- package/dist/agency/AssetLibrary/AssetLibrary.d.ts +36 -0
- package/dist/agency/AssetLibrary/AssetLibrary.js +174 -0
- package/dist/agency/AssetLibrary/AssetLibrary.module.js +13 -0
- package/dist/agency/AssetLibrary/index.d.ts +2 -0
- package/dist/agency/AssetPicker/AssetPicker.d.ts +23 -0
- package/dist/agency/AssetPicker/AssetPicker.js +50 -0
- package/dist/agency/AssetPicker/index.d.ts +2 -0
- package/dist/agency/BrandKitViewer/BrandKitViewer.css +184 -0
- package/dist/agency/BrandKitViewer/BrandKitViewer.d.ts +46 -0
- package/dist/agency/BrandKitViewer/BrandKitViewer.js +168 -0
- package/dist/agency/BrandKitViewer/BrandKitViewer.module.js +25 -0
- package/dist/agency/BriefForm/BriefForm.css +25 -0
- package/dist/agency/BriefForm/BriefForm.d.ts +39 -0
- package/dist/agency/BriefForm/BriefForm.js +247 -0
- package/dist/agency/BriefForm/BriefForm.module.js +8 -0
- package/dist/agency/BriefForm/index.d.ts +2 -0
- package/dist/agency/BudgetTracker/BudgetTracker.css +159 -0
- package/dist/agency/BudgetTracker/BudgetTracker.d.ts +29 -0
- package/dist/agency/BudgetTracker/BudgetTracker.js +147 -0
- package/dist/agency/BudgetTracker/BudgetTracker.module.js +20 -0
- package/dist/agency/BudgetTracker/budgetPace.d.ts +21 -0
- package/dist/agency/BudgetTracker/budgetPace.js +30 -0
- package/dist/agency/CampaignCard/CampaignCard.css +229 -0
- package/dist/agency/CampaignCard/CampaignCard.d.ts +42 -0
- package/dist/agency/CampaignCard/CampaignCard.js +143 -0
- package/dist/agency/CampaignCard/CampaignCard.module.js +27 -0
- package/dist/agency/CampaignCard/index.d.ts +2 -0
- package/dist/agency/ChannelPerformanceTable/ChannelPerformanceTable.css +113 -0
- package/dist/agency/ChannelPerformanceTable/ChannelPerformanceTable.d.ts +41 -0
- package/dist/agency/ChannelPerformanceTable/ChannelPerformanceTable.js +156 -0
- package/dist/agency/ChannelPerformanceTable/ChannelPerformanceTable.module.js +15 -0
- package/dist/agency/ColorPaletteDisplay/ColorPaletteDisplay.css +117 -0
- package/dist/agency/ColorPaletteDisplay/ColorPaletteDisplay.d.ts +31 -0
- package/dist/agency/ColorPaletteDisplay/ColorPaletteDisplay.js +143 -0
- package/dist/agency/ColorPaletteDisplay/ColorPaletteDisplay.module.js +17 -0
- package/dist/agency/ContentCalendar/ContentCalendar.css +58 -0
- package/dist/agency/ContentCalendar/ContentCalendar.d.ts +33 -0
- package/dist/agency/ContentCalendar/ContentCalendar.js +98 -0
- package/dist/agency/ContentCalendar/ContentCalendar.module.js +9 -0
- package/dist/agency/GoogleDisplayAdPreview/GoogleDisplayAdPreview.css +182 -0
- package/dist/agency/GoogleDisplayAdPreview/GoogleDisplayAdPreview.d.ts +23 -0
- package/dist/agency/GoogleDisplayAdPreview/GoogleDisplayAdPreview.js +94 -0
- package/dist/agency/GoogleDisplayAdPreview/GoogleDisplayAdPreview.module.js +17 -0
- package/dist/agency/GoogleDisplayAdPreview/index.d.ts +2 -0
- package/dist/agency/GoogleSearchAdPreview/GoogleSearchAdPreview.css +119 -0
- package/dist/agency/GoogleSearchAdPreview/GoogleSearchAdPreview.d.ts +32 -0
- package/dist/agency/GoogleSearchAdPreview/GoogleSearchAdPreview.js +83 -0
- package/dist/agency/GoogleSearchAdPreview/GoogleSearchAdPreview.module.js +16 -0
- package/dist/agency/GoogleSearchAdPreview/index.d.ts +2 -0
- package/dist/agency/HashtagInput/HashtagInput.css +37 -0
- package/dist/agency/HashtagInput/HashtagInput.d.ts +32 -0
- package/dist/agency/HashtagInput/HashtagInput.js +96 -0
- package/dist/agency/HashtagInput/HashtagInput.module.js +10 -0
- package/dist/agency/HashtagInput/index.d.ts +2 -0
- package/dist/agency/InstagramReelPreview/InstagramReelPreview.js +1 -1
- package/dist/agency/LinkPreview/LinkPreview.css +176 -0
- package/dist/agency/LinkPreview/LinkPreview.d.ts +26 -0
- package/dist/agency/LinkPreview/LinkPreview.js +136 -0
- package/dist/agency/LinkPreview/LinkPreview.module.js +27 -0
- package/dist/agency/LinkPreview/index.d.ts +2 -0
- package/dist/agency/MetaAdPreview/MetaAdPreview.css +112 -0
- package/dist/agency/MetaAdPreview/MetaAdPreview.d.ts +30 -0
- package/dist/agency/MetaAdPreview/MetaAdPreview.js +109 -0
- package/dist/agency/MetaAdPreview/MetaAdPreview.module.js +20 -0
- package/dist/agency/MetaAdPreview/index.d.ts +2 -0
- package/dist/agency/PlatformCharacterLimit/PlatformCharacterLimit.css +99 -0
- package/dist/agency/PlatformCharacterLimit/PlatformCharacterLimit.d.ts +31 -0
- package/dist/agency/PlatformCharacterLimit/PlatformCharacterLimit.js +107 -0
- package/dist/agency/PlatformCharacterLimit/PlatformCharacterLimit.module.js +14 -0
- package/dist/agency/PostComposer/PostComposer.css +109 -0
- package/dist/agency/PostComposer/PostComposer.d.ts +36 -0
- package/dist/agency/PostComposer/PostComposer.js +288 -0
- package/dist/agency/PostComposer/PostComposer.module.js +18 -0
- package/dist/agency/PostComposer/index.d.ts +2 -0
- package/dist/agency/PublishScheduler/PublishScheduler.css +69 -0
- package/dist/agency/PublishScheduler/PublishScheduler.d.ts +34 -0
- package/dist/agency/PublishScheduler/PublishScheduler.js +152 -0
- package/dist/agency/PublishScheduler/PublishScheduler.module.js +14 -0
- package/dist/agency/RevisionHistory/RevisionHistory.css +157 -0
- package/dist/agency/RevisionHistory/RevisionHistory.d.ts +39 -0
- package/dist/agency/RevisionHistory/RevisionHistory.js +141 -0
- package/dist/agency/RevisionHistory/RevisionHistory.module.js +21 -0
- package/dist/agency/SafeZoneOverlay/SafeZoneOverlay.css +139 -0
- package/dist/agency/SafeZoneOverlay/SafeZoneOverlay.d.ts +27 -0
- package/dist/agency/SafeZoneOverlay/SafeZoneOverlay.js +108 -0
- package/dist/agency/SafeZoneOverlay/SafeZoneOverlay.module.js +14 -0
- package/dist/agency/SafeZoneOverlay/index.d.ts +2 -0
- package/dist/agency/SerpPreview/SerpPreview.css +131 -0
- package/dist/agency/SerpPreview/SerpPreview.d.ts +35 -0
- package/dist/agency/SerpPreview/SerpPreview.js +130 -0
- package/dist/agency/SerpPreview/SerpPreview.module.js +20 -0
- package/dist/agency/SerpPreview/index.d.ts +2 -0
- package/dist/agency/TikTokPreview/TikTokPreview.js +1 -1
- package/dist/agency/TimeTracker/TimeTracker.css +128 -0
- package/dist/agency/TimeTracker/TimeTracker.d.ts +29 -0
- package/dist/agency/TimeTracker/TimeTracker.js +183 -0
- package/dist/agency/TimeTracker/TimeTracker.module.js +21 -0
- package/dist/agency/UtmBuilder/UtmBuilder.css +66 -0
- package/dist/agency/UtmBuilder/UtmBuilder.d.ts +33 -0
- package/dist/agency/UtmBuilder/UtmBuilder.js +201 -0
- package/dist/agency/UtmBuilder/UtmBuilder.module.js +14 -0
- package/dist/agency/_shared/platforms.d.ts +3 -1
- package/dist/agency/_shared/platforms.js +9 -1
- package/dist/agency/index.d.ts +43 -2
- package/dist/agency/index.js +29 -2
- package/dist/ai/AttachmentChip/AttachmentChip.js +5 -3
- package/dist/ai/ChatThread/ChatThread.css +10 -8
- package/dist/ai/ChatThread/ChatThread.module.js +5 -5
- package/dist/ai/ConversationList/ConversationList.js +2 -2
- package/dist/ai/MessageActions/MessageActions.js +1 -1
- package/dist/ai/ModelSelect/ModelSelect.d.ts +5 -1
- package/dist/ai/ModelSelect/ModelSelect.js +2 -1
- package/dist/ai/PromptInput/PromptInput.js +1 -1
- package/dist/ai/ToolCallCard/ToolCallCard.css +40 -39
- package/dist/ai/ToolCallCard/ToolCallCard.js +1 -1
- package/dist/ai/ToolCallCard/ToolCallCard.module.js +17 -17
- package/dist/charts/BulletChart/BulletChart.css +107 -0
- package/dist/charts/BulletChart/BulletChart.d.ts +35 -0
- package/dist/charts/BulletChart/BulletChart.js +120 -0
- package/dist/charts/BulletChart/BulletChart.module.js +18 -0
- package/dist/charts/BulletChart/index.d.ts +2 -0
- package/dist/charts/CalendarHeatmap/CalendarHeatmap.css +39 -0
- package/dist/charts/CalendarHeatmap/CalendarHeatmap.d.ts +30 -0
- package/dist/charts/CalendarHeatmap/CalendarHeatmap.js +256 -0
- package/dist/charts/CalendarHeatmap/CalendarHeatmap.module.js +9 -0
- package/dist/charts/CalendarHeatmap/index.d.ts +2 -0
- package/dist/charts/DonutChart/DonutChart.css +24 -0
- package/dist/charts/DonutChart/DonutChart.d.ts +30 -0
- package/dist/charts/DonutChart/DonutChart.js +157 -0
- package/dist/charts/DonutChart/DonutChart.module.js +8 -0
- package/dist/charts/DonutChart/index.d.ts +2 -0
- package/dist/charts/FunnelChart/FunnelChart.css +47 -0
- package/dist/charts/FunnelChart/FunnelChart.d.ts +22 -0
- package/dist/charts/FunnelChart/FunnelChart.js +179 -0
- package/dist/charts/FunnelChart/FunnelChart.module.js +11 -0
- package/dist/charts/FunnelChart/index.d.ts +2 -0
- package/dist/charts/Gauge/Gauge.css +122 -0
- package/dist/charts/Gauge/Gauge.d.ts +35 -0
- package/dist/charts/Gauge/Gauge.js +132 -0
- package/dist/charts/Gauge/Gauge.module.js +16 -0
- package/dist/charts/Gauge/index.d.ts +2 -0
- package/dist/charts/GeoChart/GeoChart.css +208 -0
- package/dist/charts/GeoChart/GeoChart.d.ts +25 -0
- package/dist/charts/GeoChart/GeoChart.js +120 -0
- package/dist/charts/GeoChart/GeoChart.module.js +21 -0
- package/dist/charts/GeoChart/index.d.ts +2 -0
- package/dist/charts/Heatmap/Heatmap.css +61 -0
- package/dist/charts/Heatmap/Heatmap.d.ts +27 -0
- package/dist/charts/Heatmap/Heatmap.js +138 -0
- package/dist/charts/Heatmap/Heatmap.module.js +10 -0
- package/dist/charts/Heatmap/index.d.ts +2 -0
- package/dist/charts/RadarChart/RadarChart.css +39 -0
- package/dist/charts/RadarChart/RadarChart.d.ts +27 -0
- package/dist/charts/RadarChart/RadarChart.js +146 -0
- package/dist/charts/RadarChart/RadarChart.module.js +8 -0
- package/dist/charts/RadarChart/index.d.ts +2 -0
- package/dist/charts/SankeyChart/SankeyChart.css +45 -0
- package/dist/charts/SankeyChart/SankeyChart.d.ts +34 -0
- package/dist/charts/SankeyChart/SankeyChart.js +152 -0
- package/dist/charts/SankeyChart/SankeyChart.module.js +9 -0
- package/dist/charts/SankeyChart/index.d.ts +3 -0
- package/dist/charts/SankeyChart/sankeyLayout.d.ts +43 -0
- package/dist/charts/SankeyChart/sankeyLayout.js +106 -0
- package/dist/charts/ScatterChart/ScatterChart.css +20 -0
- package/dist/charts/ScatterChart/ScatterChart.d.ts +46 -0
- package/dist/charts/ScatterChart/ScatterChart.js +223 -0
- package/dist/charts/ScatterChart/ScatterChart.module.js +8 -0
- package/dist/charts/ScatterChart/index.d.ts +2 -0
- package/dist/charts/Sparkline/Sparkline.css +27 -0
- package/dist/charts/Sparkline/Sparkline.d.ts +24 -0
- package/dist/charts/Sparkline/Sparkline.js +71 -0
- package/dist/charts/Sparkline/Sparkline.module.js +7 -0
- package/dist/charts/Sparkline/index.d.ts +2 -0
- package/dist/charts/Treemap/Treemap.css +30 -0
- package/dist/charts/Treemap/Treemap.d.ts +23 -0
- package/dist/charts/Treemap/Treemap.js +134 -0
- package/dist/charts/Treemap/Treemap.module.js +8 -0
- package/dist/charts/Treemap/index.d.ts +3 -0
- package/dist/charts/Treemap/squarify.d.ts +11 -0
- package/dist/charts/Treemap/squarify.js +78 -0
- package/dist/charts/WaterfallChart/WaterfallChart.css +20 -0
- package/dist/charts/WaterfallChart/WaterfallChart.d.ts +33 -0
- package/dist/charts/WaterfallChart/WaterfallChart.js +188 -0
- package/dist/charts/WaterfallChart/WaterfallChart.module.js +8 -0
- package/dist/charts/WaterfallChart/index.d.ts +2 -0
- package/dist/charts/_internal/ScaleLegend.css +52 -0
- package/dist/charts/_internal/ScaleLegend.js +36 -0
- package/dist/charts/_internal/ScaleLegend.module.js +9 -0
- package/dist/charts/_internal/frame/ChartFrame.js +1 -1
- package/dist/charts/_internal/items.d.ts +10 -0
- package/dist/charts/_internal/items.js +71 -0
- package/dist/charts/_internal/marks/marks.js +10 -1
- package/dist/charts/_internal/shapes.js +26 -1
- package/dist/charts/index.d.ts +30 -1
- package/dist/charts/index.js +16 -1
- package/dist/commerce/AddToCartButton/AddToCartButton.js +2 -2
- package/dist/commerce/BillingTypeToggle/BillingTypeToggle.css +22 -0
- package/dist/commerce/BillingTypeToggle/BillingTypeToggle.d.ts +30 -0
- package/dist/commerce/BillingTypeToggle/BillingTypeToggle.js +118 -0
- package/dist/commerce/BillingTypeToggle/BillingTypeToggle.module.js +8 -0
- package/dist/commerce/CartDrawer/CartDrawer.css +22 -0
- package/dist/commerce/CartDrawer/CartDrawer.d.ts +27 -0
- package/dist/commerce/CartDrawer/CartDrawer.js +74 -0
- package/dist/commerce/CartDrawer/CartDrawer.module.js +8 -0
- package/dist/commerce/CartDrawer/index.d.ts +2 -0
- package/dist/commerce/CartItem/CartItem.css +143 -0
- package/dist/commerce/CartItem/CartItem.d.ts +33 -0
- package/dist/commerce/CartItem/CartItem.js +101 -0
- package/dist/commerce/CartItem/CartItem.module.js +18 -0
- package/dist/commerce/CartSummary/CartSummary.css +84 -0
- package/dist/commerce/CartSummary/CartSummary.d.ts +32 -0
- package/dist/commerce/CartSummary/CartSummary.js +81 -0
- package/dist/commerce/CartSummary/CartSummary.module.js +12 -0
- package/dist/commerce/CartSummary/index.d.ts +2 -0
- package/dist/commerce/CheckoutSteps/CheckoutSteps.css +152 -0
- package/dist/commerce/CheckoutSteps/CheckoutSteps.d.ts +20 -0
- package/dist/commerce/CheckoutSteps/CheckoutSteps.js +96 -0
- package/dist/commerce/CheckoutSteps/CheckoutSteps.module.js +16 -0
- package/dist/commerce/CouponField/CouponField.css +76 -0
- package/dist/commerce/CouponField/CouponField.d.ts +23 -0
- package/dist/commerce/CouponField/CouponField.js +119 -0
- package/dist/commerce/CouponField/CouponField.module.js +12 -0
- package/dist/commerce/InstallmentTable/InstallmentTable.css +38 -0
- package/dist/commerce/InstallmentTable/InstallmentTable.d.ts +26 -0
- package/dist/commerce/InstallmentTable/InstallmentTable.js +97 -0
- package/dist/commerce/InstallmentTable/InstallmentTable.module.js +9 -0
- package/dist/commerce/OrderSummary/OrderSummary.css +73 -0
- package/dist/commerce/OrderSummary/OrderSummary.d.ts +34 -0
- package/dist/commerce/OrderSummary/OrderSummary.js +106 -0
- package/dist/commerce/OrderSummary/OrderSummary.module.js +14 -0
- package/dist/commerce/OrderSummary/index.d.ts +2 -0
- package/dist/commerce/OrderTracker/OrderTracker.css +184 -0
- package/dist/commerce/OrderTracker/OrderTracker.d.ts +31 -0
- package/dist/commerce/OrderTracker/OrderTracker.js +147 -0
- package/dist/commerce/OrderTracker/OrderTracker.module.js +21 -0
- package/dist/commerce/PaymentMethodSelect/PaymentMethodSelect.css +21 -0
- package/dist/commerce/PaymentMethodSelect/PaymentMethodSelect.d.ts +33 -0
- package/dist/commerce/PaymentMethodSelect/PaymentMethodSelect.js +44 -0
- package/dist/commerce/PaymentMethodSelect/PaymentMethodSelect.module.js +7 -0
- package/dist/commerce/PaymentMethodSelect/index.d.ts +2 -0
- package/dist/commerce/ProductCard/ProductCard.css +133 -0
- package/dist/commerce/ProductCard/ProductCard.d.ts +39 -0
- package/dist/commerce/ProductCard/ProductCard.js +105 -0
- package/dist/commerce/ProductCard/ProductCard.module.js +18 -0
- package/dist/commerce/ProductCard/index.d.ts +2 -0
- package/dist/commerce/ProductGallery/ProductGallery.css +135 -0
- package/dist/commerce/ProductGallery/ProductGallery.d.ts +17 -0
- package/dist/commerce/ProductGallery/ProductGallery.js +102 -0
- package/dist/commerce/ProductGallery/ProductGallery.module.js +12 -0
- package/dist/commerce/ProductGallery/index.d.ts +2 -0
- package/dist/commerce/ProductReviews/ProductReviews.css +227 -0
- package/dist/commerce/ProductReviews/ProductReviews.d.ts +39 -0
- package/dist/commerce/ProductReviews/ProductReviews.js +187 -0
- package/dist/commerce/ProductReviews/ProductReviews.module.js +29 -0
- package/dist/commerce/ShippingOptions/ShippingOptions.d.ts +29 -0
- package/dist/commerce/ShippingOptions/ShippingOptions.js +34 -0
- package/dist/commerce/ShippingOptions/index.d.ts +2 -0
- package/dist/commerce/SizeGuide/RulerGlyph.js +16 -0
- package/dist/commerce/SizeGuide/SizeGuide.css +34 -0
- package/dist/commerce/SizeGuide/SizeGuide.d.ts +28 -0
- package/dist/commerce/SizeGuide/SizeGuide.js +90 -0
- package/dist/commerce/SizeGuide/SizeGuide.module.js +9 -0
- package/dist/commerce/SizeGuide/index.d.ts +2 -0
- package/dist/commerce/VariantSelector/VariantSelector.js +1 -1
- package/dist/commerce/index.d.ts +25 -2
- package/dist/commerce/index.js +16 -1
- package/dist/components/ActivityFeed/ActivityFeed.css +185 -0
- package/dist/components/ActivityFeed/ActivityFeed.d.ts +54 -0
- package/dist/components/ActivityFeed/ActivityFeed.js +134 -0
- package/dist/components/ActivityFeed/ActivityFeed.module.js +23 -0
- package/dist/components/ActivityFeed/index.d.ts +2 -0
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AppHeader/AppHeader.css +18 -18
- package/dist/components/AppHeader/AppHeader.d.ts +1 -1
- package/dist/components/AppHeader/AppHeader.module.js +8 -8
- package/dist/components/AppShell/AppShell.css +19 -19
- package/dist/components/AppShell/AppShell.d.ts +1 -1
- package/dist/components/AppShell/AppShell.module.js +7 -7
- package/dist/components/AuditLogList/AuditLogList.css +245 -0
- package/dist/components/AuditLogList/AuditLogList.d.ts +70 -0
- package/dist/components/AuditLogList/AuditLogList.js +200 -0
- package/dist/components/AuditLogList/AuditLogList.module.js +28 -0
- package/dist/components/AuditLogList/index.d.ts +2 -0
- package/dist/components/Avatar/Avatar.js +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.js +1 -1
- package/dist/components/BulkActionBar/BulkActionBar.css +111 -0
- package/dist/components/BulkActionBar/BulkActionBar.d.ts +24 -0
- package/dist/components/BulkActionBar/BulkActionBar.js +82 -0
- package/dist/components/BulkActionBar/BulkActionBar.module.js +12 -0
- package/dist/components/BulkActionBar/index.d.ts +2 -0
- package/dist/components/CalendarView/CalendarView.css +525 -0
- package/dist/components/CalendarView/CalendarView.d.ts +43 -0
- package/dist/components/CalendarView/CalendarView.js +378 -0
- package/dist/components/CalendarView/CalendarView.module.js +40 -0
- package/dist/components/CalendarView/calendarMath.d.ts +36 -0
- package/dist/components/CalendarView/calendarMath.js +97 -0
- package/dist/components/Carousel/Carousel.css +146 -0
- package/dist/components/Carousel/Carousel.d.ts +25 -0
- package/dist/components/Carousel/Carousel.js +178 -0
- package/dist/components/Carousel/Carousel.module.js +12 -0
- package/dist/components/Carousel/index.d.ts +2 -0
- package/dist/components/ChatMessage/ChatMessage.js +3 -3
- package/dist/components/Checkbox/Checkbox.js +2 -2
- package/dist/components/CheckboxGroup/CheckboxGroup.js +1 -1
- package/dist/components/CodeBlock/CodeBlock.css +203 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts +35 -0
- package/dist/components/CodeBlock/CodeBlock.js +160 -0
- package/dist/components/CodeBlock/CodeBlock.module.js +25 -0
- package/dist/components/CodeBlock/index.d.ts +2 -0
- package/dist/components/Combobox/Combobox.css +9 -8
- package/dist/components/Combobox/Combobox.d.ts +1 -1
- package/dist/components/Combobox/Combobox.js +1 -1
- package/dist/components/Combobox/Combobox.module.js +4 -4
- package/dist/components/CommentThread/CommentThread.js +2 -2
- package/dist/components/Comparison/Comparison.css +215 -0
- package/dist/components/Comparison/Comparison.d.ts +19 -0
- package/dist/components/Comparison/Comparison.js +122 -0
- package/dist/components/Comparison/Comparison.module.js +24 -0
- package/dist/components/Comparison/compareRows.d.ts +26 -0
- package/dist/components/Comparison/compareRows.js +16 -0
- package/dist/components/Comparison/index.d.ts +3 -0
- package/dist/components/ContractTemplate/ContractTemplate.css +81 -0
- package/dist/components/ContractTemplate/ContractTemplate.d.ts +40 -0
- package/dist/components/ContractTemplate/ContractTemplate.js +70 -0
- package/dist/components/ContractTemplate/ContractTemplate.module.js +14 -0
- package/dist/components/ContractTemplate/index.d.ts +2 -0
- package/dist/components/CoverPage/CoverPage.css +137 -0
- package/dist/components/CoverPage/CoverPage.d.ts +29 -0
- package/dist/components/CoverPage/CoverPage.js +81 -0
- package/dist/components/CoverPage/CoverPage.module.js +15 -0
- package/dist/components/CoverPage/index.d.ts +2 -0
- package/dist/components/DataGrid/DataGrid.css +170 -0
- package/dist/components/DataGrid/DataGrid.d.ts +46 -0
- package/dist/components/DataGrid/DataGrid.js +311 -0
- package/dist/components/DataGrid/DataGrid.module.js +14 -0
- package/dist/components/DataGrid/index.d.ts +2 -0
- package/dist/components/DataTable/DataTable.css +357 -0
- package/dist/components/DataTable/DataTable.d.ts +91 -0
- package/dist/components/DataTable/DataTable.js +337 -0
- package/dist/components/DataTable/DataTable.module.js +29 -0
- package/dist/components/DataTable/index.d.ts +3 -0
- package/dist/components/DataTable/tableData.d.ts +34 -0
- package/dist/components/DataTable/tableData.js +75 -0
- package/dist/components/DateField/DateField.js +1 -0
- package/dist/components/DatePicker/DatePicker.js +2 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +1 -0
- package/dist/components/DateTime/DateTime.d.ts +1 -1
- package/dist/components/DateTime/DateTime.js +1 -1
- package/dist/components/DiffViewer/DiffViewer.css +219 -0
- package/dist/components/DiffViewer/DiffViewer.d.ts +28 -0
- package/dist/components/DiffViewer/DiffViewer.js +217 -0
- package/dist/components/DiffViewer/DiffViewer.module.js +25 -0
- package/dist/components/DiffViewer/diff.d.ts +16 -0
- package/dist/components/DiffViewer/diff.js +139 -0
- package/dist/components/DiffViewer/index.d.ts +3 -0
- package/dist/components/DocumentToc/DocumentToc.css +86 -0
- package/dist/components/DocumentToc/DocumentToc.d.ts +30 -0
- package/dist/components/DocumentToc/DocumentToc.js +72 -0
- package/dist/components/DocumentToc/DocumentToc.module.js +15 -0
- package/dist/components/EmailField/EmailField.js +1 -1
- package/dist/components/ErrorPage/ErrorPage.js +2 -2
- package/dist/components/ErrorState/ErrorState.js +1 -1
- package/dist/components/FeedbackWidget/FeedbackWidget.js +2 -2
- package/dist/components/Field/Field.css +27 -26
- package/dist/components/Field/Field.module.js +7 -7
- package/dist/components/FilePreview/FilePreview.css +213 -0
- package/dist/components/FilePreview/FilePreview.d.ts +29 -0
- package/dist/components/FilePreview/FilePreview.js +237 -0
- package/dist/components/FilePreview/FilePreview.module.js +25 -0
- package/dist/components/FilePreview/index.d.ts +3 -0
- package/dist/components/FilePreview/previewKind.d.ts +15 -0
- package/dist/components/FilePreview/previewKind.js +103 -0
- package/dist/components/FileUpload/FileUpload.css +38 -26
- package/dist/components/FileUpload/FileUpload.js +1 -1
- package/dist/components/FileUpload/FileUpload.module.js +15 -15
- package/dist/components/FilterBar/FilterBar.css +58 -0
- package/dist/components/FilterBar/FilterBar.d.ts +44 -0
- package/dist/components/FilterBar/FilterBar.js +101 -0
- package/dist/components/FilterBar/FilterBar.module.js +11 -0
- package/dist/components/FilterBar/index.d.ts +2 -0
- package/dist/components/Gantt/Gantt.css +317 -0
- package/dist/components/Gantt/Gantt.d.ts +38 -0
- package/dist/components/Gantt/Gantt.js +324 -0
- package/dist/components/Gantt/Gantt.module.js +30 -0
- package/dist/components/Gantt/ganttMath.d.ts +29 -0
- package/dist/components/Gantt/ganttMath.js +71 -0
- package/dist/components/Image/Image.css +141 -0
- package/dist/components/Image/Image.d.ts +32 -0
- package/dist/components/Image/Image.js +76 -0
- package/dist/components/Image/Image.module.js +11 -0
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/InfiniteList/InfiniteList.js +1 -1
- package/dist/components/InlineEdit/InlineEdit.js +1 -1
- package/dist/components/InviteMembers/InviteMembers.d.ts +3 -1
- package/dist/components/InviteMembers/InviteMembers.js +3 -3
- package/dist/components/InvoiceTemplate/InvoiceTemplate.css +81 -0
- package/dist/components/InvoiceTemplate/InvoiceTemplate.d.ts +38 -0
- package/dist/components/InvoiceTemplate/InvoiceTemplate.js +107 -0
- package/dist/components/InvoiceTemplate/InvoiceTemplate.module.js +14 -0
- package/dist/components/InvoiceTemplate/index.d.ts +2 -0
- package/dist/components/JsonViewer/JsonViewer.css +248 -0
- package/dist/components/JsonViewer/JsonViewer.d.ts +22 -0
- package/dist/components/JsonViewer/JsonViewer.js +109 -0
- package/dist/components/JsonViewer/JsonViewer.module.js +21 -0
- package/dist/components/JsonViewer/index.d.ts +3 -0
- package/dist/components/JsonViewer/jsonTree.d.ts +18 -0
- package/dist/components/JsonViewer/jsonTree.js +76 -0
- package/dist/components/Kanban/Kanban.css +225 -0
- package/dist/components/Kanban/Kanban.d.ts +41 -0
- package/dist/components/Kanban/Kanban.js +156 -0
- package/dist/components/Kanban/Kanban.module.js +20 -0
- package/dist/components/Kanban/index.d.ts +3 -0
- package/dist/components/Kanban/moveCards.d.ts +13 -0
- package/dist/components/Kanban/moveCards.js +33 -0
- package/dist/components/LanguageSwitch/LanguageSwitch.js +1 -1
- package/dist/components/Lightbox/Lightbox.js +2 -2
- package/dist/components/ListView/ListView.css +337 -0
- package/dist/components/ListView/ListView.d.ts +44 -0
- package/dist/components/ListView/ListView.js +95 -0
- package/dist/components/ListView/ListView.module.js +19 -0
- package/dist/components/ListView/index.d.ts +3 -0
- package/dist/components/ListView/reorder.d.ts +5 -0
- package/dist/components/ListView/reorder.js +20 -0
- package/dist/components/Markdown/Markdown.js +1 -1
- package/dist/components/Mentions/Mentions.js +1 -1
- package/dist/components/NewPasswordField/NewPasswordField.js +1 -1
- package/dist/components/NotificationBell/NotificationBell.js +2 -2
- package/dist/components/NotificationCenter/NotificationCenter.js +2 -2
- package/dist/components/NumberedClauses/NumberedClauses.css +79 -0
- package/dist/components/NumberedClauses/NumberedClauses.d.ts +31 -0
- package/dist/components/NumberedClauses/NumberedClauses.js +71 -0
- package/dist/components/NumberedClauses/NumberedClauses.module.js +14 -0
- package/dist/components/NumberedClauses/index.d.ts +2 -0
- package/dist/components/OnboardingChecklist/OnboardingChecklist.js +1 -1
- package/dist/components/PasswordField/PasswordField.js +1 -1
- package/dist/components/PersonItem/PersonItem.js +1 -1
- package/dist/components/PivotTable/PivotTable.css +183 -0
- package/dist/components/PivotTable/PivotTable.d.ts +39 -0
- package/dist/components/PivotTable/PivotTable.js +171 -0
- package/dist/components/PivotTable/PivotTable.module.js +16 -0
- package/dist/components/PivotTable/index.d.ts +3 -0
- package/dist/components/PivotTable/pivot.d.ts +38 -0
- package/dist/components/PivotTable/pivot.js +122 -0
- package/dist/components/PricingTable/PricingTable.js +2 -2
- package/dist/components/PromptDialog/PromptDialog.js +1 -1
- package/dist/components/QrCode/QrCode.css +50 -0
- package/dist/components/QrCode/QrCode.d.ts +21 -0
- package/dist/components/QrCode/QrCode.js +55 -0
- package/dist/components/QrCode/QrCode.module.js +9 -0
- package/dist/components/QrCode/qr.d.ts +22 -0
- package/dist/components/QrCode/qr.js +669 -0
- package/dist/components/QuoteTemplate/QuoteTemplate.css +81 -0
- package/dist/components/QuoteTemplate/QuoteTemplate.d.ts +37 -0
- package/dist/components/QuoteTemplate/QuoteTemplate.js +120 -0
- package/dist/components/QuoteTemplate/QuoteTemplate.module.js +14 -0
- package/dist/components/QuoteTemplate/index.d.ts +2 -0
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Rating/Rating.js +1 -1
- package/dist/components/ReportTemplate/ReportTemplate.css +81 -0
- package/dist/components/ReportTemplate/ReportTemplate.d.ts +41 -0
- package/dist/components/ReportTemplate/ReportTemplate.js +79 -0
- package/dist/components/ReportTemplate/ReportTemplate.module.js +14 -0
- package/dist/components/ReportTemplate/index.d.ts +2 -0
- package/dist/components/RoleMatrix/RoleMatrix.js +1 -1
- package/dist/components/SearchField/SearchField.js +1 -1
- package/dist/components/SearchResults/SearchResults.js +1 -1
- package/dist/components/SideNav/SideNav.css +99 -41
- package/dist/components/SideNav/SideNav.js +4 -2
- package/dist/components/SideNav/SideNav.module.js +12 -12
- package/dist/components/SignatureBlock/SignatureBlock.css +109 -0
- package/dist/components/SignatureBlock/SignatureBlock.d.ts +35 -0
- package/dist/components/SignatureBlock/SignatureBlock.js +80 -0
- package/dist/components/SignatureBlock/SignatureBlock.module.js +20 -0
- package/dist/components/SignaturePad/SignaturePad.js +1 -1
- package/dist/components/SortMenu/SortMenu.css +6 -0
- package/dist/components/SortMenu/SortMenu.d.ts +31 -0
- package/dist/components/SortMenu/SortMenu.js +74 -0
- package/dist/components/SortMenu/SortMenu.module.js +4 -0
- package/dist/components/SplitButton/SplitButton.js +1 -1
- package/dist/components/Stat/Stat.js +1 -1
- package/dist/components/Steps/Steps.js +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/ThemeSwitch/ThemeSwitch.js +1 -1
- package/dist/components/TimeField/TimeField.js +1 -0
- package/dist/components/TimeSlotPicker/TimeSlotPicker.d.ts +1 -11
- package/dist/components/TimeSlotPicker/TimeSlotPicker.js +2 -24
- package/dist/components/TimeSlotPicker/index.d.ts +3 -2
- package/dist/components/TimeSlotPicker/timeSlots.d.ts +12 -0
- package/dist/components/TimeSlotPicker/timeSlots.js +25 -0
- package/dist/components/Timeline/Timeline.css +187 -0
- package/dist/components/Timeline/Timeline.d.ts +48 -0
- package/dist/components/Timeline/Timeline.js +72 -0
- package/dist/components/Timeline/Timeline.module.js +17 -0
- package/dist/components/Timeline/index.d.ts +2 -0
- package/dist/components/ToastQueue/ToastQueue.js +2 -2
- package/dist/components/Tour/Tour.css +26 -0
- package/dist/components/Tour/Tour.js +9 -0
- package/dist/components/Tour/Tour.module.js +4 -0
- package/dist/components/TransferList/TransferList.css +13 -13
- package/dist/components/TransferList/TransferList.js +1 -1
- package/dist/components/TransferList/TransferList.module.js +7 -7
- package/dist/components/TrashView/TrashView.js +2 -2
- package/dist/components/TreeTable/TreeTable.css +122 -0
- package/dist/components/TreeTable/TreeTable.d.ts +38 -0
- package/dist/components/TreeTable/TreeTable.js +226 -0
- package/dist/components/TreeTable/TreeTable.module.js +12 -0
- package/dist/components/TreeTable/index.d.ts +2 -0
- package/dist/components/TreeView/TreeView.css +80 -28
- package/dist/components/TreeView/TreeView.js +19 -24
- package/dist/components/TreeView/TreeView.module.js +11 -11
- package/dist/components/TurnstileField/TurnstileField.js +1 -1
- package/dist/components/UpdatePrompt/UpdatePrompt.js +1 -1
- package/dist/components/UploadQueue/UploadQueue.js +2 -2
- package/dist/components/VirtualList/VirtualList.css +83 -0
- package/dist/components/VirtualList/VirtualList.d.ts +38 -0
- package/dist/components/VirtualList/VirtualList.js +166 -0
- package/dist/components/VirtualList/VirtualList.module.js +11 -0
- package/dist/components/VirtualList/index.d.ts +3 -0
- package/dist/components/VirtualList/offsets.d.ts +15 -0
- package/dist/components/VirtualList/offsets.js +39 -0
- package/dist/components/WhatsNew/WhatsNew.css +31 -27
- package/dist/components/WhatsNew/WhatsNew.js +2 -2
- package/dist/components/WhatsNew/WhatsNew.module.js +22 -22
- package/dist/components/Wizard/Wizard.js +1 -1
- package/dist/components/WorkingHoursEditor/WorkingHoursEditor.js +3 -2
- package/dist/components/_document/Parties.css +36 -0
- package/dist/components/_document/Parties.js +36 -0
- package/dist/components/_document/Parties.module.js +10 -0
- package/dist/components/_document/lineTable.css +8 -0
- package/dist/components/_document/lineTable.js +71 -0
- package/dist/components/_document/lineTable.module.js +4 -0
- package/dist/components/_internal/listbox/SelectShell.d.ts +3 -1
- package/dist/components/_internal/listbox/SelectShell.js +3 -2
- package/dist/components/_internal/nav/NavBadge.js +2 -1
- package/dist/components/_internal/nav/nav.css +19 -8
- package/dist/components/_internal/nav/nav.module.js +1 -1
- package/dist/components/_internal/overlay/OverlayFrame.js +1 -1
- package/dist/components/_internal/tree/openBranchKey.js +23 -0
- package/dist/csp/csp.d.ts +14 -2
- package/dist/csp/csp.js +17 -3
- package/dist/csp/index.d.ts +2 -2
- package/dist/csp/index.js +1 -1
- package/dist/document/index.d.ts +15 -1
- package/dist/document/index.js +10 -2
- package/dist/editor/CodeEditor/CodeEditor.js +2 -2
- package/dist/editor/CommentComposer/CommentComposer.css +82 -0
- package/dist/editor/CommentComposer/CommentComposer.d.ts +54 -0
- package/dist/editor/CommentComposer/CommentComposer.js +205 -0
- package/dist/editor/CommentComposer/CommentComposer.module.js +16 -0
- package/dist/editor/CommentComposer/index.d.ts +2 -0
- package/dist/editor/JsonEditor/JsonEditor.js +1 -1
- package/dist/editor/MarkdownEditor/MarkdownEditor.js +2 -2
- package/dist/editor/RichTextEditor/RichTextEditor.css +177 -0
- package/dist/editor/RichTextEditor/RichTextEditor.d.ts +31 -0
- package/dist/editor/RichTextEditor/RichTextEditor.js +361 -0
- package/dist/editor/RichTextEditor/RichTextEditor.module.js +10 -0
- package/dist/editor/RichTextEditor/index.d.ts +3 -0
- package/dist/editor/RichTextEditor/sanitizeRichText.d.ts +19 -0
- package/dist/editor/RichTextEditor/sanitizeRichText.js +183 -0
- package/dist/editor/_shared/FormatIcons.js +18 -1
- package/dist/editor/index.d.ts +6 -1
- package/dist/editor/index.js +4 -1
- package/dist/foundation.css +10 -0
- package/dist/icons/generated/index.js +11 -11
- package/dist/icons/index.js +11 -11
- package/dist/id/AccountAuditLog/AccountAuditLog.css +9 -0
- package/dist/id/AccountAuditLog/AccountAuditLog.d.ts +38 -0
- package/dist/id/AccountAuditLog/AccountAuditLog.js +156 -0
- package/dist/id/AccountAuditLog/AccountAuditLog.module.js +4 -0
- package/dist/id/AccountAuditLog/index.d.ts +2 -0
- package/dist/id/AccountMenu/AccountMenu.css +128 -44
- package/dist/id/AccountMenu/AccountMenu.d.ts +37 -9
- package/dist/id/AccountMenu/AccountMenu.js +139 -66
- package/dist/id/AccountMenu/AccountMenu.module.js +16 -9
- package/dist/id/AccountMenu/index.d.ts +2 -2
- package/dist/id/ApiKeyList/ApiKeyList.css +75 -0
- package/dist/id/ApiKeyList/ApiKeyList.d.ts +41 -0
- package/dist/id/ApiKeyList/ApiKeyList.js +131 -0
- package/dist/id/ApiKeyList/ApiKeyList.module.js +14 -0
- package/dist/id/ApiKeyList/index.d.ts +2 -0
- package/dist/id/AppSwitcher/AppSwitcher.css +153 -31
- package/dist/id/AppSwitcher/AppSwitcher.d.ts +31 -6
- package/dist/id/AppSwitcher/AppSwitcher.js +91 -38
- package/dist/id/AppSwitcher/AppSwitcher.module.js +12 -6
- package/dist/id/AppSwitcher/index.d.ts +2 -2
- package/dist/id/ConnectedApps/ConnectedApps.css +16 -0
- package/dist/id/ConnectedApps/ConnectedApps.d.ts +32 -0
- package/dist/id/ConnectedApps/ConnectedApps.js +80 -0
- package/dist/id/ConnectedApps/ConnectedApps.module.js +7 -0
- package/dist/id/ConnectedApps/index.d.ts +2 -0
- package/dist/id/ConsentScreen/ConsentScreen.css +196 -0
- package/dist/id/ConsentScreen/ConsentScreen.d.ts +43 -0
- package/dist/id/ConsentScreen/ConsentScreen.js +181 -0
- package/dist/id/ConsentScreen/ConsentScreen.module.js +26 -0
- package/dist/id/CookieConsent/CookieConsent.css +128 -0
- package/dist/id/CookieConsent/CookieConsent.d.ts +32 -0
- package/dist/id/CookieConsent/CookieConsent.js +120 -0
- package/dist/id/CookieConsent/CookieConsent.module.js +16 -0
- package/dist/id/DeviceList/DeviceList.d.ts +31 -0
- package/dist/id/DeviceList/DeviceList.js +81 -0
- package/dist/id/DeviceList/index.d.ts +2 -0
- package/dist/id/OrgInvitation/OrgInvitation.css +87 -0
- package/dist/id/OrgInvitation/OrgInvitation.d.ts +31 -0
- package/dist/id/OrgInvitation/OrgInvitation.js +130 -0
- package/dist/id/OrgInvitation/OrgInvitation.module.js +14 -0
- package/dist/id/OrgSwitcher/OrgSwitcher.css +129 -17
- package/dist/id/OrgSwitcher/OrgSwitcher.d.ts +30 -5
- package/dist/id/OrgSwitcher/OrgSwitcher.js +112 -76
- package/dist/id/OrgSwitcher/OrgSwitcher.module.js +11 -7
- package/dist/id/OrgSwitcher/index.d.ts +2 -2
- package/dist/id/PasskeyButton/PasskeyButton.css +34 -0
- package/dist/id/PasskeyButton/PasskeyButton.d.ts +25 -0
- package/dist/id/PasskeyButton/PasskeyButton.js +66 -0
- package/dist/id/PasskeyButton/PasskeyButton.module.js +7 -0
- package/dist/id/PermissionGate/PermissionGate.css +25 -14
- package/dist/id/PermissionGate/PermissionGate.d.ts +3 -1
- package/dist/id/PermissionGate/PermissionGate.js +15 -8
- package/dist/id/PermissionGate/PermissionGate.module.js +6 -5
- package/dist/id/ProfileCard/ProfileCard.css +119 -0
- package/dist/id/ProfileCard/ProfileCard.d.ts +27 -0
- package/dist/id/ProfileCard/ProfileCard.js +111 -0
- package/dist/id/ProfileCard/ProfileCard.module.js +19 -0
- package/dist/id/ProfileCard/index.d.ts +2 -0
- package/dist/id/ReauthDialog/ReauthDialog.css +41 -0
- package/dist/id/ReauthDialog/ReauthDialog.d.ts +34 -0
- package/dist/id/ReauthDialog/ReauthDialog.js +162 -0
- package/dist/id/ReauthDialog/ReauthDialog.module.js +10 -0
- package/dist/id/ReauthDialog/index.d.ts +2 -0
- package/dist/id/RecoveryCodes/RecoveryCodes.css +85 -0
- package/dist/id/RecoveryCodes/RecoveryCodes.d.ts +25 -0
- package/dist/id/RecoveryCodes/RecoveryCodes.js +107 -0
- package/dist/id/RecoveryCodes/RecoveryCodes.module.js +12 -0
- package/dist/id/SecurityCheckup/SecurityCheckup.css +155 -0
- package/dist/id/SecurityCheckup/SecurityCheckup.d.ts +28 -0
- package/dist/id/SecurityCheckup/SecurityCheckup.js +107 -0
- package/dist/id/SecurityCheckup/SecurityCheckup.module.js +19 -0
- package/dist/id/SecurityCheckup/index.d.ts +2 -0
- package/dist/id/SessionList/SessionList.d.ts +37 -0
- package/dist/id/SessionList/SessionList.js +81 -0
- package/dist/id/SessionList/index.d.ts +2 -0
- package/dist/id/SignInButton/SignInButton.css +179 -0
- package/dist/id/SignInButton/SignInButton.d.ts +12 -3
- package/dist/id/SignInButton/SignInButton.js +37 -18
- package/dist/id/SignInButton/SignInButton.module.js +10 -0
- package/dist/id/SignInMethods/SignInMethods.css +24 -0
- package/dist/id/SignInMethods/SignInMethods.d.ts +33 -0
- package/dist/id/SignInMethods/SignInMethods.js +80 -0
- package/dist/id/SignInMethods/SignInMethods.module.js +8 -0
- package/dist/id/SignInMethods/index.d.ts +2 -0
- package/dist/id/TwoFactorSetup/TwoFactorSetup.css +123 -0
- package/dist/id/TwoFactorSetup/TwoFactorSetup.d.ts +27 -0
- package/dist/id/TwoFactorSetup/TwoFactorSetup.js +162 -0
- package/dist/id/TwoFactorSetup/TwoFactorSetup.module.js +18 -0
- package/dist/id/TwoFactorSetup/index.d.ts +2 -0
- package/dist/id/VerifyEmailBanner/VerifyEmailBanner.css +14 -0
- package/dist/id/VerifyEmailBanner/VerifyEmailBanner.d.ts +22 -0
- package/dist/id/VerifyEmailBanner/VerifyEmailBanner.js +68 -0
- package/dist/id/VerifyEmailBanner/VerifyEmailBanner.module.js +7 -0
- package/dist/id/_internal/SecurityList/SecurityList.css +179 -0
- package/dist/id/_internal/SecurityList/SecurityList.js +92 -0
- package/dist/id/_internal/SecurityList/SecurityList.module.js +24 -0
- package/dist/id/_internal/StiMark/StiMark.css +28 -0
- package/dist/id/_internal/StiMark/StiMark.js +37 -0
- package/dist/id/_internal/StiMark/StiMark.module.js +8 -0
- package/dist/id/index.d.ts +30 -4
- package/dist/id/index.js +20 -4
- package/dist/index.d.ts +68 -14
- package/dist/index.js +54 -18
- package/dist/maps/LocationPicker/LocationPicker.js +2 -2
- package/dist/maps/MapView/MapView.css +31 -31
- package/dist/maps/MapView/MapView.js +2 -2
- package/dist/maps/MapView/MapView.module.js +18 -18
- package/dist/maps/StoreLocator/StoreLocator.js +1 -1
- package/dist/maps/TurkeyMap/TurkeyMap.js +1 -1
- package/dist/maps/index.js +1 -1
- package/dist/media/AudioPlayer/AudioPlayer.css +21 -16
- package/dist/media/AudioPlayer/AudioPlayer.js +6 -6
- package/dist/media/AudioPlayer/AudioPlayer.module.js +11 -11
- package/dist/media/Embed/Embed.css +93 -0
- package/dist/media/Embed/Embed.d.ts +29 -0
- package/dist/media/Embed/Embed.js +93 -0
- package/dist/media/Embed/Embed.module.js +12 -0
- package/dist/media/Embed/embedUrl.d.ts +27 -0
- package/dist/media/Embed/embedUrl.js +96 -0
- package/dist/media/ImageCompare/ImageCompare.css +199 -0
- package/dist/media/ImageCompare/ImageCompare.d.ts +30 -0
- package/dist/media/ImageCompare/ImageCompare.js +106 -0
- package/dist/media/ImageCompare/ImageCompare.module.js +15 -0
- package/dist/media/ImageCropper/ImageCropper.css +139 -0
- package/dist/media/ImageCropper/ImageCropper.d.ts +27 -0
- package/dist/media/ImageCropper/ImageCropper.js +239 -0
- package/dist/media/ImageCropper/ImageCropper.module.js +14 -0
- package/dist/media/ImageCropper/cropGeometry.d.ts +41 -0
- package/dist/media/ImageCropper/cropGeometry.js +79 -0
- package/dist/media/MediaCard/MediaCard.js +2 -2
- package/dist/media/MockupFrame/MockupFrame.css +196 -0
- package/dist/media/MockupFrame/MockupFrame.d.ts +24 -0
- package/dist/media/MockupFrame/MockupFrame.js +62 -0
- package/dist/media/MockupFrame/MockupFrame.module.js +14 -0
- package/dist/media/MockupFrame/index.d.ts +2 -0
- package/dist/media/PdfViewer/PdfViewer.css +144 -0
- package/dist/media/PdfViewer/PdfViewer.d.ts +28 -0
- package/dist/media/PdfViewer/PdfViewer.js +122 -0
- package/dist/media/PdfViewer/PdfViewer.module.js +18 -0
- package/dist/media/VideoPlayer/VideoPlayer.js +1 -1
- package/dist/media/VideoThumbnail/VideoThumbnail.js +1 -1
- package/dist/media/ZoomableImage/ZoomableImage.css +122 -0
- package/dist/media/ZoomableImage/ZoomableImage.d.ts +32 -0
- package/dist/media/ZoomableImage/ZoomableImage.js +278 -0
- package/dist/media/ZoomableImage/ZoomableImage.module.js +12 -0
- package/dist/media/_internal/transport/MediaTransport.css +19 -13
- package/dist/media/_internal/transport/MediaTransport.js +5 -3
- package/dist/media/_internal/transport/MediaTransport.module.js +10 -9
- package/dist/media/_internal/url.js +4 -2
- package/dist/media/index.d.ts +10 -1
- package/dist/media/index.js +9 -1
- package/dist/messages/messages.d.ts +748 -0
- package/dist/messages/messages.js +1498 -2
- package/dist/provider/UIProvider.d.ts +1 -1
- package/dist/site/ArticleLayout/ArticleLayout.css +137 -0
- package/dist/site/ArticleLayout/ArticleLayout.d.ts +39 -0
- package/dist/site/ArticleLayout/ArticleLayout.js +92 -0
- package/dist/site/ArticleLayout/ArticleLayout.module.js +18 -0
- package/dist/site/ArticleLayout/index.d.ts +2 -0
- package/dist/site/AuroraMesh/AuroraMesh.css +97 -0
- package/dist/site/AuroraMesh/AuroraMesh.d.ts +17 -0
- package/dist/site/AuroraMesh/AuroraMesh.js +38 -0
- package/dist/site/AuroraMesh/AuroraMesh.module.js +11 -0
- package/dist/site/AuroraMesh/index.d.ts +2 -0
- package/dist/site/AuthorBox/AuthorBox.css +79 -0
- package/dist/site/AuthorBox/AuthorBox.d.ts +22 -0
- package/dist/site/AuthorBox/AuthorBox.js +56 -0
- package/dist/site/AuthorBox/AuthorBox.module.js +13 -0
- package/dist/site/AuthorBox/index.d.ts +2 -0
- package/dist/site/AwardsStrip/AwardsStrip.css +114 -0
- package/dist/site/AwardsStrip/AwardsStrip.d.ts +27 -0
- package/dist/site/AwardsStrip/AwardsStrip.js +62 -0
- package/dist/site/AwardsStrip/AwardsStrip.module.js +15 -0
- package/dist/site/AwardsStrip/index.d.ts +2 -0
- package/dist/site/BentoGrid/BentoGrid.css +187 -0
- package/dist/site/BentoGrid/BentoGrid.d.ts +34 -0
- package/dist/site/BentoGrid/BentoGrid.js +63 -0
- package/dist/site/BentoGrid/BentoGrid.module.js +15 -0
- package/dist/site/BentoGrid/index.d.ts +2 -0
- package/dist/site/BlogCard/BlogCard.css +136 -0
- package/dist/site/BlogCard/BlogCard.d.ts +24 -0
- package/dist/site/BlogCard/BlogCard.js +54 -0
- package/dist/site/BlogCard/BlogCard.module.js +14 -0
- package/dist/site/BlogCard/index.d.ts +2 -0
- package/dist/site/CareerList/CareerList.css +156 -0
- package/dist/site/CareerList/CareerList.d.ts +31 -0
- package/dist/site/CareerList/CareerList.js +96 -0
- package/dist/site/CareerList/CareerList.module.js +20 -0
- package/dist/site/CareerList/index.d.ts +2 -0
- package/dist/site/CaseStudyCard/CaseStudyCard.css +178 -0
- package/dist/site/CaseStudyCard/CaseStudyCard.d.ts +28 -0
- package/dist/site/CaseStudyCard/CaseStudyCard.js +71 -0
- package/dist/site/CaseStudyCard/CaseStudyCard.module.js +21 -0
- package/dist/site/CaseStudyCard/index.d.ts +2 -0
- package/dist/site/ComparisonTable/ComparisonTable.css +152 -0
- package/dist/site/ComparisonTable/ComparisonTable.d.ts +33 -0
- package/dist/site/ComparisonTable/ComparisonTable.js +83 -0
- package/dist/site/ComparisonTable/ComparisonTable.module.js +17 -0
- package/dist/site/ComparisonTable/index.d.ts +2 -0
- package/dist/site/ContactForm/ContactForm.css +87 -0
- package/dist/site/ContactForm/ContactForm.d.ts +32 -0
- package/dist/site/ContactForm/ContactForm.js +164 -0
- package/dist/site/ContactForm/ContactForm.module.js +17 -0
- package/dist/site/ContactForm/index.d.ts +2 -0
- package/dist/site/CountUp/CountUp.css +17 -0
- package/dist/site/CountUp/CountUp.d.ts +21 -0
- package/dist/site/CountUp/CountUp.js +65 -0
- package/dist/site/CountUp/CountUp.module.js +7 -0
- package/dist/site/CtaBand/CtaBand.css +108 -0
- package/dist/site/CtaBand/CtaBand.d.ts +26 -0
- package/dist/site/CtaBand/CtaBand.js +52 -0
- package/dist/site/CtaBand/CtaBand.module.js +13 -0
- package/dist/site/CtaBand/index.d.ts +2 -0
- package/dist/site/EventCard/EventCard.css +155 -0
- package/dist/site/EventCard/EventCard.d.ts +31 -0
- package/dist/site/EventCard/EventCard.js +106 -0
- package/dist/site/EventCard/EventCard.module.js +20 -0
- package/dist/site/EventCard/index.d.ts +2 -0
- package/dist/site/Faq/Faq.css +21 -0
- package/dist/site/Faq/Faq.d.ts +27 -0
- package/dist/site/Faq/Faq.js +45 -0
- package/dist/site/Faq/Faq.module.js +7 -0
- package/dist/site/Faq/index.d.ts +2 -0
- package/dist/site/FeatureGrid/FeatureGrid.css +125 -0
- package/dist/site/FeatureGrid/FeatureGrid.d.ts +28 -0
- package/dist/site/FeatureGrid/FeatureGrid.js +52 -0
- package/dist/site/FeatureGrid/FeatureGrid.module.js +12 -0
- package/dist/site/FeatureGrid/index.d.ts +2 -0
- package/dist/site/FeatureSplit/FeatureSplit.css +95 -0
- package/dist/site/FeatureSplit/FeatureSplit.d.ts +27 -0
- package/dist/site/FeatureSplit/FeatureSplit.js +67 -0
- package/dist/site/FeatureSplit/FeatureSplit.module.js +16 -0
- package/dist/site/FeatureSplit/index.d.ts +2 -0
- package/dist/site/Gallery/Gallery.css +80 -0
- package/dist/site/Gallery/Gallery.d.ts +16 -0
- package/dist/site/Gallery/Gallery.js +55 -0
- package/dist/site/Gallery/Gallery.module.js +10 -0
- package/dist/site/Gallery/index.d.ts +2 -0
- package/dist/site/Hero/Hero.css +147 -0
- package/dist/site/Hero/Hero.d.ts +38 -0
- package/dist/site/Hero/Hero.js +66 -0
- package/dist/site/Hero/Hero.module.js +15 -0
- package/dist/site/Hero/index.d.ts +2 -0
- package/dist/site/JsonLd/JsonLd.d.ts +24 -0
- package/dist/site/JsonLd/JsonLd.js +29 -0
- package/dist/site/LogoCloud/LogoCloud.css +74 -0
- package/dist/site/LogoCloud/LogoCloud.d.ts +24 -0
- package/dist/site/LogoCloud/LogoCloud.js +42 -0
- package/dist/site/LogoCloud/LogoCloud.module.js +10 -0
- package/dist/site/LogoCloud/index.d.ts +2 -0
- package/dist/site/Marquee/Marquee.css +101 -0
- package/dist/site/Marquee/Marquee.d.ts +22 -0
- package/dist/site/Marquee/Marquee.js +60 -0
- package/dist/site/Marquee/Marquee.module.js +12 -0
- package/dist/site/Marquee/index.d.ts +2 -0
- package/dist/site/NewsletterForm/NewsletterForm.css +76 -0
- package/dist/site/NewsletterForm/NewsletterForm.d.ts +24 -0
- package/dist/site/NewsletterForm/NewsletterForm.js +98 -0
- package/dist/site/NewsletterForm/NewsletterForm.module.js +15 -0
- package/dist/site/NewsletterForm/index.d.ts +2 -0
- package/dist/site/OgImage/OgImage.css +78 -0
- package/dist/site/OgImage/OgImage.d.ts +26 -0
- package/dist/site/OgImage/OgImage.js +110 -0
- package/dist/site/OgImage/OgImage.module.js +12 -0
- package/dist/site/OgImage/index.d.ts +2 -0
- package/dist/site/PortfolioGrid/PortfolioGrid.css +117 -0
- package/dist/site/PortfolioGrid/PortfolioGrid.d.ts +27 -0
- package/dist/site/PortfolioGrid/PortfolioGrid.js +90 -0
- package/dist/site/PortfolioGrid/PortfolioGrid.module.js +15 -0
- package/dist/site/PortfolioGrid/index.d.ts +2 -0
- package/dist/site/PressMentions/PressMentions.css +115 -0
- package/dist/site/PressMentions/PressMentions.d.ts +25 -0
- package/dist/site/PressMentions/PressMentions.js +67 -0
- package/dist/site/PressMentions/PressMentions.module.js +15 -0
- package/dist/site/PressMentions/index.d.ts +2 -0
- package/dist/site/PricingSection/PricingSection.css +64 -0
- package/dist/site/PricingSection/PricingSection.d.ts +24 -0
- package/dist/site/PricingSection/PricingSection.js +51 -0
- package/dist/site/PricingSection/PricingSection.module.js +10 -0
- package/dist/site/PricingSection/index.d.ts +2 -0
- package/dist/site/ProcessSteps/ProcessSteps.css +102 -0
- package/dist/site/ProcessSteps/ProcessSteps.d.ts +22 -0
- package/dist/site/ProcessSteps/ProcessSteps.js +49 -0
- package/dist/site/ProcessSteps/ProcessSteps.module.js +13 -0
- package/dist/site/ProcessSteps/index.d.ts +2 -0
- package/dist/site/RelatedPosts/RelatedPosts.css +15 -0
- package/dist/site/RelatedPosts/RelatedPosts.d.ts +14 -0
- package/dist/site/RelatedPosts/RelatedPosts.js +32 -0
- package/dist/site/RelatedPosts/RelatedPosts.module.js +7 -0
- package/dist/site/RelatedPosts/index.d.ts +2 -0
- package/dist/site/Reveal/Reveal.css +39 -0
- package/dist/site/Reveal/Reveal.d.ts +18 -0
- package/dist/site/Reveal/Reveal.js +42 -0
- package/dist/site/Reveal/Reveal.module.js +4 -0
- package/dist/site/Reveal/index.d.ts +2 -0
- package/dist/site/ScrollProgress/ScrollProgress.css +32 -0
- package/dist/site/ScrollProgress/ScrollProgress.d.ts +16 -0
- package/dist/site/ScrollProgress/ScrollProgress.js +54 -0
- package/dist/site/ScrollProgress/ScrollProgress.module.js +7 -0
- package/dist/site/ServiceCard/ServiceCard.css +125 -0
- package/dist/site/ServiceCard/ServiceCard.d.ts +25 -0
- package/dist/site/ServiceCard/ServiceCard.js +65 -0
- package/dist/site/ServiceCard/ServiceCard.module.js +16 -0
- package/dist/site/ServiceCard/index.d.ts +2 -0
- package/dist/site/ShareBar/ShareBar.css +97 -0
- package/dist/site/ShareBar/ShareBar.d.ts +26 -0
- package/dist/site/ShareBar/ShareBar.js +111 -0
- package/dist/site/ShareBar/ShareBar.module.js +11 -0
- package/dist/site/Showreel/Showreel.css +107 -0
- package/dist/site/Showreel/Showreel.d.ts +28 -0
- package/dist/site/Showreel/Showreel.js +108 -0
- package/dist/site/Showreel/Showreel.module.js +14 -0
- package/dist/site/Showreel/index.d.ts +2 -0
- package/dist/site/SocialLinks/SocialLinks.css +95 -0
- package/dist/site/SocialLinks/SocialLinks.d.ts +33 -0
- package/dist/site/SocialLinks/SocialLinks.js +97 -0
- package/dist/site/SocialLinks/SocialLinks.module.js +9 -0
- package/dist/site/SocialLinks/index.d.ts +2 -0
- package/dist/site/StatsBand/StatsBand.css +58 -0
- package/dist/site/StatsBand/StatsBand.d.ts +26 -0
- package/dist/site/StatsBand/StatsBand.js +44 -0
- package/dist/site/StatsBand/StatsBand.module.js +10 -0
- package/dist/site/StatsBand/index.d.ts +2 -0
- package/dist/site/StickyCta/StickyCta.js +1 -1
- package/dist/site/TeamGrid/TeamGrid.css +60 -0
- package/dist/site/TeamGrid/TeamGrid.d.ts +22 -0
- package/dist/site/TeamGrid/TeamGrid.js +65 -0
- package/dist/site/TeamGrid/TeamGrid.module.js +13 -0
- package/dist/site/TeamGrid/index.d.ts +2 -0
- package/dist/site/Testimonial/Testimonial.css +100 -0
- package/dist/site/Testimonial/Testimonial.d.ts +33 -0
- package/dist/site/Testimonial/Testimonial.js +61 -0
- package/dist/site/Testimonial/Testimonial.module.js +14 -0
- package/dist/site/Testimonial/index.d.ts +2 -0
- package/dist/site/_internal/Honeypot.css +10 -0
- package/dist/site/_internal/Honeypot.js +28 -0
- package/dist/site/_internal/Honeypot.module.js +4 -0
- package/dist/site/_internal/PostMeta.css +53 -0
- package/dist/site/_internal/PostMeta.d.ts +6 -0
- package/dist/site/_internal/PostMeta.js +42 -0
- package/dist/site/_internal/PostMeta.module.js +10 -0
- package/dist/site/_internal/SiteSection.css +116 -0
- package/dist/site/_internal/SiteSection.d.ts +15 -0
- package/dist/site/_internal/SiteSection.js +60 -0
- package/dist/site/_internal/SiteSection.module.js +13 -0
- package/dist/site/index.d.ts +71 -1
- package/dist/site/index.js +38 -1
- package/dist/styles.css +38210 -20635
- package/dist/text/text.d.ts +5 -1
- package/dist/text/text.js +8 -2
- package/package.json +2 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export interface ApiKey {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
/** Anahtarın görünür başı ("sti_live_4f9a"); gizli kısmı asla verilmez. */
|
|
6
|
+
prefix: string;
|
|
7
|
+
/** İzin adları ("Raporları okuma"). */
|
|
8
|
+
scopes?: readonly string[];
|
|
9
|
+
createdAt: Date | string | number;
|
|
10
|
+
lastUsedAt?: Date | string | number;
|
|
11
|
+
expiresAt?: Date | string | number;
|
|
12
|
+
}
|
|
13
|
+
export interface ApiKeyListProps {
|
|
14
|
+
keys: readonly ApiKey[];
|
|
15
|
+
title?: ReactNode;
|
|
16
|
+
description?: ReactNode;
|
|
17
|
+
/** "Yeni anahtar oluşturun" (ad ve izin seçimi uygulamanın penceresindedir). */
|
|
18
|
+
onCreate?: () => void;
|
|
19
|
+
/** Anahtarı iptal eder (söz dönerse beklenir). */
|
|
20
|
+
onRevoke?: (id: string) => void | Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Az önce oluşturulan anahtarın tamamı: yalnız bir kez gösterilir, kopyalanır, kapatılınca
|
|
23
|
+
* `onDismissSecret` ile uygulama belleğinden de silmelidir.
|
|
24
|
+
*/
|
|
25
|
+
newSecret?: {
|
|
26
|
+
name: string;
|
|
27
|
+
value: string;
|
|
28
|
+
};
|
|
29
|
+
onDismissSecret?: () => void;
|
|
30
|
+
/** Süresi bu kadar gün içinde dolacak anahtar uyarı rozeti alır. */
|
|
31
|
+
expiryWarningDays?: number;
|
|
32
|
+
now?: Date | string | number;
|
|
33
|
+
className?: string;
|
|
34
|
+
id?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* API anahtarları: ad, görünür başlangıç (gizli kısım yok), izinler, oluşturma, son kullanım ve
|
|
38
|
+
* son geçerlilik (yaklaşan ve dolmuş rozetleri); oluşturma ve iptal. Yeni anahtarın tamamı yalnız
|
|
39
|
+
* bir kez, uyarıyla ve kopyalama düğmesiyle gösterilir.
|
|
40
|
+
*/
|
|
41
|
+
export declare function ApiKeyList({ keys, title, description, onCreate, onRevoke, newSecret, onDismissSecret, expiryWarningDays, now, className, id }: ApiKeyListProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useFormatter, useMessages } from "../../provider/UIProvider.js";
|
|
3
|
+
import { template } from "../../text/text.js";
|
|
4
|
+
import { VisuallyHidden } from "../../components/VisuallyHidden/VisuallyHidden.js";
|
|
5
|
+
import { Button } from "../../components/Button/Button.js";
|
|
6
|
+
import { Badge } from "../../components/Badge/Badge.js";
|
|
7
|
+
import { CopyButton } from "../../components/CopyButton/CopyButton.js";
|
|
8
|
+
import { PlusIcon } from "../../icons/generated/PlusIcon.js";
|
|
9
|
+
import { KeyIcon } from "../../icons/generated/KeyIcon.js";
|
|
10
|
+
import { SecurityItem, SecurityList } from "../_internal/SecurityList/SecurityList.js";
|
|
11
|
+
import ApiKeyList_module_default from "./ApiKeyList.module.js";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useState } from "react";
|
|
14
|
+
// src/id/ApiKeyList/ApiKeyList.tsx
|
|
15
|
+
const DAY = 864e5;
|
|
16
|
+
/**
|
|
17
|
+
* API anahtarları: ad, görünür başlangıç (gizli kısım yok), izinler, oluşturma, son kullanım ve
|
|
18
|
+
* son geçerlilik (yaklaşan ve dolmuş rozetleri); oluşturma ve iptal. Yeni anahtarın tamamı yalnız
|
|
19
|
+
* bir kez, uyarıyla ve kopyalama düğmesiyle gösterilir.
|
|
20
|
+
*/
|
|
21
|
+
function ApiKeyList({ keys, title, description, onCreate, onRevoke, newSecret, onDismissSecret, expiryWarningDays = 14, now, className, id }) {
|
|
22
|
+
const t = useMessages();
|
|
23
|
+
const fmt = useFormatter();
|
|
24
|
+
const [initialNow] = useState(() => Date.now());
|
|
25
|
+
const [pending, setPending] = useState(null);
|
|
26
|
+
const current = new Date(now ?? initialNow).getTime();
|
|
27
|
+
const expiry = (k) => {
|
|
28
|
+
if (k.expiresAt === void 0) return null;
|
|
29
|
+
const left = new Date(k.expiresAt).getTime() - current;
|
|
30
|
+
if (left <= 0) return /* @__PURE__ */ jsx(Badge, {
|
|
31
|
+
tone: "danger",
|
|
32
|
+
children: t.idApiKeyExpired
|
|
33
|
+
});
|
|
34
|
+
if (left <= expiryWarningDays * DAY) return /* @__PURE__ */ jsx(Badge, {
|
|
35
|
+
tone: "warning",
|
|
36
|
+
children: template(t.idApiKeyExpiresSoon, { days: Math.ceil(left / DAY) })
|
|
37
|
+
});
|
|
38
|
+
return null;
|
|
39
|
+
};
|
|
40
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
41
|
+
className: [ApiKeyList_module_default.root, className].filter(Boolean).join(" "),
|
|
42
|
+
id,
|
|
43
|
+
children: [newSecret ? /* @__PURE__ */ jsxs("section", {
|
|
44
|
+
className: ApiKeyList_module_default.secret,
|
|
45
|
+
"aria-labelledby": `${id ?? "api"}-secret`,
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsx("h3", {
|
|
48
|
+
id: `${id ?? "api"}-secret`,
|
|
49
|
+
className: ApiKeyList_module_default.secretTitle,
|
|
50
|
+
children: template(t.idApiKeyCreated, { name: newSecret.name })
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ jsx("p", {
|
|
53
|
+
className: ApiKeyList_module_default.secretNote,
|
|
54
|
+
children: t.idApiKeyShownOnce
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ jsxs("div", {
|
|
57
|
+
className: ApiKeyList_module_default.secretRow,
|
|
58
|
+
children: [/* @__PURE__ */ jsx("code", {
|
|
59
|
+
className: ApiKeyList_module_default.secretValue,
|
|
60
|
+
children: newSecret.value
|
|
61
|
+
}), /* @__PURE__ */ jsx(CopyButton, {
|
|
62
|
+
value: newSecret.value,
|
|
63
|
+
label: t.idApiKeyCopy
|
|
64
|
+
})]
|
|
65
|
+
}),
|
|
66
|
+
onDismissSecret ? /* @__PURE__ */ jsx(Button, {
|
|
67
|
+
variant: "secondary",
|
|
68
|
+
size: "sm",
|
|
69
|
+
onPress: onDismissSecret,
|
|
70
|
+
className: ApiKeyList_module_default.secretDone,
|
|
71
|
+
children: t.idApiKeySaved
|
|
72
|
+
}) : null
|
|
73
|
+
]
|
|
74
|
+
}) : null, /* @__PURE__ */ jsx(SecurityList, {
|
|
75
|
+
label: t.idApiKeys,
|
|
76
|
+
title: title ?? t.idApiKeys,
|
|
77
|
+
description: description ?? t.idApiKeysDescription,
|
|
78
|
+
action: onCreate ? /* @__PURE__ */ jsx(Button, {
|
|
79
|
+
variant: "secondary",
|
|
80
|
+
size: "sm",
|
|
81
|
+
iconStart: /* @__PURE__ */ jsx(PlusIcon, {}),
|
|
82
|
+
onPress: onCreate,
|
|
83
|
+
children: t.idApiKeyCreate
|
|
84
|
+
}) : null,
|
|
85
|
+
isEmpty: keys.length === 0,
|
|
86
|
+
empty: t.idApiKeysEmpty,
|
|
87
|
+
children: keys.map((k) => {
|
|
88
|
+
const badge = expiry(k);
|
|
89
|
+
return /* @__PURE__ */ jsx(SecurityItem, {
|
|
90
|
+
icon: /* @__PURE__ */ jsx(KeyIcon, {}),
|
|
91
|
+
tone: k.expiresAt !== void 0 && new Date(k.expiresAt).getTime() <= current ? "danger" : badge ? "warning" : void 0,
|
|
92
|
+
title: k.name,
|
|
93
|
+
badges: badge,
|
|
94
|
+
meta: [
|
|
95
|
+
/* @__PURE__ */ jsx("code", {
|
|
96
|
+
className: ApiKeyList_module_default.prefix,
|
|
97
|
+
children: `${k.prefix}…`
|
|
98
|
+
}, "p"),
|
|
99
|
+
template(t.idApiKeyCreatedAt, { date: fmt.date(new Date(k.createdAt)) }),
|
|
100
|
+
k.lastUsedAt ? template(t.idDeviceLastUsed, { time: fmt.relative(new Date(k.lastUsedAt), new Date(current)) }) : t.idDeviceNeverUsed,
|
|
101
|
+
k.expiresAt ? template(t.idApiKeyExpiresAt, { date: fmt.date(new Date(k.expiresAt)) }) : null
|
|
102
|
+
],
|
|
103
|
+
extra: k.scopes && k.scopes.length > 0 ? /* @__PURE__ */ jsx("ul", {
|
|
104
|
+
className: ApiKeyList_module_default.scopes,
|
|
105
|
+
"aria-label": t.idApiKeyScopes,
|
|
106
|
+
children: k.scopes.map((s) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Badge, {
|
|
107
|
+
tone: "neutral",
|
|
108
|
+
children: s
|
|
109
|
+
}) }, s))
|
|
110
|
+
}) : null,
|
|
111
|
+
actions: onRevoke ? /* @__PURE__ */ jsxs(Button, {
|
|
112
|
+
variant: "ghost",
|
|
113
|
+
size: "sm",
|
|
114
|
+
isPending: pending === k.id,
|
|
115
|
+
isDisabled: pending !== null && pending !== k.id,
|
|
116
|
+
onPress: async () => {
|
|
117
|
+
setPending(k.id);
|
|
118
|
+
try {
|
|
119
|
+
await onRevoke(k.id);
|
|
120
|
+
} finally {
|
|
121
|
+
setPending(null);
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
children: [t.idApiKeyRevoke, /* @__PURE__ */ jsx(VisuallyHidden, { children: ` (${k.name})` })]
|
|
125
|
+
}) : null
|
|
126
|
+
}, k.id);
|
|
127
|
+
})
|
|
128
|
+
})]
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
export { ApiKeyList };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import './ApiKeyList.css';
|
|
2
|
+
// src/id/ApiKeyList/ApiKeyList.module.css
|
|
3
|
+
var ApiKeyList_module_default = {
|
|
4
|
+
"root": "sti-ApiKeyList-root-c1173",
|
|
5
|
+
"secret": "sti-ApiKeyList-secret-2b7b1",
|
|
6
|
+
"secretTitle": "sti-ApiKeyList-secretTitle-eada3",
|
|
7
|
+
"secretNote": "sti-ApiKeyList-secretNote-399bb",
|
|
8
|
+
"secretRow": "sti-ApiKeyList-secretRow-32136",
|
|
9
|
+
"secretValue": "sti-ApiKeyList-secretValue-f5f84",
|
|
10
|
+
"secretDone": "sti-ApiKeyList-secretDone-44ea2",
|
|
11
|
+
"prefix": "sti-ApiKeyList-prefix-eefe1",
|
|
12
|
+
"scopes": "sti-ApiKeyList-scopes-89292"
|
|
13
|
+
};
|
|
14
|
+
export { ApiKeyList_module_default as default };
|
|
@@ -1,31 +1,58 @@
|
|
|
1
1
|
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
2
|
@layer sti.components {
|
|
3
|
-
.sti-AppSwitcher-
|
|
4
|
-
|
|
3
|
+
.sti-AppSwitcher-trigger-4e70a {
|
|
4
|
+
flex: none;
|
|
5
|
+
align-self: center;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.sti-AppSwitcher-card-225e3 {
|
|
9
|
+
--sti-floating-w: 21rem;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.sti-AppSwitcher-panel-a6602 {
|
|
13
|
+
gap: var(--sti-space-3);
|
|
14
|
+
min-inline-size: 0;
|
|
15
|
+
color: var(--sti-fg);
|
|
5
16
|
font-family: var(--sti-font-text);
|
|
17
|
+
display: grid;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.sti-AppSwitcher-title-6d2e0 {
|
|
21
|
+
padding-inline: var(--sti-space-1);
|
|
22
|
+
color: var(--sti-fg);
|
|
23
|
+
font-size: var(--sti-font-size-sm);
|
|
24
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
25
|
+
line-height: var(--sti-line-height-sm);
|
|
26
|
+
margin: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.sti-AppSwitcher-grid-337c1 {
|
|
30
|
+
gap: var(--sti-space-1);
|
|
31
|
+
padding: var(--sti-space-1);
|
|
32
|
+
border-radius: var(--sti-radius-lg);
|
|
33
|
+
background: var(--sti-bg-subtle);
|
|
6
34
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
7
35
|
margin: 0;
|
|
8
|
-
padding: 0;
|
|
9
36
|
list-style: none;
|
|
10
37
|
display: grid;
|
|
11
38
|
}
|
|
12
39
|
|
|
13
40
|
@media (width <= 22.5rem) {
|
|
14
|
-
.sti-AppSwitcher-grid-
|
|
41
|
+
.sti-AppSwitcher-grid-337c1 {
|
|
15
42
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
16
43
|
}
|
|
17
44
|
}
|
|
18
45
|
|
|
19
|
-
.sti-AppSwitcher-cell-
|
|
46
|
+
.sti-AppSwitcher-cell-8b890 {
|
|
20
47
|
min-inline-size: 0;
|
|
21
48
|
}
|
|
22
49
|
|
|
23
|
-
.sti-AppSwitcher-app-
|
|
50
|
+
.sti-AppSwitcher-app-4fff1 {
|
|
24
51
|
align-items: center;
|
|
25
52
|
gap: var(--sti-space-2);
|
|
26
53
|
box-sizing: border-box;
|
|
27
|
-
min-block-size:
|
|
28
|
-
padding: var(--sti-space-3) var(--sti-space-2);
|
|
54
|
+
min-block-size: 6rem;
|
|
55
|
+
padding: var(--sti-space-3) var(--sti-space-1) var(--sti-space-2);
|
|
29
56
|
border: var(--sti-border-width) solid transparent;
|
|
30
57
|
border-radius: var(--sti-radius-md);
|
|
31
58
|
color: var(--sti-fg);
|
|
@@ -36,73 +63,168 @@
|
|
|
36
63
|
flex-direction: column;
|
|
37
64
|
text-decoration: none;
|
|
38
65
|
display: flex;
|
|
66
|
+
position: relative;
|
|
39
67
|
}
|
|
40
68
|
|
|
41
69
|
@media (hover: hover) {
|
|
42
|
-
.sti-AppSwitcher-app-
|
|
70
|
+
.sti-AppSwitcher-app-4fff1[data-hovered] {
|
|
43
71
|
background: var(--sti-bg-surface-hover);
|
|
44
72
|
}
|
|
45
73
|
}
|
|
46
74
|
|
|
47
|
-
.sti-AppSwitcher-app-
|
|
75
|
+
.sti-AppSwitcher-app-4fff1[data-pressed] {
|
|
48
76
|
background: var(--sti-bg-surface-active);
|
|
49
77
|
}
|
|
50
78
|
|
|
51
|
-
.sti-AppSwitcher-app-
|
|
79
|
+
.sti-AppSwitcher-app-4fff1[data-current] {
|
|
52
80
|
border-color: var(--sti-border-selected);
|
|
53
81
|
background: var(--sti-bg-accent-subtle);
|
|
54
82
|
}
|
|
55
83
|
|
|
56
|
-
.sti-AppSwitcher-app-
|
|
84
|
+
.sti-AppSwitcher-app-4fff1[data-focus-visible] {
|
|
57
85
|
outline: var(--sti-focus-ring-width) solid var(--sti-focus-ring);
|
|
58
|
-
outline-offset: var(--sti-focus-ring-
|
|
86
|
+
outline-offset: calc(var(--sti-focus-ring-width) * -1);
|
|
59
87
|
}
|
|
60
88
|
|
|
61
|
-
.sti-AppSwitcher-tile-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
89
|
+
.sti-AppSwitcher-tile-3c344 {
|
|
90
|
+
--sti-app-tile-bg: var(--sti-bg-surface);
|
|
91
|
+
--sti-app-tile-fg: var(--sti-fg);
|
|
92
|
+
box-sizing: border-box;
|
|
93
|
+
border-radius: var(--sti-radius-lg);
|
|
94
|
+
background: var(--sti-app-tile-bg);
|
|
95
|
+
block-size: 3rem;
|
|
96
|
+
inline-size: 3rem;
|
|
97
|
+
color: var(--sti-app-tile-fg);
|
|
98
|
+
font-family: var(--sti-font-display);
|
|
99
|
+
font-size: var(--sti-font-size-lg);
|
|
68
100
|
font-weight: var(--sti-font-weight-semibold);
|
|
101
|
+
letter-spacing: var(--sti-tracking-lg);
|
|
102
|
+
box-shadow: inset 0 0 0 var(--sti-border-width) var(--sti-border-subtle);
|
|
69
103
|
flex: none;
|
|
70
104
|
place-items: center;
|
|
105
|
+
line-height: 1;
|
|
71
106
|
display: inline-grid;
|
|
72
107
|
}
|
|
73
108
|
|
|
74
|
-
.sti-AppSwitcher-
|
|
75
|
-
|
|
76
|
-
color: var(--sti-fg-on-accent);
|
|
109
|
+
.sti-AppSwitcher-tile-3c344[data-icon] {
|
|
110
|
+
font-size: var(--sti-icon-lg);
|
|
77
111
|
}
|
|
78
112
|
|
|
79
|
-
.sti-AppSwitcher-
|
|
80
|
-
|
|
81
|
-
|
|
113
|
+
.sti-AppSwitcher-tile-3c344[data-icon] > svg {
|
|
114
|
+
block-size: 1.5rem;
|
|
115
|
+
inline-size: 1.5rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.sti-AppSwitcher-tile-3c344[data-color="neutral"] {
|
|
119
|
+
--sti-app-tile-bg: var(--sti-bg-surface-active);
|
|
120
|
+
--sti-app-tile-fg: var(--sti-fg);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.sti-AppSwitcher-tile-3c344[data-color="neutral-strong"] {
|
|
124
|
+
--sti-app-tile-bg: var(--sti-fill-neutral);
|
|
125
|
+
--sti-app-tile-fg: var(--sti-fg-on-neutral);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.sti-AppSwitcher-tile-3c344[data-color="success"] {
|
|
129
|
+
--sti-app-tile-bg: var(--sti-bg-success-subtle);
|
|
130
|
+
--sti-app-tile-fg: var(--sti-fg-success-strong);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.sti-AppSwitcher-tile-3c344[data-color="success-strong"] {
|
|
134
|
+
--sti-app-tile-bg: var(--sti-fill-success);
|
|
135
|
+
--sti-app-tile-fg: var(--sti-fg-on-success);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.sti-AppSwitcher-tile-3c344[data-color="warning"] {
|
|
139
|
+
--sti-app-tile-bg: var(--sti-bg-warning-subtle);
|
|
140
|
+
--sti-app-tile-fg: var(--sti-fg-warning-strong);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.sti-AppSwitcher-tile-3c344[data-color="warning-strong"] {
|
|
144
|
+
--sti-app-tile-bg: var(--sti-fill-warning);
|
|
145
|
+
--sti-app-tile-fg: var(--sti-fg-on-warning);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.sti-AppSwitcher-name-d8837 {
|
|
149
|
+
max-inline-size: 100%;
|
|
150
|
+
font-size: var(--sti-font-size-xs);
|
|
82
151
|
font-weight: var(--sti-font-weight-medium);
|
|
83
|
-
line-height: var(--sti-line-height-
|
|
152
|
+
line-height: var(--sti-line-height-xs);
|
|
84
153
|
overflow-wrap: anywhere;
|
|
154
|
+
-webkit-line-clamp: 2;
|
|
155
|
+
-webkit-box-orient: vertical;
|
|
156
|
+
display: -webkit-box;
|
|
157
|
+
overflow: hidden;
|
|
85
158
|
}
|
|
86
159
|
|
|
87
|
-
.sti-AppSwitcher-empty-
|
|
160
|
+
.sti-AppSwitcher-empty-21386 {
|
|
161
|
+
padding: var(--sti-space-4) var(--sti-space-3);
|
|
162
|
+
border-radius: var(--sti-radius-lg);
|
|
163
|
+
background: var(--sti-bg-subtle);
|
|
88
164
|
color: var(--sti-fg-muted);
|
|
89
165
|
font-size: var(--sti-font-size-sm);
|
|
90
166
|
line-height: var(--sti-line-height-sm);
|
|
167
|
+
text-align: center;
|
|
91
168
|
margin: 0;
|
|
92
169
|
}
|
|
93
170
|
|
|
171
|
+
.sti-AppSwitcher-more-0361c {
|
|
172
|
+
justify-content: center;
|
|
173
|
+
align-items: center;
|
|
174
|
+
gap: var(--sti-space-1);
|
|
175
|
+
min-block-size: var(--sti-control-h-sm);
|
|
176
|
+
border-radius: var(--sti-radius-pill);
|
|
177
|
+
color: var(--sti-fg-link);
|
|
178
|
+
font-size: var(--sti-font-size-sm);
|
|
179
|
+
font-weight: var(--sti-font-weight-medium);
|
|
180
|
+
line-height: var(--sti-line-height-sm);
|
|
181
|
+
cursor: pointer;
|
|
182
|
+
text-decoration: none;
|
|
183
|
+
display: inline-flex;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.sti-AppSwitcher-moreIcon-8c7d2 {
|
|
187
|
+
block-size: 1em;
|
|
188
|
+
inline-size: 1em;
|
|
189
|
+
transition: translate var(--sti-duration-fast) var(--sti-ease-snap);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
@media (hover: hover) {
|
|
193
|
+
.sti-AppSwitcher-more-0361c[data-hovered] {
|
|
194
|
+
text-underline-offset: .2em;
|
|
195
|
+
text-decoration: underline;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.sti-AppSwitcher-more-0361c[data-hovered] .sti-AppSwitcher-moreIcon-8c7d2 {
|
|
199
|
+
translate: .125rem;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.sti-AppSwitcher-more-0361c[data-focus-visible] {
|
|
204
|
+
outline: var(--sti-focus-ring-width) solid var(--sti-focus-ring);
|
|
205
|
+
outline-offset: var(--sti-focus-ring-offset);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.sti-AppSwitcher-moreIcon-8c7d2:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
209
|
+
scale: -1 1;
|
|
210
|
+
}
|
|
211
|
+
|
|
94
212
|
@media (forced-colors: active) {
|
|
95
|
-
.sti-AppSwitcher-app-
|
|
213
|
+
.sti-AppSwitcher-app-4fff1[data-current] {
|
|
96
214
|
border-color: highlight;
|
|
97
215
|
}
|
|
98
216
|
|
|
99
|
-
.sti-AppSwitcher-app-
|
|
217
|
+
.sti-AppSwitcher-app-4fff1[data-focus-visible], .sti-AppSwitcher-more-0361c[data-focus-visible] {
|
|
100
218
|
outline-color: highlight;
|
|
101
219
|
}
|
|
220
|
+
|
|
221
|
+
.sti-AppSwitcher-tile-3c344, .sti-AppSwitcher-grid-337c1 {
|
|
222
|
+
border: var(--sti-border-width) solid CanvasText;
|
|
223
|
+
}
|
|
102
224
|
}
|
|
103
225
|
|
|
104
226
|
@media (prefers-reduced-motion: reduce) {
|
|
105
|
-
.sti-AppSwitcher-app-
|
|
227
|
+
.sti-AppSwitcher-app-4fff1, .sti-AppSwitcher-moreIcon-8c7d2 {
|
|
106
228
|
transition: none;
|
|
107
229
|
}
|
|
108
230
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AvatarColor } from "../../components/Avatar/Avatar.js";
|
|
1
2
|
import { Placement } from "../../components/_internal/overlay/FloatingCard.js";
|
|
2
3
|
import "../../components/Popover/Popover.js";
|
|
3
4
|
import { ReactNode } from "react";
|
|
@@ -7,13 +8,25 @@ export interface AppSwitcherApp {
|
|
|
7
8
|
name: string;
|
|
8
9
|
/** Uygulamanın adresi. */
|
|
9
10
|
href: string;
|
|
10
|
-
/** Karodaki ikon (süs); yoksa
|
|
11
|
+
/** Karodaki ikon (süs); yoksa kısaltma yazılır ("STI Office" → "O", "STI ID" → "ID"). */
|
|
11
12
|
icon?: ReactNode;
|
|
13
|
+
/** Karonun rengi (ikonlu ve kısaltmalı karoda); verilmezse anahtardan kalıcı olarak seçilir (Avatar paleti). */
|
|
14
|
+
color?: AvatarColor;
|
|
12
15
|
/** Geçerli uygulama: işaretlenir ve ekran okuyucuya bildirilir. */
|
|
13
16
|
isCurrent?: boolean;
|
|
14
17
|
}
|
|
15
|
-
export interface
|
|
18
|
+
export interface AppSwitcherPanelProps {
|
|
16
19
|
apps: readonly AppSwitcherApp[];
|
|
20
|
+
/** Panelin başlığı; varsayılan "STI uygulamaları". */
|
|
21
|
+
title?: string;
|
|
22
|
+
/** Verilirse altta "Tüm uygulamalar" bağlantısı çıkar. */
|
|
23
|
+
moreHref?: string;
|
|
24
|
+
/** Bir bağlantı seçildiğinde çağrılır; açılır kutuda paneli kapatır. */
|
|
25
|
+
onAction?: () => void;
|
|
26
|
+
className?: string;
|
|
27
|
+
id?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface AppSwitcherProps extends Omit<AppSwitcherPanelProps, "onAction" | "id"> {
|
|
17
30
|
/** Tetikleyicinin adı; varsayılan "STI uygulamaları". */
|
|
18
31
|
label?: string;
|
|
19
32
|
size?: "sm" | "md" | "lg";
|
|
@@ -21,11 +34,23 @@ export interface AppSwitcherProps {
|
|
|
21
34
|
isOpen?: boolean;
|
|
22
35
|
defaultOpen?: boolean;
|
|
23
36
|
onOpenChange?: (open: boolean) => void;
|
|
24
|
-
|
|
37
|
+
/** Tetikleyici düğmenin kimliği. */
|
|
25
38
|
id?: string;
|
|
26
39
|
}
|
|
27
40
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
41
|
+
* Karodaki kısaltma: "STI" ön eki atılır; kalan ad en çok üç harfse olduğu gibi ("ID"), değilse
|
|
42
|
+
* ilk harf ("Office" → "O").
|
|
43
|
+
*/
|
|
44
|
+
export declare function appMonogram(name: string): string;
|
|
45
|
+
/**
|
|
46
|
+
* Uygulama ızgarası: başlık, uygulama karoları (ikon ya da kısaltma, ad) ve isteğe bağlı "Tüm
|
|
47
|
+
* uygulamalar" bağlantısı. `AppSwitcher` bunu açılır kutuda çizer; uygulama bir sayfada ya da dar
|
|
48
|
+
* ekran çekmecesinde doğrudan kullanabilir.
|
|
49
|
+
*/
|
|
50
|
+
export declare function AppSwitcherPanel({ apps, title, moreHref, onAction, className, id }: AppSwitcherPanelProps): import("react").JSX.Element;
|
|
51
|
+
/**
|
|
52
|
+
* Uygulama değiştirici: ızgara düğmesi ve hesabın erişebildiği STI uygulamalarının paneli
|
|
53
|
+
* (`AppSwitcherPanel`). Açılır kutu (APG Dialog); içeride bağlantılar Tab ile ve ok tuşlarıyla
|
|
54
|
+
* gezilir.
|
|
30
55
|
*/
|
|
31
|
-
export declare function AppSwitcher({
|
|
56
|
+
export declare function AppSwitcher({ label, size, placement, isOpen, defaultOpen, onOpenChange, className, id, ...panel }: AppSwitcherProps): import("react").JSX.Element;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useMessages } from "../../provider/UIProvider.js";
|
|
3
|
-
import {
|
|
3
|
+
import { avatarColorOf } from "../../components/Avatar/Avatar.js";
|
|
4
4
|
import { VisuallyHidden } from "../../components/VisuallyHidden/VisuallyHidden.js";
|
|
5
|
+
import { IconButton } from "../../components/IconButton/IconButton.js";
|
|
6
|
+
import { ArrowRightIcon } from "../../icons/generated/ArrowRightIcon.js";
|
|
5
7
|
import { Popover as Popover$1 } from "../../components/Popover/Popover.js";
|
|
6
8
|
import { AppsIcon } from "../../icons/generated/AppsIcon.js";
|
|
7
9
|
import AppSwitcher_module_default from "./AppSwitcher.module.js";
|
|
@@ -24,16 +26,94 @@ function onGridKeyDown(event) {
|
|
|
24
26
|
else if (event.key === "End") next = links.length - 1;
|
|
25
27
|
else if (ARROWS[event.key]) {
|
|
26
28
|
const cols = Math.max(1, getComputedStyle(event.currentTarget).gridTemplateColumns.split(" ").length);
|
|
27
|
-
|
|
29
|
+
const rtl = getComputedStyle(event.currentTarget).direction === "rtl";
|
|
30
|
+
const step = ARROWS[event.key]?.(cols) ?? 0;
|
|
31
|
+
const horizontal = event.key === "ArrowLeft" || event.key === "ArrowRight";
|
|
32
|
+
next = Math.min(links.length - 1, Math.max(0, index + (rtl && horizontal ? -step : step)));
|
|
28
33
|
} else return;
|
|
29
34
|
event.preventDefault();
|
|
30
35
|
links[next]?.focus();
|
|
31
36
|
}
|
|
32
37
|
/**
|
|
33
|
-
*
|
|
34
|
-
*
|
|
38
|
+
* Karodaki kısaltma: "STI" ön eki atılır; kalan ad en çok üç harfse olduğu gibi ("ID"), değilse
|
|
39
|
+
* ilk harf ("Office" → "O").
|
|
40
|
+
*/
|
|
41
|
+
function appMonogram(name) {
|
|
42
|
+
const rest = name.trim().replace(/^sti\s+/i, "").trim() || name.trim();
|
|
43
|
+
const letters = Array.from(rest);
|
|
44
|
+
if (letters.length <= 3 && !/\s/.test(rest)) return rest.toLocaleUpperCase("tr-TR");
|
|
45
|
+
return (letters[0] ?? "").toLocaleUpperCase("tr-TR");
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Uygulama ızgarası: başlık, uygulama karoları (ikon ya da kısaltma, ad) ve isteğe bağlı "Tüm
|
|
49
|
+
* uygulamalar" bağlantısı. `AppSwitcher` bunu açılır kutuda çizer; uygulama bir sayfada ya da dar
|
|
50
|
+
* ekran çekmecesinde doğrudan kullanabilir.
|
|
51
|
+
*/
|
|
52
|
+
function AppSwitcherPanel({ apps, title, moreHref, onAction, className, id }) {
|
|
53
|
+
const t = useMessages();
|
|
54
|
+
const heading = title ?? t.idAppSwitcher;
|
|
55
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
56
|
+
id,
|
|
57
|
+
className: [AppSwitcher_module_default.panel, className].filter(Boolean).join(" "),
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ jsx("p", {
|
|
60
|
+
className: AppSwitcher_module_default.title,
|
|
61
|
+
children: heading
|
|
62
|
+
}),
|
|
63
|
+
apps.length === 0 ? /* @__PURE__ */ jsx("p", {
|
|
64
|
+
className: AppSwitcher_module_default.empty,
|
|
65
|
+
children: t.idAppSwitcherEmpty
|
|
66
|
+
}) : /* @__PURE__ */ jsx("ul", {
|
|
67
|
+
className: AppSwitcher_module_default.grid,
|
|
68
|
+
"aria-label": heading,
|
|
69
|
+
onKeyDown: onGridKeyDown,
|
|
70
|
+
children: apps.map((app) => /* @__PURE__ */ jsx("li", {
|
|
71
|
+
className: AppSwitcher_module_default.cell,
|
|
72
|
+
children: /* @__PURE__ */ jsxs(Link, {
|
|
73
|
+
className: AppSwitcher_module_default.app,
|
|
74
|
+
href: app.href,
|
|
75
|
+
"data-current": app.isCurrent ? "" : void 0,
|
|
76
|
+
"aria-current": app.isCurrent ? "true" : void 0,
|
|
77
|
+
onPress: onAction,
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ jsx("span", {
|
|
80
|
+
className: AppSwitcher_module_default.tile,
|
|
81
|
+
"data-color": app.color ?? avatarColorOf(app.id),
|
|
82
|
+
"data-icon": app.icon ? "" : void 0,
|
|
83
|
+
"aria-hidden": "true",
|
|
84
|
+
children: app.icon ?? appMonogram(app.name)
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ jsx("span", {
|
|
87
|
+
className: AppSwitcher_module_default.name,
|
|
88
|
+
children: app.name
|
|
89
|
+
}),
|
|
90
|
+
app.isCurrent ? /* @__PURE__ */ jsxs(VisuallyHidden, { children: [
|
|
91
|
+
" (",
|
|
92
|
+
t.idAppSwitcherCurrent,
|
|
93
|
+
")"
|
|
94
|
+
] }) : null
|
|
95
|
+
]
|
|
96
|
+
})
|
|
97
|
+
}, app.id))
|
|
98
|
+
}),
|
|
99
|
+
moreHref ? /* @__PURE__ */ jsxs(Link, {
|
|
100
|
+
href: moreHref,
|
|
101
|
+
className: AppSwitcher_module_default.more,
|
|
102
|
+
onPress: onAction,
|
|
103
|
+
children: [t.idAppSwitcherMore, /* @__PURE__ */ jsx(ArrowRightIcon, {
|
|
104
|
+
className: AppSwitcher_module_default.moreIcon,
|
|
105
|
+
"aria-hidden": "true"
|
|
106
|
+
})]
|
|
107
|
+
}) : null
|
|
108
|
+
]
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Uygulama değiştirici: ızgara düğmesi ve hesabın erişebildiği STI uygulamalarının paneli
|
|
113
|
+
* (`AppSwitcherPanel`). Açılır kutu (APG Dialog); içeride bağlantılar Tab ile ve ok tuşlarıyla
|
|
114
|
+
* gezilir.
|
|
35
115
|
*/
|
|
36
|
-
function AppSwitcher({
|
|
116
|
+
function AppSwitcher({ label, size = "md", placement = "bottom end", isOpen, defaultOpen, onOpenChange, className, id, ...panel }) {
|
|
37
117
|
const t = useMessages();
|
|
38
118
|
const name = label ?? t.idAppSwitcher;
|
|
39
119
|
return /* @__PURE__ */ jsx(Popover$1, {
|
|
@@ -43,46 +123,19 @@ function AppSwitcher({ apps, label, size = "md", placement = "bottom end", isOpe
|
|
|
43
123
|
placement,
|
|
44
124
|
"aria-label": name,
|
|
45
125
|
size: "md",
|
|
126
|
+
className: AppSwitcher_module_default.card,
|
|
46
127
|
trigger: /* @__PURE__ */ jsx(IconButton, {
|
|
47
128
|
id,
|
|
48
|
-
className,
|
|
129
|
+
className: [AppSwitcher_module_default.trigger, className].filter(Boolean).join(" "),
|
|
49
130
|
label: name,
|
|
50
131
|
icon: /* @__PURE__ */ jsx(AppsIcon, {}),
|
|
51
132
|
variant: "ghost",
|
|
52
133
|
size
|
|
53
134
|
}),
|
|
54
|
-
children:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}) : /* @__PURE__ */ jsx("ul", {
|
|
58
|
-
className: AppSwitcher_module_default.grid,
|
|
59
|
-
onKeyDown: onGridKeyDown,
|
|
60
|
-
children: apps.map((app) => /* @__PURE__ */ jsx("li", {
|
|
61
|
-
className: AppSwitcher_module_default.cell,
|
|
62
|
-
children: /* @__PURE__ */ jsxs(Link, {
|
|
63
|
-
className: AppSwitcher_module_default.app,
|
|
64
|
-
href: app.href,
|
|
65
|
-
"data-current": app.isCurrent ? "" : void 0,
|
|
66
|
-
"aria-current": app.isCurrent ? "true" : void 0,
|
|
67
|
-
children: [
|
|
68
|
-
/* @__PURE__ */ jsx("span", {
|
|
69
|
-
className: AppSwitcher_module_default.tile,
|
|
70
|
-
"aria-hidden": "true",
|
|
71
|
-
children: app.icon ?? Array.from(app.name.trim())[0]?.toLocaleUpperCase("tr-TR")
|
|
72
|
-
}),
|
|
73
|
-
/* @__PURE__ */ jsx("span", {
|
|
74
|
-
className: AppSwitcher_module_default.name,
|
|
75
|
-
children: app.name
|
|
76
|
-
}),
|
|
77
|
-
app.isCurrent ? /* @__PURE__ */ jsxs(VisuallyHidden, { children: [
|
|
78
|
-
" (",
|
|
79
|
-
t.idAppSwitcherCurrent,
|
|
80
|
-
")"
|
|
81
|
-
] }) : null
|
|
82
|
-
]
|
|
83
|
-
})
|
|
84
|
-
}, app.id))
|
|
135
|
+
children: (close) => /* @__PURE__ */ jsx(AppSwitcherPanel, {
|
|
136
|
+
...panel,
|
|
137
|
+
onAction: close
|
|
85
138
|
})
|
|
86
139
|
});
|
|
87
140
|
}
|
|
88
|
-
export { AppSwitcher };
|
|
141
|
+
export { AppSwitcher, AppSwitcherPanel, appMonogram };
|