@snowui-design-system/components 0.3.0-alpha.1 → 0.3.0-alpha.2

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 (208) hide show
  1. package/AGENTS.md +21 -0
  2. package/LICENSE +133 -89
  3. package/README.md +21 -7
  4. package/component-catalog.json +505 -84
  5. package/dist/client/blocks/Sidebar.js +19 -5
  6. package/dist/client/blocks/index.js +2 -0
  7. package/dist/client/compat.js +2 -0
  8. package/dist/client/components/Text.js +36 -20
  9. package/dist/client/components/Tooltip.js +200 -195
  10. package/dist/client/context.js +2 -0
  11. package/dist/client/dev.js +2 -0
  12. package/dist/client/i18n/messages.d.ts +1 -1
  13. package/dist/client/i18n/messages.js +3 -1
  14. package/dist/client/index.js +2 -0
  15. package/dist/client/internal/code-block/prettier-svelte.d.ts +2 -0
  16. package/dist/client/internal/component-icon/index.js +2 -0
  17. package/dist/client/internal/snow-ui-logo/emoji-metrics.js +2 -0
  18. package/dist/client/keys.js +2 -0
  19. package/dist/client/lib/adaptive-contrast-renderer.js +2 -0
  20. package/dist/client/lib/chart/appearance-timeline.js +2 -0
  21. package/dist/client/lib/chart/arc-path.js +2 -0
  22. package/dist/client/lib/chart/colors.js +2 -0
  23. package/dist/client/lib/chart/size.js +2 -0
  24. package/dist/client/lib/clipboard.js +2 -0
  25. package/dist/client/lib/color.js +2 -0
  26. package/dist/client/lib/date-format.js +2 -0
  27. package/dist/client/lib/edge-fade.js +2 -0
  28. package/dist/client/lib/number-format.js +2 -0
  29. package/dist/client/lib/overflow-actions-motion.js +2 -0
  30. package/dist/client/lib/overlay-trigger-timing.js +2 -0
  31. package/dist/client/lib/responsive-exit.js +2 -0
  32. package/dist/client/lib/search-filter.js +2 -0
  33. package/dist/client/lib/side-panel.js +2 -0
  34. package/dist/client/lib/split-pane.js +2 -0
  35. package/dist/client/lib/table-column-motion.js +2 -0
  36. package/dist/client/lib/table-responsive.js +2 -0
  37. package/dist/client/lib/table-selection-fade.js +2 -0
  38. package/dist/client/lib/table-truncation.js +2 -0
  39. package/dist/client/lib/text-motion/animation.js +2 -0
  40. package/dist/client/lib/text-motion/character.js +2 -0
  41. package/dist/client/lib/text-motion/color.js +2 -0
  42. package/dist/client/lib/text-motion/layout.js +2 -0
  43. package/dist/client/lib/text-motion/preference.js +2 -0
  44. package/dist/client/lib/text-motion/sequence.js +2 -0
  45. package/dist/client/lib/text-motion/typography.js +2 -0
  46. package/dist/client/lib/tooltip-delay.js +2 -0
  47. package/dist/client/lib/tooltip-motion-dismiss.js +2 -0
  48. package/dist/client/lib/tooltip-pointer-speed.js +2 -0
  49. package/dist/client/lib/truncate.js +2 -0
  50. package/dist/client/logic/frame-field-control.js +2 -0
  51. package/dist/client/logic/frame-motion-defaults.js +2 -0
  52. package/dist/client/logic/frame-prop-filter.js +2 -0
  53. package/dist/client/logic/geometry-cache.js +2 -0
  54. package/dist/client/logic/layout-flip.js +2 -0
  55. package/dist/client/logic/morph.js +2 -0
  56. package/dist/client/logic/motion-engine.js +2 -0
  57. package/dist/client/logic/motion-orchestration.js +2 -0
  58. package/dist/client/logic/motion-types.js +2 -0
  59. package/dist/client/logic/wc-adapter.js +2 -0
  60. package/dist/client/motion/bridge.js +2 -0
  61. package/dist/client/motion/content-crossfade.js +2 -0
  62. package/dist/client/motion/expand.js +2 -0
  63. package/dist/client/motion/fade-in.js +2 -0
  64. package/dist/client/motion/fade-out.js +2 -0
  65. package/dist/client/motion/morph.js +2 -0
  66. package/dist/client/motion/move.js +2 -0
  67. package/dist/client/motion/number.js +2 -0
  68. package/dist/client/motion/replace.js +2 -0
  69. package/dist/client/motion/rotate.css +2 -0
  70. package/dist/client/motion/rotate.js +2 -0
  71. package/dist/client/motion/scale-in.js +2 -0
  72. package/dist/client/motion/tokens.js +2 -0
  73. package/dist/client/motion/while-2xl.js +2 -0
  74. package/dist/client/motion/while-active.js +2 -0
  75. package/dist/client/motion/while-appear.js +2 -0
  76. package/dist/client/motion/while-click.js +2 -0
  77. package/dist/client/motion/while-collapsed.js +2 -0
  78. package/dist/client/motion/while-disabled.js +2 -0
  79. package/dist/client/motion/while-disappear.js +2 -0
  80. package/dist/client/motion/while-drag.js +2 -0
  81. package/dist/client/motion/while-editing.js +2 -0
  82. package/dist/client/motion/while-expanded.js +2 -0
  83. package/dist/client/motion/while-focus.js +2 -0
  84. package/dist/client/motion/while-hover.js +2 -0
  85. package/dist/client/motion/while-idle.js +2 -0
  86. package/dist/client/motion/while-key.js +2 -0
  87. package/dist/client/motion/while-lg.js +2 -0
  88. package/dist/client/motion/while-load.js +2 -0
  89. package/dist/client/motion/while-md.js +2 -0
  90. package/dist/client/motion/while-reload.js +2 -0
  91. package/dist/client/motion/while-scroll.js +2 -0
  92. package/dist/client/motion/while-sm.js +2 -0
  93. package/dist/client/motion/while-uploading.js +2 -0
  94. package/dist/client/motion/while-validating.js +2 -0
  95. package/dist/client/motion/while-xl.js +2 -0
  96. package/dist/client/motion/while-xs.js +2 -0
  97. package/dist/client/styles/auto-layout.css +3 -1
  98. package/dist/client/styles/backdrop.css +2 -0
  99. package/dist/client/styles/components.css +6 -4
  100. package/dist/client/styles/index.css +2 -0
  101. package/dist/client/styles/layout.css +8 -2
  102. package/dist/client/styles/scale.css +2 -0
  103. package/dist/client/styles/scrollbar.css +3 -1
  104. package/dist/client/styles/tokens.css +2 -0
  105. package/dist/client/vite-env.d.ts +2 -0
  106. package/dist/server/blocks/Sidebar.js +22 -16
  107. package/dist/server/blocks/index.js +2 -0
  108. package/dist/server/compat.js +2 -0
  109. package/dist/server/components/Text.js +15 -11
  110. package/dist/server/components/Tooltip.js +10 -10
  111. package/dist/server/context.js +2 -0
  112. package/dist/server/dev.js +2 -0
  113. package/dist/server/i18n/messages.d.ts +1 -1
  114. package/dist/server/i18n/messages.js +3 -1
  115. package/dist/server/index.js +2 -0
  116. package/dist/server/internal/code-block/prettier-svelte.d.ts +2 -0
  117. package/dist/server/internal/component-icon/index.js +2 -0
  118. package/dist/server/internal/snow-ui-logo/emoji-metrics.js +2 -0
  119. package/dist/server/keys.js +2 -0
  120. package/dist/server/lib/adaptive-contrast-renderer.js +2 -0
  121. package/dist/server/lib/chart/appearance-timeline.js +2 -0
  122. package/dist/server/lib/chart/arc-path.js +2 -0
  123. package/dist/server/lib/chart/colors.js +2 -0
  124. package/dist/server/lib/chart/size.js +2 -0
  125. package/dist/server/lib/clipboard.js +2 -0
  126. package/dist/server/lib/color.js +2 -0
  127. package/dist/server/lib/date-format.js +2 -0
  128. package/dist/server/lib/edge-fade.js +2 -0
  129. package/dist/server/lib/number-format.js +2 -0
  130. package/dist/server/lib/overflow-actions-motion.js +2 -0
  131. package/dist/server/lib/overlay-trigger-timing.js +2 -0
  132. package/dist/server/lib/responsive-exit.js +2 -0
  133. package/dist/server/lib/search-filter.js +2 -0
  134. package/dist/server/lib/side-panel.js +2 -0
  135. package/dist/server/lib/split-pane.js +2 -0
  136. package/dist/server/lib/table-column-motion.js +2 -0
  137. package/dist/server/lib/table-responsive.js +2 -0
  138. package/dist/server/lib/table-selection-fade.js +2 -0
  139. package/dist/server/lib/table-truncation.js +2 -0
  140. package/dist/server/lib/text-motion/animation.js +2 -0
  141. package/dist/server/lib/text-motion/character.js +2 -0
  142. package/dist/server/lib/text-motion/color.js +2 -0
  143. package/dist/server/lib/text-motion/layout.js +2 -0
  144. package/dist/server/lib/text-motion/preference.js +2 -0
  145. package/dist/server/lib/text-motion/sequence.js +2 -0
  146. package/dist/server/lib/text-motion/typography.js +2 -0
  147. package/dist/server/lib/tooltip-delay.js +2 -0
  148. package/dist/server/lib/tooltip-motion-dismiss.js +2 -0
  149. package/dist/server/lib/tooltip-pointer-speed.js +2 -0
  150. package/dist/server/lib/truncate.js +2 -0
  151. package/dist/server/logic/frame-field-control.js +2 -0
  152. package/dist/server/logic/frame-motion-defaults.js +2 -0
  153. package/dist/server/logic/frame-prop-filter.js +2 -0
  154. package/dist/server/logic/geometry-cache.js +2 -0
  155. package/dist/server/logic/layout-flip.js +2 -0
  156. package/dist/server/logic/morph.js +2 -0
  157. package/dist/server/logic/motion-engine.js +2 -0
  158. package/dist/server/logic/motion-orchestration.js +2 -0
  159. package/dist/server/logic/motion-types.js +2 -0
  160. package/dist/server/logic/wc-adapter.js +2 -0
  161. package/dist/server/motion/bridge.js +2 -0
  162. package/dist/server/motion/content-crossfade.js +2 -0
  163. package/dist/server/motion/expand.js +2 -0
  164. package/dist/server/motion/fade-in.js +2 -0
  165. package/dist/server/motion/fade-out.js +2 -0
  166. package/dist/server/motion/morph.js +2 -0
  167. package/dist/server/motion/move.js +2 -0
  168. package/dist/server/motion/number.js +2 -0
  169. package/dist/server/motion/replace.js +2 -0
  170. package/dist/server/motion/rotate.css +2 -0
  171. package/dist/server/motion/rotate.js +2 -0
  172. package/dist/server/motion/scale-in.js +2 -0
  173. package/dist/server/motion/tokens.js +2 -0
  174. package/dist/server/motion/while-2xl.js +2 -0
  175. package/dist/server/motion/while-active.js +2 -0
  176. package/dist/server/motion/while-appear.js +2 -0
  177. package/dist/server/motion/while-click.js +2 -0
  178. package/dist/server/motion/while-collapsed.js +2 -0
  179. package/dist/server/motion/while-disabled.js +2 -0
  180. package/dist/server/motion/while-disappear.js +2 -0
  181. package/dist/server/motion/while-drag.js +2 -0
  182. package/dist/server/motion/while-editing.js +2 -0
  183. package/dist/server/motion/while-expanded.js +2 -0
  184. package/dist/server/motion/while-focus.js +2 -0
  185. package/dist/server/motion/while-hover.js +2 -0
  186. package/dist/server/motion/while-idle.js +2 -0
  187. package/dist/server/motion/while-key.js +2 -0
  188. package/dist/server/motion/while-lg.js +2 -0
  189. package/dist/server/motion/while-load.js +2 -0
  190. package/dist/server/motion/while-md.js +2 -0
  191. package/dist/server/motion/while-reload.js +2 -0
  192. package/dist/server/motion/while-scroll.js +2 -0
  193. package/dist/server/motion/while-sm.js +2 -0
  194. package/dist/server/motion/while-uploading.js +2 -0
  195. package/dist/server/motion/while-validating.js +2 -0
  196. package/dist/server/motion/while-xl.js +2 -0
  197. package/dist/server/motion/while-xs.js +2 -0
  198. package/dist/server/styles/auto-layout.css +3 -1
  199. package/dist/server/styles/backdrop.css +2 -0
  200. package/dist/server/styles/components.css +6 -4
  201. package/dist/server/styles/index.css +2 -0
  202. package/dist/server/styles/layout.css +8 -2
  203. package/dist/server/styles/scale.css +2 -0
  204. package/dist/server/styles/scrollbar.css +3 -1
  205. package/dist/server/styles/tokens.css +2 -0
  206. package/dist/server/vite-env.d.ts +2 -0
  207. package/llms.txt +5 -0
  208. package/package.json +12 -5
@@ -1503,230 +1503,235 @@ export default function Tooltip($$anchor, $$props) {
1503
1503
 
1504
1504
  {
1505
1505
  var consequent_6 = ($$anchor) => {
1506
- Frame($$anchor, {
1507
- enableResponsive: false,
1508
- enableContext: false,
1509
- enableDefaultMotion: false,
1510
- enableScaleObserver: false,
1511
- use: [portal],
1512
- get loopMotion() {
1513
- return $.get(renderedOverlay).loopMotion;
1514
- },
1515
- class: 'snowui-tooltip-portal',
1516
- get style() {
1517
- return $.get(portalStyle);
1518
- },
1506
+ {
1507
+ let $0 = $.derived(() => $.get(renderedOverlay)?.loopMotion);
1508
+
1509
+ Frame($$anchor, {
1510
+ enableResponsive: false,
1511
+ enableContext: false,
1512
+ enableDefaultMotion: false,
1513
+ enableScaleObserver: false,
1514
+ use: [portal],
1515
+ get loopMotion() {
1516
+ return $.get($0);
1517
+ },
1518
+ class: 'snowui-tooltip-portal',
1519
+ get style() {
1520
+ return $.get(portalStyle);
1521
+ },
1519
1522
 
1520
- get 'data-ready'() {
1521
- return $.get(portalReady);
1522
- },
1523
+ get 'data-ready'() {
1524
+ return $.get(portalReady);
1525
+ },
1523
1526
 
1524
- get element() {
1525
- return $.get(tooltipRef);
1526
- },
1527
+ get element() {
1528
+ return $.get(tooltipRef);
1529
+ },
1527
1530
 
1528
- set element($$value) {
1529
- $.set(tooltipRef, $$value, true);
1530
- },
1531
+ set element($$value) {
1532
+ $.set(tooltipRef, $$value, true);
1533
+ },
1531
1534
 
1532
- children: ($$anchor, $$slotProps) => {
1533
- var div = root_3();
1534
- var node_3 = $.child(div);
1535
+ children: ($$anchor, $$slotProps) => {
1536
+ var div = root_3();
1537
+ var node_3 = $.child(div);
1538
+
1539
+ {
1540
+ let $0 = $.derived(() => $.get(renderedOverlay)?.variant);
1541
+ let $1 = $.derived(() => $.get(sizeMotionEnabled) && $.get(animatedShellSize) === undefined);
1542
+
1543
+ let $2 = $.derived(() => [
1544
+ "snowui-tooltip-content",
1545
+ "snowui-tooltip-size-shell",
1546
+ "snowui-rounded-rectangle",
1547
+ `snowui-tooltip-pos-${$.get(finalPosition)}`,
1548
+ $.get(renderedOverlay)?.className
1549
+ ].filter(Boolean).join(" "));
1550
+
1551
+ let $3 = $.derived(() => [$.get(sizeShellStyle), $.get(renderedOverlay)?.style].filter(Boolean).join("; "));
1552
+
1553
+ Frame(node_3, $.spread_props(
1554
+ {
1555
+ enableResponsive: false,
1556
+ enableContext: false,
1557
+ enableScaleObserver: false,
1558
+ get whileActive() {
1559
+ return $.get(effectiveSizeMotion);
1560
+ },
1561
+
1562
+ get 'data-variant'() {
1563
+ return $.get($0);
1564
+ },
1565
+
1566
+ get 'data-size-motion'() {
1567
+ return $.get($1);
1568
+ },
1569
+
1570
+ get class() {
1571
+ return $.get($2);
1572
+ },
1573
+
1574
+ get style() {
1575
+ return $.get($3);
1576
+ },
1577
+ role: 'tooltip',
1578
+ onmouseenter: retainOverlay,
1579
+ onmouseleave: releaseOverlay
1580
+ },
1581
+ () => $.get(renderedOverlay)?.rest,
1582
+ {
1583
+ get element() {
1584
+ return $.get(sizeShellRef);
1585
+ },
1535
1586
 
1536
- {
1537
- let $0 = $.derived(() => $.get(sizeMotionEnabled) && $.get(animatedShellSize) === undefined);
1587
+ set element($$value) {
1588
+ $.set(sizeShellRef, $$value, true);
1589
+ },
1538
1590
 
1539
- let $1 = $.derived(() => [
1540
- "snowui-tooltip-content",
1541
- "snowui-tooltip-size-shell",
1542
- "snowui-rounded-rectangle",
1543
- `snowui-tooltip-pos-${$.get(finalPosition)}`,
1544
- $.get(renderedOverlay).className
1545
- ].filter(Boolean).join(" "));
1591
+ children: ($$anchor, $$slotProps) => {
1592
+ var fragment_4 = root_2();
1593
+ var node_4 = $.sibling($.first_child(fragment_4), 2);
1546
1594
 
1547
- let $2 = $.derived(() => [$.get(sizeShellStyle), $.get(renderedOverlay).style].filter(Boolean).join("; "));
1595
+ Frame(node_4, {
1596
+ enableResponsive: false,
1597
+ enableContext: false,
1598
+ enableDefaultMotion: false,
1599
+ enableScaleObserver: false,
1600
+ get currentState() {
1601
+ return $.get(effectivePortalLifecycleState);
1602
+ },
1548
1603
 
1549
- Frame(node_3, $.spread_props(
1550
- {
1551
- enableResponsive: false,
1552
- enableContext: false,
1553
- enableScaleObserver: false,
1554
- get whileActive() {
1555
- return $.get(effectiveSizeMotion);
1556
- },
1604
+ get whileAppear() {
1605
+ return $.get(effectivePortalAppearMotion);
1606
+ },
1557
1607
 
1558
- get 'data-variant'() {
1559
- return $.get(renderedOverlay).variant;
1560
- },
1608
+ get whileDisappear() {
1609
+ return $.get(effectivePortalDisappearMotion);
1610
+ },
1611
+ class: 'snowui-tooltip-foreground snowui-tooltip-shared-foreground',
1612
+ get style() {
1613
+ return $.get(foregroundStyle);
1614
+ },
1561
1615
 
1562
- get 'data-size-motion'() {
1563
- return $.get($0);
1564
- },
1616
+ children: ($$anchor, $$slotProps) => {
1617
+ var fragment_5 = root_1();
1618
+ var node_5 = $.first_child(fragment_5);
1565
1619
 
1566
- get class() {
1567
- return $.get($1);
1568
- },
1620
+ {
1621
+ var consequent_3 = ($$anchor) => {
1622
+ var span_1 = root();
1623
+ var span_2 = $.child(span_1);
1624
+ var node_6 = $.child(span_2);
1569
1625
 
1570
- get style() {
1571
- return $.get($2);
1572
- },
1573
- role: 'tooltip',
1574
- onmouseenter: retainOverlay,
1575
- onmouseleave: releaseOverlay
1576
- },
1577
- () => $.get(renderedOverlay).rest,
1578
- {
1579
- get element() {
1580
- return $.get(sizeShellRef);
1581
- },
1626
+ {
1627
+ var consequent_1 = ($$anchor) => {
1628
+ var fragment_6 = $.comment();
1629
+ var node_7 = $.first_child(fragment_6);
1582
1630
 
1583
- set element($$value) {
1584
- $.set(sizeShellRef, $$value, true);
1585
- },
1631
+ $.snippet(node_7, () => $.get(outgoingOverlay).children);
1632
+ $.append($$anchor, fragment_6);
1633
+ };
1586
1634
 
1587
- children: ($$anchor, $$slotProps) => {
1588
- var fragment_4 = root_2();
1589
- var node_4 = $.sibling($.first_child(fragment_4), 2);
1590
-
1591
- Frame(node_4, {
1592
- enableResponsive: false,
1593
- enableContext: false,
1594
- enableDefaultMotion: false,
1595
- enableScaleObserver: false,
1596
- get currentState() {
1597
- return $.get(effectivePortalLifecycleState);
1598
- },
1599
-
1600
- get whileAppear() {
1601
- return $.get(effectivePortalAppearMotion);
1602
- },
1603
-
1604
- get whileDisappear() {
1605
- return $.get(effectivePortalDisappearMotion);
1606
- },
1607
- class: 'snowui-tooltip-foreground snowui-tooltip-shared-foreground',
1608
- get style() {
1609
- return $.get(foregroundStyle);
1610
- },
1611
-
1612
- children: ($$anchor, $$slotProps) => {
1613
- var fragment_5 = root_1();
1614
- var node_5 = $.first_child(fragment_5);
1615
-
1616
- {
1617
- var consequent_3 = ($$anchor) => {
1618
- var span_1 = root();
1619
- var span_2 = $.child(span_1);
1620
- var node_6 = $.child(span_2);
1621
-
1622
- {
1623
- var consequent_1 = ($$anchor) => {
1624
- var fragment_6 = $.comment();
1625
- var node_7 = $.first_child(fragment_6);
1626
-
1627
- $.snippet(node_7, () => $.get(outgoingOverlay).children);
1628
- $.append($$anchor, fragment_6);
1629
- };
1630
-
1631
- var consequent_2 = ($$anchor) => {
1632
- var text = $.text();
1633
-
1634
- $.template_effect(() => $.set_text(text, $.get(outgoingOverlay).fallbackContent));
1635
- $.append($$anchor, text);
1636
- };
1637
-
1638
- $.if(node_6, ($$render) => {
1639
- if ($.get(outgoingOverlay).children) $$render(consequent_1); else if ($.get(outgoingOverlay).fallbackContent) $$render(consequent_2, 1);
1640
- });
1641
- }
1635
+ var consequent_2 = ($$anchor) => {
1636
+ var text = $.text();
1642
1637
 
1643
- $.reset(span_2);
1644
- $.bind_this(span_2, ($$value) => $.set(outgoingContentRef, $$value), () => $.get(outgoingContentRef));
1645
- $.reset(span_1);
1646
- $.bind_this(span_1, ($$value) => $.set(outgoingLayerRef, $$value), () => $.get(outgoingLayerRef));
1638
+ $.template_effect(() => $.set_text(text, $.get(outgoingOverlay).fallbackContent));
1639
+ $.append($$anchor, text);
1640
+ };
1647
1641
 
1648
- $.template_effect(() => {
1649
- $.set_attribute(span_1, 'data-move-mode', $.get(moveMode));
1650
- $.set_style(span_1, $.get(outgoingLayerStyle));
1651
- });
1642
+ $.if(node_6, ($$render) => {
1643
+ if ($.get(outgoingOverlay).children) $$render(consequent_1); else if ($.get(outgoingOverlay).fallbackContent) $$render(consequent_2, 1);
1644
+ });
1645
+ }
1652
1646
 
1653
- $.append($$anchor, span_1);
1654
- };
1647
+ $.reset(span_2);
1648
+ $.bind_this(span_2, ($$value) => $.set(outgoingContentRef, $$value), () => $.get(outgoingContentRef));
1649
+ $.reset(span_1);
1650
+ $.bind_this(span_1, ($$value) => $.set(outgoingLayerRef, $$value), () => $.get(outgoingLayerRef));
1655
1651
 
1656
- $.if(node_5, ($$render) => {
1657
- if ($.get(outgoingOverlay)) $$render(consequent_3);
1658
- });
1659
- }
1652
+ $.template_effect(() => {
1653
+ $.set_attribute(span_1, 'data-move-mode', $.get(moveMode));
1654
+ $.set_style(span_1, $.get(outgoingLayerStyle));
1655
+ });
1660
1656
 
1661
- var span_3 = $.sibling(node_5, 2);
1662
- var span_4 = $.child(span_3);
1663
- var node_8 = $.child(span_4);
1657
+ $.append($$anchor, span_1);
1658
+ };
1664
1659
 
1665
- {
1666
- var consequent_4 = ($$anchor) => {
1667
- var fragment_8 = $.comment();
1668
- var node_9 = $.first_child(fragment_8);
1660
+ $.if(node_5, ($$render) => {
1661
+ if ($.get(outgoingOverlay)) $$render(consequent_3);
1662
+ });
1663
+ }
1669
1664
 
1670
- $.snippet(node_9, () => $.get(renderedOverlay).children);
1671
- $.append($$anchor, fragment_8);
1672
- };
1665
+ var span_3 = $.sibling(node_5, 2);
1666
+ var span_4 = $.child(span_3);
1667
+ var node_8 = $.child(span_4);
1673
1668
 
1674
- var consequent_5 = ($$anchor) => {
1675
- var text_1 = $.text();
1669
+ {
1670
+ var consequent_4 = ($$anchor) => {
1671
+ var fragment_8 = $.comment();
1672
+ var node_9 = $.first_child(fragment_8);
1676
1673
 
1677
- $.template_effect(() => $.set_text(text_1, $.get(renderedOverlay).fallbackContent));
1678
- $.append($$anchor, text_1);
1679
- };
1674
+ $.snippet(node_9, () => $.get(renderedOverlay)?.children ?? $.noop);
1675
+ $.append($$anchor, fragment_8);
1676
+ };
1680
1677
 
1681
- $.if(node_8, ($$render) => {
1682
- if ($.get(renderedOverlay).children) $$render(consequent_4); else if ($.get(renderedOverlay).fallbackContent) $$render(consequent_5, 1);
1683
- });
1684
- }
1678
+ var consequent_5 = ($$anchor) => {
1679
+ var text_1 = $.text();
1685
1680
 
1686
- $.reset(span_4);
1687
- $.bind_this(span_4, ($$value) => $.set(sizeContentRef, $$value), () => $.get(sizeContentRef));
1688
- $.reset(span_3);
1689
- $.bind_this(span_3, ($$value) => $.set(incomingLayerRef, $$value), () => $.get(incomingLayerRef));
1681
+ $.template_effect(() => $.set_text(text_1, $.get(renderedOverlay)?.fallbackContent));
1682
+ $.append($$anchor, text_1);
1683
+ };
1690
1684
 
1691
- $.template_effect(() => {
1692
- $.set_attribute(span_3, 'data-move-mode', $.get(moveMode));
1693
- $.set_attribute(span_3, 'data-layer-ready', $.get(incomingLayerReady));
1694
- $.set_style(span_3, $.get(incomingLayerStyle));
1695
- });
1685
+ $.if(node_8, ($$render) => {
1686
+ if ($.get(renderedOverlay)?.children) $$render(consequent_4); else if ($.get(renderedOverlay)?.fallbackContent) $$render(consequent_5, 1);
1687
+ });
1688
+ }
1696
1689
 
1697
- $.append($$anchor, fragment_5);
1698
- },
1699
- $$slots: { default: true }
1700
- });
1690
+ $.reset(span_4);
1691
+ $.bind_this(span_4, ($$value) => $.set(sizeContentRef, $$value), () => $.get(sizeContentRef));
1692
+ $.reset(span_3);
1693
+ $.bind_this(span_3, ($$value) => $.set(incomingLayerRef, $$value), () => $.get(incomingLayerRef));
1701
1694
 
1702
- $.append($$anchor, fragment_4);
1703
- },
1704
- $$slots: { default: true }
1705
- }
1706
- ));
1707
- }
1695
+ $.template_effect(() => {
1696
+ $.set_attribute(span_3, 'data-move-mode', $.get(moveMode));
1697
+ $.set_attribute(span_3, 'data-layer-ready', $.get(incomingLayerReady));
1698
+ $.set_style(span_3, $.get(incomingLayerStyle));
1699
+ });
1708
1700
 
1709
- $.reset(div);
1710
-
1711
- $.template_effect(() => {
1712
- $.set_attribute(div, 'data-move-mode', $.get(moveMode));
1713
- $.set_attribute(div, 'data-switch-phase', $.get(switchPhase));
1714
- $.set_attribute(div, 'data-retargeting', $.get(switchRetargeting));
1715
- $.set_attribute(div, 'data-rapid-retarget', $.get(renderedOverlay).rapidRetarget);
1716
- $.set_attribute(div, 'data-shell-duration', $.get(switchShellDurationMs));
1717
- $.set_attribute(div, 'data-width-duration', $.get(switchWidthDurationMs));
1718
- $.set_attribute(div, 'data-width-rebound', $.get(renderedOverlay).widthRebound);
1719
- $.set_attribute(div, 'data-content-duration', $.get(switchContentDurationMs));
1720
- $.set_attribute(div, 'data-shell-distance', $.get(switchShellDistancePx));
1721
- $.set_attribute(div, 'data-content-distance', $.get(switchContentDistancePx));
1722
- $.set_attribute(div, 'data-content-speed-profile', $.get(switchContentSpeedProfile));
1723
- $.set_style(div, $.get(motionShellStyle));
1724
- });
1725
-
1726
- $.append($$anchor, div);
1727
- },
1728
- $$slots: { default: true }
1729
- });
1701
+ $.append($$anchor, fragment_5);
1702
+ },
1703
+ $$slots: { default: true }
1704
+ });
1705
+
1706
+ $.append($$anchor, fragment_4);
1707
+ },
1708
+ $$slots: { default: true }
1709
+ }
1710
+ ));
1711
+ }
1712
+
1713
+ $.reset(div);
1714
+
1715
+ $.template_effect(() => {
1716
+ $.set_attribute(div, 'data-move-mode', $.get(moveMode));
1717
+ $.set_attribute(div, 'data-switch-phase', $.get(switchPhase));
1718
+ $.set_attribute(div, 'data-retargeting', $.get(switchRetargeting));
1719
+ $.set_attribute(div, 'data-rapid-retarget', $.get(renderedOverlay)?.rapidRetarget);
1720
+ $.set_attribute(div, 'data-shell-duration', $.get(switchShellDurationMs));
1721
+ $.set_attribute(div, 'data-width-duration', $.get(switchWidthDurationMs));
1722
+ $.set_attribute(div, 'data-width-rebound', $.get(renderedOverlay)?.widthRebound);
1723
+ $.set_attribute(div, 'data-content-duration', $.get(switchContentDurationMs));
1724
+ $.set_attribute(div, 'data-shell-distance', $.get(switchShellDistancePx));
1725
+ $.set_attribute(div, 'data-content-distance', $.get(switchContentDistancePx));
1726
+ $.set_attribute(div, 'data-content-speed-profile', $.get(switchContentSpeedProfile));
1727
+ $.set_style(div, $.get(motionShellStyle));
1728
+ });
1729
+
1730
+ $.append($$anchor, div);
1731
+ },
1732
+ $$slots: { default: true }
1733
+ });
1734
+ }
1730
1735
  };
1731
1736
 
1732
1737
  $.if(node_2, ($$render) => {
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  /**
2
4
  * 全局上下文定义 (Global Context Definitions)
3
5
  *
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ /* SnowUI source notice | LICENSE 2.2.0: ../LICENSE
3
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
2
4
  // Dev entry — use `playground/` for component development
3
5
  // Run: cd ../playground && pnpm dev
4
6
  document.getElementById("app").innerHTML =
@@ -1,4 +1,4 @@
1
- /** SnowUI 组件内置 UI 文案 catalog。文档: ../../../specs/LocalizationSpec.md */
1
+ /** SnowUI 组件内置 UI 文案 catalog。文档: ../../../specs/maintainers/LocalizationSpec.md */
2
2
  export declare const DEFAULT_LOCALE = "zh-CN";
3
3
  export type SnowUIMessageKey = "colorSchemeButton.toLight" | "colorSchemeButton.toDark" | "styleButton.toSnowUI" | "styleButton.toApple" | "sidePanel.placement.toInline" | "sidePanel.placement.toFloating" | "sidePanel.previous" | "sidePanel.next" | "sidePanel.copy" | "sidePanel.delete" | "sidePanel.cancel" | "sidePanel.save" | "sidePanel.close" | "dialog.close";
4
4
  export type SnowUIMessageValues = Record<string, string | number>;
@@ -1,4 +1,6 @@
1
- /** SnowUI 组件内置 UI 文案 catalog。文档: ../../../specs/LocalizationSpec.md */
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
+ /** SnowUI 组件内置 UI 文案 catalog。文档: ../../../specs/maintainers/LocalizationSpec.md */
2
4
  export const DEFAULT_LOCALE = "zh-CN";
3
5
  export const SNOWUI_MESSAGES = {
4
6
  "zh-CN": {
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  // SnowUI 许可入口:阅读或使用本公开入口前先读 ../LICENSE;同任务同许可版本去重,源码修改与框架移植须有相应权限。
2
4
  export { default as Accordion } from "./components/Accordion.js";
3
5
  export { default as AccordionItem } from "./components/AccordionItem.js";
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  // 插件 browser 子路径尚未声明类型,沿用 Prettier 官方 Plugin 接口。
2
4
  declare module "prettier-plugin-svelte/browser" {
3
5
  import type { Plugin } from "prettier";
@@ -1 +1,3 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  export { default as ComponentIcon } from "./ComponentIcon.js";
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  // 品牌专用:以系统 emoji 的实际着色像素边界匹配 32×32 图标,保持原始比例。
2
4
  export const LOGO_EMOJI_FONT = '"Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif';
3
5
  const cache = new Map();
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  /**
2
4
  * Context Keys
3
5
  *
@@ -1,2 +1,4 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  /** 按需导入的 SVG 渲染入口;不注入 Frame,也不在模块顶层访问 DOM。 */
2
4
  export { default as AdaptiveContrastMask } from "./AdaptiveContrastMask.js";
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  import { clamp } from "./geometry.js";
2
4
  export const SEGMENT_APPEARANCE_FILL_DURATION = 500;
3
5
  export const SEGMENT_APPEARANCE_OPACITY_DURATION = 750;
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  import { arc } from "d3-shape";
2
4
  import { clamp, formatPoint, normalizePositiveAngle } from "./geometry.js";
3
5
  export function buildArcPath(cx, cy, outer, inner, start, end, corner, separator = 0) {
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  import { resolveSnowUIColor, } from "../../index.js";
2
4
  export const DEFAULT_CHART_COLORS = [
3
5
  "var(--primary, #111111)",
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  import { resizeManager } from "../../index.js";
2
4
  import { toNumber } from "./geometry.js";
3
5
  export function watchCartesianChartSize(element, onChange) {
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  export async function writeClipboardText(text) {
2
4
  if (typeof navigator === "undefined" ||
3
5
  !navigator.clipboard ||
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  export const SNOWUI_COLOR_TOKENS = {
2
4
  StaticBlack100: "--static-black-100",
3
5
  StaticBlack80: "--static-black-80",
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  export const DEFAULT_DATE_LOCALE = "en-US";
2
4
  export const DEFAULT_DATE_EMPTY_VALUE = "—";
3
5
  export function mergeDateFormatOptions(...options) {
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  // 内容边缘渐隐遮罩(Edge Fade Mask)共享能力。
2
4
  //
3
5
  // 用途:当“悬浮操作层”(覆盖在内容之上的按钮 / 复选框 / 操作块)浮在内容之上时,
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  export const DEFAULT_NUMBER_VALUE_LABEL_FRACTION_DIGITS = 2;
2
4
  export const DEFAULT_NUMBER_PERCENT_FRACTION_DIGITS = 1;
3
5
  export const DEFAULT_NUMBER_COMPACT_THRESHOLD = 1_000_000;
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  import { RESIZE_MOTION } from '../motion/presets/resize.js';
2
4
  /** 操作组私有布局适配;Flex 决定终点,独立视觉壳只做平移,不缩放 Button。 */
3
5
  export function createOverflowActionsMotion(root) {
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  /**
2
4
  * overlay-trigger-timing.ts
3
5
  * v1.4.0
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  import { RESIZE_MOTION } from "../motion/presets/resize.js";
2
4
  /** 宽度驱动的退出进度;requiredWidth 是宿主下一次收起项目的宽度阈值。 */
3
5
  export function getResponsiveExitOpacity(availableWidth, requiredWidth, fadeDistance) {
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  /**
2
4
  * 搜索过滤工具 (Search Filter Utilities)
3
5
  * v1.0.0
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  import { SIDE_PANEL_APPEAR_MOTION, SIDE_PANEL_DISAPPEAR_MOTION, } from "../motion/presets/effects.js";
2
4
  import { resolveMotionCssTiming } from "../motion/spring.js";
3
5
  export const SIDE_PANEL_INLINE_GAP_PX = 16;
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  /**
2
4
  * 分割面板 Action (Split Pane Action)
3
5
  *
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  import { RESIZE_MOTION } from '../motion/presets/resize.js';
2
4
  const contentSelector = ':scope > .snowui-table-cell-content, :scope > .snowui-table-head-content, :scope > .snowui-table-sort';
3
5
  /** 原生网格始终保持自然布局,只有内容层做 FLIP 位移和宽度揭示。 */
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  import { createResponsiveExit } from "./responsive-exit.js";
2
4
  import { createTableColumnMotion } from "./table-column-motion.js";
3
5
  import { resizeManager } from "../logic/observer.js";
@@ -1,3 +1,5 @@
1
+ /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
2
+ 复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
1
3
  import { createEdgeFadeMaskImage } from "./edge-fade.js";
2
4
  import { resizeManager } from "../logic/observer.js";
3
5
  /** Table 私有布局适配:遮住实际 Checkbox,向内容侧保留固定 Token 长度的过渡。 */