@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
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Accent } from "./components/Accent/Accent.js";
|
|
2
|
+
import { Accordion } from "./components/Accordion/Accordion.js";
|
|
2
3
|
import { ActionBar } from "./components/ActionBar/ActionBar.js";
|
|
3
4
|
import { DEFAULT_TIME_ZONE, contextOf } from "./format/context.js";
|
|
4
5
|
import { dayKey, formatCalendarDate, formatCalendarDateTime, formatDate, formatDateRange, formatDateTime, formatDuration, formatMonthYear, formatRelativeTime, formatTime } from "./format/dates.js";
|
|
@@ -102,6 +103,7 @@ import { DateRangePicker, defaultRangePresets } from "./components/DateRangePick
|
|
|
102
103
|
import { DateTimePicker } from "./components/DateTimePicker/DateTimePicker.js";
|
|
103
104
|
import { DescriptionItem, DescriptionList } from "./components/DescriptionList/DescriptionList.js";
|
|
104
105
|
import { Dialog } from "./components/Dialog/Dialog.js";
|
|
106
|
+
import { Disclosure } from "./components/Disclosure/Disclosure.js";
|
|
105
107
|
import { Divider } from "./components/Divider/Divider.js";
|
|
106
108
|
import { DownloadButton } from "./components/DownloadButton/DownloadButton.js";
|
|
107
109
|
import { Drawer } from "./components/Drawer/Drawer.js";
|
|
@@ -116,8 +118,14 @@ import { EmptyState } from "./components/EmptyState/EmptyState.js";
|
|
|
116
118
|
import { EntityHeader } from "./components/EntityHeader/EntityHeader.js";
|
|
117
119
|
import { ErrorState } from "./components/ErrorState/ErrorState.js";
|
|
118
120
|
import { ErrorBoundary } from "./components/ErrorBoundary/ErrorBoundary.js";
|
|
121
|
+
import { ErrorPage } from "./components/ErrorPage/ErrorPage.js";
|
|
119
122
|
import { Eyebrow } from "./components/Eyebrow/Eyebrow.js";
|
|
120
123
|
import { FavoriteToggle } from "./components/FavoriteToggle/FavoriteToggle.js";
|
|
124
|
+
import { Rating, RatingDisplay } from "./components/Rating/Rating.js";
|
|
125
|
+
import { SegmentedControl, SegmentedControlItem } from "./components/SegmentedControl/SegmentedControl.js";
|
|
126
|
+
import { FeedbackWidget } from "./components/FeedbackWidget/FeedbackWidget.js";
|
|
127
|
+
import { Figure } from "./components/Figure/Figure.js";
|
|
128
|
+
import { FileList, fileExtension, fileKind } from "./components/FileList/FileList.js";
|
|
121
129
|
import { FileSize } from "./components/FileSize/FileSize.js";
|
|
122
130
|
import { ProgressBar } from "./components/ProgressBar/ProgressBar.js";
|
|
123
131
|
import { describeAccept, fileKey, matchesAccept, partitionFiles } from "./components/FileUpload/fileRules.js";
|
|
@@ -157,6 +165,7 @@ import { KeyValue } from "./components/KeyValue/KeyValue.js";
|
|
|
157
165
|
import { KvkkConsent } from "./components/KvkkConsent/KvkkConsent.js";
|
|
158
166
|
import { LanguageSwitch } from "./components/LanguageSwitch/LanguageSwitch.js";
|
|
159
167
|
import { Lightbox } from "./components/Lightbox/Lightbox.js";
|
|
168
|
+
import { LinkRows } from "./components/LinkRows/LinkRows.js";
|
|
160
169
|
import { List, ListItem } from "./components/List/List.js";
|
|
161
170
|
import { Listbox } from "./components/Listbox/Listbox.js";
|
|
162
171
|
import { LoadingBoundary } from "./components/LoadingBoundary/LoadingBoundary.js";
|
|
@@ -178,13 +187,13 @@ import { containsPersonalInfo, estimatePasswordStrength, isCommonPassword } from
|
|
|
178
187
|
import { PasswordStrength } from "./components/PasswordStrength/PasswordStrength.js";
|
|
179
188
|
import { NewPasswordField } from "./components/NewPasswordField/NewPasswordField.js";
|
|
180
189
|
import { NotificationBell } from "./components/NotificationBell/NotificationBell.js";
|
|
181
|
-
import { SegmentedControl, SegmentedControlItem } from "./components/SegmentedControl/SegmentedControl.js";
|
|
182
190
|
import { NotificationCenter } from "./components/NotificationCenter/NotificationCenter.js";
|
|
183
191
|
import { OfflineIndicator } from "./components/OfflineIndicator/OfflineIndicator.js";
|
|
184
192
|
import { OnboardingChecklist } from "./components/OnboardingChecklist/OnboardingChecklist.js";
|
|
185
193
|
import { OtpField } from "./components/OtpField/OtpField.js";
|
|
186
194
|
import { PageHeader } from "./components/PageHeader/PageHeader.js";
|
|
187
195
|
import { Pagination, pageItems } from "./components/Pagination/Pagination.js";
|
|
196
|
+
import { PersonItem } from "./components/PersonItem/PersonItem.js";
|
|
188
197
|
import { PhoneField, isValidPhone, splitInternational, toE164 } from "./components/PhoneField/PhoneField.js";
|
|
189
198
|
import { PhoneLink } from "./components/PhoneLink/PhoneLink.js";
|
|
190
199
|
import { formatPlate, isValidPlate, parsePlate } from "./components/PlateField/plate.js";
|
|
@@ -200,7 +209,6 @@ import { RadioCard, RadioCards } from "./components/RadioCards/RadioCards.js";
|
|
|
200
209
|
import { Radio, RadioGroup } from "./components/RadioGroup/RadioGroup.js";
|
|
201
210
|
import { RangeCalendar } from "./components/RangeCalendar/RangeCalendar.js";
|
|
202
211
|
import { RangeSlider } from "./components/RangeSlider/RangeSlider.js";
|
|
203
|
-
import { Rating, RatingDisplay } from "./components/Rating/Rating.js";
|
|
204
212
|
import { ReactionPicker } from "./components/ReactionPicker/ReactionPicker.js";
|
|
205
213
|
import { ReadMore } from "./components/ReadMore/ReadMore.js";
|
|
206
214
|
import { ToggleButton } from "./components/ToggleButton/ToggleButton.js";
|
|
@@ -231,6 +239,7 @@ import { Sticky } from "./components/Sticky/Sticky.js";
|
|
|
231
239
|
import { SuccessState } from "./components/SuccessState/SuccessState.js";
|
|
232
240
|
import { Surface } from "./components/Surface/Surface.js";
|
|
233
241
|
import { Switch } from "./components/Switch/Switch.js";
|
|
242
|
+
import { Table } from "./components/Table/Table.js";
|
|
234
243
|
import { TableOfContents } from "./components/TableOfContents/TableOfContents.js";
|
|
235
244
|
import { Tab, TabList, TabPanel, Tabs } from "./components/Tabs/Tabs.js";
|
|
236
245
|
import { Tag } from "./components/Tag/Tag.js";
|
|
@@ -243,7 +252,8 @@ import { ThemeScript } from "./components/ThemeScript/ThemeScript.js";
|
|
|
243
252
|
import { useTheme } from "./components/ThemeScript/useTheme.js";
|
|
244
253
|
import { ThemeSwitch } from "./components/ThemeSwitch/ThemeSwitch.js";
|
|
245
254
|
import { TimeField } from "./components/TimeField/TimeField.js";
|
|
246
|
-
import {
|
|
255
|
+
import { timeSlots } from "./components/TimeSlotPicker/timeSlots.js";
|
|
256
|
+
import { TimeSlotPicker } from "./components/TimeSlotPicker/TimeSlotPicker.js";
|
|
247
257
|
import { TimeZoneSelect, formatOffset, timeZoneOffset } from "./components/TimeZoneSelect/TimeZoneSelect.js";
|
|
248
258
|
import { DEFAULT_TOAST_TIMEOUT, MIN_TOAST_TIMEOUT, createToastQueue, resolveToastTimeout, toast } from "./components/Toast/toast.js";
|
|
249
259
|
import { ToastQueue } from "./components/ToastQueue/ToastQueue.js";
|
|
@@ -253,6 +263,7 @@ import { TopNav } from "./components/TopNav/TopNav.js";
|
|
|
253
263
|
import { TopProgressBar, trickle } from "./components/TopProgressBar/TopProgressBar.js";
|
|
254
264
|
import { Tour } from "./components/Tour/Tour.js";
|
|
255
265
|
import { TransferList } from "./components/TransferList/TransferList.js";
|
|
266
|
+
import { TrashView } from "./components/TrashView/TrashView.js";
|
|
256
267
|
import { filterTree, nodePath } from "./components/TreeSelect/treeModel.js";
|
|
257
268
|
import { TreeSelect } from "./components/TreeSelect/TreeSelect.js";
|
|
258
269
|
import { TreeView } from "./components/TreeView/TreeView.js";
|
|
@@ -266,10 +277,11 @@ import { UrlField } from "./components/UrlField/UrlField.js";
|
|
|
266
277
|
import { UsageMeter } from "./components/UsageMeter/UsageMeter.js";
|
|
267
278
|
import { VknField } from "./components/VknField/VknField.js";
|
|
268
279
|
import { WeekPicker } from "./components/WeekPicker/WeekPicker.js";
|
|
280
|
+
import { WhatsNew } from "./components/WhatsNew/WhatsNew.js";
|
|
269
281
|
import { Wizard } from "./components/Wizard/Wizard.js";
|
|
270
282
|
import { DEFAULT_WORKING_HOURS, WEEKDAYS, dayProblem, sortRanges, validateWorkingHours } from "./components/WorkingHoursEditor/workingHours.js";
|
|
271
283
|
import { WorkingHoursEditor } from "./components/WorkingHoursEditor/WorkingHoursEditor.js";
|
|
272
284
|
import { YearPicker } from "./components/YearPicker/YearPicker.js";
|
|
273
285
|
import { ARIA_HIDDEN_INPUT_STYLE, CSP_STYLE_ATTR_DIRECTIVE, CSP_STYLE_ATTR_HASHES } from "./csp/csp.js";
|
|
274
286
|
import { LOCALES, toLocale } from "./provider/locale.js";
|
|
275
|
-
export { ARIA_HIDDEN_INPUT_STYLE, AVATAR_COLORS, Accent, ActionBar, AddressFields, AddressText, Alert, AlertDialog, Amount, AnchorNav, Announcer, AppHeader, AppShell, ArrowLink, AspectRatio, Avatar, AvatarGroup, BackLink, Badge, BankSelect, Banner, Bleed, Blockquote, BottomNav, BottomSheet, Breadcrumbs, Button, ButtonGroup, COMMON_EMAIL_DOMAINS, COMPANY_TYPES, CSP_STYLE_ATTR_DIRECTIVE, CSP_STYLE_ATTR_HASHES, Calendar, Callout, Card, CardLink, Center, CharacterCounter, ChatMessage, Checkbox, CheckboxCard, CheckboxCards, CheckboxGroup, Chip, ChipGroup, ChoiceCard, ChoiceCards, ClientOnly, CloseButton, Coachmark, Code, ColorPicker, ColorSwatchPicker, Columns, Combobox, CommandPalette, CommentThread, CompanyTypeSelect, ConfirmButton, Container, ContextMenu, ContextualHelp, CopyButton, Countdown, CountrySelect, CurrencyField, DEFAULT_MESSAGES, DEFAULT_THEME_STORAGE_KEY, DEFAULT_TIME_ZONE, DEFAULT_TOAST_TIMEOUT, DEFAULT_WORKING_HOURS, DangerZone, DateField, DatePicker, DateRangePicker, DateTime, DateTimePicker, DescriptionItem, DescriptionList, Dialog, DistrictSelect, Divider, DownloadButton, Drawer, DropdownMenu, Duration, DurationField, EMOJI_CATEGORIES, EmailField, EmailLink, EmojiPicker, EmptyState, EntityHeader, ErrorBoundary, ErrorState, Eyebrow, FavoriteToggle, FieldDescription, FieldErrorText, FieldLabel, Fieldset, FileSize, FileUpload, FilterPanel, FloatingActionButton, FocusTrap, FootnoteRef, Footnotes, Form, FormErrorSummary, FormattedNumber, FullscreenOverlay, Grid, Heading, Highlight, HoverCard, IMAGE_UPLOAD_TYPES, IYS_CHANNELS, IbanField, IbanText, IconButton, IconPicker, IdCardSerialField, ImageUpload, InfiniteList, Inline, InlineEdit, InlineMessage, InputGroup, InviteMembers, IysConsent, Kbd, KepAddressField, KeyValue, KvkkConsent, LOCALES, LanguageSwitch, Lightbox, Link, List, ListItem, Listbox, LoadingBoundary, LoadingOverlay, MAX_MARKDOWN_LENGTH, MIN_TOAST_TIMEOUT, Mark, Markdown, MaskedField, Masonry, MasterDetail, Mentions, Menu, MenuItem, MenuPopover, MenuSection, MenuSeparator, MersisField, Meter, MobileNav, MonthPicker, MultiSelect, NaceCodeSelect, NavRail, NeighborhoodSelect, NewPasswordField, NotificationBell, NotificationCenter, NumberField, OfflineIndicator, OnboardingChecklist, OtpField, PageHeader, Pagination, PasswordField, PasswordStrength, PhoneField, PhoneLink, PlateField, Popover, Portal, PostalCodeField, PrevNext, PricingTable, PrintButton, ProgressBar, ProgressCircle, PromptDialog, Prose, ProvinceSelect, QuarterPicker, RRULE_DAYS, Radio, RadioCard, RadioCards, RadioGroup, RangeCalendar, RangeSlider, Rating, RatingDisplay, ReactionPicker, ReadMore, RecurrencePicker, RelativeTime, RoleMatrix, SPACES, ScrollArea, ScrollShadow, SearchField, SearchResults, Section, SegmentedControl, SegmentedControlItem, SegmentedNav, Select, SettingsRow, SettingsSection, ShareButton, ShortcutsDialog, Show, SideNav, SignaturePad, Skeleton, SkipLink, Slider, Spacer, Spinner, SplitButton, SplitView, Stack, Stat, StatGroup, StatusDot, Steps, Sticky, Submenu, SuccessState, Surface, Switch, THEMES, THEME_CHANGE_EVENT, TR_BANKS, TR_PROVINCES, TURNSTILE_SCRIPT_URL, Tab, TabList, TabPanel, TableOfContents, Tabs, Tag, TagInput, TaxIdField, TaxOfficeSelect, TcknField, Text, TextArea, TextField, ThemeScript, ThemeSwitch, TimeField, TimeSlotPicker, TimeZoneSelect, ToastQueue, ToggleButton, ToggleGroup, ToggleGroupItem, Toolbar, ToolbarGroup, ToolbarSeparator, Tooltip, TopNav, TopProgressBar, Tour, TransferList, TreeSelect, TreeView, Truncate, TurnstileField, UIProvider, UnsavedChangesPrompt, UpdatePrompt, UploadQueue, UrlField, UsageMeter, VisuallyHidden, VknField, WEEKDAYS, WeekPicker, Wizard, WorkingHoursEditor, YearPicker, announce, avatarColorOf, avatarGroupCounts, badgeCountText, bankByCode, capitalize, characterCount, clampCrop, companyTypeName, compare, containsPersonalInfo, containsStrict, contextOf, createFormatter, createToastQueue, currentTheme, dayKey, dayProblem, defaultRangePresets, describeAccept, describeRecurrence, estimatePasswordStrength, extractRaw, fileKey, filterTree, findMentions, footnoteId, footnoteRefId, formatCalendarDate, formatCalendarDateTime, formatClock, formatCompact, formatCurrency, formatDate, formatDateRange, formatDateTime, formatDuration, formatFileSize, formatIban, formatList, formatMasked, formatMonthYear, formatNumber, formatOffset, formatPercent, formatPlate, formatRRule, formatRelativeTime, formatTime, formatTrPhone, headingSlug, highlightRanges, highlightTerms, ibanBankCode, iconLabel, initials, isAllowedProtocol, isCommonPassword, isEmailAddress, isTheme, isTrMobile, isValidIban, isValidIdCardSerial, isValidKep, isValidMersis, isValidPhone, isValidPlate, isValidTckn, isValidVkn, isoWeekOf, isoWeekRange, matchesAccept, matchesLoose, mentionQuery, messagesFor, nodePath, normalizeIban, normalizeIdCardSerial, normalizeNaceQuery, normalizeTrPhone, normalizeUrl, nthWeekdayOf, pageItems, parseMask, parseNumber, parsePlate, parseRRule, partitionFiles, provinceByCode, quarterRange, resolveGridColumns, resolveToastTimeout, safeUrl, searchContains, searchFold, searchKey, setTheme, slotCount, sortBy, sortRanges, sourceRect, splitInternational, statGroupColumns, statTrend, stepStatus, suggestEmail, tabbables, taxIdKind, template, themeScript, themeScriptHash, timeSlots, timeZoneOffset, toE164, toLocale, toLower, toUpper, toast, trickle, useFormatter, useIsClient, useLocale, useMessages, useTheme, useUnsavedChanges, useValidationMessage, validateWorkingHours, weekdayOf };
|
|
287
|
+
export { ARIA_HIDDEN_INPUT_STYLE, AVATAR_COLORS, Accent, Accordion, ActionBar, AddressFields, AddressText, Alert, AlertDialog, Amount, AnchorNav, Announcer, AppHeader, AppShell, ArrowLink, AspectRatio, Avatar, AvatarGroup, BackLink, Badge, BankSelect, Banner, Bleed, Blockquote, BottomNav, BottomSheet, Breadcrumbs, Button, ButtonGroup, COMMON_EMAIL_DOMAINS, COMPANY_TYPES, CSP_STYLE_ATTR_DIRECTIVE, CSP_STYLE_ATTR_HASHES, Calendar, Callout, Card, CardLink, Center, CharacterCounter, ChatMessage, Checkbox, CheckboxCard, CheckboxCards, CheckboxGroup, Chip, ChipGroup, ChoiceCard, ChoiceCards, ClientOnly, CloseButton, Coachmark, Code, ColorPicker, ColorSwatchPicker, Columns, Combobox, CommandPalette, CommentThread, CompanyTypeSelect, ConfirmButton, Container, ContextMenu, ContextualHelp, CopyButton, Countdown, CountrySelect, CurrencyField, DEFAULT_MESSAGES, DEFAULT_THEME_STORAGE_KEY, DEFAULT_TIME_ZONE, DEFAULT_TOAST_TIMEOUT, DEFAULT_WORKING_HOURS, DangerZone, DateField, DatePicker, DateRangePicker, DateTime, DateTimePicker, DescriptionItem, DescriptionList, Dialog, Disclosure, DistrictSelect, Divider, DownloadButton, Drawer, DropdownMenu, Duration, DurationField, EMOJI_CATEGORIES, EmailField, EmailLink, EmojiPicker, EmptyState, EntityHeader, ErrorBoundary, ErrorPage, ErrorState, Eyebrow, FavoriteToggle, FeedbackWidget, FieldDescription, FieldErrorText, FieldLabel, Fieldset, Figure, FileList, FileSize, FileUpload, FilterPanel, FloatingActionButton, FocusTrap, FootnoteRef, Footnotes, Form, FormErrorSummary, FormattedNumber, FullscreenOverlay, Grid, Heading, Highlight, HoverCard, IMAGE_UPLOAD_TYPES, IYS_CHANNELS, IbanField, IbanText, IconButton, IconPicker, IdCardSerialField, ImageUpload, InfiniteList, Inline, InlineEdit, InlineMessage, InputGroup, InviteMembers, IysConsent, Kbd, KepAddressField, KeyValue, KvkkConsent, LOCALES, LanguageSwitch, Lightbox, Link, LinkRows, List, ListItem, Listbox, LoadingBoundary, LoadingOverlay, MAX_MARKDOWN_LENGTH, MIN_TOAST_TIMEOUT, Mark, Markdown, MaskedField, Masonry, MasterDetail, Mentions, Menu, MenuItem, MenuPopover, MenuSection, MenuSeparator, MersisField, Meter, MobileNav, MonthPicker, MultiSelect, NaceCodeSelect, NavRail, NeighborhoodSelect, NewPasswordField, NotificationBell, NotificationCenter, NumberField, OfflineIndicator, OnboardingChecklist, OtpField, PageHeader, Pagination, PasswordField, PasswordStrength, PersonItem, PhoneField, PhoneLink, PlateField, Popover, Portal, PostalCodeField, PrevNext, PricingTable, PrintButton, ProgressBar, ProgressCircle, PromptDialog, Prose, ProvinceSelect, QuarterPicker, RRULE_DAYS, Radio, RadioCard, RadioCards, RadioGroup, RangeCalendar, RangeSlider, Rating, RatingDisplay, ReactionPicker, ReadMore, RecurrencePicker, RelativeTime, RoleMatrix, SPACES, ScrollArea, ScrollShadow, SearchField, SearchResults, Section, SegmentedControl, SegmentedControlItem, SegmentedNav, Select, SettingsRow, SettingsSection, ShareButton, ShortcutsDialog, Show, SideNav, SignaturePad, Skeleton, SkipLink, Slider, Spacer, Spinner, SplitButton, SplitView, Stack, Stat, StatGroup, StatusDot, Steps, Sticky, Submenu, SuccessState, Surface, Switch, THEMES, THEME_CHANGE_EVENT, TR_BANKS, TR_PROVINCES, TURNSTILE_SCRIPT_URL, Tab, TabList, TabPanel, Table, TableOfContents, Tabs, Tag, TagInput, TaxIdField, TaxOfficeSelect, TcknField, Text, TextArea, TextField, ThemeScript, ThemeSwitch, TimeField, TimeSlotPicker, TimeZoneSelect, ToastQueue, ToggleButton, ToggleGroup, ToggleGroupItem, Toolbar, ToolbarGroup, ToolbarSeparator, Tooltip, TopNav, TopProgressBar, Tour, TransferList, TrashView, TreeSelect, TreeView, Truncate, TurnstileField, UIProvider, UnsavedChangesPrompt, UpdatePrompt, UploadQueue, UrlField, UsageMeter, VisuallyHidden, VknField, WEEKDAYS, WeekPicker, WhatsNew, Wizard, WorkingHoursEditor, YearPicker, announce, avatarColorOf, avatarGroupCounts, badgeCountText, bankByCode, capitalize, characterCount, clampCrop, companyTypeName, compare, containsPersonalInfo, containsStrict, contextOf, createFormatter, createToastQueue, currentTheme, dayKey, dayProblem, defaultRangePresets, describeAccept, describeRecurrence, estimatePasswordStrength, extractRaw, fileExtension, fileKey, fileKind, filterTree, findMentions, footnoteId, footnoteRefId, formatCalendarDate, formatCalendarDateTime, formatClock, formatCompact, formatCurrency, formatDate, formatDateRange, formatDateTime, formatDuration, formatFileSize, formatIban, formatList, formatMasked, formatMonthYear, formatNumber, formatOffset, formatPercent, formatPlate, formatRRule, formatRelativeTime, formatTime, formatTrPhone, headingSlug, highlightRanges, highlightTerms, ibanBankCode, iconLabel, initials, isAllowedProtocol, isCommonPassword, isEmailAddress, isTheme, isTrMobile, isValidIban, isValidIdCardSerial, isValidKep, isValidMersis, isValidPhone, isValidPlate, isValidTckn, isValidVkn, isoWeekOf, isoWeekRange, matchesAccept, matchesLoose, mentionQuery, messagesFor, nodePath, normalizeIban, normalizeIdCardSerial, normalizeNaceQuery, normalizeTrPhone, normalizeUrl, nthWeekdayOf, pageItems, parseMask, parseNumber, parsePlate, parseRRule, partitionFiles, provinceByCode, quarterRange, resolveGridColumns, resolveToastTimeout, safeUrl, searchContains, searchFold, searchKey, setTheme, slotCount, sortBy, sortRanges, sourceRect, splitInternational, statGroupColumns, statTrend, stepStatus, suggestEmail, tabbables, taxIdKind, template, themeScript, themeScriptHash, timeSlots, timeZoneOffset, toE164, toLocale, toLower, toUpper, toast, trickle, useFormatter, useIsClient, useLocale, useMessages, useTheme, useUnsavedChanges, useValidationMessage, validateWorkingHours, weekdayOf };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-DirectionsLink-button-a5522[data-size] {
|
|
4
|
+
white-space: normal;
|
|
5
|
+
text-align: center;
|
|
6
|
+
block-size: auto;
|
|
7
|
+
max-inline-size: 100%;
|
|
8
|
+
padding-block: var(--sti-space-2);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { LatLng } from "../_internal/geo.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
export type DirectionsProvider = "osm" | "google" | "apple";
|
|
4
|
+
export type DirectionsMode = "driving" | "walking" | "cycling" | "transit";
|
|
5
|
+
export type DirectionsPlace = LatLng | string;
|
|
6
|
+
export interface DirectionsOptions {
|
|
7
|
+
/** Varış: koordinat ya da adres metni. */
|
|
8
|
+
destination: DirectionsPlace;
|
|
9
|
+
/** Çıkış: verilmezse hizmet kişinin konumunu sorar. */
|
|
10
|
+
origin?: DirectionsPlace;
|
|
11
|
+
/** Hizmet; varsayılan OpenStreetMap (hesapsız, izleyicisiz). */
|
|
12
|
+
provider?: DirectionsProvider;
|
|
13
|
+
mode?: DirectionsMode;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Yol tarifi adresi. Yalnız kişi bağlantıya basınca açılır; sayfa yüklenirken hiçbir hizmete
|
|
17
|
+
* istek gitmez. Geçersiz konum ya da boş adres için `null`. OpenStreetMap adresle tarif
|
|
18
|
+
* vermez: adres varışta arama sayfası açılır; çıkış adresi desteklenmez.
|
|
19
|
+
*/
|
|
20
|
+
export declare function directionsUrl(o: DirectionsOptions): string | null;
|
|
21
|
+
export interface DirectionsLinkProps extends DirectionsOptions {
|
|
22
|
+
/** Bağlantı metni ("Yol tarifi al"); gidilecek yeri de söylemesi için ad eklenebilir. */
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
/** `link`: ok işaretli metin bağlantısı (varsayılan); `button`: düğme görünüşlü. */
|
|
25
|
+
variant?: "link" | "button";
|
|
26
|
+
size?: "sm" | "md" | "lg";
|
|
27
|
+
className?: string;
|
|
28
|
+
id?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Yol tarifi bağlantısı: seçilen hizmette tarifi yeni sekmede açar (`noopener noreferrer`, "yeni
|
|
32
|
+
* sekmede açılır" bilgisiyle). Sunucu bileşenidir; sayfa yüklenirken üçüncü tarafa istek yapmaz.
|
|
33
|
+
* Konum geçersizse hiçbir şey çizmez.
|
|
34
|
+
*/
|
|
35
|
+
export declare function DirectionsLink({ children, variant, size, className, id, ...options }: DirectionsLinkProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Button } from "../../components/Button/Button.js";
|
|
2
|
+
import { ArrowLink } from "../../components/ArrowLink/ArrowLink.js";
|
|
3
|
+
import { CompassIcon } from "../../icons/generated/CompassIcon.js";
|
|
4
|
+
import { isLatLng } from "../_internal/geo.js";
|
|
5
|
+
import DirectionsLink_module_default from "./DirectionsLink.module.js";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
// src/maps/DirectionsLink/DirectionsLink.tsx
|
|
8
|
+
const MAX_ADDRESS = 300;
|
|
9
|
+
const isPlace = (p) => typeof p === "string" ? p.trim().length > 0 && p.length <= MAX_ADDRESS : isLatLng(p);
|
|
10
|
+
const coords = (p) => `${p.lat.toFixed(6)},${p.lng.toFixed(6)}`;
|
|
11
|
+
const text = (p) => typeof p === "string" ? p.trim() : coords(p);
|
|
12
|
+
/**
|
|
13
|
+
* Yol tarifi adresi. Yalnız kişi bağlantıya basınca açılır; sayfa yüklenirken hiçbir hizmete
|
|
14
|
+
* istek gitmez. Geçersiz konum ya da boş adres için `null`. OpenStreetMap adresle tarif
|
|
15
|
+
* vermez: adres varışta arama sayfası açılır; çıkış adresi desteklenmez.
|
|
16
|
+
*/
|
|
17
|
+
function directionsUrl(o) {
|
|
18
|
+
const { destination, origin, provider = "osm", mode = "driving" } = o;
|
|
19
|
+
if (!isPlace(destination) || origin !== void 0 && !isPlace(origin)) return null;
|
|
20
|
+
if (provider === "google") {
|
|
21
|
+
const u = new URL("https://www.google.com/maps/dir/");
|
|
22
|
+
u.searchParams.set("api", "1");
|
|
23
|
+
u.searchParams.set("destination", text(destination));
|
|
24
|
+
if (origin !== void 0) u.searchParams.set("origin", text(origin));
|
|
25
|
+
u.searchParams.set("travelmode", mode === "cycling" ? "bicycling" : mode);
|
|
26
|
+
return u.toString();
|
|
27
|
+
}
|
|
28
|
+
if (provider === "apple") {
|
|
29
|
+
const u = new URL("https://maps.apple.com/");
|
|
30
|
+
u.searchParams.set("daddr", text(destination));
|
|
31
|
+
if (origin !== void 0) u.searchParams.set("saddr", text(origin));
|
|
32
|
+
const flag = {
|
|
33
|
+
driving: "d",
|
|
34
|
+
walking: "w",
|
|
35
|
+
transit: "r",
|
|
36
|
+
cycling: void 0
|
|
37
|
+
}[mode];
|
|
38
|
+
if (flag) u.searchParams.set("dirflg", flag);
|
|
39
|
+
return u.toString();
|
|
40
|
+
}
|
|
41
|
+
if (typeof destination === "string") {
|
|
42
|
+
const u = new URL("https://www.openstreetmap.org/search");
|
|
43
|
+
u.searchParams.set("query", destination.trim());
|
|
44
|
+
return u.toString();
|
|
45
|
+
}
|
|
46
|
+
const u = new URL("https://www.openstreetmap.org/directions");
|
|
47
|
+
const engine = {
|
|
48
|
+
driving: "car",
|
|
49
|
+
transit: "car",
|
|
50
|
+
walking: "foot",
|
|
51
|
+
cycling: "bike"
|
|
52
|
+
}[mode];
|
|
53
|
+
u.searchParams.set("engine", `fossgis_osrm_${engine}`);
|
|
54
|
+
const from = origin !== void 0 && typeof origin !== "string" ? coords(origin) : "";
|
|
55
|
+
u.searchParams.set("route", `${from};${coords(destination)}`);
|
|
56
|
+
return u.toString();
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Yol tarifi bağlantısı: seçilen hizmette tarifi yeni sekmede açar (`noopener noreferrer`, "yeni
|
|
60
|
+
* sekmede açılır" bilgisiyle). Sunucu bileşenidir; sayfa yüklenirken üçüncü tarafa istek yapmaz.
|
|
61
|
+
* Konum geçersizse hiçbir şey çizmez.
|
|
62
|
+
*/
|
|
63
|
+
function DirectionsLink({ children, variant = "link", size = "md", className, id, ...options }) {
|
|
64
|
+
const href = directionsUrl(options);
|
|
65
|
+
if (!href) return null;
|
|
66
|
+
if (variant === "button") return /* @__PURE__ */ jsx(Button, {
|
|
67
|
+
id,
|
|
68
|
+
className: [DirectionsLink_module_default.button, className].filter(Boolean).join(" "),
|
|
69
|
+
href,
|
|
70
|
+
target: "_blank",
|
|
71
|
+
size,
|
|
72
|
+
iconStart: /* @__PURE__ */ jsx(CompassIcon, {}),
|
|
73
|
+
children
|
|
74
|
+
});
|
|
75
|
+
return /* @__PURE__ */ jsx(ArrowLink, {
|
|
76
|
+
id,
|
|
77
|
+
className,
|
|
78
|
+
href,
|
|
79
|
+
size,
|
|
80
|
+
external: true,
|
|
81
|
+
children
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
export { DirectionsLink, directionsUrl };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { DirectionsLink, DirectionsLinkProps, DirectionsMode, DirectionsOptions, DirectionsPlace, DirectionsProvider, directionsUrl } from "./DirectionsLink.js";
|
|
2
|
+
export { DirectionsLink, DirectionsLinkProps, DirectionsMode, DirectionsOptions, DirectionsPlace, DirectionsProvider, directionsUrl };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-LocationPicker-root-8abe0 {
|
|
4
|
+
align-content: start;
|
|
5
|
+
gap: var(--sti-space-3);
|
|
6
|
+
min-width: 0;
|
|
7
|
+
font-family: var(--sti-font-text);
|
|
8
|
+
grid-template-columns: minmax(0, 1fr);
|
|
9
|
+
display: grid;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.sti-LocationPicker-root-8abe0[data-disabled] .sti-LocationPicker-map-70218 {
|
|
13
|
+
opacity: var(--sti-opacity-disabled);
|
|
14
|
+
cursor: not-allowed;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.sti-LocationPicker-meta-45180 {
|
|
18
|
+
gap: var(--sti-space-1);
|
|
19
|
+
display: grid;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sti-LocationPicker-summary-96b90 {
|
|
23
|
+
color: var(--sti-fg-muted);
|
|
24
|
+
font-size: var(--sti-font-size-sm);
|
|
25
|
+
line-height: var(--sti-line-height-sm);
|
|
26
|
+
font-variant-numeric: tabular-nums;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.sti-LocationPicker-map-70218 {
|
|
30
|
+
min-width: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.sti-LocationPicker-coords-0124e {
|
|
34
|
+
align-items: start;
|
|
35
|
+
gap: var(--sti-space-3);
|
|
36
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
37
|
+
display: grid;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.sti-LocationPicker-actions-cae60 {
|
|
41
|
+
gap: var(--sti-space-2);
|
|
42
|
+
flex-wrap: wrap;
|
|
43
|
+
display: flex;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.sti-LocationPicker-status-d9321 {
|
|
47
|
+
color: var(--sti-fg-muted);
|
|
48
|
+
font-size: var(--sti-font-size-sm);
|
|
49
|
+
line-height: var(--sti-line-height-sm);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.sti-LocationPicker-status-d9321:empty {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.sti-LocationPicker-status-d9321[data-tone="danger"] {
|
|
57
|
+
color: var(--sti-fg-danger);
|
|
58
|
+
font-weight: var(--sti-font-weight-medium);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LatLng } from "../_internal/geo.js";
|
|
2
|
+
import { MapViewProps } from "../MapView/MapView.js";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
export interface LocationPickerProps {
|
|
5
|
+
/** Görünür etiket (zorunlu): "Mağaza konumu". */
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
/** Dışarıdan hata metni (ör. sunucudan); `isInvalid` ile birlikte gösterilir. */
|
|
9
|
+
errorMessage?: string;
|
|
10
|
+
isInvalid?: boolean;
|
|
11
|
+
showOptional?: boolean;
|
|
12
|
+
/** Seçili konum (denetimli); `null` konum seçilmemiş demektir. */
|
|
13
|
+
value?: LatLng | null;
|
|
14
|
+
defaultValue?: LatLng | null;
|
|
15
|
+
onChange?: (value: LatLng | null) => void;
|
|
16
|
+
/** Formda gönderilen ad: değer `enlem,boylam` metnidir (6 ondalık); konum yoksa gönderilmez. */
|
|
17
|
+
name?: string;
|
|
18
|
+
isRequired?: boolean;
|
|
19
|
+
isDisabled?: boolean;
|
|
20
|
+
isReadOnly?: boolean;
|
|
21
|
+
/** Harita yüksekliği; varsayılan `md`. */
|
|
22
|
+
size?: "sm" | "md" | "lg";
|
|
23
|
+
/** Konum yokken haritanın başlangıç merkezi ve düzeyi. */
|
|
24
|
+
defaultCenter?: LatLng;
|
|
25
|
+
defaultZoom?: number;
|
|
26
|
+
/** Harita izni ve karo kaynağı (`MapView` ile aynı). */
|
|
27
|
+
mapProps?: Pick<MapViewProps, "isLoaded" | "defaultLoaded" | "onLoadedChange" | "tileUrl" | "attribution">;
|
|
28
|
+
className?: string;
|
|
29
|
+
id?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Konum seçici: haritadan nokta seçme (tıklama, dokunma ya da harita odaktayken Enter), koordinatı
|
|
33
|
+
* elle girme ve cihaz konumunu kullanma. Koordinat alanları haritanın klavyeyle de kullanılabilen
|
|
34
|
+
* eşdeğeridir: harita hiç yüklenmese de konum girilebilir. Cihaz konumu yalnız düğmeye basılınca
|
|
35
|
+
* istenir ve hiçbir yere gönderilmez.
|
|
36
|
+
*/
|
|
37
|
+
export declare function LocationPicker(props: LocationPickerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useFormatter, useMessages } from "../../provider/UIProvider.js";
|
|
3
|
+
import { template } from "../../text/text.js";
|
|
4
|
+
import { AlertCircleIcon } from "../../icons/generated/AlertCircleIcon.js";
|
|
5
|
+
import { fieldStyles } from "../../components/Field/Field.js";
|
|
6
|
+
import { TextField } from "../../components/TextField/TextField.js";
|
|
7
|
+
import { Button } from "../../components/Button/Button.js";
|
|
8
|
+
import { CompassIcon } from "../../icons/generated/CompassIcon.js";
|
|
9
|
+
import { parseCoordinate, roundCoordinate } from "../_internal/geo.js";
|
|
10
|
+
import { useControllable } from "../_internal/useControllable.js";
|
|
11
|
+
import { MapMarker } from "../MapMarker/MapMarker.js";
|
|
12
|
+
import { MapView } from "../MapView/MapView.js";
|
|
13
|
+
import LocationPicker_module_default from "./LocationPicker.module.js";
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { useEffect, useId, useRef, useState } from "react";
|
|
16
|
+
// src/maps/LocationPicker/LocationPicker.tsx
|
|
17
|
+
/**
|
|
18
|
+
* Konum seçici: haritadan nokta seçme (tıklama, dokunma ya da harita odaktayken Enter), koordinatı
|
|
19
|
+
* elle girme ve cihaz konumunu kullanma. Koordinat alanları haritanın klavyeyle de kullanılabilen
|
|
20
|
+
* eşdeğeridir: harita hiç yüklenmese de konum girilebilir. Cihaz konumu yalnız düğmeye basılınca
|
|
21
|
+
* istenir ve hiçbir yere gönderilmez.
|
|
22
|
+
*/
|
|
23
|
+
function LocationPicker(props) {
|
|
24
|
+
const { label, description, errorMessage, isInvalid, showOptional, name, isRequired, isDisabled, isReadOnly, size = "md", defaultCenter, defaultZoom, mapProps, className, id } = props;
|
|
25
|
+
const messages = useMessages();
|
|
26
|
+
const format = useFormatter();
|
|
27
|
+
const labelId = useId();
|
|
28
|
+
const describedBy = useId();
|
|
29
|
+
const [value, setValue] = useControllable(props.value, props.defaultValue ?? null, props.onChange);
|
|
30
|
+
const show = (n) => format.number(n, {
|
|
31
|
+
maximumFractionDigits: 6,
|
|
32
|
+
useGrouping: false
|
|
33
|
+
});
|
|
34
|
+
const [draft, setDraft] = useState({
|
|
35
|
+
lat: value ? show(value.lat) : "",
|
|
36
|
+
lng: value ? show(value.lng) : ""
|
|
37
|
+
});
|
|
38
|
+
const [errors, setErrors] = useState({});
|
|
39
|
+
const [center, setCenter] = useState(value ?? defaultCenter);
|
|
40
|
+
const [zoom, setZoom] = useState(value ? 15 : defaultZoom);
|
|
41
|
+
const [status, setStatus] = useState(null);
|
|
42
|
+
const [locating, setLocating] = useState(false);
|
|
43
|
+
const lastEmitted = useRef(value);
|
|
44
|
+
const editable = !isDisabled && !isReadOnly;
|
|
45
|
+
useEffect(() => {
|
|
46
|
+
const prev = lastEmitted.current;
|
|
47
|
+
if (prev?.lat === value?.lat && prev?.lng === value?.lng) return;
|
|
48
|
+
lastEmitted.current = value;
|
|
49
|
+
setDraft({
|
|
50
|
+
lat: value ? show(value.lat) : "",
|
|
51
|
+
lng: value ? show(value.lng) : ""
|
|
52
|
+
});
|
|
53
|
+
setErrors({});
|
|
54
|
+
if (value) setCenter(value);
|
|
55
|
+
}, [value?.lat, value?.lng]);
|
|
56
|
+
const commit = (next, { recenter = true } = {}) => {
|
|
57
|
+
lastEmitted.current = next;
|
|
58
|
+
setValue(next);
|
|
59
|
+
setDraft({
|
|
60
|
+
lat: next ? show(next.lat) : "",
|
|
61
|
+
lng: next ? show(next.lng) : ""
|
|
62
|
+
});
|
|
63
|
+
setErrors({});
|
|
64
|
+
if (next && recenter) {
|
|
65
|
+
setCenter(next);
|
|
66
|
+
setZoom((z) => Math.max(z ?? 0, 15));
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
const picked = (p) => template(messages.locationPicked, {
|
|
70
|
+
lat: show(p.lat),
|
|
71
|
+
lng: show(p.lng)
|
|
72
|
+
});
|
|
73
|
+
const pick = (p) => {
|
|
74
|
+
if (!editable) return;
|
|
75
|
+
const next = {
|
|
76
|
+
lat: roundCoordinate(p.lat),
|
|
77
|
+
lng: roundCoordinate(p.lng)
|
|
78
|
+
};
|
|
79
|
+
commit(next, { recenter: false });
|
|
80
|
+
setStatus({
|
|
81
|
+
text: picked(next),
|
|
82
|
+
tone: "info"
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
/** Alanlardaki metni denetler; ikisi de geçerliyse değeri bildirir. */
|
|
86
|
+
const commitDraft = () => {
|
|
87
|
+
const latText = draft.lat.trim();
|
|
88
|
+
const lngText = draft.lng.trim();
|
|
89
|
+
if (!latText && !lngText) {
|
|
90
|
+
setErrors({});
|
|
91
|
+
if (value) commit(null);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
const lat = parseCoordinate(latText);
|
|
95
|
+
const lng = parseCoordinate(lngText);
|
|
96
|
+
const next = {};
|
|
97
|
+
if (!latText) next.lat = messages.errorCoordinateIncomplete;
|
|
98
|
+
else if (lat === null || Math.abs(lat) > 90) next.lat = messages.errorLatitudeRange;
|
|
99
|
+
if (!lngText) next.lng = messages.errorCoordinateIncomplete;
|
|
100
|
+
else if (lng === null || Math.abs(lng) > 180) next.lng = messages.errorLongitudeRange;
|
|
101
|
+
setErrors(next);
|
|
102
|
+
if (!next.lat && !next.lng && lat !== null && lng !== null) {
|
|
103
|
+
const rounded = {
|
|
104
|
+
lat: roundCoordinate(lat),
|
|
105
|
+
lng: roundCoordinate(lng)
|
|
106
|
+
};
|
|
107
|
+
if (value?.lat !== rounded.lat || value?.lng !== rounded.lng) commit(rounded);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
const locate = () => {
|
|
111
|
+
if (!navigator.geolocation) {
|
|
112
|
+
setStatus({
|
|
113
|
+
text: messages.locationUnavailable,
|
|
114
|
+
tone: "danger"
|
|
115
|
+
});
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
setLocating(true);
|
|
119
|
+
setStatus({
|
|
120
|
+
text: messages.locationLocating,
|
|
121
|
+
tone: "info"
|
|
122
|
+
});
|
|
123
|
+
navigator.geolocation.getCurrentPosition((pos) => {
|
|
124
|
+
setLocating(false);
|
|
125
|
+
const next = {
|
|
126
|
+
lat: roundCoordinate(pos.coords.latitude),
|
|
127
|
+
lng: roundCoordinate(pos.coords.longitude)
|
|
128
|
+
};
|
|
129
|
+
commit(next);
|
|
130
|
+
setStatus({
|
|
131
|
+
text: picked(next),
|
|
132
|
+
tone: "info"
|
|
133
|
+
});
|
|
134
|
+
}, (err) => {
|
|
135
|
+
setLocating(false);
|
|
136
|
+
setStatus({
|
|
137
|
+
text: err.code === 1 ? messages.locationDenied : messages.locationUnavailable,
|
|
138
|
+
tone: "danger"
|
|
139
|
+
});
|
|
140
|
+
}, {
|
|
141
|
+
enableHighAccuracy: false,
|
|
142
|
+
timeout: 15e3,
|
|
143
|
+
maximumAge: 6e4
|
|
144
|
+
});
|
|
145
|
+
};
|
|
146
|
+
const summary = value ? template(messages.locationSelected, {
|
|
147
|
+
lat: show(value.lat),
|
|
148
|
+
lng: show(value.lng)
|
|
149
|
+
}) : messages.locationNone;
|
|
150
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
151
|
+
id,
|
|
152
|
+
className: [LocationPicker_module_default.root, className].filter(Boolean).join(" "),
|
|
153
|
+
role: "group",
|
|
154
|
+
"aria-labelledby": labelId,
|
|
155
|
+
"aria-describedby": describedBy,
|
|
156
|
+
"data-disabled": isDisabled ? "" : void 0,
|
|
157
|
+
"data-invalid": isInvalid ? "" : void 0,
|
|
158
|
+
children: [
|
|
159
|
+
/* @__PURE__ */ jsxs("span", {
|
|
160
|
+
id: labelId,
|
|
161
|
+
className: fieldStyles.label,
|
|
162
|
+
children: [label, showOptional && !isRequired ? /* @__PURE__ */ jsxs("span", {
|
|
163
|
+
className: fieldStyles.optional,
|
|
164
|
+
children: [
|
|
165
|
+
" (",
|
|
166
|
+
messages.optional,
|
|
167
|
+
")"
|
|
168
|
+
]
|
|
169
|
+
}) : null]
|
|
170
|
+
}),
|
|
171
|
+
/* @__PURE__ */ jsxs("div", {
|
|
172
|
+
id: describedBy,
|
|
173
|
+
className: LocationPicker_module_default.meta,
|
|
174
|
+
children: [description ? /* @__PURE__ */ jsx("span", {
|
|
175
|
+
className: fieldStyles.description,
|
|
176
|
+
children: description
|
|
177
|
+
}) : null, /* @__PURE__ */ jsx("span", {
|
|
178
|
+
className: LocationPicker_module_default.summary,
|
|
179
|
+
children: summary
|
|
180
|
+
})]
|
|
181
|
+
}),
|
|
182
|
+
/* @__PURE__ */ jsx("div", {
|
|
183
|
+
className: LocationPicker_module_default.map,
|
|
184
|
+
inert: isDisabled,
|
|
185
|
+
children: /* @__PURE__ */ jsx(MapView, {
|
|
186
|
+
label: typeof label === "string" ? label : messages.mapRole,
|
|
187
|
+
size,
|
|
188
|
+
center,
|
|
189
|
+
zoom,
|
|
190
|
+
onCenterChange: setCenter,
|
|
191
|
+
onZoomChange: setZoom,
|
|
192
|
+
defaultCenter,
|
|
193
|
+
defaultZoom,
|
|
194
|
+
crosshair: editable ? "focus" : void 0,
|
|
195
|
+
onPick: editable ? pick : void 0,
|
|
196
|
+
...mapProps,
|
|
197
|
+
children: value ? /* @__PURE__ */ jsx(MapMarker, {
|
|
198
|
+
lat: value.lat,
|
|
199
|
+
lng: value.lng,
|
|
200
|
+
label: summary,
|
|
201
|
+
tone: "danger"
|
|
202
|
+
}) : null
|
|
203
|
+
})
|
|
204
|
+
}),
|
|
205
|
+
/* @__PURE__ */ jsxs("div", {
|
|
206
|
+
className: LocationPicker_module_default.coords,
|
|
207
|
+
onKeyDown: (e) => {
|
|
208
|
+
if (e.key === "Enter" && e.target instanceof HTMLInputElement) commitDraft();
|
|
209
|
+
},
|
|
210
|
+
children: [/* @__PURE__ */ jsx(TextField, {
|
|
211
|
+
label: messages.locationLatitude,
|
|
212
|
+
size: "sm",
|
|
213
|
+
inputMode: "decimal",
|
|
214
|
+
autoComplete: "off",
|
|
215
|
+
value: draft.lat,
|
|
216
|
+
onChange: (v) => setDraft((d) => ({
|
|
217
|
+
...d,
|
|
218
|
+
lat: v
|
|
219
|
+
})),
|
|
220
|
+
onBlur: commitDraft,
|
|
221
|
+
isRequired,
|
|
222
|
+
isDisabled,
|
|
223
|
+
isReadOnly,
|
|
224
|
+
isInvalid: Boolean(errors.lat),
|
|
225
|
+
errorMessage: errors.lat
|
|
226
|
+
}), /* @__PURE__ */ jsx(TextField, {
|
|
227
|
+
label: messages.locationLongitude,
|
|
228
|
+
size: "sm",
|
|
229
|
+
inputMode: "decimal",
|
|
230
|
+
autoComplete: "off",
|
|
231
|
+
value: draft.lng,
|
|
232
|
+
onChange: (v) => setDraft((d) => ({
|
|
233
|
+
...d,
|
|
234
|
+
lng: v
|
|
235
|
+
})),
|
|
236
|
+
onBlur: commitDraft,
|
|
237
|
+
isRequired,
|
|
238
|
+
isDisabled,
|
|
239
|
+
isReadOnly,
|
|
240
|
+
isInvalid: Boolean(errors.lng),
|
|
241
|
+
errorMessage: errors.lng
|
|
242
|
+
})]
|
|
243
|
+
}),
|
|
244
|
+
editable ? /* @__PURE__ */ jsxs("div", {
|
|
245
|
+
className: LocationPicker_module_default.actions,
|
|
246
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
247
|
+
size: "sm",
|
|
248
|
+
variant: "secondary",
|
|
249
|
+
iconStart: /* @__PURE__ */ jsx(CompassIcon, {}),
|
|
250
|
+
isPending: locating,
|
|
251
|
+
onPress: locate,
|
|
252
|
+
children: messages.locationUseMine
|
|
253
|
+
}), value ? /* @__PURE__ */ jsx(Button, {
|
|
254
|
+
size: "sm",
|
|
255
|
+
variant: "ghost",
|
|
256
|
+
onPress: () => commit(null),
|
|
257
|
+
children: messages.locationClear
|
|
258
|
+
}) : null]
|
|
259
|
+
}) : null,
|
|
260
|
+
/* @__PURE__ */ jsx("div", {
|
|
261
|
+
className: LocationPicker_module_default.status,
|
|
262
|
+
role: "status",
|
|
263
|
+
"data-tone": status?.tone,
|
|
264
|
+
children: status?.text
|
|
265
|
+
}),
|
|
266
|
+
isInvalid && errorMessage ? /* @__PURE__ */ jsxs("div", {
|
|
267
|
+
className: fieldStyles.error,
|
|
268
|
+
children: [/* @__PURE__ */ jsx(AlertCircleIcon, { className: fieldStyles.errorIcon }), /* @__PURE__ */ jsx("span", { children: errorMessage })]
|
|
269
|
+
}) : null,
|
|
270
|
+
name && value ? /* @__PURE__ */ jsx("input", {
|
|
271
|
+
type: "hidden",
|
|
272
|
+
name,
|
|
273
|
+
value: `${value.lat.toFixed(6)},${value.lng.toFixed(6)}`
|
|
274
|
+
}) : null
|
|
275
|
+
]
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
export { LocationPicker };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './LocationPicker.css';
|
|
2
|
+
// src/maps/LocationPicker/LocationPicker.module.css
|
|
3
|
+
var LocationPicker_module_default = {
|
|
4
|
+
"root": "sti-LocationPicker-root-8abe0",
|
|
5
|
+
"map": "sti-LocationPicker-map-70218",
|
|
6
|
+
"meta": "sti-LocationPicker-meta-45180",
|
|
7
|
+
"summary": "sti-LocationPicker-summary-96b90",
|
|
8
|
+
"coords": "sti-LocationPicker-coords-0124e",
|
|
9
|
+
"actions": "sti-LocationPicker-actions-cae60",
|
|
10
|
+
"status": "sti-LocationPicker-status-d9321"
|
|
11
|
+
};
|
|
12
|
+
export { LocationPicker_module_default as default };
|