@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,101 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-ThreadsPostPreview-root-1cbf5 {
|
|
4
|
+
--sti-preview-max: 32rem;
|
|
5
|
+
--sti-preview-pad: var(--sti-space-3);
|
|
6
|
+
--sti-preview-gap: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.sti-ThreadsPostPreview-layout-134ba {
|
|
10
|
+
align-items: stretch;
|
|
11
|
+
gap: var(--sti-space-3);
|
|
12
|
+
padding-inline: var(--sti-space-4);
|
|
13
|
+
display: flex;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.sti-ThreadsPostPreview-rail-6951d {
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: var(--sti-space-2);
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
flex: none;
|
|
21
|
+
display: flex;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.sti-ThreadsPostPreview-line-8c4d9 {
|
|
25
|
+
inline-size: var(--sti-border-width-strong);
|
|
26
|
+
min-block-size: var(--sti-space-6);
|
|
27
|
+
border-radius: var(--sti-radius-pill);
|
|
28
|
+
background: var(--sti-border);
|
|
29
|
+
flex: 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.sti-ThreadsPostPreview-main-65d4a {
|
|
33
|
+
align-content: start;
|
|
34
|
+
gap: var(--sti-space-2);
|
|
35
|
+
flex: 1;
|
|
36
|
+
min-width: 0;
|
|
37
|
+
display: grid;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.sti-ThreadsPostPreview-head-ceea2 {
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: var(--sti-space-2);
|
|
43
|
+
min-width: 0;
|
|
44
|
+
display: flex;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.sti-ThreadsPostPreview-time-dc586 {
|
|
48
|
+
color: var(--sti-fg-muted);
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
flex: none;
|
|
51
|
+
margin-inline-start: auto;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.sti-ThreadsPostPreview-more-d2fb3 {
|
|
55
|
+
color: var(--sti-fg-muted);
|
|
56
|
+
flex: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.sti-ThreadsPostPreview-over-0b4a0 {
|
|
60
|
+
padding-inline: var(--sti-space-1);
|
|
61
|
+
border-radius: var(--sti-radius-xs);
|
|
62
|
+
background: var(--sti-bg-danger-subtle);
|
|
63
|
+
color: var(--sti-fg-danger);
|
|
64
|
+
text-underline-offset: var(--sti-space-1);
|
|
65
|
+
overflow-wrap: anywhere;
|
|
66
|
+
white-space: pre-wrap;
|
|
67
|
+
margin: 0;
|
|
68
|
+
-webkit-text-decoration: underline wavy;
|
|
69
|
+
text-decoration: underline wavy;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.sti-ThreadsPostPreview-media-8de9b {
|
|
73
|
+
--sti-media-border: var(--sti-border-width) solid var(--sti-border-subtle);
|
|
74
|
+
--sti-media-radius: var(--sti-radius-md);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.sti-ThreadsPostPreview-actions-25698 {
|
|
78
|
+
align-items: center;
|
|
79
|
+
gap: var(--sti-space-4);
|
|
80
|
+
color: var(--sti-fg);
|
|
81
|
+
font-size: var(--sti-icon-md);
|
|
82
|
+
display: flex;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.sti-ThreadsPostPreview-counts-d1925 {
|
|
86
|
+
color: var(--sti-fg-muted);
|
|
87
|
+
margin: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@media (forced-colors: active) {
|
|
91
|
+
.sti-ThreadsPostPreview-line-8c4d9 {
|
|
92
|
+
background: canvastext;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.sti-ThreadsPostPreview-over-0b4a0 {
|
|
96
|
+
border: var(--sti-border-width) solid CanvasText;
|
|
97
|
+
color: canvastext;
|
|
98
|
+
background: canvas;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PreviewAccount, PreviewBaseProps, PreviewMediaItem } from "../_shared/Preview.js";
|
|
2
|
+
export interface ThreadsPostPreviewProps extends PreviewBaseProps {
|
|
3
|
+
account: PreviewAccount;
|
|
4
|
+
/** Gönderi metni; sınır 500 karakterdir, aşan kısım işaretlenir. */
|
|
5
|
+
text: string;
|
|
6
|
+
media?: PreviewMediaItem;
|
|
7
|
+
/** Zaman ("3 sa"). */
|
|
8
|
+
timeLabel?: string;
|
|
9
|
+
/** Yanıt ve beğeni sayıları ("12 yanıt", "248 beğeni"). */
|
|
10
|
+
repliesLabel?: string;
|
|
11
|
+
likesLabel?: string;
|
|
12
|
+
/** Konu devamı: altta bağlayıcı çizgi çizilir (zincirdeki sonraki gönderiyi gösterir). */
|
|
13
|
+
thread?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Threads gönderisi önizlemesi: solda profil görseli ve konu çizgisi, sağda ad, metin (500
|
|
17
|
+
* karakter), görsel ve eylem şeridi. Aşan metin kesilmez, işaretlenir. Sunucu bileşenidir.
|
|
18
|
+
*/
|
|
19
|
+
export declare function ThreadsPostPreview({ label, account, text, media, timeLabel, repliesLabel, likesLabel, thread, className, id }: ThreadsPostPreviewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { MoreHorizontalIcon } from "../../icons/generated/MoreHorizontalIcon.js";
|
|
2
|
+
import { RefreshIcon } from "../../icons/generated/RefreshIcon.js";
|
|
3
|
+
import { HeartIcon } from "../../icons/generated/HeartIcon.js";
|
|
4
|
+
import { MessageIcon } from "../../icons/generated/MessageIcon.js";
|
|
5
|
+
import { SendIcon } from "../../icons/generated/SendIcon.js";
|
|
6
|
+
import { PLATFORM_LIMITS, graphemes } from "../_shared/platforms.js";
|
|
7
|
+
import { PreviewAvatar, PreviewMedia, PreviewName, PreviewShell, PreviewText } from "../_shared/Preview.js";
|
|
8
|
+
import ThreadsPostPreview_module_default from "./ThreadsPostPreview.module.js";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
// src/agency/ThreadsPostPreview/ThreadsPostPreview.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Threads gönderisi önizlemesi: solda profil görseli ve konu çizgisi, sağda ad, metin (500
|
|
13
|
+
* karakter), görsel ve eylem şeridi. Aşan metin kesilmez, işaretlenir. Sunucu bileşenidir.
|
|
14
|
+
*/
|
|
15
|
+
function ThreadsPostPreview({ label, account, text, media, timeLabel, repliesLabel, likesLabel, thread = false, className, id }) {
|
|
16
|
+
const max = PLATFORM_LIMITS.threads.max;
|
|
17
|
+
const chars = graphemes(text);
|
|
18
|
+
const over = chars.length > max;
|
|
19
|
+
const head = over ? chars.slice(0, max).join("") : text;
|
|
20
|
+
const tail = over ? chars.slice(max).join("") : "";
|
|
21
|
+
return /* @__PURE__ */ jsx(PreviewShell, {
|
|
22
|
+
label,
|
|
23
|
+
id,
|
|
24
|
+
platform: "threads",
|
|
25
|
+
className: [ThreadsPostPreview_module_default.root, className].filter(Boolean).join(" "),
|
|
26
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
27
|
+
className: ThreadsPostPreview_module_default.layout,
|
|
28
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
29
|
+
className: ThreadsPostPreview_module_default.rail,
|
|
30
|
+
children: [/* @__PURE__ */ jsx(PreviewAvatar, { account }), thread ? /* @__PURE__ */ jsx("span", {
|
|
31
|
+
className: ThreadsPostPreview_module_default.line,
|
|
32
|
+
"data-thread": "",
|
|
33
|
+
"aria-hidden": "true"
|
|
34
|
+
}) : null]
|
|
35
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
36
|
+
className: ThreadsPostPreview_module_default.main,
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ jsxs("div", {
|
|
39
|
+
className: ThreadsPostPreview_module_default.head,
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ jsx(PreviewName, { account: {
|
|
42
|
+
...account,
|
|
43
|
+
name: account.handle ?? account.name
|
|
44
|
+
} }),
|
|
45
|
+
timeLabel ? /* @__PURE__ */ jsx("span", {
|
|
46
|
+
className: ThreadsPostPreview_module_default.time,
|
|
47
|
+
children: timeLabel
|
|
48
|
+
}) : null,
|
|
49
|
+
/* @__PURE__ */ jsx(MoreHorizontalIcon, { className: ThreadsPostPreview_module_default.more })
|
|
50
|
+
]
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ jsx(PreviewText, { text: head }),
|
|
53
|
+
tail ? /* @__PURE__ */ jsx("p", {
|
|
54
|
+
className: ThreadsPostPreview_module_default.over,
|
|
55
|
+
"data-over": "",
|
|
56
|
+
children: tail
|
|
57
|
+
}) : null,
|
|
58
|
+
media ? /* @__PURE__ */ jsx(PreviewMedia, {
|
|
59
|
+
media,
|
|
60
|
+
ratio: "4:5",
|
|
61
|
+
className: ThreadsPostPreview_module_default.media
|
|
62
|
+
}) : null,
|
|
63
|
+
/* @__PURE__ */ jsxs("div", {
|
|
64
|
+
className: ThreadsPostPreview_module_default.actions,
|
|
65
|
+
"aria-hidden": "true",
|
|
66
|
+
children: [
|
|
67
|
+
/* @__PURE__ */ jsx(HeartIcon, {}),
|
|
68
|
+
/* @__PURE__ */ jsx(MessageIcon, {}),
|
|
69
|
+
/* @__PURE__ */ jsx(RefreshIcon, {}),
|
|
70
|
+
/* @__PURE__ */ jsx(SendIcon, {})
|
|
71
|
+
]
|
|
72
|
+
}),
|
|
73
|
+
repliesLabel || likesLabel ? /* @__PURE__ */ jsx("p", {
|
|
74
|
+
className: ThreadsPostPreview_module_default.counts,
|
|
75
|
+
children: [repliesLabel, likesLabel].filter(Boolean).join(" · ")
|
|
76
|
+
}) : null
|
|
77
|
+
]
|
|
78
|
+
})]
|
|
79
|
+
})
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
export { ThreadsPostPreview };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import './ThreadsPostPreview.css';
|
|
2
|
+
// src/agency/ThreadsPostPreview/ThreadsPostPreview.module.css
|
|
3
|
+
var ThreadsPostPreview_module_default = {
|
|
4
|
+
"root": "sti-ThreadsPostPreview-root-1cbf5",
|
|
5
|
+
"layout": "sti-ThreadsPostPreview-layout-134ba",
|
|
6
|
+
"rail": "sti-ThreadsPostPreview-rail-6951d",
|
|
7
|
+
"line": "sti-ThreadsPostPreview-line-8c4d9",
|
|
8
|
+
"main": "sti-ThreadsPostPreview-main-65d4a",
|
|
9
|
+
"head": "sti-ThreadsPostPreview-head-ceea2",
|
|
10
|
+
"time": "sti-ThreadsPostPreview-time-dc586",
|
|
11
|
+
"more": "sti-ThreadsPostPreview-more-d2fb3",
|
|
12
|
+
"over": "sti-ThreadsPostPreview-over-0b4a0",
|
|
13
|
+
"media": "sti-ThreadsPostPreview-media-8de9b",
|
|
14
|
+
"actions": "sti-ThreadsPostPreview-actions-25698",
|
|
15
|
+
"counts": "sti-ThreadsPostPreview-counts-d1925"
|
|
16
|
+
};
|
|
17
|
+
export { ThreadsPostPreview_module_default as default };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-TikTokPreview-root-c72ea {
|
|
4
|
+
--sti-preview-max: 20rem;
|
|
5
|
+
--sti-preview-pad: 0;
|
|
6
|
+
--sti-preview-gap: 0;
|
|
7
|
+
--sti-preview-radius: var(--sti-radius-lg);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.sti-TikTokPreview-play-4ce48 {
|
|
11
|
+
inline-size: var(--sti-space-12);
|
|
12
|
+
block-size: var(--sti-space-12);
|
|
13
|
+
border-radius: var(--sti-radius-pill);
|
|
14
|
+
background: var(--sti-bg-inverse);
|
|
15
|
+
color: var(--sti-fg-inverse);
|
|
16
|
+
font-size: var(--sti-icon-lg);
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
margin: auto;
|
|
20
|
+
display: flex;
|
|
21
|
+
position: absolute;
|
|
22
|
+
inset: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.sti-TikTokPreview-bottom-82284 {
|
|
26
|
+
align-items: flex-end;
|
|
27
|
+
gap: var(--sti-space-3);
|
|
28
|
+
padding: var(--sti-space-3);
|
|
29
|
+
margin-block-start: auto;
|
|
30
|
+
display: flex;
|
|
31
|
+
position: relative;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.sti-TikTokPreview-info-76bf7 {
|
|
35
|
+
gap: var(--sti-space-2);
|
|
36
|
+
flex: 1;
|
|
37
|
+
justify-items: start;
|
|
38
|
+
min-width: 0;
|
|
39
|
+
display: grid;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.sti-TikTokPreview-rail-44fc5 {
|
|
43
|
+
gap: var(--sti-space-3);
|
|
44
|
+
flex: none;
|
|
45
|
+
justify-items: center;
|
|
46
|
+
display: grid;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.sti-TikTokPreview-railItem-6c37f {
|
|
50
|
+
justify-items: center;
|
|
51
|
+
gap: var(--sti-space-0-5);
|
|
52
|
+
display: grid;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.sti-TikTokPreview-railIcon-d774c {
|
|
56
|
+
inline-size: var(--sti-space-8);
|
|
57
|
+
block-size: var(--sti-space-8);
|
|
58
|
+
border-radius: var(--sti-radius-pill);
|
|
59
|
+
background: var(--sti-bg-inverse);
|
|
60
|
+
color: var(--sti-fg-inverse);
|
|
61
|
+
font-size: var(--sti-icon-md);
|
|
62
|
+
justify-content: center;
|
|
63
|
+
align-items: center;
|
|
64
|
+
display: inline-flex;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.sti-TikTokPreview-count-4f4e6 {
|
|
68
|
+
padding-inline: var(--sti-space-2);
|
|
69
|
+
border-radius: var(--sti-radius-pill);
|
|
70
|
+
background: var(--sti-bg-inverse);
|
|
71
|
+
color: var(--sti-fg-inverse);
|
|
72
|
+
font-size: var(--sti-font-size-xs);
|
|
73
|
+
font-variant-numeric: tabular-nums;
|
|
74
|
+
line-height: var(--sti-line-height-xs);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@media (forced-colors: active) {
|
|
78
|
+
.sti-TikTokPreview-play-4ce48, .sti-TikTokPreview-railIcon-d774c, .sti-TikTokPreview-count-4f4e6 {
|
|
79
|
+
border: var(--sti-border-width) solid CanvasText;
|
|
80
|
+
color: canvastext;
|
|
81
|
+
background: canvas;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PreviewAccount, PreviewBaseProps, PreviewMediaItem } from "../_shared/Preview.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
export interface TikTokPreviewProps extends PreviewBaseProps {
|
|
4
|
+
account: PreviewAccount;
|
|
5
|
+
/** Kapak ya da bir kare (9:16). */
|
|
6
|
+
media?: PreviewMediaItem;
|
|
7
|
+
/** Açıklama; akışta ilk 90 karakteri görünür. */
|
|
8
|
+
caption?: string;
|
|
9
|
+
/** Ses satırı ("özgün ses - stisocial"). */
|
|
10
|
+
sound?: string;
|
|
11
|
+
/** Sayılar (biçimlenmiş metin): "12,4 B". */
|
|
12
|
+
likes?: string;
|
|
13
|
+
comments?: string;
|
|
14
|
+
saves?: string;
|
|
15
|
+
shares?: string;
|
|
16
|
+
/** Kesilen açıklamanın sonuna eklenen metin ("devamı"). */
|
|
17
|
+
moreLabel?: string;
|
|
18
|
+
/** Görselin üstüne konan katman (ör. `SafeZoneOverlay`). */
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* TikTok önizlemesi: 9:16 çerçeve, sağda profil ve eylem sütunu (beğeni, yorum, kaydetme,
|
|
23
|
+
* paylaşım), altta kullanıcı adı, açıklama ve ses. Sunucu bileşenidir.
|
|
24
|
+
*/
|
|
25
|
+
export declare function TikTokPreview({ label, account, media, caption, sound, likes, comments, saves, shares, moreLabel, children, className, id }: TikTokPreviewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { BookmarkIcon } from "../../icons/generated/BookmarkIcon.js";
|
|
2
|
+
import { HeartIcon } from "../../icons/generated/HeartIcon.js";
|
|
3
|
+
import { MessageIcon } from "../../icons/generated/MessageIcon.js";
|
|
4
|
+
import { PlayIcon } from "../../icons/generated/PlayIcon.js";
|
|
5
|
+
import { ShareIcon } from "../../icons/generated/ShareIcon.js";
|
|
6
|
+
import { PLATFORM_LIMITS } from "../_shared/platforms.js";
|
|
7
|
+
import { PreviewAvatar, PreviewChip, PreviewMedia, PreviewName, PreviewShell, PreviewText } from "../_shared/Preview.js";
|
|
8
|
+
import TikTokPreview_module_default from "./TikTokPreview.module.js";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
// src/agency/TikTokPreview/TikTokPreview.tsx
|
|
11
|
+
/**
|
|
12
|
+
* TikTok önizlemesi: 9:16 çerçeve, sağda profil ve eylem sütunu (beğeni, yorum, kaydetme,
|
|
13
|
+
* paylaşım), altta kullanıcı adı, açıklama ve ses. Sunucu bileşenidir.
|
|
14
|
+
*/
|
|
15
|
+
function TikTokPreview({ label, account, media, caption, sound, likes, comments, saves, shares, moreLabel, children, className, id }) {
|
|
16
|
+
const rail = [
|
|
17
|
+
[
|
|
18
|
+
/* @__PURE__ */ jsx(HeartIcon, {}, "h"),
|
|
19
|
+
likes,
|
|
20
|
+
"likes"
|
|
21
|
+
],
|
|
22
|
+
[
|
|
23
|
+
/* @__PURE__ */ jsx(MessageIcon, {}, "m"),
|
|
24
|
+
comments,
|
|
25
|
+
"comments"
|
|
26
|
+
],
|
|
27
|
+
[
|
|
28
|
+
/* @__PURE__ */ jsx(BookmarkIcon, {}, "b"),
|
|
29
|
+
saves,
|
|
30
|
+
"saves"
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
/* @__PURE__ */ jsx(ShareIcon, {}, "s"),
|
|
34
|
+
shares,
|
|
35
|
+
"shares"
|
|
36
|
+
]
|
|
37
|
+
];
|
|
38
|
+
return /* @__PURE__ */ jsx(PreviewShell, {
|
|
39
|
+
label,
|
|
40
|
+
id,
|
|
41
|
+
platform: "tiktok",
|
|
42
|
+
className: [TikTokPreview_module_default.root, className].filter(Boolean).join(" "),
|
|
43
|
+
children: /* @__PURE__ */ jsxs(PreviewMedia, {
|
|
44
|
+
media,
|
|
45
|
+
ratio: "9:16",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsx("span", {
|
|
48
|
+
className: TikTokPreview_module_default.play,
|
|
49
|
+
"aria-hidden": "true",
|
|
50
|
+
children: /* @__PURE__ */ jsx(PlayIcon, {})
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ jsxs("div", {
|
|
53
|
+
className: TikTokPreview_module_default.bottom,
|
|
54
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
55
|
+
className: TikTokPreview_module_default.info,
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ jsx(PreviewChip, { children: /* @__PURE__ */ jsx(PreviewName, { account: {
|
|
58
|
+
...account,
|
|
59
|
+
name: `@${account.handle ?? account.name}`
|
|
60
|
+
} }) }),
|
|
61
|
+
caption ? /* @__PURE__ */ jsx(PreviewChip, {
|
|
62
|
+
block: true,
|
|
63
|
+
children: /* @__PURE__ */ jsx(PreviewText, {
|
|
64
|
+
plain: true,
|
|
65
|
+
text: caption,
|
|
66
|
+
limit: PLATFORM_LIMITS.tiktok.visible,
|
|
67
|
+
moreLabel
|
|
68
|
+
})
|
|
69
|
+
}) : null,
|
|
70
|
+
sound ? /* @__PURE__ */ jsx(PreviewChip, { children: sound }) : null
|
|
71
|
+
]
|
|
72
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
73
|
+
className: TikTokPreview_module_default.rail,
|
|
74
|
+
"aria-hidden": "true",
|
|
75
|
+
children: [/* @__PURE__ */ jsx(PreviewAvatar, {
|
|
76
|
+
account,
|
|
77
|
+
size: "lg"
|
|
78
|
+
}), rail.map(([icon, count, key]) => /* @__PURE__ */ jsxs("span", {
|
|
79
|
+
className: TikTokPreview_module_default.railItem,
|
|
80
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
81
|
+
className: TikTokPreview_module_default.railIcon,
|
|
82
|
+
children: icon
|
|
83
|
+
}), count ? /* @__PURE__ */ jsx("span", {
|
|
84
|
+
className: TikTokPreview_module_default.count,
|
|
85
|
+
children: count
|
|
86
|
+
}) : null]
|
|
87
|
+
}, key))]
|
|
88
|
+
})]
|
|
89
|
+
}),
|
|
90
|
+
children
|
|
91
|
+
]
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
export { TikTokPreview };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './TikTokPreview.css';
|
|
2
|
+
// src/agency/TikTokPreview/TikTokPreview.module.css
|
|
3
|
+
var TikTokPreview_module_default = {
|
|
4
|
+
"root": "sti-TikTokPreview-root-c72ea",
|
|
5
|
+
"play": "sti-TikTokPreview-play-4ce48",
|
|
6
|
+
"bottom": "sti-TikTokPreview-bottom-82284",
|
|
7
|
+
"info": "sti-TikTokPreview-info-76bf7",
|
|
8
|
+
"rail": "sti-TikTokPreview-rail-44fc5",
|
|
9
|
+
"railItem": "sti-TikTokPreview-railItem-6c37f",
|
|
10
|
+
"railIcon": "sti-TikTokPreview-railIcon-d774c",
|
|
11
|
+
"count": "sti-TikTokPreview-count-4f4e6"
|
|
12
|
+
};
|
|
13
|
+
export { TikTokPreview_module_default as default };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-XPostPreview-root-38842 {
|
|
4
|
+
--sti-preview-max: 35rem;
|
|
5
|
+
--sti-preview-pad: var(--sti-space-3);
|
|
6
|
+
--sti-preview-gap: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.sti-XPostPreview-layout-e9e34 {
|
|
10
|
+
align-items: flex-start;
|
|
11
|
+
gap: var(--sti-space-3);
|
|
12
|
+
padding-inline: var(--sti-space-4);
|
|
13
|
+
display: flex;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.sti-XPostPreview-main-aad24 {
|
|
17
|
+
gap: var(--sti-space-2);
|
|
18
|
+
flex: 1;
|
|
19
|
+
min-width: 0;
|
|
20
|
+
display: grid;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.sti-XPostPreview-head-4990f {
|
|
24
|
+
align-items: baseline;
|
|
25
|
+
gap: 0 var(--sti-space-1);
|
|
26
|
+
flex-wrap: wrap;
|
|
27
|
+
min-width: 0;
|
|
28
|
+
display: flex;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sti-XPostPreview-time-5cd4e {
|
|
32
|
+
color: var(--sti-fg-muted);
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
flex: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.sti-XPostPreview-over-51a4a {
|
|
38
|
+
padding-inline: var(--sti-space-1);
|
|
39
|
+
border-radius: var(--sti-radius-xs);
|
|
40
|
+
background: var(--sti-bg-danger-subtle);
|
|
41
|
+
color: var(--sti-fg-danger);
|
|
42
|
+
text-underline-offset: var(--sti-space-1);
|
|
43
|
+
overflow-wrap: anywhere;
|
|
44
|
+
white-space: pre-wrap;
|
|
45
|
+
margin: 0;
|
|
46
|
+
-webkit-text-decoration: underline wavy;
|
|
47
|
+
text-decoration: underline wavy;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.sti-XPostPreview-media-fd961 {
|
|
51
|
+
--sti-media-border: var(--sti-border-width) solid var(--sti-border-subtle);
|
|
52
|
+
--sti-media-radius: var(--sti-radius-md);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.sti-XPostPreview-counters-43ba5 {
|
|
56
|
+
justify-content: space-between;
|
|
57
|
+
align-items: center;
|
|
58
|
+
gap: var(--sti-space-1) var(--sti-space-2);
|
|
59
|
+
color: var(--sti-fg-muted);
|
|
60
|
+
font-size: var(--sti-icon-md);
|
|
61
|
+
flex-wrap: wrap;
|
|
62
|
+
display: flex;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.sti-XPostPreview-counter-c507b {
|
|
66
|
+
align-items: center;
|
|
67
|
+
gap: var(--sti-space-1);
|
|
68
|
+
min-width: 0;
|
|
69
|
+
display: inline-flex;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.sti-XPostPreview-count-6cab0 {
|
|
73
|
+
font-size: var(--sti-font-size-xs);
|
|
74
|
+
font-variant-numeric: tabular-nums;
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.sti-XPostPreview-share-70703 {
|
|
79
|
+
flex: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media (forced-colors: active) {
|
|
83
|
+
.sti-XPostPreview-over-51a4a {
|
|
84
|
+
border: var(--sti-border-width) solid CanvasText;
|
|
85
|
+
color: canvastext;
|
|
86
|
+
background: canvas;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PreviewAccount, PreviewBaseProps, PreviewMediaItem } from "../_shared/Preview.js";
|
|
2
|
+
export interface XPostPreviewProps extends PreviewBaseProps {
|
|
3
|
+
account: PreviewAccount;
|
|
4
|
+
/** Gönderi metni; sınır 280 karakterdir, aşan kısım "sınır aşıldı" olarak işaretlenir. */
|
|
5
|
+
text: string;
|
|
6
|
+
media?: PreviewMediaItem;
|
|
7
|
+
/** Zaman ("14:32 · 12 Kas 2026" ya da "3 sa"). */
|
|
8
|
+
timeLabel?: string;
|
|
9
|
+
/** Sayılar (biçimlenmiş metin): yanıt, yeniden paylaşım, beğeni, görüntülenme. */
|
|
10
|
+
replies?: string;
|
|
11
|
+
reposts?: string;
|
|
12
|
+
likes?: string;
|
|
13
|
+
views?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* X gönderisi önizlemesi: solda profil görseli, sağda ad, kullanıcı adı, metin (280 karakter),
|
|
17
|
+
* görsel ve sayaç şeridi. 280 karakteri aşan metin kesilmez; aşan kısım işaretlenir, çünkü
|
|
18
|
+
* önizleme sınırı aşan gönderinin yayımlanamayacağını göstermelidir. Sunucu bileşenidir.
|
|
19
|
+
*/
|
|
20
|
+
export declare function XPostPreview({ label, account, text, media, timeLabel, replies, reposts, likes, views, className, id }: XPostPreviewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { RefreshIcon } from "../../icons/generated/RefreshIcon.js";
|
|
2
|
+
import { HeartIcon } from "../../icons/generated/HeartIcon.js";
|
|
3
|
+
import { MessageIcon } from "../../icons/generated/MessageIcon.js";
|
|
4
|
+
import { BarChartIcon } from "../../icons/generated/BarChartIcon.js";
|
|
5
|
+
import { ShareIcon } from "../../icons/generated/ShareIcon.js";
|
|
6
|
+
import { PLATFORM_LIMITS, graphemes } from "../_shared/platforms.js";
|
|
7
|
+
import { PreviewAvatar, PreviewMedia, PreviewName, PreviewShell, PreviewText } from "../_shared/Preview.js";
|
|
8
|
+
import XPostPreview_module_default from "./XPostPreview.module.js";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
// src/agency/XPostPreview/XPostPreview.tsx
|
|
11
|
+
/**
|
|
12
|
+
* X gönderisi önizlemesi: solda profil görseli, sağda ad, kullanıcı adı, metin (280 karakter),
|
|
13
|
+
* görsel ve sayaç şeridi. 280 karakteri aşan metin kesilmez; aşan kısım işaretlenir, çünkü
|
|
14
|
+
* önizleme sınırı aşan gönderinin yayımlanamayacağını göstermelidir. Sunucu bileşenidir.
|
|
15
|
+
*/
|
|
16
|
+
function XPostPreview({ label, account, text, media, timeLabel, replies, reposts, likes, views, className, id }) {
|
|
17
|
+
const max = PLATFORM_LIMITS.x.max;
|
|
18
|
+
const chars = graphemes(text);
|
|
19
|
+
const over = chars.length > max;
|
|
20
|
+
const head = over ? chars.slice(0, max).join("") : text;
|
|
21
|
+
const tail = over ? chars.slice(max).join("") : "";
|
|
22
|
+
const counters = [
|
|
23
|
+
{
|
|
24
|
+
key: "replies",
|
|
25
|
+
icon: /* @__PURE__ */ jsx(MessageIcon, {}),
|
|
26
|
+
value: replies
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
key: "reposts",
|
|
30
|
+
icon: /* @__PURE__ */ jsx(RefreshIcon, {}),
|
|
31
|
+
value: reposts
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
key: "likes",
|
|
35
|
+
icon: /* @__PURE__ */ jsx(HeartIcon, {}),
|
|
36
|
+
value: likes
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
key: "views",
|
|
40
|
+
icon: /* @__PURE__ */ jsx(BarChartIcon, {}),
|
|
41
|
+
value: views
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
return /* @__PURE__ */ jsx(PreviewShell, {
|
|
45
|
+
label,
|
|
46
|
+
id,
|
|
47
|
+
platform: "x",
|
|
48
|
+
className: [XPostPreview_module_default.root, className].filter(Boolean).join(" "),
|
|
49
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
50
|
+
className: XPostPreview_module_default.layout,
|
|
51
|
+
children: [/* @__PURE__ */ jsx(PreviewAvatar, { account }), /* @__PURE__ */ jsxs("div", {
|
|
52
|
+
className: XPostPreview_module_default.main,
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ jsxs("div", {
|
|
55
|
+
className: XPostPreview_module_default.head,
|
|
56
|
+
children: [/* @__PURE__ */ jsx(PreviewName, {
|
|
57
|
+
account,
|
|
58
|
+
showHandle: true
|
|
59
|
+
}), timeLabel ? /* @__PURE__ */ jsxs("span", {
|
|
60
|
+
className: XPostPreview_module_default.time,
|
|
61
|
+
children: ["· ", timeLabel]
|
|
62
|
+
}) : null]
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ jsx(PreviewText, { text: head }),
|
|
65
|
+
tail ? /* @__PURE__ */ jsx("p", {
|
|
66
|
+
className: XPostPreview_module_default.over,
|
|
67
|
+
"data-over": "",
|
|
68
|
+
children: tail
|
|
69
|
+
}) : null,
|
|
70
|
+
media ? /* @__PURE__ */ jsx(PreviewMedia, {
|
|
71
|
+
media,
|
|
72
|
+
ratio: "16:9",
|
|
73
|
+
className: XPostPreview_module_default.media
|
|
74
|
+
}) : null,
|
|
75
|
+
/* @__PURE__ */ jsxs("div", {
|
|
76
|
+
className: XPostPreview_module_default.counters,
|
|
77
|
+
"aria-hidden": "true",
|
|
78
|
+
children: [counters.map((c) => /* @__PURE__ */ jsxs("span", {
|
|
79
|
+
className: XPostPreview_module_default.counter,
|
|
80
|
+
children: [c.icon, c.value ? /* @__PURE__ */ jsx("span", {
|
|
81
|
+
className: XPostPreview_module_default.count,
|
|
82
|
+
children: c.value
|
|
83
|
+
}) : null]
|
|
84
|
+
}, c.key)), /* @__PURE__ */ jsx(ShareIcon, { className: XPostPreview_module_default.share })]
|
|
85
|
+
})
|
|
86
|
+
]
|
|
87
|
+
})]
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
export { XPostPreview };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import './XPostPreview.css';
|
|
2
|
+
// src/agency/XPostPreview/XPostPreview.module.css
|
|
3
|
+
var XPostPreview_module_default = {
|
|
4
|
+
"root": "sti-XPostPreview-root-38842",
|
|
5
|
+
"layout": "sti-XPostPreview-layout-e9e34",
|
|
6
|
+
"main": "sti-XPostPreview-main-aad24",
|
|
7
|
+
"head": "sti-XPostPreview-head-4990f",
|
|
8
|
+
"time": "sti-XPostPreview-time-5cd4e",
|
|
9
|
+
"over": "sti-XPostPreview-over-51a4a",
|
|
10
|
+
"media": "sti-XPostPreview-media-fd961",
|
|
11
|
+
"counters": "sti-XPostPreview-counters-43ba5",
|
|
12
|
+
"counter": "sti-XPostPreview-counter-c507b",
|
|
13
|
+
"count": "sti-XPostPreview-count-6cab0",
|
|
14
|
+
"share": "sti-XPostPreview-share-70703"
|
|
15
|
+
};
|
|
16
|
+
export { XPostPreview_module_default as default };
|