@snowui-design-system/components 0.3.0-alpha.0 → 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.
- package/AGENTS.md +21 -0
- package/LICENSE +133 -89
- package/README.md +32 -11
- package/component-catalog.json +506 -106
- package/dist/client/blocks/Sidebar.js +21 -7
- package/dist/client/blocks/SidebarItem.js +2 -2
- package/dist/client/blocks/SidebarSection.js +2 -2
- package/dist/client/blocks/index.js +2 -0
- package/dist/client/compat.d.ts +1 -1
- package/dist/client/compat.js +3 -1
- package/dist/client/components/BlurText.js +2 -2
- package/dist/client/components/DataTable.js +2 -2
- package/dist/client/components/FlowText.js +2 -2
- package/dist/client/components/Frame.d.ts +9 -0
- package/dist/client/components/Frame.js +82 -24
- package/dist/client/components/GradientMotion.d.ts +1 -1
- package/dist/client/components/GradientMotion.js +2 -2
- package/dist/client/components/NumberFlow.js +4 -4
- package/dist/client/components/NumericText.js +2 -2
- package/dist/client/components/ScrambleText.js +2 -2
- package/dist/client/components/SidePanel.js +3 -3
- package/dist/client/components/SlotText.js +2 -2
- package/dist/client/components/TableCell.js +1 -1
- package/dist/client/components/Text.js +36 -20
- package/dist/client/components/Toaster.js +1 -1
- package/dist/client/components/Tooltip.js +200 -195
- package/dist/client/context.js +2 -0
- package/dist/client/dev.js +2 -0
- package/dist/client/i18n/messages.d.ts +1 -1
- package/dist/client/i18n/messages.js +3 -1
- package/dist/client/index.d.ts +0 -1
- package/dist/client/index.js +5 -5
- package/dist/client/internal/code-block/prettier-svelte.d.ts +2 -0
- package/dist/client/internal/component-icon/index.js +2 -0
- package/dist/client/internal/snow-ui-logo/Wordmark.js +1 -1
- package/dist/client/internal/snow-ui-logo/emoji-metrics.js +2 -0
- package/dist/client/keys.js +2 -0
- package/dist/client/lib/adaptive-contrast-renderer.js +2 -0
- package/dist/client/lib/chart/appearance-timeline.js +2 -0
- package/dist/client/lib/chart/arc-path.js +2 -0
- package/dist/client/lib/chart/colors.js +2 -0
- package/dist/client/lib/chart/size.js +2 -0
- package/dist/client/lib/clipboard.js +2 -0
- package/dist/client/lib/color.js +2 -0
- package/dist/client/lib/date-format.js +2 -0
- package/dist/client/lib/edge-fade.js +3 -1
- package/dist/client/lib/number-format.js +2 -0
- package/dist/client/lib/overflow-actions-motion.js +2 -0
- package/dist/client/lib/overlay-trigger-timing.js +2 -0
- package/dist/client/lib/resizable.d.ts +1 -1
- package/dist/client/lib/responsive-exit.js +2 -0
- package/dist/client/lib/search-filter.js +2 -0
- package/dist/client/lib/side-panel.js +2 -0
- package/dist/client/lib/split-pane.js +2 -0
- package/dist/client/lib/table-column-motion.js +2 -0
- package/dist/client/lib/table-responsive.js +2 -0
- package/dist/client/lib/table-selection-fade.js +2 -0
- package/dist/client/lib/table-truncation.js +2 -0
- package/dist/client/lib/text-motion/animation.js +2 -0
- package/dist/client/lib/text-motion/character.js +2 -0
- package/dist/client/lib/text-motion/color.js +2 -0
- package/dist/client/lib/text-motion/layout.js +2 -0
- package/dist/client/lib/text-motion/preference.js +2 -0
- package/dist/client/lib/text-motion/sequence.js +2 -0
- package/dist/client/lib/text-motion/typography.js +2 -0
- package/dist/client/lib/tooltip-delay.js +2 -0
- package/dist/client/lib/tooltip-motion-dismiss.js +2 -0
- package/dist/client/lib/tooltip-pointer-speed.js +2 -0
- package/dist/client/lib/truncate.js +2 -0
- package/dist/client/logic/frame-field-control.js +2 -0
- package/dist/client/logic/frame-motion-defaults.js +2 -0
- package/dist/client/logic/frame-motion.d.ts +15 -23
- package/dist/client/logic/frame-motion.js +196 -30
- package/dist/client/logic/frame-prop-filter.js +2 -0
- package/dist/client/logic/frame-state.d.ts +2 -14
- package/dist/client/logic/frame-state.js +60 -9
- package/dist/client/logic/geometry-cache.js +2 -0
- package/dist/client/logic/layout-flip.js +2 -0
- package/dist/client/logic/morph.js +2 -0
- package/dist/client/logic/motion-engine.js +2 -0
- package/dist/client/logic/motion-orchestration.js +2 -0
- package/dist/client/logic/motion-types.js +2 -0
- package/dist/client/logic/wc-adapter.js +2 -0
- package/dist/client/motion/bridge.js +2 -0
- package/dist/client/motion/content-crossfade.js +2 -0
- package/dist/client/motion/expand.js +2 -0
- package/dist/client/motion/fade-in.js +2 -0
- package/dist/client/motion/fade-out.js +2 -0
- package/dist/client/motion/morph.js +2 -0
- package/dist/client/motion/move.js +2 -0
- package/dist/client/motion/number.d.ts +3 -3
- package/dist/client/motion/number.js +5 -3
- package/dist/client/motion/replace.js +2 -0
- package/dist/client/motion/rotate.css +2 -0
- package/dist/client/motion/rotate.js +2 -0
- package/dist/client/motion/scale-in.js +2 -0
- package/dist/client/motion/tokens.js +2 -0
- package/dist/client/motion/while-2xl.js +2 -0
- package/dist/client/motion/while-active.js +2 -0
- package/dist/client/motion/while-appear.js +2 -0
- package/dist/client/motion/while-click.js +2 -0
- package/dist/client/motion/while-collapsed.js +2 -0
- package/dist/client/motion/while-disabled.js +2 -0
- package/dist/client/motion/while-disappear.js +2 -0
- package/dist/client/motion/while-drag.js +2 -0
- package/dist/client/motion/while-editing.js +2 -0
- package/dist/client/motion/while-expanded.js +2 -0
- package/dist/client/motion/while-focus.js +2 -0
- package/dist/client/motion/while-hover.js +2 -0
- package/dist/client/motion/while-idle.js +2 -0
- package/dist/client/motion/while-key.js +2 -0
- package/dist/client/motion/while-lg.js +2 -0
- package/dist/client/motion/while-load.js +2 -0
- package/dist/client/motion/while-md.js +2 -0
- package/dist/client/motion/while-reload.js +2 -0
- package/dist/client/motion/while-scroll.js +2 -0
- package/dist/client/motion/while-sm.js +2 -0
- package/dist/client/motion/while-uploading.js +2 -0
- package/dist/client/motion/while-validating.js +2 -0
- package/dist/client/motion/while-xl.js +2 -0
- package/dist/client/motion/while-xs.js +2 -0
- package/dist/client/styles/auto-layout.css +3 -1
- package/dist/client/styles/backdrop.css +2 -0
- package/dist/client/styles/components.css +20 -18
- package/dist/client/styles/index.css +2 -0
- package/dist/client/styles/layout.css +9 -3
- package/dist/client/styles/scale.css +2 -0
- package/dist/client/styles/scrollbar.css +3 -1
- package/dist/client/styles/tokens.css +2 -0
- package/dist/client/vite-env.d.ts +2 -0
- package/dist/server/blocks/Sidebar.js +24 -18
- package/dist/server/blocks/SidebarItem.js +2 -2
- package/dist/server/blocks/SidebarSection.js +2 -2
- package/dist/server/blocks/index.js +2 -0
- package/dist/server/compat.d.ts +1 -1
- package/dist/server/compat.js +3 -1
- package/dist/server/components/BlurText.js +2 -2
- package/dist/server/components/DataTable.js +2 -2
- package/dist/server/components/FlowText.js +2 -2
- package/dist/server/components/Frame.d.ts +9 -0
- package/dist/server/components/Frame.js +52 -24
- package/dist/server/components/GradientMotion.d.ts +1 -1
- package/dist/server/components/GradientMotion.js +2 -2
- package/dist/server/components/NumberFlow.js +4 -4
- package/dist/server/components/NumericText.js +2 -2
- package/dist/server/components/ScrambleText.js +2 -2
- package/dist/server/components/SidePanel.js +3 -3
- package/dist/server/components/SlotText.js +2 -2
- package/dist/server/components/TableCell.js +1 -1
- package/dist/server/components/Text.js +15 -11
- package/dist/server/components/Toaster.js +1 -1
- package/dist/server/components/Tooltip.js +10 -10
- package/dist/server/context.js +2 -0
- package/dist/server/dev.js +2 -0
- package/dist/server/i18n/messages.d.ts +1 -1
- package/dist/server/i18n/messages.js +3 -1
- package/dist/server/index.d.ts +0 -1
- package/dist/server/index.js +5 -5
- package/dist/server/internal/code-block/prettier-svelte.d.ts +2 -0
- package/dist/server/internal/component-icon/index.js +2 -0
- package/dist/server/internal/snow-ui-logo/Wordmark.js +1 -1
- package/dist/server/internal/snow-ui-logo/emoji-metrics.js +2 -0
- package/dist/server/keys.js +2 -0
- package/dist/server/lib/adaptive-contrast-renderer.js +2 -0
- package/dist/server/lib/chart/appearance-timeline.js +2 -0
- package/dist/server/lib/chart/arc-path.js +2 -0
- package/dist/server/lib/chart/colors.js +2 -0
- package/dist/server/lib/chart/size.js +2 -0
- package/dist/server/lib/clipboard.js +2 -0
- package/dist/server/lib/color.js +2 -0
- package/dist/server/lib/date-format.js +2 -0
- package/dist/server/lib/edge-fade.js +3 -1
- package/dist/server/lib/number-format.js +2 -0
- package/dist/server/lib/overflow-actions-motion.js +2 -0
- package/dist/server/lib/overlay-trigger-timing.js +2 -0
- package/dist/server/lib/resizable.d.ts +1 -1
- package/dist/server/lib/responsive-exit.js +2 -0
- package/dist/server/lib/search-filter.js +2 -0
- package/dist/server/lib/side-panel.js +2 -0
- package/dist/server/lib/split-pane.js +2 -0
- package/dist/server/lib/table-column-motion.js +2 -0
- package/dist/server/lib/table-responsive.js +2 -0
- package/dist/server/lib/table-selection-fade.js +2 -0
- package/dist/server/lib/table-truncation.js +2 -0
- package/dist/server/lib/text-motion/animation.js +2 -0
- package/dist/server/lib/text-motion/character.js +2 -0
- package/dist/server/lib/text-motion/color.js +2 -0
- package/dist/server/lib/text-motion/layout.js +2 -0
- package/dist/server/lib/text-motion/preference.js +2 -0
- package/dist/server/lib/text-motion/sequence.js +2 -0
- package/dist/server/lib/text-motion/typography.js +2 -0
- package/dist/server/lib/tooltip-delay.js +2 -0
- package/dist/server/lib/tooltip-motion-dismiss.js +2 -0
- package/dist/server/lib/tooltip-pointer-speed.js +2 -0
- package/dist/server/lib/truncate.js +2 -0
- package/dist/server/logic/frame-field-control.js +2 -0
- package/dist/server/logic/frame-motion-defaults.js +2 -0
- package/dist/server/logic/frame-motion.d.ts +15 -23
- package/dist/server/logic/frame-motion.js +75 -29
- package/dist/server/logic/frame-prop-filter.js +2 -0
- package/dist/server/logic/frame-state.d.ts +2 -14
- package/dist/server/logic/frame-state.js +60 -9
- package/dist/server/logic/geometry-cache.js +2 -0
- package/dist/server/logic/layout-flip.js +2 -0
- package/dist/server/logic/morph.js +2 -0
- package/dist/server/logic/motion-engine.js +2 -0
- package/dist/server/logic/motion-orchestration.js +2 -0
- package/dist/server/logic/motion-types.js +2 -0
- package/dist/server/logic/wc-adapter.js +2 -0
- package/dist/server/motion/bridge.js +2 -0
- package/dist/server/motion/content-crossfade.js +2 -0
- package/dist/server/motion/expand.js +2 -0
- package/dist/server/motion/fade-in.js +2 -0
- package/dist/server/motion/fade-out.js +2 -0
- package/dist/server/motion/morph.js +2 -0
- package/dist/server/motion/move.js +2 -0
- package/dist/server/motion/number.d.ts +3 -3
- package/dist/server/motion/number.js +5 -3
- package/dist/server/motion/replace.js +2 -0
- package/dist/server/motion/rotate.css +2 -0
- package/dist/server/motion/rotate.js +2 -0
- package/dist/server/motion/scale-in.js +2 -0
- package/dist/server/motion/tokens.js +2 -0
- package/dist/server/motion/while-2xl.js +2 -0
- package/dist/server/motion/while-active.js +2 -0
- package/dist/server/motion/while-appear.js +2 -0
- package/dist/server/motion/while-click.js +2 -0
- package/dist/server/motion/while-collapsed.js +2 -0
- package/dist/server/motion/while-disabled.js +2 -0
- package/dist/server/motion/while-disappear.js +2 -0
- package/dist/server/motion/while-drag.js +2 -0
- package/dist/server/motion/while-editing.js +2 -0
- package/dist/server/motion/while-expanded.js +2 -0
- package/dist/server/motion/while-focus.js +2 -0
- package/dist/server/motion/while-hover.js +2 -0
- package/dist/server/motion/while-idle.js +2 -0
- package/dist/server/motion/while-key.js +2 -0
- package/dist/server/motion/while-lg.js +2 -0
- package/dist/server/motion/while-load.js +2 -0
- package/dist/server/motion/while-md.js +2 -0
- package/dist/server/motion/while-reload.js +2 -0
- package/dist/server/motion/while-scroll.js +2 -0
- package/dist/server/motion/while-sm.js +2 -0
- package/dist/server/motion/while-uploading.js +2 -0
- package/dist/server/motion/while-validating.js +2 -0
- package/dist/server/motion/while-xl.js +2 -0
- package/dist/server/motion/while-xs.js +2 -0
- package/dist/server/styles/auto-layout.css +3 -1
- package/dist/server/styles/backdrop.css +2 -0
- package/dist/server/styles/components.css +20 -18
- package/dist/server/styles/index.css +2 -0
- package/dist/server/styles/layout.css +9 -3
- package/dist/server/styles/scale.css +2 -0
- package/dist/server/styles/scrollbar.css +3 -1
- package/dist/server/styles/tokens.css +2 -0
- package/dist/server/vite-env.d.ts +2 -0
- package/llms.txt +5 -0
- package/package.json +13 -6
- package/dist/client/components/FramePro.d.ts +0 -23
- package/dist/client/components/FramePro.js +0 -412
- package/dist/client/logic/frame-pro-motion.d.ts +0 -26
- package/dist/client/logic/frame-pro-motion.js +0 -310
- package/dist/client/logic/frame-pro-state.d.ts +0 -39
- package/dist/client/logic/frame-pro-state.js +0 -538
- package/dist/server/components/FramePro.d.ts +0 -23
- package/dist/server/components/FramePro.js +0 -301
- package/dist/server/logic/frame-pro-motion.d.ts +0 -26
- package/dist/server/logic/frame-pro-motion.js +0 -176
- package/dist/server/logic/frame-pro-state.d.ts +0 -39
- package/dist/server/logic/frame-pro-state.js +0 -445
|
@@ -1503,230 +1503,235 @@ export default function Tooltip($$anchor, $$props) {
|
|
|
1503
1503
|
|
|
1504
1504
|
{
|
|
1505
1505
|
var consequent_6 = ($$anchor) => {
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
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
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
+
get 'data-ready'() {
|
|
1524
|
+
return $.get(portalReady);
|
|
1525
|
+
},
|
|
1523
1526
|
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
+
get element() {
|
|
1528
|
+
return $.get(tooltipRef);
|
|
1529
|
+
},
|
|
1527
1530
|
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
+
set element($$value) {
|
|
1532
|
+
$.set(tooltipRef, $$value, true);
|
|
1533
|
+
},
|
|
1531
1534
|
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
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
|
-
|
|
1587
|
+
set element($$value) {
|
|
1588
|
+
$.set(sizeShellRef, $$value, true);
|
|
1589
|
+
},
|
|
1538
1590
|
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
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
|
-
|
|
1559
|
-
|
|
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
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1616
|
+
children: ($$anchor, $$slotProps) => {
|
|
1617
|
+
var fragment_5 = root_1();
|
|
1618
|
+
var node_5 = $.first_child(fragment_5);
|
|
1565
1619
|
|
|
1566
|
-
|
|
1567
|
-
|
|
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
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
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
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1631
|
+
$.snippet(node_7, () => $.get(outgoingOverlay).children);
|
|
1632
|
+
$.append($$anchor, fragment_6);
|
|
1633
|
+
};
|
|
1586
1634
|
|
|
1587
|
-
|
|
1588
|
-
|
|
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
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
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
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1657
|
-
|
|
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
|
-
|
|
1662
|
-
|
|
1663
|
-
var node_8 = $.child(span_4);
|
|
1657
|
+
$.append($$anchor, span_1);
|
|
1658
|
+
};
|
|
1664
1659
|
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1660
|
+
$.if(node_5, ($$render) => {
|
|
1661
|
+
if ($.get(outgoingOverlay)) $$render(consequent_3);
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1669
1664
|
|
|
1670
|
-
|
|
1671
|
-
|
|
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
|
-
|
|
1675
|
-
var
|
|
1669
|
+
{
|
|
1670
|
+
var consequent_4 = ($$anchor) => {
|
|
1671
|
+
var fragment_8 = $.comment();
|
|
1672
|
+
var node_9 = $.first_child(fragment_8);
|
|
1676
1673
|
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1674
|
+
$.snippet(node_9, () => $.get(renderedOverlay)?.children ?? $.noop);
|
|
1675
|
+
$.append($$anchor, fragment_8);
|
|
1676
|
+
};
|
|
1680
1677
|
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
});
|
|
1684
|
-
}
|
|
1678
|
+
var consequent_5 = ($$anchor) => {
|
|
1679
|
+
var text_1 = $.text();
|
|
1685
1680
|
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
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
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
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
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
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
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
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
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
$.
|
|
1722
|
-
|
|
1723
|
-
$.
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
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) => {
|
package/dist/client/context.js
CHANGED
package/dist/client/dev.js
CHANGED
|
@@ -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
|
-
|
|
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": {
|
package/dist/client/index.d.ts
CHANGED
|
@@ -92,7 +92,6 @@ export { DEFAULT_PROGRESSIVE_BLUR_LAYER_COUNT, DEFAULT_PROGRESSIVE_BLUR_WIDTH, c
|
|
|
92
92
|
export { createEdgeFadeMaskImage, createEdgeFadeMaskStyle, type EdgeFadeDirection, type EdgeFadeMaskOptions, } from "./lib/edge-fade";
|
|
93
93
|
export { writeClipboardText } from "./lib/clipboard";
|
|
94
94
|
export { default as CopyLink } from "./components/CopyLink.js";
|
|
95
|
-
export { default as FramePro } from "./components/FramePro.js";
|
|
96
95
|
export { default as FlowText } from './components/FlowText.js';
|
|
97
96
|
export { default as NumberFlow } from './components/NumberFlow.js';
|
|
98
97
|
export { default as NumericText } from './components/NumericText.js';
|
package/dist/client/index.js
CHANGED
|
@@ -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";
|
|
@@ -63,7 +65,7 @@ export { default as Switch } from './components/Switch.js';
|
|
|
63
65
|
export { default as Skeleton, getSkeletonComponentKey } from './components/Skeleton.js';
|
|
64
66
|
export * from "./logic/component-parts.js";
|
|
65
67
|
export { ContinuousHoverController, } from "./logic/continuous-hover.js";
|
|
66
|
-
//
|
|
68
|
+
// 共享能力公开工具导出
|
|
67
69
|
export { resizeManager } from './logic/observer.js';
|
|
68
70
|
export { resizable, clampResizableSize } from "./lib/resizable.js";
|
|
69
71
|
export { TABLE_CONTEXT_KEY, provideTableContext, getTableContext, } from "./lib/table-context.js";
|
|
@@ -80,8 +82,7 @@ export { DEFAULT_PROGRESSIVE_BLUR_LAYER_COUNT, DEFAULT_PROGRESSIVE_BLUR_WIDTH, c
|
|
|
80
82
|
export { createEdgeFadeMaskImage, createEdgeFadeMaskStyle, } from "./lib/edge-fade.js";
|
|
81
83
|
export { writeClipboardText } from "./lib/clipboard.js";
|
|
82
84
|
export { default as CopyLink } from "./components/CopyLink.js";
|
|
83
|
-
// 全量组件与区块;
|
|
84
|
-
export { default as FramePro } from "./components/FramePro.js";
|
|
85
|
+
// 全量组件与区块;Frame 保持独立技术身份。
|
|
85
86
|
export { default as FlowText } from './components/FlowText.js';
|
|
86
87
|
export { default as NumberFlow } from './components/NumberFlow.js';
|
|
87
88
|
export { default as NumericText } from './components/NumericText.js';
|
|
@@ -108,9 +109,8 @@ export { default as Toast } from './components/Toast.js';
|
|
|
108
109
|
export { default as Toaster } from './components/Toaster.js';
|
|
109
110
|
export { toast, showToast, dismissToast, dismissAllToasts, registerToastTemplate, unregisterToastTemplate, DEFAULT_TOAST_DURATION, } from './logic/toast.js';
|
|
110
111
|
export { initMotion, getMotion } from './logic/motion.js';
|
|
111
|
-
//
|
|
112
|
+
// 可复用区块
|
|
112
113
|
export * from './blocks/index.js';
|
|
113
|
-
// ── PRO 动效组件(复杂动效 / PRO 指定动效)(v1.0.0 起) ──
|
|
114
114
|
export * from './lib/split-pane.js';
|
|
115
115
|
export { default as SearchPopup } from "./blocks/SearchPopup.js";
|
|
116
116
|
export { default as BlurText } from "./components/BlurText.js";
|
|
@@ -233,7 +233,7 @@ export default function Wordmark($$anchor, $$props) {
|
|
|
233
233
|
const segmenter = new Intl.Segmenter(undefined, { granularity: "grapheme" });
|
|
234
234
|
const reduced = () => typeof window !== "undefined" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
235
235
|
|
|
236
|
-
//
|
|
236
|
+
// 与指定文字动效相同的曲线采样;不依赖通用文字动效运行时。
|
|
237
237
|
const stops = [
|
|
238
238
|
0,
|
|
239
239
|
0.1052,
|
|
@@ -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();
|
package/dist/client/keys.js
CHANGED
|
@@ -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 { resizeManager } from "../../index.js";
|
|
2
4
|
import { toNumber } from "./geometry.js";
|
|
3
5
|
export function watchCartesianChartSize(element, onChange) {
|
package/dist/client/lib/color.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
|
|
2
|
+
复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
|
|
3
|
+
// 内容边缘渐隐遮罩(Edge Fade Mask)共享能力。
|
|
2
4
|
//
|
|
3
5
|
// 用途:当“悬浮操作层”(覆盖在内容之上的按钮 / 复选框 / 操作块)浮在内容之上时,
|
|
4
6
|
// 让其下方内容朝控件一侧渐隐到透明,保证浮层控件清晰可读,又不出现硬切边。
|
|
@@ -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) {
|