@stisocial/ui 0.1.0 → 0.2.1
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 +32 -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/TimeSlotPicker/TimeSlotPicker.d.ts +1 -11
- package/dist/components/TimeSlotPicker/TimeSlotPicker.js +2 -24
- package/dist/components/TimeSlotPicker/index.d.ts +3 -2
- package/dist/components/TimeSlotPicker/timeSlots.d.ts +12 -0
- package/dist/components/TimeSlotPicker/timeSlots.js +25 -0
- package/dist/components/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 +194 -0
- package/dist/id/AccountMenu/AccountMenu.d.ts +73 -0
- package/dist/id/AccountMenu/AccountMenu.js +171 -0
- package/dist/id/AccountMenu/AccountMenu.module.js +21 -0
- package/dist/id/AccountMenu/index.d.ts +2 -0
- package/dist/id/AppSwitcher/AppSwitcher.css +231 -0
- package/dist/id/AppSwitcher/AppSwitcher.d.ts +56 -0
- package/dist/id/AppSwitcher/AppSwitcher.js +141 -0
- package/dist/id/AppSwitcher/AppSwitcher.module.js +17 -0
- package/dist/id/AppSwitcher/index.d.ts +2 -0
- package/dist/id/OrgSwitcher/OrgSwitcher.css +222 -0
- package/dist/id/OrgSwitcher/OrgSwitcher.d.ts +62 -0
- package/dist/id/OrgSwitcher/OrgSwitcher.js +189 -0
- package/dist/id/OrgSwitcher/OrgSwitcher.module.js +16 -0
- package/dist/id/OrgSwitcher/index.d.ts +2 -0
- package/dist/id/PermissionGate/PermissionGate.css +68 -0
- package/dist/id/PermissionGate/PermissionGate.d.ts +32 -0
- package/dist/id/PermissionGate/PermissionGate.js +58 -0
- package/dist/id/PermissionGate/PermissionGate.module.js +11 -0
- package/dist/id/PermissionGate/index.d.ts +2 -0
- package/dist/id/SignInButton/SignInButton.css +179 -0
- package/dist/id/SignInButton/SignInButton.d.ts +29 -0
- package/dist/id/SignInButton/SignInButton.js +53 -0
- package/dist/id/SignInButton/SignInButton.module.js +10 -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/_internal/StiMark/StiMark.css +28 -0
- package/dist/id/_internal/StiMark/StiMark.js +37 -0
- package/dist/id/_internal/StiMark/StiMark.module.js +8 -0
- package/dist/id/index.d.ts +10 -0
- package/dist/id/index.js +6 -0
- package/dist/index.d.ts +28 -5
- package/dist/index.js +16 -4
- 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 +488 -0
- package/dist/messages/messages.js +978 -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 +24991 -14440
- package/dist/text/text.d.ts +5 -1
- package/dist/text/text.js +8 -2
- package/package.json +45 -1
|
@@ -28,17 +28,24 @@ import { DownloadIcon } from "./DownloadIcon.js";
|
|
|
28
28
|
import { MailIcon } from "./MailIcon.js";
|
|
29
29
|
import { SmileIcon } from "./SmileIcon.js";
|
|
30
30
|
import { RefreshIcon } from "./RefreshIcon.js";
|
|
31
|
+
import { HomeIcon } from "./HomeIcon.js";
|
|
32
|
+
import { LockIcon } from "./LockIcon.js";
|
|
33
|
+
import { SettingsIcon } from "./SettingsIcon.js";
|
|
31
34
|
import { BookmarkIcon } from "./BookmarkIcon.js";
|
|
32
35
|
import { HeartIcon } from "./HeartIcon.js";
|
|
33
36
|
import { StarIcon } from "./StarIcon.js";
|
|
37
|
+
import { MessageIcon } from "./MessageIcon.js";
|
|
38
|
+
import { ArchiveIcon } from "./ArchiveIcon.js";
|
|
34
39
|
import { FileIcon } from "./FileIcon.js";
|
|
40
|
+
import { ImageIcon } from "./ImageIcon.js";
|
|
41
|
+
import { TableIcon } from "./TableIcon.js";
|
|
42
|
+
import { VideoIcon } from "./VideoIcon.js";
|
|
35
43
|
import { UploadIcon } from "./UploadIcon.js";
|
|
36
44
|
import { ArrowUpIcon } from "./ArrowUpIcon.js";
|
|
37
45
|
import { BuildingIcon } from "./BuildingIcon.js";
|
|
38
46
|
import { AddSquareIcon } from "./AddSquareIcon.js";
|
|
39
47
|
import { AlertIcon } from "./AlertIcon.js";
|
|
40
48
|
import { AppsIcon } from "./AppsIcon.js";
|
|
41
|
-
import { ArchiveIcon } from "./ArchiveIcon.js";
|
|
42
49
|
import { ArrowDownIcon } from "./ArrowDownIcon.js";
|
|
43
50
|
import { AtSignIcon } from "./AtSignIcon.js";
|
|
44
51
|
import { BarChartIcon } from "./BarChartIcon.js";
|
|
@@ -72,9 +79,7 @@ import { GridIcon } from "./GridIcon.js";
|
|
|
72
79
|
import { GripVerticalIcon } from "./GripVerticalIcon.js";
|
|
73
80
|
import { HashIcon } from "./HashIcon.js";
|
|
74
81
|
import { HistoryIcon } from "./HistoryIcon.js";
|
|
75
|
-
import { HomeIcon } from "./HomeIcon.js";
|
|
76
82
|
import { IdCardIcon } from "./IdCardIcon.js";
|
|
77
|
-
import { ImageIcon } from "./ImageIcon.js";
|
|
78
83
|
import { InboxIcon } from "./InboxIcon.js";
|
|
79
84
|
import { KeyIcon } from "./KeyIcon.js";
|
|
80
85
|
import { LaptopIcon } from "./LaptopIcon.js";
|
|
@@ -85,14 +90,12 @@ import { LinkIcon } from "./LinkIcon.js";
|
|
|
85
90
|
import { LiraIcon } from "./LiraIcon.js";
|
|
86
91
|
import { ListIcon } from "./ListIcon.js";
|
|
87
92
|
import { LoaderIcon } from "./LoaderIcon.js";
|
|
88
|
-
import { LockIcon } from "./LockIcon.js";
|
|
89
93
|
import { LogInIcon } from "./LogInIcon.js";
|
|
90
94
|
import { LogOutIcon } from "./LogOutIcon.js";
|
|
91
95
|
import { MailOpenIcon } from "./MailOpenIcon.js";
|
|
92
96
|
import { MapPinIcon } from "./MapPinIcon.js";
|
|
93
97
|
import { MaximizeIcon } from "./MaximizeIcon.js";
|
|
94
98
|
import { MegaphoneIcon } from "./MegaphoneIcon.js";
|
|
95
|
-
import { MessageIcon } from "./MessageIcon.js";
|
|
96
99
|
import { MicIcon } from "./MicIcon.js";
|
|
97
100
|
import { MinimizeIcon } from "./MinimizeIcon.js";
|
|
98
101
|
import { MonitorIcon } from "./MonitorIcon.js";
|
|
@@ -115,7 +118,6 @@ import { RedoIcon } from "./RedoIcon.js";
|
|
|
115
118
|
import { RotateIcon } from "./RotateIcon.js";
|
|
116
119
|
import { ScaleIcon } from "./ScaleIcon.js";
|
|
117
120
|
import { SendIcon } from "./SendIcon.js";
|
|
118
|
-
import { SettingsIcon } from "./SettingsIcon.js";
|
|
119
121
|
import { ShareIcon } from "./ShareIcon.js";
|
|
120
122
|
import { ShieldIcon } from "./ShieldIcon.js";
|
|
121
123
|
import { ShieldCheckIcon } from "./ShieldCheckIcon.js";
|
|
@@ -126,7 +128,6 @@ import { SmartphoneIcon } from "./SmartphoneIcon.js";
|
|
|
126
128
|
import { SortAscendingIcon } from "./SortAscendingIcon.js";
|
|
127
129
|
import { SortDescendingIcon } from "./SortDescendingIcon.js";
|
|
128
130
|
import { SunIcon } from "./SunIcon.js";
|
|
129
|
-
import { TableIcon } from "./TableIcon.js";
|
|
130
131
|
import { TagIcon } from "./TagIcon.js";
|
|
131
132
|
import { TrashIcon } from "./TrashIcon.js";
|
|
132
133
|
import { TrendingDownIcon } from "./TrendingDownIcon.js";
|
|
@@ -139,7 +140,6 @@ import { UserCheckIcon } from "./UserCheckIcon.js";
|
|
|
139
140
|
import { UserMinusIcon } from "./UserMinusIcon.js";
|
|
140
141
|
import { UserPlusIcon } from "./UserPlusIcon.js";
|
|
141
142
|
import { UsersIcon } from "./UsersIcon.js";
|
|
142
|
-
import { VideoIcon } from "./VideoIcon.js";
|
|
143
143
|
import { WalletIcon } from "./WalletIcon.js";
|
|
144
144
|
import { WifiIcon } from "./WifiIcon.js";
|
|
145
145
|
import { WifiOffIcon } from "./WifiOffIcon.js";
|
package/dist/icons/index.js
CHANGED
|
@@ -28,10 +28,18 @@ import { DownloadIcon } from "./generated/DownloadIcon.js";
|
|
|
28
28
|
import { MailIcon } from "./generated/MailIcon.js";
|
|
29
29
|
import { SmileIcon } from "./generated/SmileIcon.js";
|
|
30
30
|
import { RefreshIcon } from "./generated/RefreshIcon.js";
|
|
31
|
+
import { HomeIcon } from "./generated/HomeIcon.js";
|
|
32
|
+
import { LockIcon } from "./generated/LockIcon.js";
|
|
33
|
+
import { SettingsIcon } from "./generated/SettingsIcon.js";
|
|
31
34
|
import { BookmarkIcon } from "./generated/BookmarkIcon.js";
|
|
32
35
|
import { HeartIcon } from "./generated/HeartIcon.js";
|
|
33
36
|
import { StarIcon } from "./generated/StarIcon.js";
|
|
37
|
+
import { MessageIcon } from "./generated/MessageIcon.js";
|
|
38
|
+
import { ArchiveIcon } from "./generated/ArchiveIcon.js";
|
|
34
39
|
import { FileIcon } from "./generated/FileIcon.js";
|
|
40
|
+
import { ImageIcon } from "./generated/ImageIcon.js";
|
|
41
|
+
import { TableIcon } from "./generated/TableIcon.js";
|
|
42
|
+
import { VideoIcon } from "./generated/VideoIcon.js";
|
|
35
43
|
import { UploadIcon } from "./generated/UploadIcon.js";
|
|
36
44
|
import { ArrowUpIcon } from "./generated/ArrowUpIcon.js";
|
|
37
45
|
import { BuildingIcon } from "./generated/BuildingIcon.js";
|
|
@@ -39,7 +47,6 @@ import { iconCatalog } from "./generated/catalog.js";
|
|
|
39
47
|
import { AddSquareIcon } from "./generated/AddSquareIcon.js";
|
|
40
48
|
import { AlertIcon } from "./generated/AlertIcon.js";
|
|
41
49
|
import { AppsIcon } from "./generated/AppsIcon.js";
|
|
42
|
-
import { ArchiveIcon } from "./generated/ArchiveIcon.js";
|
|
43
50
|
import { ArrowDownIcon } from "./generated/ArrowDownIcon.js";
|
|
44
51
|
import { AtSignIcon } from "./generated/AtSignIcon.js";
|
|
45
52
|
import { BarChartIcon } from "./generated/BarChartIcon.js";
|
|
@@ -73,9 +80,7 @@ import { GridIcon } from "./generated/GridIcon.js";
|
|
|
73
80
|
import { GripVerticalIcon } from "./generated/GripVerticalIcon.js";
|
|
74
81
|
import { HashIcon } from "./generated/HashIcon.js";
|
|
75
82
|
import { HistoryIcon } from "./generated/HistoryIcon.js";
|
|
76
|
-
import { HomeIcon } from "./generated/HomeIcon.js";
|
|
77
83
|
import { IdCardIcon } from "./generated/IdCardIcon.js";
|
|
78
|
-
import { ImageIcon } from "./generated/ImageIcon.js";
|
|
79
84
|
import { InboxIcon } from "./generated/InboxIcon.js";
|
|
80
85
|
import { KeyIcon } from "./generated/KeyIcon.js";
|
|
81
86
|
import { LaptopIcon } from "./generated/LaptopIcon.js";
|
|
@@ -86,14 +91,12 @@ import { LinkIcon } from "./generated/LinkIcon.js";
|
|
|
86
91
|
import { LiraIcon } from "./generated/LiraIcon.js";
|
|
87
92
|
import { ListIcon } from "./generated/ListIcon.js";
|
|
88
93
|
import { LoaderIcon } from "./generated/LoaderIcon.js";
|
|
89
|
-
import { LockIcon } from "./generated/LockIcon.js";
|
|
90
94
|
import { LogInIcon } from "./generated/LogInIcon.js";
|
|
91
95
|
import { LogOutIcon } from "./generated/LogOutIcon.js";
|
|
92
96
|
import { MailOpenIcon } from "./generated/MailOpenIcon.js";
|
|
93
97
|
import { MapPinIcon } from "./generated/MapPinIcon.js";
|
|
94
98
|
import { MaximizeIcon } from "./generated/MaximizeIcon.js";
|
|
95
99
|
import { MegaphoneIcon } from "./generated/MegaphoneIcon.js";
|
|
96
|
-
import { MessageIcon } from "./generated/MessageIcon.js";
|
|
97
100
|
import { MicIcon } from "./generated/MicIcon.js";
|
|
98
101
|
import { MinimizeIcon } from "./generated/MinimizeIcon.js";
|
|
99
102
|
import { MonitorIcon } from "./generated/MonitorIcon.js";
|
|
@@ -116,7 +119,6 @@ import { RedoIcon } from "./generated/RedoIcon.js";
|
|
|
116
119
|
import { RotateIcon } from "./generated/RotateIcon.js";
|
|
117
120
|
import { ScaleIcon } from "./generated/ScaleIcon.js";
|
|
118
121
|
import { SendIcon } from "./generated/SendIcon.js";
|
|
119
|
-
import { SettingsIcon } from "./generated/SettingsIcon.js";
|
|
120
122
|
import { ShareIcon } from "./generated/ShareIcon.js";
|
|
121
123
|
import { ShieldIcon } from "./generated/ShieldIcon.js";
|
|
122
124
|
import { ShieldCheckIcon } from "./generated/ShieldCheckIcon.js";
|
|
@@ -127,7 +129,6 @@ import { SmartphoneIcon } from "./generated/SmartphoneIcon.js";
|
|
|
127
129
|
import { SortAscendingIcon } from "./generated/SortAscendingIcon.js";
|
|
128
130
|
import { SortDescendingIcon } from "./generated/SortDescendingIcon.js";
|
|
129
131
|
import { SunIcon } from "./generated/SunIcon.js";
|
|
130
|
-
import { TableIcon } from "./generated/TableIcon.js";
|
|
131
132
|
import { TagIcon } from "./generated/TagIcon.js";
|
|
132
133
|
import { TrashIcon } from "./generated/TrashIcon.js";
|
|
133
134
|
import { TrendingDownIcon } from "./generated/TrendingDownIcon.js";
|
|
@@ -140,7 +141,6 @@ import { UserCheckIcon } from "./generated/UserCheckIcon.js";
|
|
|
140
141
|
import { UserMinusIcon } from "./generated/UserMinusIcon.js";
|
|
141
142
|
import { UserPlusIcon } from "./generated/UserPlusIcon.js";
|
|
142
143
|
import { UsersIcon } from "./generated/UsersIcon.js";
|
|
143
|
-
import { VideoIcon } from "./generated/VideoIcon.js";
|
|
144
144
|
import { WalletIcon } from "./generated/WalletIcon.js";
|
|
145
145
|
import { WifiIcon } from "./generated/WifiIcon.js";
|
|
146
146
|
import { WifiOffIcon } from "./generated/WifiOffIcon.js";
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-AccountMenu-trigger-b7836 {
|
|
4
|
+
--sti-account-menu-ring: var(--sti-border-subtle);
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
block-size: max-content;
|
|
7
|
+
inline-size: max-content;
|
|
8
|
+
padding: var(--sti-space-0-5);
|
|
9
|
+
border: var(--sti-border-width) solid var(--sti-account-menu-ring);
|
|
10
|
+
border-radius: var(--sti-radius-pill);
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
-webkit-tap-highlight-color: transparent;
|
|
13
|
+
transition: border-color var(--sti-duration-fast) var(--sti-ease-snap),
|
|
14
|
+
background-color var(--sti-duration-fast) var(--sti-ease-snap),
|
|
15
|
+
box-shadow var(--sti-duration-fast) var(--sti-ease-snap);
|
|
16
|
+
background: none;
|
|
17
|
+
flex: none;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
align-self: center;
|
|
20
|
+
align-items: center;
|
|
21
|
+
margin: 0;
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (hover: hover) {
|
|
26
|
+
.sti-AccountMenu-trigger-b7836[data-hovered] {
|
|
27
|
+
--sti-account-menu-ring: var(--sti-border-accent);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sti-AccountMenu-trigger-b7836[data-pressed] {
|
|
32
|
+
background: var(--sti-bg-surface-active);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.sti-AccountMenu-trigger-b7836[data-expanded] {
|
|
36
|
+
--sti-account-menu-ring: var(--sti-border-selected);
|
|
37
|
+
box-shadow: 0 0 0 var(--sti-border-width) var(--sti-border-selected);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.sti-AccountMenu-trigger-b7836[data-focus-visible] {
|
|
41
|
+
outline: var(--sti-focus-ring-width) solid var(--sti-focus-ring);
|
|
42
|
+
outline-offset: var(--sti-focus-ring-offset);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@media (pointer: coarse) {
|
|
46
|
+
.sti-AccountMenu-trigger-b7836 {
|
|
47
|
+
min-block-size: 2.75rem;
|
|
48
|
+
min-inline-size: 2.75rem;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.sti-AccountMenu-card-5ba55 {
|
|
53
|
+
--sti-floating-w: 22.5rem;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.sti-AccountMenu-panel-697e1 {
|
|
57
|
+
gap: var(--sti-space-3);
|
|
58
|
+
min-inline-size: 0;
|
|
59
|
+
color: var(--sti-fg);
|
|
60
|
+
font-family: var(--sti-font-text);
|
|
61
|
+
display: grid;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.sti-AccountMenu-identity-42ef2 {
|
|
65
|
+
padding-block: var(--sti-space-2) var(--sti-space-1);
|
|
66
|
+
text-align: center;
|
|
67
|
+
justify-items: center;
|
|
68
|
+
display: grid;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.sti-AccountMenu-greeting-ced99 {
|
|
72
|
+
margin: var(--sti-space-3) 0 0;
|
|
73
|
+
font-family: var(--sti-font-display);
|
|
74
|
+
font-size: var(--sti-font-size-xl);
|
|
75
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
76
|
+
line-height: var(--sti-line-height-xl);
|
|
77
|
+
letter-spacing: var(--sti-tracking-xl);
|
|
78
|
+
overflow-wrap: anywhere;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.sti-AccountMenu-fullName-7a91b {
|
|
82
|
+
margin: var(--sti-space-1) 0 0;
|
|
83
|
+
color: var(--sti-fg);
|
|
84
|
+
font-size: var(--sti-font-size-sm);
|
|
85
|
+
font-weight: var(--sti-font-weight-medium);
|
|
86
|
+
line-height: var(--sti-line-height-sm);
|
|
87
|
+
overflow-wrap: anywhere;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.sti-AccountMenu-email-c7b78 {
|
|
91
|
+
color: var(--sti-fg-muted);
|
|
92
|
+
font-size: var(--sti-font-size-sm);
|
|
93
|
+
line-height: var(--sti-line-height-sm);
|
|
94
|
+
overflow-wrap: anywhere;
|
|
95
|
+
margin: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.sti-AccountMenu-manage-2a04e {
|
|
99
|
+
max-inline-size: 100%;
|
|
100
|
+
margin-block-start: var(--sti-space-4);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.sti-AccountMenu-group-8f65f {
|
|
104
|
+
gap: var(--sti-space-0-5);
|
|
105
|
+
padding: var(--sti-space-1);
|
|
106
|
+
border-radius: var(--sti-radius-lg);
|
|
107
|
+
background: var(--sti-bg-subtle);
|
|
108
|
+
margin: 0;
|
|
109
|
+
list-style: none;
|
|
110
|
+
display: grid;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.sti-AccountMenu-list-0d7e5 {
|
|
114
|
+
gap: var(--sti-space-0-5);
|
|
115
|
+
margin: 0;
|
|
116
|
+
padding: 0;
|
|
117
|
+
list-style: none;
|
|
118
|
+
display: grid;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.sti-AccountMenu-groupTitle-3bc6e {
|
|
122
|
+
padding: var(--sti-space-2) var(--sti-space-3) var(--sti-space-1);
|
|
123
|
+
color: var(--sti-fg-muted);
|
|
124
|
+
font-size: var(--sti-font-size-xs);
|
|
125
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
126
|
+
line-height: var(--sti-line-height-xs);
|
|
127
|
+
margin: 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.sti-AccountMenu-accountRow-2470c > span:first-child {
|
|
131
|
+
background: none;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.sti-AccountMenu-legal-3b18a {
|
|
135
|
+
justify-content: center;
|
|
136
|
+
gap: var(--sti-space-1);
|
|
137
|
+
padding-block: var(--sti-space-1) 0;
|
|
138
|
+
color: var(--sti-fg-muted);
|
|
139
|
+
font-size: var(--sti-font-size-xs);
|
|
140
|
+
line-height: var(--sti-line-height-xs);
|
|
141
|
+
flex-wrap: wrap;
|
|
142
|
+
margin: 0;
|
|
143
|
+
display: flex;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.sti-AccountMenu-legalItem-5deef {
|
|
147
|
+
gap: var(--sti-space-1);
|
|
148
|
+
display: inline-flex;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.sti-AccountMenu-dot-af8da {
|
|
152
|
+
color: var(--sti-fg-muted);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.sti-AccountMenu-legalLink-e2e81 {
|
|
156
|
+
border-radius: var(--sti-radius-xs);
|
|
157
|
+
color: var(--sti-fg-muted);
|
|
158
|
+
cursor: pointer;
|
|
159
|
+
text-decoration: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@media (hover: hover) {
|
|
163
|
+
.sti-AccountMenu-legalLink-e2e81[data-hovered] {
|
|
164
|
+
color: var(--sti-fg);
|
|
165
|
+
text-underline-offset: .2em;
|
|
166
|
+
text-decoration: underline;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.sti-AccountMenu-legalLink-e2e81[data-focus-visible] {
|
|
171
|
+
outline: var(--sti-focus-ring-width) solid var(--sti-focus-ring);
|
|
172
|
+
outline-offset: var(--sti-focus-ring-offset);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@media (forced-colors: active) {
|
|
176
|
+
.sti-AccountMenu-trigger-b7836[data-expanded] {
|
|
177
|
+
border-color: highlight;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.sti-AccountMenu-trigger-b7836[data-focus-visible], .sti-AccountMenu-legalLink-e2e81[data-focus-visible] {
|
|
181
|
+
outline-color: highlight;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.sti-AccountMenu-group-8f65f {
|
|
185
|
+
border: var(--sti-border-width) solid CanvasText;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@media (prefers-reduced-motion: reduce) {
|
|
190
|
+
.sti-AccountMenu-trigger-b7836 {
|
|
191
|
+
transition: none;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Placement } from "../../components/_internal/overlay/FloatingCard.js";
|
|
2
|
+
import "../../components/Popover/Popover.js";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
export interface AccountMenuAccount {
|
|
5
|
+
/** Hesap sahibinin adı. */
|
|
6
|
+
name: string;
|
|
7
|
+
/** Oturum açılan e-posta adresi. */
|
|
8
|
+
email: string;
|
|
9
|
+
/** Profil fotoğrafı; yoksa baş harfler çizilir. */
|
|
10
|
+
avatarSrc?: string;
|
|
11
|
+
}
|
|
12
|
+
/** Aynı tarayıcıda oturumu açık başka bir hesap. */
|
|
13
|
+
export interface AccountMenuOtherAccount extends AccountMenuAccount {
|
|
14
|
+
/** Kalıcı anahtar. */
|
|
15
|
+
id: string;
|
|
16
|
+
/** Verilirse hesaba geçiş bağlantıdır; verilmezse `onSwitchAccount` çağrılır. */
|
|
17
|
+
href?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface AccountMenuItem {
|
|
20
|
+
/** Kalıcı anahtar. */
|
|
21
|
+
id: string;
|
|
22
|
+
label: string;
|
|
23
|
+
/** Süs ikonu. */
|
|
24
|
+
icon?: ReactNode;
|
|
25
|
+
/** Verilirse bağlantı, verilmezse düğme. */
|
|
26
|
+
href?: string;
|
|
27
|
+
onPress?: () => void;
|
|
28
|
+
}
|
|
29
|
+
export interface AccountMenuPanelProps {
|
|
30
|
+
account: AccountMenuAccount;
|
|
31
|
+
/** Hesap yönetiminin altındaki bağlantı ve eylemler ("Güvenlik", "Faturalama"). */
|
|
32
|
+
items?: readonly AccountMenuItem[];
|
|
33
|
+
/** "STI ID hesabınızı yönetin" düğmesinin adresi; verilmezse düğme çizilmez. */
|
|
34
|
+
manageHref?: string;
|
|
35
|
+
/** Oturumu açık diğer hesaplar; verilirse "Diğer hesaplar" bölümü çizilir. */
|
|
36
|
+
otherAccounts?: readonly AccountMenuOtherAccount[];
|
|
37
|
+
onSwitchAccount?: (id: string) => void;
|
|
38
|
+
/** "Başka bir hesap ekleyin" satırı: adres ya da işlev. */
|
|
39
|
+
addAccountHref?: string;
|
|
40
|
+
onAddAccount?: () => void;
|
|
41
|
+
/** Oturumu kapatma eylemi: adres (`signOutHref`) ya da işlev. */
|
|
42
|
+
signOutHref?: string;
|
|
43
|
+
onSignOut?: () => void;
|
|
44
|
+
/** Panelin dibindeki yasal bağlantılar. */
|
|
45
|
+
privacyHref?: string;
|
|
46
|
+
termsHref?: string;
|
|
47
|
+
/** Bir eylem seçildiğinde çağrılır; açılır kutuda paneli kapatır. */
|
|
48
|
+
onAction?: () => void;
|
|
49
|
+
className?: string;
|
|
50
|
+
id?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface AccountMenuProps extends Omit<AccountMenuPanelProps, "onAction" | "id"> {
|
|
53
|
+
/** Tetikleyicinin avatar boyu. */
|
|
54
|
+
size?: "sm" | "md" | "lg";
|
|
55
|
+
placement?: Placement;
|
|
56
|
+
isOpen?: boolean;
|
|
57
|
+
defaultOpen?: boolean;
|
|
58
|
+
onOpenChange?: (open: boolean) => void;
|
|
59
|
+
/** Tetikleyici düğmenin kimliği. */
|
|
60
|
+
id?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Hesap panelinin içeriği: kimlik (büyük avatar, selamlama, e-posta), hesap yönetimi, bağlantılar,
|
|
64
|
+
* diğer hesaplar, hesap ekleme, oturumu kapatma ve yasal bağlantılar. `AccountMenu` bunu açılır
|
|
65
|
+
* kutuda çizer; uygulama dar ekran çekmecesinde ya da hesap sayfasında doğrudan kullanabilir.
|
|
66
|
+
*/
|
|
67
|
+
export declare function AccountMenuPanel({ account, items, manageHref, otherAccounts, onSwitchAccount, addAccountHref, onAddAccount, signOutHref, onSignOut, privacyHref, termsHref, onAction, className, id }: AccountMenuPanelProps): import("react").JSX.Element;
|
|
68
|
+
/**
|
|
69
|
+
* Hesap menüsü: avatar düğmesi ve açılır hesap paneli (`AccountMenuPanel`). APG Dialog kalıbı
|
|
70
|
+
* (kipsiz açılır kutu): Enter ya da Boşluk açar, Tab içeride dolaşır, Escape kapatır ve odak
|
|
71
|
+
* düğmeye döner.
|
|
72
|
+
*/
|
|
73
|
+
export declare function AccountMenu({ size, placement, isOpen, defaultOpen, onOpenChange, className, id, ...panel }: AccountMenuProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useMessages } from "../../provider/UIProvider.js";
|
|
3
|
+
import { template } from "../../text/text.js";
|
|
4
|
+
import { VisuallyHidden } from "../../components/VisuallyHidden/VisuallyHidden.js";
|
|
5
|
+
import { Button as Button$1 } from "../../components/Button/Button.js";
|
|
6
|
+
import { Avatar } from "../../components/Avatar/Avatar.js";
|
|
7
|
+
import { Popover as Popover$1 } from "../../components/Popover/Popover.js";
|
|
8
|
+
import { LogOutIcon } from "../../icons/generated/LogOutIcon.js";
|
|
9
|
+
import { UserPlusIcon } from "../../icons/generated/UserPlusIcon.js";
|
|
10
|
+
import { ActionItem } from "../_internal/ActionItem/ActionItem.js";
|
|
11
|
+
import AccountMenu_module_default from "./AccountMenu.module.js";
|
|
12
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { Button, Link } from "react-aria-components";
|
|
14
|
+
// src/id/AccountMenu/AccountMenu.tsx
|
|
15
|
+
/**
|
|
16
|
+
* Hesap panelinin içeriği: kimlik (büyük avatar, selamlama, e-posta), hesap yönetimi, bağlantılar,
|
|
17
|
+
* diğer hesaplar, hesap ekleme, oturumu kapatma ve yasal bağlantılar. `AccountMenu` bunu açılır
|
|
18
|
+
* kutuda çizer; uygulama dar ekran çekmecesinde ya da hesap sayfasında doğrudan kullanabilir.
|
|
19
|
+
*/
|
|
20
|
+
function AccountMenuPanel({ account, items = [], manageHref, otherAccounts = [], onSwitchAccount, addAccountHref, onAddAccount, signOutHref, onSignOut, privacyHref, termsHref, onAction, className, id }) {
|
|
21
|
+
const t = useMessages();
|
|
22
|
+
const run = (fn) => () => {
|
|
23
|
+
onAction?.();
|
|
24
|
+
fn?.();
|
|
25
|
+
};
|
|
26
|
+
const canAdd = addAccountHref !== void 0 || onAddAccount !== void 0;
|
|
27
|
+
const canSignOut = signOutHref !== void 0 || onSignOut !== void 0;
|
|
28
|
+
const legal = [privacyHref ? {
|
|
29
|
+
href: privacyHref,
|
|
30
|
+
label: t.idAccountPrivacy
|
|
31
|
+
} : null, termsHref ? {
|
|
32
|
+
href: termsHref,
|
|
33
|
+
label: t.idAccountTerms
|
|
34
|
+
} : null].filter((l) => l !== null);
|
|
35
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
36
|
+
id,
|
|
37
|
+
className: [AccountMenu_module_default.panel, className].filter(Boolean).join(" "),
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ jsxs("div", {
|
|
40
|
+
className: AccountMenu_module_default.identity,
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ jsx(Avatar, {
|
|
43
|
+
name: account.name,
|
|
44
|
+
src: account.avatarSrc,
|
|
45
|
+
size: "xl",
|
|
46
|
+
isDecorative: true
|
|
47
|
+
}),
|
|
48
|
+
/* @__PURE__ */ jsx("p", {
|
|
49
|
+
className: AccountMenu_module_default.greeting,
|
|
50
|
+
children: template(t.idAccountGreeting, { name: firstName(account.name) })
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ jsx("p", {
|
|
53
|
+
className: AccountMenu_module_default.fullName,
|
|
54
|
+
children: account.name
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ jsx("p", {
|
|
57
|
+
className: AccountMenu_module_default.email,
|
|
58
|
+
children: account.email
|
|
59
|
+
}),
|
|
60
|
+
manageHref ? /* @__PURE__ */ jsx(Button$1, {
|
|
61
|
+
variant: "secondary",
|
|
62
|
+
size: "sm",
|
|
63
|
+
href: manageHref,
|
|
64
|
+
className: AccountMenu_module_default.manage,
|
|
65
|
+
children: t.idAccountManage
|
|
66
|
+
}) : null
|
|
67
|
+
]
|
|
68
|
+
}),
|
|
69
|
+
items.length > 0 ? /* @__PURE__ */ jsx("ul", {
|
|
70
|
+
className: AccountMenu_module_default.group,
|
|
71
|
+
children: items.map((item) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(ActionItem, {
|
|
72
|
+
label: item.label,
|
|
73
|
+
icon: item.icon,
|
|
74
|
+
href: item.href,
|
|
75
|
+
onPress: run(item.onPress)
|
|
76
|
+
}) }, item.id))
|
|
77
|
+
}) : null,
|
|
78
|
+
otherAccounts.length > 0 || canAdd ? /* @__PURE__ */ jsxs("section", {
|
|
79
|
+
className: AccountMenu_module_default.group,
|
|
80
|
+
"aria-label": t.idAccountOthers,
|
|
81
|
+
children: [otherAccounts.length > 0 ? /* @__PURE__ */ jsx("p", {
|
|
82
|
+
className: AccountMenu_module_default.groupTitle,
|
|
83
|
+
"aria-hidden": "true",
|
|
84
|
+
children: t.idAccountOthers
|
|
85
|
+
}) : null, /* @__PURE__ */ jsxs("ul", {
|
|
86
|
+
className: AccountMenu_module_default.list,
|
|
87
|
+
children: [otherAccounts.map((other) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(ActionItem, {
|
|
88
|
+
label: /* @__PURE__ */ jsxs(Fragment, { children: [other.name, /* @__PURE__ */ jsxs(VisuallyHidden, { children: [", ", t.idAccountSwitch] })] }),
|
|
89
|
+
description: other.email,
|
|
90
|
+
icon: /* @__PURE__ */ jsx(Avatar, {
|
|
91
|
+
name: other.name,
|
|
92
|
+
src: other.avatarSrc,
|
|
93
|
+
size: "sm",
|
|
94
|
+
isDecorative: true
|
|
95
|
+
}),
|
|
96
|
+
className: AccountMenu_module_default.accountRow,
|
|
97
|
+
href: other.href,
|
|
98
|
+
onPress: run(() => onSwitchAccount?.(other.id))
|
|
99
|
+
}) }, other.id)), canAdd ? /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(ActionItem, {
|
|
100
|
+
label: t.idAccountAdd,
|
|
101
|
+
icon: /* @__PURE__ */ jsx(UserPlusIcon, {}),
|
|
102
|
+
href: addAccountHref,
|
|
103
|
+
onPress: run(onAddAccount)
|
|
104
|
+
}) }) : null]
|
|
105
|
+
})]
|
|
106
|
+
}) : null,
|
|
107
|
+
canSignOut ? /* @__PURE__ */ jsx("div", {
|
|
108
|
+
className: AccountMenu_module_default.group,
|
|
109
|
+
children: /* @__PURE__ */ jsx(ActionItem, {
|
|
110
|
+
label: t.idAccountSignOut,
|
|
111
|
+
icon: /* @__PURE__ */ jsx(LogOutIcon, {}),
|
|
112
|
+
href: signOutHref,
|
|
113
|
+
onPress: run(onSignOut)
|
|
114
|
+
})
|
|
115
|
+
}) : null,
|
|
116
|
+
legal.length > 0 ? /* @__PURE__ */ jsx("p", {
|
|
117
|
+
className: AccountMenu_module_default.legal,
|
|
118
|
+
children: legal.map((link, i) => /* @__PURE__ */ jsxs("span", {
|
|
119
|
+
className: AccountMenu_module_default.legalItem,
|
|
120
|
+
children: [i > 0 ? /* @__PURE__ */ jsx("span", {
|
|
121
|
+
className: AccountMenu_module_default.dot,
|
|
122
|
+
"aria-hidden": "true",
|
|
123
|
+
children: "·"
|
|
124
|
+
}) : null, /* @__PURE__ */ jsx(Link, {
|
|
125
|
+
href: link.href,
|
|
126
|
+
className: AccountMenu_module_default.legalLink,
|
|
127
|
+
onPress: onAction,
|
|
128
|
+
children: link.label
|
|
129
|
+
})]
|
|
130
|
+
}, link.href))
|
|
131
|
+
}) : null
|
|
132
|
+
]
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
/** Selamlamadaki ad: ilk sözcük ("Elif Yıldırım" → "Elif"). */
|
|
136
|
+
function firstName(name) {
|
|
137
|
+
return name.trim().split(/\s+/)[0] ?? name;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Hesap menüsü: avatar düğmesi ve açılır hesap paneli (`AccountMenuPanel`). APG Dialog kalıbı
|
|
141
|
+
* (kipsiz açılır kutu): Enter ya da Boşluk açar, Tab içeride dolaşır, Escape kapatır ve odak
|
|
142
|
+
* düğmeye döner.
|
|
143
|
+
*/
|
|
144
|
+
function AccountMenu({ size = "md", placement = "bottom end", isOpen, defaultOpen, onOpenChange, className, id, ...panel }) {
|
|
145
|
+
const t = useMessages();
|
|
146
|
+
return /* @__PURE__ */ jsx(Popover$1, {
|
|
147
|
+
isOpen,
|
|
148
|
+
defaultOpen,
|
|
149
|
+
onOpenChange,
|
|
150
|
+
placement,
|
|
151
|
+
"aria-label": t.idAccountMenu,
|
|
152
|
+
size: "md",
|
|
153
|
+
className: AccountMenu_module_default.card,
|
|
154
|
+
trigger: /* @__PURE__ */ jsxs(Button, {
|
|
155
|
+
id,
|
|
156
|
+
className: [AccountMenu_module_default.trigger, className].filter(Boolean).join(" "),
|
|
157
|
+
"data-size": size,
|
|
158
|
+
children: [/* @__PURE__ */ jsx(Avatar, {
|
|
159
|
+
name: panel.account.name,
|
|
160
|
+
src: panel.account.avatarSrc,
|
|
161
|
+
size,
|
|
162
|
+
isDecorative: true
|
|
163
|
+
}), /* @__PURE__ */ jsx(VisuallyHidden, { children: template(t.idAccountMenuFor, { name: panel.account.name }) })]
|
|
164
|
+
}),
|
|
165
|
+
children: (close) => /* @__PURE__ */ jsx(AccountMenuPanel, {
|
|
166
|
+
...panel,
|
|
167
|
+
onAction: close
|
|
168
|
+
})
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
export { AccountMenu, AccountMenuPanel };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import './AccountMenu.css';
|
|
2
|
+
// src/id/AccountMenu/AccountMenu.module.css
|
|
3
|
+
var AccountMenu_module_default = {
|
|
4
|
+
"trigger": "sti-AccountMenu-trigger-b7836",
|
|
5
|
+
"card": "sti-AccountMenu-card-5ba55",
|
|
6
|
+
"panel": "sti-AccountMenu-panel-697e1",
|
|
7
|
+
"identity": "sti-AccountMenu-identity-42ef2",
|
|
8
|
+
"greeting": "sti-AccountMenu-greeting-ced99",
|
|
9
|
+
"fullName": "sti-AccountMenu-fullName-7a91b",
|
|
10
|
+
"email": "sti-AccountMenu-email-c7b78",
|
|
11
|
+
"manage": "sti-AccountMenu-manage-2a04e",
|
|
12
|
+
"group": "sti-AccountMenu-group-8f65f",
|
|
13
|
+
"list": "sti-AccountMenu-list-0d7e5",
|
|
14
|
+
"groupTitle": "sti-AccountMenu-groupTitle-3bc6e",
|
|
15
|
+
"accountRow": "sti-AccountMenu-accountRow-2470c",
|
|
16
|
+
"legal": "sti-AccountMenu-legal-3b18a",
|
|
17
|
+
"legalItem": "sti-AccountMenu-legalItem-5deef",
|
|
18
|
+
"dot": "sti-AccountMenu-dot-af8da",
|
|
19
|
+
"legalLink": "sti-AccountMenu-legalLink-e2e81"
|
|
20
|
+
};
|
|
21
|
+
export { AccountMenu_module_default as default };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { AccountMenu, AccountMenuAccount, AccountMenuItem, AccountMenuOtherAccount, AccountMenuPanel, AccountMenuPanelProps, AccountMenuProps } from "./AccountMenu.js";
|
|
2
|
+
export { AccountMenu, AccountMenuAccount, AccountMenuItem, AccountMenuOtherAccount, AccountMenuPanel, AccountMenuPanelProps, AccountMenuProps };
|