@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
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-StoreLocator-root-6b415 {
|
|
4
|
+
inline-size: 100%;
|
|
5
|
+
min-width: 0;
|
|
6
|
+
font-family: var(--sti-font-text);
|
|
7
|
+
container-type: inline-size;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.sti-StoreLocator-layout-86db6 {
|
|
11
|
+
gap: var(--sti-space-4);
|
|
12
|
+
grid-template-columns: minmax(0, 1fr);
|
|
13
|
+
min-width: 0;
|
|
14
|
+
display: grid;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.sti-StoreLocator-map-186cb {
|
|
18
|
+
order: 1;
|
|
19
|
+
min-width: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sti-StoreLocator-panel-a2eb9 {
|
|
23
|
+
align-content: start;
|
|
24
|
+
gap: var(--sti-space-3);
|
|
25
|
+
order: 2;
|
|
26
|
+
grid-template-columns: minmax(0, 1fr);
|
|
27
|
+
min-width: 0;
|
|
28
|
+
display: grid;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@container (width >= 46rem) {
|
|
32
|
+
.sti-StoreLocator-layout-86db6 {
|
|
33
|
+
grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
|
|
34
|
+
align-items: start;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.sti-StoreLocator-panel-a2eb9 {
|
|
38
|
+
order: 1;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.sti-StoreLocator-map-186cb {
|
|
42
|
+
order: 2;
|
|
43
|
+
position: sticky;
|
|
44
|
+
inset-block-start: var(--sti-space-4);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.sti-StoreLocator-list-32c17 {
|
|
48
|
+
max-block-size: calc(var(--sti-space-32) * 3);
|
|
49
|
+
overscroll-behavior: contain;
|
|
50
|
+
padding-inline-end: var(--sti-space-1);
|
|
51
|
+
overflow-y: auto;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.sti-StoreLocator-tools-71cea {
|
|
56
|
+
justify-items: start;
|
|
57
|
+
gap: var(--sti-space-2);
|
|
58
|
+
display: grid;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.sti-StoreLocator-status-4a031 {
|
|
62
|
+
color: var(--sti-fg-muted);
|
|
63
|
+
font-size: var(--sti-font-size-sm);
|
|
64
|
+
line-height: var(--sti-line-height-sm);
|
|
65
|
+
margin: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.sti-StoreLocator-problem-cec14 {
|
|
69
|
+
color: var(--sti-fg-danger);
|
|
70
|
+
font-size: var(--sti-font-size-sm);
|
|
71
|
+
font-weight: var(--sti-font-weight-medium);
|
|
72
|
+
line-height: var(--sti-line-height-sm);
|
|
73
|
+
margin: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.sti-StoreLocator-list-32c17 {
|
|
77
|
+
align-content: start;
|
|
78
|
+
gap: var(--sti-space-2);
|
|
79
|
+
margin: 0;
|
|
80
|
+
padding: 0;
|
|
81
|
+
list-style: none;
|
|
82
|
+
display: grid;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.sti-StoreLocator-item-8c817 {
|
|
86
|
+
gap: var(--sti-space-1);
|
|
87
|
+
min-width: 0;
|
|
88
|
+
padding: var(--sti-space-3) var(--sti-space-4);
|
|
89
|
+
border: var(--sti-border-width) solid var(--sti-border);
|
|
90
|
+
border-radius: var(--sti-radius-lg);
|
|
91
|
+
background: var(--sti-bg-surface);
|
|
92
|
+
transition: border-color var(--sti-duration-fast) var(--sti-ease-snap),
|
|
93
|
+
background-color var(--sti-duration-fast) var(--sti-ease-snap);
|
|
94
|
+
display: grid;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.sti-StoreLocator-item-8c817[data-selected] {
|
|
98
|
+
border-color: var(--sti-border-selected);
|
|
99
|
+
box-shadow: 0 0 0 var(--sti-border-width) var(--sti-border-selected);
|
|
100
|
+
background: var(--sti-bg-accent-subtle);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.sti-StoreLocator-select-d8b70 {
|
|
104
|
+
justify-content: space-between;
|
|
105
|
+
align-items: baseline;
|
|
106
|
+
gap: var(--sti-space-3);
|
|
107
|
+
min-width: 0;
|
|
108
|
+
min-height: var(--sti-control-h-md);
|
|
109
|
+
margin: calc(var(--sti-space-2) * -1) calc(var(--sti-space-2) * -1) 0;
|
|
110
|
+
padding: var(--sti-space-2);
|
|
111
|
+
border-radius: var(--sti-radius-md);
|
|
112
|
+
color: var(--sti-fg);
|
|
113
|
+
font: inherit;
|
|
114
|
+
text-align: start;
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
-webkit-tap-highlight-color: transparent;
|
|
117
|
+
background: none;
|
|
118
|
+
border: 0;
|
|
119
|
+
display: flex;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@media (hover: hover) {
|
|
123
|
+
.sti-StoreLocator-select-d8b70[data-hovered] {
|
|
124
|
+
background: var(--sti-bg-surface-hover);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.sti-StoreLocator-select-d8b70:focus-visible, .sti-StoreLocator-select-d8b70[data-focus-visible] {
|
|
129
|
+
outline: var(--sti-focus-ring-width) solid var(--sti-focus-ring);
|
|
130
|
+
outline-offset: var(--sti-focus-ring-offset);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.sti-StoreLocator-select-d8b70:focus:not([data-focus-visible]) {
|
|
134
|
+
outline: none;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.sti-StoreLocator-name-896ef {
|
|
138
|
+
min-width: 0;
|
|
139
|
+
font-size: var(--sti-font-size-body);
|
|
140
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
141
|
+
line-height: var(--sti-line-height-sm);
|
|
142
|
+
overflow-wrap: anywhere;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.sti-StoreLocator-item-8c817[data-selected] .sti-StoreLocator-name-896ef {
|
|
146
|
+
font-weight: var(--sti-font-weight-bold);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.sti-StoreLocator-km-6edd6 {
|
|
150
|
+
color: var(--sti-fg-muted);
|
|
151
|
+
font-size: var(--sti-font-size-sm);
|
|
152
|
+
font-variant-numeric: tabular-nums;
|
|
153
|
+
flex: none;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.sti-StoreLocator-address-1baac, .sti-StoreLocator-hours-1468c {
|
|
157
|
+
color: var(--sti-fg-muted);
|
|
158
|
+
font-size: var(--sti-font-size-sm);
|
|
159
|
+
line-height: var(--sti-line-height-sm);
|
|
160
|
+
overflow-wrap: anywhere;
|
|
161
|
+
margin: 0;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.sti-StoreLocator-hours-1468c {
|
|
165
|
+
align-items: flex-start;
|
|
166
|
+
gap: var(--sti-space-2);
|
|
167
|
+
display: flex;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.sti-StoreLocator-hoursIcon-2d83d {
|
|
171
|
+
font-size: var(--sti-icon-sm);
|
|
172
|
+
flex: none;
|
|
173
|
+
margin-block-start: var(--sti-space-0-5);
|
|
174
|
+
display: inline-flex;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.sti-StoreLocator-actions-eeaea {
|
|
178
|
+
align-items: center;
|
|
179
|
+
gap: var(--sti-space-1) var(--sti-space-4);
|
|
180
|
+
flex-wrap: wrap;
|
|
181
|
+
margin-block-start: var(--sti-space-1);
|
|
182
|
+
display: flex;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@media (prefers-reduced-motion: reduce) {
|
|
186
|
+
.sti-StoreLocator-item-8c817 {
|
|
187
|
+
transition: none;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@media (forced-colors: active) {
|
|
192
|
+
.sti-StoreLocator-item-8c817 {
|
|
193
|
+
border-color: canvastext;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.sti-StoreLocator-item-8c817[data-selected] {
|
|
197
|
+
box-shadow: 0 0 0 var(--sti-border-width) Highlight;
|
|
198
|
+
border-color: highlight;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DirectionsProvider } from "../DirectionsLink/DirectionsLink.js";
|
|
2
|
+
import { MapViewProps } from "../MapView/MapView.js";
|
|
3
|
+
export interface Store {
|
|
4
|
+
/** Kararlı kimlik (liste ve seçim bununla izlenir). */
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
/** Açık adres; aramada da kullanılır. */
|
|
8
|
+
address: string;
|
|
9
|
+
lat: number;
|
|
10
|
+
lng: number;
|
|
11
|
+
/** İl ya da ilçe (aramada kullanılır). */
|
|
12
|
+
city?: string;
|
|
13
|
+
/** Türkiye telefon numarası; verilirse arama bağlantısı çizilir. */
|
|
14
|
+
phone?: string;
|
|
15
|
+
/** Çalışma saatleri metni ("Hafta içi 09.00–19.00"). */
|
|
16
|
+
hours?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface StoreLocatorProps {
|
|
19
|
+
/** Bölgenin adı (zorunlu): "Mağazalarımız". */
|
|
20
|
+
label: string;
|
|
21
|
+
stores: readonly Store[];
|
|
22
|
+
/** Seçili mağaza (denetimli); `null` seçim yok. */
|
|
23
|
+
selectedId?: string | null;
|
|
24
|
+
defaultSelectedId?: string | null;
|
|
25
|
+
onSelectedChange?: (id: string | null) => void;
|
|
26
|
+
/** Harita izni ve karo kaynağı (`MapView` ile aynı). */
|
|
27
|
+
mapProps?: Pick<MapViewProps, "isLoaded" | "defaultLoaded" | "onLoadedChange" | "tileUrl" | "attribution">;
|
|
28
|
+
/** Yol tarifi hizmeti; varsayılan OpenStreetMap. */
|
|
29
|
+
directionsProvider?: DirectionsProvider;
|
|
30
|
+
/** "Bana yakın olanları göster" düğmesi; varsayılan açık. */
|
|
31
|
+
showNearMe?: boolean;
|
|
32
|
+
/** Harita yüksekliği; varsayılan `md`. */
|
|
33
|
+
mapSize?: "sm" | "md" | "lg";
|
|
34
|
+
className?: string;
|
|
35
|
+
id?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Mağaza bulucu: arama (Türkçe harf duyarsız), konuma göre sıralama, liste ve harita bir arada.
|
|
39
|
+
* Listedeki mağazaya basmak haritayı ona götürür; haritadaki işaretçiye basmak listede seçer.
|
|
40
|
+
* Liste haritanın metin karşılığıdır: harita yüklenmese de bütün işlevler çalışır. Cihaz konumu
|
|
41
|
+
* yalnız düğmeye basılınca istenir, mağaza uzaklıkları cihazda hesaplanır ve hiçbir yere gönderilmez.
|
|
42
|
+
*/
|
|
43
|
+
export declare function StoreLocator(props: StoreLocatorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useFormatter, useMessages } from "../../provider/UIProvider.js";
|
|
3
|
+
import { matchesLoose, 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 { ClockIcon } from "../../icons/generated/ClockIcon.js";
|
|
7
|
+
import { SearchField as SearchField$1 } from "../../components/SearchField/SearchField.js";
|
|
8
|
+
import { EmptyState } from "../../components/EmptyState/EmptyState.js";
|
|
9
|
+
import { CompassIcon } from "../../icons/generated/CompassIcon.js";
|
|
10
|
+
import { MapPinIcon } from "../../icons/generated/MapPinIcon.js";
|
|
11
|
+
import { PhoneLink } from "../../components/PhoneLink/PhoneLink.js";
|
|
12
|
+
import { distanceKm, isLatLng } from "../_internal/geo.js";
|
|
13
|
+
import { DirectionsLink } from "../DirectionsLink/DirectionsLink.js";
|
|
14
|
+
import { useControllable } from "../_internal/useControllable.js";
|
|
15
|
+
import { MapMarker } from "../MapMarker/MapMarker.js";
|
|
16
|
+
import { MapView } from "../MapView/MapView.js";
|
|
17
|
+
import StoreLocator_module_default from "./StoreLocator.module.js";
|
|
18
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
import { useEffect, useMemo, useRef, useState } from "react";
|
|
20
|
+
import { Button } from "react-aria-components";
|
|
21
|
+
// src/maps/StoreLocator/StoreLocator.tsx
|
|
22
|
+
const KM_DIGITS = (km) => km < 10 ? 1 : 0;
|
|
23
|
+
/**
|
|
24
|
+
* Mağaza bulucu: arama (Türkçe harf duyarsız), konuma göre sıralama, liste ve harita bir arada.
|
|
25
|
+
* Listedeki mağazaya basmak haritayı ona götürür; haritadaki işaretçiye basmak listede seçer.
|
|
26
|
+
* Liste haritanın metin karşılığıdır: harita yüklenmese de bütün işlevler çalışır. Cihaz konumu
|
|
27
|
+
* yalnız düğmeye basılınca istenir, mağaza uzaklıkları cihazda hesaplanır ve hiçbir yere gönderilmez.
|
|
28
|
+
*/
|
|
29
|
+
function StoreLocator(props) {
|
|
30
|
+
const { label, stores, mapProps, directionsProvider, showNearMe = true, mapSize = "md", className, id } = props;
|
|
31
|
+
const messages = useMessages();
|
|
32
|
+
const format = useFormatter();
|
|
33
|
+
const [selectedId, setSelectedId] = useControllable(props.selectedId, props.defaultSelectedId ?? null, props.onSelectedChange);
|
|
34
|
+
const [query, setQuery] = useState("");
|
|
35
|
+
const [here, setHere] = useState(null);
|
|
36
|
+
const [locating, setLocating] = useState(false);
|
|
37
|
+
const [problem, setProblem] = useState(null);
|
|
38
|
+
const [center, setCenter] = useState(void 0);
|
|
39
|
+
const [zoom, setZoom] = useState(void 0);
|
|
40
|
+
const items = useRef(/* @__PURE__ */ new Map());
|
|
41
|
+
const valid = useMemo(() => stores.filter((s) => isLatLng(s)), [stores]);
|
|
42
|
+
const rows = useMemo(() => {
|
|
43
|
+
const found = valid.filter((s) => matchesLoose(`${s.name} ${s.address} ${s.city ?? ""}`, query)).map((store) => ({
|
|
44
|
+
store,
|
|
45
|
+
km: here ? distanceKm(here, store) : null
|
|
46
|
+
}));
|
|
47
|
+
return here ? found.sort((a, b) => (a.km ?? 0) - (b.km ?? 0)) : found;
|
|
48
|
+
}, [
|
|
49
|
+
valid,
|
|
50
|
+
query,
|
|
51
|
+
here
|
|
52
|
+
]);
|
|
53
|
+
const points = useMemo(() => rows.map((r) => ({
|
|
54
|
+
lat: r.store.lat,
|
|
55
|
+
lng: r.store.lng
|
|
56
|
+
})), [rows]);
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
if (!selectedId) return;
|
|
59
|
+
const li = items.current.get(selectedId);
|
|
60
|
+
const list = li?.parentElement;
|
|
61
|
+
if (!li || !list) return;
|
|
62
|
+
const top = li.offsetTop - list.offsetTop;
|
|
63
|
+
if (top < list.scrollTop) list.scrollTop = top;
|
|
64
|
+
else if (top + li.offsetHeight > list.scrollTop + list.clientHeight) list.scrollTop = top + li.offsetHeight - list.clientHeight;
|
|
65
|
+
}, [selectedId]);
|
|
66
|
+
const select = (store) => {
|
|
67
|
+
setSelectedId(store?.id ?? null);
|
|
68
|
+
if (store) {
|
|
69
|
+
setCenter({
|
|
70
|
+
lat: store.lat,
|
|
71
|
+
lng: store.lng
|
|
72
|
+
});
|
|
73
|
+
setZoom((z) => Math.max(z ?? 0, 14));
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const locate = () => {
|
|
77
|
+
if (!navigator.geolocation) {
|
|
78
|
+
setProblem(messages.locationUnavailable);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
setLocating(true);
|
|
82
|
+
setProblem(null);
|
|
83
|
+
navigator.geolocation.getCurrentPosition((pos) => {
|
|
84
|
+
setLocating(false);
|
|
85
|
+
setHere({
|
|
86
|
+
lat: pos.coords.latitude,
|
|
87
|
+
lng: pos.coords.longitude
|
|
88
|
+
});
|
|
89
|
+
}, (err) => {
|
|
90
|
+
setLocating(false);
|
|
91
|
+
setProblem(err.code === 1 ? messages.locationDenied : messages.locationUnavailable);
|
|
92
|
+
}, {
|
|
93
|
+
enableHighAccuracy: false,
|
|
94
|
+
timeout: 15e3,
|
|
95
|
+
maximumAge: 6e4
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
const count = template(messages.storeCount, { count: rows.length });
|
|
99
|
+
const distance = (km) => template(messages.storeDistance, { distance: `${format.number(km, { maximumFractionDigits: KM_DIGITS(km) })} km` });
|
|
100
|
+
return /* @__PURE__ */ jsx("section", {
|
|
101
|
+
id,
|
|
102
|
+
className: [StoreLocator_module_default.root, className].filter(Boolean).join(" "),
|
|
103
|
+
"aria-label": label,
|
|
104
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
105
|
+
className: StoreLocator_module_default.layout,
|
|
106
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
107
|
+
className: StoreLocator_module_default.panel,
|
|
108
|
+
children: [
|
|
109
|
+
/* @__PURE__ */ jsxs("div", {
|
|
110
|
+
className: StoreLocator_module_default.tools,
|
|
111
|
+
children: [/* @__PURE__ */ jsx(SearchField$1, {
|
|
112
|
+
label: messages.storeSearch,
|
|
113
|
+
value: query,
|
|
114
|
+
onChange: setQuery,
|
|
115
|
+
onClear: () => setQuery("")
|
|
116
|
+
}), showNearMe ? /* @__PURE__ */ jsx(Button$1, {
|
|
117
|
+
size: "sm",
|
|
118
|
+
variant: "secondary",
|
|
119
|
+
iconStart: /* @__PURE__ */ jsx(CompassIcon, {}),
|
|
120
|
+
isPending: locating,
|
|
121
|
+
onPress: locate,
|
|
122
|
+
children: messages.storeNearMe
|
|
123
|
+
}) : null]
|
|
124
|
+
}),
|
|
125
|
+
/* @__PURE__ */ jsxs("p", {
|
|
126
|
+
className: StoreLocator_module_default.status,
|
|
127
|
+
role: "status",
|
|
128
|
+
children: [count, here ? ` ${messages.storeSortedByDistance}` : ""]
|
|
129
|
+
}),
|
|
130
|
+
problem ? /* @__PURE__ */ jsx("p", {
|
|
131
|
+
className: StoreLocator_module_default.problem,
|
|
132
|
+
children: problem
|
|
133
|
+
}) : null,
|
|
134
|
+
rows.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
|
|
135
|
+
size: "sm",
|
|
136
|
+
icon: /* @__PURE__ */ jsx(MapPinIcon, {}),
|
|
137
|
+
title: messages.storeNone,
|
|
138
|
+
titleLevel: 3,
|
|
139
|
+
description: messages.storeNoneHint
|
|
140
|
+
}) : /* @__PURE__ */ jsx("ul", {
|
|
141
|
+
className: StoreLocator_module_default.list,
|
|
142
|
+
"aria-label": messages.storeList,
|
|
143
|
+
children: rows.map(({ store, km }) => {
|
|
144
|
+
const selected = store.id === selectedId;
|
|
145
|
+
return /* @__PURE__ */ jsxs("li", {
|
|
146
|
+
ref: (node) => {
|
|
147
|
+
if (node) items.current.set(store.id, node);
|
|
148
|
+
else items.current.delete(store.id);
|
|
149
|
+
},
|
|
150
|
+
className: StoreLocator_module_default.item,
|
|
151
|
+
"data-selected": selected ? "" : void 0,
|
|
152
|
+
children: [
|
|
153
|
+
/* @__PURE__ */ jsxs(Button, {
|
|
154
|
+
className: StoreLocator_module_default.select,
|
|
155
|
+
"aria-pressed": selected,
|
|
156
|
+
"aria-label": template(messages.storeShowOnMap, { name: store.name }),
|
|
157
|
+
onPress: () => select(selected ? null : store),
|
|
158
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
159
|
+
className: StoreLocator_module_default.name,
|
|
160
|
+
children: store.name
|
|
161
|
+
}), km !== null ? /* @__PURE__ */ jsx("span", {
|
|
162
|
+
className: StoreLocator_module_default.km,
|
|
163
|
+
children: distance(km)
|
|
164
|
+
}) : null]
|
|
165
|
+
}),
|
|
166
|
+
/* @__PURE__ */ jsx("p", {
|
|
167
|
+
className: StoreLocator_module_default.address,
|
|
168
|
+
children: store.address
|
|
169
|
+
}),
|
|
170
|
+
store.hours ? /* @__PURE__ */ jsxs("p", {
|
|
171
|
+
className: StoreLocator_module_default.hours,
|
|
172
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
173
|
+
className: StoreLocator_module_default.hoursIcon,
|
|
174
|
+
"aria-hidden": "true",
|
|
175
|
+
children: /* @__PURE__ */ jsx(ClockIcon, {})
|
|
176
|
+
}), store.hours]
|
|
177
|
+
}) : null,
|
|
178
|
+
/* @__PURE__ */ jsxs("div", {
|
|
179
|
+
className: StoreLocator_module_default.actions,
|
|
180
|
+
children: [/* @__PURE__ */ jsxs(DirectionsLink, {
|
|
181
|
+
destination: {
|
|
182
|
+
lat: store.lat,
|
|
183
|
+
lng: store.lng
|
|
184
|
+
},
|
|
185
|
+
provider: directionsProvider,
|
|
186
|
+
size: "sm",
|
|
187
|
+
children: [messages.storeDirections, /* @__PURE__ */ jsxs(VisuallyHidden, { children: [" ", store.name] })]
|
|
188
|
+
}), store.phone ? /* @__PURE__ */ jsx(PhoneLink, {
|
|
189
|
+
value: store.phone,
|
|
190
|
+
showIcon: true
|
|
191
|
+
}) : null]
|
|
192
|
+
})
|
|
193
|
+
]
|
|
194
|
+
}, store.id);
|
|
195
|
+
})
|
|
196
|
+
})
|
|
197
|
+
]
|
|
198
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
199
|
+
className: StoreLocator_module_default.map,
|
|
200
|
+
children: /* @__PURE__ */ jsx(MapView, {
|
|
201
|
+
label,
|
|
202
|
+
size: mapSize,
|
|
203
|
+
center,
|
|
204
|
+
zoom,
|
|
205
|
+
onCenterChange: setCenter,
|
|
206
|
+
onZoomChange: setZoom,
|
|
207
|
+
fit: points,
|
|
208
|
+
showMarkerList: false,
|
|
209
|
+
...mapProps,
|
|
210
|
+
children: rows.map(({ store }) => /* @__PURE__ */ jsx(MapMarker, {
|
|
211
|
+
lat: store.lat,
|
|
212
|
+
lng: store.lng,
|
|
213
|
+
label: store.name,
|
|
214
|
+
description: store.address,
|
|
215
|
+
isSelected: store.id === selectedId,
|
|
216
|
+
onPress: () => select(store.id === selectedId ? null : store),
|
|
217
|
+
onClose: () => setSelectedId(null),
|
|
218
|
+
children: store.hours
|
|
219
|
+
}, store.id))
|
|
220
|
+
})
|
|
221
|
+
})]
|
|
222
|
+
})
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
export { StoreLocator };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import './StoreLocator.css';
|
|
2
|
+
// src/maps/StoreLocator/StoreLocator.module.css
|
|
3
|
+
var StoreLocator_module_default = {
|
|
4
|
+
"root": "sti-StoreLocator-root-6b415",
|
|
5
|
+
"layout": "sti-StoreLocator-layout-86db6",
|
|
6
|
+
"map": "sti-StoreLocator-map-186cb",
|
|
7
|
+
"panel": "sti-StoreLocator-panel-a2eb9",
|
|
8
|
+
"list": "sti-StoreLocator-list-32c17",
|
|
9
|
+
"tools": "sti-StoreLocator-tools-71cea",
|
|
10
|
+
"status": "sti-StoreLocator-status-4a031",
|
|
11
|
+
"problem": "sti-StoreLocator-problem-cec14",
|
|
12
|
+
"item": "sti-StoreLocator-item-8c817",
|
|
13
|
+
"select": "sti-StoreLocator-select-d8b70",
|
|
14
|
+
"name": "sti-StoreLocator-name-896ef",
|
|
15
|
+
"km": "sti-StoreLocator-km-6edd6",
|
|
16
|
+
"address": "sti-StoreLocator-address-1baac",
|
|
17
|
+
"hours": "sti-StoreLocator-hours-1468c",
|
|
18
|
+
"hoursIcon": "sti-StoreLocator-hoursIcon-2d83d",
|
|
19
|
+
"actions": "sti-StoreLocator-actions-eeaea"
|
|
20
|
+
};
|
|
21
|
+
export { StoreLocator_module_default as default };
|