@stisocial/ui 0.2.1 → 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 +68 -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/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.js +1 -1
- 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.js +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.js +3 -3
- 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/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/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/index.d.ts +27 -1
- package/dist/id/index.js +17 -1
- package/dist/index.d.ts +66 -13
- package/dist/index.js +52 -17
- 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 +741 -0
- package/dist/messages/messages.js +1484 -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 +38171 -21134
- package/package.json +2 -1
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { useFormatter, useMessages } from "../../provider/UIProvider.js";
|
|
2
|
+
import { template } from "../../text/text.js";
|
|
3
|
+
import { ProgressBar } from "../../components/ProgressBar/ProgressBar.js";
|
|
4
|
+
import CartSummary_module_default from "./CartSummary.module.js";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
// src/commerce/CartSummary/CartSummary.tsx
|
|
7
|
+
/** Genel toplam: ara toplam + kargo + ek satırlar + indirimler (eksi), en az 0. */
|
|
8
|
+
function cartTotal(subtotal, shipping = 0, lines = []) {
|
|
9
|
+
return Math.max(0, subtotal + shipping + lines.reduce((s, l) => s + l.amount, 0));
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Sepet özeti: ara toplam, indirimler, kargo, ek satırlar ve genel toplam (tanım listesi);
|
|
13
|
+
* ücretsiz kargoya kalan tutar ve ilerleme çubuğu; KDV dahil notu; eylem alanı.
|
|
14
|
+
*/
|
|
15
|
+
function CartSummary({ subtotal, shipping, discounts = [], extras = [], freeShippingThreshold, currency, vatIncluded = true, children, title, className, id }) {
|
|
16
|
+
const t = useMessages();
|
|
17
|
+
const f = useFormatter();
|
|
18
|
+
const money = (v) => f.currency(v, { currency });
|
|
19
|
+
const total = cartTotal(subtotal, shipping ?? 0, [...discounts, ...extras]);
|
|
20
|
+
const remaining = freeShippingThreshold !== void 0 ? Math.max(0, freeShippingThreshold - subtotal) : null;
|
|
21
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
22
|
+
id,
|
|
23
|
+
className: [CartSummary_module_default.root, className].filter(Boolean).join(" "),
|
|
24
|
+
"aria-label": title ?? t.commerceSummary,
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ jsx("p", {
|
|
27
|
+
className: CartSummary_module_default.title,
|
|
28
|
+
children: title ?? t.commerceSummary
|
|
29
|
+
}),
|
|
30
|
+
remaining !== null && freeShippingThreshold ? /* @__PURE__ */ jsx("div", {
|
|
31
|
+
className: CartSummary_module_default.free,
|
|
32
|
+
children: /* @__PURE__ */ jsx(ProgressBar, {
|
|
33
|
+
label: remaining > 0 ? template(t.commerceFreeShippingLeft, { amount: money(remaining) }) : t.commerceFreeShippingReached,
|
|
34
|
+
value: Math.min(subtotal, freeShippingThreshold),
|
|
35
|
+
maxValue: freeShippingThreshold,
|
|
36
|
+
showValueLabel: false,
|
|
37
|
+
tone: remaining > 0 ? "accent" : "success",
|
|
38
|
+
size: "sm"
|
|
39
|
+
})
|
|
40
|
+
}) : null,
|
|
41
|
+
/* @__PURE__ */ jsxs("dl", {
|
|
42
|
+
className: CartSummary_module_default.lines,
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ jsxs("div", {
|
|
45
|
+
className: CartSummary_module_default.line,
|
|
46
|
+
children: [/* @__PURE__ */ jsx("dt", { children: t.commerceSubtotal }), /* @__PURE__ */ jsx("dd", { children: money(subtotal) })]
|
|
47
|
+
}),
|
|
48
|
+
discounts.map((d, i) => /* @__PURE__ */ jsxs("div", {
|
|
49
|
+
className: CartSummary_module_default.line,
|
|
50
|
+
"data-discount": "",
|
|
51
|
+
children: [/* @__PURE__ */ jsx("dt", { children: d.label }), /* @__PURE__ */ jsx("dd", { children: money(d.amount) })]
|
|
52
|
+
}, `d${i}`)),
|
|
53
|
+
extras.map((d, i) => /* @__PURE__ */ jsxs("div", {
|
|
54
|
+
className: CartSummary_module_default.line,
|
|
55
|
+
children: [/* @__PURE__ */ jsx("dt", { children: d.label }), /* @__PURE__ */ jsx("dd", { children: money(d.amount) })]
|
|
56
|
+
}, `e${i}`)),
|
|
57
|
+
/* @__PURE__ */ jsxs("div", {
|
|
58
|
+
className: CartSummary_module_default.line,
|
|
59
|
+
children: [/* @__PURE__ */ jsx("dt", { children: t.commerceShipping }), /* @__PURE__ */ jsx("dd", {
|
|
60
|
+
"data-muted": shipping === void 0 ? "" : void 0,
|
|
61
|
+
children: shipping === void 0 ? t.commerceShippingLater : shipping === 0 ? t.commerceShippingFree : money(shipping)
|
|
62
|
+
})]
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ jsxs("div", {
|
|
65
|
+
className: CartSummary_module_default.totalLine,
|
|
66
|
+
children: [/* @__PURE__ */ jsx("dt", { children: t.commerceTotal }), /* @__PURE__ */ jsx("dd", { children: money(total) })]
|
|
67
|
+
})
|
|
68
|
+
]
|
|
69
|
+
}),
|
|
70
|
+
vatIncluded ? /* @__PURE__ */ jsx("p", {
|
|
71
|
+
className: CartSummary_module_default.vat,
|
|
72
|
+
children: t.commerceVatIncluded
|
|
73
|
+
}) : null,
|
|
74
|
+
children ? /* @__PURE__ */ jsx("div", {
|
|
75
|
+
className: CartSummary_module_default.actions,
|
|
76
|
+
children
|
|
77
|
+
}) : null
|
|
78
|
+
]
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
export { CartSummary, cartTotal };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './CartSummary.css';
|
|
2
|
+
// src/commerce/CartSummary/CartSummary.module.css
|
|
3
|
+
var CartSummary_module_default = {
|
|
4
|
+
"root": "sti-CartSummary-root-4ba9a",
|
|
5
|
+
"title": "sti-CartSummary-title-13c5c",
|
|
6
|
+
"lines": "sti-CartSummary-lines-bf94b",
|
|
7
|
+
"line": "sti-CartSummary-line-7b323",
|
|
8
|
+
"totalLine": "sti-CartSummary-totalLine-fe694",
|
|
9
|
+
"vat": "sti-CartSummary-vat-cec7e",
|
|
10
|
+
"actions": "sti-CartSummary-actions-a445f"
|
|
11
|
+
};
|
|
12
|
+
export { CartSummary_module_default as default };
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-CheckoutSteps-root-71301 {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
inline-size: 100%;
|
|
6
|
+
font-family: var(--sti-font-text);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.sti-CheckoutSteps-compact-e9192, .sti-CheckoutSteps-track-d2636 {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.sti-CheckoutSteps-list-e4923 {
|
|
14
|
+
align-items: center;
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
list-style: none;
|
|
18
|
+
display: flex;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.sti-CheckoutSteps-step-83dc7 {
|
|
22
|
+
flex: 1;
|
|
23
|
+
align-items: center;
|
|
24
|
+
min-inline-size: 0;
|
|
25
|
+
display: flex;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.sti-CheckoutSteps-step-83dc7:last-child {
|
|
29
|
+
flex: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.sti-CheckoutSteps-step-83dc7:not(:last-child):after {
|
|
33
|
+
block-size: var(--sti-border-width);
|
|
34
|
+
margin-inline: var(--sti-space-3);
|
|
35
|
+
background: var(--sti-border);
|
|
36
|
+
content: "";
|
|
37
|
+
flex: 1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.sti-CheckoutSteps-step-83dc7[data-status="done"]:not(:last-child):after {
|
|
41
|
+
background: var(--sti-border-accent);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.sti-CheckoutSteps-link-b1647 {
|
|
45
|
+
align-items: center;
|
|
46
|
+
gap: var(--sti-space-2);
|
|
47
|
+
border-radius: var(--sti-radius-pill);
|
|
48
|
+
color: var(--sti-fg-muted);
|
|
49
|
+
font-size: var(--sti-font-size-sm);
|
|
50
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
text-decoration: none;
|
|
53
|
+
display: inline-flex;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
a.sti-CheckoutSteps-link-b1647:hover .sti-CheckoutSteps-label-2e441 {
|
|
57
|
+
text-underline-offset: .2em;
|
|
58
|
+
text-decoration: underline;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
a.sti-CheckoutSteps-link-b1647:focus-visible {
|
|
62
|
+
outline: var(--sti-focus-ring-width) solid var(--sti-focus-ring);
|
|
63
|
+
outline-offset: var(--sti-focus-ring-offset);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.sti-CheckoutSteps-step-83dc7[data-status="current"] .sti-CheckoutSteps-link-b1647, .sti-CheckoutSteps-step-83dc7[data-status="done"] .sti-CheckoutSteps-link-b1647 {
|
|
67
|
+
color: var(--sti-fg);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.sti-CheckoutSteps-marker-efc62 {
|
|
71
|
+
box-sizing: border-box;
|
|
72
|
+
inline-size: var(--sti-space-8);
|
|
73
|
+
block-size: var(--sti-space-8);
|
|
74
|
+
border: var(--sti-border-width) solid var(--sti-border);
|
|
75
|
+
border-radius: var(--sti-radius-pill);
|
|
76
|
+
font-variant-numeric: tabular-nums;
|
|
77
|
+
flex: none;
|
|
78
|
+
place-items: center;
|
|
79
|
+
display: grid;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.sti-CheckoutSteps-marker-efc62 > svg {
|
|
83
|
+
inline-size: var(--sti-space-4);
|
|
84
|
+
block-size: var(--sti-space-4);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.sti-CheckoutSteps-step-83dc7[data-status="done"] .sti-CheckoutSteps-marker-efc62 {
|
|
88
|
+
background: var(--sti-fill-accent);
|
|
89
|
+
color: var(--sti-fg-on-accent);
|
|
90
|
+
border-color: #0000;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.sti-CheckoutSteps-step-83dc7[data-status="current"] .sti-CheckoutSteps-marker-efc62 {
|
|
94
|
+
border: var(--sti-border-width-strong) solid var(--sti-border-accent);
|
|
95
|
+
color: var(--sti-fg-accent-strong);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@media (width <= 40rem) {
|
|
99
|
+
.sti-CheckoutSteps-list-e4923 {
|
|
100
|
+
clip-path: inset(50%);
|
|
101
|
+
block-size: 1px;
|
|
102
|
+
inline-size: 1px;
|
|
103
|
+
position: absolute;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.sti-CheckoutSteps-compact-e9192 {
|
|
108
|
+
gap: var(--sti-space-2);
|
|
109
|
+
margin: 0 0 var(--sti-space-2);
|
|
110
|
+
font-size: var(--sti-font-size-sm);
|
|
111
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
112
|
+
display: flex;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.sti-CheckoutSteps-compactCount-e11fc {
|
|
116
|
+
color: var(--sti-fg-muted);
|
|
117
|
+
font-weight: var(--sti-font-weight-regular);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.sti-CheckoutSteps-track-d2636 {
|
|
121
|
+
block-size: var(--sti-space-1);
|
|
122
|
+
border-radius: var(--sti-radius-pill);
|
|
123
|
+
background: var(--sti-bg-subtle);
|
|
124
|
+
display: block;
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.sti-CheckoutSteps-fill-2d75d {
|
|
129
|
+
background: var(--sti-fill-accent);
|
|
130
|
+
block-size: 100%;
|
|
131
|
+
scale: var(--sti-step-ratio, 0) 1;
|
|
132
|
+
transform-origin: 0;
|
|
133
|
+
display: block;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.sti-CheckoutSteps-srOnly-9f12e {
|
|
138
|
+
clip-path: inset(50%);
|
|
139
|
+
white-space: nowrap;
|
|
140
|
+
block-size: 1px;
|
|
141
|
+
inline-size: 1px;
|
|
142
|
+
margin: -1px;
|
|
143
|
+
position: absolute;
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@media (forced-colors: active) {
|
|
148
|
+
.sti-CheckoutSteps-step-83dc7[data-status="current"] .sti-CheckoutSteps-marker-efc62 {
|
|
149
|
+
border-color: highlight;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface CheckoutStep {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
/** Tamamlanan adıma dönüş adresi. */
|
|
5
|
+
href?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CheckoutStepsProps {
|
|
8
|
+
/** Varsayılan: Sepet, Teslimat, Ödeme, Onay. */
|
|
9
|
+
steps?: readonly CheckoutStep[];
|
|
10
|
+
/** Şimdiki adımın kimliği. */
|
|
11
|
+
current: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
id?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Ödeme adımları: sepet, teslimat, ödeme, onay. Tamamlanan adımlar onay işaretli ve geri dönmek
|
|
17
|
+
* için bağlantı; şimdiki adım `aria-current="step"`; sonraki adımlar soluk. Dar ekranda yalnız
|
|
18
|
+
* "Adım 2 / 4: Teslimat" ve ilerleme çizgisi.
|
|
19
|
+
*/
|
|
20
|
+
export declare function CheckoutSteps({ steps, current, className, id }: CheckoutStepsProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { useFormatter, useMessages } from "../../provider/UIProvider.js";
|
|
2
|
+
import { template } from "../../text/text.js";
|
|
3
|
+
import { CheckIcon } from "../../icons/generated/CheckIcon.js";
|
|
4
|
+
import CheckoutSteps_module_default from "./CheckoutSteps.module.js";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
// src/commerce/CheckoutSteps/CheckoutSteps.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Ödeme adımları: sepet, teslimat, ödeme, onay. Tamamlanan adımlar onay işaretli ve geri dönmek
|
|
9
|
+
* için bağlantı; şimdiki adım `aria-current="step"`; sonraki adımlar soluk. Dar ekranda yalnız
|
|
10
|
+
* "Adım 2 / 4: Teslimat" ve ilerleme çizgisi.
|
|
11
|
+
*/
|
|
12
|
+
function CheckoutSteps({ steps, current, className, id }) {
|
|
13
|
+
const t = useMessages();
|
|
14
|
+
const f = useFormatter();
|
|
15
|
+
const list = steps ?? [
|
|
16
|
+
{
|
|
17
|
+
id: "cart",
|
|
18
|
+
label: t.commerceStepCart
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: "shipping",
|
|
22
|
+
label: t.commerceStepShipping
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: "payment",
|
|
26
|
+
label: t.commerceStepPayment
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: "review",
|
|
30
|
+
label: t.commerceStepReview
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
const index = Math.max(0, list.findIndex((s) => s.id === current));
|
|
34
|
+
const currentStep = list[index];
|
|
35
|
+
return /* @__PURE__ */ jsxs("nav", {
|
|
36
|
+
id,
|
|
37
|
+
className: [CheckoutSteps_module_default.root, className].filter(Boolean).join(" "),
|
|
38
|
+
"aria-label": t.commerceSteps,
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ jsxs("p", {
|
|
41
|
+
className: CheckoutSteps_module_default.compact,
|
|
42
|
+
"aria-hidden": "true",
|
|
43
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
44
|
+
className: CheckoutSteps_module_default.compactCount,
|
|
45
|
+
children: template(t.commerceStepOf, {
|
|
46
|
+
current: f.number(index + 1),
|
|
47
|
+
total: f.number(list.length)
|
|
48
|
+
})
|
|
49
|
+
}), currentStep?.label]
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ jsx("span", {
|
|
52
|
+
className: CheckoutSteps_module_default.track,
|
|
53
|
+
"aria-hidden": "true",
|
|
54
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
55
|
+
className: CheckoutSteps_module_default.fill,
|
|
56
|
+
ref: (el) => el?.style.setProperty("--sti-step-ratio", String((index + 1) / list.length))
|
|
57
|
+
})
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ jsx("ol", {
|
|
60
|
+
className: CheckoutSteps_module_default.list,
|
|
61
|
+
children: list.map((s, i) => {
|
|
62
|
+
const status = i < index ? "done" : i === index ? "current" : "upcoming";
|
|
63
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
64
|
+
/* @__PURE__ */ jsx("span", {
|
|
65
|
+
className: CheckoutSteps_module_default.marker,
|
|
66
|
+
"aria-hidden": "true",
|
|
67
|
+
children: status === "done" ? /* @__PURE__ */ jsx(CheckIcon, {}) : f.number(i + 1)
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ jsx("span", {
|
|
70
|
+
className: CheckoutSteps_module_default.label,
|
|
71
|
+
children: s.label
|
|
72
|
+
}),
|
|
73
|
+
status === "done" ? /* @__PURE__ */ jsx("span", {
|
|
74
|
+
className: CheckoutSteps_module_default.srOnly,
|
|
75
|
+
children: ` (${t.commerceStepDone})`
|
|
76
|
+
}) : null
|
|
77
|
+
] });
|
|
78
|
+
return /* @__PURE__ */ jsx("li", {
|
|
79
|
+
className: CheckoutSteps_module_default.step,
|
|
80
|
+
"data-status": status,
|
|
81
|
+
children: status === "done" && s.href ? /* @__PURE__ */ jsx("a", {
|
|
82
|
+
className: CheckoutSteps_module_default.link,
|
|
83
|
+
href: s.href,
|
|
84
|
+
children: content
|
|
85
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
86
|
+
className: CheckoutSteps_module_default.link,
|
|
87
|
+
"aria-current": status === "current" ? "step" : void 0,
|
|
88
|
+
children: content
|
|
89
|
+
})
|
|
90
|
+
}, s.id);
|
|
91
|
+
})
|
|
92
|
+
})
|
|
93
|
+
]
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
export { CheckoutSteps };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import './CheckoutSteps.css';
|
|
2
|
+
// src/commerce/CheckoutSteps/CheckoutSteps.module.css
|
|
3
|
+
var CheckoutSteps_module_default = {
|
|
4
|
+
"root": "sti-CheckoutSteps-root-71301",
|
|
5
|
+
"compact": "sti-CheckoutSteps-compact-e9192",
|
|
6
|
+
"track": "sti-CheckoutSteps-track-d2636",
|
|
7
|
+
"list": "sti-CheckoutSteps-list-e4923",
|
|
8
|
+
"step": "sti-CheckoutSteps-step-83dc7",
|
|
9
|
+
"link": "sti-CheckoutSteps-link-b1647",
|
|
10
|
+
"label": "sti-CheckoutSteps-label-2e441",
|
|
11
|
+
"marker": "sti-CheckoutSteps-marker-efc62",
|
|
12
|
+
"compactCount": "sti-CheckoutSteps-compactCount-e11fc",
|
|
13
|
+
"fill": "sti-CheckoutSteps-fill-2d75d",
|
|
14
|
+
"srOnly": "sti-CheckoutSteps-srOnly-9f12e"
|
|
15
|
+
};
|
|
16
|
+
export { CheckoutSteps_module_default as default };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-CouponField-root-49d36 {
|
|
4
|
+
gap: var(--sti-space-2);
|
|
5
|
+
font-family: var(--sti-font-text);
|
|
6
|
+
display: grid;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.sti-CouponField-toggle-5ae8b {
|
|
10
|
+
justify-self: start;
|
|
11
|
+
align-items: center;
|
|
12
|
+
gap: var(--sti-space-2);
|
|
13
|
+
min-block-size: var(--sti-control-h-sm);
|
|
14
|
+
border-radius: var(--sti-radius-xs);
|
|
15
|
+
color: var(--sti-fg-link);
|
|
16
|
+
font: inherit;
|
|
17
|
+
font-size: var(--sti-font-size-sm);
|
|
18
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
background: none;
|
|
21
|
+
border: 0;
|
|
22
|
+
padding: 0;
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.sti-CouponField-toggle-5ae8b:hover {
|
|
27
|
+
text-underline-offset: .2em;
|
|
28
|
+
text-decoration: underline;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sti-CouponField-toggle-5ae8b:focus-visible {
|
|
32
|
+
outline: var(--sti-focus-ring-width) solid var(--sti-focus-ring);
|
|
33
|
+
outline-offset: var(--sti-focus-ring-offset);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.sti-CouponField-toggle-5ae8b > svg, .sti-CouponField-applied-946f5 > svg {
|
|
37
|
+
inline-size: var(--sti-space-4);
|
|
38
|
+
block-size: var(--sti-space-4);
|
|
39
|
+
flex: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.sti-CouponField-region-307a1[hidden] {
|
|
43
|
+
display: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.sti-CouponField-row-123aa {
|
|
47
|
+
align-items: start;
|
|
48
|
+
gap: var(--sti-space-2);
|
|
49
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
50
|
+
display: grid;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.sti-CouponField-field-fdbeb {
|
|
54
|
+
min-inline-size: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.sti-CouponField-apply-7bff1 {
|
|
58
|
+
margin-block-start: calc(var(--sti-font-size-sm) * 1.5 + var(--sti-space-1));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.sti-CouponField-applied-946f5 {
|
|
62
|
+
align-items: center;
|
|
63
|
+
gap: var(--sti-space-2);
|
|
64
|
+
padding: var(--sti-space-1) var(--sti-space-1) var(--sti-space-1) var(--sti-space-3);
|
|
65
|
+
border-radius: var(--sti-radius-md);
|
|
66
|
+
background: var(--sti-bg-accent-subtle);
|
|
67
|
+
color: var(--sti-fg);
|
|
68
|
+
font-size: var(--sti-font-size-sm);
|
|
69
|
+
margin: 0;
|
|
70
|
+
display: flex;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.sti-CouponField-applied-946f5 > span {
|
|
74
|
+
flex: 1;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface CouponFieldProps {
|
|
2
|
+
/**
|
|
3
|
+
* Kodu doğrular ve uygular: `true` uygulandı; metin dönerse o hata gösterilir (ör. "Kodun süresi
|
|
4
|
+
* dolmuş."); `false` genel hata.
|
|
5
|
+
*/
|
|
6
|
+
onApply: (code: string) => Promise<true | false | string>;
|
|
7
|
+
/** Uygulanmış kodu kaldırır. */
|
|
8
|
+
onRemove?: (code: string) => void;
|
|
9
|
+
/** Uygulanmış kod (dışarıdan yönetiliyorsa). */
|
|
10
|
+
appliedCode?: string | null;
|
|
11
|
+
/** Kapalı başlar ("İndirim kodunuz var mı?" bağlantısıyla açılır). Varsayılan `true`. */
|
|
12
|
+
collapsible?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
id?: string;
|
|
15
|
+
}
|
|
16
|
+
/** Kodu büyük harfe çevirir, boşlukları atar (Türkçe büyük harf kuralıyla değil, ASCII ile). */
|
|
17
|
+
export declare function normalizeCoupon(code: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* İndirim kodu alanı: açılır bağlantı, kod alanı ve "Uygula" düğmesi; doğrulama sırasında
|
|
20
|
+
* bekleme, hata alanın altında, uygulanan kod etiket olarak kaldırma düğmesiyle. Kod büyük harfe
|
|
21
|
+
* çevrilir, boşluklar atılır.
|
|
22
|
+
*/
|
|
23
|
+
export declare function CouponField({ onApply, onRemove, appliedCode, collapsible, className, id }: CouponFieldProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useMessages } from "../../provider/UIProvider.js";
|
|
3
|
+
import { template } from "../../text/text.js";
|
|
4
|
+
import { Button } from "../../components/Button/Button.js";
|
|
5
|
+
import { IconButton } from "../../components/IconButton/IconButton.js";
|
|
6
|
+
import { TextField } from "../../components/TextField/TextField.js";
|
|
7
|
+
import { CloseIcon } from "../../icons/generated/CloseIcon.js";
|
|
8
|
+
import { TagIcon } from "../../icons/generated/TagIcon.js";
|
|
9
|
+
import CouponField_module_default from "./CouponField.module.js";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { useId, useState } from "react";
|
|
12
|
+
// src/commerce/CouponField/CouponField.tsx
|
|
13
|
+
/** Kodu büyük harfe çevirir, boşlukları atar (Türkçe büyük harf kuralıyla değil, ASCII ile). */
|
|
14
|
+
function normalizeCoupon(code) {
|
|
15
|
+
return code.replace(/\s+/g, "").toLocaleUpperCase("en-US").slice(0, 32);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* İndirim kodu alanı: açılır bağlantı, kod alanı ve "Uygula" düğmesi; doğrulama sırasında
|
|
19
|
+
* bekleme, hata alanın altında, uygulanan kod etiket olarak kaldırma düğmesiyle. Kod büyük harfe
|
|
20
|
+
* çevrilir, boşluklar atılır.
|
|
21
|
+
*/
|
|
22
|
+
function CouponField({ onApply, onRemove, appliedCode, collapsible = true, className, id }) {
|
|
23
|
+
const t = useMessages();
|
|
24
|
+
const [open, setOpen] = useState(!collapsible);
|
|
25
|
+
const [code, setCode] = useState("");
|
|
26
|
+
const [error, setError] = useState(null);
|
|
27
|
+
const [pending, setPending] = useState(false);
|
|
28
|
+
const [localApplied, setLocalApplied] = useState(null);
|
|
29
|
+
const applied = appliedCode === void 0 ? localApplied : appliedCode;
|
|
30
|
+
const regionId = useId();
|
|
31
|
+
if (applied) return /* @__PURE__ */ jsx("div", {
|
|
32
|
+
id,
|
|
33
|
+
className: [CouponField_module_default.root, className].filter(Boolean).join(" "),
|
|
34
|
+
children: /* @__PURE__ */ jsxs("p", {
|
|
35
|
+
className: CouponField_module_default.applied,
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ jsx(TagIcon, { "aria-hidden": "true" }),
|
|
38
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
39
|
+
t.commerceCouponApplied,
|
|
40
|
+
" ",
|
|
41
|
+
/* @__PURE__ */ jsx("strong", { children: applied })
|
|
42
|
+
] }),
|
|
43
|
+
onRemove || appliedCode === void 0 ? /* @__PURE__ */ jsx(IconButton, {
|
|
44
|
+
variant: "ghost",
|
|
45
|
+
size: "sm",
|
|
46
|
+
icon: /* @__PURE__ */ jsx(CloseIcon, {}),
|
|
47
|
+
label: template(t.commerceCouponRemove, { code: applied }),
|
|
48
|
+
onPress: () => {
|
|
49
|
+
setLocalApplied(null);
|
|
50
|
+
onRemove?.(applied);
|
|
51
|
+
}
|
|
52
|
+
}) : null
|
|
53
|
+
]
|
|
54
|
+
})
|
|
55
|
+
});
|
|
56
|
+
const submit = async () => {
|
|
57
|
+
const value = normalizeCoupon(code);
|
|
58
|
+
if (!value) {
|
|
59
|
+
setError(t.commerceCouponEmpty);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
setPending(true);
|
|
63
|
+
setError(null);
|
|
64
|
+
try {
|
|
65
|
+
const result = await onApply(value);
|
|
66
|
+
if (result === true) {
|
|
67
|
+
setLocalApplied(value);
|
|
68
|
+
setCode("");
|
|
69
|
+
} else setError(typeof result === "string" ? result : t.commerceCouponInvalid);
|
|
70
|
+
} catch {
|
|
71
|
+
setError(t.commerceCouponInvalid);
|
|
72
|
+
} finally {
|
|
73
|
+
setPending(false);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
77
|
+
id,
|
|
78
|
+
className: [CouponField_module_default.root, className].filter(Boolean).join(" "),
|
|
79
|
+
children: [collapsible ? /* @__PURE__ */ jsxs("button", {
|
|
80
|
+
type: "button",
|
|
81
|
+
className: CouponField_module_default.toggle,
|
|
82
|
+
"aria-expanded": open,
|
|
83
|
+
"aria-controls": regionId,
|
|
84
|
+
onClick: () => setOpen((o) => !o),
|
|
85
|
+
children: [/* @__PURE__ */ jsx(TagIcon, { "aria-hidden": "true" }), t.commerceCouponToggle]
|
|
86
|
+
}) : null, /* @__PURE__ */ jsx("div", {
|
|
87
|
+
id: regionId,
|
|
88
|
+
className: CouponField_module_default.region,
|
|
89
|
+
hidden: !open,
|
|
90
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
91
|
+
className: CouponField_module_default.row,
|
|
92
|
+
children: [/* @__PURE__ */ jsx(TextField, {
|
|
93
|
+
className: CouponField_module_default.field,
|
|
94
|
+
label: t.commerceCouponLabel,
|
|
95
|
+
value: code,
|
|
96
|
+
onChange: (v) => {
|
|
97
|
+
setCode(v);
|
|
98
|
+
setError(null);
|
|
99
|
+
},
|
|
100
|
+
isInvalid: Boolean(error),
|
|
101
|
+
errorMessage: error ?? void 0,
|
|
102
|
+
autoComplete: "off",
|
|
103
|
+
spellCheck: false,
|
|
104
|
+
autoCapitalize: "characters",
|
|
105
|
+
maxLength: 32,
|
|
106
|
+
size: "sm"
|
|
107
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
108
|
+
variant: "secondary",
|
|
109
|
+
size: "sm",
|
|
110
|
+
isPending: pending,
|
|
111
|
+
onPress: submit,
|
|
112
|
+
className: CouponField_module_default.apply,
|
|
113
|
+
children: t.commerceCouponApply
|
|
114
|
+
})]
|
|
115
|
+
})
|
|
116
|
+
})]
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
export { CouponField, normalizeCoupon };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './CouponField.css';
|
|
2
|
+
// src/commerce/CouponField/CouponField.module.css
|
|
3
|
+
var CouponField_module_default = {
|
|
4
|
+
"root": "sti-CouponField-root-49d36",
|
|
5
|
+
"toggle": "sti-CouponField-toggle-5ae8b",
|
|
6
|
+
"applied": "sti-CouponField-applied-946f5",
|
|
7
|
+
"region": "sti-CouponField-region-307a1",
|
|
8
|
+
"row": "sti-CouponField-row-123aa",
|
|
9
|
+
"field": "sti-CouponField-field-fdbeb",
|
|
10
|
+
"apply": "sti-CouponField-apply-7bff1"
|
|
11
|
+
};
|
|
12
|
+
export { CouponField_module_default as default };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-InstallmentTable-root-dc6a8 {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
justify-items: start;
|
|
6
|
+
gap: var(--sti-space-3);
|
|
7
|
+
inline-size: 100%;
|
|
8
|
+
font-family: var(--sti-font-text);
|
|
9
|
+
display: grid;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.sti-InstallmentTable-root-dc6a8 > :last-child {
|
|
13
|
+
justify-self: stretch;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.sti-InstallmentTable-title-bb15f {
|
|
17
|
+
font-size: var(--sti-font-size-md);
|
|
18
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
19
|
+
margin: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sti-InstallmentTable-total-df6c3 {
|
|
23
|
+
justify-content: flex-end;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: var(--sti-space-2);
|
|
26
|
+
flex-wrap: wrap;
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.sti-InstallmentTable-free-66e74 {
|
|
31
|
+
padding: 0 var(--sti-space-2);
|
|
32
|
+
border-radius: var(--sti-radius-pill);
|
|
33
|
+
background: var(--sti-bg-accent-subtle);
|
|
34
|
+
color: var(--sti-fg-accent-strong);
|
|
35
|
+
font-size: var(--sti-font-size-xs);
|
|
36
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface InstallmentProgram {
|
|
2
|
+
/** Kart programı ("Bonus", "World", "Maximum"). */
|
|
3
|
+
name: string;
|
|
4
|
+
/** Taksit sayısına göre toplam vade farkı oranı (0 = peşin fiyatına). Ör. `{ 1: 0, 3: 0, 6: 0.0499 }`. */
|
|
5
|
+
rates: Readonly<Record<number, number>>;
|
|
6
|
+
}
|
|
7
|
+
export interface InstallmentTableProps {
|
|
8
|
+
/** Peşin tutar. */
|
|
9
|
+
amount: number;
|
|
10
|
+
programs: readonly InstallmentProgram[];
|
|
11
|
+
currency?: string;
|
|
12
|
+
/** Başlık. Varsayılan "Taksit seçenekleri". */
|
|
13
|
+
title?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
id?: string;
|
|
16
|
+
}
|
|
17
|
+
/** Taksit planı: aylık tutar (kuruşa yuvarlanır) ve toplam (aylık × sayı). */
|
|
18
|
+
export declare function installmentPlan(amount: number, count: number, rate: number): {
|
|
19
|
+
monthly: number;
|
|
20
|
+
total: number;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Taksit tablosu: kart programına göre (birden çoksa seçimle) taksit sayısı, aylık tutar ve toplam;
|
|
24
|
+
* vade farksız taksitler "Peşin fiyatına" işaretli. Gerçek tablo; tutarlar yerel para biçiminde.
|
|
25
|
+
*/
|
|
26
|
+
export declare function InstallmentTable({ amount, programs, currency, title, className, id }: InstallmentTableProps): import("react").JSX.Element | null;
|