@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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
Sürüm numaraları anlamlıdır: kırıcı değişiklik yalnız büyük sürümde, önceden kullanımdan kaldırma
|
|
4
4
|
uyarısıyla gelir. `1.0`'a kadar (dalga 2 sonu) küçük sürümler de kırıcı olabilir; burada yazılır.
|
|
5
5
|
|
|
6
|
+
## 0.2.0 — 2026-11-13
|
|
7
|
+
|
|
8
|
+
93 yeni bileşen; hazır sayısı 339/485. Yeni alt yollar ana girişe girmez, yalnız kendi yolundan içe aktarılır: `/charts`, `/id`, `/ai`, `/media`, `/editor`, `/agency`, `/site`, `/commerce`, `/maps`, `/email`, `/document`.
|
|
9
|
+
|
|
10
|
+
- **Veri gösterimi (ana giriş, 7):** PersonItem, Table, LinkRows, FileList, Figure, Accordion, Disclosure.
|
|
11
|
+
- **Uygulama kalıpları (ana giriş, 4):** ErrorPage, FeedbackWidget, TrashView, WhatsNew.
|
|
12
|
+
- **Grafikler (`/charts`, 8; bağımlılıksız SVG):** ChartLegend, ChartTooltip, ChartTable, LineChart, AreaChart, BarChart, StackedBarChart, ComboChart. Tek odak durağı ve ok tuşlarıyla veri noktası gezinmesi, Grafik/Tablo geçişi, boş ve yükleniyor durumu, zorunlu renklerde desenler.
|
|
13
|
+
- **STI ID parçaları (`/id`, 5):** AccountMenu, AppSwitcher, OrgSwitcher, PermissionGate (`hasPermission`), SignInButton.
|
|
14
|
+
- **Yapay zekâ arayüzü (`/ai`, 12):** ChatThread, PromptInput, StreamingText, MessageActions, SourceList, ThinkingIndicator, SuggestedPrompts, ToolCallCard, AttachmentChip, ConversationList, ModelSelect, AiDisclosure.
|
|
15
|
+
- **Medya (`/media`, 5):** VideoPlayer, AudioPlayer, AudioWaveform, VideoThumbnail, MediaCard. Dış adresli içerik kullanıcı izin verene kadar yüklenmez (gizlilik modu).
|
|
16
|
+
- **Editörler (`/editor`, 3):** CodeEditor (bağımlılıksız renklendirme), JsonEditor (doğrulama, biçimlendirme, sıkıştırma), MarkdownEditor (biçimlendirme çubuğu, güvenli önizleme).
|
|
17
|
+
- **Ajansa özel (`/agency`, 10):** InstagramPostPreview, InstagramStoryPreview, InstagramReelPreview, TikTokPreview, FacebookPostPreview, LinkedInPostPreview, XPostPreview, ThreadsPostPreview, PinterestPinPreview, YouTubeThumbnailPreview; platform karakter sınırları `PLATFORM_LIMITS`.
|
|
18
|
+
- **Site (`/site`, 5):** SiteHeader, MegaMenu, SiteFooter, AnnouncementBar, StickyCta.
|
|
19
|
+
- **E-ticaret (`/commerce`, 5):** PriceDisplay, StockBadge, QuantityStepper, AddToCartButton, VariantSelector.
|
|
20
|
+
- **Harita (`/maps`, 6):** MapView, MapMarker, LocationPicker, StoreLocator, TurkeyMap, DirectionsLink. Harita karoları kullanıcı "Haritayı yükle" diyene kadar istenmez.
|
|
21
|
+
- **E-posta (`/email`, 17):** EmailLayout (`emailDocument`), EmailPreheader, EmailHeader, EmailFooter, EmailButton, EmailHeading, EmailText, EmailDivider, EmailImage, EmailColumns, EmailCallout, EmailList, EmailCode, EmailTable, EmailStats, EmailProductRow, EmailSocialLinks. E-posta istemcileri stil dosyası okumadığı için stiller satır içidir (bilinçli kural dışı karar; değerler tasarım değerlerinden gelir).
|
|
22
|
+
- **Belge (`/document`, 6):** DocumentLayout, DocumentTable, TotalsBlock (`calculateTotals`), PaymentInfo (kart alanı yok), PageNumber, Watermark.
|
|
23
|
+
|
|
6
24
|
## 0.1.0 — 2026-11-07
|
|
7
25
|
|
|
8
26
|
İlk genel sürüm: 246 bileşen (temel dalganın tamamı, uygulama dalgasının büyük bölümü), tasarım
|
package/README.md
CHANGED
|
@@ -130,6 +130,31 @@ import { AlertTriangleIcon, CheckIcon } from "@stisocial/ui/icons";
|
|
|
130
130
|
- **Ad:** düğmenin içindeki ikona ad verilmez; adı düğme taşır.
|
|
131
131
|
- **Liste ve kurallar:** ikon listesi ve arama sözcükleri `iconCatalog`'dadır; tasarım kuralları depodaki `packages/ui/icons/README.md` dosyasındadır.
|
|
132
132
|
|
|
133
|
+
## E-posta
|
|
134
|
+
|
|
135
|
+
`@stisocial/ui/email`: işlem ve bülten e-postaları için 17 sunucu bileşeni (`EmailLayout`, `EmailButton`, `EmailCode`, `EmailTable`, `EmailFooter`…). Çıktı sunucuda üretilir ve tam belgeye sarılır:
|
|
136
|
+
|
|
137
|
+
```tsx
|
|
138
|
+
import { renderToStaticMarkup } from "react-dom/server";
|
|
139
|
+
import { EmailButton, EmailHeading, EmailLayout, EmailText, emailDocument } from "@stisocial/ui/email";
|
|
140
|
+
|
|
141
|
+
const title = "E-posta adresinizi doğrulayın";
|
|
142
|
+
const html = emailDocument({
|
|
143
|
+
title,
|
|
144
|
+
body: renderToStaticMarkup(
|
|
145
|
+
<EmailLayout title={title}>
|
|
146
|
+
<EmailHeading>{title}</EmailHeading>
|
|
147
|
+
<EmailText>Hesabınızı etkinleştirmek için düğmeyi kullanın.</EmailText>
|
|
148
|
+
<EmailButton href="https://id.stisocial.com/dogrula">E-posta adresimi doğrula</EmailButton>
|
|
149
|
+
</EmailLayout>,
|
|
150
|
+
),
|
|
151
|
+
});
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
- **Stil:** satır içidir; e-posta istemcileri stil dosyası ve CSS değişkeni okumaz. Değerler tasarım değerlerinin açık palet sRGB karşılığından gelir. Bu bileşenler web sayfasında kullanılmaz.
|
|
155
|
+
- **Güvenlik:** bağlantılar yalnız `https:`, `mailto:`, `tel:`; görseller yalnız `https:` ve `cid:`. Güvensiz adres atlanır.
|
|
156
|
+
- **Düzen:** 600 piksellik kart; sütunlar ortam sorgusu olmadan dar ekranda alt alta iner.
|
|
157
|
+
|
|
133
158
|
## Türkçe yardımcılar
|
|
134
159
|
|
|
135
160
|
Sunucuda ve istemcide aynı sonucu verirler. Saat dilimi varsayılanı `Europe/Istanbul`'dur.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-FacebookPostPreview-root-eb581 {
|
|
4
|
+
--sti-preview-max: 30rem;
|
|
5
|
+
--sti-preview-pad: 0;
|
|
6
|
+
--sti-preview-gap: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.sti-FacebookPostPreview-header-e0f3d {
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: var(--sti-space-3);
|
|
12
|
+
padding: var(--sti-space-3) var(--sti-space-4);
|
|
13
|
+
display: flex;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.sti-FacebookPostPreview-who-737b2 {
|
|
17
|
+
flex: 1;
|
|
18
|
+
min-width: 0;
|
|
19
|
+
display: grid;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sti-FacebookPostPreview-sub-6590e {
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: var(--sti-space-1);
|
|
25
|
+
color: var(--sti-fg-muted);
|
|
26
|
+
font-size: var(--sti-font-size-xs);
|
|
27
|
+
line-height: var(--sti-line-height-xs);
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sti-FacebookPostPreview-globe-05e65 {
|
|
32
|
+
inline-size: var(--sti-icon-sm);
|
|
33
|
+
block-size: var(--sti-icon-sm);
|
|
34
|
+
flex: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.sti-FacebookPostPreview-more-25539 {
|
|
38
|
+
color: var(--sti-fg-muted);
|
|
39
|
+
flex: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.sti-FacebookPostPreview-text-20d13 {
|
|
43
|
+
padding: 0 var(--sti-space-4) var(--sti-space-3);
|
|
44
|
+
font-size: var(--sti-font-size-md);
|
|
45
|
+
line-height: var(--sti-line-height-md);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.sti-FacebookPostPreview-counts-671d7 {
|
|
49
|
+
justify-content: space-between;
|
|
50
|
+
gap: var(--sti-space-3);
|
|
51
|
+
padding: var(--sti-space-2) var(--sti-space-4);
|
|
52
|
+
color: var(--sti-fg-muted);
|
|
53
|
+
display: flex;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.sti-FacebookPostPreview-actions-4c9c9 {
|
|
57
|
+
margin-inline: var(--sti-space-4);
|
|
58
|
+
border-block-start: var(--sti-border-width) solid var(--sti-border-subtle);
|
|
59
|
+
display: flex;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.sti-FacebookPostPreview-action-9bbe8 {
|
|
63
|
+
justify-content: center;
|
|
64
|
+
align-items: center;
|
|
65
|
+
gap: var(--sti-space-2);
|
|
66
|
+
min-width: 0;
|
|
67
|
+
padding-block: var(--sti-space-3);
|
|
68
|
+
color: var(--sti-fg-muted);
|
|
69
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
70
|
+
flex: 1;
|
|
71
|
+
display: inline-flex;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PreviewAccount, PreviewBaseProps, PreviewMediaItem, PreviewRatio } from "../_shared/Preview.js";
|
|
2
|
+
export interface FacebookPostPreviewProps extends PreviewBaseProps {
|
|
3
|
+
/** Sayfa ya da kişi. `subtitle` zaman ve görünürlük satırıdır ("3 sa · Herkese açık"). */
|
|
4
|
+
account: PreviewAccount;
|
|
5
|
+
text: string;
|
|
6
|
+
media?: PreviewMediaItem;
|
|
7
|
+
/** Görsel oranı: akışta 1:1 ya da 1,91:1 (bağlantı görseli). */
|
|
8
|
+
ratio?: Extract<PreviewRatio, "1:1" | "1.91:1" | "4:5">;
|
|
9
|
+
/** Tepki ve yorum sayıları ("248", "32 yorum"). */
|
|
10
|
+
reactionsLabel?: string;
|
|
11
|
+
commentsLabel?: string;
|
|
12
|
+
/** Eylem düğmelerinin yazıları; verilmezse yalnız ikon çizilir. */
|
|
13
|
+
actionLabels?: {
|
|
14
|
+
like: string;
|
|
15
|
+
comment: string;
|
|
16
|
+
share: string;
|
|
17
|
+
};
|
|
18
|
+
/** Kesilen metnin sonuna eklenen metin ("Devamını gör"). */
|
|
19
|
+
moreLabel?: string;
|
|
20
|
+
/** Metnin tamamını gösterir. */
|
|
21
|
+
expanded?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Facebook sayfa gönderisi önizlemesi: üst bilgi, metin (ilk 477 karakter), görsel, tepki satırı
|
|
25
|
+
* ve eylem şeridi. Sunucu bileşenidir.
|
|
26
|
+
*/
|
|
27
|
+
export declare function FacebookPostPreview({ label, account, text, media, ratio, reactionsLabel, commentsLabel, actionLabels, moreLabel, expanded, className, id }: FacebookPostPreviewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { MoreHorizontalIcon } from "../../icons/generated/MoreHorizontalIcon.js";
|
|
2
|
+
import { HeartIcon } from "../../icons/generated/HeartIcon.js";
|
|
3
|
+
import { MessageIcon } from "../../icons/generated/MessageIcon.js";
|
|
4
|
+
import { GlobeIcon } from "../../icons/generated/GlobeIcon.js";
|
|
5
|
+
import { ShareIcon } from "../../icons/generated/ShareIcon.js";
|
|
6
|
+
import { PLATFORM_LIMITS } from "../_shared/platforms.js";
|
|
7
|
+
import { PreviewAvatar, PreviewMedia, PreviewName, PreviewShell, PreviewText } from "../_shared/Preview.js";
|
|
8
|
+
import FacebookPostPreview_module_default from "./FacebookPostPreview.module.js";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
// src/agency/FacebookPostPreview/FacebookPostPreview.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Facebook sayfa gönderisi önizlemesi: üst bilgi, metin (ilk 477 karakter), görsel, tepki satırı
|
|
13
|
+
* ve eylem şeridi. Sunucu bileşenidir.
|
|
14
|
+
*/
|
|
15
|
+
function FacebookPostPreview({ label, account, text, media, ratio = "1.91:1", reactionsLabel, commentsLabel, actionLabels, moreLabel, expanded = false, className, id }) {
|
|
16
|
+
const actions = [
|
|
17
|
+
{
|
|
18
|
+
key: "like",
|
|
19
|
+
icon: /* @__PURE__ */ jsx(HeartIcon, {}),
|
|
20
|
+
text: actionLabels?.like
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
key: "comment",
|
|
24
|
+
icon: /* @__PURE__ */ jsx(MessageIcon, {}),
|
|
25
|
+
text: actionLabels?.comment
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
key: "share",
|
|
29
|
+
icon: /* @__PURE__ */ jsx(ShareIcon, {}),
|
|
30
|
+
text: actionLabels?.share
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
return /* @__PURE__ */ jsxs(PreviewShell, {
|
|
34
|
+
label,
|
|
35
|
+
id,
|
|
36
|
+
platform: "facebook",
|
|
37
|
+
className: [FacebookPostPreview_module_default.root, className].filter(Boolean).join(" "),
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ jsxs("div", {
|
|
40
|
+
className: FacebookPostPreview_module_default.header,
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ jsx(PreviewAvatar, { account }),
|
|
43
|
+
/* @__PURE__ */ jsxs("span", {
|
|
44
|
+
className: FacebookPostPreview_module_default.who,
|
|
45
|
+
children: [/* @__PURE__ */ jsx(PreviewName, { account }), account.subtitle ? /* @__PURE__ */ jsxs("span", {
|
|
46
|
+
className: FacebookPostPreview_module_default.sub,
|
|
47
|
+
children: [account.subtitle, /* @__PURE__ */ jsx(GlobeIcon, { className: FacebookPostPreview_module_default.globe })]
|
|
48
|
+
}) : null]
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ jsx(MoreHorizontalIcon, { className: FacebookPostPreview_module_default.more })
|
|
51
|
+
]
|
|
52
|
+
}),
|
|
53
|
+
/* @__PURE__ */ jsx("div", {
|
|
54
|
+
className: FacebookPostPreview_module_default.text,
|
|
55
|
+
children: /* @__PURE__ */ jsx(PreviewText, {
|
|
56
|
+
text,
|
|
57
|
+
limit: expanded ? void 0 : PLATFORM_LIMITS.facebook.visible,
|
|
58
|
+
moreLabel
|
|
59
|
+
})
|
|
60
|
+
}),
|
|
61
|
+
media ? /* @__PURE__ */ jsx(PreviewMedia, {
|
|
62
|
+
media,
|
|
63
|
+
ratio
|
|
64
|
+
}) : null,
|
|
65
|
+
reactionsLabel || commentsLabel ? /* @__PURE__ */ jsxs("div", {
|
|
66
|
+
className: FacebookPostPreview_module_default.counts,
|
|
67
|
+
children: [/* @__PURE__ */ jsx("span", { children: reactionsLabel }), /* @__PURE__ */ jsx("span", { children: commentsLabel })]
|
|
68
|
+
}) : null,
|
|
69
|
+
/* @__PURE__ */ jsx("div", {
|
|
70
|
+
className: FacebookPostPreview_module_default.actions,
|
|
71
|
+
"aria-hidden": "true",
|
|
72
|
+
children: actions.map((a) => /* @__PURE__ */ jsxs("span", {
|
|
73
|
+
className: FacebookPostPreview_module_default.action,
|
|
74
|
+
children: [a.icon, a.text ? /* @__PURE__ */ jsx("span", { children: a.text }) : null]
|
|
75
|
+
}, a.key))
|
|
76
|
+
})
|
|
77
|
+
]
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
export { FacebookPostPreview };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './FacebookPostPreview.css';
|
|
2
|
+
// src/agency/FacebookPostPreview/FacebookPostPreview.module.css
|
|
3
|
+
var FacebookPostPreview_module_default = {
|
|
4
|
+
"root": "sti-FacebookPostPreview-root-eb581",
|
|
5
|
+
"header": "sti-FacebookPostPreview-header-e0f3d",
|
|
6
|
+
"who": "sti-FacebookPostPreview-who-737b2",
|
|
7
|
+
"sub": "sti-FacebookPostPreview-sub-6590e",
|
|
8
|
+
"globe": "sti-FacebookPostPreview-globe-05e65",
|
|
9
|
+
"more": "sti-FacebookPostPreview-more-25539",
|
|
10
|
+
"text": "sti-FacebookPostPreview-text-20d13",
|
|
11
|
+
"counts": "sti-FacebookPostPreview-counts-671d7",
|
|
12
|
+
"actions": "sti-FacebookPostPreview-actions-4c9c9",
|
|
13
|
+
"action": "sti-FacebookPostPreview-action-9bbe8"
|
|
14
|
+
};
|
|
15
|
+
export { FacebookPostPreview_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-InstagramPostPreview-root-1175c {
|
|
4
|
+
--sti-preview-max: 28rem;
|
|
5
|
+
--sti-preview-pad: 0;
|
|
6
|
+
--sti-preview-gap: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.sti-InstagramPostPreview-header-c05b2 {
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: var(--sti-space-3);
|
|
12
|
+
padding: var(--sti-space-3);
|
|
13
|
+
display: flex;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.sti-InstagramPostPreview-who-7146e {
|
|
17
|
+
flex: 1;
|
|
18
|
+
min-width: 0;
|
|
19
|
+
display: grid;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sti-InstagramPostPreview-sub-5b4da {
|
|
23
|
+
color: var(--sti-fg-muted);
|
|
24
|
+
font-size: var(--sti-font-size-xs);
|
|
25
|
+
line-height: var(--sti-line-height-xs);
|
|
26
|
+
text-overflow: ellipsis;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sti-InstagramPostPreview-more-441a2 {
|
|
32
|
+
color: var(--sti-fg-muted);
|
|
33
|
+
flex: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.sti-InstagramPostPreview-body-ad977 {
|
|
37
|
+
gap: var(--sti-space-2);
|
|
38
|
+
padding: var(--sti-space-3);
|
|
39
|
+
display: grid;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.sti-InstagramPostPreview-actions-e0a9d {
|
|
43
|
+
gap: var(--sti-space-4);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.sti-InstagramPostPreview-save-0bd3f {
|
|
47
|
+
margin-inline-start: auto;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.sti-InstagramPostPreview-dots-2eff0 {
|
|
51
|
+
justify-content: center;
|
|
52
|
+
gap: var(--sti-space-1);
|
|
53
|
+
display: flex;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.sti-InstagramPostPreview-dot-e7fa7 {
|
|
57
|
+
inline-size: var(--sti-space-1);
|
|
58
|
+
block-size: var(--sti-space-1);
|
|
59
|
+
border-radius: var(--sti-radius-pill);
|
|
60
|
+
background: var(--sti-border-strong);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.sti-InstagramPostPreview-dot-e7fa7[data-active] {
|
|
64
|
+
background: var(--sti-fill-accent);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.sti-InstagramPostPreview-likes-bdaad {
|
|
68
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
69
|
+
margin: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.sti-InstagramPostPreview-time-d9dba {
|
|
73
|
+
color: var(--sti-fg-muted);
|
|
74
|
+
font-size: var(--sti-font-size-xs);
|
|
75
|
+
line-height: var(--sti-line-height-xs);
|
|
76
|
+
margin: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@media (forced-colors: active) {
|
|
80
|
+
.sti-InstagramPostPreview-dot-e7fa7[data-active] {
|
|
81
|
+
background: highlight;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PreviewAccount, PreviewBaseProps, PreviewMediaItem, PreviewRatio } from "../_shared/Preview.js";
|
|
2
|
+
export interface InstagramPostPreviewProps extends PreviewBaseProps {
|
|
3
|
+
account: PreviewAccount;
|
|
4
|
+
/** Açıklama metni; akışta ilk 125 karakteri görünür, devamı "devamı" ile kesilir. */
|
|
5
|
+
caption: string;
|
|
6
|
+
/** Görseller; birden çoksa carousel noktaları çizilir, ilk görsel gösterilir. */
|
|
7
|
+
media?: readonly PreviewMediaItem[];
|
|
8
|
+
/** Görsel oranı: Instagram akışı 1:1, 4:5 ve 1,91:1 destekler. */
|
|
9
|
+
ratio?: Extract<PreviewRatio, "1:1" | "4:5" | "1.91:1">;
|
|
10
|
+
/** Beğeni satırı ("1.248 beğenme"). */
|
|
11
|
+
likesLabel?: string;
|
|
12
|
+
/** Zaman satırı ("2 saat önce"). */
|
|
13
|
+
timeLabel?: string;
|
|
14
|
+
/** Kesilen açıklamanın sonuna eklenen metin ("devamı"). */
|
|
15
|
+
moreLabel?: string;
|
|
16
|
+
/** Açıklamanın tamamını gösterir. */
|
|
17
|
+
expanded?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Instagram akış gönderisi önizlemesi: üst bilgi, görsel, eylem şeridi, beğeni ve açıklama.
|
|
21
|
+
* Sunucu bileşenidir. Yerleşim ve karakter sınırı platformunkine uyar; çizim bizimdir.
|
|
22
|
+
*/
|
|
23
|
+
export declare function InstagramPostPreview({ label, account, caption, media, ratio, likesLabel, timeLabel, moreLabel, expanded, className, id }: InstagramPostPreviewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { MoreHorizontalIcon } from "../../icons/generated/MoreHorizontalIcon.js";
|
|
2
|
+
import { BookmarkIcon } from "../../icons/generated/BookmarkIcon.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 } from "../_shared/platforms.js";
|
|
7
|
+
import { PreviewActions, PreviewAvatar, PreviewMedia, PreviewName, PreviewShell, PreviewText } from "../_shared/Preview.js";
|
|
8
|
+
import InstagramPostPreview_module_default from "./InstagramPostPreview.module.js";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
// src/agency/InstagramPostPreview/InstagramPostPreview.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Instagram akış gönderisi önizlemesi: üst bilgi, görsel, eylem şeridi, beğeni ve açıklama.
|
|
13
|
+
* Sunucu bileşenidir. Yerleşim ve karakter sınırı platformunkine uyar; çizim bizimdir.
|
|
14
|
+
*/
|
|
15
|
+
function InstagramPostPreview({ label, account, caption, media, ratio = "1:1", likesLabel, timeLabel, moreLabel, expanded = false, className, id }) {
|
|
16
|
+
const count = media?.length ?? 0;
|
|
17
|
+
return /* @__PURE__ */ jsxs(PreviewShell, {
|
|
18
|
+
label,
|
|
19
|
+
id,
|
|
20
|
+
platform: "instagram-post",
|
|
21
|
+
className: [InstagramPostPreview_module_default.root, className].filter(Boolean).join(" "),
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ jsxs("div", {
|
|
24
|
+
className: InstagramPostPreview_module_default.header,
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ jsx(PreviewAvatar, { account }),
|
|
27
|
+
/* @__PURE__ */ jsxs("span", {
|
|
28
|
+
className: InstagramPostPreview_module_default.who,
|
|
29
|
+
children: [/* @__PURE__ */ jsx(PreviewName, { account }), account.subtitle ? /* @__PURE__ */ jsx("span", {
|
|
30
|
+
className: InstagramPostPreview_module_default.sub,
|
|
31
|
+
children: account.subtitle
|
|
32
|
+
}) : null]
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ jsx(MoreHorizontalIcon, { className: InstagramPostPreview_module_default.more })
|
|
35
|
+
]
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ jsx(PreviewMedia, {
|
|
38
|
+
media: media?.[0],
|
|
39
|
+
ratio
|
|
40
|
+
}),
|
|
41
|
+
/* @__PURE__ */ jsxs("div", {
|
|
42
|
+
className: InstagramPostPreview_module_default.body,
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ jsxs(PreviewActions, {
|
|
45
|
+
className: InstagramPostPreview_module_default.actions,
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsx(HeartIcon, {}),
|
|
48
|
+
/* @__PURE__ */ jsx(MessageIcon, {}),
|
|
49
|
+
/* @__PURE__ */ jsx(SendIcon, {}),
|
|
50
|
+
/* @__PURE__ */ jsx(BookmarkIcon, { className: InstagramPostPreview_module_default.save })
|
|
51
|
+
]
|
|
52
|
+
}),
|
|
53
|
+
count > 1 ? /* @__PURE__ */ jsx("div", {
|
|
54
|
+
className: InstagramPostPreview_module_default.dots,
|
|
55
|
+
"aria-hidden": "true",
|
|
56
|
+
children: media?.map((m, i) => /* @__PURE__ */ jsx("span", {
|
|
57
|
+
className: InstagramPostPreview_module_default.dot,
|
|
58
|
+
"data-active": i === 0 ? "" : void 0
|
|
59
|
+
}, m.src))
|
|
60
|
+
}) : null,
|
|
61
|
+
likesLabel ? /* @__PURE__ */ jsx("p", {
|
|
62
|
+
className: InstagramPostPreview_module_default.likes,
|
|
63
|
+
children: likesLabel
|
|
64
|
+
}) : null,
|
|
65
|
+
/* @__PURE__ */ jsx(PreviewText, {
|
|
66
|
+
lead: account.handle ?? account.name,
|
|
67
|
+
text: caption,
|
|
68
|
+
limit: expanded ? void 0 : PLATFORM_LIMITS.instagram.visible,
|
|
69
|
+
moreLabel
|
|
70
|
+
}),
|
|
71
|
+
timeLabel ? /* @__PURE__ */ jsx("p", {
|
|
72
|
+
className: InstagramPostPreview_module_default.time,
|
|
73
|
+
children: timeLabel
|
|
74
|
+
}) : null
|
|
75
|
+
]
|
|
76
|
+
})
|
|
77
|
+
]
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
export { InstagramPostPreview };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import './InstagramPostPreview.css';
|
|
2
|
+
// src/agency/InstagramPostPreview/InstagramPostPreview.module.css
|
|
3
|
+
var InstagramPostPreview_module_default = {
|
|
4
|
+
"root": "sti-InstagramPostPreview-root-1175c",
|
|
5
|
+
"header": "sti-InstagramPostPreview-header-c05b2",
|
|
6
|
+
"who": "sti-InstagramPostPreview-who-7146e",
|
|
7
|
+
"sub": "sti-InstagramPostPreview-sub-5b4da",
|
|
8
|
+
"more": "sti-InstagramPostPreview-more-441a2",
|
|
9
|
+
"body": "sti-InstagramPostPreview-body-ad977",
|
|
10
|
+
"actions": "sti-InstagramPostPreview-actions-e0a9d",
|
|
11
|
+
"save": "sti-InstagramPostPreview-save-0bd3f",
|
|
12
|
+
"dots": "sti-InstagramPostPreview-dots-2eff0",
|
|
13
|
+
"dot": "sti-InstagramPostPreview-dot-e7fa7",
|
|
14
|
+
"likes": "sti-InstagramPostPreview-likes-bdaad",
|
|
15
|
+
"time": "sti-InstagramPostPreview-time-d9dba"
|
|
16
|
+
};
|
|
17
|
+
export { InstagramPostPreview_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-InstagramReelPreview-root-9b0a4 {
|
|
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-InstagramReelPreview-play-b191e {
|
|
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-InstagramReelPreview-bottom-18ff4 {
|
|
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-InstagramReelPreview-info-cc71f {
|
|
35
|
+
gap: var(--sti-space-2);
|
|
36
|
+
flex: 1;
|
|
37
|
+
justify-items: start;
|
|
38
|
+
min-width: 0;
|
|
39
|
+
display: grid;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.sti-InstagramReelPreview-rail-1399a {
|
|
43
|
+
gap: var(--sti-space-3);
|
|
44
|
+
flex: none;
|
|
45
|
+
justify-items: center;
|
|
46
|
+
display: grid;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.sti-InstagramReelPreview-railItem-80ae9 {
|
|
50
|
+
justify-items: center;
|
|
51
|
+
gap: var(--sti-space-0-5);
|
|
52
|
+
display: grid;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.sti-InstagramReelPreview-railIcon-c8539 {
|
|
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-InstagramReelPreview-count-dcc7d {
|
|
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-InstagramReelPreview-play-b191e, .sti-InstagramReelPreview-railIcon-c8539, .sti-InstagramReelPreview-count-dcc7d {
|
|
79
|
+
border: var(--sti-border-width) solid CanvasText;
|
|
80
|
+
color: canvastext;
|
|
81
|
+
background: canvas;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PreviewAccount, PreviewBaseProps, PreviewMediaItem } from "../_shared/Preview.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
export interface InstagramReelPreviewProps extends PreviewBaseProps {
|
|
4
|
+
account: PreviewAccount;
|
|
5
|
+
/** Kapak ya da bir kare (9:16). */
|
|
6
|
+
media?: PreviewMediaItem;
|
|
7
|
+
/** Açıklama; akışta ilk 125 karakteri görünür. */
|
|
8
|
+
caption?: string;
|
|
9
|
+
/** Ses satırı ("Özgün ses · stisocial"). */
|
|
10
|
+
audio?: string;
|
|
11
|
+
/** Sayılar (biçimlenmiş metin): "12,4 B". */
|
|
12
|
+
likes?: string;
|
|
13
|
+
comments?: string;
|
|
14
|
+
shares?: string;
|
|
15
|
+
/** Kesilen açıklamanın sonuna eklenen metin ("devamı"). */
|
|
16
|
+
moreLabel?: string;
|
|
17
|
+
/** Görselin üstüne konan katman (ör. `SafeZoneOverlay`). */
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Instagram reels önizlemesi: 9:16 çerçeve, sağda eylem sütunu, altta hesap, açıklama ve ses.
|
|
22
|
+
* Sunucu bileşenidir.
|
|
23
|
+
*/
|
|
24
|
+
export declare function InstagramReelPreview({ label, account, media, caption, audio, likes, comments, shares, moreLabel, children, className, id }: InstagramReelPreviewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { MoreHorizontalIcon } from "../../icons/generated/MoreHorizontalIcon.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 { SendIcon } from "../../icons/generated/SendIcon.js";
|
|
6
|
+
import { PLATFORM_LIMITS, truncateText } from "../_shared/platforms.js";
|
|
7
|
+
import { PreviewAvatar, PreviewChip, PreviewMedia, PreviewName, PreviewShell } from "../_shared/Preview.js";
|
|
8
|
+
import InstagramReelPreview_module_default from "./InstagramReelPreview.module.js";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
// src/agency/InstagramReelPreview/InstagramReelPreview.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Instagram reels önizlemesi: 9:16 çerçeve, sağda eylem sütunu, altta hesap, açıklama ve ses.
|
|
13
|
+
* Sunucu bileşenidir.
|
|
14
|
+
*/
|
|
15
|
+
function InstagramReelPreview({ label, account, media, caption, audio, likes, comments, shares, moreLabel, children, className, id }) {
|
|
16
|
+
const text = caption ? truncateText(caption, PLATFORM_LIMITS.instagram.visible) : null;
|
|
17
|
+
const rail = [
|
|
18
|
+
[
|
|
19
|
+
/* @__PURE__ */ jsx(HeartIcon, {}, "h"),
|
|
20
|
+
likes,
|
|
21
|
+
"likes"
|
|
22
|
+
],
|
|
23
|
+
[
|
|
24
|
+
/* @__PURE__ */ jsx(MessageIcon, {}, "m"),
|
|
25
|
+
comments,
|
|
26
|
+
"comments"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
/* @__PURE__ */ jsx(SendIcon, {}, "s"),
|
|
30
|
+
shares,
|
|
31
|
+
"shares"
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
/* @__PURE__ */ jsx(MoreHorizontalIcon, {}, "o"),
|
|
35
|
+
void 0,
|
|
36
|
+
"more"
|
|
37
|
+
]
|
|
38
|
+
];
|
|
39
|
+
return /* @__PURE__ */ jsx(PreviewShell, {
|
|
40
|
+
label,
|
|
41
|
+
id,
|
|
42
|
+
platform: "instagram-reel",
|
|
43
|
+
className: [InstagramReelPreview_module_default.root, className].filter(Boolean).join(" "),
|
|
44
|
+
children: /* @__PURE__ */ jsxs(PreviewMedia, {
|
|
45
|
+
media,
|
|
46
|
+
ratio: "9:16",
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ jsx("span", {
|
|
49
|
+
className: InstagramReelPreview_module_default.play,
|
|
50
|
+
"aria-hidden": "true",
|
|
51
|
+
children: /* @__PURE__ */ jsx(PlayIcon, {})
|
|
52
|
+
}),
|
|
53
|
+
/* @__PURE__ */ jsxs("div", {
|
|
54
|
+
className: InstagramReelPreview_module_default.bottom,
|
|
55
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
56
|
+
className: InstagramReelPreview_module_default.info,
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ jsxs(PreviewChip, { children: [/* @__PURE__ */ jsx(PreviewAvatar, {
|
|
59
|
+
account,
|
|
60
|
+
size: "sm"
|
|
61
|
+
}), /* @__PURE__ */ jsx(PreviewName, { account })] }),
|
|
62
|
+
text ? /* @__PURE__ */ jsxs(PreviewChip, {
|
|
63
|
+
block: true,
|
|
64
|
+
children: [text.text, text.cut ? `… ${moreLabel ?? ""}`.trimEnd() : ""]
|
|
65
|
+
}) : null,
|
|
66
|
+
audio ? /* @__PURE__ */ jsx(PreviewChip, { children: audio }) : null
|
|
67
|
+
]
|
|
68
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
69
|
+
className: InstagramReelPreview_module_default.rail,
|
|
70
|
+
"aria-hidden": "true",
|
|
71
|
+
children: rail.map(([icon, count, key]) => /* @__PURE__ */ jsxs("span", {
|
|
72
|
+
className: InstagramReelPreview_module_default.railItem,
|
|
73
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
74
|
+
className: InstagramReelPreview_module_default.railIcon,
|
|
75
|
+
children: icon
|
|
76
|
+
}), count ? /* @__PURE__ */ jsx("span", {
|
|
77
|
+
className: InstagramReelPreview_module_default.count,
|
|
78
|
+
children: count
|
|
79
|
+
}) : null]
|
|
80
|
+
}, key))
|
|
81
|
+
})]
|
|
82
|
+
}),
|
|
83
|
+
children
|
|
84
|
+
]
|
|
85
|
+
})
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
export { InstagramReelPreview };
|