@stisocial/ui 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +25 -0
- package/dist/agency/FacebookPostPreview/FacebookPostPreview.css +73 -0
- package/dist/agency/FacebookPostPreview/FacebookPostPreview.d.ts +27 -0
- package/dist/agency/FacebookPostPreview/FacebookPostPreview.js +80 -0
- package/dist/agency/FacebookPostPreview/FacebookPostPreview.module.js +15 -0
- package/dist/agency/FacebookPostPreview/index.d.ts +2 -0
- package/dist/agency/InstagramPostPreview/InstagramPostPreview.css +84 -0
- package/dist/agency/InstagramPostPreview/InstagramPostPreview.d.ts +23 -0
- package/dist/agency/InstagramPostPreview/InstagramPostPreview.js +80 -0
- package/dist/agency/InstagramPostPreview/InstagramPostPreview.module.js +17 -0
- package/dist/agency/InstagramPostPreview/index.d.ts +2 -0
- package/dist/agency/InstagramReelPreview/InstagramReelPreview.css +84 -0
- package/dist/agency/InstagramReelPreview/InstagramReelPreview.d.ts +24 -0
- package/dist/agency/InstagramReelPreview/InstagramReelPreview.js +88 -0
- package/dist/agency/InstagramReelPreview/InstagramReelPreview.module.js +13 -0
- package/dist/agency/InstagramReelPreview/index.d.ts +2 -0
- package/dist/agency/InstagramStoryPreview/InstagramStoryPreview.css +105 -0
- package/dist/agency/InstagramStoryPreview/InstagramStoryPreview.d.ts +23 -0
- package/dist/agency/InstagramStoryPreview/InstagramStoryPreview.js +59 -0
- package/dist/agency/InstagramStoryPreview/InstagramStoryPreview.module.js +14 -0
- package/dist/agency/InstagramStoryPreview/index.d.ts +2 -0
- package/dist/agency/LinkedInPostPreview/LinkedInPostPreview.css +83 -0
- package/dist/agency/LinkedInPostPreview/LinkedInPostPreview.d.ts +30 -0
- package/dist/agency/LinkedInPostPreview/LinkedInPostPreview.js +99 -0
- package/dist/agency/LinkedInPostPreview/LinkedInPostPreview.module.js +16 -0
- package/dist/agency/LinkedInPostPreview/index.d.ts +2 -0
- package/dist/agency/PinterestPinPreview/PinterestPinPreview.css +96 -0
- package/dist/agency/PinterestPinPreview/PinterestPinPreview.d.ts +23 -0
- package/dist/agency/PinterestPinPreview/PinterestPinPreview.js +57 -0
- package/dist/agency/PinterestPinPreview/PinterestPinPreview.module.js +15 -0
- package/dist/agency/PinterestPinPreview/index.d.ts +2 -0
- package/dist/agency/ThreadsPostPreview/ThreadsPostPreview.css +101 -0
- package/dist/agency/ThreadsPostPreview/ThreadsPostPreview.d.ts +19 -0
- package/dist/agency/ThreadsPostPreview/ThreadsPostPreview.js +82 -0
- package/dist/agency/ThreadsPostPreview/ThreadsPostPreview.module.js +17 -0
- package/dist/agency/ThreadsPostPreview/index.d.ts +2 -0
- package/dist/agency/TikTokPreview/TikTokPreview.css +84 -0
- package/dist/agency/TikTokPreview/TikTokPreview.d.ts +25 -0
- package/dist/agency/TikTokPreview/TikTokPreview.js +95 -0
- package/dist/agency/TikTokPreview/TikTokPreview.module.js +13 -0
- package/dist/agency/TikTokPreview/index.d.ts +2 -0
- package/dist/agency/XPostPreview/XPostPreview.css +89 -0
- package/dist/agency/XPostPreview/XPostPreview.d.ts +20 -0
- package/dist/agency/XPostPreview/XPostPreview.js +91 -0
- package/dist/agency/XPostPreview/XPostPreview.module.js +16 -0
- package/dist/agency/XPostPreview/index.d.ts +2 -0
- package/dist/agency/YouTubeThumbnailPreview/YouTubeThumbnailPreview.css +55 -0
- package/dist/agency/YouTubeThumbnailPreview/YouTubeThumbnailPreview.d.ts +20 -0
- package/dist/agency/YouTubeThumbnailPreview/YouTubeThumbnailPreview.js +49 -0
- package/dist/agency/YouTubeThumbnailPreview/YouTubeThumbnailPreview.module.js +13 -0
- package/dist/agency/YouTubeThumbnailPreview/index.d.ts +2 -0
- package/dist/agency/_shared/Preview.css +226 -0
- package/dist/agency/_shared/Preview.d.ts +27 -0
- package/dist/agency/_shared/Preview.js +117 -0
- package/dist/agency/_shared/Preview.module.js +21 -0
- package/dist/agency/_shared/platforms.d.ts +24 -0
- package/dist/agency/_shared/platforms.js +109 -0
- package/dist/agency/index.d.ts +23 -0
- package/dist/agency/index.js +12 -0
- package/dist/ai/AiDisclosure/AiDisclosure.css +99 -0
- package/dist/ai/AiDisclosure/AiDisclosure.d.ts +28 -0
- package/dist/ai/AiDisclosure/AiDisclosure.js +52 -0
- package/dist/ai/AiDisclosure/AiDisclosure.module.js +10 -0
- package/dist/ai/AiDisclosure/index.d.ts +2 -0
- package/dist/ai/AttachmentChip/AttachmentChip.css +144 -0
- package/dist/ai/AttachmentChip/AttachmentChip.d.ts +40 -0
- package/dist/ai/AttachmentChip/AttachmentChip.js +140 -0
- package/dist/ai/AttachmentChip/AttachmentChip.module.js +13 -0
- package/dist/ai/AttachmentChip/index.d.ts +2 -0
- package/dist/ai/ChatThread/ChatThread.css +66 -0
- package/dist/ai/ChatThread/ChatThread.d.ts +20 -0
- package/dist/ai/ChatThread/ChatThread.js +87 -0
- package/dist/ai/ChatThread/ChatThread.module.js +10 -0
- package/dist/ai/ChatThread/ChatThreadMessage.css +80 -0
- package/dist/ai/ChatThread/ChatThreadMessage.d.ts +23 -0
- package/dist/ai/ChatThread/ChatThreadMessage.js +41 -0
- package/dist/ai/ChatThread/ChatThreadMessage.module.js +10 -0
- package/dist/ai/ChatThread/index.d.ts +3 -0
- package/dist/ai/ConversationList/ConversationList.css +175 -0
- package/dist/ai/ConversationList/ConversationList.d.ts +33 -0
- package/dist/ai/ConversationList/ConversationList.js +133 -0
- package/dist/ai/ConversationList/ConversationList.module.js +18 -0
- package/dist/ai/ConversationList/groups.d.ts +23 -0
- package/dist/ai/ConversationList/groups.js +47 -0
- package/dist/ai/MessageActions/MessageActions.css +9 -0
- package/dist/ai/MessageActions/MessageActions.d.ts +33 -0
- package/dist/ai/MessageActions/MessageActions.js +89 -0
- package/dist/ai/MessageActions/MessageActions.module.js +4 -0
- package/dist/ai/MessageActions/index.d.ts +2 -0
- package/dist/ai/ModelSelect/ModelSelect.css +7 -0
- package/dist/ai/ModelSelect/ModelSelect.d.ts +38 -0
- package/dist/ai/ModelSelect/ModelSelect.js +41 -0
- package/dist/ai/ModelSelect/ModelSelect.module.js +4 -0
- package/dist/ai/ModelSelect/index.d.ts +2 -0
- package/dist/ai/PromptInput/PromptInput.css +176 -0
- package/dist/ai/PromptInput/PromptInput.d.ts +54 -0
- package/dist/ai/PromptInput/PromptInput.js +199 -0
- package/dist/ai/PromptInput/PromptInput.module.js +15 -0
- package/dist/ai/PromptInput/index.d.ts +2 -0
- package/dist/ai/SourceList/SourceList.css +226 -0
- package/dist/ai/SourceList/SourceList.d.ts +36 -0
- package/dist/ai/SourceList/SourceList.js +102 -0
- package/dist/ai/SourceList/SourceList.module.js +17 -0
- package/dist/ai/StreamingText/StreamingText.css +69 -0
- package/dist/ai/StreamingText/StreamingText.d.ts +33 -0
- package/dist/ai/StreamingText/StreamingText.js +98 -0
- package/dist/ai/StreamingText/StreamingText.module.js +9 -0
- package/dist/ai/SuggestedPrompts/SuggestedPrompts.css +198 -0
- package/dist/ai/SuggestedPrompts/SuggestedPrompts.d.ts +35 -0
- package/dist/ai/SuggestedPrompts/SuggestedPrompts.js +54 -0
- package/dist/ai/SuggestedPrompts/SuggestedPrompts.module.js +14 -0
- package/dist/ai/SuggestedPrompts/index.d.ts +2 -0
- package/dist/ai/ThinkingIndicator/ThinkingIndicator.css +83 -0
- package/dist/ai/ThinkingIndicator/ThinkingIndicator.d.ts +16 -0
- package/dist/ai/ThinkingIndicator/ThinkingIndicator.js +47 -0
- package/dist/ai/ThinkingIndicator/ThinkingIndicator.module.js +10 -0
- package/dist/ai/ToolCallCard/ToolCallCard.css +249 -0
- package/dist/ai/ToolCallCard/ToolCallCard.d.ts +39 -0
- package/dist/ai/ToolCallCard/ToolCallCard.js +157 -0
- package/dist/ai/ToolCallCard/ToolCallCard.module.js +22 -0
- package/dist/ai/ToolCallCard/index.d.ts +2 -0
- package/dist/ai/_internal/glyphs.js +45 -0
- package/dist/ai/index.d.ts +23 -0
- package/dist/ai/index.js +15 -0
- package/dist/charts/AreaChart/AreaChart.css +9 -0
- package/dist/charts/AreaChart/AreaChart.d.ts +13 -0
- package/dist/charts/AreaChart/AreaChart.js +19 -0
- package/dist/charts/AreaChart/AreaChart.module.js +4 -0
- package/dist/charts/AreaChart/index.d.ts +2 -0
- package/dist/charts/BarChart/BarChart.css +9 -0
- package/dist/charts/BarChart/BarChart.d.ts +17 -0
- package/dist/charts/BarChart/BarChart.js +21 -0
- package/dist/charts/BarChart/BarChart.module.js +4 -0
- package/dist/charts/BarChart/index.d.ts +2 -0
- package/dist/charts/ChartLegend/ChartLegend.css +110 -0
- package/dist/charts/ChartLegend/ChartLegend.d.ts +36 -0
- package/dist/charts/ChartLegend/ChartLegend.js +55 -0
- package/dist/charts/ChartLegend/ChartLegend.module.js +11 -0
- package/dist/charts/ChartLegend/index.d.ts +2 -0
- package/dist/charts/ChartTable/ChartTable.css +109 -0
- package/dist/charts/ChartTable/ChartTable.d.ts +43 -0
- package/dist/charts/ChartTable/ChartTable.js +60 -0
- package/dist/charts/ChartTable/ChartTable.module.js +12 -0
- package/dist/charts/ChartTable/index.d.ts +2 -0
- package/dist/charts/ChartTooltip/ChartTooltip.css +77 -0
- package/dist/charts/ChartTooltip/ChartTooltip.d.ts +29 -0
- package/dist/charts/ChartTooltip/ChartTooltip.js +48 -0
- package/dist/charts/ChartTooltip/ChartTooltip.module.js +12 -0
- package/dist/charts/ChartTooltip/index.d.ts +2 -0
- package/dist/charts/ComboChart/ComboChart.css +9 -0
- package/dist/charts/ComboChart/ComboChart.d.ts +21 -0
- package/dist/charts/ComboChart/ComboChart.js +19 -0
- package/dist/charts/ComboChart/ComboChart.module.js +4 -0
- package/dist/charts/ComboChart/index.d.ts +3 -0
- package/dist/charts/LineChart/LineChart.css +9 -0
- package/dist/charts/LineChart/LineChart.d.ts +13 -0
- package/dist/charts/LineChart/LineChart.js +19 -0
- package/dist/charts/LineChart/LineChart.module.js +4 -0
- package/dist/charts/LineChart/index.d.ts +2 -0
- package/dist/charts/StackedBarChart/StackedBarChart.css +9 -0
- package/dist/charts/StackedBarChart/StackedBarChart.d.ts +17 -0
- package/dist/charts/StackedBarChart/StackedBarChart.js +21 -0
- package/dist/charts/StackedBarChart/StackedBarChart.module.js +4 -0
- package/dist/charts/StackedBarChart/index.d.ts +2 -0
- package/dist/charts/_internal/Bars.d.ts +31 -0
- package/dist/charts/_internal/Bars.js +295 -0
- package/dist/charts/_internal/LineArea.d.ts +32 -0
- package/dist/charts/_internal/LineArea.js +150 -0
- package/dist/charts/_internal/category.d.ts +19 -0
- package/dist/charts/_internal/category.js +139 -0
- package/dist/charts/_internal/format.d.ts +14 -0
- package/dist/charts/_internal/format.js +41 -0
- package/dist/charts/_internal/frame/ChartFrame.css +113 -0
- package/dist/charts/_internal/frame/ChartFrame.d.ts +3 -0
- package/dist/charts/_internal/frame/ChartFrame.js +217 -0
- package/dist/charts/_internal/frame/ChartFrame.module.js +17 -0
- package/dist/charts/_internal/marks/marks.css +195 -0
- package/dist/charts/_internal/marks/marks.js +192 -0
- package/dist/charts/_internal/marks/marks.module.js +12 -0
- package/dist/charts/_internal/math.js +107 -0
- package/dist/charts/_internal/shapes.d.ts +1 -0
- package/dist/charts/_internal/shapes.js +127 -0
- package/dist/charts/index.d.ts +20 -0
- package/dist/charts/index.js +9 -0
- package/dist/commerce/AddToCartButton/AddToCartButton.css +54 -0
- package/dist/commerce/AddToCartButton/AddToCartButton.d.ts +42 -0
- package/dist/commerce/AddToCartButton/AddToCartButton.js +94 -0
- package/dist/commerce/AddToCartButton/AddToCartButton.module.js +10 -0
- package/dist/commerce/AddToCartButton/index.d.ts +2 -0
- package/dist/commerce/PriceDisplay/PriceDisplay.css +77 -0
- package/dist/commerce/PriceDisplay/PriceDisplay.d.ts +35 -0
- package/dist/commerce/PriceDisplay/PriceDisplay.js +60 -0
- package/dist/commerce/PriceDisplay/PriceDisplay.module.js +10 -0
- package/dist/commerce/QuantityStepper/QuantityStepper.css +108 -0
- package/dist/commerce/QuantityStepper/QuantityStepper.d.ts +32 -0
- package/dist/commerce/QuantityStepper/QuantityStepper.js +86 -0
- package/dist/commerce/QuantityStepper/QuantityStepper.module.js +9 -0
- package/dist/commerce/QuantityStepper/index.d.ts +2 -0
- package/dist/commerce/StockBadge/StockBadge.d.ts +31 -0
- package/dist/commerce/StockBadge/StockBadge.js +47 -0
- package/dist/commerce/StockBadge/index.d.ts +2 -0
- package/dist/commerce/VariantSelector/VariantSelector.css +202 -0
- package/dist/commerce/VariantSelector/VariantSelector.d.ts +44 -0
- package/dist/commerce/VariantSelector/VariantSelector.js +77 -0
- package/dist/commerce/VariantSelector/VariantSelector.module.js +13 -0
- package/dist/commerce/VariantSelector/index.d.ts +2 -0
- package/dist/commerce/index.d.ts +10 -0
- package/dist/commerce/index.js +6 -0
- package/dist/components/Accordion/Accordion.css +176 -0
- package/dist/components/Accordion/Accordion.d.ts +40 -0
- package/dist/components/Accordion/Accordion.js +90 -0
- package/dist/components/Accordion/Accordion.module.js +17 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/ColorPicker/ColorPicker.js +1 -1
- package/dist/components/Combobox/Combobox.js +1 -1
- package/dist/components/Disclosure/Disclosure.css +162 -0
- package/dist/components/Disclosure/Disclosure.d.ts +32 -0
- package/dist/components/Disclosure/Disclosure.js +60 -0
- package/dist/components/Disclosure/Disclosure.module.js +15 -0
- package/dist/components/Disclosure/index.d.ts +2 -0
- package/dist/components/DocumentLayout/DocumentLayout.css +202 -0
- package/dist/components/DocumentLayout/DocumentLayout.d.ts +33 -0
- package/dist/components/DocumentLayout/DocumentLayout.js +69 -0
- package/dist/components/DocumentLayout/DocumentLayout.module.js +20 -0
- package/dist/components/DocumentLayout/index.d.ts +2 -0
- package/dist/components/DocumentTable/DocumentTable.css +149 -0
- package/dist/components/DocumentTable/DocumentTable.d.ts +40 -0
- package/dist/components/DocumentTable/DocumentTable.js +67 -0
- package/dist/components/DocumentTable/DocumentTable.module.js +12 -0
- package/dist/components/DocumentTable/index.d.ts +2 -0
- package/dist/components/ErrorPage/ErrorPage.css +181 -0
- package/dist/components/ErrorPage/ErrorPage.d.ts +44 -0
- package/dist/components/ErrorPage/ErrorPage.js +145 -0
- package/dist/components/ErrorPage/ErrorPage.module.js +17 -0
- package/dist/components/ErrorPage/index.d.ts +2 -0
- package/dist/components/FeedbackWidget/FeedbackWidget.css +59 -0
- package/dist/components/FeedbackWidget/FeedbackWidget.d.ts +47 -0
- package/dist/components/FeedbackWidget/FeedbackWidget.js +198 -0
- package/dist/components/FeedbackWidget/FeedbackWidget.module.js +11 -0
- package/dist/components/FeedbackWidget/index.d.ts +2 -0
- package/dist/components/Figure/Figure.css +64 -0
- package/dist/components/Figure/Figure.d.ts +24 -0
- package/dist/components/Figure/Figure.js +38 -0
- package/dist/components/Figure/Figure.module.js +10 -0
- package/dist/components/Figure/index.d.ts +2 -0
- package/dist/components/FileList/FileList.css +160 -0
- package/dist/components/FileList/FileList.d.ts +45 -0
- package/dist/components/FileList/FileList.js +146 -0
- package/dist/components/FileList/FileList.module.js +15 -0
- package/dist/components/FileList/index.d.ts +2 -0
- package/dist/components/FilterPanel/FilterPanel.js +1 -1
- package/dist/components/IconPicker/IconPicker.js +1 -1
- package/dist/components/LinkRows/LinkRows.css +135 -0
- package/dist/components/LinkRows/LinkRows.d.ts +32 -0
- package/dist/components/LinkRows/LinkRows.js +62 -0
- package/dist/components/LinkRows/LinkRows.module.js +15 -0
- package/dist/components/LinkRows/index.d.ts +2 -0
- package/dist/components/NotificationCenter/NotificationCenter.js +1 -1
- package/dist/components/OnboardingChecklist/OnboardingChecklist.js +1 -1
- package/dist/components/PageNumber/PageNumber.css +21 -0
- package/dist/components/PageNumber/PageNumber.d.ts +23 -0
- package/dist/components/PageNumber/PageNumber.js +33 -0
- package/dist/components/PageNumber/PageNumber.module.js +4 -0
- package/dist/components/PaymentInfo/PaymentInfo.css +116 -0
- package/dist/components/PaymentInfo/PaymentInfo.d.ts +41 -0
- package/dist/components/PaymentInfo/PaymentInfo.js +115 -0
- package/dist/components/PaymentInfo/PaymentInfo.module.js +15 -0
- package/dist/components/PaymentInfo/index.d.ts +2 -0
- package/dist/components/PersonItem/PersonItem.css +112 -0
- package/dist/components/PersonItem/PersonItem.d.ts +31 -0
- package/dist/components/PersonItem/PersonItem.js +54 -0
- package/dist/components/PersonItem/PersonItem.module.js +11 -0
- package/dist/components/PersonItem/index.d.ts +2 -0
- package/dist/components/PhoneField/PhoneField.js +1 -1
- package/dist/components/ReadMore/ReadMore.js +1 -1
- package/dist/components/SideNav/SideNav.js +1 -1
- package/dist/components/SignaturePad/SignaturePad.js +1 -1
- package/dist/components/SplitButton/SplitButton.js +1 -1
- package/dist/components/Table/Table.css +150 -0
- package/dist/components/Table/Table.d.ts +54 -0
- package/dist/components/Table/Table.js +75 -0
- package/dist/components/Table/Table.module.js +14 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/ThemeSwitch/ThemeSwitch.js +1 -1
- package/dist/components/TotalsBlock/TotalsBlock.css +86 -0
- package/dist/components/TotalsBlock/TotalsBlock.d.ts +32 -0
- package/dist/components/TotalsBlock/TotalsBlock.js +88 -0
- package/dist/components/TotalsBlock/TotalsBlock.module.js +10 -0
- package/dist/components/TotalsBlock/index.d.ts +3 -0
- package/dist/components/TotalsBlock/totals.d.ts +28 -0
- package/dist/components/TotalsBlock/totals.js +38 -0
- package/dist/components/TrashView/TrashView.css +166 -0
- package/dist/components/TrashView/TrashView.d.ts +49 -0
- package/dist/components/TrashView/TrashView.js +244 -0
- package/dist/components/TrashView/TrashView.module.js +22 -0
- package/dist/components/TrashView/index.d.ts +2 -0
- package/dist/components/TreeSelect/TreeSelect.js +1 -1
- package/dist/components/UploadQueue/UploadQueue.js +1 -1
- package/dist/components/Watermark/Watermark.css +51 -0
- package/dist/components/Watermark/Watermark.d.ts +23 -0
- package/dist/components/Watermark/Watermark.js +54 -0
- package/dist/components/Watermark/Watermark.module.js +8 -0
- package/dist/components/WhatsNew/WhatsNew.css +196 -0
- package/dist/components/WhatsNew/WhatsNew.d.ts +57 -0
- package/dist/components/WhatsNew/WhatsNew.js +191 -0
- package/dist/components/WhatsNew/WhatsNew.module.js +27 -0
- package/dist/components/WhatsNew/index.d.ts +2 -0
- package/dist/components/_document/text.js +14 -0
- package/dist/components/_document/types.d.ts +36 -0
- package/dist/components/_document/types.js +8 -0
- package/dist/components/_internal/listbox/SelectShell.js +1 -1
- package/dist/document/index.d.ts +13 -0
- package/dist/document/index.js +9 -0
- package/dist/editor/CodeEditor/CodeEditor.css +312 -0
- package/dist/editor/CodeEditor/CodeEditor.d.ts +66 -0
- package/dist/editor/CodeEditor/CodeEditor.js +256 -0
- package/dist/editor/CodeEditor/CodeEditor.module.js +32 -0
- package/dist/editor/CodeEditor/codeEdits.d.ts +1 -0
- package/dist/editor/CodeEditor/codeEdits.js +284 -0
- package/dist/editor/CodeEditor/highlight.js +195 -0
- package/dist/editor/CodeEditor/index.d.ts +3 -0
- package/dist/editor/JsonEditor/JsonEditor.css +10 -0
- package/dist/editor/JsonEditor/JsonEditor.d.ts +43 -0
- package/dist/editor/JsonEditor/JsonEditor.js +133 -0
- package/dist/editor/JsonEditor/JsonEditor.module.js +4 -0
- package/dist/editor/JsonEditor/index.d.ts +3 -0
- package/dist/editor/JsonEditor/json.d.ts +44 -0
- package/dist/editor/JsonEditor/json.js +246 -0
- package/dist/editor/MarkdownEditor/MarkdownEditor.css +173 -0
- package/dist/editor/MarkdownEditor/MarkdownEditor.d.ts +47 -0
- package/dist/editor/MarkdownEditor/MarkdownEditor.js +371 -0
- package/dist/editor/MarkdownEditor/MarkdownEditor.module.js +18 -0
- package/dist/editor/MarkdownEditor/commands.js +198 -0
- package/dist/editor/MarkdownEditor/index.d.ts +2 -0
- package/dist/editor/_shared/FormatIcons.js +138 -0
- package/dist/editor/_shared/textEdit.js +76 -0
- package/dist/editor/index.d.ts +9 -0
- package/dist/editor/index.js +5 -0
- package/dist/email/EmailButton/EmailButton.d.ts +22 -0
- package/dist/email/EmailButton/EmailButton.js +102 -0
- package/dist/email/EmailButton/index.d.ts +2 -0
- package/dist/email/EmailCallout/EmailCallout.d.ts +14 -0
- package/dist/email/EmailCallout/EmailCallout.js +42 -0
- package/dist/email/EmailCallout/index.d.ts +2 -0
- package/dist/email/EmailCode/EmailCode.d.ts +15 -0
- package/dist/email/EmailCode/EmailCode.js +58 -0
- package/dist/email/EmailCode/index.d.ts +2 -0
- package/dist/email/EmailColumns/EmailColumns.d.ts +18 -0
- package/dist/email/EmailColumns/EmailColumns.js +49 -0
- package/dist/email/EmailColumns/index.d.ts +2 -0
- package/dist/email/EmailDivider/EmailDivider.d.ts +7 -0
- package/dist/email/EmailDivider/EmailDivider.js +24 -0
- package/dist/email/EmailDivider/index.d.ts +2 -0
- package/dist/email/EmailFooter/EmailFooter.d.ts +30 -0
- package/dist/email/EmailFooter/EmailFooter.js +64 -0
- package/dist/email/EmailFooter/index.d.ts +2 -0
- package/dist/email/EmailHeader/EmailHeader.d.ts +23 -0
- package/dist/email/EmailHeader/EmailHeader.js +75 -0
- package/dist/email/EmailHeader/index.d.ts +2 -0
- package/dist/email/EmailHeading/EmailHeading.d.ts +11 -0
- package/dist/email/EmailHeading/EmailHeading.js +43 -0
- package/dist/email/EmailHeading/index.d.ts +2 -0
- package/dist/email/EmailImage/EmailImage.d.ts +25 -0
- package/dist/email/EmailImage/EmailImage.js +53 -0
- package/dist/email/EmailImage/index.d.ts +2 -0
- package/dist/email/EmailLayout/EmailLayout.d.ts +30 -0
- package/dist/email/EmailLayout/EmailLayout.js +79 -0
- package/dist/email/EmailLayout/emailDocument.d.ts +16 -0
- package/dist/email/EmailLayout/emailDocument.js +36 -0
- package/dist/email/EmailLayout/index.d.ts +3 -0
- package/dist/email/EmailList/EmailList.d.ts +10 -0
- package/dist/email/EmailList/EmailList.js +28 -0
- package/dist/email/EmailList/index.d.ts +2 -0
- package/dist/email/EmailPreheader/EmailPreheader.d.ts +14 -0
- package/dist/email/EmailPreheader/EmailPreheader.js +30 -0
- package/dist/email/EmailPreheader/index.d.ts +2 -0
- package/dist/email/EmailProductRow/EmailProductRow.d.ts +23 -0
- package/dist/email/EmailProductRow/EmailProductRow.js +112 -0
- package/dist/email/EmailProductRow/index.d.ts +2 -0
- package/dist/email/EmailSocialLinks/EmailSocialLinks.d.ts +19 -0
- package/dist/email/EmailSocialLinks/EmailSocialLinks.js +53 -0
- package/dist/email/EmailSocialLinks/index.d.ts +2 -0
- package/dist/email/EmailStats/EmailStats.d.ts +23 -0
- package/dist/email/EmailStats/EmailStats.js +86 -0
- package/dist/email/EmailStats/index.d.ts +2 -0
- package/dist/email/EmailTable/EmailTable.d.ts +24 -0
- package/dist/email/EmailTable/EmailTable.js +90 -0
- package/dist/email/EmailTable/index.d.ts +2 -0
- package/dist/email/EmailText/EmailText.d.ts +13 -0
- package/dist/email/EmailText/EmailText.js +35 -0
- package/dist/email/EmailText/index.d.ts +2 -0
- package/dist/email/_shared/theme.d.ts +8 -0
- package/dist/email/_shared/theme.js +90 -0
- package/dist/email/index.d.ts +36 -0
- package/dist/email/index.js +19 -0
- package/dist/icons/generated/index.js +8 -8
- package/dist/icons/index.js +8 -8
- package/dist/id/AccountMenu/AccountMenu.css +110 -0
- package/dist/id/AccountMenu/AccountMenu.d.ts +45 -0
- package/dist/id/AccountMenu/AccountMenu.js +98 -0
- package/dist/id/AccountMenu/AccountMenu.module.js +14 -0
- package/dist/id/AccountMenu/index.d.ts +2 -0
- package/dist/id/AppSwitcher/AppSwitcher.css +109 -0
- package/dist/id/AppSwitcher/AppSwitcher.d.ts +31 -0
- package/dist/id/AppSwitcher/AppSwitcher.js +88 -0
- package/dist/id/AppSwitcher/AppSwitcher.module.js +11 -0
- package/dist/id/AppSwitcher/index.d.ts +2 -0
- package/dist/id/OrgSwitcher/OrgSwitcher.css +110 -0
- package/dist/id/OrgSwitcher/OrgSwitcher.d.ts +37 -0
- package/dist/id/OrgSwitcher/OrgSwitcher.js +153 -0
- package/dist/id/OrgSwitcher/OrgSwitcher.module.js +12 -0
- package/dist/id/OrgSwitcher/index.d.ts +2 -0
- package/dist/id/PermissionGate/PermissionGate.css +57 -0
- package/dist/id/PermissionGate/PermissionGate.d.ts +30 -0
- package/dist/id/PermissionGate/PermissionGate.js +51 -0
- package/dist/id/PermissionGate/PermissionGate.module.js +10 -0
- package/dist/id/PermissionGate/index.d.ts +2 -0
- package/dist/id/SignInButton/SignInButton.d.ts +20 -0
- package/dist/id/SignInButton/SignInButton.js +34 -0
- package/dist/id/_internal/ActionItem/ActionItem.css +143 -0
- package/dist/id/_internal/ActionItem/ActionItem.js +68 -0
- package/dist/id/_internal/ActionItem/ActionItem.module.js +11 -0
- package/dist/id/index.d.ts +10 -0
- package/dist/id/index.js +6 -0
- package/dist/index.d.ts +26 -4
- package/dist/index.js +14 -3
- package/dist/maps/DirectionsLink/DirectionsLink.css +10 -0
- package/dist/maps/DirectionsLink/DirectionsLink.d.ts +35 -0
- package/dist/maps/DirectionsLink/DirectionsLink.js +84 -0
- package/dist/maps/DirectionsLink/DirectionsLink.module.js +4 -0
- package/dist/maps/DirectionsLink/index.d.ts +2 -0
- package/dist/maps/LocationPicker/LocationPicker.css +60 -0
- package/dist/maps/LocationPicker/LocationPicker.d.ts +37 -0
- package/dist/maps/LocationPicker/LocationPicker.js +278 -0
- package/dist/maps/LocationPicker/LocationPicker.module.js +12 -0
- package/dist/maps/LocationPicker/index.d.ts +2 -0
- package/dist/maps/MapMarker/MapMarker.css +318 -0
- package/dist/maps/MapMarker/MapMarker.d.ts +35 -0
- package/dist/maps/MapMarker/MapMarker.js +142 -0
- package/dist/maps/MapMarker/MapMarker.module.js +20 -0
- package/dist/maps/MapMarker/index.d.ts +2 -0
- package/dist/maps/MapView/MapView.css +268 -0
- package/dist/maps/MapView/MapView.d.ts +71 -0
- package/dist/maps/MapView/MapView.js +495 -0
- package/dist/maps/MapView/MapView.module.js +23 -0
- package/dist/maps/MapView/index.d.ts +2 -0
- package/dist/maps/StoreLocator/StoreLocator.css +201 -0
- package/dist/maps/StoreLocator/StoreLocator.d.ts +43 -0
- package/dist/maps/StoreLocator/StoreLocator.js +225 -0
- package/dist/maps/StoreLocator/StoreLocator.module.js +21 -0
- package/dist/maps/StoreLocator/index.d.ts +2 -0
- package/dist/maps/TurkeyMap/TurkeyMap.css +229 -0
- package/dist/maps/TurkeyMap/TurkeyMap.d.ts +45 -0
- package/dist/maps/TurkeyMap/TurkeyMap.js +280 -0
- package/dist/maps/TurkeyMap/TurkeyMap.module.js +17 -0
- package/dist/maps/TurkeyMap/tileGrid.js +85 -0
- package/dist/maps/_internal/geo.d.ts +8 -0
- package/dist/maps/_internal/geo.js +116 -0
- package/dist/maps/_internal/mapContext.js +8 -0
- package/dist/maps/_internal/useControllable.js +24 -0
- package/dist/maps/index.d.ts +12 -0
- package/dist/maps/index.js +7 -0
- package/dist/media/AudioPlayer/AudioPlayer.css +106 -0
- package/dist/media/AudioPlayer/AudioPlayer.d.ts +38 -0
- package/dist/media/AudioPlayer/AudioPlayer.js +134 -0
- package/dist/media/AudioPlayer/AudioPlayer.module.js +16 -0
- package/dist/media/AudioPlayer/index.d.ts +2 -0
- package/dist/media/AudioWaveform/AudioWaveform.css +43 -0
- package/dist/media/AudioWaveform/AudioWaveform.d.ts +25 -0
- package/dist/media/AudioWaveform/AudioWaveform.js +101 -0
- package/dist/media/AudioWaveform/AudioWaveform.module.js +9 -0
- package/dist/media/AudioWaveform/peaks.d.ts +14 -0
- package/dist/media/AudioWaveform/peaks.js +54 -0
- package/dist/media/MediaCard/MediaCard.css +229 -0
- package/dist/media/MediaCard/MediaCard.d.ts +38 -0
- package/dist/media/MediaCard/MediaCard.js +120 -0
- package/dist/media/MediaCard/MediaCard.module.js +18 -0
- package/dist/media/MediaCard/index.d.ts +2 -0
- package/dist/media/VideoPlayer/VideoPlayer.css +125 -0
- package/dist/media/VideoPlayer/VideoPlayer.d.ts +54 -0
- package/dist/media/VideoPlayer/VideoPlayer.js +193 -0
- package/dist/media/VideoPlayer/VideoPlayer.module.js +12 -0
- package/dist/media/VideoThumbnail/VideoThumbnail.css +139 -0
- package/dist/media/VideoThumbnail/VideoThumbnail.d.ts +34 -0
- package/dist/media/VideoThumbnail/VideoThumbnail.js +63 -0
- package/dist/media/VideoThumbnail/VideoThumbnail.module.js +10 -0
- package/dist/media/VideoThumbnail/VideoThumbnailLink.js +18 -0
- package/dist/media/_internal/clock.js +17 -0
- package/dist/media/_internal/consent/ConsentNotice.css +55 -0
- package/dist/media/_internal/consent/ConsentNotice.js +40 -0
- package/dist/media/_internal/consent/ConsentNotice.module.js +10 -0
- package/dist/media/_internal/icons.js +77 -0
- package/dist/media/_internal/range/Range.css +187 -0
- package/dist/media/_internal/range/Range.js +130 -0
- package/dist/media/_internal/range/Range.module.js +10 -0
- package/dist/media/_internal/transport/MediaTransport.css +90 -0
- package/dist/media/_internal/transport/MediaTransport.js +172 -0
- package/dist/media/_internal/transport/MediaTransport.module.js +14 -0
- package/dist/media/_internal/url.js +31 -0
- package/dist/media/_internal/useConsent.js +28 -0
- package/dist/media/_internal/useMedia.js +146 -0
- package/dist/media/index.d.ts +9 -0
- package/dist/media/index.js +7 -0
- package/dist/messages/messages.d.ts +481 -0
- package/dist/messages/messages.js +964 -2
- package/dist/site/AnnouncementBar/AnnouncementBar.css +132 -0
- package/dist/site/AnnouncementBar/AnnouncementBar.d.ts +28 -0
- package/dist/site/AnnouncementBar/AnnouncementBar.js +64 -0
- package/dist/site/AnnouncementBar/AnnouncementBar.module.js +11 -0
- package/dist/site/AnnouncementBar/index.d.ts +2 -0
- package/dist/site/MegaMenu/MegaMenu.css +324 -0
- package/dist/site/MegaMenu/MegaMenu.d.ts +51 -0
- package/dist/site/MegaMenu/MegaMenu.js +170 -0
- package/dist/site/MegaMenu/MegaMenu.module.js +28 -0
- package/dist/site/MegaMenu/index.d.ts +2 -0
- package/dist/site/SiteFooter/SiteFooter.css +129 -0
- package/dist/site/SiteFooter/SiteFooter.d.ts +38 -0
- package/dist/site/SiteFooter/SiteFooter.js +79 -0
- package/dist/site/SiteFooter/SiteFooter.module.js +20 -0
- package/dist/site/SiteFooter/index.d.ts +2 -0
- package/dist/site/SiteHeader/SiteHeader.css +213 -0
- package/dist/site/SiteHeader/SiteHeader.d.ts +40 -0
- package/dist/site/SiteHeader/SiteHeader.js +115 -0
- package/dist/site/SiteHeader/SiteHeader.module.js +18 -0
- package/dist/site/SiteHeader/index.d.ts +2 -0
- package/dist/site/StickyCta/StickyCta.css +112 -0
- package/dist/site/StickyCta/StickyCta.d.ts +27 -0
- package/dist/site/StickyCta/StickyCta.js +69 -0
- package/dist/site/StickyCta/StickyCta.module.js +10 -0
- package/dist/site/StickyCta/index.d.ts +2 -0
- package/dist/site/index.d.ts +11 -0
- package/dist/site/index.js +6 -0
- package/dist/styles.css +24433 -14420
- package/package.json +45 -1
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-OrgSwitcher-trigger-8cf9a {
|
|
4
|
+
--sti-org-switcher-h: var(--sti-control-h-md);
|
|
5
|
+
--sti-org-switcher-bg: transparent;
|
|
6
|
+
--sti-org-switcher-border: var(--sti-border-control);
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: var(--sti-space-2);
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
block-size: var(--sti-org-switcher-h);
|
|
11
|
+
max-inline-size: 100%;
|
|
12
|
+
padding-inline: var(--sti-space-2) var(--sti-space-3);
|
|
13
|
+
border: var(--sti-border-width) solid var(--sti-org-switcher-border);
|
|
14
|
+
border-radius: var(--sti-radius-md);
|
|
15
|
+
background: var(--sti-org-switcher-bg);
|
|
16
|
+
color: var(--sti-fg);
|
|
17
|
+
font-family: var(--sti-font-text);
|
|
18
|
+
font-size: var(--sti-font-size-sm);
|
|
19
|
+
font-weight: var(--sti-font-weight-medium);
|
|
20
|
+
line-height: var(--sti-line-height-sm);
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
transition: background-color var(--sti-duration-fast) var(--sti-ease-snap),
|
|
23
|
+
border-color var(--sti-duration-fast) var(--sti-ease-snap);
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.sti-OrgSwitcher-trigger-8cf9a[data-size="sm"] {
|
|
28
|
+
--sti-org-switcher-h: var(--sti-control-h-sm);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sti-OrgSwitcher-trigger-8cf9a[data-size="lg"] {
|
|
32
|
+
--sti-org-switcher-h: var(--sti-control-h-lg);
|
|
33
|
+
font-size: var(--sti-font-size-md);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@media (pointer: coarse) {
|
|
37
|
+
.sti-OrgSwitcher-trigger-8cf9a {
|
|
38
|
+
min-block-size: 2.75rem;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@media (hover: hover) {
|
|
43
|
+
.sti-OrgSwitcher-trigger-8cf9a[data-hovered]:not([data-disabled]) {
|
|
44
|
+
--sti-org-switcher-border: var(--sti-border-accent);
|
|
45
|
+
--sti-org-switcher-bg: var(--sti-bg-surface-hover);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.sti-OrgSwitcher-trigger-8cf9a[data-pressed] {
|
|
50
|
+
--sti-org-switcher-bg: var(--sti-bg-surface-active);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.sti-OrgSwitcher-trigger-8cf9a[data-focus-visible] {
|
|
54
|
+
outline: var(--sti-focus-ring-width) solid var(--sti-focus-ring);
|
|
55
|
+
outline-offset: var(--sti-focus-ring-offset);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.sti-OrgSwitcher-trigger-8cf9a[data-disabled] {
|
|
59
|
+
opacity: var(--sti-opacity-disabled);
|
|
60
|
+
cursor: not-allowed;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.sti-OrgSwitcher-name-0b2eb {
|
|
64
|
+
text-overflow: ellipsis;
|
|
65
|
+
white-space: nowrap;
|
|
66
|
+
min-inline-size: 0;
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.sti-OrgSwitcher-chevron-e70b6 {
|
|
71
|
+
color: var(--sti-fg-muted);
|
|
72
|
+
flex: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.sti-OrgSwitcher-card-297cc {
|
|
76
|
+
min-inline-size: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.sti-OrgSwitcher-body-e5f5e {
|
|
80
|
+
gap: var(--sti-space-2);
|
|
81
|
+
min-inline-size: 0;
|
|
82
|
+
display: grid;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.sti-OrgSwitcher-scroll-eca85 {
|
|
86
|
+
max-block-size: 18rem;
|
|
87
|
+
overflow: auto;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.sti-OrgSwitcher-empty-1d36a {
|
|
91
|
+
padding: var(--sti-space-3);
|
|
92
|
+
color: var(--sti-fg-muted);
|
|
93
|
+
font-size: var(--sti-font-size-sm);
|
|
94
|
+
line-height: var(--sti-line-height-sm);
|
|
95
|
+
overflow-wrap: anywhere;
|
|
96
|
+
margin: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@media (forced-colors: active) {
|
|
100
|
+
.sti-OrgSwitcher-trigger-8cf9a[data-focus-visible] {
|
|
101
|
+
outline-color: highlight;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@media (prefers-reduced-motion: reduce) {
|
|
106
|
+
.sti-OrgSwitcher-trigger-8cf9a {
|
|
107
|
+
transition: none;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Placement } from "../../components/_internal/overlay/FloatingCard.js";
|
|
2
|
+
import "../../components/Popover/Popover.js";
|
|
3
|
+
export interface OrgSwitcherOrg {
|
|
4
|
+
/** Kalıcı anahtar. */
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
/** `company`: kendi firmanız, `client`: müşteri. Birden çok tür varsa gruplanır. */
|
|
8
|
+
kind: "company" | "client";
|
|
9
|
+
/** Adın altındaki kısa bilgi (rol, plan). */
|
|
10
|
+
description?: string;
|
|
11
|
+
avatarSrc?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface OrgSwitcherProps {
|
|
14
|
+
orgs: readonly OrgSwitcherOrg[];
|
|
15
|
+
/** Seçili kuruluşun anahtarı (denetimli). */
|
|
16
|
+
value?: string | null;
|
|
17
|
+
defaultValue?: string | null;
|
|
18
|
+
onChange?: (id: string) => void;
|
|
19
|
+
/** Verilirse listenin altında "Yeni kuruluş oluşturun" düğmesi çıkar. */
|
|
20
|
+
onCreate?: () => void;
|
|
21
|
+
/** Bu sayıdan çok kuruluş varsa arama alanı gösterilir. Varsayılan 7. */
|
|
22
|
+
searchThreshold?: number;
|
|
23
|
+
size?: "sm" | "md" | "lg";
|
|
24
|
+
placement?: Placement;
|
|
25
|
+
isDisabled?: boolean;
|
|
26
|
+
isOpen?: boolean;
|
|
27
|
+
defaultOpen?: boolean;
|
|
28
|
+
onOpenChange?: (open: boolean) => void;
|
|
29
|
+
className?: string;
|
|
30
|
+
id?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Kuruluş değiştirici: geçerli firma ya da müşteriyi gösteren düğme ve altında aranabilir seçim
|
|
34
|
+
* listesi. Kuruluşlar türüne göre gruplanır. APG Listbox (tek seçim) açılır kutuda: oklar gezer,
|
|
35
|
+
* Home ve End uçlara gider, harfle arama yapılır, Enter seçer ve kapatır, Escape vazgeçer.
|
|
36
|
+
*/
|
|
37
|
+
export declare function OrgSwitcher({ orgs, value, defaultValue, onChange, onCreate, searchThreshold, size, placement, isDisabled, isOpen, defaultOpen, onOpenChange, className, id }: OrgSwitcherProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useLocale, useMessages } from "../../provider/UIProvider.js";
|
|
3
|
+
import { template } from "../../text/text.js";
|
|
4
|
+
import listbox_module_default from "../../components/_internal/listbox/listbox.module.js";
|
|
5
|
+
import { renderOptions } from "../../components/_internal/listbox/options.js";
|
|
6
|
+
import { VisuallyHidden } from "../../components/VisuallyHidden/VisuallyHidden.js";
|
|
7
|
+
import { Button as Button$1 } from "../../components/Button/Button.js";
|
|
8
|
+
import { Avatar } from "../../components/Avatar/Avatar.js";
|
|
9
|
+
import { SearchField as SearchField$1 } from "../../components/SearchField/SearchField.js";
|
|
10
|
+
import { Popover as Popover$1 } from "../../components/Popover/Popover.js";
|
|
11
|
+
import { PlusIcon } from "../../icons/generated/PlusIcon.js";
|
|
12
|
+
import { BuildingIcon } from "../../icons/generated/BuildingIcon.js";
|
|
13
|
+
import { BriefcaseIcon } from "../../icons/generated/BriefcaseIcon.js";
|
|
14
|
+
import { ChevronsUpDownIcon } from "../../icons/generated/ChevronsUpDownIcon.js";
|
|
15
|
+
import OrgSwitcher_module_default from "./OrgSwitcher.module.js";
|
|
16
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
+
import { useMemo, useState } from "react";
|
|
18
|
+
import { Button, ListBox } from "react-aria-components";
|
|
19
|
+
// src/id/OrgSwitcher/OrgSwitcher.tsx
|
|
20
|
+
const fold = (s, locale) => s.toLocaleLowerCase(locale);
|
|
21
|
+
/**
|
|
22
|
+
* Kuruluş değiştirici: geçerli firma ya da müşteriyi gösteren düğme ve altında aranabilir seçim
|
|
23
|
+
* listesi. Kuruluşlar türüne göre gruplanır. APG Listbox (tek seçim) açılır kutuda: oklar gezer,
|
|
24
|
+
* Home ve End uçlara gider, harfle arama yapılır, Enter seçer ve kapatır, Escape vazgeçer.
|
|
25
|
+
*/
|
|
26
|
+
function OrgSwitcher({ orgs, value, defaultValue = null, onChange, onCreate, searchThreshold = 7, size = "md", placement = "bottom start", isDisabled, isOpen, defaultOpen, onOpenChange, className, id }) {
|
|
27
|
+
const t = useMessages();
|
|
28
|
+
const locale = useLocale();
|
|
29
|
+
const [inner, setInner] = useState(defaultValue);
|
|
30
|
+
const [query, setQuery] = useState("");
|
|
31
|
+
const current = value === void 0 ? inner : value;
|
|
32
|
+
const selected = orgs.find((o) => o.id === current);
|
|
33
|
+
const showSearch = orgs.length > searchThreshold;
|
|
34
|
+
const q = fold(query.trim(), locale);
|
|
35
|
+
const items = useMemo(() => {
|
|
36
|
+
const visible = orgs.filter((o) => !q || fold(o.name, locale).includes(q));
|
|
37
|
+
const option = (o) => ({
|
|
38
|
+
id: o.id,
|
|
39
|
+
label: o.name,
|
|
40
|
+
description: o.description,
|
|
41
|
+
icon: o.avatarSrc ? /* @__PURE__ */ jsx(Avatar, {
|
|
42
|
+
name: o.name,
|
|
43
|
+
src: o.avatarSrc,
|
|
44
|
+
size: "xs",
|
|
45
|
+
shape: "square",
|
|
46
|
+
isDecorative: true
|
|
47
|
+
}) : o.kind === "company" ? /* @__PURE__ */ jsx(BuildingIcon, {}) : /* @__PURE__ */ jsx(BriefcaseIcon, {})
|
|
48
|
+
});
|
|
49
|
+
const companies = visible.filter((o) => o.kind === "company");
|
|
50
|
+
const clients = visible.filter((o) => o.kind === "client");
|
|
51
|
+
if (companies.length === 0 || clients.length === 0) return visible.map(option);
|
|
52
|
+
return [{
|
|
53
|
+
id: "company",
|
|
54
|
+
title: t.idOrgKindCompany,
|
|
55
|
+
options: companies.map(option)
|
|
56
|
+
}, {
|
|
57
|
+
id: "client",
|
|
58
|
+
title: t.idOrgKindClient,
|
|
59
|
+
options: clients.map(option)
|
|
60
|
+
}];
|
|
61
|
+
}, [
|
|
62
|
+
orgs,
|
|
63
|
+
q,
|
|
64
|
+
locale,
|
|
65
|
+
t.idOrgKindCompany,
|
|
66
|
+
t.idOrgKindClient
|
|
67
|
+
]);
|
|
68
|
+
const pick = (key, close) => {
|
|
69
|
+
setInner(key);
|
|
70
|
+
onChange?.(key);
|
|
71
|
+
setQuery("");
|
|
72
|
+
close();
|
|
73
|
+
};
|
|
74
|
+
return /* @__PURE__ */ jsx(Popover$1, {
|
|
75
|
+
placement,
|
|
76
|
+
"aria-label": t.idOrgSwitcher,
|
|
77
|
+
size: "md",
|
|
78
|
+
className: OrgSwitcher_module_default.card,
|
|
79
|
+
isOpen,
|
|
80
|
+
defaultOpen,
|
|
81
|
+
onOpenChange: (open) => {
|
|
82
|
+
if (!open) setQuery("");
|
|
83
|
+
onOpenChange?.(open);
|
|
84
|
+
},
|
|
85
|
+
trigger: /* @__PURE__ */ jsxs(Button, {
|
|
86
|
+
id,
|
|
87
|
+
className: [OrgSwitcher_module_default.trigger, className].filter(Boolean).join(" "),
|
|
88
|
+
"data-size": size,
|
|
89
|
+
isDisabled,
|
|
90
|
+
children: [
|
|
91
|
+
selected ? /* @__PURE__ */ jsx(Avatar, {
|
|
92
|
+
name: selected.name,
|
|
93
|
+
src: selected.avatarSrc,
|
|
94
|
+
size: "xs",
|
|
95
|
+
shape: "square",
|
|
96
|
+
isDecorative: true
|
|
97
|
+
}) : null,
|
|
98
|
+
selected ? /* @__PURE__ */ jsxs(VisuallyHidden, { children: [t.idOrgSwitcherCurrent, ": "] }) : null,
|
|
99
|
+
/* @__PURE__ */ jsx("span", {
|
|
100
|
+
className: OrgSwitcher_module_default.name,
|
|
101
|
+
children: selected?.name ?? t.idOrgSwitcherChoose
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ jsx(ChevronsUpDownIcon, {
|
|
104
|
+
className: OrgSwitcher_module_default.chevron,
|
|
105
|
+
"aria-hidden": "true"
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
}),
|
|
109
|
+
footer: onCreate ? (close) => /* @__PURE__ */ jsx(Button$1, {
|
|
110
|
+
variant: "ghost",
|
|
111
|
+
size: "sm",
|
|
112
|
+
fullWidth: true,
|
|
113
|
+
iconStart: /* @__PURE__ */ jsx(PlusIcon, {}),
|
|
114
|
+
onPress: () => {
|
|
115
|
+
close();
|
|
116
|
+
onCreate();
|
|
117
|
+
},
|
|
118
|
+
children: t.idOrgCreate
|
|
119
|
+
}) : void 0,
|
|
120
|
+
children: (close) => /* @__PURE__ */ jsxs("div", {
|
|
121
|
+
className: OrgSwitcher_module_default.body,
|
|
122
|
+
children: [showSearch ? /* @__PURE__ */ jsx(SearchField$1, {
|
|
123
|
+
label: t.idOrgSearch,
|
|
124
|
+
hideLabel: true,
|
|
125
|
+
placeholder: t.idOrgSearch,
|
|
126
|
+
size: "sm",
|
|
127
|
+
value: query,
|
|
128
|
+
onChange: setQuery,
|
|
129
|
+
autoFocus: true
|
|
130
|
+
}) : null, /* @__PURE__ */ jsx("div", {
|
|
131
|
+
className: OrgSwitcher_module_default.scroll,
|
|
132
|
+
children: /* @__PURE__ */ jsx(ListBox, {
|
|
133
|
+
"aria-label": t.idOrgList,
|
|
134
|
+
className: listbox_module_default.list,
|
|
135
|
+
selectionMode: "single",
|
|
136
|
+
disallowEmptySelection: true,
|
|
137
|
+
selectedKeys: current ? [current] : [],
|
|
138
|
+
autoFocus: showSearch ? false : "first",
|
|
139
|
+
onSelectionChange: (keys) => {
|
|
140
|
+
const key = keys === "all" ? void 0 : [...keys][0];
|
|
141
|
+
if (key !== void 0) pick(String(key), close);
|
|
142
|
+
},
|
|
143
|
+
renderEmptyState: () => /* @__PURE__ */ jsx("p", {
|
|
144
|
+
className: OrgSwitcher_module_default.empty,
|
|
145
|
+
children: template(t.idOrgNoMatch, { query })
|
|
146
|
+
}),
|
|
147
|
+
children: renderOptions(items)
|
|
148
|
+
})
|
|
149
|
+
})]
|
|
150
|
+
})
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
export { OrgSwitcher };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './OrgSwitcher.css';
|
|
2
|
+
// src/id/OrgSwitcher/OrgSwitcher.module.css
|
|
3
|
+
var OrgSwitcher_module_default = {
|
|
4
|
+
"trigger": "sti-OrgSwitcher-trigger-8cf9a",
|
|
5
|
+
"name": "sti-OrgSwitcher-name-0b2eb",
|
|
6
|
+
"chevron": "sti-OrgSwitcher-chevron-e70b6",
|
|
7
|
+
"card": "sti-OrgSwitcher-card-297cc",
|
|
8
|
+
"body": "sti-OrgSwitcher-body-e5f5e",
|
|
9
|
+
"scroll": "sti-OrgSwitcher-scroll-eca85",
|
|
10
|
+
"empty": "sti-OrgSwitcher-empty-1d36a"
|
|
11
|
+
};
|
|
12
|
+
export { OrgSwitcher_module_default as default };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-PermissionGate-root-bf743 {
|
|
4
|
+
align-items: flex-start;
|
|
5
|
+
gap: var(--sti-space-3);
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
min-inline-size: 0;
|
|
8
|
+
padding: var(--sti-space-4) var(--sti-space-5);
|
|
9
|
+
border: var(--sti-border-width) dashed var(--sti-border);
|
|
10
|
+
border-radius: var(--sti-radius-lg);
|
|
11
|
+
background: var(--sti-bg-subtle);
|
|
12
|
+
color: var(--sti-fg);
|
|
13
|
+
font-family: var(--sti-font-text);
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.sti-PermissionGate-icon-01cb9 {
|
|
18
|
+
inline-size: var(--sti-control-h-sm);
|
|
19
|
+
block-size: var(--sti-control-h-sm);
|
|
20
|
+
border-radius: var(--sti-radius-pill);
|
|
21
|
+
background: var(--sti-bg-surface-active);
|
|
22
|
+
color: var(--sti-fg-muted);
|
|
23
|
+
font-size: var(--sti-icon-md);
|
|
24
|
+
flex: none;
|
|
25
|
+
place-items: center;
|
|
26
|
+
display: inline-grid;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.sti-PermissionGate-text-4385b {
|
|
30
|
+
gap: var(--sti-space-1);
|
|
31
|
+
min-inline-size: 0;
|
|
32
|
+
padding-block-start: var(--sti-space-1);
|
|
33
|
+
display: grid;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.sti-PermissionGate-title-074a4 {
|
|
37
|
+
font-size: var(--sti-font-size-md);
|
|
38
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
39
|
+
line-height: var(--sti-line-height-md);
|
|
40
|
+
overflow-wrap: anywhere;
|
|
41
|
+
margin: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.sti-PermissionGate-description-c623a {
|
|
45
|
+
color: var(--sti-fg-muted);
|
|
46
|
+
font-size: var(--sti-font-size-sm);
|
|
47
|
+
line-height: var(--sti-line-height-sm);
|
|
48
|
+
overflow-wrap: anywhere;
|
|
49
|
+
margin: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media (forced-colors: active) {
|
|
53
|
+
.sti-PermissionGate-root-bf743 {
|
|
54
|
+
border-color: canvastext;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export type PermissionMatch = "all" | "any";
|
|
3
|
+
/**
|
|
4
|
+
* Gerekli izinler sahip olunanlarla karşılanıyor mu. `match="all"` (varsayılan) hepsini, `"any"`
|
|
5
|
+
* herhangi birini ister. Gerekli izin verilmemişse (boş liste) erişim serbesttir.
|
|
6
|
+
*/
|
|
7
|
+
export declare function hasPermission(granted: readonly string[], required: string | readonly string[], match?: PermissionMatch): boolean;
|
|
8
|
+
export interface PermissionGateProps {
|
|
9
|
+
/** Oturumdaki kullanıcının izinleri (`"proje:oku"`, `"proje:*"`, `"*"`). */
|
|
10
|
+
granted: readonly string[];
|
|
11
|
+
/** Gerekli izin ya da izinler. */
|
|
12
|
+
require: string | readonly string[];
|
|
13
|
+
/** `all`: hepsi gerekir (varsayılan); `any`: biri yeter. */
|
|
14
|
+
match?: PermissionMatch;
|
|
15
|
+
/** İzin yoksa çizilecek içerik; `denied` metni de yoksa hiçbir şey çizilmez. */
|
|
16
|
+
fallback?: ReactNode;
|
|
17
|
+
/** İzin yoksa gösterilecek açıklama ("Bu bölümü görüntüleme yetkiniz bulunmuyor."). */
|
|
18
|
+
denied?: ReactNode;
|
|
19
|
+
/** `denied` ile birlikte kısa başlık ("Erişim yetkisi gerekli"). */
|
|
20
|
+
deniedTitle?: ReactNode;
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
className?: string;
|
|
23
|
+
id?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* İzin kapısı: kullanıcı gerekli izne sahipse içeriği çizer, değilse yedek içeriği ya da yetki
|
|
27
|
+
* açıklamasını. Yalnız GÖRÜNÜMÜ düzenler; yetki denetimi her zaman sunucuda yeniden yapılmalıdır.
|
|
28
|
+
* Sunucu bileşenidir.
|
|
29
|
+
*/
|
|
30
|
+
export declare function PermissionGate({ granted, require, match, fallback, denied, deniedTitle, children, className, id }: PermissionGateProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { LockIcon } from "../../icons/generated/LockIcon.js";
|
|
2
|
+
import PermissionGate_module_default from "./PermissionGate.module.js";
|
|
3
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
// src/id/PermissionGate/PermissionGate.tsx
|
|
5
|
+
/** Verilen izin, sahip olunan izinlerden biriyle eşleşir mi (`"org:*"` ve `"*"` joker kabul edilir). */
|
|
6
|
+
function grants(granted, permission) {
|
|
7
|
+
return granted.some((g) => {
|
|
8
|
+
if (g === "*" || g === permission) return true;
|
|
9
|
+
return g.endsWith(":*") && permission.startsWith(g.slice(0, -1));
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Gerekli izinler sahip olunanlarla karşılanıyor mu. `match="all"` (varsayılan) hepsini, `"any"`
|
|
14
|
+
* herhangi birini ister. Gerekli izin verilmemişse (boş liste) erişim serbesttir.
|
|
15
|
+
*/
|
|
16
|
+
function hasPermission(granted, required, match = "all") {
|
|
17
|
+
const list = typeof required === "string" ? [required] : required;
|
|
18
|
+
if (list.length === 0) return true;
|
|
19
|
+
return match === "any" ? list.some((p) => grants(granted, p)) : list.every((p) => grants(granted, p));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* İzin kapısı: kullanıcı gerekli izne sahipse içeriği çizer, değilse yedek içeriği ya da yetki
|
|
23
|
+
* açıklamasını. Yalnız GÖRÜNÜMÜ düzenler; yetki denetimi her zaman sunucuda yeniden yapılmalıdır.
|
|
24
|
+
* Sunucu bileşenidir.
|
|
25
|
+
*/
|
|
26
|
+
function PermissionGate({ granted, require, match = "all", fallback, denied, deniedTitle, children, className, id }) {
|
|
27
|
+
if (hasPermission(granted, require, match)) return /* @__PURE__ */ jsx(Fragment, { children });
|
|
28
|
+
if (fallback !== void 0) return /* @__PURE__ */ jsx(Fragment, { children: fallback });
|
|
29
|
+
if (!denied && !deniedTitle) return null;
|
|
30
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
31
|
+
id,
|
|
32
|
+
className: [PermissionGate_module_default.root, className].filter(Boolean).join(" "),
|
|
33
|
+
role: "note",
|
|
34
|
+
"data-denied": "",
|
|
35
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
36
|
+
className: PermissionGate_module_default.icon,
|
|
37
|
+
"aria-hidden": "true",
|
|
38
|
+
children: /* @__PURE__ */ jsx(LockIcon, {})
|
|
39
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
40
|
+
className: PermissionGate_module_default.text,
|
|
41
|
+
children: [deniedTitle ? /* @__PURE__ */ jsx("p", {
|
|
42
|
+
className: PermissionGate_module_default.title,
|
|
43
|
+
children: deniedTitle
|
|
44
|
+
}) : null, denied ? /* @__PURE__ */ jsx("p", {
|
|
45
|
+
className: PermissionGate_module_default.description,
|
|
46
|
+
children: denied
|
|
47
|
+
}) : null]
|
|
48
|
+
})]
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
export { PermissionGate, hasPermission };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import './PermissionGate.css';
|
|
2
|
+
// src/id/PermissionGate/PermissionGate.module.css
|
|
3
|
+
var PermissionGate_module_default = {
|
|
4
|
+
"root": "sti-PermissionGate-root-bf743",
|
|
5
|
+
"icon": "sti-PermissionGate-icon-01cb9",
|
|
6
|
+
"text": "sti-PermissionGate-text-4385b",
|
|
7
|
+
"title": "sti-PermissionGate-title-074a4",
|
|
8
|
+
"description": "sti-PermissionGate-description-c623a"
|
|
9
|
+
};
|
|
10
|
+
export { PermissionGate_module_default as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface SignInButtonProps {
|
|
2
|
+
/** Verilirse bağlantı olarak çizilir (OAuth başlangıç adresi). */
|
|
3
|
+
href?: string;
|
|
4
|
+
onPress?: () => void;
|
|
5
|
+
/** Düğme metni; varsayılan "STI ID ile oturum açın". */
|
|
6
|
+
label?: string;
|
|
7
|
+
variant?: "primary" | "secondary" | "inverse";
|
|
8
|
+
size?: "sm" | "md" | "lg";
|
|
9
|
+
fullWidth?: boolean;
|
|
10
|
+
/** Oturum açma sürerken: basma yok sayılır, ekran okuyucuya "Oturum açılıyor" duyurulur. */
|
|
11
|
+
isPending?: boolean;
|
|
12
|
+
isDisabled?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
id?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* "STI ID ile oturum açın" düğmesi: kalkan ikonlu, üç boyda, tam genişlikte kullanılabilir.
|
|
18
|
+
* `href` verilirse bağlantı (Enter), verilmezse düğmedir (Enter ve Boşluk).
|
|
19
|
+
*/
|
|
20
|
+
export declare function SignInButton({ href, onPress, label, variant, size, fullWidth, isPending, isDisabled, className, id }: SignInButtonProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useMessages } from "../../provider/UIProvider.js";
|
|
3
|
+
import { Button } from "../../components/Button/Button.js";
|
|
4
|
+
import { ShieldCheckIcon } from "../../icons/generated/ShieldCheckIcon.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
// src/id/SignInButton/SignInButton.tsx
|
|
7
|
+
/**
|
|
8
|
+
* "STI ID ile oturum açın" düğmesi: kalkan ikonlu, üç boyda, tam genişlikte kullanılabilir.
|
|
9
|
+
* `href` verilirse bağlantı (Enter), verilmezse düğmedir (Enter ve Boşluk).
|
|
10
|
+
*/
|
|
11
|
+
function SignInButton({ href, onPress, label, variant = "primary", size = "md", fullWidth, isPending, isDisabled, className, id }) {
|
|
12
|
+
const t = useMessages();
|
|
13
|
+
const text = isPending ? t.idSignInPending : label ?? t.idSignInWith;
|
|
14
|
+
const common = {
|
|
15
|
+
variant,
|
|
16
|
+
size,
|
|
17
|
+
fullWidth,
|
|
18
|
+
isDisabled,
|
|
19
|
+
className,
|
|
20
|
+
id,
|
|
21
|
+
iconStart: /* @__PURE__ */ jsx(ShieldCheckIcon, {})
|
|
22
|
+
};
|
|
23
|
+
return href !== void 0 && !isPending ? /* @__PURE__ */ jsx(Button, {
|
|
24
|
+
...common,
|
|
25
|
+
href,
|
|
26
|
+
children: text
|
|
27
|
+
}) : /* @__PURE__ */ jsx(Button, {
|
|
28
|
+
...common,
|
|
29
|
+
isPending,
|
|
30
|
+
onPress,
|
|
31
|
+
children: text
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
export { SignInButton };
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-ActionItem-root-638ea {
|
|
4
|
+
--sti-action-item-radius: var(--sti-radius-md);
|
|
5
|
+
--sti-action-item-bg: transparent;
|
|
6
|
+
--sti-action-item-border: transparent;
|
|
7
|
+
--sti-action-item-icon-bg: var(--sti-bg-surface-active);
|
|
8
|
+
--sti-action-item-icon-fg: var(--sti-fg-muted);
|
|
9
|
+
align-items: center;
|
|
10
|
+
gap: var(--sti-space-3);
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
inline-size: 100%;
|
|
13
|
+
min-block-size: var(--sti-control-h-lg);
|
|
14
|
+
min-inline-size: 0;
|
|
15
|
+
padding-block: var(--sti-space-2);
|
|
16
|
+
padding-inline: var(--sti-space-3);
|
|
17
|
+
border: var(--sti-border-width) solid var(--sti-action-item-border);
|
|
18
|
+
border-radius: var(--sti-action-item-radius);
|
|
19
|
+
background: var(--sti-action-item-bg);
|
|
20
|
+
color: var(--sti-fg);
|
|
21
|
+
font-family: var(--sti-font-text);
|
|
22
|
+
text-align: start;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
transition: background-color var(--sti-duration-fast) var(--sti-ease-snap),
|
|
25
|
+
border-color var(--sti-duration-fast) var(--sti-ease-snap);
|
|
26
|
+
text-decoration: none;
|
|
27
|
+
display: flex;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.sti-ActionItem-root-638ea[data-variant="outlined"] {
|
|
31
|
+
--sti-action-item-border: var(--sti-border-strong);
|
|
32
|
+
padding-inline: var(--sti-space-4);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.sti-ActionItem-root-638ea[data-tone="danger"] {
|
|
36
|
+
--sti-action-item-icon-bg: var(--sti-bg-danger-subtle);
|
|
37
|
+
--sti-action-item-icon-fg: var(--sti-fg-danger-strong);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (hover: hover) {
|
|
41
|
+
.sti-ActionItem-root-638ea[data-hovered]:not([data-disabled]) {
|
|
42
|
+
--sti-action-item-bg: var(--sti-bg-surface-hover);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.sti-ActionItem-root-638ea[data-hovered]:not([data-disabled])[data-variant="outlined"] {
|
|
46
|
+
--sti-action-item-border: var(--sti-border-accent);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.sti-ActionItem-root-638ea[data-pressed]:not([data-disabled]) {
|
|
51
|
+
--sti-action-item-bg: var(--sti-bg-surface-active);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.sti-ActionItem-root-638ea[data-selected] {
|
|
55
|
+
--sti-action-item-border: var(--sti-border-selected);
|
|
56
|
+
--sti-action-item-bg: var(--sti-bg-accent-subtle);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.sti-ActionItem-root-638ea[data-focus-visible] {
|
|
60
|
+
outline: var(--sti-focus-ring-width) solid var(--sti-focus-ring);
|
|
61
|
+
outline-offset: var(--sti-focus-ring-offset);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.sti-ActionItem-root-638ea[data-disabled] {
|
|
65
|
+
opacity: var(--sti-opacity-disabled);
|
|
66
|
+
cursor: not-allowed;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.sti-ActionItem-root-638ea[data-pending] {
|
|
70
|
+
cursor: progress;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@media (pointer: coarse) {
|
|
74
|
+
.sti-ActionItem-root-638ea {
|
|
75
|
+
min-block-size: 2.75rem;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.sti-ActionItem-icon-64ebf {
|
|
80
|
+
inline-size: var(--sti-control-h-sm);
|
|
81
|
+
block-size: var(--sti-control-h-sm);
|
|
82
|
+
border-radius: var(--sti-radius-sm);
|
|
83
|
+
background: var(--sti-action-item-icon-bg);
|
|
84
|
+
color: var(--sti-action-item-icon-fg);
|
|
85
|
+
font-size: var(--sti-icon-md);
|
|
86
|
+
flex: none;
|
|
87
|
+
place-items: center;
|
|
88
|
+
display: inline-grid;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.sti-ActionItem-text-88422 {
|
|
92
|
+
gap: var(--sti-space-0-5);
|
|
93
|
+
flex: auto;
|
|
94
|
+
min-inline-size: 0;
|
|
95
|
+
display: grid;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.sti-ActionItem-label-e7b58 {
|
|
99
|
+
font-size: var(--sti-font-size-md);
|
|
100
|
+
font-weight: var(--sti-font-weight-medium);
|
|
101
|
+
line-height: var(--sti-line-height-md);
|
|
102
|
+
overflow-wrap: anywhere;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.sti-ActionItem-root-638ea[data-tone="danger"] .sti-ActionItem-label-e7b58 {
|
|
106
|
+
color: var(--sti-fg-danger-strong);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.sti-ActionItem-description-1ee33 {
|
|
110
|
+
color: var(--sti-fg-muted);
|
|
111
|
+
font-size: var(--sti-font-size-sm);
|
|
112
|
+
line-height: var(--sti-line-height-sm);
|
|
113
|
+
overflow-wrap: anywhere;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.sti-ActionItem-trailing-f8d0a {
|
|
117
|
+
color: var(--sti-fg-muted);
|
|
118
|
+
flex: none;
|
|
119
|
+
align-items: center;
|
|
120
|
+
display: inline-flex;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@media (forced-colors: active) {
|
|
124
|
+
.sti-ActionItem-root-638ea {
|
|
125
|
+
border-color: buttonborder;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.sti-ActionItem-root-638ea[data-selected] {
|
|
129
|
+
border-color: highlight;
|
|
130
|
+
border-width: var(--sti-border-width-strong);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.sti-ActionItem-root-638ea[data-focus-visible] {
|
|
134
|
+
outline-color: highlight;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@media (prefers-reduced-motion: reduce) {
|
|
139
|
+
.sti-ActionItem-root-638ea {
|
|
140
|
+
transition: none;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|