@stisocial/ui 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (535) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +25 -0
  3. package/dist/agency/FacebookPostPreview/FacebookPostPreview.css +73 -0
  4. package/dist/agency/FacebookPostPreview/FacebookPostPreview.d.ts +27 -0
  5. package/dist/agency/FacebookPostPreview/FacebookPostPreview.js +80 -0
  6. package/dist/agency/FacebookPostPreview/FacebookPostPreview.module.js +15 -0
  7. package/dist/agency/FacebookPostPreview/index.d.ts +2 -0
  8. package/dist/agency/InstagramPostPreview/InstagramPostPreview.css +84 -0
  9. package/dist/agency/InstagramPostPreview/InstagramPostPreview.d.ts +23 -0
  10. package/dist/agency/InstagramPostPreview/InstagramPostPreview.js +80 -0
  11. package/dist/agency/InstagramPostPreview/InstagramPostPreview.module.js +17 -0
  12. package/dist/agency/InstagramPostPreview/index.d.ts +2 -0
  13. package/dist/agency/InstagramReelPreview/InstagramReelPreview.css +84 -0
  14. package/dist/agency/InstagramReelPreview/InstagramReelPreview.d.ts +24 -0
  15. package/dist/agency/InstagramReelPreview/InstagramReelPreview.js +88 -0
  16. package/dist/agency/InstagramReelPreview/InstagramReelPreview.module.js +13 -0
  17. package/dist/agency/InstagramReelPreview/index.d.ts +2 -0
  18. package/dist/agency/InstagramStoryPreview/InstagramStoryPreview.css +105 -0
  19. package/dist/agency/InstagramStoryPreview/InstagramStoryPreview.d.ts +23 -0
  20. package/dist/agency/InstagramStoryPreview/InstagramStoryPreview.js +59 -0
  21. package/dist/agency/InstagramStoryPreview/InstagramStoryPreview.module.js +14 -0
  22. package/dist/agency/InstagramStoryPreview/index.d.ts +2 -0
  23. package/dist/agency/LinkedInPostPreview/LinkedInPostPreview.css +83 -0
  24. package/dist/agency/LinkedInPostPreview/LinkedInPostPreview.d.ts +30 -0
  25. package/dist/agency/LinkedInPostPreview/LinkedInPostPreview.js +99 -0
  26. package/dist/agency/LinkedInPostPreview/LinkedInPostPreview.module.js +16 -0
  27. package/dist/agency/LinkedInPostPreview/index.d.ts +2 -0
  28. package/dist/agency/PinterestPinPreview/PinterestPinPreview.css +96 -0
  29. package/dist/agency/PinterestPinPreview/PinterestPinPreview.d.ts +23 -0
  30. package/dist/agency/PinterestPinPreview/PinterestPinPreview.js +57 -0
  31. package/dist/agency/PinterestPinPreview/PinterestPinPreview.module.js +15 -0
  32. package/dist/agency/PinterestPinPreview/index.d.ts +2 -0
  33. package/dist/agency/ThreadsPostPreview/ThreadsPostPreview.css +101 -0
  34. package/dist/agency/ThreadsPostPreview/ThreadsPostPreview.d.ts +19 -0
  35. package/dist/agency/ThreadsPostPreview/ThreadsPostPreview.js +82 -0
  36. package/dist/agency/ThreadsPostPreview/ThreadsPostPreview.module.js +17 -0
  37. package/dist/agency/ThreadsPostPreview/index.d.ts +2 -0
  38. package/dist/agency/TikTokPreview/TikTokPreview.css +84 -0
  39. package/dist/agency/TikTokPreview/TikTokPreview.d.ts +25 -0
  40. package/dist/agency/TikTokPreview/TikTokPreview.js +95 -0
  41. package/dist/agency/TikTokPreview/TikTokPreview.module.js +13 -0
  42. package/dist/agency/TikTokPreview/index.d.ts +2 -0
  43. package/dist/agency/XPostPreview/XPostPreview.css +89 -0
  44. package/dist/agency/XPostPreview/XPostPreview.d.ts +20 -0
  45. package/dist/agency/XPostPreview/XPostPreview.js +91 -0
  46. package/dist/agency/XPostPreview/XPostPreview.module.js +16 -0
  47. package/dist/agency/XPostPreview/index.d.ts +2 -0
  48. package/dist/agency/YouTubeThumbnailPreview/YouTubeThumbnailPreview.css +55 -0
  49. package/dist/agency/YouTubeThumbnailPreview/YouTubeThumbnailPreview.d.ts +20 -0
  50. package/dist/agency/YouTubeThumbnailPreview/YouTubeThumbnailPreview.js +49 -0
  51. package/dist/agency/YouTubeThumbnailPreview/YouTubeThumbnailPreview.module.js +13 -0
  52. package/dist/agency/YouTubeThumbnailPreview/index.d.ts +2 -0
  53. package/dist/agency/_shared/Preview.css +226 -0
  54. package/dist/agency/_shared/Preview.d.ts +27 -0
  55. package/dist/agency/_shared/Preview.js +117 -0
  56. package/dist/agency/_shared/Preview.module.js +21 -0
  57. package/dist/agency/_shared/platforms.d.ts +24 -0
  58. package/dist/agency/_shared/platforms.js +109 -0
  59. package/dist/agency/index.d.ts +23 -0
  60. package/dist/agency/index.js +12 -0
  61. package/dist/ai/AiDisclosure/AiDisclosure.css +99 -0
  62. package/dist/ai/AiDisclosure/AiDisclosure.d.ts +28 -0
  63. package/dist/ai/AiDisclosure/AiDisclosure.js +52 -0
  64. package/dist/ai/AiDisclosure/AiDisclosure.module.js +10 -0
  65. package/dist/ai/AiDisclosure/index.d.ts +2 -0
  66. package/dist/ai/AttachmentChip/AttachmentChip.css +144 -0
  67. package/dist/ai/AttachmentChip/AttachmentChip.d.ts +40 -0
  68. package/dist/ai/AttachmentChip/AttachmentChip.js +140 -0
  69. package/dist/ai/AttachmentChip/AttachmentChip.module.js +13 -0
  70. package/dist/ai/AttachmentChip/index.d.ts +2 -0
  71. package/dist/ai/ChatThread/ChatThread.css +66 -0
  72. package/dist/ai/ChatThread/ChatThread.d.ts +20 -0
  73. package/dist/ai/ChatThread/ChatThread.js +87 -0
  74. package/dist/ai/ChatThread/ChatThread.module.js +10 -0
  75. package/dist/ai/ChatThread/ChatThreadMessage.css +80 -0
  76. package/dist/ai/ChatThread/ChatThreadMessage.d.ts +23 -0
  77. package/dist/ai/ChatThread/ChatThreadMessage.js +41 -0
  78. package/dist/ai/ChatThread/ChatThreadMessage.module.js +10 -0
  79. package/dist/ai/ChatThread/index.d.ts +3 -0
  80. package/dist/ai/ConversationList/ConversationList.css +175 -0
  81. package/dist/ai/ConversationList/ConversationList.d.ts +33 -0
  82. package/dist/ai/ConversationList/ConversationList.js +133 -0
  83. package/dist/ai/ConversationList/ConversationList.module.js +18 -0
  84. package/dist/ai/ConversationList/groups.d.ts +23 -0
  85. package/dist/ai/ConversationList/groups.js +47 -0
  86. package/dist/ai/MessageActions/MessageActions.css +9 -0
  87. package/dist/ai/MessageActions/MessageActions.d.ts +33 -0
  88. package/dist/ai/MessageActions/MessageActions.js +89 -0
  89. package/dist/ai/MessageActions/MessageActions.module.js +4 -0
  90. package/dist/ai/MessageActions/index.d.ts +2 -0
  91. package/dist/ai/ModelSelect/ModelSelect.css +7 -0
  92. package/dist/ai/ModelSelect/ModelSelect.d.ts +38 -0
  93. package/dist/ai/ModelSelect/ModelSelect.js +41 -0
  94. package/dist/ai/ModelSelect/ModelSelect.module.js +4 -0
  95. package/dist/ai/ModelSelect/index.d.ts +2 -0
  96. package/dist/ai/PromptInput/PromptInput.css +176 -0
  97. package/dist/ai/PromptInput/PromptInput.d.ts +54 -0
  98. package/dist/ai/PromptInput/PromptInput.js +199 -0
  99. package/dist/ai/PromptInput/PromptInput.module.js +15 -0
  100. package/dist/ai/PromptInput/index.d.ts +2 -0
  101. package/dist/ai/SourceList/SourceList.css +226 -0
  102. package/dist/ai/SourceList/SourceList.d.ts +36 -0
  103. package/dist/ai/SourceList/SourceList.js +102 -0
  104. package/dist/ai/SourceList/SourceList.module.js +17 -0
  105. package/dist/ai/StreamingText/StreamingText.css +69 -0
  106. package/dist/ai/StreamingText/StreamingText.d.ts +33 -0
  107. package/dist/ai/StreamingText/StreamingText.js +98 -0
  108. package/dist/ai/StreamingText/StreamingText.module.js +9 -0
  109. package/dist/ai/SuggestedPrompts/SuggestedPrompts.css +198 -0
  110. package/dist/ai/SuggestedPrompts/SuggestedPrompts.d.ts +35 -0
  111. package/dist/ai/SuggestedPrompts/SuggestedPrompts.js +54 -0
  112. package/dist/ai/SuggestedPrompts/SuggestedPrompts.module.js +14 -0
  113. package/dist/ai/SuggestedPrompts/index.d.ts +2 -0
  114. package/dist/ai/ThinkingIndicator/ThinkingIndicator.css +83 -0
  115. package/dist/ai/ThinkingIndicator/ThinkingIndicator.d.ts +16 -0
  116. package/dist/ai/ThinkingIndicator/ThinkingIndicator.js +47 -0
  117. package/dist/ai/ThinkingIndicator/ThinkingIndicator.module.js +10 -0
  118. package/dist/ai/ToolCallCard/ToolCallCard.css +249 -0
  119. package/dist/ai/ToolCallCard/ToolCallCard.d.ts +39 -0
  120. package/dist/ai/ToolCallCard/ToolCallCard.js +157 -0
  121. package/dist/ai/ToolCallCard/ToolCallCard.module.js +22 -0
  122. package/dist/ai/ToolCallCard/index.d.ts +2 -0
  123. package/dist/ai/_internal/glyphs.js +45 -0
  124. package/dist/ai/index.d.ts +23 -0
  125. package/dist/ai/index.js +15 -0
  126. package/dist/charts/AreaChart/AreaChart.css +9 -0
  127. package/dist/charts/AreaChart/AreaChart.d.ts +13 -0
  128. package/dist/charts/AreaChart/AreaChart.js +19 -0
  129. package/dist/charts/AreaChart/AreaChart.module.js +4 -0
  130. package/dist/charts/AreaChart/index.d.ts +2 -0
  131. package/dist/charts/BarChart/BarChart.css +9 -0
  132. package/dist/charts/BarChart/BarChart.d.ts +17 -0
  133. package/dist/charts/BarChart/BarChart.js +21 -0
  134. package/dist/charts/BarChart/BarChart.module.js +4 -0
  135. package/dist/charts/BarChart/index.d.ts +2 -0
  136. package/dist/charts/ChartLegend/ChartLegend.css +110 -0
  137. package/dist/charts/ChartLegend/ChartLegend.d.ts +36 -0
  138. package/dist/charts/ChartLegend/ChartLegend.js +55 -0
  139. package/dist/charts/ChartLegend/ChartLegend.module.js +11 -0
  140. package/dist/charts/ChartLegend/index.d.ts +2 -0
  141. package/dist/charts/ChartTable/ChartTable.css +109 -0
  142. package/dist/charts/ChartTable/ChartTable.d.ts +43 -0
  143. package/dist/charts/ChartTable/ChartTable.js +60 -0
  144. package/dist/charts/ChartTable/ChartTable.module.js +12 -0
  145. package/dist/charts/ChartTable/index.d.ts +2 -0
  146. package/dist/charts/ChartTooltip/ChartTooltip.css +77 -0
  147. package/dist/charts/ChartTooltip/ChartTooltip.d.ts +29 -0
  148. package/dist/charts/ChartTooltip/ChartTooltip.js +48 -0
  149. package/dist/charts/ChartTooltip/ChartTooltip.module.js +12 -0
  150. package/dist/charts/ChartTooltip/index.d.ts +2 -0
  151. package/dist/charts/ComboChart/ComboChart.css +9 -0
  152. package/dist/charts/ComboChart/ComboChart.d.ts +21 -0
  153. package/dist/charts/ComboChart/ComboChart.js +19 -0
  154. package/dist/charts/ComboChart/ComboChart.module.js +4 -0
  155. package/dist/charts/ComboChart/index.d.ts +3 -0
  156. package/dist/charts/LineChart/LineChart.css +9 -0
  157. package/dist/charts/LineChart/LineChart.d.ts +13 -0
  158. package/dist/charts/LineChart/LineChart.js +19 -0
  159. package/dist/charts/LineChart/LineChart.module.js +4 -0
  160. package/dist/charts/LineChart/index.d.ts +2 -0
  161. package/dist/charts/StackedBarChart/StackedBarChart.css +9 -0
  162. package/dist/charts/StackedBarChart/StackedBarChart.d.ts +17 -0
  163. package/dist/charts/StackedBarChart/StackedBarChart.js +21 -0
  164. package/dist/charts/StackedBarChart/StackedBarChart.module.js +4 -0
  165. package/dist/charts/StackedBarChart/index.d.ts +2 -0
  166. package/dist/charts/_internal/Bars.d.ts +31 -0
  167. package/dist/charts/_internal/Bars.js +295 -0
  168. package/dist/charts/_internal/LineArea.d.ts +32 -0
  169. package/dist/charts/_internal/LineArea.js +150 -0
  170. package/dist/charts/_internal/category.d.ts +19 -0
  171. package/dist/charts/_internal/category.js +139 -0
  172. package/dist/charts/_internal/format.d.ts +14 -0
  173. package/dist/charts/_internal/format.js +41 -0
  174. package/dist/charts/_internal/frame/ChartFrame.css +113 -0
  175. package/dist/charts/_internal/frame/ChartFrame.d.ts +3 -0
  176. package/dist/charts/_internal/frame/ChartFrame.js +217 -0
  177. package/dist/charts/_internal/frame/ChartFrame.module.js +17 -0
  178. package/dist/charts/_internal/marks/marks.css +195 -0
  179. package/dist/charts/_internal/marks/marks.js +192 -0
  180. package/dist/charts/_internal/marks/marks.module.js +12 -0
  181. package/dist/charts/_internal/math.js +107 -0
  182. package/dist/charts/_internal/shapes.d.ts +1 -0
  183. package/dist/charts/_internal/shapes.js +127 -0
  184. package/dist/charts/index.d.ts +20 -0
  185. package/dist/charts/index.js +9 -0
  186. package/dist/commerce/AddToCartButton/AddToCartButton.css +54 -0
  187. package/dist/commerce/AddToCartButton/AddToCartButton.d.ts +42 -0
  188. package/dist/commerce/AddToCartButton/AddToCartButton.js +94 -0
  189. package/dist/commerce/AddToCartButton/AddToCartButton.module.js +10 -0
  190. package/dist/commerce/AddToCartButton/index.d.ts +2 -0
  191. package/dist/commerce/PriceDisplay/PriceDisplay.css +77 -0
  192. package/dist/commerce/PriceDisplay/PriceDisplay.d.ts +35 -0
  193. package/dist/commerce/PriceDisplay/PriceDisplay.js +60 -0
  194. package/dist/commerce/PriceDisplay/PriceDisplay.module.js +10 -0
  195. package/dist/commerce/QuantityStepper/QuantityStepper.css +108 -0
  196. package/dist/commerce/QuantityStepper/QuantityStepper.d.ts +32 -0
  197. package/dist/commerce/QuantityStepper/QuantityStepper.js +86 -0
  198. package/dist/commerce/QuantityStepper/QuantityStepper.module.js +9 -0
  199. package/dist/commerce/QuantityStepper/index.d.ts +2 -0
  200. package/dist/commerce/StockBadge/StockBadge.d.ts +31 -0
  201. package/dist/commerce/StockBadge/StockBadge.js +47 -0
  202. package/dist/commerce/StockBadge/index.d.ts +2 -0
  203. package/dist/commerce/VariantSelector/VariantSelector.css +202 -0
  204. package/dist/commerce/VariantSelector/VariantSelector.d.ts +44 -0
  205. package/dist/commerce/VariantSelector/VariantSelector.js +77 -0
  206. package/dist/commerce/VariantSelector/VariantSelector.module.js +13 -0
  207. package/dist/commerce/VariantSelector/index.d.ts +2 -0
  208. package/dist/commerce/index.d.ts +10 -0
  209. package/dist/commerce/index.js +6 -0
  210. package/dist/components/Accordion/Accordion.css +176 -0
  211. package/dist/components/Accordion/Accordion.d.ts +40 -0
  212. package/dist/components/Accordion/Accordion.js +90 -0
  213. package/dist/components/Accordion/Accordion.module.js +17 -0
  214. package/dist/components/Accordion/index.d.ts +2 -0
  215. package/dist/components/ColorPicker/ColorPicker.js +1 -1
  216. package/dist/components/Combobox/Combobox.js +1 -1
  217. package/dist/components/Disclosure/Disclosure.css +162 -0
  218. package/dist/components/Disclosure/Disclosure.d.ts +32 -0
  219. package/dist/components/Disclosure/Disclosure.js +60 -0
  220. package/dist/components/Disclosure/Disclosure.module.js +15 -0
  221. package/dist/components/Disclosure/index.d.ts +2 -0
  222. package/dist/components/DocumentLayout/DocumentLayout.css +202 -0
  223. package/dist/components/DocumentLayout/DocumentLayout.d.ts +33 -0
  224. package/dist/components/DocumentLayout/DocumentLayout.js +69 -0
  225. package/dist/components/DocumentLayout/DocumentLayout.module.js +20 -0
  226. package/dist/components/DocumentLayout/index.d.ts +2 -0
  227. package/dist/components/DocumentTable/DocumentTable.css +149 -0
  228. package/dist/components/DocumentTable/DocumentTable.d.ts +40 -0
  229. package/dist/components/DocumentTable/DocumentTable.js +67 -0
  230. package/dist/components/DocumentTable/DocumentTable.module.js +12 -0
  231. package/dist/components/DocumentTable/index.d.ts +2 -0
  232. package/dist/components/ErrorPage/ErrorPage.css +181 -0
  233. package/dist/components/ErrorPage/ErrorPage.d.ts +44 -0
  234. package/dist/components/ErrorPage/ErrorPage.js +145 -0
  235. package/dist/components/ErrorPage/ErrorPage.module.js +17 -0
  236. package/dist/components/ErrorPage/index.d.ts +2 -0
  237. package/dist/components/FeedbackWidget/FeedbackWidget.css +59 -0
  238. package/dist/components/FeedbackWidget/FeedbackWidget.d.ts +47 -0
  239. package/dist/components/FeedbackWidget/FeedbackWidget.js +198 -0
  240. package/dist/components/FeedbackWidget/FeedbackWidget.module.js +11 -0
  241. package/dist/components/FeedbackWidget/index.d.ts +2 -0
  242. package/dist/components/Figure/Figure.css +64 -0
  243. package/dist/components/Figure/Figure.d.ts +24 -0
  244. package/dist/components/Figure/Figure.js +38 -0
  245. package/dist/components/Figure/Figure.module.js +10 -0
  246. package/dist/components/Figure/index.d.ts +2 -0
  247. package/dist/components/FileList/FileList.css +160 -0
  248. package/dist/components/FileList/FileList.d.ts +45 -0
  249. package/dist/components/FileList/FileList.js +146 -0
  250. package/dist/components/FileList/FileList.module.js +15 -0
  251. package/dist/components/FileList/index.d.ts +2 -0
  252. package/dist/components/FilterPanel/FilterPanel.js +1 -1
  253. package/dist/components/IconPicker/IconPicker.js +1 -1
  254. package/dist/components/LinkRows/LinkRows.css +135 -0
  255. package/dist/components/LinkRows/LinkRows.d.ts +32 -0
  256. package/dist/components/LinkRows/LinkRows.js +62 -0
  257. package/dist/components/LinkRows/LinkRows.module.js +15 -0
  258. package/dist/components/LinkRows/index.d.ts +2 -0
  259. package/dist/components/NotificationCenter/NotificationCenter.js +1 -1
  260. package/dist/components/OnboardingChecklist/OnboardingChecklist.js +1 -1
  261. package/dist/components/PageNumber/PageNumber.css +21 -0
  262. package/dist/components/PageNumber/PageNumber.d.ts +23 -0
  263. package/dist/components/PageNumber/PageNumber.js +33 -0
  264. package/dist/components/PageNumber/PageNumber.module.js +4 -0
  265. package/dist/components/PaymentInfo/PaymentInfo.css +116 -0
  266. package/dist/components/PaymentInfo/PaymentInfo.d.ts +41 -0
  267. package/dist/components/PaymentInfo/PaymentInfo.js +115 -0
  268. package/dist/components/PaymentInfo/PaymentInfo.module.js +15 -0
  269. package/dist/components/PaymentInfo/index.d.ts +2 -0
  270. package/dist/components/PersonItem/PersonItem.css +112 -0
  271. package/dist/components/PersonItem/PersonItem.d.ts +31 -0
  272. package/dist/components/PersonItem/PersonItem.js +54 -0
  273. package/dist/components/PersonItem/PersonItem.module.js +11 -0
  274. package/dist/components/PersonItem/index.d.ts +2 -0
  275. package/dist/components/PhoneField/PhoneField.js +1 -1
  276. package/dist/components/ReadMore/ReadMore.js +1 -1
  277. package/dist/components/SideNav/SideNav.js +1 -1
  278. package/dist/components/SignaturePad/SignaturePad.js +1 -1
  279. package/dist/components/SplitButton/SplitButton.js +1 -1
  280. package/dist/components/Table/Table.css +150 -0
  281. package/dist/components/Table/Table.d.ts +54 -0
  282. package/dist/components/Table/Table.js +75 -0
  283. package/dist/components/Table/Table.module.js +14 -0
  284. package/dist/components/Table/index.d.ts +2 -0
  285. package/dist/components/ThemeSwitch/ThemeSwitch.js +1 -1
  286. package/dist/components/TotalsBlock/TotalsBlock.css +86 -0
  287. package/dist/components/TotalsBlock/TotalsBlock.d.ts +32 -0
  288. package/dist/components/TotalsBlock/TotalsBlock.js +88 -0
  289. package/dist/components/TotalsBlock/TotalsBlock.module.js +10 -0
  290. package/dist/components/TotalsBlock/index.d.ts +3 -0
  291. package/dist/components/TotalsBlock/totals.d.ts +28 -0
  292. package/dist/components/TotalsBlock/totals.js +38 -0
  293. package/dist/components/TrashView/TrashView.css +166 -0
  294. package/dist/components/TrashView/TrashView.d.ts +49 -0
  295. package/dist/components/TrashView/TrashView.js +244 -0
  296. package/dist/components/TrashView/TrashView.module.js +22 -0
  297. package/dist/components/TrashView/index.d.ts +2 -0
  298. package/dist/components/TreeSelect/TreeSelect.js +1 -1
  299. package/dist/components/UploadQueue/UploadQueue.js +1 -1
  300. package/dist/components/Watermark/Watermark.css +51 -0
  301. package/dist/components/Watermark/Watermark.d.ts +23 -0
  302. package/dist/components/Watermark/Watermark.js +54 -0
  303. package/dist/components/Watermark/Watermark.module.js +8 -0
  304. package/dist/components/WhatsNew/WhatsNew.css +196 -0
  305. package/dist/components/WhatsNew/WhatsNew.d.ts +57 -0
  306. package/dist/components/WhatsNew/WhatsNew.js +191 -0
  307. package/dist/components/WhatsNew/WhatsNew.module.js +27 -0
  308. package/dist/components/WhatsNew/index.d.ts +2 -0
  309. package/dist/components/_document/text.js +14 -0
  310. package/dist/components/_document/types.d.ts +36 -0
  311. package/dist/components/_document/types.js +8 -0
  312. package/dist/components/_internal/listbox/SelectShell.js +1 -1
  313. package/dist/document/index.d.ts +13 -0
  314. package/dist/document/index.js +9 -0
  315. package/dist/editor/CodeEditor/CodeEditor.css +312 -0
  316. package/dist/editor/CodeEditor/CodeEditor.d.ts +66 -0
  317. package/dist/editor/CodeEditor/CodeEditor.js +256 -0
  318. package/dist/editor/CodeEditor/CodeEditor.module.js +32 -0
  319. package/dist/editor/CodeEditor/codeEdits.d.ts +1 -0
  320. package/dist/editor/CodeEditor/codeEdits.js +284 -0
  321. package/dist/editor/CodeEditor/highlight.js +195 -0
  322. package/dist/editor/CodeEditor/index.d.ts +3 -0
  323. package/dist/editor/JsonEditor/JsonEditor.css +10 -0
  324. package/dist/editor/JsonEditor/JsonEditor.d.ts +43 -0
  325. package/dist/editor/JsonEditor/JsonEditor.js +133 -0
  326. package/dist/editor/JsonEditor/JsonEditor.module.js +4 -0
  327. package/dist/editor/JsonEditor/index.d.ts +3 -0
  328. package/dist/editor/JsonEditor/json.d.ts +44 -0
  329. package/dist/editor/JsonEditor/json.js +246 -0
  330. package/dist/editor/MarkdownEditor/MarkdownEditor.css +173 -0
  331. package/dist/editor/MarkdownEditor/MarkdownEditor.d.ts +47 -0
  332. package/dist/editor/MarkdownEditor/MarkdownEditor.js +371 -0
  333. package/dist/editor/MarkdownEditor/MarkdownEditor.module.js +18 -0
  334. package/dist/editor/MarkdownEditor/commands.js +198 -0
  335. package/dist/editor/MarkdownEditor/index.d.ts +2 -0
  336. package/dist/editor/_shared/FormatIcons.js +138 -0
  337. package/dist/editor/_shared/textEdit.js +76 -0
  338. package/dist/editor/index.d.ts +9 -0
  339. package/dist/editor/index.js +5 -0
  340. package/dist/email/EmailButton/EmailButton.d.ts +22 -0
  341. package/dist/email/EmailButton/EmailButton.js +102 -0
  342. package/dist/email/EmailButton/index.d.ts +2 -0
  343. package/dist/email/EmailCallout/EmailCallout.d.ts +14 -0
  344. package/dist/email/EmailCallout/EmailCallout.js +42 -0
  345. package/dist/email/EmailCallout/index.d.ts +2 -0
  346. package/dist/email/EmailCode/EmailCode.d.ts +15 -0
  347. package/dist/email/EmailCode/EmailCode.js +58 -0
  348. package/dist/email/EmailCode/index.d.ts +2 -0
  349. package/dist/email/EmailColumns/EmailColumns.d.ts +18 -0
  350. package/dist/email/EmailColumns/EmailColumns.js +49 -0
  351. package/dist/email/EmailColumns/index.d.ts +2 -0
  352. package/dist/email/EmailDivider/EmailDivider.d.ts +7 -0
  353. package/dist/email/EmailDivider/EmailDivider.js +24 -0
  354. package/dist/email/EmailDivider/index.d.ts +2 -0
  355. package/dist/email/EmailFooter/EmailFooter.d.ts +30 -0
  356. package/dist/email/EmailFooter/EmailFooter.js +64 -0
  357. package/dist/email/EmailFooter/index.d.ts +2 -0
  358. package/dist/email/EmailHeader/EmailHeader.d.ts +23 -0
  359. package/dist/email/EmailHeader/EmailHeader.js +75 -0
  360. package/dist/email/EmailHeader/index.d.ts +2 -0
  361. package/dist/email/EmailHeading/EmailHeading.d.ts +11 -0
  362. package/dist/email/EmailHeading/EmailHeading.js +43 -0
  363. package/dist/email/EmailHeading/index.d.ts +2 -0
  364. package/dist/email/EmailImage/EmailImage.d.ts +25 -0
  365. package/dist/email/EmailImage/EmailImage.js +53 -0
  366. package/dist/email/EmailImage/index.d.ts +2 -0
  367. package/dist/email/EmailLayout/EmailLayout.d.ts +30 -0
  368. package/dist/email/EmailLayout/EmailLayout.js +79 -0
  369. package/dist/email/EmailLayout/emailDocument.d.ts +16 -0
  370. package/dist/email/EmailLayout/emailDocument.js +36 -0
  371. package/dist/email/EmailLayout/index.d.ts +3 -0
  372. package/dist/email/EmailList/EmailList.d.ts +10 -0
  373. package/dist/email/EmailList/EmailList.js +28 -0
  374. package/dist/email/EmailList/index.d.ts +2 -0
  375. package/dist/email/EmailPreheader/EmailPreheader.d.ts +14 -0
  376. package/dist/email/EmailPreheader/EmailPreheader.js +30 -0
  377. package/dist/email/EmailPreheader/index.d.ts +2 -0
  378. package/dist/email/EmailProductRow/EmailProductRow.d.ts +23 -0
  379. package/dist/email/EmailProductRow/EmailProductRow.js +112 -0
  380. package/dist/email/EmailProductRow/index.d.ts +2 -0
  381. package/dist/email/EmailSocialLinks/EmailSocialLinks.d.ts +19 -0
  382. package/dist/email/EmailSocialLinks/EmailSocialLinks.js +53 -0
  383. package/dist/email/EmailSocialLinks/index.d.ts +2 -0
  384. package/dist/email/EmailStats/EmailStats.d.ts +23 -0
  385. package/dist/email/EmailStats/EmailStats.js +86 -0
  386. package/dist/email/EmailStats/index.d.ts +2 -0
  387. package/dist/email/EmailTable/EmailTable.d.ts +24 -0
  388. package/dist/email/EmailTable/EmailTable.js +90 -0
  389. package/dist/email/EmailTable/index.d.ts +2 -0
  390. package/dist/email/EmailText/EmailText.d.ts +13 -0
  391. package/dist/email/EmailText/EmailText.js +35 -0
  392. package/dist/email/EmailText/index.d.ts +2 -0
  393. package/dist/email/_shared/theme.d.ts +8 -0
  394. package/dist/email/_shared/theme.js +90 -0
  395. package/dist/email/index.d.ts +36 -0
  396. package/dist/email/index.js +19 -0
  397. package/dist/icons/generated/index.js +8 -8
  398. package/dist/icons/index.js +8 -8
  399. package/dist/id/AccountMenu/AccountMenu.css +110 -0
  400. package/dist/id/AccountMenu/AccountMenu.d.ts +45 -0
  401. package/dist/id/AccountMenu/AccountMenu.js +98 -0
  402. package/dist/id/AccountMenu/AccountMenu.module.js +14 -0
  403. package/dist/id/AccountMenu/index.d.ts +2 -0
  404. package/dist/id/AppSwitcher/AppSwitcher.css +109 -0
  405. package/dist/id/AppSwitcher/AppSwitcher.d.ts +31 -0
  406. package/dist/id/AppSwitcher/AppSwitcher.js +88 -0
  407. package/dist/id/AppSwitcher/AppSwitcher.module.js +11 -0
  408. package/dist/id/AppSwitcher/index.d.ts +2 -0
  409. package/dist/id/OrgSwitcher/OrgSwitcher.css +110 -0
  410. package/dist/id/OrgSwitcher/OrgSwitcher.d.ts +37 -0
  411. package/dist/id/OrgSwitcher/OrgSwitcher.js +153 -0
  412. package/dist/id/OrgSwitcher/OrgSwitcher.module.js +12 -0
  413. package/dist/id/OrgSwitcher/index.d.ts +2 -0
  414. package/dist/id/PermissionGate/PermissionGate.css +57 -0
  415. package/dist/id/PermissionGate/PermissionGate.d.ts +30 -0
  416. package/dist/id/PermissionGate/PermissionGate.js +51 -0
  417. package/dist/id/PermissionGate/PermissionGate.module.js +10 -0
  418. package/dist/id/PermissionGate/index.d.ts +2 -0
  419. package/dist/id/SignInButton/SignInButton.d.ts +20 -0
  420. package/dist/id/SignInButton/SignInButton.js +34 -0
  421. package/dist/id/_internal/ActionItem/ActionItem.css +143 -0
  422. package/dist/id/_internal/ActionItem/ActionItem.js +68 -0
  423. package/dist/id/_internal/ActionItem/ActionItem.module.js +11 -0
  424. package/dist/id/index.d.ts +10 -0
  425. package/dist/id/index.js +6 -0
  426. package/dist/index.d.ts +26 -4
  427. package/dist/index.js +14 -3
  428. package/dist/maps/DirectionsLink/DirectionsLink.css +10 -0
  429. package/dist/maps/DirectionsLink/DirectionsLink.d.ts +35 -0
  430. package/dist/maps/DirectionsLink/DirectionsLink.js +84 -0
  431. package/dist/maps/DirectionsLink/DirectionsLink.module.js +4 -0
  432. package/dist/maps/DirectionsLink/index.d.ts +2 -0
  433. package/dist/maps/LocationPicker/LocationPicker.css +60 -0
  434. package/dist/maps/LocationPicker/LocationPicker.d.ts +37 -0
  435. package/dist/maps/LocationPicker/LocationPicker.js +278 -0
  436. package/dist/maps/LocationPicker/LocationPicker.module.js +12 -0
  437. package/dist/maps/LocationPicker/index.d.ts +2 -0
  438. package/dist/maps/MapMarker/MapMarker.css +318 -0
  439. package/dist/maps/MapMarker/MapMarker.d.ts +35 -0
  440. package/dist/maps/MapMarker/MapMarker.js +142 -0
  441. package/dist/maps/MapMarker/MapMarker.module.js +20 -0
  442. package/dist/maps/MapMarker/index.d.ts +2 -0
  443. package/dist/maps/MapView/MapView.css +268 -0
  444. package/dist/maps/MapView/MapView.d.ts +71 -0
  445. package/dist/maps/MapView/MapView.js +495 -0
  446. package/dist/maps/MapView/MapView.module.js +23 -0
  447. package/dist/maps/MapView/index.d.ts +2 -0
  448. package/dist/maps/StoreLocator/StoreLocator.css +201 -0
  449. package/dist/maps/StoreLocator/StoreLocator.d.ts +43 -0
  450. package/dist/maps/StoreLocator/StoreLocator.js +225 -0
  451. package/dist/maps/StoreLocator/StoreLocator.module.js +21 -0
  452. package/dist/maps/StoreLocator/index.d.ts +2 -0
  453. package/dist/maps/TurkeyMap/TurkeyMap.css +229 -0
  454. package/dist/maps/TurkeyMap/TurkeyMap.d.ts +45 -0
  455. package/dist/maps/TurkeyMap/TurkeyMap.js +280 -0
  456. package/dist/maps/TurkeyMap/TurkeyMap.module.js +17 -0
  457. package/dist/maps/TurkeyMap/tileGrid.js +85 -0
  458. package/dist/maps/_internal/geo.d.ts +8 -0
  459. package/dist/maps/_internal/geo.js +116 -0
  460. package/dist/maps/_internal/mapContext.js +8 -0
  461. package/dist/maps/_internal/useControllable.js +24 -0
  462. package/dist/maps/index.d.ts +12 -0
  463. package/dist/maps/index.js +7 -0
  464. package/dist/media/AudioPlayer/AudioPlayer.css +106 -0
  465. package/dist/media/AudioPlayer/AudioPlayer.d.ts +38 -0
  466. package/dist/media/AudioPlayer/AudioPlayer.js +134 -0
  467. package/dist/media/AudioPlayer/AudioPlayer.module.js +16 -0
  468. package/dist/media/AudioPlayer/index.d.ts +2 -0
  469. package/dist/media/AudioWaveform/AudioWaveform.css +43 -0
  470. package/dist/media/AudioWaveform/AudioWaveform.d.ts +25 -0
  471. package/dist/media/AudioWaveform/AudioWaveform.js +101 -0
  472. package/dist/media/AudioWaveform/AudioWaveform.module.js +9 -0
  473. package/dist/media/AudioWaveform/peaks.d.ts +14 -0
  474. package/dist/media/AudioWaveform/peaks.js +54 -0
  475. package/dist/media/MediaCard/MediaCard.css +229 -0
  476. package/dist/media/MediaCard/MediaCard.d.ts +38 -0
  477. package/dist/media/MediaCard/MediaCard.js +120 -0
  478. package/dist/media/MediaCard/MediaCard.module.js +18 -0
  479. package/dist/media/MediaCard/index.d.ts +2 -0
  480. package/dist/media/VideoPlayer/VideoPlayer.css +125 -0
  481. package/dist/media/VideoPlayer/VideoPlayer.d.ts +54 -0
  482. package/dist/media/VideoPlayer/VideoPlayer.js +193 -0
  483. package/dist/media/VideoPlayer/VideoPlayer.module.js +12 -0
  484. package/dist/media/VideoThumbnail/VideoThumbnail.css +139 -0
  485. package/dist/media/VideoThumbnail/VideoThumbnail.d.ts +34 -0
  486. package/dist/media/VideoThumbnail/VideoThumbnail.js +63 -0
  487. package/dist/media/VideoThumbnail/VideoThumbnail.module.js +10 -0
  488. package/dist/media/VideoThumbnail/VideoThumbnailLink.js +18 -0
  489. package/dist/media/_internal/clock.js +17 -0
  490. package/dist/media/_internal/consent/ConsentNotice.css +55 -0
  491. package/dist/media/_internal/consent/ConsentNotice.js +40 -0
  492. package/dist/media/_internal/consent/ConsentNotice.module.js +10 -0
  493. package/dist/media/_internal/icons.js +77 -0
  494. package/dist/media/_internal/range/Range.css +187 -0
  495. package/dist/media/_internal/range/Range.js +130 -0
  496. package/dist/media/_internal/range/Range.module.js +10 -0
  497. package/dist/media/_internal/transport/MediaTransport.css +90 -0
  498. package/dist/media/_internal/transport/MediaTransport.js +172 -0
  499. package/dist/media/_internal/transport/MediaTransport.module.js +14 -0
  500. package/dist/media/_internal/url.js +31 -0
  501. package/dist/media/_internal/useConsent.js +28 -0
  502. package/dist/media/_internal/useMedia.js +146 -0
  503. package/dist/media/index.d.ts +9 -0
  504. package/dist/media/index.js +7 -0
  505. package/dist/messages/messages.d.ts +481 -0
  506. package/dist/messages/messages.js +964 -2
  507. package/dist/site/AnnouncementBar/AnnouncementBar.css +132 -0
  508. package/dist/site/AnnouncementBar/AnnouncementBar.d.ts +28 -0
  509. package/dist/site/AnnouncementBar/AnnouncementBar.js +64 -0
  510. package/dist/site/AnnouncementBar/AnnouncementBar.module.js +11 -0
  511. package/dist/site/AnnouncementBar/index.d.ts +2 -0
  512. package/dist/site/MegaMenu/MegaMenu.css +324 -0
  513. package/dist/site/MegaMenu/MegaMenu.d.ts +51 -0
  514. package/dist/site/MegaMenu/MegaMenu.js +170 -0
  515. package/dist/site/MegaMenu/MegaMenu.module.js +28 -0
  516. package/dist/site/MegaMenu/index.d.ts +2 -0
  517. package/dist/site/SiteFooter/SiteFooter.css +129 -0
  518. package/dist/site/SiteFooter/SiteFooter.d.ts +38 -0
  519. package/dist/site/SiteFooter/SiteFooter.js +79 -0
  520. package/dist/site/SiteFooter/SiteFooter.module.js +20 -0
  521. package/dist/site/SiteFooter/index.d.ts +2 -0
  522. package/dist/site/SiteHeader/SiteHeader.css +213 -0
  523. package/dist/site/SiteHeader/SiteHeader.d.ts +40 -0
  524. package/dist/site/SiteHeader/SiteHeader.js +115 -0
  525. package/dist/site/SiteHeader/SiteHeader.module.js +18 -0
  526. package/dist/site/SiteHeader/index.d.ts +2 -0
  527. package/dist/site/StickyCta/StickyCta.css +112 -0
  528. package/dist/site/StickyCta/StickyCta.d.ts +27 -0
  529. package/dist/site/StickyCta/StickyCta.js +69 -0
  530. package/dist/site/StickyCta/StickyCta.module.js +10 -0
  531. package/dist/site/StickyCta/index.d.ts +2 -0
  532. package/dist/site/index.d.ts +11 -0
  533. package/dist/site/index.js +6 -0
  534. package/dist/styles.css +24433 -14420
  535. package/package.json +45 -1
@@ -0,0 +1,201 @@
1
+ @layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
2
+ @layer sti.components {
3
+ .sti-StoreLocator-root-6b415 {
4
+ inline-size: 100%;
5
+ min-width: 0;
6
+ font-family: var(--sti-font-text);
7
+ container-type: inline-size;
8
+ }
9
+
10
+ .sti-StoreLocator-layout-86db6 {
11
+ gap: var(--sti-space-4);
12
+ grid-template-columns: minmax(0, 1fr);
13
+ min-width: 0;
14
+ display: grid;
15
+ }
16
+
17
+ .sti-StoreLocator-map-186cb {
18
+ order: 1;
19
+ min-width: 0;
20
+ }
21
+
22
+ .sti-StoreLocator-panel-a2eb9 {
23
+ align-content: start;
24
+ gap: var(--sti-space-3);
25
+ order: 2;
26
+ grid-template-columns: minmax(0, 1fr);
27
+ min-width: 0;
28
+ display: grid;
29
+ }
30
+
31
+ @container (width >= 46rem) {
32
+ .sti-StoreLocator-layout-86db6 {
33
+ grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
34
+ align-items: start;
35
+ }
36
+
37
+ .sti-StoreLocator-panel-a2eb9 {
38
+ order: 1;
39
+ }
40
+
41
+ .sti-StoreLocator-map-186cb {
42
+ order: 2;
43
+ position: sticky;
44
+ inset-block-start: var(--sti-space-4);
45
+ }
46
+
47
+ .sti-StoreLocator-list-32c17 {
48
+ max-block-size: calc(var(--sti-space-32) * 3);
49
+ overscroll-behavior: contain;
50
+ padding-inline-end: var(--sti-space-1);
51
+ overflow-y: auto;
52
+ }
53
+ }
54
+
55
+ .sti-StoreLocator-tools-71cea {
56
+ justify-items: start;
57
+ gap: var(--sti-space-2);
58
+ display: grid;
59
+ }
60
+
61
+ .sti-StoreLocator-status-4a031 {
62
+ color: var(--sti-fg-muted);
63
+ font-size: var(--sti-font-size-sm);
64
+ line-height: var(--sti-line-height-sm);
65
+ margin: 0;
66
+ }
67
+
68
+ .sti-StoreLocator-problem-cec14 {
69
+ color: var(--sti-fg-danger);
70
+ font-size: var(--sti-font-size-sm);
71
+ font-weight: var(--sti-font-weight-medium);
72
+ line-height: var(--sti-line-height-sm);
73
+ margin: 0;
74
+ }
75
+
76
+ .sti-StoreLocator-list-32c17 {
77
+ align-content: start;
78
+ gap: var(--sti-space-2);
79
+ margin: 0;
80
+ padding: 0;
81
+ list-style: none;
82
+ display: grid;
83
+ }
84
+
85
+ .sti-StoreLocator-item-8c817 {
86
+ gap: var(--sti-space-1);
87
+ min-width: 0;
88
+ padding: var(--sti-space-3) var(--sti-space-4);
89
+ border: var(--sti-border-width) solid var(--sti-border);
90
+ border-radius: var(--sti-radius-lg);
91
+ background: var(--sti-bg-surface);
92
+ transition: border-color var(--sti-duration-fast) var(--sti-ease-snap),
93
+ background-color var(--sti-duration-fast) var(--sti-ease-snap);
94
+ display: grid;
95
+ }
96
+
97
+ .sti-StoreLocator-item-8c817[data-selected] {
98
+ border-color: var(--sti-border-selected);
99
+ box-shadow: 0 0 0 var(--sti-border-width) var(--sti-border-selected);
100
+ background: var(--sti-bg-accent-subtle);
101
+ }
102
+
103
+ .sti-StoreLocator-select-d8b70 {
104
+ justify-content: space-between;
105
+ align-items: baseline;
106
+ gap: var(--sti-space-3);
107
+ min-width: 0;
108
+ min-height: var(--sti-control-h-md);
109
+ margin: calc(var(--sti-space-2) * -1) calc(var(--sti-space-2) * -1) 0;
110
+ padding: var(--sti-space-2);
111
+ border-radius: var(--sti-radius-md);
112
+ color: var(--sti-fg);
113
+ font: inherit;
114
+ text-align: start;
115
+ cursor: pointer;
116
+ -webkit-tap-highlight-color: transparent;
117
+ background: none;
118
+ border: 0;
119
+ display: flex;
120
+ }
121
+
122
+ @media (hover: hover) {
123
+ .sti-StoreLocator-select-d8b70[data-hovered] {
124
+ background: var(--sti-bg-surface-hover);
125
+ }
126
+ }
127
+
128
+ .sti-StoreLocator-select-d8b70:focus-visible, .sti-StoreLocator-select-d8b70[data-focus-visible] {
129
+ outline: var(--sti-focus-ring-width) solid var(--sti-focus-ring);
130
+ outline-offset: var(--sti-focus-ring-offset);
131
+ }
132
+
133
+ .sti-StoreLocator-select-d8b70:focus:not([data-focus-visible]) {
134
+ outline: none;
135
+ }
136
+
137
+ .sti-StoreLocator-name-896ef {
138
+ min-width: 0;
139
+ font-size: var(--sti-font-size-body);
140
+ font-weight: var(--sti-font-weight-semibold);
141
+ line-height: var(--sti-line-height-sm);
142
+ overflow-wrap: anywhere;
143
+ }
144
+
145
+ .sti-StoreLocator-item-8c817[data-selected] .sti-StoreLocator-name-896ef {
146
+ font-weight: var(--sti-font-weight-bold);
147
+ }
148
+
149
+ .sti-StoreLocator-km-6edd6 {
150
+ color: var(--sti-fg-muted);
151
+ font-size: var(--sti-font-size-sm);
152
+ font-variant-numeric: tabular-nums;
153
+ flex: none;
154
+ }
155
+
156
+ .sti-StoreLocator-address-1baac, .sti-StoreLocator-hours-1468c {
157
+ color: var(--sti-fg-muted);
158
+ font-size: var(--sti-font-size-sm);
159
+ line-height: var(--sti-line-height-sm);
160
+ overflow-wrap: anywhere;
161
+ margin: 0;
162
+ }
163
+
164
+ .sti-StoreLocator-hours-1468c {
165
+ align-items: flex-start;
166
+ gap: var(--sti-space-2);
167
+ display: flex;
168
+ }
169
+
170
+ .sti-StoreLocator-hoursIcon-2d83d {
171
+ font-size: var(--sti-icon-sm);
172
+ flex: none;
173
+ margin-block-start: var(--sti-space-0-5);
174
+ display: inline-flex;
175
+ }
176
+
177
+ .sti-StoreLocator-actions-eeaea {
178
+ align-items: center;
179
+ gap: var(--sti-space-1) var(--sti-space-4);
180
+ flex-wrap: wrap;
181
+ margin-block-start: var(--sti-space-1);
182
+ display: flex;
183
+ }
184
+
185
+ @media (prefers-reduced-motion: reduce) {
186
+ .sti-StoreLocator-item-8c817 {
187
+ transition: none;
188
+ }
189
+ }
190
+
191
+ @media (forced-colors: active) {
192
+ .sti-StoreLocator-item-8c817 {
193
+ border-color: canvastext;
194
+ }
195
+
196
+ .sti-StoreLocator-item-8c817[data-selected] {
197
+ box-shadow: 0 0 0 var(--sti-border-width) Highlight;
198
+ border-color: highlight;
199
+ }
200
+ }
201
+ }
@@ -0,0 +1,43 @@
1
+ import { DirectionsProvider } from "../DirectionsLink/DirectionsLink.js";
2
+ import { MapViewProps } from "../MapView/MapView.js";
3
+ export interface Store {
4
+ /** Kararlı kimlik (liste ve seçim bununla izlenir). */
5
+ id: string;
6
+ name: string;
7
+ /** Açık adres; aramada da kullanılır. */
8
+ address: string;
9
+ lat: number;
10
+ lng: number;
11
+ /** İl ya da ilçe (aramada kullanılır). */
12
+ city?: string;
13
+ /** Türkiye telefon numarası; verilirse arama bağlantısı çizilir. */
14
+ phone?: string;
15
+ /** Çalışma saatleri metni ("Hafta içi 09.00–19.00"). */
16
+ hours?: string;
17
+ }
18
+ export interface StoreLocatorProps {
19
+ /** Bölgenin adı (zorunlu): "Mağazalarımız". */
20
+ label: string;
21
+ stores: readonly Store[];
22
+ /** Seçili mağaza (denetimli); `null` seçim yok. */
23
+ selectedId?: string | null;
24
+ defaultSelectedId?: string | null;
25
+ onSelectedChange?: (id: string | null) => void;
26
+ /** Harita izni ve karo kaynağı (`MapView` ile aynı). */
27
+ mapProps?: Pick<MapViewProps, "isLoaded" | "defaultLoaded" | "onLoadedChange" | "tileUrl" | "attribution">;
28
+ /** Yol tarifi hizmeti; varsayılan OpenStreetMap. */
29
+ directionsProvider?: DirectionsProvider;
30
+ /** "Bana yakın olanları göster" düğmesi; varsayılan açık. */
31
+ showNearMe?: boolean;
32
+ /** Harita yüksekliği; varsayılan `md`. */
33
+ mapSize?: "sm" | "md" | "lg";
34
+ className?: string;
35
+ id?: string;
36
+ }
37
+ /**
38
+ * Mağaza bulucu: arama (Türkçe harf duyarsız), konuma göre sıralama, liste ve harita bir arada.
39
+ * Listedeki mağazaya basmak haritayı ona götürür; haritadaki işaretçiye basmak listede seçer.
40
+ * Liste haritanın metin karşılığıdır: harita yüklenmese de bütün işlevler çalışır. Cihaz konumu
41
+ * yalnız düğmeye basılınca istenir, mağaza uzaklıkları cihazda hesaplanır ve hiçbir yere gönderilmez.
42
+ */
43
+ export declare function StoreLocator(props: StoreLocatorProps): import("react").JSX.Element;
@@ -0,0 +1,225 @@
1
+ "use client";
2
+ import { useFormatter, useMessages } from "../../provider/UIProvider.js";
3
+ import { matchesLoose, template } from "../../text/text.js";
4
+ import { VisuallyHidden } from "../../components/VisuallyHidden/VisuallyHidden.js";
5
+ import { Button as Button$1 } from "../../components/Button/Button.js";
6
+ import { ClockIcon } from "../../icons/generated/ClockIcon.js";
7
+ import { SearchField as SearchField$1 } from "../../components/SearchField/SearchField.js";
8
+ import { EmptyState } from "../../components/EmptyState/EmptyState.js";
9
+ import { CompassIcon } from "../../icons/generated/CompassIcon.js";
10
+ import { MapPinIcon } from "../../icons/generated/MapPinIcon.js";
11
+ import { PhoneLink } from "../../components/PhoneLink/PhoneLink.js";
12
+ import { distanceKm, isLatLng } from "../_internal/geo.js";
13
+ import { DirectionsLink } from "../DirectionsLink/DirectionsLink.js";
14
+ import { useControllable } from "../_internal/useControllable.js";
15
+ import { MapMarker } from "../MapMarker/MapMarker.js";
16
+ import { MapView } from "../MapView/MapView.js";
17
+ import StoreLocator_module_default from "./StoreLocator.module.js";
18
+ import { jsx, jsxs } from "react/jsx-runtime";
19
+ import { useEffect, useMemo, useRef, useState } from "react";
20
+ import { Button } from "react-aria-components";
21
+ // src/maps/StoreLocator/StoreLocator.tsx
22
+ const KM_DIGITS = (km) => km < 10 ? 1 : 0;
23
+ /**
24
+ * Mağaza bulucu: arama (Türkçe harf duyarsız), konuma göre sıralama, liste ve harita bir arada.
25
+ * Listedeki mağazaya basmak haritayı ona götürür; haritadaki işaretçiye basmak listede seçer.
26
+ * Liste haritanın metin karşılığıdır: harita yüklenmese de bütün işlevler çalışır. Cihaz konumu
27
+ * yalnız düğmeye basılınca istenir, mağaza uzaklıkları cihazda hesaplanır ve hiçbir yere gönderilmez.
28
+ */
29
+ function StoreLocator(props) {
30
+ const { label, stores, mapProps, directionsProvider, showNearMe = true, mapSize = "md", className, id } = props;
31
+ const messages = useMessages();
32
+ const format = useFormatter();
33
+ const [selectedId, setSelectedId] = useControllable(props.selectedId, props.defaultSelectedId ?? null, props.onSelectedChange);
34
+ const [query, setQuery] = useState("");
35
+ const [here, setHere] = useState(null);
36
+ const [locating, setLocating] = useState(false);
37
+ const [problem, setProblem] = useState(null);
38
+ const [center, setCenter] = useState(void 0);
39
+ const [zoom, setZoom] = useState(void 0);
40
+ const items = useRef(/* @__PURE__ */ new Map());
41
+ const valid = useMemo(() => stores.filter((s) => isLatLng(s)), [stores]);
42
+ const rows = useMemo(() => {
43
+ const found = valid.filter((s) => matchesLoose(`${s.name} ${s.address} ${s.city ?? ""}`, query)).map((store) => ({
44
+ store,
45
+ km: here ? distanceKm(here, store) : null
46
+ }));
47
+ return here ? found.sort((a, b) => (a.km ?? 0) - (b.km ?? 0)) : found;
48
+ }, [
49
+ valid,
50
+ query,
51
+ here
52
+ ]);
53
+ const points = useMemo(() => rows.map((r) => ({
54
+ lat: r.store.lat,
55
+ lng: r.store.lng
56
+ })), [rows]);
57
+ useEffect(() => {
58
+ if (!selectedId) return;
59
+ const li = items.current.get(selectedId);
60
+ const list = li?.parentElement;
61
+ if (!li || !list) return;
62
+ const top = li.offsetTop - list.offsetTop;
63
+ if (top < list.scrollTop) list.scrollTop = top;
64
+ else if (top + li.offsetHeight > list.scrollTop + list.clientHeight) list.scrollTop = top + li.offsetHeight - list.clientHeight;
65
+ }, [selectedId]);
66
+ const select = (store) => {
67
+ setSelectedId(store?.id ?? null);
68
+ if (store) {
69
+ setCenter({
70
+ lat: store.lat,
71
+ lng: store.lng
72
+ });
73
+ setZoom((z) => Math.max(z ?? 0, 14));
74
+ }
75
+ };
76
+ const locate = () => {
77
+ if (!navigator.geolocation) {
78
+ setProblem(messages.locationUnavailable);
79
+ return;
80
+ }
81
+ setLocating(true);
82
+ setProblem(null);
83
+ navigator.geolocation.getCurrentPosition((pos) => {
84
+ setLocating(false);
85
+ setHere({
86
+ lat: pos.coords.latitude,
87
+ lng: pos.coords.longitude
88
+ });
89
+ }, (err) => {
90
+ setLocating(false);
91
+ setProblem(err.code === 1 ? messages.locationDenied : messages.locationUnavailable);
92
+ }, {
93
+ enableHighAccuracy: false,
94
+ timeout: 15e3,
95
+ maximumAge: 6e4
96
+ });
97
+ };
98
+ const count = template(messages.storeCount, { count: rows.length });
99
+ const distance = (km) => template(messages.storeDistance, { distance: `${format.number(km, { maximumFractionDigits: KM_DIGITS(km) })} km` });
100
+ return /* @__PURE__ */ jsx("section", {
101
+ id,
102
+ className: [StoreLocator_module_default.root, className].filter(Boolean).join(" "),
103
+ "aria-label": label,
104
+ children: /* @__PURE__ */ jsxs("div", {
105
+ className: StoreLocator_module_default.layout,
106
+ children: [/* @__PURE__ */ jsxs("div", {
107
+ className: StoreLocator_module_default.panel,
108
+ children: [
109
+ /* @__PURE__ */ jsxs("div", {
110
+ className: StoreLocator_module_default.tools,
111
+ children: [/* @__PURE__ */ jsx(SearchField$1, {
112
+ label: messages.storeSearch,
113
+ value: query,
114
+ onChange: setQuery,
115
+ onClear: () => setQuery("")
116
+ }), showNearMe ? /* @__PURE__ */ jsx(Button$1, {
117
+ size: "sm",
118
+ variant: "secondary",
119
+ iconStart: /* @__PURE__ */ jsx(CompassIcon, {}),
120
+ isPending: locating,
121
+ onPress: locate,
122
+ children: messages.storeNearMe
123
+ }) : null]
124
+ }),
125
+ /* @__PURE__ */ jsxs("p", {
126
+ className: StoreLocator_module_default.status,
127
+ role: "status",
128
+ children: [count, here ? ` ${messages.storeSortedByDistance}` : ""]
129
+ }),
130
+ problem ? /* @__PURE__ */ jsx("p", {
131
+ className: StoreLocator_module_default.problem,
132
+ children: problem
133
+ }) : null,
134
+ rows.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
135
+ size: "sm",
136
+ icon: /* @__PURE__ */ jsx(MapPinIcon, {}),
137
+ title: messages.storeNone,
138
+ titleLevel: 3,
139
+ description: messages.storeNoneHint
140
+ }) : /* @__PURE__ */ jsx("ul", {
141
+ className: StoreLocator_module_default.list,
142
+ "aria-label": messages.storeList,
143
+ children: rows.map(({ store, km }) => {
144
+ const selected = store.id === selectedId;
145
+ return /* @__PURE__ */ jsxs("li", {
146
+ ref: (node) => {
147
+ if (node) items.current.set(store.id, node);
148
+ else items.current.delete(store.id);
149
+ },
150
+ className: StoreLocator_module_default.item,
151
+ "data-selected": selected ? "" : void 0,
152
+ children: [
153
+ /* @__PURE__ */ jsxs(Button, {
154
+ className: StoreLocator_module_default.select,
155
+ "aria-pressed": selected,
156
+ "aria-label": template(messages.storeShowOnMap, { name: store.name }),
157
+ onPress: () => select(selected ? null : store),
158
+ children: [/* @__PURE__ */ jsx("span", {
159
+ className: StoreLocator_module_default.name,
160
+ children: store.name
161
+ }), km !== null ? /* @__PURE__ */ jsx("span", {
162
+ className: StoreLocator_module_default.km,
163
+ children: distance(km)
164
+ }) : null]
165
+ }),
166
+ /* @__PURE__ */ jsx("p", {
167
+ className: StoreLocator_module_default.address,
168
+ children: store.address
169
+ }),
170
+ store.hours ? /* @__PURE__ */ jsxs("p", {
171
+ className: StoreLocator_module_default.hours,
172
+ children: [/* @__PURE__ */ jsx("span", {
173
+ className: StoreLocator_module_default.hoursIcon,
174
+ "aria-hidden": "true",
175
+ children: /* @__PURE__ */ jsx(ClockIcon, {})
176
+ }), store.hours]
177
+ }) : null,
178
+ /* @__PURE__ */ jsxs("div", {
179
+ className: StoreLocator_module_default.actions,
180
+ children: [/* @__PURE__ */ jsxs(DirectionsLink, {
181
+ destination: {
182
+ lat: store.lat,
183
+ lng: store.lng
184
+ },
185
+ provider: directionsProvider,
186
+ size: "sm",
187
+ children: [messages.storeDirections, /* @__PURE__ */ jsxs(VisuallyHidden, { children: [" ", store.name] })]
188
+ }), store.phone ? /* @__PURE__ */ jsx(PhoneLink, {
189
+ value: store.phone,
190
+ showIcon: true
191
+ }) : null]
192
+ })
193
+ ]
194
+ }, store.id);
195
+ })
196
+ })
197
+ ]
198
+ }), /* @__PURE__ */ jsx("div", {
199
+ className: StoreLocator_module_default.map,
200
+ children: /* @__PURE__ */ jsx(MapView, {
201
+ label,
202
+ size: mapSize,
203
+ center,
204
+ zoom,
205
+ onCenterChange: setCenter,
206
+ onZoomChange: setZoom,
207
+ fit: points,
208
+ showMarkerList: false,
209
+ ...mapProps,
210
+ children: rows.map(({ store }) => /* @__PURE__ */ jsx(MapMarker, {
211
+ lat: store.lat,
212
+ lng: store.lng,
213
+ label: store.name,
214
+ description: store.address,
215
+ isSelected: store.id === selectedId,
216
+ onPress: () => select(store.id === selectedId ? null : store),
217
+ onClose: () => setSelectedId(null),
218
+ children: store.hours
219
+ }, store.id))
220
+ })
221
+ })]
222
+ })
223
+ });
224
+ }
225
+ export { StoreLocator };
@@ -0,0 +1,21 @@
1
+ import './StoreLocator.css';
2
+ // src/maps/StoreLocator/StoreLocator.module.css
3
+ var StoreLocator_module_default = {
4
+ "root": "sti-StoreLocator-root-6b415",
5
+ "layout": "sti-StoreLocator-layout-86db6",
6
+ "map": "sti-StoreLocator-map-186cb",
7
+ "panel": "sti-StoreLocator-panel-a2eb9",
8
+ "list": "sti-StoreLocator-list-32c17",
9
+ "tools": "sti-StoreLocator-tools-71cea",
10
+ "status": "sti-StoreLocator-status-4a031",
11
+ "problem": "sti-StoreLocator-problem-cec14",
12
+ "item": "sti-StoreLocator-item-8c817",
13
+ "select": "sti-StoreLocator-select-d8b70",
14
+ "name": "sti-StoreLocator-name-896ef",
15
+ "km": "sti-StoreLocator-km-6edd6",
16
+ "address": "sti-StoreLocator-address-1baac",
17
+ "hours": "sti-StoreLocator-hours-1468c",
18
+ "hoursIcon": "sti-StoreLocator-hoursIcon-2d83d",
19
+ "actions": "sti-StoreLocator-actions-eeaea"
20
+ };
21
+ export { StoreLocator_module_default as default };
@@ -0,0 +1,2 @@
1
+ import { Store, StoreLocator, StoreLocatorProps } from "./StoreLocator.js";
2
+ export { Store, StoreLocator, StoreLocatorProps };