@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,195 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-marks-mark-f750a {
|
|
4
|
+
--sti-chart-c: var(--sti-fg-accent);
|
|
5
|
+
transition-property: opacity, fill, stroke;
|
|
6
|
+
transition-duration: var(--sti-duration-fast);
|
|
7
|
+
transition-timing-function: var(--sti-ease-out);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.sti-marks-mark-f750a[data-s="1"] {
|
|
11
|
+
--sti-chart-c: var(--sti-fg-warning);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.sti-marks-mark-f750a[data-s="2"] {
|
|
15
|
+
--sti-chart-c: var(--sti-fg-success);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.sti-marks-mark-f750a[data-s="3"] {
|
|
19
|
+
--sti-chart-c: var(--sti-fg-danger);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sti-marks-mark-f750a[data-s="4"] {
|
|
23
|
+
--sti-chart-c: color-mix(in oklab, var(--sti-fg-accent) 55%, var(--sti-fg-danger));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.sti-marks-mark-f750a[data-s="5"] {
|
|
27
|
+
--sti-chart-c: var(--sti-fg);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.sti-marks-mark-f750a[data-s="6"] {
|
|
31
|
+
--sti-chart-c: color-mix(in oklab, var(--sti-fg-success) 60%, var(--sti-fg-accent));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.sti-marks-mark-f750a[data-s="7"] {
|
|
35
|
+
--sti-chart-c: var(--sti-fg-muted);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.sti-marks-mark-f750a[data-kind="line"] {
|
|
39
|
+
fill: none;
|
|
40
|
+
stroke: var(--sti-chart-c);
|
|
41
|
+
stroke-width: var(--sti-border-width-strong);
|
|
42
|
+
stroke-linecap: round;
|
|
43
|
+
stroke-linejoin: round;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.sti-marks-mark-f750a[data-kind="area"] {
|
|
47
|
+
fill: color-mix(in srgb, var(--sti-chart-c) 18%, transparent);
|
|
48
|
+
stroke: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.sti-marks-mark-f750a[data-kind="bar"], .sti-marks-mark-f750a[data-kind="slice"], .sti-marks-mark-f750a[data-kind="marker"] {
|
|
52
|
+
fill: var(--sti-chart-c);
|
|
53
|
+
stroke: var(--sti-chart-bg, var(--sti-bg-surface));
|
|
54
|
+
stroke-width: var(--sti-border-width);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.sti-marks-mark-f750a[data-kind="ring"] {
|
|
58
|
+
fill: none;
|
|
59
|
+
stroke: var(--sti-chart-c);
|
|
60
|
+
stroke-width: var(--sti-border-width-strong);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.sti-marks-mark-f750a[data-dim] {
|
|
64
|
+
opacity: .35;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.sti-marks-grid-42a94 {
|
|
68
|
+
stroke: var(--sti-border-subtle);
|
|
69
|
+
stroke-width: var(--sti-border-width);
|
|
70
|
+
fill: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.sti-marks-axis-e6805 {
|
|
74
|
+
stroke: var(--sti-border);
|
|
75
|
+
stroke-width: var(--sti-border-width);
|
|
76
|
+
fill: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.sti-marks-guide-1a15e {
|
|
80
|
+
stroke: var(--sti-border-strong);
|
|
81
|
+
stroke-width: var(--sti-border-width);
|
|
82
|
+
fill: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.sti-marks-tick-9d9fa {
|
|
86
|
+
fill: var(--sti-fg-muted);
|
|
87
|
+
font-family: var(--sti-font-numeric);
|
|
88
|
+
font-size: var(--sti-font-size-xs);
|
|
89
|
+
font-variant-numeric: tabular-nums;
|
|
90
|
+
dominant-baseline: central;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.sti-marks-tick-9d9fa[data-anchor="end"] {
|
|
94
|
+
text-anchor: end;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.sti-marks-tick-9d9fa[data-anchor="start"] {
|
|
98
|
+
text-anchor: start;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.sti-marks-tick-9d9fa[data-anchor="middle"] {
|
|
102
|
+
text-anchor: middle;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.sti-marks-tick-9d9fa[data-baseline="hanging"] {
|
|
106
|
+
dominant-baseline: hanging;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.sti-marks-label-258d4 {
|
|
110
|
+
fill: var(--sti-fg);
|
|
111
|
+
font-family: var(--sti-font-text);
|
|
112
|
+
font-size: var(--sti-font-size-xs);
|
|
113
|
+
font-variant-numeric: tabular-nums;
|
|
114
|
+
font-weight: var(--sti-font-weight-medium);
|
|
115
|
+
dominant-baseline: central;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.sti-marks-label-258d4[data-anchor="end"] {
|
|
119
|
+
text-anchor: end;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.sti-marks-label-258d4[data-anchor="start"] {
|
|
123
|
+
text-anchor: start;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.sti-marks-label-258d4[data-anchor="middle"] {
|
|
127
|
+
text-anchor: middle;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.sti-marks-swatch-cc483 {
|
|
131
|
+
width: var(--sti-space-4);
|
|
132
|
+
height: var(--sti-space-4);
|
|
133
|
+
flex: none;
|
|
134
|
+
overflow: visible;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@media (prefers-reduced-motion: reduce) {
|
|
138
|
+
.sti-marks-mark-f750a {
|
|
139
|
+
transition: none;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@media (forced-colors: active) {
|
|
144
|
+
.sti-marks-mark-f750a {
|
|
145
|
+
forced-color-adjust: none;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.sti-marks-mark-f750a[data-kind="line"], .sti-marks-mark-f750a[data-kind="ring"] {
|
|
149
|
+
stroke: canvastext;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.sti-marks-mark-f750a[data-kind="line"][data-s="1"], .sti-marks-mark-f750a[data-kind="ring"][data-s="1"] {
|
|
153
|
+
stroke-dasharray: 6 3;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.sti-marks-mark-f750a[data-kind="line"][data-s="2"], .sti-marks-mark-f750a[data-kind="ring"][data-s="2"] {
|
|
157
|
+
stroke-dasharray: 2 3;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.sti-marks-mark-f750a[data-kind="line"][data-s="3"], .sti-marks-mark-f750a[data-kind="ring"][data-s="3"] {
|
|
161
|
+
stroke-dasharray: 8 3 2 3;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.sti-marks-mark-f750a[data-kind="line"][data-s="4"], .sti-marks-mark-f750a[data-kind="ring"][data-s="4"] {
|
|
165
|
+
stroke-dasharray: 12 3;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.sti-marks-mark-f750a[data-kind="area"] {
|
|
169
|
+
fill: canvas;
|
|
170
|
+
stroke: none;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.sti-marks-mark-f750a[data-kind="bar"], .sti-marks-mark-f750a[data-kind="slice"] {
|
|
174
|
+
fill: highlight;
|
|
175
|
+
stroke: canvastext;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.sti-marks-mark-f750a[data-kind="marker"] {
|
|
179
|
+
fill: canvastext;
|
|
180
|
+
stroke: canvas;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.sti-marks-grid-42a94 {
|
|
184
|
+
stroke: graytext;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.sti-marks-axis-e6805, .sti-marks-guide-1a15e {
|
|
188
|
+
stroke: canvastext;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.sti-marks-tick-9d9fa, .sti-marks-label-258d4 {
|
|
192
|
+
fill: canvastext;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { r2 } from "../math.js";
|
|
2
|
+
import { areaPath, linePath, markerPath } from "../shapes.js";
|
|
3
|
+
import marks_module_default from "./marks.module.js";
|
|
4
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
// src/charts/_internal/marks/marks.tsx
|
|
6
|
+
/** Seri rengi 0–7; sekizden sonra başa döner. */
|
|
7
|
+
const seriesIndex = (i) => (i % 8 + 8) % 8;
|
|
8
|
+
function LineMark({ d, s, dim }) {
|
|
9
|
+
return /* @__PURE__ */ jsx("path", {
|
|
10
|
+
className: marks_module_default.mark,
|
|
11
|
+
"data-kind": "line",
|
|
12
|
+
"data-s": seriesIndex(s),
|
|
13
|
+
"data-dim": dim ? "" : void 0,
|
|
14
|
+
d
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function AreaMark({ d, s, dim }) {
|
|
18
|
+
return /* @__PURE__ */ jsx("path", {
|
|
19
|
+
className: marks_module_default.mark,
|
|
20
|
+
"data-kind": "area",
|
|
21
|
+
"data-s": seriesIndex(s),
|
|
22
|
+
"data-dim": dim ? "" : void 0,
|
|
23
|
+
d
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function BarMark({ x, y, width, height, s, dim, radius = 2 }) {
|
|
27
|
+
return /* @__PURE__ */ jsx("rect", {
|
|
28
|
+
className: marks_module_default.mark,
|
|
29
|
+
"data-kind": "bar",
|
|
30
|
+
"data-s": seriesIndex(s),
|
|
31
|
+
"data-dim": dim ? "" : void 0,
|
|
32
|
+
x: r2(x),
|
|
33
|
+
y: r2(y),
|
|
34
|
+
width: r2(Math.max(0, width)),
|
|
35
|
+
height: r2(Math.max(0, height)),
|
|
36
|
+
rx: Math.min(radius, Math.max(0, width) / 2, Math.max(0, height) / 2)
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/** Seri işareti: serinin sırasına göre daire, kare, baklava, üçgen… */
|
|
40
|
+
function Marker({ cx, cy, s, r = 3.5, dim }) {
|
|
41
|
+
return /* @__PURE__ */ jsx("path", {
|
|
42
|
+
className: marks_module_default.mark,
|
|
43
|
+
"data-kind": "marker",
|
|
44
|
+
"data-s": seriesIndex(s),
|
|
45
|
+
"data-dim": dim ? "" : void 0,
|
|
46
|
+
d: markerPath(s, cx, cy, r)
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/** Seri çizgisi (kesintili noktalarda bölünür) ve isteğe bağlı alan. */
|
|
50
|
+
function SeriesPath({ points, s, curve, dim }) {
|
|
51
|
+
const d = linePath(points, curve);
|
|
52
|
+
return d ? /* @__PURE__ */ jsx(LineMark, {
|
|
53
|
+
d,
|
|
54
|
+
s,
|
|
55
|
+
dim
|
|
56
|
+
}) : null;
|
|
57
|
+
}
|
|
58
|
+
function SeriesArea({ top, bottom, s, curve, dim }) {
|
|
59
|
+
const d = areaPath(top, bottom, curve);
|
|
60
|
+
return d ? /* @__PURE__ */ jsx(AreaMark, {
|
|
61
|
+
d,
|
|
62
|
+
s,
|
|
63
|
+
dim
|
|
64
|
+
}) : null;
|
|
65
|
+
}
|
|
66
|
+
/** Yatay kılavuz çizgileri ve sol (ya da sağ) eksen metinleri. */
|
|
67
|
+
function YTicks({ ticks, y, left, right, format, side = "left", grid = true }) {
|
|
68
|
+
return /* @__PURE__ */ jsx("g", { children: ticks.map((t) => /* @__PURE__ */ jsxs("g", { children: [grid ? /* @__PURE__ */ jsx("line", {
|
|
69
|
+
className: marks_module_default.grid,
|
|
70
|
+
x1: left,
|
|
71
|
+
x2: right,
|
|
72
|
+
y1: r2(y(t)),
|
|
73
|
+
y2: r2(y(t))
|
|
74
|
+
}) : null, /* @__PURE__ */ jsx("text", {
|
|
75
|
+
className: marks_module_default.tick,
|
|
76
|
+
"data-anchor": side === "left" ? "end" : "start",
|
|
77
|
+
x: side === "left" ? left - 8 : right + 8,
|
|
78
|
+
y: r2(y(t)),
|
|
79
|
+
children: format(t)
|
|
80
|
+
})] }, t)) });
|
|
81
|
+
}
|
|
82
|
+
/** Alt eksen metinleri; `labels` her biri için merkez konumu. */
|
|
83
|
+
function XLabels({ labels, y, anchor = "middle" }) {
|
|
84
|
+
return /* @__PURE__ */ jsx("g", { children: labels.map((l) => /* @__PURE__ */ jsx("text", {
|
|
85
|
+
className: marks_module_default.tick,
|
|
86
|
+
"data-anchor": anchor,
|
|
87
|
+
"data-baseline": "hanging",
|
|
88
|
+
x: r2(l.x),
|
|
89
|
+
y,
|
|
90
|
+
children: l.text
|
|
91
|
+
}, `${l.text}-${l.x}`)) });
|
|
92
|
+
}
|
|
93
|
+
function AxisLine({ x1, y1, x2, y2 }) {
|
|
94
|
+
return /* @__PURE__ */ jsx("line", {
|
|
95
|
+
className: marks_module_default.axis,
|
|
96
|
+
x1: r2(x1),
|
|
97
|
+
y1: r2(y1),
|
|
98
|
+
x2: r2(x2),
|
|
99
|
+
y2: r2(y2)
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function Guide({ x1, y1, x2, y2 }) {
|
|
103
|
+
return /* @__PURE__ */ jsx("line", {
|
|
104
|
+
className: marks_module_default.guide,
|
|
105
|
+
x1: r2(x1),
|
|
106
|
+
y1: r2(y1),
|
|
107
|
+
x2: r2(x2),
|
|
108
|
+
y2: r2(y2)
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/** Gösterge anahtarı: serinin çizgi, çubuk, alan ya da nokta biçimi (HTML içinde küçük SVG). */
|
|
112
|
+
function Swatch({ s, kind = "bar", dim }) {
|
|
113
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
114
|
+
className: marks_module_default.swatch,
|
|
115
|
+
viewBox: "0 0 16 16",
|
|
116
|
+
"aria-hidden": "true",
|
|
117
|
+
focusable: "false",
|
|
118
|
+
children: [kind === "line" ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", {
|
|
119
|
+
className: marks_module_default.mark,
|
|
120
|
+
"data-kind": "line",
|
|
121
|
+
"data-s": seriesIndex(s),
|
|
122
|
+
"data-dim": dim ? "" : void 0,
|
|
123
|
+
d: "M0 8H16"
|
|
124
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
125
|
+
className: marks_module_default.mark,
|
|
126
|
+
"data-kind": "marker",
|
|
127
|
+
"data-s": seriesIndex(s),
|
|
128
|
+
"data-dim": dim ? "" : void 0,
|
|
129
|
+
d: markerPath(s, 8, 8, 3.5)
|
|
130
|
+
})] }) : kind === "dot" ? /* @__PURE__ */ jsx("path", {
|
|
131
|
+
className: marks_module_default.mark,
|
|
132
|
+
"data-kind": "marker",
|
|
133
|
+
"data-s": seriesIndex(s),
|
|
134
|
+
"data-dim": dim ? "" : void 0,
|
|
135
|
+
d: markerPath(s, 8, 8, 4.5)
|
|
136
|
+
}) : /* @__PURE__ */ jsx("rect", {
|
|
137
|
+
className: marks_module_default.mark,
|
|
138
|
+
"data-kind": "bar",
|
|
139
|
+
"data-s": seriesIndex(s),
|
|
140
|
+
"data-dim": dim || kind === "area" ? "" : void 0,
|
|
141
|
+
x: "1",
|
|
142
|
+
y: "2",
|
|
143
|
+
width: "14",
|
|
144
|
+
height: "12",
|
|
145
|
+
rx: "3"
|
|
146
|
+
}), kind === "area" ? /* @__PURE__ */ jsx("path", {
|
|
147
|
+
className: marks_module_default.mark,
|
|
148
|
+
"data-kind": "line",
|
|
149
|
+
"data-s": seriesIndex(s),
|
|
150
|
+
"data-dim": dim ? "" : void 0,
|
|
151
|
+
d: "M1 2H15"
|
|
152
|
+
}) : null]
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/** Dikey kılavuz çizgileri ve alt değer ekseni metinleri (yatay çubuk grafikleri). */
|
|
156
|
+
function XTicks({ ticks, x, top, bottom, format }) {
|
|
157
|
+
return /* @__PURE__ */ jsx("g", { children: ticks.map((t) => /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("line", {
|
|
158
|
+
className: marks_module_default.grid,
|
|
159
|
+
x1: r2(x(t)),
|
|
160
|
+
x2: r2(x(t)),
|
|
161
|
+
y1: top,
|
|
162
|
+
y2: bottom
|
|
163
|
+
}), /* @__PURE__ */ jsx("text", {
|
|
164
|
+
className: marks_module_default.tick,
|
|
165
|
+
"data-anchor": "middle",
|
|
166
|
+
"data-baseline": "hanging",
|
|
167
|
+
x: r2(x(t)),
|
|
168
|
+
y: bottom + 8,
|
|
169
|
+
children: format(t)
|
|
170
|
+
})] }, t)) });
|
|
171
|
+
}
|
|
172
|
+
/** Sol kenardaki kategori adları (yatay çubuk grafikleri). */
|
|
173
|
+
function CategoryLabels({ labels, x }) {
|
|
174
|
+
return /* @__PURE__ */ jsx("g", { children: labels.map((l) => /* @__PURE__ */ jsx("text", {
|
|
175
|
+
className: marks_module_default.tick,
|
|
176
|
+
"data-anchor": "end",
|
|
177
|
+
x,
|
|
178
|
+
y: r2(l.y),
|
|
179
|
+
children: l.text
|
|
180
|
+
}, `${l.text}-${l.y}`)) });
|
|
181
|
+
}
|
|
182
|
+
/** Çubuk ucundaki ya da yığın üstündeki değer metni. */
|
|
183
|
+
function ValueLabel({ x, y, text, anchor = "middle" }) {
|
|
184
|
+
return /* @__PURE__ */ jsx("text", {
|
|
185
|
+
className: marks_module_default.label,
|
|
186
|
+
"data-anchor": anchor,
|
|
187
|
+
x: r2(x),
|
|
188
|
+
y: r2(y),
|
|
189
|
+
children: text
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
export { AreaMark, AxisLine, BarMark, CategoryLabels, Guide, LineMark, Marker, SeriesArea, SeriesPath, Swatch, ValueLabel, XLabels, XTicks, YTicks, seriesIndex };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './marks.css';
|
|
2
|
+
// src/charts/_internal/marks/marks.module.css
|
|
3
|
+
var marks_module_default = {
|
|
4
|
+
"mark": "sti-marks-mark-f750a",
|
|
5
|
+
"grid": "sti-marks-grid-42a94",
|
|
6
|
+
"axis": "sti-marks-axis-e6805",
|
|
7
|
+
"guide": "sti-marks-guide-1a15e",
|
|
8
|
+
"tick": "sti-marks-tick-9d9fa",
|
|
9
|
+
"label": "sti-marks-label-258d4",
|
|
10
|
+
"swatch": "sti-marks-swatch-cc483"
|
|
11
|
+
};
|
|
12
|
+
export { marks_module_default as default };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// src/charts/_internal/math.ts
|
|
2
|
+
/**
|
|
3
|
+
* Grafiklerin saf sayısal yardımcıları (ölçek, güzel eksen aralığı, istifleme). Dışa açılmaz.
|
|
4
|
+
* Bağımlılık yoktur: d3'ün yaptığı işin grafiklerin ihtiyaç duyduğu küçük bölümü burada yazılıdır.
|
|
5
|
+
*/
|
|
6
|
+
const clamp = (v, lo, hi) => Math.min(hi, Math.max(lo, v));
|
|
7
|
+
/** İki ondalığa yuvarlar (yol verisi kısa kalır, ölçümler tutarlı olur). */
|
|
8
|
+
const r2 = (n) => Math.round(n * 100) / 100;
|
|
9
|
+
const isNum = (v) => typeof v === "number" && Number.isFinite(v);
|
|
10
|
+
/** Boş olmayan değerlerin en küçüğü ve en büyüğü; hiç değer yoksa `[0, 1]`. */
|
|
11
|
+
function extentOf(values) {
|
|
12
|
+
let lo = Number.POSITIVE_INFINITY;
|
|
13
|
+
let hi = Number.NEGATIVE_INFINITY;
|
|
14
|
+
for (const v of values) {
|
|
15
|
+
if (!isNum(v)) continue;
|
|
16
|
+
if (v < lo) lo = v;
|
|
17
|
+
if (v > hi) hi = v;
|
|
18
|
+
}
|
|
19
|
+
return lo > hi ? [0, 1] : [lo, hi];
|
|
20
|
+
}
|
|
21
|
+
/** `[d0, d1]` aralığını `[r0, r1]` aralığına eşler; `d0 === d1` ise ortaya koyar. */
|
|
22
|
+
function linear(d0, d1, r0, r1) {
|
|
23
|
+
const span = d1 - d0;
|
|
24
|
+
return (v) => span === 0 ? (r0 + r1) / 2 : r0 + (v - d0) / span * (r1 - r0);
|
|
25
|
+
}
|
|
26
|
+
/** 1, 2, 2,5, 5 × 10ⁿ adımlarından aralığa uyan "güzel" adım. */
|
|
27
|
+
function niceStep(range, count) {
|
|
28
|
+
const raw = range / Math.max(1, count);
|
|
29
|
+
const pow = 10 ** Math.floor(Math.log10(raw));
|
|
30
|
+
const f = raw / pow;
|
|
31
|
+
return (f <= 1 ? 1 : f <= 2 ? 2 : f <= 2.5 ? 2.5 : f <= 5 ? 5 : 10) * pow;
|
|
32
|
+
}
|
|
33
|
+
/** Güzel sınırlı eksen: `[min, max]` kapsanır, işaretler adımın katlarıdır. */
|
|
34
|
+
function niceScale(min, max, count = 5) {
|
|
35
|
+
let lo = min;
|
|
36
|
+
let hi = max;
|
|
37
|
+
if (lo === hi) {
|
|
38
|
+
if (lo === 0) hi = 1;
|
|
39
|
+
else {
|
|
40
|
+
const pad = Math.abs(lo) * .1 || 1;
|
|
41
|
+
lo -= pad;
|
|
42
|
+
hi += pad;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const step = niceStep(hi - lo, count);
|
|
46
|
+
const nlo = Math.floor(lo / step + 1e-9) * step;
|
|
47
|
+
const nhi = Math.ceil(hi / step - 1e-9) * step;
|
|
48
|
+
const ticks = [];
|
|
49
|
+
const n = Math.round((nhi - nlo) / step);
|
|
50
|
+
const digits = Math.max(0, 2 - Math.floor(Math.log10(step)));
|
|
51
|
+
for (let i = 0; i <= n; i++) ticks.push(Number((nlo + i * step).toFixed(digits)));
|
|
52
|
+
return {
|
|
53
|
+
min: ticks[0] ?? nlo,
|
|
54
|
+
max: ticks[ticks.length - 1] ?? nhi,
|
|
55
|
+
step,
|
|
56
|
+
ticks
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
/** `n` eşit band; `inner` bandın boşluk oranı (0–1). */
|
|
60
|
+
function bandScale(n, r0, r1, inner = .2) {
|
|
61
|
+
const step = n === 0 ? 0 : (r1 - r0) / n;
|
|
62
|
+
const width = step * (1 - inner);
|
|
63
|
+
const offset = (step - width) / 2;
|
|
64
|
+
return {
|
|
65
|
+
start: (i) => r0 + i * step + offset,
|
|
66
|
+
center: (i) => r0 + i * step + step / 2,
|
|
67
|
+
width,
|
|
68
|
+
step
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
/** Konumdaki bandın sırası (işaretçi konumundan); band yoksa -1. */
|
|
72
|
+
function bandIndexAt(pos, n, r0, r1) {
|
|
73
|
+
if (n === 0) return -1;
|
|
74
|
+
const step = (r1 - r0) / n;
|
|
75
|
+
return clamp(Math.floor((pos - r0) / step), 0, n - 1);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Seri değerlerini kategori başına üst üste dizer. Eksik değer (`null`) sıfır yükseklik sayılır ama
|
|
79
|
+
* `null` olarak kalır (çizgi o noktada kesilir). `normalize` her kategoriyi 0–1'e (yüzde 100) çeker.
|
|
80
|
+
* Negatif değerler istife girmez (sıfır sayılır).
|
|
81
|
+
*/
|
|
82
|
+
function stackSeries(data, normalize = false) {
|
|
83
|
+
const n = Math.max(0, ...data.map((s) => s.length));
|
|
84
|
+
const totals = Array.from({ length: n }, (_, i) => data.reduce((sum, s) => sum + (isNum(s[i]) ? Math.max(0, s[i]) : 0), 0));
|
|
85
|
+
const lower = data.map(() => Array(n).fill(null));
|
|
86
|
+
const upper = data.map(() => Array(n).fill(null));
|
|
87
|
+
for (let i = 0; i < n; i++) {
|
|
88
|
+
let acc = 0;
|
|
89
|
+
const total = totals[i] ?? 0;
|
|
90
|
+
data.forEach((s, k) => {
|
|
91
|
+
const raw = s[i];
|
|
92
|
+
const v = isNum(raw) ? Math.max(0, raw) : 0;
|
|
93
|
+
const scaled = normalize ? total === 0 ? 0 : v / total : v;
|
|
94
|
+
lower[k][i] = isNum(raw) ? acc : null;
|
|
95
|
+
acc += scaled;
|
|
96
|
+
upper[k][i] = isNum(raw) ? acc : null;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
lower,
|
|
101
|
+
upper,
|
|
102
|
+
totals
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
/** Metnin yaklaşık genişliği (sunucuda ölçülemediği için yerleşimde kullanılır). */
|
|
106
|
+
const textWidth = (text, px = 12) => text.length * px * .6;
|
|
107
|
+
export { bandIndexAt, bandScale, clamp, extentOf, isNum, linear, niceScale, niceStep, r2, stackSeries, textWidth };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Curve = "linear" | "monotone" | "step";
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { r2 } from "./math.js";
|
|
2
|
+
// src/charts/_internal/shapes.ts
|
|
3
|
+
/** Çizgi, alan, yay ve işaret biçimlerinin SVG yol (`d`) üreticileri. Dışa açılmaz. */
|
|
4
|
+
/** Fritsch–Carlson tekdüze kübik eğri teğetleri. */
|
|
5
|
+
function monotoneTangents(pts) {
|
|
6
|
+
const n = pts.length;
|
|
7
|
+
const m = [];
|
|
8
|
+
for (let i = 0; i < n - 1; i++) {
|
|
9
|
+
const a = pts[i];
|
|
10
|
+
const b = pts[i + 1];
|
|
11
|
+
m.push(b.x === a.x ? 0 : (b.y - a.y) / (b.x - a.x));
|
|
12
|
+
}
|
|
13
|
+
const t = [m[0] ?? 0];
|
|
14
|
+
for (let i = 1; i < n - 1; i++) {
|
|
15
|
+
const m0 = m[i - 1];
|
|
16
|
+
const m1 = m[i];
|
|
17
|
+
t.push(m0 * m1 <= 0 ? 0 : (m0 + m1) / 2);
|
|
18
|
+
}
|
|
19
|
+
t.push(m[n - 2] ?? 0);
|
|
20
|
+
for (let i = 0; i < n - 1; i++) {
|
|
21
|
+
const mi = m[i];
|
|
22
|
+
if (mi === 0) {
|
|
23
|
+
t[i] = 0;
|
|
24
|
+
t[i + 1] = 0;
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
const a = t[i] / mi;
|
|
28
|
+
const b = t[i + 1] / mi;
|
|
29
|
+
const s = a * a + b * b;
|
|
30
|
+
if (s > 9) {
|
|
31
|
+
const k = 3 / Math.sqrt(s);
|
|
32
|
+
t[i] = k * a * mi;
|
|
33
|
+
t[i + 1] = k * b * mi;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return t;
|
|
37
|
+
}
|
|
38
|
+
/** Aralıksız noktaların yolu; `move` false ise `M` yerine `L` ile başlar (alan birleştirme). */
|
|
39
|
+
function run(pts, curve, move) {
|
|
40
|
+
const first = pts[0];
|
|
41
|
+
if (!first) return "";
|
|
42
|
+
let d = `${move ? "M" : "L"}${r2(first.x)} ${r2(first.y)}`;
|
|
43
|
+
if (pts.length === 1) return d;
|
|
44
|
+
if (curve === "monotone" && pts.length > 2) {
|
|
45
|
+
const t = monotoneTangents(pts);
|
|
46
|
+
for (let i = 0; i < pts.length - 1; i++) {
|
|
47
|
+
const a = pts[i];
|
|
48
|
+
const b = pts[i + 1];
|
|
49
|
+
const w = (b.x - a.x) / 3;
|
|
50
|
+
const ya = a.y + w * t[i];
|
|
51
|
+
const yb = b.y - w * t[i + 1];
|
|
52
|
+
d += `C${r2(a.x + w)} ${r2(ya)} ${r2(b.x - w)} ${r2(yb)} ${r2(b.x)} ${r2(b.y)}`;
|
|
53
|
+
}
|
|
54
|
+
return d;
|
|
55
|
+
}
|
|
56
|
+
for (let i = 1; i < pts.length; i++) {
|
|
57
|
+
const p = pts[i];
|
|
58
|
+
const prev = pts[i - 1];
|
|
59
|
+
if (curve === "step") {
|
|
60
|
+
const mid = r2((prev.x + p.x) / 2);
|
|
61
|
+
d += `L${mid} ${r2(prev.y)}L${mid} ${r2(p.y)}`;
|
|
62
|
+
}
|
|
63
|
+
d += `L${r2(p.x)} ${r2(p.y)}`;
|
|
64
|
+
}
|
|
65
|
+
return d;
|
|
66
|
+
}
|
|
67
|
+
/** Boş (`null`) noktalarda kesilen çizgi yolu. */
|
|
68
|
+
function linePath(points, curve = "linear") {
|
|
69
|
+
let d = "";
|
|
70
|
+
let seg = [];
|
|
71
|
+
const flush = () => {
|
|
72
|
+
if (seg.length) d += run(seg, curve, true);
|
|
73
|
+
seg = [];
|
|
74
|
+
};
|
|
75
|
+
for (const p of points) if (p) seg.push(p);
|
|
76
|
+
else flush();
|
|
77
|
+
flush();
|
|
78
|
+
return d;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Alan yolu: üst çizgi ile alt çizgi (ya da düz taban) arası; boş noktalarda parçalara bölünür.
|
|
82
|
+
* Alt çizgi ters yönde, aynı eğriyle geri döner.
|
|
83
|
+
*/
|
|
84
|
+
function areaPath(top, bottom, curve = "linear") {
|
|
85
|
+
const segs = [];
|
|
86
|
+
let cur = null;
|
|
87
|
+
top.forEach((p, i) => {
|
|
88
|
+
const b = typeof bottom === "number" ? p ? {
|
|
89
|
+
x: p.x,
|
|
90
|
+
y: bottom
|
|
91
|
+
} : null : bottom[i] ?? null;
|
|
92
|
+
if (p && b) {
|
|
93
|
+
if (!cur) {
|
|
94
|
+
cur = {
|
|
95
|
+
top: [],
|
|
96
|
+
bot: []
|
|
97
|
+
};
|
|
98
|
+
segs.push(cur);
|
|
99
|
+
}
|
|
100
|
+
cur.top.push(p);
|
|
101
|
+
cur.bot.push(b);
|
|
102
|
+
} else cur = null;
|
|
103
|
+
});
|
|
104
|
+
return segs.map((s) => `${run(s.top, curve, true)}${run([...s.bot].reverse(), curve, false)}Z`).join("");
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Seri işareti biçimleri: daire, kare, baklava, üçgen, ters üçgen, artı. Seri yalnız renkle değil
|
|
108
|
+
* biçimle de ayırt edilir (WCAG 1.4.1). `i` serinin sırası; altıdan sonra başa döner.
|
|
109
|
+
*/
|
|
110
|
+
function markerPath(i, cx, cy, r) {
|
|
111
|
+
const x = r2(cx);
|
|
112
|
+
const y = r2(cy);
|
|
113
|
+
const c = (n) => r2(n);
|
|
114
|
+
switch ((i % 6 + 6) % 6) {
|
|
115
|
+
case 0: return `M${c(cx - r)} ${y}a${r} ${r} 0 1 0 ${r * 2} 0a${r} ${r} 0 1 0 ${-r * 2} 0Z`;
|
|
116
|
+
case 1: return `M${c(cx - r)} ${c(cy - r)}h${r * 2}v${r * 2}h${-r * 2}Z`;
|
|
117
|
+
case 2: return `M${x} ${c(cy - r * 1.3)}L${c(cx + r * 1.3)} ${y}L${x} ${c(cy + r * 1.3)}L${c(cx - r * 1.3)} ${y}Z`;
|
|
118
|
+
case 3: return `M${x} ${c(cy - r * 1.2)}L${c(cx + r * 1.15)} ${c(cy + r)}L${c(cx - r * 1.15)} ${c(cy + r)}Z`;
|
|
119
|
+
case 4: return `M${x} ${c(cy + r * 1.2)}L${c(cx + r * 1.15)} ${c(cy - r)}L${c(cx - r * 1.15)} ${c(cy - r)}Z`;
|
|
120
|
+
default: {
|
|
121
|
+
const k = c(r * .42);
|
|
122
|
+
const e = c(r);
|
|
123
|
+
return `M${c(cx - k)} ${c(cy - e)}h${k * 2}v${c(e - k)}h${c(e - k)}v${k * 2}h${c(k - e)}v${c(e - k)}h${-k * 2}v${c(k - e)}h${c(k - e)}v${-k * 2}h${c(e - k)}Z`;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
export { areaPath, linePath, markerPath };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ChartLegend, ChartLegendItem, ChartLegendProps } from "./ChartLegend/ChartLegend.js";
|
|
2
|
+
import { ChartTooltip, ChartTooltipItem, ChartTooltipProps } from "./ChartTooltip/ChartTooltip.js";
|
|
3
|
+
import { ChartValueFormat } from "./_internal/format.js";
|
|
4
|
+
import { ChartTable, ChartTableColumn, ChartTableProps, ChartTableRow } from "./ChartTable/ChartTable.js";
|
|
5
|
+
import { ChartSeries } from "./_internal/category.js";
|
|
6
|
+
import { AreaChart, AreaChartProps } from "./AreaChart/AreaChart.js";
|
|
7
|
+
import "./AreaChart/index.js";
|
|
8
|
+
import { BarSeries } from "./_internal/Bars.js";
|
|
9
|
+
import { BarChart, BarChartProps } from "./BarChart/BarChart.js";
|
|
10
|
+
import "./BarChart/index.js";
|
|
11
|
+
import "./ChartLegend/index.js";
|
|
12
|
+
import "./ChartTable/index.js";
|
|
13
|
+
import "./ChartTooltip/index.js";
|
|
14
|
+
import { ComboChart, ComboChartProps } from "./ComboChart/ComboChart.js";
|
|
15
|
+
import "./ComboChart/index.js";
|
|
16
|
+
import { LineChart, LineChartProps } from "./LineChart/LineChart.js";
|
|
17
|
+
import "./LineChart/index.js";
|
|
18
|
+
import { StackedBarChart, StackedBarChartProps } from "./StackedBarChart/StackedBarChart.js";
|
|
19
|
+
import "./StackedBarChart/index.js";
|
|
20
|
+
export { AreaChart, AreaChartProps, BarChart, BarChartProps, ChartLegend, ChartLegendItem, ChartLegendProps, type ChartSeries, ChartTable, ChartTableColumn, ChartTableProps, ChartTableRow, ChartTooltip, ChartTooltipItem, ChartTooltipProps, type ChartValueFormat, ComboChart, ComboChartProps, type BarSeries as ComboSeries, LineChart, LineChartProps, StackedBarChart, StackedBarChartProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChartLegend } from "./ChartLegend/ChartLegend.js";
|
|
2
|
+
import { ChartTable } from "./ChartTable/ChartTable.js";
|
|
3
|
+
import { ChartTooltip } from "./ChartTooltip/ChartTooltip.js";
|
|
4
|
+
import { AreaChart } from "./AreaChart/AreaChart.js";
|
|
5
|
+
import { BarChart } from "./BarChart/BarChart.js";
|
|
6
|
+
import { ComboChart } from "./ComboChart/ComboChart.js";
|
|
7
|
+
import { LineChart } from "./LineChart/LineChart.js";
|
|
8
|
+
import { StackedBarChart } from "./StackedBarChart/StackedBarChart.js";
|
|
9
|
+
export { AreaChart, BarChart, ChartLegend, ChartTable, ChartTooltip, ComboChart, LineChart, StackedBarChart };
|