@stisocial/ui 0.1.0 → 0.2.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 +18 -0
- package/README.md +25 -0
- package/dist/agency/FacebookPostPreview/FacebookPostPreview.css +73 -0
- package/dist/agency/FacebookPostPreview/FacebookPostPreview.d.ts +27 -0
- package/dist/agency/FacebookPostPreview/FacebookPostPreview.js +80 -0
- package/dist/agency/FacebookPostPreview/FacebookPostPreview.module.js +15 -0
- package/dist/agency/FacebookPostPreview/index.d.ts +2 -0
- package/dist/agency/InstagramPostPreview/InstagramPostPreview.css +84 -0
- package/dist/agency/InstagramPostPreview/InstagramPostPreview.d.ts +23 -0
- package/dist/agency/InstagramPostPreview/InstagramPostPreview.js +80 -0
- package/dist/agency/InstagramPostPreview/InstagramPostPreview.module.js +17 -0
- package/dist/agency/InstagramPostPreview/index.d.ts +2 -0
- package/dist/agency/InstagramReelPreview/InstagramReelPreview.css +84 -0
- package/dist/agency/InstagramReelPreview/InstagramReelPreview.d.ts +24 -0
- package/dist/agency/InstagramReelPreview/InstagramReelPreview.js +88 -0
- package/dist/agency/InstagramReelPreview/InstagramReelPreview.module.js +13 -0
- package/dist/agency/InstagramReelPreview/index.d.ts +2 -0
- package/dist/agency/InstagramStoryPreview/InstagramStoryPreview.css +105 -0
- package/dist/agency/InstagramStoryPreview/InstagramStoryPreview.d.ts +23 -0
- package/dist/agency/InstagramStoryPreview/InstagramStoryPreview.js +59 -0
- package/dist/agency/InstagramStoryPreview/InstagramStoryPreview.module.js +14 -0
- package/dist/agency/InstagramStoryPreview/index.d.ts +2 -0
- package/dist/agency/LinkedInPostPreview/LinkedInPostPreview.css +83 -0
- package/dist/agency/LinkedInPostPreview/LinkedInPostPreview.d.ts +30 -0
- package/dist/agency/LinkedInPostPreview/LinkedInPostPreview.js +99 -0
- package/dist/agency/LinkedInPostPreview/LinkedInPostPreview.module.js +16 -0
- package/dist/agency/LinkedInPostPreview/index.d.ts +2 -0
- package/dist/agency/PinterestPinPreview/PinterestPinPreview.css +96 -0
- package/dist/agency/PinterestPinPreview/PinterestPinPreview.d.ts +23 -0
- package/dist/agency/PinterestPinPreview/PinterestPinPreview.js +57 -0
- package/dist/agency/PinterestPinPreview/PinterestPinPreview.module.js +15 -0
- package/dist/agency/PinterestPinPreview/index.d.ts +2 -0
- package/dist/agency/ThreadsPostPreview/ThreadsPostPreview.css +101 -0
- package/dist/agency/ThreadsPostPreview/ThreadsPostPreview.d.ts +19 -0
- package/dist/agency/ThreadsPostPreview/ThreadsPostPreview.js +82 -0
- package/dist/agency/ThreadsPostPreview/ThreadsPostPreview.module.js +17 -0
- package/dist/agency/ThreadsPostPreview/index.d.ts +2 -0
- package/dist/agency/TikTokPreview/TikTokPreview.css +84 -0
- package/dist/agency/TikTokPreview/TikTokPreview.d.ts +25 -0
- package/dist/agency/TikTokPreview/TikTokPreview.js +95 -0
- package/dist/agency/TikTokPreview/TikTokPreview.module.js +13 -0
- package/dist/agency/TikTokPreview/index.d.ts +2 -0
- package/dist/agency/XPostPreview/XPostPreview.css +89 -0
- package/dist/agency/XPostPreview/XPostPreview.d.ts +20 -0
- package/dist/agency/XPostPreview/XPostPreview.js +91 -0
- package/dist/agency/XPostPreview/XPostPreview.module.js +16 -0
- package/dist/agency/XPostPreview/index.d.ts +2 -0
- package/dist/agency/YouTubeThumbnailPreview/YouTubeThumbnailPreview.css +55 -0
- package/dist/agency/YouTubeThumbnailPreview/YouTubeThumbnailPreview.d.ts +20 -0
- package/dist/agency/YouTubeThumbnailPreview/YouTubeThumbnailPreview.js +49 -0
- package/dist/agency/YouTubeThumbnailPreview/YouTubeThumbnailPreview.module.js +13 -0
- package/dist/agency/YouTubeThumbnailPreview/index.d.ts +2 -0
- package/dist/agency/_shared/Preview.css +226 -0
- package/dist/agency/_shared/Preview.d.ts +27 -0
- package/dist/agency/_shared/Preview.js +117 -0
- package/dist/agency/_shared/Preview.module.js +21 -0
- package/dist/agency/_shared/platforms.d.ts +24 -0
- package/dist/agency/_shared/platforms.js +109 -0
- package/dist/agency/index.d.ts +23 -0
- package/dist/agency/index.js +12 -0
- package/dist/ai/AiDisclosure/AiDisclosure.css +99 -0
- package/dist/ai/AiDisclosure/AiDisclosure.d.ts +28 -0
- package/dist/ai/AiDisclosure/AiDisclosure.js +52 -0
- package/dist/ai/AiDisclosure/AiDisclosure.module.js +10 -0
- package/dist/ai/AiDisclosure/index.d.ts +2 -0
- package/dist/ai/AttachmentChip/AttachmentChip.css +144 -0
- package/dist/ai/AttachmentChip/AttachmentChip.d.ts +40 -0
- package/dist/ai/AttachmentChip/AttachmentChip.js +140 -0
- package/dist/ai/AttachmentChip/AttachmentChip.module.js +13 -0
- package/dist/ai/AttachmentChip/index.d.ts +2 -0
- package/dist/ai/ChatThread/ChatThread.css +66 -0
- package/dist/ai/ChatThread/ChatThread.d.ts +20 -0
- package/dist/ai/ChatThread/ChatThread.js +87 -0
- package/dist/ai/ChatThread/ChatThread.module.js +10 -0
- package/dist/ai/ChatThread/ChatThreadMessage.css +80 -0
- package/dist/ai/ChatThread/ChatThreadMessage.d.ts +23 -0
- package/dist/ai/ChatThread/ChatThreadMessage.js +41 -0
- package/dist/ai/ChatThread/ChatThreadMessage.module.js +10 -0
- package/dist/ai/ChatThread/index.d.ts +3 -0
- package/dist/ai/ConversationList/ConversationList.css +175 -0
- package/dist/ai/ConversationList/ConversationList.d.ts +33 -0
- package/dist/ai/ConversationList/ConversationList.js +133 -0
- package/dist/ai/ConversationList/ConversationList.module.js +18 -0
- package/dist/ai/ConversationList/groups.d.ts +23 -0
- package/dist/ai/ConversationList/groups.js +47 -0
- package/dist/ai/MessageActions/MessageActions.css +9 -0
- package/dist/ai/MessageActions/MessageActions.d.ts +33 -0
- package/dist/ai/MessageActions/MessageActions.js +89 -0
- package/dist/ai/MessageActions/MessageActions.module.js +4 -0
- package/dist/ai/MessageActions/index.d.ts +2 -0
- package/dist/ai/ModelSelect/ModelSelect.css +7 -0
- package/dist/ai/ModelSelect/ModelSelect.d.ts +38 -0
- package/dist/ai/ModelSelect/ModelSelect.js +41 -0
- package/dist/ai/ModelSelect/ModelSelect.module.js +4 -0
- package/dist/ai/ModelSelect/index.d.ts +2 -0
- package/dist/ai/PromptInput/PromptInput.css +176 -0
- package/dist/ai/PromptInput/PromptInput.d.ts +54 -0
- package/dist/ai/PromptInput/PromptInput.js +199 -0
- package/dist/ai/PromptInput/PromptInput.module.js +15 -0
- package/dist/ai/PromptInput/index.d.ts +2 -0
- package/dist/ai/SourceList/SourceList.css +226 -0
- package/dist/ai/SourceList/SourceList.d.ts +36 -0
- package/dist/ai/SourceList/SourceList.js +102 -0
- package/dist/ai/SourceList/SourceList.module.js +17 -0
- package/dist/ai/StreamingText/StreamingText.css +69 -0
- package/dist/ai/StreamingText/StreamingText.d.ts +33 -0
- package/dist/ai/StreamingText/StreamingText.js +98 -0
- package/dist/ai/StreamingText/StreamingText.module.js +9 -0
- package/dist/ai/SuggestedPrompts/SuggestedPrompts.css +198 -0
- package/dist/ai/SuggestedPrompts/SuggestedPrompts.d.ts +35 -0
- package/dist/ai/SuggestedPrompts/SuggestedPrompts.js +54 -0
- package/dist/ai/SuggestedPrompts/SuggestedPrompts.module.js +14 -0
- package/dist/ai/SuggestedPrompts/index.d.ts +2 -0
- package/dist/ai/ThinkingIndicator/ThinkingIndicator.css +83 -0
- package/dist/ai/ThinkingIndicator/ThinkingIndicator.d.ts +16 -0
- package/dist/ai/ThinkingIndicator/ThinkingIndicator.js +47 -0
- package/dist/ai/ThinkingIndicator/ThinkingIndicator.module.js +10 -0
- package/dist/ai/ToolCallCard/ToolCallCard.css +249 -0
- package/dist/ai/ToolCallCard/ToolCallCard.d.ts +39 -0
- package/dist/ai/ToolCallCard/ToolCallCard.js +157 -0
- package/dist/ai/ToolCallCard/ToolCallCard.module.js +22 -0
- package/dist/ai/ToolCallCard/index.d.ts +2 -0
- package/dist/ai/_internal/glyphs.js +45 -0
- package/dist/ai/index.d.ts +23 -0
- package/dist/ai/index.js +15 -0
- package/dist/charts/AreaChart/AreaChart.css +9 -0
- package/dist/charts/AreaChart/AreaChart.d.ts +13 -0
- package/dist/charts/AreaChart/AreaChart.js +19 -0
- package/dist/charts/AreaChart/AreaChart.module.js +4 -0
- package/dist/charts/AreaChart/index.d.ts +2 -0
- package/dist/charts/BarChart/BarChart.css +9 -0
- package/dist/charts/BarChart/BarChart.d.ts +17 -0
- package/dist/charts/BarChart/BarChart.js +21 -0
- package/dist/charts/BarChart/BarChart.module.js +4 -0
- package/dist/charts/BarChart/index.d.ts +2 -0
- package/dist/charts/ChartLegend/ChartLegend.css +110 -0
- package/dist/charts/ChartLegend/ChartLegend.d.ts +36 -0
- package/dist/charts/ChartLegend/ChartLegend.js +55 -0
- package/dist/charts/ChartLegend/ChartLegend.module.js +11 -0
- package/dist/charts/ChartLegend/index.d.ts +2 -0
- package/dist/charts/ChartTable/ChartTable.css +109 -0
- package/dist/charts/ChartTable/ChartTable.d.ts +43 -0
- package/dist/charts/ChartTable/ChartTable.js +60 -0
- package/dist/charts/ChartTable/ChartTable.module.js +12 -0
- package/dist/charts/ChartTable/index.d.ts +2 -0
- package/dist/charts/ChartTooltip/ChartTooltip.css +77 -0
- package/dist/charts/ChartTooltip/ChartTooltip.d.ts +29 -0
- package/dist/charts/ChartTooltip/ChartTooltip.js +48 -0
- package/dist/charts/ChartTooltip/ChartTooltip.module.js +12 -0
- package/dist/charts/ChartTooltip/index.d.ts +2 -0
- package/dist/charts/ComboChart/ComboChart.css +9 -0
- package/dist/charts/ComboChart/ComboChart.d.ts +21 -0
- package/dist/charts/ComboChart/ComboChart.js +19 -0
- package/dist/charts/ComboChart/ComboChart.module.js +4 -0
- package/dist/charts/ComboChart/index.d.ts +3 -0
- package/dist/charts/LineChart/LineChart.css +9 -0
- package/dist/charts/LineChart/LineChart.d.ts +13 -0
- package/dist/charts/LineChart/LineChart.js +19 -0
- package/dist/charts/LineChart/LineChart.module.js +4 -0
- package/dist/charts/LineChart/index.d.ts +2 -0
- package/dist/charts/StackedBarChart/StackedBarChart.css +9 -0
- package/dist/charts/StackedBarChart/StackedBarChart.d.ts +17 -0
- package/dist/charts/StackedBarChart/StackedBarChart.js +21 -0
- package/dist/charts/StackedBarChart/StackedBarChart.module.js +4 -0
- package/dist/charts/StackedBarChart/index.d.ts +2 -0
- package/dist/charts/_internal/Bars.d.ts +31 -0
- package/dist/charts/_internal/Bars.js +295 -0
- package/dist/charts/_internal/LineArea.d.ts +32 -0
- package/dist/charts/_internal/LineArea.js +150 -0
- package/dist/charts/_internal/category.d.ts +19 -0
- package/dist/charts/_internal/category.js +139 -0
- package/dist/charts/_internal/format.d.ts +14 -0
- package/dist/charts/_internal/format.js +41 -0
- package/dist/charts/_internal/frame/ChartFrame.css +113 -0
- package/dist/charts/_internal/frame/ChartFrame.d.ts +3 -0
- package/dist/charts/_internal/frame/ChartFrame.js +217 -0
- package/dist/charts/_internal/frame/ChartFrame.module.js +17 -0
- package/dist/charts/_internal/marks/marks.css +195 -0
- package/dist/charts/_internal/marks/marks.js +192 -0
- package/dist/charts/_internal/marks/marks.module.js +12 -0
- package/dist/charts/_internal/math.js +107 -0
- package/dist/charts/_internal/shapes.d.ts +1 -0
- package/dist/charts/_internal/shapes.js +127 -0
- package/dist/charts/index.d.ts +20 -0
- package/dist/charts/index.js +9 -0
- package/dist/commerce/AddToCartButton/AddToCartButton.css +54 -0
- package/dist/commerce/AddToCartButton/AddToCartButton.d.ts +42 -0
- package/dist/commerce/AddToCartButton/AddToCartButton.js +94 -0
- package/dist/commerce/AddToCartButton/AddToCartButton.module.js +10 -0
- package/dist/commerce/AddToCartButton/index.d.ts +2 -0
- package/dist/commerce/PriceDisplay/PriceDisplay.css +77 -0
- package/dist/commerce/PriceDisplay/PriceDisplay.d.ts +35 -0
- package/dist/commerce/PriceDisplay/PriceDisplay.js +60 -0
- package/dist/commerce/PriceDisplay/PriceDisplay.module.js +10 -0
- package/dist/commerce/QuantityStepper/QuantityStepper.css +108 -0
- package/dist/commerce/QuantityStepper/QuantityStepper.d.ts +32 -0
- package/dist/commerce/QuantityStepper/QuantityStepper.js +86 -0
- package/dist/commerce/QuantityStepper/QuantityStepper.module.js +9 -0
- package/dist/commerce/QuantityStepper/index.d.ts +2 -0
- package/dist/commerce/StockBadge/StockBadge.d.ts +31 -0
- package/dist/commerce/StockBadge/StockBadge.js +47 -0
- package/dist/commerce/StockBadge/index.d.ts +2 -0
- package/dist/commerce/VariantSelector/VariantSelector.css +202 -0
- package/dist/commerce/VariantSelector/VariantSelector.d.ts +44 -0
- package/dist/commerce/VariantSelector/VariantSelector.js +77 -0
- package/dist/commerce/VariantSelector/VariantSelector.module.js +13 -0
- package/dist/commerce/VariantSelector/index.d.ts +2 -0
- package/dist/commerce/index.d.ts +10 -0
- package/dist/commerce/index.js +6 -0
- package/dist/components/Accordion/Accordion.css +176 -0
- package/dist/components/Accordion/Accordion.d.ts +40 -0
- package/dist/components/Accordion/Accordion.js +90 -0
- package/dist/components/Accordion/Accordion.module.js +17 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/ColorPicker/ColorPicker.js +1 -1
- package/dist/components/Combobox/Combobox.js +1 -1
- package/dist/components/Disclosure/Disclosure.css +162 -0
- package/dist/components/Disclosure/Disclosure.d.ts +32 -0
- package/dist/components/Disclosure/Disclosure.js +60 -0
- package/dist/components/Disclosure/Disclosure.module.js +15 -0
- package/dist/components/Disclosure/index.d.ts +2 -0
- package/dist/components/DocumentLayout/DocumentLayout.css +202 -0
- package/dist/components/DocumentLayout/DocumentLayout.d.ts +33 -0
- package/dist/components/DocumentLayout/DocumentLayout.js +69 -0
- package/dist/components/DocumentLayout/DocumentLayout.module.js +20 -0
- package/dist/components/DocumentLayout/index.d.ts +2 -0
- package/dist/components/DocumentTable/DocumentTable.css +149 -0
- package/dist/components/DocumentTable/DocumentTable.d.ts +40 -0
- package/dist/components/DocumentTable/DocumentTable.js +67 -0
- package/dist/components/DocumentTable/DocumentTable.module.js +12 -0
- package/dist/components/DocumentTable/index.d.ts +2 -0
- package/dist/components/ErrorPage/ErrorPage.css +181 -0
- package/dist/components/ErrorPage/ErrorPage.d.ts +44 -0
- package/dist/components/ErrorPage/ErrorPage.js +145 -0
- package/dist/components/ErrorPage/ErrorPage.module.js +17 -0
- package/dist/components/ErrorPage/index.d.ts +2 -0
- package/dist/components/FeedbackWidget/FeedbackWidget.css +59 -0
- package/dist/components/FeedbackWidget/FeedbackWidget.d.ts +47 -0
- package/dist/components/FeedbackWidget/FeedbackWidget.js +198 -0
- package/dist/components/FeedbackWidget/FeedbackWidget.module.js +11 -0
- package/dist/components/FeedbackWidget/index.d.ts +2 -0
- package/dist/components/Figure/Figure.css +64 -0
- package/dist/components/Figure/Figure.d.ts +24 -0
- package/dist/components/Figure/Figure.js +38 -0
- package/dist/components/Figure/Figure.module.js +10 -0
- package/dist/components/Figure/index.d.ts +2 -0
- package/dist/components/FileList/FileList.css +160 -0
- package/dist/components/FileList/FileList.d.ts +45 -0
- package/dist/components/FileList/FileList.js +146 -0
- package/dist/components/FileList/FileList.module.js +15 -0
- package/dist/components/FileList/index.d.ts +2 -0
- package/dist/components/FilterPanel/FilterPanel.js +1 -1
- package/dist/components/IconPicker/IconPicker.js +1 -1
- package/dist/components/LinkRows/LinkRows.css +135 -0
- package/dist/components/LinkRows/LinkRows.d.ts +32 -0
- package/dist/components/LinkRows/LinkRows.js +62 -0
- package/dist/components/LinkRows/LinkRows.module.js +15 -0
- package/dist/components/LinkRows/index.d.ts +2 -0
- package/dist/components/NotificationCenter/NotificationCenter.js +1 -1
- package/dist/components/OnboardingChecklist/OnboardingChecklist.js +1 -1
- package/dist/components/PageNumber/PageNumber.css +21 -0
- package/dist/components/PageNumber/PageNumber.d.ts +23 -0
- package/dist/components/PageNumber/PageNumber.js +33 -0
- package/dist/components/PageNumber/PageNumber.module.js +4 -0
- package/dist/components/PaymentInfo/PaymentInfo.css +116 -0
- package/dist/components/PaymentInfo/PaymentInfo.d.ts +41 -0
- package/dist/components/PaymentInfo/PaymentInfo.js +115 -0
- package/dist/components/PaymentInfo/PaymentInfo.module.js +15 -0
- package/dist/components/PaymentInfo/index.d.ts +2 -0
- package/dist/components/PersonItem/PersonItem.css +112 -0
- package/dist/components/PersonItem/PersonItem.d.ts +31 -0
- package/dist/components/PersonItem/PersonItem.js +54 -0
- package/dist/components/PersonItem/PersonItem.module.js +11 -0
- package/dist/components/PersonItem/index.d.ts +2 -0
- package/dist/components/PhoneField/PhoneField.js +1 -1
- package/dist/components/ReadMore/ReadMore.js +1 -1
- package/dist/components/SideNav/SideNav.js +1 -1
- package/dist/components/SignaturePad/SignaturePad.js +1 -1
- package/dist/components/SplitButton/SplitButton.js +1 -1
- package/dist/components/Table/Table.css +150 -0
- package/dist/components/Table/Table.d.ts +54 -0
- package/dist/components/Table/Table.js +75 -0
- package/dist/components/Table/Table.module.js +14 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/ThemeSwitch/ThemeSwitch.js +1 -1
- package/dist/components/TotalsBlock/TotalsBlock.css +86 -0
- package/dist/components/TotalsBlock/TotalsBlock.d.ts +32 -0
- package/dist/components/TotalsBlock/TotalsBlock.js +88 -0
- package/dist/components/TotalsBlock/TotalsBlock.module.js +10 -0
- package/dist/components/TotalsBlock/index.d.ts +3 -0
- package/dist/components/TotalsBlock/totals.d.ts +28 -0
- package/dist/components/TotalsBlock/totals.js +38 -0
- package/dist/components/TrashView/TrashView.css +166 -0
- package/dist/components/TrashView/TrashView.d.ts +49 -0
- package/dist/components/TrashView/TrashView.js +244 -0
- package/dist/components/TrashView/TrashView.module.js +22 -0
- package/dist/components/TrashView/index.d.ts +2 -0
- package/dist/components/TreeSelect/TreeSelect.js +1 -1
- package/dist/components/UploadQueue/UploadQueue.js +1 -1
- package/dist/components/Watermark/Watermark.css +51 -0
- package/dist/components/Watermark/Watermark.d.ts +23 -0
- package/dist/components/Watermark/Watermark.js +54 -0
- package/dist/components/Watermark/Watermark.module.js +8 -0
- package/dist/components/WhatsNew/WhatsNew.css +196 -0
- package/dist/components/WhatsNew/WhatsNew.d.ts +57 -0
- package/dist/components/WhatsNew/WhatsNew.js +191 -0
- package/dist/components/WhatsNew/WhatsNew.module.js +27 -0
- package/dist/components/WhatsNew/index.d.ts +2 -0
- package/dist/components/_document/text.js +14 -0
- package/dist/components/_document/types.d.ts +36 -0
- package/dist/components/_document/types.js +8 -0
- package/dist/components/_internal/listbox/SelectShell.js +1 -1
- package/dist/document/index.d.ts +13 -0
- package/dist/document/index.js +9 -0
- package/dist/editor/CodeEditor/CodeEditor.css +312 -0
- package/dist/editor/CodeEditor/CodeEditor.d.ts +66 -0
- package/dist/editor/CodeEditor/CodeEditor.js +256 -0
- package/dist/editor/CodeEditor/CodeEditor.module.js +32 -0
- package/dist/editor/CodeEditor/codeEdits.d.ts +1 -0
- package/dist/editor/CodeEditor/codeEdits.js +284 -0
- package/dist/editor/CodeEditor/highlight.js +195 -0
- package/dist/editor/CodeEditor/index.d.ts +3 -0
- package/dist/editor/JsonEditor/JsonEditor.css +10 -0
- package/dist/editor/JsonEditor/JsonEditor.d.ts +43 -0
- package/dist/editor/JsonEditor/JsonEditor.js +133 -0
- package/dist/editor/JsonEditor/JsonEditor.module.js +4 -0
- package/dist/editor/JsonEditor/index.d.ts +3 -0
- package/dist/editor/JsonEditor/json.d.ts +44 -0
- package/dist/editor/JsonEditor/json.js +246 -0
- package/dist/editor/MarkdownEditor/MarkdownEditor.css +173 -0
- package/dist/editor/MarkdownEditor/MarkdownEditor.d.ts +47 -0
- package/dist/editor/MarkdownEditor/MarkdownEditor.js +371 -0
- package/dist/editor/MarkdownEditor/MarkdownEditor.module.js +18 -0
- package/dist/editor/MarkdownEditor/commands.js +198 -0
- package/dist/editor/MarkdownEditor/index.d.ts +2 -0
- package/dist/editor/_shared/FormatIcons.js +138 -0
- package/dist/editor/_shared/textEdit.js +76 -0
- package/dist/editor/index.d.ts +9 -0
- package/dist/editor/index.js +5 -0
- package/dist/email/EmailButton/EmailButton.d.ts +22 -0
- package/dist/email/EmailButton/EmailButton.js +102 -0
- package/dist/email/EmailButton/index.d.ts +2 -0
- package/dist/email/EmailCallout/EmailCallout.d.ts +14 -0
- package/dist/email/EmailCallout/EmailCallout.js +42 -0
- package/dist/email/EmailCallout/index.d.ts +2 -0
- package/dist/email/EmailCode/EmailCode.d.ts +15 -0
- package/dist/email/EmailCode/EmailCode.js +58 -0
- package/dist/email/EmailCode/index.d.ts +2 -0
- package/dist/email/EmailColumns/EmailColumns.d.ts +18 -0
- package/dist/email/EmailColumns/EmailColumns.js +49 -0
- package/dist/email/EmailColumns/index.d.ts +2 -0
- package/dist/email/EmailDivider/EmailDivider.d.ts +7 -0
- package/dist/email/EmailDivider/EmailDivider.js +24 -0
- package/dist/email/EmailDivider/index.d.ts +2 -0
- package/dist/email/EmailFooter/EmailFooter.d.ts +30 -0
- package/dist/email/EmailFooter/EmailFooter.js +64 -0
- package/dist/email/EmailFooter/index.d.ts +2 -0
- package/dist/email/EmailHeader/EmailHeader.d.ts +23 -0
- package/dist/email/EmailHeader/EmailHeader.js +75 -0
- package/dist/email/EmailHeader/index.d.ts +2 -0
- package/dist/email/EmailHeading/EmailHeading.d.ts +11 -0
- package/dist/email/EmailHeading/EmailHeading.js +43 -0
- package/dist/email/EmailHeading/index.d.ts +2 -0
- package/dist/email/EmailImage/EmailImage.d.ts +25 -0
- package/dist/email/EmailImage/EmailImage.js +53 -0
- package/dist/email/EmailImage/index.d.ts +2 -0
- package/dist/email/EmailLayout/EmailLayout.d.ts +30 -0
- package/dist/email/EmailLayout/EmailLayout.js +79 -0
- package/dist/email/EmailLayout/emailDocument.d.ts +16 -0
- package/dist/email/EmailLayout/emailDocument.js +36 -0
- package/dist/email/EmailLayout/index.d.ts +3 -0
- package/dist/email/EmailList/EmailList.d.ts +10 -0
- package/dist/email/EmailList/EmailList.js +28 -0
- package/dist/email/EmailList/index.d.ts +2 -0
- package/dist/email/EmailPreheader/EmailPreheader.d.ts +14 -0
- package/dist/email/EmailPreheader/EmailPreheader.js +30 -0
- package/dist/email/EmailPreheader/index.d.ts +2 -0
- package/dist/email/EmailProductRow/EmailProductRow.d.ts +23 -0
- package/dist/email/EmailProductRow/EmailProductRow.js +112 -0
- package/dist/email/EmailProductRow/index.d.ts +2 -0
- package/dist/email/EmailSocialLinks/EmailSocialLinks.d.ts +19 -0
- package/dist/email/EmailSocialLinks/EmailSocialLinks.js +53 -0
- package/dist/email/EmailSocialLinks/index.d.ts +2 -0
- package/dist/email/EmailStats/EmailStats.d.ts +23 -0
- package/dist/email/EmailStats/EmailStats.js +86 -0
- package/dist/email/EmailStats/index.d.ts +2 -0
- package/dist/email/EmailTable/EmailTable.d.ts +24 -0
- package/dist/email/EmailTable/EmailTable.js +90 -0
- package/dist/email/EmailTable/index.d.ts +2 -0
- package/dist/email/EmailText/EmailText.d.ts +13 -0
- package/dist/email/EmailText/EmailText.js +35 -0
- package/dist/email/EmailText/index.d.ts +2 -0
- package/dist/email/_shared/theme.d.ts +8 -0
- package/dist/email/_shared/theme.js +90 -0
- package/dist/email/index.d.ts +36 -0
- package/dist/email/index.js +19 -0
- package/dist/icons/generated/index.js +8 -8
- package/dist/icons/index.js +8 -8
- package/dist/id/AccountMenu/AccountMenu.css +110 -0
- package/dist/id/AccountMenu/AccountMenu.d.ts +45 -0
- package/dist/id/AccountMenu/AccountMenu.js +98 -0
- package/dist/id/AccountMenu/AccountMenu.module.js +14 -0
- package/dist/id/AccountMenu/index.d.ts +2 -0
- package/dist/id/AppSwitcher/AppSwitcher.css +109 -0
- package/dist/id/AppSwitcher/AppSwitcher.d.ts +31 -0
- package/dist/id/AppSwitcher/AppSwitcher.js +88 -0
- package/dist/id/AppSwitcher/AppSwitcher.module.js +11 -0
- package/dist/id/AppSwitcher/index.d.ts +2 -0
- package/dist/id/OrgSwitcher/OrgSwitcher.css +110 -0
- package/dist/id/OrgSwitcher/OrgSwitcher.d.ts +37 -0
- package/dist/id/OrgSwitcher/OrgSwitcher.js +153 -0
- package/dist/id/OrgSwitcher/OrgSwitcher.module.js +12 -0
- package/dist/id/OrgSwitcher/index.d.ts +2 -0
- package/dist/id/PermissionGate/PermissionGate.css +57 -0
- package/dist/id/PermissionGate/PermissionGate.d.ts +30 -0
- package/dist/id/PermissionGate/PermissionGate.js +51 -0
- package/dist/id/PermissionGate/PermissionGate.module.js +10 -0
- package/dist/id/PermissionGate/index.d.ts +2 -0
- package/dist/id/SignInButton/SignInButton.d.ts +20 -0
- package/dist/id/SignInButton/SignInButton.js +34 -0
- package/dist/id/_internal/ActionItem/ActionItem.css +143 -0
- package/dist/id/_internal/ActionItem/ActionItem.js +68 -0
- package/dist/id/_internal/ActionItem/ActionItem.module.js +11 -0
- package/dist/id/index.d.ts +10 -0
- package/dist/id/index.js +6 -0
- package/dist/index.d.ts +26 -4
- package/dist/index.js +14 -3
- package/dist/maps/DirectionsLink/DirectionsLink.css +10 -0
- package/dist/maps/DirectionsLink/DirectionsLink.d.ts +35 -0
- package/dist/maps/DirectionsLink/DirectionsLink.js +84 -0
- package/dist/maps/DirectionsLink/DirectionsLink.module.js +4 -0
- package/dist/maps/DirectionsLink/index.d.ts +2 -0
- package/dist/maps/LocationPicker/LocationPicker.css +60 -0
- package/dist/maps/LocationPicker/LocationPicker.d.ts +37 -0
- package/dist/maps/LocationPicker/LocationPicker.js +278 -0
- package/dist/maps/LocationPicker/LocationPicker.module.js +12 -0
- package/dist/maps/LocationPicker/index.d.ts +2 -0
- package/dist/maps/MapMarker/MapMarker.css +318 -0
- package/dist/maps/MapMarker/MapMarker.d.ts +35 -0
- package/dist/maps/MapMarker/MapMarker.js +142 -0
- package/dist/maps/MapMarker/MapMarker.module.js +20 -0
- package/dist/maps/MapMarker/index.d.ts +2 -0
- package/dist/maps/MapView/MapView.css +268 -0
- package/dist/maps/MapView/MapView.d.ts +71 -0
- package/dist/maps/MapView/MapView.js +495 -0
- package/dist/maps/MapView/MapView.module.js +23 -0
- package/dist/maps/MapView/index.d.ts +2 -0
- package/dist/maps/StoreLocator/StoreLocator.css +201 -0
- package/dist/maps/StoreLocator/StoreLocator.d.ts +43 -0
- package/dist/maps/StoreLocator/StoreLocator.js +225 -0
- package/dist/maps/StoreLocator/StoreLocator.module.js +21 -0
- package/dist/maps/StoreLocator/index.d.ts +2 -0
- package/dist/maps/TurkeyMap/TurkeyMap.css +229 -0
- package/dist/maps/TurkeyMap/TurkeyMap.d.ts +45 -0
- package/dist/maps/TurkeyMap/TurkeyMap.js +280 -0
- package/dist/maps/TurkeyMap/TurkeyMap.module.js +17 -0
- package/dist/maps/TurkeyMap/tileGrid.js +85 -0
- package/dist/maps/_internal/geo.d.ts +8 -0
- package/dist/maps/_internal/geo.js +116 -0
- package/dist/maps/_internal/mapContext.js +8 -0
- package/dist/maps/_internal/useControllable.js +24 -0
- package/dist/maps/index.d.ts +12 -0
- package/dist/maps/index.js +7 -0
- package/dist/media/AudioPlayer/AudioPlayer.css +106 -0
- package/dist/media/AudioPlayer/AudioPlayer.d.ts +38 -0
- package/dist/media/AudioPlayer/AudioPlayer.js +134 -0
- package/dist/media/AudioPlayer/AudioPlayer.module.js +16 -0
- package/dist/media/AudioPlayer/index.d.ts +2 -0
- package/dist/media/AudioWaveform/AudioWaveform.css +43 -0
- package/dist/media/AudioWaveform/AudioWaveform.d.ts +25 -0
- package/dist/media/AudioWaveform/AudioWaveform.js +101 -0
- package/dist/media/AudioWaveform/AudioWaveform.module.js +9 -0
- package/dist/media/AudioWaveform/peaks.d.ts +14 -0
- package/dist/media/AudioWaveform/peaks.js +54 -0
- package/dist/media/MediaCard/MediaCard.css +229 -0
- package/dist/media/MediaCard/MediaCard.d.ts +38 -0
- package/dist/media/MediaCard/MediaCard.js +120 -0
- package/dist/media/MediaCard/MediaCard.module.js +18 -0
- package/dist/media/MediaCard/index.d.ts +2 -0
- package/dist/media/VideoPlayer/VideoPlayer.css +125 -0
- package/dist/media/VideoPlayer/VideoPlayer.d.ts +54 -0
- package/dist/media/VideoPlayer/VideoPlayer.js +193 -0
- package/dist/media/VideoPlayer/VideoPlayer.module.js +12 -0
- package/dist/media/VideoThumbnail/VideoThumbnail.css +139 -0
- package/dist/media/VideoThumbnail/VideoThumbnail.d.ts +34 -0
- package/dist/media/VideoThumbnail/VideoThumbnail.js +63 -0
- package/dist/media/VideoThumbnail/VideoThumbnail.module.js +10 -0
- package/dist/media/VideoThumbnail/VideoThumbnailLink.js +18 -0
- package/dist/media/_internal/clock.js +17 -0
- package/dist/media/_internal/consent/ConsentNotice.css +55 -0
- package/dist/media/_internal/consent/ConsentNotice.js +40 -0
- package/dist/media/_internal/consent/ConsentNotice.module.js +10 -0
- package/dist/media/_internal/icons.js +77 -0
- package/dist/media/_internal/range/Range.css +187 -0
- package/dist/media/_internal/range/Range.js +130 -0
- package/dist/media/_internal/range/Range.module.js +10 -0
- package/dist/media/_internal/transport/MediaTransport.css +90 -0
- package/dist/media/_internal/transport/MediaTransport.js +172 -0
- package/dist/media/_internal/transport/MediaTransport.module.js +14 -0
- package/dist/media/_internal/url.js +31 -0
- package/dist/media/_internal/useConsent.js +28 -0
- package/dist/media/_internal/useMedia.js +146 -0
- package/dist/media/index.d.ts +9 -0
- package/dist/media/index.js +7 -0
- package/dist/messages/messages.d.ts +481 -0
- package/dist/messages/messages.js +964 -2
- package/dist/site/AnnouncementBar/AnnouncementBar.css +132 -0
- package/dist/site/AnnouncementBar/AnnouncementBar.d.ts +28 -0
- package/dist/site/AnnouncementBar/AnnouncementBar.js +64 -0
- package/dist/site/AnnouncementBar/AnnouncementBar.module.js +11 -0
- package/dist/site/AnnouncementBar/index.d.ts +2 -0
- package/dist/site/MegaMenu/MegaMenu.css +324 -0
- package/dist/site/MegaMenu/MegaMenu.d.ts +51 -0
- package/dist/site/MegaMenu/MegaMenu.js +170 -0
- package/dist/site/MegaMenu/MegaMenu.module.js +28 -0
- package/dist/site/MegaMenu/index.d.ts +2 -0
- package/dist/site/SiteFooter/SiteFooter.css +129 -0
- package/dist/site/SiteFooter/SiteFooter.d.ts +38 -0
- package/dist/site/SiteFooter/SiteFooter.js +79 -0
- package/dist/site/SiteFooter/SiteFooter.module.js +20 -0
- package/dist/site/SiteFooter/index.d.ts +2 -0
- package/dist/site/SiteHeader/SiteHeader.css +213 -0
- package/dist/site/SiteHeader/SiteHeader.d.ts +40 -0
- package/dist/site/SiteHeader/SiteHeader.js +115 -0
- package/dist/site/SiteHeader/SiteHeader.module.js +18 -0
- package/dist/site/SiteHeader/index.d.ts +2 -0
- package/dist/site/StickyCta/StickyCta.css +112 -0
- package/dist/site/StickyCta/StickyCta.d.ts +27 -0
- package/dist/site/StickyCta/StickyCta.js +69 -0
- package/dist/site/StickyCta/StickyCta.module.js +10 -0
- package/dist/site/StickyCta/index.d.ts +2 -0
- package/dist/site/index.d.ts +11 -0
- package/dist/site/index.js +6 -0
- package/dist/styles.css +24433 -14420
- package/package.json +45 -1
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useMessages } from "../../provider/UIProvider.js";
|
|
3
|
+
import { template } from "../../text/text.js";
|
|
4
|
+
import { Spinner } from "../../components/Spinner/Spinner.js";
|
|
5
|
+
import { IconButton } from "../../components/IconButton/IconButton.js";
|
|
6
|
+
import { VisuallyHidden } from "../../components/VisuallyHidden/VisuallyHidden.js";
|
|
7
|
+
import { PlayIcon } from "../../icons/generated/PlayIcon.js";
|
|
8
|
+
import { ConsentNotice } from "../_internal/consent/ConsentNotice.js";
|
|
9
|
+
import { MediaTransport, SORTED_RATES } from "../_internal/transport/MediaTransport.js";
|
|
10
|
+
import { hostOf, isThirdParty } from "../_internal/url.js";
|
|
11
|
+
import { useConsent } from "../_internal/useConsent.js";
|
|
12
|
+
import { useFullscreen, useMedia } from "../_internal/useMedia.js";
|
|
13
|
+
import VideoPlayer_module_default from "./VideoPlayer.module.js";
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { useEffect, useId, useRef, useState } from "react";
|
|
16
|
+
// src/media/VideoPlayer/VideoPlayer.tsx
|
|
17
|
+
const isEditable = (el) => el instanceof HTMLElement && (el.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(el.tagName));
|
|
18
|
+
/**
|
|
19
|
+
* Video oynatıcı: tarayıcının `video` öğesi, kendi denetim çubuğu (oynat, konum, ses, hız, altyazı,
|
|
20
|
+
* tam ekran). Denetimler videonun üzerinde değil altındadır; karşıtlık videonun içeriğine bağlı değildir.
|
|
21
|
+
* Klavye (sahne odaktayken): Boşluk ve K oynat/duraklat, ← → 5 sn, J L 10 sn, ↑ ↓ ses, M sessiz,
|
|
22
|
+
* F tam ekran, C altyazı, 0–9 konum yüzdesi, Home/End baş ve son, `<` `>` hız. Üçüncü taraf adreste
|
|
23
|
+
* kullanıcı izin verene kadar hiçbir istek yapılmaz.
|
|
24
|
+
*/
|
|
25
|
+
function VideoPlayer({ src, title, poster, captions = [], aspectRatio = "16/9", size = "md", loop, preload = "metadata", consent = "auto", onConsent, crossOrigin, onPlay, onPause, onEnded, className, id }) {
|
|
26
|
+
const t = useMessages();
|
|
27
|
+
const sources = typeof src === "string" ? [{ src }] : src;
|
|
28
|
+
const { origin, allowed, accept } = useConsent(sources.map((x) => x.src), consent, onConsent);
|
|
29
|
+
const { ref, el, state, actions } = useMedia();
|
|
30
|
+
const [root, setRoot] = useState(null);
|
|
31
|
+
const fullscreen = useFullscreen(root);
|
|
32
|
+
const [caption, setCaption] = useState(() => Math.max(-1, captions.findIndex((c) => c.isDefault)));
|
|
33
|
+
const nameId = useId();
|
|
34
|
+
const stageRef = useRef(null);
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
if (!el) return;
|
|
37
|
+
const apply = () => {
|
|
38
|
+
for (let i = 0; i < el.textTracks.length; i++) {
|
|
39
|
+
const track = el.textTracks[i];
|
|
40
|
+
if (track) track.mode = i === caption ? "showing" : "disabled";
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
apply();
|
|
44
|
+
el.textTracks.addEventListener("addtrack", apply);
|
|
45
|
+
return () => el.textTracks.removeEventListener("addtrack", apply);
|
|
46
|
+
}, [el, caption]);
|
|
47
|
+
const wasPaused = useRef(true);
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
if (state.paused === wasPaused.current) return;
|
|
50
|
+
wasPaused.current = state.paused;
|
|
51
|
+
if (state.paused) onPause?.();
|
|
52
|
+
else onPlay?.();
|
|
53
|
+
}, [
|
|
54
|
+
state.paused,
|
|
55
|
+
onPause,
|
|
56
|
+
onPlay
|
|
57
|
+
]);
|
|
58
|
+
const wasEnded = useRef(false);
|
|
59
|
+
useEffect(() => {
|
|
60
|
+
if (state.ended && !wasEnded.current) onEnded?.();
|
|
61
|
+
wasEnded.current = state.ended;
|
|
62
|
+
}, [state.ended, onEnded]);
|
|
63
|
+
const cycleCaption = () => {
|
|
64
|
+
const next = caption + 1 >= captions.length ? -1 : caption + 1;
|
|
65
|
+
setCaption(next);
|
|
66
|
+
};
|
|
67
|
+
const captionLabel = caption < 0 ? t.mediaCaptionsOff : template(t.mediaCaptionsOn, { name: captions[caption]?.label ?? "" });
|
|
68
|
+
const onKeyDown = (e) => {
|
|
69
|
+
if (e.defaultPrevented || e.altKey || e.ctrlKey || e.metaKey || isEditable(e.target)) return;
|
|
70
|
+
const onStage = e.target === stageRef.current;
|
|
71
|
+
const key = e.key.toLowerCase();
|
|
72
|
+
const handled = (fn) => {
|
|
73
|
+
e.preventDefault();
|
|
74
|
+
fn();
|
|
75
|
+
};
|
|
76
|
+
if (onStage && (e.key === " " || key === "k")) return handled(actions.toggle);
|
|
77
|
+
if (onStage && key === "arrowleft") return handled(() => actions.seekBy(-5));
|
|
78
|
+
if (onStage && key === "arrowright") return handled(() => actions.seekBy(5));
|
|
79
|
+
if (onStage && key === "arrowup") return handled(() => actions.changeVolumeBy(.05));
|
|
80
|
+
if (onStage && key === "arrowdown") return handled(() => actions.changeVolumeBy(-.05));
|
|
81
|
+
if (key === "j") return handled(() => actions.seekBy(-10));
|
|
82
|
+
if (key === "l") return handled(() => actions.seekBy(10));
|
|
83
|
+
if (key === "k") return handled(actions.toggle);
|
|
84
|
+
if (key === "m") return handled(actions.toggleMute);
|
|
85
|
+
if (key === "f" && fullscreen.isAvailable) return handled(fullscreen.toggle);
|
|
86
|
+
if (key === "c" && captions.length > 0) return handled(cycleCaption);
|
|
87
|
+
if (key === "home") return handled(() => actions.seek(0));
|
|
88
|
+
if (key === "end" && state.duration > 0) return handled(() => actions.seek(state.duration));
|
|
89
|
+
if (/^[0-9]$/.test(e.key) && state.duration > 0) return handled(() => actions.seek(state.duration * Number(e.key) / 10));
|
|
90
|
+
if (e.key === "<" || e.key === ">") {
|
|
91
|
+
const at = SORTED_RATES.findIndex((r) => r >= state.rate);
|
|
92
|
+
const step = e.key === ">" ? 1 : -1;
|
|
93
|
+
const next = SORTED_RATES[Math.min(SORTED_RATES.length - 1, Math.max(0, at + step))];
|
|
94
|
+
return handled(() => next && actions.setRate(next));
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
const showPoster = poster && (!isThirdParty(poster, origin) || allowed);
|
|
98
|
+
const idle = state.paused && state.currentTime === 0 && !state.ended && !state.failed;
|
|
99
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
100
|
+
id,
|
|
101
|
+
ref: setRoot,
|
|
102
|
+
role: "group",
|
|
103
|
+
"aria-label": `${t.mediaVideoPlayer}: ${title}`,
|
|
104
|
+
className: [VideoPlayer_module_default.root, className].filter(Boolean).join(" "),
|
|
105
|
+
"data-ratio": aspectRatio,
|
|
106
|
+
"data-fullscreen": fullscreen.isOn ? "" : void 0,
|
|
107
|
+
onKeyDown,
|
|
108
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
109
|
+
ref: stageRef,
|
|
110
|
+
className: VideoPlayer_module_default.stage,
|
|
111
|
+
tabIndex: allowed ? 0 : -1,
|
|
112
|
+
role: "group",
|
|
113
|
+
"aria-labelledby": nameId,
|
|
114
|
+
"aria-busy": state.waiting || void 0,
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ jsx(VisuallyHidden, {
|
|
117
|
+
id: nameId,
|
|
118
|
+
children: title
|
|
119
|
+
}),
|
|
120
|
+
allowed ? /* @__PURE__ */ jsxs("video", {
|
|
121
|
+
ref,
|
|
122
|
+
className: VideoPlayer_module_default.video,
|
|
123
|
+
preload,
|
|
124
|
+
poster: showPoster ? poster : void 0,
|
|
125
|
+
loop,
|
|
126
|
+
playsInline: true,
|
|
127
|
+
crossOrigin,
|
|
128
|
+
src: sources.length === 1 ? sources[0]?.src : void 0,
|
|
129
|
+
onClick: (e) => {
|
|
130
|
+
if (e.detail <= 1) actions.toggle();
|
|
131
|
+
},
|
|
132
|
+
onDoubleClick: () => fullscreen.isAvailable && fullscreen.toggle(),
|
|
133
|
+
children: [sources.length > 1 ? sources.map((s) => /* @__PURE__ */ jsx("source", {
|
|
134
|
+
src: s.src,
|
|
135
|
+
type: s.type
|
|
136
|
+
}, s.src)) : null, captions.map((c) => /* @__PURE__ */ jsx("track", {
|
|
137
|
+
kind: "captions",
|
|
138
|
+
src: c.src,
|
|
139
|
+
srcLang: c.language,
|
|
140
|
+
label: c.label
|
|
141
|
+
}, c.src))]
|
|
142
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
143
|
+
className: VideoPlayer_module_default.gate,
|
|
144
|
+
children: /* @__PURE__ */ jsx(ConsentNotice, {
|
|
145
|
+
text: template(t.mediaThirdParty, { host: hostOf(sources[0]?.src ?? "", origin) }),
|
|
146
|
+
actionLabel: t.mediaLoad,
|
|
147
|
+
onAccept: accept
|
|
148
|
+
})
|
|
149
|
+
}),
|
|
150
|
+
allowed && idle ? /* @__PURE__ */ jsx("div", {
|
|
151
|
+
className: VideoPlayer_module_default.center,
|
|
152
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
153
|
+
variant: "primary",
|
|
154
|
+
size: "lg",
|
|
155
|
+
label: template(t.mediaPlayTitle, { title }),
|
|
156
|
+
icon: /* @__PURE__ */ jsx(PlayIcon, {}),
|
|
157
|
+
onPress: actions.toggle
|
|
158
|
+
})
|
|
159
|
+
}) : null,
|
|
160
|
+
allowed && state.waiting ? /* @__PURE__ */ jsx("div", {
|
|
161
|
+
className: VideoPlayer_module_default.center,
|
|
162
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
163
|
+
className: VideoPlayer_module_default.busy,
|
|
164
|
+
children: /* @__PURE__ */ jsx(Spinner, { size: "lg" })
|
|
165
|
+
})
|
|
166
|
+
}) : null,
|
|
167
|
+
allowed && state.failed ? /* @__PURE__ */ jsx("div", {
|
|
168
|
+
className: VideoPlayer_module_default.error,
|
|
169
|
+
role: "alert",
|
|
170
|
+
children: t.errorMediaLoad
|
|
171
|
+
}) : null,
|
|
172
|
+
/* @__PURE__ */ jsx(VisuallyHidden, { children: /* @__PURE__ */ jsx("span", {
|
|
173
|
+
role: "status",
|
|
174
|
+
children: state.waiting ? t.mediaBuffering : ""
|
|
175
|
+
}) })
|
|
176
|
+
]
|
|
177
|
+
}), allowed ? /* @__PURE__ */ jsx(MediaTransport, {
|
|
178
|
+
state,
|
|
179
|
+
actions,
|
|
180
|
+
size,
|
|
181
|
+
captions: captions.length > 0 ? {
|
|
182
|
+
label: captionLabel,
|
|
183
|
+
isOn: caption >= 0,
|
|
184
|
+
onPress: cycleCaption
|
|
185
|
+
} : void 0,
|
|
186
|
+
fullscreen: fullscreen.isAvailable ? {
|
|
187
|
+
isOn: fullscreen.isOn,
|
|
188
|
+
onPress: fullscreen.toggle
|
|
189
|
+
} : void 0
|
|
190
|
+
}) : null]
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
export { VideoPlayer };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './VideoPlayer.css';
|
|
2
|
+
// src/media/VideoPlayer/VideoPlayer.module.css
|
|
3
|
+
var VideoPlayer_module_default = {
|
|
4
|
+
"root": "sti-VideoPlayer-root-db1d5",
|
|
5
|
+
"stage": "sti-VideoPlayer-stage-f9ce3",
|
|
6
|
+
"video": "sti-VideoPlayer-video-c6573",
|
|
7
|
+
"gate": "sti-VideoPlayer-gate-b3ac3",
|
|
8
|
+
"center": "sti-VideoPlayer-center-facf1",
|
|
9
|
+
"busy": "sti-VideoPlayer-busy-1395e",
|
|
10
|
+
"error": "sti-VideoPlayer-error-f6d04"
|
|
11
|
+
};
|
|
12
|
+
export { VideoPlayer_module_default as default };
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-VideoThumbnail-root-38b71 {
|
|
4
|
+
--sti-thumb-radius: var(--sti-radius-lg);
|
|
5
|
+
--sti-thumb-ratio: 16 / 9;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
aspect-ratio: var(--sti-thumb-ratio);
|
|
8
|
+
border: var(--sti-border-width) solid var(--sti-border-subtle);
|
|
9
|
+
border-radius: var(--sti-thumb-radius);
|
|
10
|
+
background: var(--sti-bg-subtle);
|
|
11
|
+
inline-size: 100%;
|
|
12
|
+
min-inline-size: 0;
|
|
13
|
+
color: var(--sti-fg);
|
|
14
|
+
font-family: var(--sti-font-text);
|
|
15
|
+
text-decoration: none;
|
|
16
|
+
display: block;
|
|
17
|
+
position: relative;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.sti-VideoThumbnail-root-38b71[data-radius="md"] {
|
|
22
|
+
--sti-thumb-radius: var(--sti-radius-md);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.sti-VideoThumbnail-root-38b71[data-ratio="4/3"] {
|
|
26
|
+
--sti-thumb-ratio: 4 / 3;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.sti-VideoThumbnail-root-38b71[data-ratio="1/1"] {
|
|
30
|
+
--sti-thumb-ratio: 1 / 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.sti-VideoThumbnail-root-38b71[data-ratio="9/16"] {
|
|
34
|
+
--sti-thumb-ratio: 9 / 16;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.sti-VideoThumbnail-root-38b71[data-ratio="21/9"] {
|
|
38
|
+
--sti-thumb-ratio: 21 / 9;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.sti-VideoThumbnail-image-2b726 {
|
|
42
|
+
object-fit: cover;
|
|
43
|
+
block-size: 100%;
|
|
44
|
+
inline-size: 100%;
|
|
45
|
+
transition: transform var(--sti-duration-slow) var(--sti-ease-out);
|
|
46
|
+
display: block;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.sti-VideoThumbnail-play-74090 {
|
|
50
|
+
inline-size: var(--sti-control-h-lg);
|
|
51
|
+
block-size: var(--sti-control-h-lg);
|
|
52
|
+
border-radius: var(--sti-radius-pill);
|
|
53
|
+
background: var(--sti-bg-surface);
|
|
54
|
+
box-shadow: var(--sti-shadow-md);
|
|
55
|
+
color: var(--sti-fg);
|
|
56
|
+
transition: background var(--sti-duration-fast) var(--sti-ease-snap),
|
|
57
|
+
transform var(--sti-duration-fast) var(--sti-ease-snap);
|
|
58
|
+
justify-content: center;
|
|
59
|
+
align-items: center;
|
|
60
|
+
display: inline-flex;
|
|
61
|
+
position: absolute;
|
|
62
|
+
inset-block-start: 50%;
|
|
63
|
+
inset-inline-start: 50%;
|
|
64
|
+
transform: translate(-50%, -50%);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.sti-VideoThumbnail-duration-865cc {
|
|
68
|
+
padding: var(--sti-space-0-5) var(--sti-space-2);
|
|
69
|
+
border-radius: var(--sti-radius-sm);
|
|
70
|
+
background: var(--sti-bg-inverse);
|
|
71
|
+
color: var(--sti-fg-inverse);
|
|
72
|
+
font-family: var(--sti-font-numeric);
|
|
73
|
+
font-size: var(--sti-font-size-xs);
|
|
74
|
+
font-variant-numeric: tabular-nums;
|
|
75
|
+
line-height: var(--sti-line-height-xs);
|
|
76
|
+
position: absolute;
|
|
77
|
+
inset-block-end: var(--sti-space-2);
|
|
78
|
+
inset-inline-end: var(--sti-space-2);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.sti-VideoThumbnail-spoken-1ad4b {
|
|
82
|
+
clip-path: inset(50%);
|
|
83
|
+
white-space: nowrap;
|
|
84
|
+
border: 0;
|
|
85
|
+
block-size: 1px;
|
|
86
|
+
inline-size: 1px;
|
|
87
|
+
margin: -1px;
|
|
88
|
+
padding: 0;
|
|
89
|
+
position: absolute;
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
a.sti-VideoThumbnail-root-38b71 {
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.sti-VideoThumbnail-root-38b71[data-focus-visible] {
|
|
98
|
+
outline: var(--sti-focus-ring-width) solid var(--sti-focus-ring);
|
|
99
|
+
outline-offset: var(--sti-focus-ring-offset);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@media (hover: hover) {
|
|
103
|
+
.sti-VideoThumbnail-root-38b71[data-hovered] .sti-VideoThumbnail-image-2b726 {
|
|
104
|
+
transform: scale(1.03);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.sti-VideoThumbnail-root-38b71[data-hovered] .sti-VideoThumbnail-play-74090 {
|
|
108
|
+
transform: translate(-50%, -50%) scale(1.08);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.sti-VideoThumbnail-root-38b71[data-pressed] .sti-VideoThumbnail-play-74090 {
|
|
113
|
+
transform: translate(-50%, -50%) scale(.96);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@media (prefers-reduced-motion: reduce) {
|
|
117
|
+
.sti-VideoThumbnail-image-2b726, .sti-VideoThumbnail-play-74090 {
|
|
118
|
+
transition: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.sti-VideoThumbnail-root-38b71[data-hovered] .sti-VideoThumbnail-image-2b726 {
|
|
122
|
+
transform: none;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.sti-VideoThumbnail-root-38b71[data-hovered] .sti-VideoThumbnail-play-74090, .sti-VideoThumbnail-root-38b71[data-pressed] .sti-VideoThumbnail-play-74090 {
|
|
126
|
+
transform: translate(-50%, -50%);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@media (forced-colors: active) {
|
|
131
|
+
.sti-VideoThumbnail-root-38b71, .sti-VideoThumbnail-play-74090, .sti-VideoThumbnail-duration-865cc {
|
|
132
|
+
border: var(--sti-border-width) solid CanvasText;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.sti-VideoThumbnail-root-38b71[data-focus-visible] {
|
|
136
|
+
outline-color: highlight;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type VideoThumbnailRatio = "16/9" | "4/3" | "1/1" | "9/16" | "21/9";
|
|
2
|
+
export interface VideoThumbnailProps {
|
|
3
|
+
/** Kapak görselinin adresi. */
|
|
4
|
+
src: string;
|
|
5
|
+
/**
|
|
6
|
+
* Görselin açıklaması. Başlıkla aynı bilgiyi veriyorsa boş bırakılır (süs); `href` varsa bağlantının
|
|
7
|
+
* adı `title`'dır.
|
|
8
|
+
*/
|
|
9
|
+
alt?: string;
|
|
10
|
+
/** Videonun adı; `href` varsa bağlantının erişilebilir adıdır (zorunlu bağlantıda). */
|
|
11
|
+
title?: string;
|
|
12
|
+
/** Süre (saniye): sağ altta "3:25" olarak görünür. */
|
|
13
|
+
duration?: number;
|
|
14
|
+
/** Ekran okuyucunun okuyacağı süre metni ("Süre: 3 dakika 25 saniye"); verilmezse "3:25" okunur. */
|
|
15
|
+
durationLabel?: string;
|
|
16
|
+
/** Verilirse küçük resim videoya giden bağlantı olur. */
|
|
17
|
+
href?: string;
|
|
18
|
+
/** Oran; varsayılan 16/9. */
|
|
19
|
+
aspectRatio?: VideoThumbnailRatio;
|
|
20
|
+
/** Oynat simgesini gösterir; varsayılan açık. */
|
|
21
|
+
showPlay?: boolean;
|
|
22
|
+
/** Görselin yüklenme önceliği; varsayılan `lazy`. */
|
|
23
|
+
loading?: "lazy" | "eager";
|
|
24
|
+
/** Köşe: `md` 12, `lg` 16 piksel. */
|
|
25
|
+
radius?: "md" | "lg";
|
|
26
|
+
className?: string;
|
|
27
|
+
id?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Video küçük resmi: sabit oranlı kapak, ortada oynat simgesi, köşede süre etiketi. Sunucu
|
|
31
|
+
* bileşenidir; `href` verilirse bağlantı parçası istemcide çizilir. Karşıtlık: süre etiketi kendi
|
|
32
|
+
* zeminine sahiptir (görsele bağlı değildir).
|
|
33
|
+
*/
|
|
34
|
+
export declare function VideoThumbnail({ src, alt, title, duration, durationLabel, href, aspectRatio, showPlay, loading, radius, className, id }: VideoThumbnailProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { isoDuration } from "../../components/Duration/Duration.js";
|
|
2
|
+
import { PlayIcon } from "../../icons/generated/PlayIcon.js";
|
|
3
|
+
import { formatClock } from "../_internal/clock.js";
|
|
4
|
+
import VideoThumbnail_module_default from "./VideoThumbnail.module.js";
|
|
5
|
+
import { VideoThumbnailLink } from "./VideoThumbnailLink.js";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
// src/media/VideoThumbnail/VideoThumbnail.tsx
|
|
8
|
+
/**
|
|
9
|
+
* Video küçük resmi: sabit oranlı kapak, ortada oynat simgesi, köşede süre etiketi. Sunucu
|
|
10
|
+
* bileşenidir; `href` verilirse bağlantı parçası istemcide çizilir. Karşıtlık: süre etiketi kendi
|
|
11
|
+
* zeminine sahiptir (görsele bağlı değildir).
|
|
12
|
+
*/
|
|
13
|
+
function VideoThumbnail({ src, alt = "", title, duration, durationLabel, href, aspectRatio = "16/9", showPlay = true, loading = "lazy", radius = "lg", className, id }) {
|
|
14
|
+
const hasDuration = duration !== void 0 && Number.isFinite(duration) && duration >= 0;
|
|
15
|
+
const body = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
16
|
+
/* @__PURE__ */ jsx("img", {
|
|
17
|
+
className: VideoThumbnail_module_default.image,
|
|
18
|
+
src,
|
|
19
|
+
alt: href ? "" : alt,
|
|
20
|
+
loading,
|
|
21
|
+
decoding: "async"
|
|
22
|
+
}),
|
|
23
|
+
href ? /* @__PURE__ */ jsx("span", {
|
|
24
|
+
className: VideoThumbnail_module_default.spoken,
|
|
25
|
+
children: title ?? alt
|
|
26
|
+
}) : null,
|
|
27
|
+
showPlay ? /* @__PURE__ */ jsx("span", {
|
|
28
|
+
className: VideoThumbnail_module_default.play,
|
|
29
|
+
"aria-hidden": "true",
|
|
30
|
+
children: /* @__PURE__ */ jsx(PlayIcon, { size: "md" })
|
|
31
|
+
}) : null,
|
|
32
|
+
hasDuration ? /* @__PURE__ */ jsx("span", {
|
|
33
|
+
className: VideoThumbnail_module_default.duration,
|
|
34
|
+
children: /* @__PURE__ */ jsx("time", {
|
|
35
|
+
dateTime: isoDuration(duration),
|
|
36
|
+
children: durationLabel ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
37
|
+
className: VideoThumbnail_module_default.spoken,
|
|
38
|
+
children: durationLabel
|
|
39
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
40
|
+
"aria-hidden": "true",
|
|
41
|
+
children: formatClock(duration)
|
|
42
|
+
})] }) : formatClock(duration)
|
|
43
|
+
})
|
|
44
|
+
}) : null
|
|
45
|
+
] });
|
|
46
|
+
const rootClass = [VideoThumbnail_module_default.root, className].filter(Boolean).join(" ");
|
|
47
|
+
if (href) return /* @__PURE__ */ jsx(VideoThumbnailLink, {
|
|
48
|
+
id,
|
|
49
|
+
href,
|
|
50
|
+
className: rootClass,
|
|
51
|
+
"data-ratio": aspectRatio,
|
|
52
|
+
"data-radius": radius,
|
|
53
|
+
children: body
|
|
54
|
+
});
|
|
55
|
+
return /* @__PURE__ */ jsx("div", {
|
|
56
|
+
id,
|
|
57
|
+
className: rootClass,
|
|
58
|
+
"data-ratio": aspectRatio,
|
|
59
|
+
"data-radius": radius,
|
|
60
|
+
children: body
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
export { VideoThumbnail };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import './VideoThumbnail.css';
|
|
2
|
+
// src/media/VideoThumbnail/VideoThumbnail.module.css
|
|
3
|
+
var VideoThumbnail_module_default = {
|
|
4
|
+
"root": "sti-VideoThumbnail-root-38b71",
|
|
5
|
+
"image": "sti-VideoThumbnail-image-2b726",
|
|
6
|
+
"play": "sti-VideoThumbnail-play-74090",
|
|
7
|
+
"duration": "sti-VideoThumbnail-duration-865cc",
|
|
8
|
+
"spoken": "sti-VideoThumbnail-spoken-1ad4b"
|
|
9
|
+
};
|
|
10
|
+
export { VideoThumbnail_module_default as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Link } from "react-aria-components";
|
|
4
|
+
// src/media/VideoThumbnail/VideoThumbnailLink.tsx
|
|
5
|
+
/**
|
|
6
|
+
* Küçük resmin bağlantı kabuğu (iç; istemci): React Aria bağlantısı istemci tarafı gezinmeyi verir.
|
|
7
|
+
* Ad bağlantının içeriğindeki gizli başlık metninden gelir (görünür metin süre etiketidir).
|
|
8
|
+
*/
|
|
9
|
+
function VideoThumbnailLink({ href, className, id, children, ...data }) {
|
|
10
|
+
return /* @__PURE__ */ jsx(Link, {
|
|
11
|
+
id,
|
|
12
|
+
href,
|
|
13
|
+
className,
|
|
14
|
+
...data,
|
|
15
|
+
children
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
export { VideoThumbnailLink };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/media/_internal/clock.ts
|
|
2
|
+
/** Medya süresi yardımcıları (saf; sunucuda ve istemcide aynı sonucu verir). */
|
|
3
|
+
const finite = (n) => Number.isFinite(n) && n > 0 ? n : 0;
|
|
4
|
+
/** Saniyeyi "m:ss" ya da "h:mm:ss" yazar: 65 → "1:05", 3725 → "1:02:05". Geçersiz değer 0:00 olur. */
|
|
5
|
+
function formatClock(seconds) {
|
|
6
|
+
const total = Math.floor(finite(seconds));
|
|
7
|
+
const h = Math.floor(total / 3600);
|
|
8
|
+
const m = Math.floor(total % 3600 / 60);
|
|
9
|
+
const s = total % 60;
|
|
10
|
+
const ss = String(s).padStart(2, "0");
|
|
11
|
+
return h > 0 ? `${h}:${String(m).padStart(2, "0")}:${ss}` : `${m}:${ss}`;
|
|
12
|
+
}
|
|
13
|
+
/** Değeri [min, max] aralığına sıkıştırır. */
|
|
14
|
+
function clamp(value, min, max) {
|
|
15
|
+
return Math.min(max, Math.max(min, value));
|
|
16
|
+
}
|
|
17
|
+
export { clamp, formatClock };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-ConsentNotice-root-134dd {
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: var(--sti-space-3);
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
block-size: 100%;
|
|
9
|
+
inline-size: 100%;
|
|
10
|
+
min-inline-size: 0;
|
|
11
|
+
padding: var(--sti-space-6) var(--sti-space-4);
|
|
12
|
+
color: var(--sti-fg);
|
|
13
|
+
font-family: var(--sti-font-text);
|
|
14
|
+
text-align: center;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
display: flex;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.sti-ConsentNotice-icon-bed85 {
|
|
20
|
+
inline-size: var(--sti-control-h-lg);
|
|
21
|
+
block-size: var(--sti-control-h-lg);
|
|
22
|
+
border: var(--sti-border-width) solid var(--sti-border);
|
|
23
|
+
border-radius: var(--sti-radius-pill);
|
|
24
|
+
background: var(--sti-bg-surface);
|
|
25
|
+
color: var(--sti-fg-muted);
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sti-ConsentNotice-title-7f6e5 {
|
|
32
|
+
font-size: var(--sti-font-size-md);
|
|
33
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
34
|
+
line-height: var(--sti-line-height-md);
|
|
35
|
+
margin: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.sti-ConsentNotice-text-95af2 {
|
|
39
|
+
max-inline-size: 34rem;
|
|
40
|
+
color: var(--sti-fg-muted);
|
|
41
|
+
font-size: var(--sti-font-size-sm);
|
|
42
|
+
line-height: var(--sti-line-height-sm);
|
|
43
|
+
overflow-wrap: anywhere;
|
|
44
|
+
margin: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.sti-ConsentNotice-actions-70e22 {
|
|
48
|
+
justify-content: center;
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: var(--sti-space-2) var(--sti-space-3);
|
|
51
|
+
flex-wrap: wrap;
|
|
52
|
+
margin-block-start: var(--sti-space-1);
|
|
53
|
+
display: flex;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Button } from "../../../components/Button/Button.js";
|
|
3
|
+
import { GlobeIcon } from "../../../icons/generated/GlobeIcon.js";
|
|
4
|
+
import ConsentNotice_module_default from "./ConsentNotice.module.js";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
// src/media/_internal/consent/ConsentNotice.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Gizlilik modunun izin alanı: dış içerik yüklenmeden önce kullanıcıya hangi adrese bağlanılacağı
|
|
9
|
+
* söylenir; düğmeye basılana kadar üçüncü tarafa istek yapılmaz. Video oynatıcı ve gömme ortak kullanır.
|
|
10
|
+
*/
|
|
11
|
+
function ConsentNotice({ title, text, actionLabel, onAccept, extra, className }) {
|
|
12
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
13
|
+
className: [ConsentNotice_module_default.root, className].filter(Boolean).join(" "),
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ jsx("span", {
|
|
16
|
+
className: ConsentNotice_module_default.icon,
|
|
17
|
+
"aria-hidden": "true",
|
|
18
|
+
children: /* @__PURE__ */ jsx(GlobeIcon, { size: "md" })
|
|
19
|
+
}),
|
|
20
|
+
title ? /* @__PURE__ */ jsx("p", {
|
|
21
|
+
className: ConsentNotice_module_default.title,
|
|
22
|
+
children: title
|
|
23
|
+
}) : null,
|
|
24
|
+
/* @__PURE__ */ jsx("p", {
|
|
25
|
+
className: ConsentNotice_module_default.text,
|
|
26
|
+
children: text
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ jsxs("div", {
|
|
29
|
+
className: ConsentNotice_module_default.actions,
|
|
30
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
31
|
+
variant: "primary",
|
|
32
|
+
size: "md",
|
|
33
|
+
onPress: onAccept,
|
|
34
|
+
children: actionLabel
|
|
35
|
+
}), extra]
|
|
36
|
+
})
|
|
37
|
+
]
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
export { ConsentNotice };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import './ConsentNotice.css';
|
|
2
|
+
// src/media/_internal/consent/ConsentNotice.module.css
|
|
3
|
+
var ConsentNotice_module_default = {
|
|
4
|
+
"root": "sti-ConsentNotice-root-134dd",
|
|
5
|
+
"icon": "sti-ConsentNotice-icon-bed85",
|
|
6
|
+
"title": "sti-ConsentNotice-title-7f6e5",
|
|
7
|
+
"text": "sti-ConsentNotice-text-95af2",
|
|
8
|
+
"actions": "sti-ConsentNotice-actions-70e22"
|
|
9
|
+
};
|
|
10
|
+
export { ConsentNotice_module_default as default };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Icon } from "../../icons/Icon.js";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
// src/media/_internal/icons.tsx
|
|
4
|
+
function VolumeIcon(props) {
|
|
5
|
+
return /* @__PURE__ */ jsxs(Icon, {
|
|
6
|
+
...props,
|
|
7
|
+
children: [
|
|
8
|
+
/* @__PURE__ */ jsx("path", { d: "M11 5 6 9H3v6h3l5 4Z" }),
|
|
9
|
+
/* @__PURE__ */ jsx("path", { d: "M15.5 8.5a5 5 0 0 1 0 7" }),
|
|
10
|
+
/* @__PURE__ */ jsx("path", { d: "M18.5 5.5a9 9 0 0 1 0 13" })
|
|
11
|
+
]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function VolumeLowIcon(props) {
|
|
15
|
+
return /* @__PURE__ */ jsxs(Icon, {
|
|
16
|
+
...props,
|
|
17
|
+
children: [/* @__PURE__ */ jsx("path", { d: "M11 5 6 9H3v6h3l5 4Z" }), /* @__PURE__ */ jsx("path", { d: "M15.5 8.5a5 5 0 0 1 0 7" })]
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function VolumeMutedIcon(props) {
|
|
21
|
+
return /* @__PURE__ */ jsxs(Icon, {
|
|
22
|
+
...props,
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ jsx("path", { d: "M11 5 6 9H3v6h3l5 4Z" }),
|
|
25
|
+
/* @__PURE__ */ jsx("path", { d: "m22 9-6 6" }),
|
|
26
|
+
/* @__PURE__ */ jsx("path", { d: "m16 9 6 6" })
|
|
27
|
+
]
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function CaptionsIcon(props) {
|
|
31
|
+
return /* @__PURE__ */ jsxs(Icon, {
|
|
32
|
+
...props,
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ jsx("rect", {
|
|
35
|
+
x: "3",
|
|
36
|
+
y: "5",
|
|
37
|
+
width: "18",
|
|
38
|
+
height: "14",
|
|
39
|
+
rx: "3"
|
|
40
|
+
}),
|
|
41
|
+
/* @__PURE__ */ jsx("path", { d: "M7.5 12h3" }),
|
|
42
|
+
/* @__PURE__ */ jsx("path", { d: "M13.5 12h3" }),
|
|
43
|
+
/* @__PURE__ */ jsx("path", { d: "M7.5 15.5h5" })
|
|
44
|
+
]
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function SkipBackIcon(props) {
|
|
48
|
+
return /* @__PURE__ */ jsxs(Icon, {
|
|
49
|
+
...props,
|
|
50
|
+
children: [/* @__PURE__ */ jsx("path", { d: "M3 12a9 9 0 1 0 2.6-6.4L3 8" }), /* @__PURE__ */ jsx("path", { d: "M3 3v5h5" })]
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function SkipForwardIcon(props) {
|
|
54
|
+
return /* @__PURE__ */ jsxs(Icon, {
|
|
55
|
+
...props,
|
|
56
|
+
children: [/* @__PURE__ */ jsx("path", { d: "M21 12a9 9 0 1 1-2.6-6.4L21 8" }), /* @__PURE__ */ jsx("path", { d: "M21 3v5h-5" })]
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function MusicIcon(props) {
|
|
60
|
+
return /* @__PURE__ */ jsxs(Icon, {
|
|
61
|
+
...props,
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ jsx("path", { d: "M9 18V5l11-2v13" }),
|
|
64
|
+
/* @__PURE__ */ jsx("circle", {
|
|
65
|
+
cx: "6",
|
|
66
|
+
cy: "18",
|
|
67
|
+
r: "3"
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ jsx("circle", {
|
|
70
|
+
cx: "17",
|
|
71
|
+
cy: "16",
|
|
72
|
+
r: "3"
|
|
73
|
+
})
|
|
74
|
+
]
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
export { CaptionsIcon, MusicIcon, SkipBackIcon, SkipForwardIcon, VolumeIcon, VolumeLowIcon, VolumeMutedIcon };
|