@lostgradient/cinder 0.19.1 → 0.21.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.
- package/CHANGELOG.md +486 -0
- package/README.md +6 -3
- package/components.json +219 -121
- package/dist/_internal/anchored-overlay.svelte.d.ts +11 -1
- package/dist/_internal/date-value.d.ts +22 -0
- package/dist/_internal/form-field-context.d.ts +1 -1
- package/dist/_internal/form-field-frame.svelte.d.ts +43 -0
- package/dist/_internal/form-field-provider.svelte.d.ts +9 -0
- package/dist/_internal/overlay.d.ts +2 -1
- package/dist/_internal/text-direction-container.d.ts +14 -0
- package/dist/_internal/text-direction-css.d.ts +7 -0
- package/dist/_internal/text-direction.d.ts +6 -1
- package/dist/_internal/tree-autoscroll.svelte.d.ts +27 -0
- package/dist/_internal/tree-filter.svelte.d.ts +37 -0
- package/dist/cli/index.js +63 -414
- package/dist/cli/knowledge.js +391 -0
- package/dist/components/_internal/chart-data-table.svelte.d.ts +15 -0
- package/dist/components/_internal/checkbox-indicator-shell.svelte.d.ts +8 -0
- package/dist/components/_internal/create-command-list-state.svelte.d.ts +24 -2
- package/dist/components/_internal/person-byline.css +29 -0
- package/dist/components/_internal/person-byline.svelte.d.ts +9 -0
- package/dist/components/_internal/section-skeleton.css +45 -0
- package/dist/components/_radio/radio.types.d.ts +1 -1
- package/dist/components/access-gate/access-gate.css +55 -6
- package/dist/components/access-gate/index.js +681 -427
- package/dist/components/accordion-item/accordion-item.css +8 -6
- package/dist/components/alert/alert.schema.js +2 -2
- package/dist/components/alert/alert.types.d.ts +1 -1
- package/dist/components/alert/index.js +3 -3
- package/dist/components/alert-dialog/alert-dialog.schema.js +3 -3
- package/dist/components/alert-dialog/alert-dialog.svelte.d.ts +1 -1
- package/dist/components/alert-dialog/alert-dialog.types.d.ts +2 -2
- package/dist/components/alert-dialog/index.js +771 -171
- package/dist/components/approval-card/approval-card.css +9 -2
- package/dist/components/approval-card/approval-card.schema.js +6 -4
- package/dist/components/approval-card/approval-card.types.d.ts +4 -4
- package/dist/components/approval-card/index.js +2681 -1442
- package/dist/components/area-chart/area-chart.css +4 -3
- package/dist/components/area-chart/area-chart.svelte.d.ts +1 -1
- package/dist/components/area-chart/index.d.ts +1 -0
- package/dist/components/area-chart/index.js +1251 -391
- package/dist/components/autocomplete/autocomplete.css +2 -49
- package/dist/components/autocomplete/autocomplete.schema.js +2 -2
- package/dist/components/autocomplete/autocomplete.types.d.ts +3 -3
- package/dist/components/autocomplete/index.js +1794 -589
- package/dist/components/avatar/avatar.css +0 -2
- package/dist/components/avatar/avatar.schema.js +6 -11
- package/dist/components/avatar/avatar.types.d.ts +1 -1
- package/dist/components/avatar-group/avatar-group.css +3 -1
- package/dist/components/avatar-group/index.js +1287 -360
- package/dist/components/backdrop/backdrop.schema.js +3 -3
- package/dist/components/backdrop/backdrop.types.d.ts +2 -2
- package/dist/components/backdrop/index.js +18 -6
- package/dist/components/badge/badge.css +2 -2
- package/dist/components/badge/badge.schema.js +2 -2
- package/dist/components/badge/badge.types.d.ts +3 -3
- package/dist/components/badge/index.js +296 -77
- package/dist/components/banner/banner.schema.js +6 -4
- package/dist/components/banner/banner.types.d.ts +3 -3
- package/dist/components/banner/index.js +3 -3
- package/dist/components/bar-chart/bar-chart.css +4 -3
- package/dist/components/bar-chart/bar-chart.svelte.d.ts +1 -1
- package/dist/components/bar-chart/index.d.ts +1 -0
- package/dist/components/bar-chart/index.js +1233 -377
- package/dist/components/bento-cell/bento-cell.schema.js +103 -3
- package/dist/components/bento-cell/bento-cell.types.d.ts +3 -2
- package/dist/components/bento-cell/index.js +3 -3
- package/dist/components/bento-grid/bento-grid.css +7 -17
- package/dist/components/bento-grid/bento-grid.schema.js +104 -4
- package/dist/components/bento-grid/bento-grid.types.d.ts +4 -3
- package/dist/components/bento-grid/index.js +44 -98
- package/dist/components/blog-section/blog-section.css +4 -47
- package/dist/components/blog-section/index.js +139 -242
- package/dist/components/breadcrumbs/breadcrumbs.types.d.ts +2 -1
- package/dist/components/breadcrumbs/index.js +14 -10
- package/dist/components/button/button.css +15 -5
- package/dist/components/button/index.js +5 -5
- package/dist/components/button-group/button-group.schema.js +3 -2
- package/dist/components/button-group/button-group.svelte.d.ts +13 -0
- package/dist/components/button-group/button-group.types.d.ts +1 -1
- package/dist/components/button-group/index.js +4 -5
- package/dist/components/calendar/calendar.css +3 -0
- package/dist/components/calendar/calendar.schema.js +9 -5
- package/dist/components/calendar/calendar.types.d.ts +4 -4
- package/dist/components/calendar/index.js +104 -46
- package/dist/components/{cta-section/cta-section.css → call-to-action-section/call-to-action-section.css} +11 -11
- package/dist/components/{cta-section/cta-section.schema.js → call-to-action-section/call-to-action-section.schema.js} +5 -5
- package/dist/components/{cta-section/cta-section.svelte.d.ts → call-to-action-section/call-to-action-section.svelte.d.ts} +5 -5
- package/dist/components/{cta-section/cta-section.types.d.ts → call-to-action-section/call-to-action-section.types.d.ts} +23 -11
- package/dist/components/{floating-action-button/floating-action-button.variables.js → call-to-action-section/call-to-action-section.variables.js} +4 -4
- package/dist/components/call-to-action-section/index.d.ts +5 -0
- package/dist/components/{cta-section → call-to-action-section}/index.js +20 -18
- package/dist/components/callout/callout.css +5 -0
- package/dist/components/capability-gate/capability-gate.schema.js +4 -4
- package/dist/components/capability-gate/capability-gate.types.d.ts +9 -6
- package/dist/components/capability-gate/index.js +8 -8
- package/dist/components/card/card.css +25 -7
- package/dist/components/card/card.schema.js +7 -7
- package/dist/components/card/card.svelte.d.ts +2 -2
- package/dist/components/card/card.types.d.ts +4 -3
- package/dist/components/card/index.js +2 -2
- package/dist/components/carousel/carousel.css +81 -7
- package/dist/components/carousel/carousel.schema.js +43 -2
- package/dist/components/carousel/carousel.svelte.d.ts +25 -4
- package/dist/components/carousel/carousel.types.d.ts +43 -2
- package/dist/components/carousel/carousel.variables.js +7 -2
- package/dist/components/carousel/index.d.ts +1 -1
- package/dist/components/carousel/index.js +2261 -274
- package/dist/components/checkbox/checkbox.css +63 -29
- package/dist/components/checkbox/checkbox.schema.js +7 -7
- package/dist/components/checkbox/checkbox.types.d.ts +4 -4
- package/dist/components/checkbox/index.js +409 -101
- package/dist/components/checkbox-group/checkbox-group.css +7 -9
- package/dist/components/checkbox-group/checkbox-group.types.d.ts +2 -1
- package/dist/components/checkbox-group/index.js +31 -16
- package/dist/components/chip/chip.css +3 -0
- package/dist/components/chip/chip.schema.js +3 -3
- package/dist/components/chip/chip.types.d.ts +6 -6
- package/dist/components/chip/index.js +7 -7
- package/dist/components/choice-grid/choice-grid.css +2 -9
- package/dist/components/choice-grid/choice-grid.schema.js +5 -6
- package/dist/components/choice-grid/choice-grid.types.d.ts +1 -22
- package/dist/components/choice-grid/index.js +41 -19
- package/dist/components/choice-grid-item/choice-grid-item.svelte.d.ts +1 -1
- package/dist/components/click-away-listener/click-away-listener.schema.js +3 -3
- package/dist/components/click-away-listener/click-away-listener.types.d.ts +3 -3
- package/dist/components/click-away-listener/index.js +3 -3
- package/dist/components/code-block/code-block.css +36 -2
- package/dist/components/code-block/code-block.schema.js +10 -2
- package/dist/components/code-block/code-block.types.d.ts +9 -1
- package/dist/components/code-block/index.js +271 -8
- package/dist/components/collapsible/collapsible.css +16 -8
- package/dist/components/collapsible/collapsible.schema.js +2 -2
- package/dist/components/collapsible/collapsible.types.d.ts +1 -1
- package/dist/components/collapsible/index.js +3 -3
- package/dist/components/color-field/color-field.css +3 -1
- package/dist/components/color-field/color-field.schema.js +2 -6
- package/dist/components/color-field/color-field.svelte.d.ts +1 -1
- package/dist/components/color-field/color-field.types.d.ts +2 -5
- package/dist/components/color-field/index.js +763 -338
- package/dist/components/color-picker/color-picker.css +1 -1
- package/dist/components/color-picker/color-picker.schema.js +1 -5
- package/dist/components/color-picker/color-picker.types.d.ts +0 -2
- package/dist/components/color-picker/index.js +16 -28
- package/dist/components/color-swatch-picker/color-swatch-picker.schema.js +2 -6
- package/dist/components/color-swatch-picker/color-swatch-picker.svelte.d.ts +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker.types.d.ts +1 -3
- package/dist/components/color-swatch-picker/index.js +5 -6
- package/dist/components/combobox/combobox.css +20 -18
- package/dist/components/combobox/combobox.schema.js +3 -3
- package/dist/components/combobox/combobox.svelte.d.ts +2 -2
- package/dist/components/combobox/combobox.types.d.ts +3 -3
- package/dist/components/combobox/index.js +2457 -624
- package/dist/components/command-item/command-item.schema.js +3 -3
- package/dist/components/command-item/command-item.types.d.ts +13 -5
- package/dist/components/command-item/index.js +4 -4
- package/dist/components/command-menu/command-menu-inline-completion.svelte.d.ts +89 -0
- package/dist/components/command-menu/command-menu.css +28 -10
- package/dist/components/command-menu/command-menu.schema.js +14 -6
- package/dist/components/command-menu/command-menu.svelte.d.ts +1 -1
- package/dist/components/command-menu/command-menu.types.d.ts +33 -5
- package/dist/components/command-menu/index.d.ts +1 -1
- package/dist/components/command-menu/index.js +2893 -385
- package/dist/components/command-palette/command-palette.css +4 -2
- package/dist/components/command-palette/command-palette.schema.js +3 -3
- package/dist/components/command-palette/command-palette.types.d.ts +2 -2
- package/dist/components/command-palette/index.js +325 -6
- package/dist/components/confirm-dialog/confirm-dialog.schema.js +3 -3
- package/dist/components/confirm-dialog/confirm-dialog.svelte.d.ts +1 -1
- package/dist/components/confirm-dialog/confirm-dialog.types.d.ts +2 -2
- package/dist/components/confirm-dialog/index.js +1392 -363
- package/dist/components/connection-indicator/connection-indicator.css +5 -4
- package/dist/components/container/container.schema.js +4 -4
- package/dist/components/context-menu/context-menu.schema.js +2 -2
- package/dist/components/context-menu/context-menu.types.d.ts +1 -1
- package/dist/components/context-menu/index.js +2812 -476
- package/dist/components/copy-button/copy-button.css +4 -1
- package/dist/components/copy-button/copy-button.schema.js +6 -1
- package/dist/components/copy-button/copy-button.types.d.ts +2 -0
- package/dist/components/copy-button/index.js +16 -3
- package/dist/components/data-grid/_internal/geometry.d.ts +3 -5
- package/dist/components/data-grid/_internal/selection-model-test-support.svelte.d.ts +4 -0
- package/dist/components/data-grid/_internal/selection-model.svelte.d.ts +4 -2
- package/dist/components/data-grid/data-grid.css +8 -2
- package/dist/components/data-grid/data-grid.schema.js +3 -3
- package/dist/components/data-grid/data-grid.types.d.ts +2 -2
- package/dist/components/data-grid/index.js +53 -33
- package/dist/components/data-table/data-table.svelte.d.ts +1 -1
- package/dist/components/data-table/index.js +1032 -462
- package/dist/components/date-picker/date-picker.css +8 -3
- package/dist/components/date-picker/date-picker.schema.js +5 -1
- package/dist/components/date-picker/date-picker.svelte.d.ts +1 -1
- package/dist/components/date-picker/date-picker.types.d.ts +2 -0
- package/dist/components/date-picker/index.js +2317 -664
- package/dist/components/date-range-field/date-range-field.css +7 -12
- package/dist/components/date-range-field/date-range-field.schema.js +3 -2
- package/dist/components/date-range-field/date-range-field.types.d.ts +10 -13
- package/dist/components/date-range-field/index.js +2428 -873
- package/dist/components/diff-statistics/diff-statistics.css +3 -3
- package/dist/components/diff-statistics/index.js +17 -1
- package/dist/components/drawer/drawer.css +25 -12
- package/dist/components/drawer/index.js +387 -25
- package/dist/components/dropdown/dropdown.css +2 -2
- package/dist/components/dropdown/index.js +2633 -572
- package/dist/components/dropdown-item/index.js +2 -2
- package/dist/components/dropdown-menu/index.js +2262 -288
- package/dist/components/dropdown-trigger/dropdown-trigger.schema.js +2 -2
- package/dist/components/dropdown-trigger/dropdown-trigger.types.d.ts +1 -1
- package/dist/components/dropdown-trigger/index.js +12 -6
- package/dist/components/event-stream-viewer/event-stream-viewer.css +35 -9
- package/dist/components/event-stream-viewer/event-stream-viewer.schema.js +4 -4
- package/dist/components/event-stream-viewer/event-stream-viewer.svelte.d.ts +2 -1
- package/dist/components/event-stream-viewer/event-stream-viewer.types.d.ts +6 -6
- package/dist/components/event-stream-viewer/event-stream-viewer.variables.js +5 -2
- package/dist/components/event-stream-viewer/index.js +749 -634
- package/dist/components/event-timeline/event-timeline-modal.d.ts +5 -0
- package/dist/components/event-timeline/event-timeline.css +192 -5
- package/dist/components/event-timeline/event-timeline.svelte.d.ts +4 -2
- package/dist/components/event-timeline/index.js +3860 -112
- package/dist/components/faceted-filter-bar/faceted-filter-bar.schema.js +6 -6
- package/dist/components/faceted-filter-bar/faceted-filter-bar.types.d.ts +5 -5
- package/dist/components/faceted-filter-bar/index.js +146 -156
- package/dist/components/feature-section/feature-section.css +18 -3
- package/dist/components/feature-section/feature-section.types.d.ts +7 -2
- package/dist/components/feature-section/index.js +3 -3
- package/dist/components/feed/feed.svelte.d.ts +4 -2
- package/dist/components/file-upload/file-upload.schema.js +6 -7
- package/dist/components/file-upload/file-upload.types.d.ts +2 -2
- package/dist/components/file-upload/index.js +3 -3
- package/dist/components/{floating-action-button/floating-action-button.css → floating-action/floating-action.css} +61 -49
- package/dist/components/{floating-action-button/floating-action-button.schema.js → floating-action/floating-action.schema.js} +7 -7
- package/dist/components/{floating-action-button/floating-action-button.svelte.d.ts → floating-action/floating-action.svelte.d.ts} +5 -5
- package/dist/components/{floating-action-button/floating-action-button.types.d.ts → floating-action/floating-action.types.d.ts} +25 -25
- package/dist/components/{stats-section/stats-section.variables.js → floating-action/floating-action.variables.js} +4 -4
- package/dist/components/floating-action/index.d.ts +5 -0
- package/dist/components/{floating-action-button → floating-action}/index.js +18 -18
- package/dist/components/focus-trap/index.js +386 -24
- package/dist/components/footer/footer.css +17 -5
- package/dist/components/form-field/form-field.css +1 -1
- package/dist/components/form-field/form-field.schema.js +7 -3
- package/dist/components/form-field/form-field.types.d.ts +8 -6
- package/dist/components/form-field/index.js +272 -69
- package/dist/components/form-section/form-section.schema.js +2 -2
- package/dist/components/grid/grid.css +21 -0
- package/dist/components/grid/grid.schema.js +108 -2
- package/dist/components/grid/grid.types.d.ts +12 -5
- package/dist/components/grid/index.js +4 -2
- package/dist/components/grid-item/grid-item.schema.js +92 -2
- package/dist/components/grid-item/grid-item.types.d.ts +2 -1
- package/dist/components/grid-list/grid-list.css +2 -11
- package/dist/components/grid-list/grid-list.types.d.ts +1 -1
- package/dist/components/grid-list/grid-list.variables.js +2 -2
- package/dist/components/grid-list/index.js +24 -14
- package/dist/components/hero-section/hero-section.css +88 -5
- package/dist/components/hero-section/hero-section.svelte.d.ts +2 -2
- package/dist/components/hero-section/index.js +119 -70
- package/dist/components/hover-card/hover-card.css +49 -5
- package/dist/components/hover-card/hover-card.schema.js +11 -7
- package/dist/components/hover-card/hover-card.types.d.ts +6 -6
- package/dist/components/hover-card/index.js +1191 -240
- package/dist/components/image/image.schema.js +7 -8
- package/dist/components/image/image.types.d.ts +3 -3
- package/dist/components/image/index.js +5 -5
- package/dist/components/inline-loading/inline-loading.css +2 -2
- package/dist/components/input/index.js +600 -171
- package/dist/components/input/input.css +11 -9
- package/dist/components/input/input.schema.js +18 -4
- package/dist/components/input/input.types.d.ts +13 -4
- package/dist/components/invocation-rule-builder/index.js +3010 -1073
- package/dist/components/invocation-rule-builder/invocation-rule-builder.css +23 -5
- package/dist/components/json-editor/index.js +441 -147
- package/dist/components/json-editor/json-editor.css +39 -5
- package/dist/components/json-editor/json-editor.schema.js +8 -5
- package/dist/components/json-editor/json-editor.types.d.ts +4 -4
- package/dist/components/json-schema-editor/form-view.svelte.d.ts +1 -1
- package/dist/components/json-schema-editor/index.js +3989 -2346
- package/dist/components/json-schema-editor/json-schema-editor-impl.svelte.d.ts +2 -2
- package/dist/components/json-schema-editor/json-schema-editor-state.types.d.ts +2 -2
- package/dist/components/json-schema-editor/json-schema-editor.css +7 -9
- package/dist/components/json-schema-editor/json-schema-editor.schema.js +3 -3
- package/dist/components/json-schema-editor/json-schema-editor.svelte.d.ts +1 -0
- package/dist/components/json-schema-editor/json-schema-editor.types.d.ts +2 -2
- package/dist/components/json-schema-editor/property-editor.svelte.d.ts +1 -1
- package/dist/components/json-schema-editor/property-list.svelte.d.ts +1 -1
- package/dist/components/json-viewer/json-viewer.css +6 -3
- package/dist/components/kanban-board/index.js +674 -528
- package/dist/components/kanban-board/kanban-board-column-reorder.svelte.d.ts +30 -0
- package/dist/components/kanban-board/kanban-board-helpers.d.ts +18 -0
- package/dist/components/kanban-board/kanban-board.css +23 -12
- package/dist/components/kanban-board/kanban-board.schema.js +5 -3
- package/dist/components/kanban-board/kanban-board.types.d.ts +2 -2
- package/dist/components/kanban-board/kanban-board.variables.js +2 -1
- package/dist/components/keyboard-shortcuts/index.js +8 -8
- package/dist/components/keyboard-shortcuts/keyboard-shortcuts.css +2 -1
- package/dist/components/label/label.schema.js +5 -6
- package/dist/components/label/label.types.d.ts +1 -1
- package/dist/components/line-chart/index.d.ts +1 -0
- package/dist/components/line-chart/index.js +1271 -411
- package/dist/components/line-chart/line-chart.css +4 -3
- package/dist/components/line-chart/line-chart.svelte.d.ts +1 -1
- package/dist/components/load-more/index.js +71 -18
- package/dist/components/load-more/load-more.schema.js +12 -8
- package/dist/components/load-more/load-more.types.d.ts +7 -7
- package/dist/components/locale-provider/locale-provider.svelte.d.ts +1 -1
- package/dist/components/logo-cloud/index.js +46 -35
- package/dist/components/logo-cloud/logo-cloud.css +6 -23
- package/dist/components/logo-cloud/logo-cloud.variables.js +2 -2
- package/dist/components/marquee/index.js +16 -3
- package/dist/components/marquee/marquee.css +3 -0
- package/dist/components/matrix-chart/index.d.ts +1 -0
- package/dist/components/matrix-chart/index.js +1070 -262
- package/dist/components/matrix-chart/matrix-chart.css +1 -0
- package/dist/components/matrix-chart/matrix-chart.schema.js +12 -7
- package/dist/components/matrix-chart/matrix-chart.types.d.ts +7 -7
- package/dist/components/media-controls/index.js +7 -8
- package/dist/components/media-controls/media-controls.css +2 -2
- package/dist/components/media-controls/media-controls.schema.js +4 -4
- package/dist/components/media-controls/media-controls.types.d.ts +6 -6
- package/dist/components/mega-menu/index.js +2041 -318
- package/dist/components/mega-menu/mega-menu-content.svelte.d.ts +16 -0
- package/dist/components/mega-menu/mega-menu.css +24 -5
- package/dist/components/mega-menu/mega-menu.schema.js +15 -7
- package/dist/components/mega-menu/mega-menu.types.d.ts +9 -7
- package/dist/components/menu-bar/index.js +2981 -893
- package/dist/components/menu-bar/menu-bar.css +11 -2
- package/dist/components/menu-bar/menu-bar.schema.js +3 -2
- package/dist/components/menu-bar/menu-bar.types.d.ts +1 -1
- package/dist/components/meter/index.js +48 -20
- package/dist/components/meter/meter.svelte.d.ts +1 -1
- package/dist/components/meter/meter.types.d.ts +2 -1
- package/dist/components/modal/index.js +730 -132
- package/dist/components/modal/modal.css +64 -26
- package/dist/components/modal/modal.schema.js +3 -3
- package/dist/components/modal/modal.types.d.ts +2 -2
- package/dist/components/multi-select/index.js +4194 -523
- package/dist/components/multi-select/multi-select.css +77 -22
- package/dist/components/multi-select/multi-select.schema.js +2 -2
- package/dist/components/multi-select/multi-select.types.d.ts +1 -1
- package/dist/components/navigation-bar/index.js +3746 -91
- package/dist/components/navigation-bar/navigation-bar-focus.d.ts +16 -0
- package/dist/components/navigation-bar/navigation-bar.css +93 -48
- package/dist/components/navigation-bar/navigation-bar.schema.js +4 -3
- package/dist/components/navigation-bar/navigation-bar.types.d.ts +5 -3
- package/dist/components/navigation-item/index.js +2 -2
- package/dist/components/navigation-item/navigation-item.css +3 -0
- package/dist/components/newsletter-section/index.js +663 -234
- package/dist/components/newsletter-section/newsletter-section.css +1 -1
- package/dist/components/newsletter-section/newsletter-section.svelte.d.ts +2 -2
- package/dist/components/number-input/index.js +341 -294
- package/dist/components/number-input/number-input.css +10 -58
- package/dist/components/number-input/number-input.schema.js +10 -16
- package/dist/components/number-input/number-input.types.d.ts +5 -3
- package/dist/components/page-header/index.js +83 -29
- package/dist/components/page-header/page-header.css +18 -9
- package/dist/components/page-header/page-header.schema.js +10 -5
- package/dist/components/page-header/page-header.svelte.d.ts +2 -2
- package/dist/components/page-header/page-header.types.d.ts +21 -7
- package/dist/components/pagination/pagination.css +3 -0
- package/dist/components/payload-inspector/index.js +632 -476
- package/dist/components/payload-inspector/payload-inspector.css +2 -2
- package/dist/components/permission-matrix/index.js +254 -5
- package/dist/components/permission-matrix/permission-matrix.css +22 -4
- package/dist/components/permission-matrix/permission-matrix.svelte.d.ts +24 -3
- package/dist/components/phone-input/index.js +172 -76
- package/dist/components/phone-input/phone-input.css +37 -56
- package/dist/components/pin-input/pin-input.css +10 -2
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/index.js +1509 -278
- package/dist/components/popover/popover.css +9 -9
- package/dist/components/popover/popover.schema.js +16 -2
- package/dist/components/popover/popover.types.d.ts +7 -1
- package/dist/components/portal/index.d.ts +1 -1
- package/dist/components/portal/index.js +830 -57
- package/dist/components/portal/portal.utilities.svelte.d.ts +31 -1
- package/dist/components/pricing-card/index.js +7 -7
- package/dist/components/pricing-card/pricing-card.css +1 -1
- package/dist/components/pricing-card/pricing-card.schema.js +2 -2
- package/dist/components/pricing-card/pricing-card.svelte.d.ts +2 -2
- package/dist/components/pricing-card/pricing-card.types.d.ts +1 -1
- package/dist/components/pricing-section/index.js +8 -8
- package/dist/components/pricing-section/pricing-section.svelte.d.ts +2 -2
- package/dist/components/qr-code/qr-code.css +1 -1
- package/dist/components/radio-group/index.js +406 -124
- package/dist/components/radio-group/radio-group.css +43 -16
- package/dist/components/rating/index.js +69 -57
- package/dist/components/rating/rating.css +1 -1
- package/dist/components/resizable-panels/index.d.ts +1 -1
- package/dist/components/resizable-panels/index.js +11 -9
- package/dist/components/resizable-panels/resizable-panels.schema.js +3 -3
- package/dist/components/resizable-panels/resizable-panels.types.d.ts +4 -4
- package/dist/components/run-step-timeline/index.js +818 -597
- package/dist/components/schedule-builder/index.js +1762 -1263
- package/dist/components/schema-form/index.js +1952 -1320
- package/dist/components/schema-form/schema-form-body.svelte.d.ts +3 -24
- package/dist/components/schema-form/schema-form-state.svelte.d.ts +74 -0
- package/dist/components/schema-form/schema-form.css +1 -1
- package/dist/components/schema-form/schema-form.schema.js +3 -3
- package/dist/components/schema-form/schema-form.svelte.d.ts +3 -24
- package/dist/components/schema-form/schema-form.types.d.ts +3 -3
- package/dist/components/scroll-area/index.js +526 -22
- package/dist/components/scroll-area/scroll-area.css +30 -0
- package/dist/components/scroll-area/scroll-area.schema.js +9 -1
- package/dist/components/scroll-area/scroll-area.types.d.ts +17 -0
- package/dist/components/search-field/index.js +95 -104
- package/dist/components/search-field/search-field.css +3 -85
- package/dist/components/search-field/search-field.schema.js +7 -12
- package/dist/components/search-field/search-field.svelte.d.ts +1 -1
- package/dist/components/search-field/search-field.types.d.ts +4 -7
- package/dist/components/secret-value-field/index.js +324 -123
- package/dist/components/secret-value-field/secret-value-field.css +11 -1
- package/dist/components/secret-value-field/secret-value-field.schema.js +3 -3
- package/dist/components/secret-value-field/secret-value-field.types.d.ts +2 -2
- package/dist/components/segment/index.d.ts +1 -1
- package/dist/components/segmented-control/segmented-control.css +12 -2
- package/dist/components/select/index.js +367 -123
- package/dist/components/select/select.css +4 -1
- package/dist/components/select/select.schema.js +5 -6
- package/dist/components/select/select.types.d.ts +1 -1
- package/dist/components/selectable-row/selectable-row.css +2 -1
- package/dist/components/selection-popover/index.js +1408 -260
- package/dist/components/selection-popover/selection-popover.css +4 -1
- package/dist/components/selection-popover/selection-popover.schema.js +5 -5
- package/dist/components/selection-popover/selection-popover.types.d.ts +4 -4
- package/dist/components/selection-popover/virtual-keyboard-dismissal.svelte.d.ts +34 -0
- package/dist/components/share-card/index.js +5 -5
- package/dist/components/share-card/share-card.schema.js +7 -4
- package/dist/components/share-card/share-card.types.d.ts +5 -5
- package/dist/components/sheet/index.js +390 -28
- package/dist/components/sheet/sheet.css +28 -13
- package/dist/components/sheet/sheet.schema.js +3 -3
- package/dist/components/sheet/sheet.types.d.ts +2 -2
- package/dist/components/shortcut-hint/index.js +3 -3
- package/dist/components/side-navigation/index.js +15 -4
- package/dist/components/side-navigation/side-navigation.svelte.d.ts +5 -3
- package/dist/components/side-navigation-group/index.js +12 -2
- package/dist/components/side-navigation-group/side-navigation-group.schema.js +5 -6
- package/dist/components/side-navigation-group/side-navigation-group.types.d.ts +1 -1
- package/dist/components/side-navigation-item/index.js +2 -2
- package/dist/components/sidebar/index.js +400 -27
- package/dist/components/sidebar/sidebar.css +1 -1
- package/dist/components/slider/index.js +1226 -77
- package/dist/components/slider/slider.css +2 -0
- package/dist/components/slider/slider.schema.js +1 -5
- package/dist/components/slider/slider.svelte.d.ts +1 -1
- package/dist/components/slider/slider.types.d.ts +6 -9
- package/dist/components/sortable-list/index.js +17 -11
- package/dist/components/sortable-list/sortable-list.css +28 -12
- package/dist/components/sortable-list/sortable-list.schema.js +2 -2
- package/dist/components/sortable-list/sortable-list.svelte.d.ts +1 -1
- package/dist/components/sortable-list/sortable-list.types.d.ts +1 -1
- package/dist/components/source-diff-viewer/index.d.ts +2 -1
- package/dist/components/source-diff-viewer/index.js +133 -125
- package/dist/components/source-diff-viewer/source-diff-viewer.binary-notice.d.ts +4 -0
- package/dist/components/source-diff-viewer/source-diff-viewer.css +1 -1
- package/dist/components/source-diff-viewer/source-diff-viewer.git-header-parser.d.ts +8 -0
- package/dist/components/source-diff-viewer/source-diff-viewer.labels.d.ts +3 -0
- package/dist/components/source-diff-viewer/source-diff-viewer.path-normalization.d.ts +11 -0
- package/dist/components/source-diff-viewer/source-diff-viewer.schema.js +2 -2
- package/dist/components/source-diff-viewer/source-diff-viewer.svelte.d.ts +2 -1
- package/dist/components/source-diff-viewer/source-diff-viewer.types.d.ts +1 -1
- package/dist/components/source-diff-viewer/source-diff-viewer.utilities.d.ts +1 -3
- package/dist/components/spectrogram/index.d.ts +1 -0
- package/dist/components/spectrogram/index.js +17 -9
- package/dist/components/spectrum-chart/index.d.ts +1 -0
- package/dist/components/spectrum-chart/index.js +7 -5
- package/dist/components/speed-dial/index.js +3925 -175
- package/dist/components/speed-dial/speed-dial-exit.d.ts +1 -0
- package/dist/components/speed-dial/speed-dial-focus.d.ts +21 -0
- package/dist/components/speed-dial/speed-dial.css +45 -25
- package/dist/components/speed-dial/speed-dial.schema.js +2 -2
- package/dist/components/speed-dial/speed-dial.svelte.d.ts +2 -2
- package/dist/components/speed-dial/speed-dial.types.d.ts +1 -1
- package/dist/components/speed-dial-action/index.js +986 -45
- package/dist/components/speed-dial-action/speed-dial-action.svelte.d.ts +2 -2
- package/dist/components/speed-dial-action/speed-dial-action.types.d.ts +3 -3
- package/dist/components/stacked-list-item/stacked-list-item.css +9 -0
- package/dist/components/statistic/index.d.ts +5 -0
- package/dist/components/{stat → statistic}/index.js +15 -15
- package/dist/components/statistic/statistic.css +81 -0
- package/dist/components/{stat/stat.schema.js → statistic/statistic.schema.js} +6 -6
- package/dist/components/statistic/statistic.svelte.d.ts +18 -0
- package/dist/components/{stat/stat.types.d.ts → statistic/statistic.types.d.ts} +11 -11
- package/dist/components/{stat/stat.variables.js → statistic/statistic.variables.js} +12 -12
- package/dist/components/statistic-group/index.d.ts +12 -0
- package/dist/components/{stat-group → statistic-group}/index.js +20 -20
- package/{src/components/stat-group/stat-group.css → dist/components/statistic-group/statistic-group.css} +27 -27
- package/dist/components/{stat-group/stat-group.schema.js → statistic-group/statistic-group.schema.js} +9 -9
- package/dist/components/statistic-group/statistic-group.svelte.d.ts +18 -0
- package/dist/components/{stat-group/stat-group.types.d.ts → statistic-group/statistic-group.types.d.ts} +14 -14
- package/dist/components/{stat-group/stat-group.variables.js → statistic-group/statistic-group.variables.js} +7 -7
- package/dist/components/statistics-section/index.d.ts +5 -0
- package/dist/components/{stats-section → statistics-section}/index.js +29 -29
- package/dist/components/{stats-section/stats-section.css → statistics-section/statistics-section.css} +7 -7
- package/dist/components/{stats-section/stats-section.schema.js → statistics-section/statistics-section.schema.js} +9 -9
- package/dist/components/statistics-section/statistics-section.svelte.d.ts +19 -0
- package/dist/components/statistics-section/statistics-section.types.d.ts +63 -0
- package/dist/components/{cta-section/cta-section.variables.js → statistics-section/statistics-section.variables.js} +4 -4
- package/dist/components/status-dot/index.js +4 -4
- package/dist/components/status-dot/status-dot.css +3 -3
- package/dist/components/status-dot/status-dot.schema.js +3 -3
- package/dist/components/status-dot/status-dot.types.d.ts +4 -4
- package/dist/components/steps/index.js +20 -7
- package/dist/components/steps/steps.css +1 -0
- package/dist/components/steps/steps.schema.js +9 -5
- package/dist/components/steps/steps.types.d.ts +6 -3
- package/dist/components/tab/index.js +40 -25
- package/dist/components/tab/tab.schema.js +3 -2
- package/dist/components/tab/tab.types.d.ts +3 -2
- package/dist/components/tab-list/index.js +21 -9
- package/dist/components/tab-list/tab-list.types.d.ts +2 -1
- package/dist/components/tab-panel/index.js +21 -8
- package/dist/components/tab-panel/tab-panel.types.d.ts +2 -1
- package/dist/components/table/index.js +295 -33
- package/dist/components/table/table.css +18 -2
- package/dist/components/table/table.schema.js +9 -5
- package/dist/components/table/table.svelte.d.ts +1 -1
- package/dist/components/table/table.types.d.ts +7 -4
- package/dist/components/table-body/index.js +4 -4
- package/dist/components/table-body/table-body.types.d.ts +2 -1
- package/dist/components/table-cell/table-cell.schema.js +5 -3
- package/dist/components/table-cell/table-cell.types.d.ts +2 -1
- package/dist/components/table-header/index.js +18 -9
- package/dist/components/table-header/table-header.schema.js +9 -9
- package/dist/components/table-header/table-header.types.d.ts +41 -13
- package/dist/components/table-header-cell/index.js +2 -2
- package/dist/components/table-header-cell/table-header-cell.schema.js +7 -4
- package/dist/components/table-header-cell/table-header-cell.types.d.ts +3 -2
- package/dist/components/table-of-contents/index.js +271 -233
- package/dist/components/table-of-contents/table-of-contents-active-heading.svelte.d.ts +16 -0
- package/dist/components/table-of-contents/table-of-contents-heading-registry.svelte.d.ts +19 -0
- package/dist/components/table-of-contents/table-of-contents.css +13 -1
- package/dist/components/table-of-contents/table-of-contents.schema.js +3 -2
- package/dist/components/table-of-contents/table-of-contents.svelte.d.ts +2 -1
- package/dist/components/table-of-contents/table-of-contents.types.d.ts +4 -1
- package/dist/components/table-row/index.js +7 -7
- package/dist/components/table-row/table-row.schema.js +3 -3
- package/dist/components/table-row/table-row.types.d.ts +6 -6
- package/dist/components/tabs/index.js +113 -61
- package/dist/components/tabs/tabs.schema.js +10 -3
- package/dist/components/tabs/tabs.types.d.ts +9 -10
- package/dist/components/tag-input/index.js +21 -19
- package/dist/components/tag-input/tag-input.css +1 -1
- package/dist/components/tag-input/tag-input.schema.js +9 -13
- package/dist/components/tag-input/tag-input.svelte.d.ts +8 -1
- package/dist/components/tag-input/tag-input.types.d.ts +8 -12
- package/dist/components/team-section/index.js +1578 -608
- package/dist/components/team-section/team-section.css +2 -43
- package/dist/components/team-section/team-section.schema.js +2 -2
- package/dist/components/team-section/team-section.types.d.ts +2 -2
- package/dist/components/testimonial-section/index.js +236 -331
- package/dist/components/testimonial-section/testimonial-section.css +2 -47
- package/dist/components/textarea/index.js +407 -106
- package/dist/components/textarea/textarea.css +4 -1
- package/dist/components/textarea/textarea.schema.js +7 -8
- package/dist/components/textarea/textarea.types.d.ts +3 -3
- package/dist/components/time-field/index.js +497 -220
- package/dist/components/time-field/time-field.css +33 -8
- package/dist/components/time-field/time-field.schema.js +1 -4
- package/dist/components/time-field/time-field.types.d.ts +0 -3
- package/dist/components/timeline/timeline.svelte.d.ts +6 -5
- package/dist/components/toast-region/index.js +341 -173
- package/dist/components/toggle/index.js +104 -44
- package/dist/components/toggle/toggle.schema.js +6 -1
- package/dist/components/toggle/toggle.types.d.ts +3 -1
- package/dist/components/toolbar/index.js +18 -7
- package/dist/components/tooltip/index.js +1132 -225
- package/dist/components/tooltip/tooltip.css +1 -1
- package/dist/components/tooltip/tooltip.schema.js +9 -4
- package/dist/components/tooltip/tooltip.types.d.ts +21 -3
- package/dist/components/transfer-list/index.js +617 -189
- package/dist/components/transfer-list/transfer-list.css +33 -1
- package/dist/components/tree/index.d.ts +1 -0
- package/dist/components/tree/index.js +1242 -1019
- package/dist/components/tree/tree.schema.js +4 -4
- package/dist/components/tree/tree.svelte.d.ts +3 -1
- package/dist/components/tree/tree.types.d.ts +3 -3
- package/dist/components/tree-item/index.d.ts +1 -0
- package/dist/components/tree-item/index.js +665 -530
- package/dist/components/tree-item/tree-item-async-load.svelte.d.ts +23 -0
- package/dist/components/tree-item/tree-item-drag.svelte.d.ts +35 -0
- package/dist/components/tree-item/tree-item-label-highlight.d.ts +11 -0
- package/dist/components/tree-item/tree-item-rename.svelte.d.ts +43 -0
- package/dist/components/tree-item/tree-item.schema.js +5 -5
- package/dist/components/tree-item/tree-item.types.d.ts +4 -4
- package/dist/components/typography/index.js +3 -3
- package/dist/components/typography/typography.schema.js +2 -2
- package/dist/components/typography/typography.types.d.ts +7 -6
- package/dist/components/virtual-list/index.js +7 -5
- package/dist/components/waveform/index.d.ts +1 -0
- package/dist/components/waveform/index.js +7 -5
- package/dist/index.d.ts +24 -24
- package/dist/index.js +32203 -25375
- package/dist/manifest.meta.d.ts +1 -0
- package/dist/schema-types.d.ts +3 -2
- package/dist/server/components/access-gate/index.js +17 -5
- package/dist/server/components/alert/index.js +2 -2
- package/dist/server/components/alert-dialog/index.js +10 -7
- package/dist/server/components/approval-card/index.js +23 -14
- package/dist/server/components/area-chart/index.js +16 -2
- package/dist/server/components/autocomplete/index.js +9 -7
- package/dist/server/components/avatar-group/index.js +8 -6
- package/dist/server/components/backdrop/index.js +1 -1
- package/dist/server/components/badge/index.js +11 -3
- package/dist/server/components/banner/index.js +1 -1
- package/dist/server/components/bar-chart/index.js +16 -2
- package/dist/server/components/bento-cell/index.js +2 -2
- package/dist/server/components/bento-grid/index.js +3 -4
- package/dist/server/components/blog-section/index.js +3 -4
- package/dist/server/components/breadcrumbs/index.js +1 -1
- package/dist/server/components/button/index.js +2 -2
- package/dist/server/components/button-group/index.js +1 -1
- package/dist/server/components/calendar/index.js +2 -2
- package/dist/server/components/call-to-action-section/index.js +16 -0
- package/dist/server/components/capability-gate/index.js +1 -1
- package/dist/server/components/card/index.js +2 -2
- package/dist/server/components/carousel/index.js +7 -2
- package/dist/server/components/checkbox/index.js +6 -4
- package/dist/server/components/checkbox-group/index.js +1 -1
- package/dist/server/components/chip/index.js +2 -2
- package/dist/server/components/choice-grid/index.js +1 -1
- package/dist/server/components/click-away-listener/index.js +1 -1
- package/dist/server/components/code-block/index.js +6 -4
- package/dist/server/components/collapsible/index.js +2 -2
- package/dist/server/components/color-field/index.js +5 -4
- package/dist/server/components/color-picker/index.js +3 -3
- package/dist/server/components/color-swatch-picker/index.js +3 -3
- package/dist/server/components/combobox/index.js +13 -8
- package/dist/server/components/command-item/index.js +1 -1
- package/dist/server/components/command-menu/index.js +9 -5
- package/dist/server/components/command-palette/index.js +3 -3
- package/dist/server/components/confirm-dialog/index.js +13 -9
- package/dist/server/components/connection-indicator/index.js +5 -3
- package/dist/server/components/context-menu/index.js +11 -9
- package/dist/server/components/copy-button/index.js +5 -3
- package/dist/server/components/data-grid/index.js +1 -1
- package/dist/server/components/data-table/index.js +14 -10
- package/dist/server/components/date-picker/index.js +15 -9
- package/dist/server/components/date-range-field/index.js +14 -9
- package/dist/server/components/diff-statistics/index.js +4 -2
- package/dist/server/components/drawer/index.js +7 -7
- package/dist/server/components/dropdown/index.js +11 -9
- package/dist/server/components/dropdown-item/index.js +2 -2
- package/dist/server/components/dropdown-menu/index.js +8 -6
- package/dist/server/components/dropdown-trigger/index.js +2 -2
- package/dist/server/components/event-stream-viewer/index.js +7 -4
- package/dist/server/components/event-timeline/index.js +12 -2
- package/dist/server/components/faceted-filter-bar/index.js +5 -6
- package/dist/server/components/feature-section/index.js +1 -1
- package/dist/server/components/file-upload/index.js +1 -1
- package/dist/server/components/floating-action/index.js +16 -0
- package/dist/server/components/focus-trap/index.js +4 -4
- package/dist/server/components/form-field/index.js +3 -2
- package/dist/server/components/grid/index.js +1 -1
- package/dist/server/components/grid-list/index.js +1 -1
- package/dist/server/components/hero-section/index.js +3 -2
- package/dist/server/components/hover-card/index.js +7 -4
- package/dist/server/components/icons/index.js +22 -7
- package/dist/server/components/image/index.js +1 -1
- package/dist/server/components/input/index.js +5 -4
- package/dist/server/components/invocation-rule-builder/index.js +16 -8
- package/dist/server/components/json-editor/index.js +5 -2
- package/dist/server/components/json-schema-editor/index.js +32 -19
- package/dist/server/components/kanban-board/index.js +6 -3
- package/dist/server/components/line-chart/index.js +16 -2
- package/dist/server/components/load-more/index.js +1 -1
- package/dist/server/components/logo-cloud/index.js +1 -1
- package/dist/server/components/matrix-chart/index.js +16 -3
- package/dist/server/components/media-controls/index.js +1 -1
- package/dist/server/components/mega-menu/index.js +10 -2
- package/dist/server/components/menu-bar/index.js +12 -7
- package/dist/server/components/meter/index.js +1 -1
- package/dist/server/components/modal/index.js +9 -6
- package/dist/server/components/multi-select/index.js +16 -2
- package/dist/server/components/navigation-bar/index.js +9 -2
- package/dist/server/components/navigation-item/index.js +2 -2
- package/dist/server/components/newsletter-section/index.js +6 -5
- package/dist/server/components/number-input/index.js +8 -4
- package/dist/server/components/page-header/index.js +1 -1
- package/dist/server/components/payload-inspector/index.js +14 -5
- package/dist/server/components/permission-matrix/index.js +7 -3
- package/dist/server/components/phone-input/index.js +1 -1
- package/dist/server/components/popover/index.js +9 -7
- package/dist/server/components/portal/index.js +10 -3
- package/dist/server/components/pricing-card/index.js +3 -3
- package/dist/server/components/pricing-section/index.js +3 -3
- package/dist/server/components/radio-group/index.js +5 -2
- package/dist/server/components/rating/index.js +1 -1
- package/dist/server/components/resizable-panels/index.js +2 -2
- package/dist/server/components/run-step-timeline/index.js +14 -6
- package/dist/server/components/schedule-builder/index.js +14 -8
- package/dist/server/components/schema-form/index.js +15 -8
- package/dist/server/components/scroll-area/index.js +8 -2
- package/dist/server/components/search-field/index.js +3 -4
- package/dist/server/components/secret-value-field/index.js +8 -2
- package/dist/server/components/select/index.js +4 -3
- package/dist/server/components/selection-popover/index.js +7 -5
- package/dist/server/components/share-card/index.js +1 -1
- package/dist/server/components/sheet/index.js +6 -6
- package/dist/server/components/side-navigation/index.js +7 -5
- package/dist/server/components/side-navigation-group/index.js +5 -3
- package/dist/server/components/side-navigation-item/index.js +3 -3
- package/dist/server/components/sidebar/index.js +11 -9
- package/dist/server/components/slider/index.js +2 -2
- package/dist/server/components/sortable-list/index.js +2 -2
- package/dist/server/components/source-diff-viewer/index.js +1 -1
- package/dist/server/components/spectrogram/index.js +2 -2
- package/dist/server/components/spectrum-chart/index.js +2 -2
- package/dist/server/components/speed-dial/index.js +10 -4
- package/dist/server/components/speed-dial-action/index.js +7 -4
- package/dist/server/components/{stat → statistic}/index.js +7 -7
- package/dist/server/components/statistic-group/index.js +17 -0
- package/dist/server/components/statistics-section/index.js +18 -0
- package/dist/server/components/status-dot/index.js +2 -2
- package/dist/server/components/steps/index.js +1 -1
- package/dist/server/components/tab/index.js +2 -2
- package/dist/server/components/tab-list/index.js +2 -2
- package/dist/server/components/tab-panel/index.js +2 -2
- package/dist/server/components/table/index.js +10 -8
- package/dist/server/components/table-body/index.js +2 -2
- package/dist/server/components/table-header/index.js +2 -2
- package/dist/server/components/table-header-cell/index.js +2 -2
- package/dist/server/components/table-of-contents/index.js +1 -1
- package/dist/server/components/table-row/index.js +2 -2
- package/dist/server/components/tabs/index.js +6 -6
- package/dist/server/components/tag-input/index.js +1 -1
- package/dist/server/components/team-section/index.js +10 -7
- package/dist/server/components/testimonial-section/index.js +4 -5
- package/dist/server/components/textarea/index.js +4 -3
- package/dist/server/components/time-field/index.js +4 -3
- package/dist/server/components/toast-region/index.js +8 -2
- package/dist/server/components/toggle/index.js +2 -2
- package/dist/server/components/toolbar/index.js +1 -1
- package/dist/server/components/tooltip/index.js +7 -5
- package/dist/server/components/transfer-list/index.js +10 -2
- package/dist/server/components/tree/index.js +2 -2
- package/dist/server/components/tree-item/index.js +2 -2
- package/dist/server/components/typography/index.js +1 -1
- package/dist/server/components/virtual-list/index.js +2 -2
- package/dist/server/components/waveform/index.js +2 -2
- package/dist/server/index.js +270 -240
- package/dist/server/{index.server-jnyznmzv.js → index.server-0154rjj6.js} +2 -2
- package/dist/server/{index.server-0hjcds3y.js → index.server-01bz4wmw.js} +15 -6
- package/dist/server/{index.server-mz7sqkya.js → index.server-0380jykf.js} +7 -7
- package/dist/server/{index.server-7yq1jgt3.js → index.server-03ndc3td.js} +1 -1
- package/dist/server/{index.server-ez5hp0ya.js → index.server-0j8ttfb3.js} +24 -23
- package/dist/server/{index.server-q5gvb174.js → index.server-0p1z1kbs.js} +10 -10
- package/dist/server/{index.server-vg8t3dkb.js → index.server-0qa6j0gt.js} +4 -4
- package/dist/server/{index.server-4cbqjf14.js → index.server-0qqjq4dh.js} +3 -3
- package/dist/server/{index.server-8gv0tm3r.js → index.server-0qvwymqd.js} +2 -2
- package/dist/server/index.server-0rqytc2f.js +53 -0
- package/dist/server/{index.server-dz1r9xw5.js → index.server-1233sspt.js} +63 -36
- package/dist/server/{index.server-txnxnbd6.js → index.server-1cnz5ax1.js} +32 -6
- package/dist/server/{index.server-mvhf8b7g.js → index.server-1dk15yd2.js} +3 -3
- package/dist/server/{index.server-6zgzghtm.js → index.server-1g3bqz6w.js} +1 -1
- package/dist/server/index.server-1hr2nnvq.js +67 -0
- package/dist/server/index.server-1zhe1vwe.js +70 -0
- package/dist/server/{index.server-49m5nntq.js → index.server-20rc21x2.js} +19 -3
- package/dist/server/index.server-2bvasys0.js +27 -0
- package/dist/server/{index.server-9eccb2fc.js → index.server-2bw5fqwh.js} +73 -66
- package/dist/server/{index.server-rxzp610y.js → index.server-2eb8pcev.js} +22 -4
- package/dist/server/index.server-2h45p8kd.js +410 -0
- package/dist/server/index.server-2k0cnsm4.js +418 -0
- package/dist/server/{index.server-d5a5ccz7.js → index.server-2mwr7vjg.js} +24 -25
- package/dist/server/{index.server-2cyn5sjd.js → index.server-2pst4wcx.js} +1 -1
- package/dist/server/{index.server-pfbzz3x7.js → index.server-2qydtmtp.js} +1 -1
- package/dist/server/{index.server-0svdq2kq.js → index.server-2s7btgxx.js} +9 -10
- package/dist/server/{index.server-h90pjrez.js → index.server-36rjvy9e.js} +1 -1
- package/dist/server/{index.server-kvdrhzr3.js → index.server-3e8n2sry.js} +14 -7
- package/dist/server/{index.server-s0vmsxhj.js → index.server-3f43g1z6.js} +1 -1
- package/dist/server/index.server-3ne3ekqq.js +147 -0
- package/dist/server/{index.server-3f2jzg7q.js → index.server-3tscwcse.js} +15 -18
- package/dist/server/{index.server-0jhra85x.js → index.server-3wekb2fb.js} +8 -4
- package/dist/server/{index.server-dbne33pa.js → index.server-47bbxz3a.js} +10 -3
- package/dist/server/{index.server-m80kp6tm.js → index.server-49g0pm4w.js} +73 -22
- package/dist/server/index.server-4efnbtq1.js +2 -0
- package/dist/server/{index.server-d6j2jmqg.js → index.server-4h8c8xh7.js} +1 -1
- package/dist/server/{index.server-fe98ezq1.js → index.server-4jw1fkcg.js} +6 -6
- package/dist/server/{index.server-szgghcdh.js → index.server-4kqjwvrq.js} +106 -214
- package/dist/server/index.server-4sg50xfn.js +27 -0
- package/dist/server/{index.server-8grn4zd3.js → index.server-4sr9f5r0.js} +122 -55
- package/dist/server/{index.server-jtytqppy.js → index.server-4w0rydct.js} +9 -4
- package/dist/server/{index.server-nq2r5m1r.js → index.server-4ywb3qcm.js} +92 -41
- package/dist/server/{index.server-fe41fvr4.js → index.server-52e4m6b5.js} +1 -1
- package/dist/server/{index.server-nbrd998e.js → index.server-54yr0y08.js} +1 -1
- package/dist/server/index.server-55ehgem8.js +2 -0
- package/dist/server/{index.server-ap53z0a0.js → index.server-5j7v41gy.js} +18 -9
- package/dist/server/{index.server-1vfhzhkj.js → index.server-5schb2vt.js} +4 -4
- package/dist/server/{index.server-x4a15jpm.js → index.server-6184qc69.js} +1 -1
- package/dist/server/{index.server-d3pqthtp.js → index.server-64dvhh7s.js} +12 -6
- package/dist/server/index.server-6771g0q4.js +611 -0
- package/dist/server/{index.server-kt0ncrqs.js → index.server-6c9144ex.js} +1 -1
- package/dist/server/{index.server-c8pmq1tm.js → index.server-6e5cj9hs.js} +7 -5
- package/dist/server/{index.server-9w7qdn8h.js → index.server-6gzzpcyd.js} +1 -4
- package/dist/server/index.server-6n5grdb2.js +78 -0
- package/dist/server/{index.server-8tr30fpp.js → index.server-6z6s8qz8.js} +1 -1
- package/dist/server/{index.server-51t6yebn.js → index.server-70j8j998.js} +12 -2
- package/dist/server/index.server-71zvvayv.js +234 -0
- package/dist/server/{index.server-8b35ekqg.js → index.server-72d0qgdy.js} +6 -6
- package/dist/server/index.server-74c0gw8e.js +12 -0
- package/dist/server/index.server-77p0jy71.js +100 -0
- package/dist/server/{index.server-ks49bprh.js → index.server-79bg6rad.js} +4 -4
- package/dist/server/{index.server-k2tmp4j0.js → index.server-7ae3f1sh.js} +1 -1
- package/dist/server/{index.server-62593nnh.js → index.server-7cwcqhqd.js} +9 -9
- package/dist/server/{index.server-2qdzkapm.js → index.server-7he4va6w.js} +3 -3
- package/dist/server/{index.server-nzgjr724.js → index.server-7kez94sz.js} +22 -11
- package/dist/server/{index.server-gf20dp5p.js → index.server-7mhk40r3.js} +1 -1
- package/dist/server/{index.server-5c8qde3q.js → index.server-7ssngbpa.js} +1 -1
- package/dist/server/{index.server-20km2ga0.js → index.server-7sxx7645.js} +21 -20
- package/dist/server/{index.server-8sybstcc.js → index.server-7wtntdet.js} +230 -156
- package/dist/server/index.server-86hdc1jx.js +12 -0
- package/dist/server/{index.server-b2jaw4ng.js → index.server-8bmwna5v.js} +5 -5
- package/dist/server/{index.server-k1fyyae7.js → index.server-8n17dgbq.js} +1 -1
- package/dist/server/{index.server-8dt36sdm.js → index.server-8s33z1q7.js} +2 -2
- package/dist/server/index.server-8t53gqe7.js +369 -0
- package/dist/server/{index.server-7qak74fg.js → index.server-8w95jmf1.js} +20 -25
- package/dist/server/{index.server-4maxbgsj.js → index.server-91t9mbkx.js} +3 -3
- package/dist/server/{index.server-zp4hjjym.js → index.server-91yqn19v.js} +27 -16
- package/dist/server/{index.server-n0rbn5yf.js → index.server-92sweseg.js} +2 -1
- package/dist/server/index.server-93943z3e.js +9 -0
- package/dist/server/{index.server-rbpvcrr3.js → index.server-9emgn750.js} +1 -1
- package/dist/server/{index.server-ft1xvwqd.js → index.server-9n2bc545.js} +1 -1
- package/dist/server/{index.server-cch0eed5.js → index.server-9pgjw8dv.js} +10 -39
- package/dist/server/{index.server-0chhpkg7.js → index.server-a2zfb135.js} +46 -5
- package/dist/server/{index.server-xanq9ppe.js → index.server-a5w1wy5w.js} +4 -4
- package/dist/server/{index.server-rbd5ys4z.js → index.server-a5zsgn3k.js} +1 -1
- package/dist/server/{index.server-vz9hqkdq.js → index.server-a8gpnzgg.js} +20 -8
- package/dist/server/{index.server-003t81xk.js → index.server-abqbstkt.js} +4 -4
- package/dist/server/{index.server-4rdkwmfb.js → index.server-ampgmpq8.js} +2 -2
- package/dist/server/{index.server-mewms9dg.js → index.server-ayhcc6z5.js} +82 -75
- package/dist/server/{index.server-sf3nk3j2.js → index.server-b7pq5xpd.js} +28 -19
- package/dist/server/index.server-b8m7ej8c.js +477 -0
- package/dist/server/{index.server-9fyy0j4c.js → index.server-bfmd7nf6.js} +16 -25
- package/dist/server/{index.server-x1xxzfvg.js → index.server-bmgnba9v.js} +7 -3
- package/dist/server/{index.server-y2ncgt7p.js → index.server-bsm39gpy.js} +15 -9
- package/dist/server/{index.server-2752sd9e.js → index.server-c2xgjbj7.js} +6 -2
- package/dist/server/{index.server-thp81fc0.js → index.server-c51n35c3.js} +1 -1
- package/dist/server/{index.server-d146g8pr.js → index.server-casqzp4h.js} +61 -66
- package/dist/server/{index.server-vd302sxz.js → index.server-cptwpqbr.js} +73 -72
- package/dist/server/{index.server-38aywdk1.js → index.server-cvc44t4m.js} +5 -5
- package/dist/server/{index.server-7ygdwxre.js → index.server-d04axnt4.js} +18 -7
- package/dist/server/{index.server-thedzn9z.js → index.server-d26jzn2m.js} +34 -38
- package/dist/server/{index.server-pyjzfjfn.js → index.server-d70brw24.js} +8 -8
- package/dist/server/{index.server-rtk7fhjy.js → index.server-d9z0psxj.js} +29 -19
- package/dist/server/{index.server-dmmvwy6p.js → index.server-dfp8jvrr.js} +1 -1
- package/dist/server/index.server-dx5b28qh.js +27 -0
- package/dist/server/index.server-e4f105cg.js +31 -0
- package/dist/server/index.server-e65x21yr.js +2 -0
- package/dist/server/{index.server-z1q7qnb8.js → index.server-e97zrck0.js} +9 -2
- package/dist/server/{index.server-tww47bb6.js → index.server-ec9anf8e.js} +53 -33
- package/dist/server/index.server-epvxcafz.js +2 -0
- package/dist/server/{index.server-d4e6afc0.js → index.server-evrfgzwn.js} +6 -3
- package/dist/server/{index.server-jtgw9d23.js → index.server-eyta8yd2.js} +4 -5
- package/dist/server/{index.server-v73af5rk.js → index.server-f4pxscq5.js} +48 -37
- package/dist/server/{index.server-y4kfz0er.js → index.server-fd3az8g2.js} +4 -4
- package/dist/server/{index.server-t859hsx1.js → index.server-fdpe3vky.js} +5 -5
- package/dist/server/{index.server-nwzrpjc9.js → index.server-ff9zfw15.js} +13 -13
- package/dist/server/{index.server-7scshbcm.js → index.server-fgtqpnva.js} +1 -1
- package/dist/server/index.server-fka21791.js +447 -0
- package/dist/server/{index.server-6mnbznbt.js → index.server-fphvzcfb.js} +2 -2
- package/dist/server/{index.server-ahtaqav5.js → index.server-fv23h844.js} +1 -1
- package/dist/server/{index.server-ezpdsg81.js → index.server-fymevt3c.js} +133 -125
- package/dist/server/{index.server-be9bpqeh.js → index.server-fys5yj23.js} +5 -3
- package/dist/server/{index.server-a9de6h0d.js → index.server-g1z2zgwk.js} +8 -8
- package/dist/server/{index.server-xjnge1yw.js → index.server-g38yys7a.js} +30 -23
- package/dist/server/index.server-gdtg1xg7.js +302 -0
- package/dist/server/{index.server-2qd56bzw.js → index.server-gme23wnx.js} +9 -12
- package/dist/server/{index.server-94b7tjs5.js → index.server-grq89cv5.js} +2 -1
- package/dist/server/index.server-gse6hc5s.js +9 -0
- package/dist/server/{index.server-apyaqxfw.js → index.server-gvk55r2z.js} +1 -1
- package/dist/server/{index.server-v90d8593.js → index.server-h6c6b4sq.js} +14 -8
- package/dist/server/index.server-h6qhx8mw.js +1214 -0
- package/dist/server/index.server-haws3fsj.js +2 -0
- package/dist/server/{index.server-ncdt0xb7.js → index.server-hcpq0x8d.js} +1 -1
- package/dist/server/{index.server-bs4tyzxz.js → index.server-hfccqkjw.js} +1 -1
- package/dist/server/{index.server-2pc5cv6c.js → index.server-hxjkfdp2.js} +1 -1
- package/dist/server/{index.server-psqfjzpc.js → index.server-hzf509s2.js} +32 -16
- package/dist/server/{index.server-geq56xaz.js → index.server-j4akck2w.js} +28 -12
- package/dist/server/{index.server-mda2y5g6.js → index.server-j57zek3p.js} +1 -1
- package/dist/server/index.server-ja3fmd29.js +211 -0
- package/dist/server/index.server-jepjmrcp.js +40 -0
- package/dist/server/{index.server-5npa16n7.js → index.server-jw63k15t.js} +1 -1
- package/dist/server/{index.server-xb9cj0bp.js → index.server-kbtw4pxm.js} +1 -1
- package/dist/server/index.server-kd5bmzfj.js +2 -0
- package/dist/server/{index.server-8xrzkve2.js → index.server-kfem5020.js} +6 -6
- package/dist/server/{index.server-9599zs05.js → index.server-kjv6v7jm.js} +1 -1
- package/dist/server/{index.server-z721a5gp.js → index.server-km7pzejr.js} +23 -14
- package/dist/server/{index.server-tnbaknbp.js → index.server-kmn9zrqn.js} +1 -1
- package/dist/server/index.server-kr3wrv13.js +38 -0
- package/dist/server/index.server-krwbxm8x.js +36 -0
- package/dist/server/{index.server-66amt15s.js → index.server-kszs0qx5.js} +25 -2
- package/dist/server/{index.server-a2hz77tt.js → index.server-m1r7jk3n.js} +9 -20
- package/dist/server/{index.server-2ffw6am1.js → index.server-m9p9vfj1.js} +3 -3
- package/dist/server/{index.server-ww54rv4y.js → index.server-mgvey6vx.js} +118 -105
- package/dist/server/index.server-mhw6yp2x.js +27 -0
- package/dist/server/index.server-mrjns5eb.js +41 -0
- package/dist/server/{index.server-3axwhvt7.js → index.server-msdm0gyk.js} +18 -4
- package/dist/server/{index.server-j150jxcq.js → index.server-msp145ky.js} +1 -1
- package/dist/server/{index.server-9xrqh29s.js → index.server-mvcsfqs9.js} +17 -2
- package/dist/server/{index.server-8tkwdtna.js → index.server-mxgakpfj.js} +6 -6
- package/dist/server/{index.server-64r048av.js → index.server-n63d1ssb.js} +4 -2
- package/dist/server/{index.server-veastatv.js → index.server-nbq0tmx1.js} +26 -16
- package/dist/server/{index.server-9drzqktm.js → index.server-nbspp00m.js} +15 -67
- package/dist/server/{index.server-d77c4vae.js → index.server-ne3hnn6e.js} +3 -3
- package/dist/server/{index.server-0gwr59yw.js → index.server-nj8kk5bv.js} +1 -1
- package/dist/server/{index.server-0gg1njz4.js → index.server-nprmntcb.js} +3 -3
- package/dist/server/{index.server-6rv1rfwq.js → index.server-nqkfm3m7.js} +46 -13
- package/dist/server/{index.server-kvn6cj65.js → index.server-nqz2nrgp.js} +1 -1
- package/dist/server/{index.server-zngmm4tg.js → index.server-p36e1472.js} +3 -3
- package/dist/server/{index.server-894t97kv.js → index.server-pctqr0zf.js} +53 -48
- package/dist/server/{index.server-egzx2kh5.js → index.server-pee1wa4g.js} +8 -6
- package/dist/server/{index.server-0yfgpazx.js → index.server-pwxe9s42.js} +19 -19
- package/dist/server/index.server-q7r53g7z.js +53 -0
- package/dist/server/{index.server-b6jr01st.js → index.server-qjh3vsj8.js} +5 -5
- package/dist/server/index.server-qycjqq8v.js +179 -0
- package/dist/server/index.server-r2z5ds34.js +54 -0
- package/dist/server/{index.server-agsdwg53.js → index.server-r5emexd4.js} +1 -1
- package/dist/server/{index.server-zvrew616.js → index.server-r60akntz.js} +1 -1
- package/dist/server/index.server-rjx8m9en.js +27 -0
- package/dist/server/{index.server-tnecnach.js → index.server-rvaw3nks.js} +8 -12
- package/dist/server/index.server-s6kgtjhh.js +35 -0
- package/dist/server/{index.server-m4wc0170.js → index.server-s6stvh7k.js} +1 -1
- package/dist/server/{index.server-hxveaqg1.js → index.server-scdk1we9.js} +12 -12
- package/dist/server/{index.server-jxseyx33.js → index.server-sfbna82r.js} +1 -1
- package/dist/server/index.server-sgjc9gkq.js +252 -0
- package/dist/server/{index.server-ny0z50m0.js → index.server-sxkkaj8b.js} +33 -5
- package/dist/server/{index.server-pe929n15.js → index.server-sy0vfg2g.js} +11 -3
- package/dist/server/index.server-t2p901p7.js +527 -0
- package/dist/server/{index.server-ghvvqkfc.js → index.server-t8dts351.js} +388 -342
- package/dist/server/{index.server-032p855q.js → index.server-td8rx9dz.js} +5 -5
- package/dist/server/{index.server-3g76h7z7.js → index.server-th1tsad4.js} +62 -26
- package/dist/server/index.server-tmfcgx1j.js +136 -0
- package/dist/server/index.server-tpny5pjk.js +557 -0
- package/dist/server/{index.server-v3vnmjat.js → index.server-trc6xj4s.js} +1 -1
- package/dist/server/{index.server-ng8y854r.js → index.server-tvj0x3qy.js} +49 -39
- package/dist/server/{index.server-n85yz1tm.js → index.server-v12jk4c9.js} +3 -3
- package/dist/server/index.server-v576qshz.js +2 -0
- package/dist/server/index.server-v6b3k6cq.js +15 -0
- package/dist/server/{index.server-g95bk8rc.js → index.server-vcfv93bg.js} +30 -8
- package/dist/server/index.server-vke078fx.js +745 -0
- package/dist/server/{index.server-s4wm4g2a.js → index.server-w2jwyz17.js} +4 -4
- package/dist/server/{index.server-zfx4magq.js → index.server-w5f4ex0f.js} +65 -28
- package/dist/server/{index.server-9w7k8wwk.js → index.server-w8phxx00.js} +179 -143
- package/dist/server/{index.server-hrq85wvg.js → index.server-w96rfs8f.js} +2 -2
- package/dist/server/{index.server-0sx92swg.js → index.server-wbe0dskj.js} +1 -1
- package/dist/server/{index.server-8bm66pm4.js → index.server-wm8957be.js} +10 -10
- package/dist/server/{index.server-yf2jn8cr.js → index.server-wqe8pzw1.js} +8 -7
- package/dist/server/{index.server-c42b462p.js → index.server-wxs2c5d0.js} +92 -65
- package/dist/server/{index.server-gmd6gbwb.js → index.server-x6hbm4je.js} +5 -2
- package/dist/server/index.server-xa8kjs78.js +111 -0
- package/dist/server/{index.server-z754e36a.js → index.server-xap17cfh.js} +1 -1
- package/dist/server/{index.server-xbx230ec.js → index.server-xn6qg9pk.js} +1 -1
- package/dist/server/index.server-xqbes4jd.js +397 -0
- package/dist/server/{index.server-wg6ddzpa.js → index.server-xsh52hjt.js} +9 -4
- package/dist/server/{index.server-nz6jpmkx.js → index.server-y7017ygc.js} +4 -4
- package/dist/server/{index.server-bqjv32nb.js → index.server-y86zyqa9.js} +10 -4
- package/dist/server/{index.server-r82zjq88.js → index.server-y8m06g9p.js} +60 -50
- package/dist/server/index.server-yase1x1a.js +23 -0
- package/dist/server/{index.server-frb9e55d.js → index.server-ybb5ery2.js} +9 -9
- package/dist/server/{index.server-fhrqsg97.js → index.server-yd9shwqq.js} +1 -1
- package/dist/server/{index.server-3qf60xx4.js → index.server-yevngyp5.js} +1 -1
- package/dist/server/{index.server-0qh3v3nq.js → index.server-yhjecwfj.js} +53 -18
- package/dist/server/{index.server-6gbhg9gp.js → index.server-ynt74xb3.js} +9 -2
- package/dist/server/{index.server-d4ft97bx.js → index.server-yvcrg99d.js} +4 -4
- package/dist/server/{index.server-k4mpevmq.js → index.server-ywvrf5rd.js} +1 -1
- package/dist/server/index.server-yyarp1ny.js +2 -0
- package/dist/server/{index.server-yqhww50r.js → index.server-z2fdg8dg.js} +4 -4
- package/dist/server/{index.server-hx91ng7z.js → index.server-z6cygsgg.js} +1 -1
- package/dist/server/index.server-zf0221kw.js +73 -0
- package/dist/server/{index.server-zm04d9eq.js → index.server-zfxb12hm.js} +34 -52
- package/dist/server/{index.server-hcsd5gdb.js → index.server-zgvrg9rm.js} +23 -3
- package/dist/utilities/attachments.d.ts +63 -1
- package/dist/utilities/drag-scroll-physics.d.ts +48 -0
- package/dist/utilities/focus.d.ts +81 -0
- package/dist/utilities/html-element-types.d.ts +19 -0
- package/dist/utilities/sortable-controller.svelte.d.ts +2 -2
- package/dist/utilities/use-drag-scroll.svelte.d.ts +26 -0
- package/dist/utilities/use-drag-scroll.types.d.ts +15 -0
- package/dist/utilities/use-fine-pointer.svelte.d.ts +12 -0
- package/dist/utilities/use-fine-pointer.types.d.ts +4 -0
- package/dist/utilities/value-change.d.ts +3 -2
- package/package.json +166 -169
- package/src/_internal/anchored-overlay.svelte.ts +118 -37
- package/src/_internal/date-value.ts +71 -0
- package/src/_internal/form-field-context.ts +1 -1
- package/src/_internal/form-field-frame.svelte +88 -0
- package/src/_internal/form-field-provider.svelte +7 -0
- package/src/_internal/overlay.ts +2 -1
- package/src/_internal/text-direction-container.ts +317 -0
- package/src/_internal/text-direction-css.ts +1437 -0
- package/src/_internal/text-direction.ts +102 -107
- package/src/_internal/tree-autoscroll.svelte.ts +77 -0
- package/src/_internal/tree-filter.svelte.ts +91 -0
- package/src/components/_internal/chart-data-table.svelte +30 -0
- package/src/components/_internal/checkbox-indicator-shell.svelte +9 -0
- package/src/components/_internal/create-command-list-state.svelte.ts +58 -4
- package/src/components/_internal/person-byline.css +29 -0
- package/src/components/_internal/person-byline.svelte +14 -0
- package/src/components/_internal/section-skeleton.css +45 -0
- package/src/components/_radio/radio.svelte +21 -20
- package/src/components/_radio/radio.types.ts +1 -1
- package/src/components/_sortable-item.svelte +24 -2
- package/src/components/access-gate/access-gate-inline.svelte +22 -0
- package/src/components/access-gate/access-gate.css +55 -6
- package/src/components/access-gate/access-gate.svelte +5 -1
- package/src/components/accordion-item/accordion-item.css +8 -6
- package/src/components/alert/alert.examples.json +2 -2
- package/src/components/alert/alert.schema.json +1 -1
- package/src/components/alert/alert.schema.ts +1 -1
- package/src/components/alert/alert.svelte +2 -2
- package/src/components/alert/alert.types.ts +1 -1
- package/src/components/alert-dialog/alert-dialog.examples.json +2 -2
- package/src/components/alert-dialog/alert-dialog.schema.json +2 -2
- package/src/components/alert-dialog/alert-dialog.schema.ts +2 -2
- package/src/components/alert-dialog/alert-dialog.svelte +4 -4
- package/src/components/alert-dialog/alert-dialog.types.ts +2 -2
- package/src/components/approval-card/approval-card-actions.svelte +4 -3
- package/src/components/approval-card/approval-card.css +9 -2
- package/src/components/approval-card/approval-card.examples.json +2 -2
- package/src/components/approval-card/approval-card.schema.json +5 -3
- package/src/components/approval-card/approval-card.schema.ts +3 -1
- package/src/components/approval-card/approval-card.svelte +8 -8
- package/src/components/approval-card/approval-card.types.ts +4 -4
- package/src/components/area-chart/area-chart.css +4 -3
- package/src/components/area-chart/area-chart.examples.json +6 -0
- package/src/components/area-chart/area-chart.svelte +156 -155
- package/src/components/area-chart/index.ts +1 -0
- package/src/components/autocomplete/autocomplete.css +2 -49
- package/src/components/autocomplete/autocomplete.schema.json +1 -1
- package/src/components/autocomplete/autocomplete.schema.ts +1 -1
- package/src/components/autocomplete/autocomplete.svelte +25 -33
- package/src/components/autocomplete/autocomplete.types.ts +17 -3
- package/src/components/avatar/avatar.css +0 -2
- package/src/components/avatar/avatar.schema.json +5 -10
- package/src/components/avatar/avatar.schema.ts +4 -9
- package/src/components/avatar/avatar.types.ts +1 -1
- package/src/components/avatar-group/avatar-group.css +3 -1
- package/src/components/avatar-group/avatar-group.svelte +46 -17
- package/src/components/backdrop/backdrop.schema.json +2 -2
- package/src/components/backdrop/backdrop.schema.ts +2 -2
- package/src/components/backdrop/backdrop.svelte +16 -4
- package/src/components/backdrop/backdrop.types.ts +2 -2
- package/src/components/badge/badge.css +2 -2
- package/src/components/badge/badge.schema.json +1 -1
- package/src/components/badge/badge.schema.ts +1 -1
- package/src/components/badge/badge.svelte +20 -37
- package/src/components/badge/badge.types.ts +3 -3
- package/src/components/banner/banner.examples.json +1 -1
- package/src/components/banner/banner.schema.json +5 -3
- package/src/components/banner/banner.schema.ts +3 -1
- package/src/components/banner/banner.svelte +2 -2
- package/src/components/banner/banner.types.ts +3 -3
- package/src/components/bar-chart/bar-chart.css +4 -3
- package/src/components/bar-chart/bar-chart.examples.json +6 -0
- package/src/components/bar-chart/bar-chart.svelte +141 -145
- package/src/components/bar-chart/index.ts +1 -0
- package/src/components/bento-cell/bento-cell.schema.json +102 -2
- package/src/components/bento-cell/bento-cell.schema.ts +102 -2
- package/src/components/bento-cell/bento-cell.svelte +2 -2
- package/src/components/bento-cell/bento-cell.types.ts +3 -2
- package/src/components/bento-grid/bento-grid.css +7 -17
- package/src/components/bento-grid/bento-grid.examples.json +1 -1
- package/src/components/bento-grid/bento-grid.schema.json +102 -2
- package/src/components/bento-grid/bento-grid.schema.ts +102 -2
- package/src/components/bento-grid/bento-grid.svelte +16 -48
- package/src/components/bento-grid/bento-grid.types.ts +4 -3
- package/src/components/blog-section/blog-section.css +4 -47
- package/src/components/blog-section/blog-section.svelte +14 -17
- package/src/components/breadcrumbs/breadcrumbs.svelte +11 -3
- package/src/components/breadcrumbs/breadcrumbs.types.ts +2 -1
- package/src/components/button/button.css +15 -5
- package/src/components/button/button.svelte +3 -4
- package/src/components/button-group/button-group.schema.json +2 -1
- package/src/components/button-group/button-group.schema.ts +1 -0
- package/src/components/button-group/button-group.svelte +3 -17
- package/src/components/button-group/button-group.types.ts +1 -1
- package/src/components/calendar/calendar.css +3 -0
- package/src/components/calendar/calendar.schema.json +8 -4
- package/src/components/calendar/calendar.schema.ts +4 -0
- package/src/components/calendar/calendar.svelte +113 -46
- package/src/components/calendar/calendar.types.ts +4 -4
- package/src/components/{cta-section/cta-section.css → call-to-action-section/call-to-action-section.css} +11 -11
- package/src/components/call-to-action-section/call-to-action-section.examples.json +13 -0
- package/src/components/{cta-section/cta-section.schema.json → call-to-action-section/call-to-action-section.schema.json} +1 -1
- package/src/components/{cta-section/cta-section.schema.ts → call-to-action-section/call-to-action-section.schema.ts} +1 -1
- package/src/components/{cta-section/cta-section.svelte → call-to-action-section/call-to-action-section.svelte} +6 -6
- package/src/components/{cta-section/cta-section.types.ts → call-to-action-section/call-to-action-section.types.ts} +23 -11
- package/src/components/call-to-action-section/index.ts +10 -0
- package/src/components/callout/callout.css +5 -0
- package/src/components/capability-gate/capability-gate.examples.json +1 -1
- package/src/components/capability-gate/capability-gate.schema.json +3 -3
- package/src/components/capability-gate/capability-gate.schema.ts +3 -3
- package/src/components/capability-gate/capability-gate.svelte +6 -6
- package/src/components/capability-gate/capability-gate.types.ts +9 -6
- package/src/components/card/card.css +25 -7
- package/src/components/card/card.examples.json +3 -3
- package/src/components/card/card.schema.json +6 -6
- package/src/components/card/card.schema.ts +6 -6
- package/src/components/card/card.svelte +1 -1
- package/src/components/card/card.types.ts +4 -3
- package/src/components/carousel/carousel.css +81 -7
- package/src/components/carousel/carousel.examples.json +6 -0
- package/src/components/carousel/carousel.schema.json +42 -1
- package/src/components/carousel/carousel.schema.ts +49 -1
- package/src/components/carousel/carousel.svelte +573 -69
- package/src/components/carousel/carousel.types.ts +47 -2
- package/src/components/carousel/carousel.variables.json +6 -1
- package/src/components/carousel/carousel.variables.ts +6 -1
- package/src/components/carousel/index.ts +1 -0
- package/src/components/checkbox/checkbox.css +63 -29
- package/src/components/checkbox/checkbox.examples.json +1 -1
- package/src/components/checkbox/checkbox.schema.json +6 -6
- package/src/components/checkbox/checkbox.schema.ts +6 -6
- package/src/components/checkbox/checkbox.svelte +55 -39
- package/src/components/checkbox/checkbox.types.ts +4 -4
- package/src/components/checkbox-group/checkbox-group.css +7 -9
- package/src/components/checkbox-group/checkbox-group.examples.json +6 -0
- package/src/components/checkbox-group/checkbox-group.svelte +9 -2
- package/src/components/checkbox-group/checkbox-group.types.ts +2 -1
- package/src/components/chip/chip.css +3 -0
- package/src/components/chip/chip.examples.json +1 -1
- package/src/components/chip/chip.schema.json +2 -2
- package/src/components/chip/chip.schema.ts +2 -2
- package/src/components/chip/chip.svelte +7 -7
- package/src/components/chip/chip.types.ts +6 -6
- package/src/components/choice-grid/choice-grid.css +2 -9
- package/src/components/choice-grid/choice-grid.schema.json +4 -5
- package/src/components/choice-grid/choice-grid.schema.ts +4 -5
- package/src/components/choice-grid/choice-grid.svelte +12 -9
- package/src/components/choice-grid/choice-grid.types.ts +1 -27
- package/src/components/click-away-listener/click-away-listener.examples.json +1 -1
- package/src/components/click-away-listener/click-away-listener.schema.json +2 -2
- package/src/components/click-away-listener/click-away-listener.schema.ts +2 -2
- package/src/components/click-away-listener/click-away-listener.svelte +2 -2
- package/src/components/click-away-listener/click-away-listener.types.ts +3 -3
- package/src/components/code-block/code-block.css +36 -2
- package/src/components/code-block/code-block.schema.json +5 -1
- package/src/components/code-block/code-block.schema.ts +6 -1
- package/src/components/code-block/code-block.svelte +15 -4
- package/src/components/code-block/code-block.types.ts +9 -1
- package/src/components/collapsible/collapsible.css +16 -8
- package/src/components/collapsible/collapsible.schema.json +1 -1
- package/src/components/collapsible/collapsible.schema.ts +1 -1
- package/src/components/collapsible/collapsible.svelte +2 -2
- package/src/components/collapsible/collapsible.types.ts +1 -1
- package/src/components/color-field/color-field.css +3 -1
- package/src/components/color-field/color-field.examples.json +1 -1
- package/src/components/color-field/color-field.schema.json +1 -5
- package/src/components/color-field/color-field.schema.ts +1 -5
- package/src/components/color-field/color-field.svelte +58 -81
- package/src/components/color-field/color-field.types.ts +2 -5
- package/src/components/color-picker/color-picker.css +1 -1
- package/src/components/color-picker/color-picker.examples.json +3 -3
- package/src/components/color-picker/color-picker.schema.json +0 -4
- package/src/components/color-picker/color-picker.schema.ts +0 -4
- package/src/components/color-picker/color-picker.svelte +12 -24
- package/src/components/color-picker/color-picker.types.ts +0 -2
- package/src/components/color-swatch-picker/color-swatch-picker.schema.json +1 -5
- package/src/components/color-swatch-picker/color-swatch-picker.schema.ts +1 -5
- package/src/components/color-swatch-picker/color-swatch-picker.svelte +4 -7
- package/src/components/color-swatch-picker/color-swatch-picker.types.ts +1 -3
- package/src/components/combobox/combobox.css +20 -18
- package/src/components/combobox/combobox.schema.json +2 -2
- package/src/components/combobox/combobox.schema.ts +2 -2
- package/src/components/combobox/combobox.svelte +190 -84
- package/src/components/combobox/combobox.types.ts +3 -3
- package/src/components/command-item/command-item.schema.json +2 -2
- package/src/components/command-item/command-item.schema.ts +3 -2
- package/src/components/command-item/command-item.svelte +3 -3
- package/src/components/command-item/command-item.types.ts +13 -5
- package/src/components/command-menu/command-menu-inline-completion.svelte.ts +184 -0
- package/src/components/command-menu/command-menu.css +28 -10
- package/src/components/command-menu/command-menu.examples.json +1 -1
- package/src/components/command-menu/command-menu.schema.json +9 -5
- package/src/components/command-menu/command-menu.schema.ts +11 -5
- package/src/components/command-menu/command-menu.svelte +231 -7
- package/src/components/command-menu/command-menu.types.ts +34 -5
- package/src/components/command-menu/index.ts +1 -0
- package/src/components/command-palette/command-palette.css +4 -2
- package/src/components/command-palette/command-palette.examples.json +3 -3
- package/src/components/command-palette/command-palette.schema.json +2 -2
- package/src/components/command-palette/command-palette.schema.ts +2 -2
- package/src/components/command-palette/command-palette.svelte +2 -2
- package/src/components/command-palette/command-palette.types.ts +2 -2
- package/src/components/confirm-dialog/confirm-dialog.examples.json +2 -2
- package/src/components/confirm-dialog/confirm-dialog.schema.json +2 -2
- package/src/components/confirm-dialog/confirm-dialog.schema.ts +2 -2
- package/src/components/confirm-dialog/confirm-dialog.svelte +4 -4
- package/src/components/confirm-dialog/confirm-dialog.types.ts +2 -2
- package/src/components/connection-indicator/connection-indicator.css +5 -4
- package/src/components/container/container.schema.json +3 -3
- package/src/components/container/container.schema.ts +3 -3
- package/src/components/context-menu/context-menu.schema.json +1 -1
- package/src/components/context-menu/context-menu.schema.ts +1 -1
- package/src/components/context-menu/context-menu.svelte +2 -2
- package/src/components/context-menu/context-menu.types.ts +1 -1
- package/src/components/copy-button/copy-button.css +4 -1
- package/src/components/copy-button/copy-button.schema.json +5 -0
- package/src/components/copy-button/copy-button.schema.ts +6 -0
- package/src/components/copy-button/copy-button.svelte +6 -2
- package/src/components/copy-button/copy-button.types.ts +2 -0
- package/src/components/data-grid/_internal/geometry.ts +32 -19
- package/src/components/data-grid/_internal/selection-model-test-support.svelte.ts +15 -0
- package/src/components/data-grid/_internal/selection-model.svelte.ts +15 -12
- package/src/components/data-grid/data-grid.css +8 -2
- package/src/components/data-grid/data-grid.schema.json +2 -2
- package/src/components/data-grid/data-grid.schema.ts +2 -2
- package/src/components/data-grid/data-grid.svelte +3 -3
- package/src/components/data-grid/data-grid.types.ts +2 -2
- package/src/components/date-picker/date-picker.css +8 -3
- package/src/components/date-picker/date-picker.schema.json +4 -0
- package/src/components/date-picker/date-picker.schema.ts +4 -0
- package/src/components/date-picker/date-picker.svelte +101 -73
- package/src/components/date-picker/date-picker.types.ts +2 -0
- package/src/components/date-range-field/date-range-field.css +7 -12
- package/src/components/date-range-field/date-range-field.schema.json +2 -1
- package/src/components/date-range-field/date-range-field.schema.ts +2 -1
- package/src/components/date-range-field/date-range-field.svelte +11 -76
- package/src/components/date-range-field/date-range-field.types.ts +10 -13
- package/src/components/diff-statistics/diff-statistics.css +3 -3
- package/src/components/diff-statistics/diff-statistics.svelte +8 -0
- package/src/components/drawer/drawer.css +25 -12
- package/src/components/drawer/drawer.svelte +5 -1
- package/src/components/dropdown/dropdown.css +2 -2
- package/src/components/dropdown-item/dropdown-item.svelte +1 -1
- package/src/components/dropdown-menu/dropdown-menu.svelte +11 -4
- package/src/components/dropdown-trigger/dropdown-trigger.schema.json +1 -1
- package/src/components/dropdown-trigger/dropdown-trigger.schema.ts +1 -1
- package/src/components/dropdown-trigger/dropdown-trigger.svelte +11 -3
- package/src/components/dropdown-trigger/dropdown-trigger.types.ts +1 -1
- package/src/components/event-stream-viewer/event-stream-viewer.css +35 -9
- package/src/components/event-stream-viewer/event-stream-viewer.examples.json +2 -2
- package/src/components/event-stream-viewer/event-stream-viewer.schema.json +3 -3
- package/src/components/event-stream-viewer/event-stream-viewer.schema.ts +3 -3
- package/src/components/event-stream-viewer/event-stream-viewer.svelte +59 -54
- package/src/components/event-stream-viewer/event-stream-viewer.types.ts +6 -6
- package/src/components/event-stream-viewer/event-stream-viewer.variables.json +1 -1
- package/src/components/event-stream-viewer/event-stream-viewer.variables.ts +4 -1
- package/src/components/event-timeline/event-timeline-modal.ts +64 -0
- package/src/components/event-timeline/event-timeline.css +192 -5
- package/src/components/event-timeline/event-timeline.examples.json +6 -0
- package/src/components/event-timeline/event-timeline.svelte +397 -35
- package/src/components/faceted-filter-bar/faceted-filter-bar.examples.json +2 -2
- package/src/components/faceted-filter-bar/faceted-filter-bar.schema.json +5 -5
- package/src/components/faceted-filter-bar/faceted-filter-bar.schema.ts +5 -5
- package/src/components/faceted-filter-bar/faceted-filter-bar.svelte +18 -19
- package/src/components/faceted-filter-bar/faceted-filter-bar.types.ts +5 -5
- package/src/components/feature-section/feature-section.css +18 -3
- package/src/components/feature-section/feature-section.svelte +1 -1
- package/src/components/feature-section/feature-section.types.ts +10 -2
- package/src/components/feed/feed.svelte +1 -0
- package/src/components/file-upload/file-upload.examples.json +1 -1
- package/src/components/file-upload/file-upload.schema.json +5 -6
- package/src/components/file-upload/file-upload.schema.ts +5 -6
- package/src/components/file-upload/file-upload.svelte +10 -2
- package/src/components/file-upload/file-upload.types.ts +2 -2
- package/src/components/{floating-action-button/floating-action-button.css → floating-action/floating-action.css} +61 -49
- package/src/components/floating-action/floating-action.examples.json +13 -0
- package/src/components/{floating-action-button/floating-action-button.schema.json → floating-action/floating-action.schema.json} +3 -3
- package/src/components/{floating-action-button/floating-action-button.schema.ts → floating-action/floating-action.schema.ts} +3 -3
- package/src/components/{floating-action-button/floating-action-button.svelte → floating-action/floating-action.svelte} +21 -12
- package/src/components/{floating-action-button/floating-action-button.types.ts → floating-action/floating-action.types.ts} +25 -25
- package/src/components/floating-action/index.ts +11 -0
- package/src/components/footer/footer.css +17 -5
- package/src/components/form-field/form-field.css +1 -1
- package/src/components/form-field/form-field.schema.json +6 -2
- package/src/components/form-field/form-field.schema.ts +6 -2
- package/src/components/form-field/form-field.svelte +13 -60
- package/src/components/form-field/form-field.types.ts +8 -6
- package/src/components/form-section/form-section.schema.json +1 -1
- package/src/components/form-section/form-section.schema.ts +1 -1
- package/src/components/grid/grid.css +21 -0
- package/src/components/grid/grid.examples.json +6 -0
- package/src/components/grid/grid.schema.json +106 -1
- package/src/components/grid/grid.schema.ts +107 -1
- package/src/components/grid/grid.svelte +2 -1
- package/src/components/grid/grid.types.ts +12 -5
- package/src/components/grid-item/grid-item.schema.json +91 -1
- package/src/components/grid-item/grid-item.schema.ts +91 -1
- package/src/components/grid-item/grid-item.types.ts +2 -1
- package/src/components/grid-list/grid-list.css +2 -11
- package/src/components/grid-list/grid-list.svelte +8 -5
- package/src/components/grid-list/grid-list.types.ts +1 -1
- package/src/components/grid-list/grid-list.variables.json +1 -1
- package/src/components/grid-list/grid-list.variables.ts +1 -1
- package/src/components/hero-section/hero-section.css +88 -5
- package/src/components/hero-section/hero-section.svelte +4 -1
- package/src/components/hover-card/hover-card.css +49 -5
- package/src/components/hover-card/hover-card.schema.json +10 -6
- package/src/components/hover-card/hover-card.schema.ts +6 -2
- package/src/components/hover-card/hover-card.svelte +68 -6
- package/src/components/hover-card/hover-card.types.ts +6 -6
- package/src/components/image/image.schema.json +6 -7
- package/src/components/image/image.schema.ts +6 -7
- package/src/components/image/image.svelte +3 -3
- package/src/components/image/image.types.ts +3 -3
- package/src/components/inline-loading/inline-loading.css +2 -2
- package/src/components/input/input.css +11 -9
- package/src/components/input/input.schema.json +17 -3
- package/src/components/input/input.schema.ts +18 -3
- package/src/components/input/input.svelte +95 -27
- package/src/components/input/input.types.ts +15 -4
- package/src/components/invocation-rule-builder/invocation-rule-builder.css +23 -5
- package/src/components/invocation-rule-builder/invocation-rule-builder.svelte +8 -4
- package/src/components/json-editor/json-editor.css +39 -5
- package/src/components/json-editor/json-editor.schema.json +7 -4
- package/src/components/json-editor/json-editor.schema.ts +4 -1
- package/src/components/json-editor/json-editor.svelte +30 -8
- package/src/components/json-editor/json-editor.types.ts +4 -4
- package/src/components/json-schema-editor/form-view.svelte +2 -2
- package/src/components/json-schema-editor/json-schema-editor-impl.svelte +5 -5
- package/src/components/json-schema-editor/json-schema-editor-state.svelte.ts +4 -4
- package/src/components/json-schema-editor/json-schema-editor-state.types.ts +2 -2
- package/src/components/json-schema-editor/json-schema-editor.css +7 -9
- package/src/components/json-schema-editor/json-schema-editor.schema.json +2 -2
- package/src/components/json-schema-editor/json-schema-editor.schema.ts +2 -2
- package/src/components/json-schema-editor/json-schema-editor.types.ts +2 -2
- package/src/components/json-schema-editor/property-editor.svelte +6 -6
- package/src/components/json-schema-editor/property-list.svelte +12 -6
- package/src/components/json-viewer/json-viewer.css +6 -3
- package/src/components/kanban-board/kanban-board-column-reorder.svelte.ts +108 -0
- package/src/components/kanban-board/kanban-board-helpers.ts +91 -0
- package/src/components/kanban-board/kanban-board.css +23 -12
- package/src/components/kanban-board/kanban-board.schema.json +4 -2
- package/src/components/kanban-board/kanban-board.schema.ts +2 -0
- package/src/components/kanban-board/kanban-board.svelte +45 -169
- package/src/components/kanban-board/kanban-board.types.ts +2 -2
- package/src/components/kanban-board/kanban-board.variables.json +1 -0
- package/src/components/kanban-board/kanban-board.variables.ts +1 -0
- package/src/components/keyboard-shortcuts/keyboard-shortcuts.css +2 -1
- package/src/components/keyboard-shortcuts/keyboard-shortcuts.svelte +2 -2
- package/src/components/label/label.schema.json +4 -5
- package/src/components/label/label.schema.ts +4 -5
- package/src/components/label/label.types.ts +1 -1
- package/src/components/line-chart/index.ts +1 -0
- package/src/components/line-chart/line-chart.css +4 -3
- package/src/components/line-chart/line-chart.svelte +163 -164
- package/src/components/load-more/load-more.examples.json +2 -2
- package/src/components/load-more/load-more.schema.json +11 -7
- package/src/components/load-more/load-more.schema.ts +7 -3
- package/src/components/load-more/load-more.svelte +77 -15
- package/src/components/load-more/load-more.types.ts +7 -7
- package/src/components/logo-cloud/logo-cloud.css +6 -23
- package/src/components/logo-cloud/logo-cloud.svelte +3 -2
- package/src/components/logo-cloud/logo-cloud.variables.json +1 -1
- package/src/components/logo-cloud/logo-cloud.variables.ts +1 -1
- package/src/components/marquee/marquee.css +3 -0
- package/src/components/marquee/marquee.svelte +20 -2
- package/src/components/matrix-chart/index.ts +1 -0
- package/src/components/matrix-chart/matrix-chart.css +1 -0
- package/src/components/matrix-chart/matrix-chart.schema.json +11 -6
- package/src/components/matrix-chart/matrix-chart.schema.ts +6 -1
- package/src/components/matrix-chart/matrix-chart.svelte +18 -24
- package/src/components/matrix-chart/matrix-chart.types.ts +7 -7
- package/src/components/media-controls/media-controls.css +2 -2
- package/src/components/media-controls/media-controls.examples.json +1 -1
- package/src/components/media-controls/media-controls.schema.json +3 -3
- package/src/components/media-controls/media-controls.schema.ts +3 -3
- package/src/components/media-controls/media-controls.svelte +4 -5
- package/src/components/media-controls/media-controls.types.ts +6 -6
- package/src/components/mega-menu/mega-menu-content.svelte +224 -0
- package/src/components/mega-menu/mega-menu.css +24 -5
- package/src/components/mega-menu/mega-menu.examples.json +1 -1
- package/src/components/mega-menu/mega-menu.schema.json +14 -6
- package/src/components/mega-menu/mega-menu.schema.ts +10 -2
- package/src/components/mega-menu/mega-menu.svelte +188 -113
- package/src/components/mega-menu/mega-menu.types.ts +9 -7
- package/src/components/menu-bar/menu-bar.css +11 -2
- package/src/components/menu-bar/menu-bar.schema.json +2 -1
- package/src/components/menu-bar/menu-bar.schema.ts +1 -0
- package/src/components/menu-bar/menu-bar.svelte +30 -6
- package/src/components/menu-bar/menu-bar.types.ts +1 -1
- package/src/components/meter/meter.svelte +21 -5
- package/src/components/meter/meter.types.ts +7 -1
- package/src/components/modal/modal.css +64 -26
- package/src/components/modal/modal.schema.json +2 -2
- package/src/components/modal/modal.schema.ts +1 -1
- package/src/components/modal/modal.svelte +64 -102
- package/src/components/modal/modal.types.ts +2 -2
- package/src/components/multi-select/multi-select.css +77 -22
- package/src/components/multi-select/multi-select.schema.json +1 -1
- package/src/components/multi-select/multi-select.schema.ts +1 -1
- package/src/components/multi-select/multi-select.svelte +145 -131
- package/src/components/multi-select/multi-select.types.ts +1 -1
- package/src/components/navigation-bar/navigation-bar-focus.ts +117 -0
- package/src/components/navigation-bar/navigation-bar.css +93 -48
- package/src/components/navigation-bar/navigation-bar.examples.json +1 -1
- package/src/components/navigation-bar/navigation-bar.schema.json +3 -2
- package/src/components/navigation-bar/navigation-bar.schema.ts +2 -1
- package/src/components/navigation-bar/navigation-bar.svelte +314 -18
- package/src/components/navigation-bar/navigation-bar.types.ts +5 -3
- package/src/components/navigation-item/navigation-item.css +3 -0
- package/src/components/navigation-item/navigation-item.svelte +1 -1
- package/src/components/newsletter-section/newsletter-section.css +1 -1
- package/src/components/newsletter-section/newsletter-section.svelte +1 -1
- package/src/components/number-input/number-input.css +10 -58
- package/src/components/number-input/number-input.schema.json +9 -15
- package/src/components/number-input/number-input.schema.ts +9 -16
- package/src/components/number-input/number-input.svelte +70 -86
- package/src/components/number-input/number-input.types.ts +5 -2
- package/src/components/page-header/page-header.css +18 -9
- package/src/components/page-header/page-header.examples.json +2 -2
- package/src/components/page-header/page-header.schema.json +9 -4
- package/src/components/page-header/page-header.schema.ts +11 -4
- package/src/components/page-header/page-header.svelte +31 -11
- package/src/components/page-header/page-header.types.ts +25 -7
- package/src/components/pagination/pagination.css +3 -0
- package/src/components/payload-inspector/payload-inspector.css +2 -2
- package/src/components/permission-matrix/permission-matrix.css +22 -4
- package/src/components/permission-matrix/permission-matrix.svelte +12 -7
- package/src/components/phone-input/phone-input.css +37 -56
- package/src/components/phone-input/phone-input.svelte +96 -29
- package/src/components/pin-input/pin-input.css +10 -2
- package/src/components/popover/index.ts +7 -1
- package/src/components/popover/popover.css +9 -9
- package/src/components/popover/popover.examples.json +1 -1
- package/src/components/popover/popover.schema.json +15 -1
- package/src/components/popover/popover.schema.ts +16 -1
- package/src/components/popover/popover.svelte +63 -13
- package/src/components/popover/popover.types.ts +7 -1
- package/src/components/portal/index.ts +5 -1
- package/src/components/portal/portal.svelte +9 -11
- package/src/components/portal/portal.utilities.svelte.ts +885 -31
- package/src/components/pricing-card/pricing-card.css +1 -1
- package/src/components/pricing-card/pricing-card.examples.json +2 -2
- package/src/components/pricing-card/pricing-card.schema.json +1 -1
- package/src/components/pricing-card/pricing-card.schema.ts +1 -1
- package/src/components/pricing-card/pricing-card.svelte +2 -2
- package/src/components/pricing-card/pricing-card.types.ts +1 -1
- package/src/components/pricing-section/pricing-section.svelte +1 -1
- package/src/components/qr-code/qr-code.css +1 -1
- package/src/components/radio-group/radio-group.css +43 -16
- package/src/components/rating/rating.css +1 -1
- package/src/components/rating/rating.svelte +3 -0
- package/src/components/resizable-panels/index.ts +1 -0
- package/src/components/resizable-panels/resizable-panels.schema.json +2 -2
- package/src/components/resizable-panels/resizable-panels.schema.ts +2 -2
- package/src/components/resizable-panels/resizable-panels.svelte +3 -3
- package/src/components/resizable-panels/resizable-panels.types.ts +4 -4
- package/src/components/run-step-timeline/run-step-timeline.svelte +7 -5
- package/src/components/schedule-builder/schedule-builder.svelte +47 -36
- package/src/components/schema-form/schema-form-body.svelte +59 -328
- package/src/components/schema-form/schema-form-state.svelte.ts +353 -0
- package/src/components/schema-form/schema-form.css +1 -1
- package/src/components/schema-form/schema-form.examples.json +1 -1
- package/src/components/schema-form/schema-form.schema.json +2 -2
- package/src/components/schema-form/schema-form.schema.ts +2 -2
- package/src/components/schema-form/schema-form.svelte +2 -2
- package/src/components/schema-form/schema-form.types.ts +3 -6
- package/src/components/scroll-area/scroll-area.css +30 -0
- package/src/components/scroll-area/scroll-area.examples.json +1 -1
- package/src/components/scroll-area/scroll-area.schema.json +8 -0
- package/src/components/scroll-area/scroll-area.schema.ts +10 -0
- package/src/components/scroll-area/scroll-area.svelte +44 -2
- package/src/components/scroll-area/scroll-area.types.ts +17 -0
- package/src/components/search-field/search-field.css +3 -85
- package/src/components/search-field/search-field.examples.json +1 -1
- package/src/components/search-field/search-field.schema.json +6 -11
- package/src/components/search-field/search-field.schema.ts +6 -11
- package/src/components/search-field/search-field.svelte +45 -42
- package/src/components/search-field/search-field.types.ts +4 -7
- package/src/components/secret-value-field/secret-value-field.css +11 -1
- package/src/components/secret-value-field/secret-value-field.examples.json +2 -2
- package/src/components/secret-value-field/secret-value-field.schema.json +2 -2
- package/src/components/secret-value-field/secret-value-field.schema.ts +2 -2
- package/src/components/secret-value-field/secret-value-field.svelte +19 -65
- package/src/components/secret-value-field/secret-value-field.types.ts +2 -2
- package/src/components/segment/index.ts +1 -1
- package/src/components/segmented-control/segmented-control.css +12 -2
- package/src/components/select/select.css +4 -1
- package/src/components/select/select.schema.json +4 -5
- package/src/components/select/select.schema.ts +4 -5
- package/src/components/select/select.svelte +24 -27
- package/src/components/select/select.types.ts +1 -1
- package/src/components/selectable-row/selectable-row.css +2 -1
- package/src/components/selection-popover/selection-popover.css +4 -1
- package/src/components/selection-popover/selection-popover.examples.json +5 -5
- package/src/components/selection-popover/selection-popover.schema.json +4 -4
- package/src/components/selection-popover/selection-popover.schema.ts +4 -4
- package/src/components/selection-popover/selection-popover.svelte +82 -10
- package/src/components/selection-popover/selection-popover.types.ts +4 -4
- package/src/components/selection-popover/virtual-keyboard-dismissal.svelte.ts +264 -0
- package/src/components/share-card/share-card.schema.json +6 -3
- package/src/components/share-card/share-card.schema.ts +3 -0
- package/src/components/share-card/share-card.svelte +6 -6
- package/src/components/share-card/share-card.types.ts +5 -5
- package/src/components/sheet/sheet.css +28 -13
- package/src/components/sheet/sheet.examples.json +1 -1
- package/src/components/sheet/sheet.schema.json +2 -2
- package/src/components/sheet/sheet.schema.ts +2 -2
- package/src/components/sheet/sheet.svelte +3 -3
- package/src/components/sheet/sheet.types.ts +2 -2
- package/src/components/shortcut-hint/shortcut-hint.svelte +1 -1
- package/src/components/side-navigation/side-navigation.svelte +3 -1
- package/src/components/side-navigation-group/side-navigation-group.schema.json +4 -5
- package/src/components/side-navigation-group/side-navigation-group.schema.ts +4 -5
- package/src/components/side-navigation-group/side-navigation-group.svelte +3 -1
- package/src/components/side-navigation-group/side-navigation-group.types.ts +1 -1
- package/src/components/sidebar/sidebar.css +1 -1
- package/src/components/sidebar/sidebar.svelte +12 -2
- package/src/components/slider/slider.css +2 -0
- package/src/components/slider/slider.examples.json +1 -1
- package/src/components/slider/slider.schema.json +0 -4
- package/src/components/slider/slider.schema.ts +0 -4
- package/src/components/slider/slider.svelte +19 -18
- package/src/components/slider/slider.types.ts +6 -9
- package/src/components/sortable-list/sortable-list.css +28 -12
- package/src/components/sortable-list/sortable-list.examples.json +1 -1
- package/src/components/sortable-list/sortable-list.schema.json +1 -1
- package/src/components/sortable-list/sortable-list.schema.ts +1 -1
- package/src/components/sortable-list/sortable-list.svelte +12 -4
- package/src/components/sortable-list/sortable-list.types.ts +1 -1
- package/src/components/source-diff-viewer/index.ts +2 -5
- package/src/components/source-diff-viewer/source-diff-viewer.binary-notice.ts +116 -0
- package/src/components/source-diff-viewer/source-diff-viewer.css +1 -1
- package/src/components/source-diff-viewer/source-diff-viewer.git-header-parser.ts +85 -0
- package/src/components/source-diff-viewer/source-diff-viewer.labels.ts +34 -0
- package/src/components/source-diff-viewer/source-diff-viewer.path-normalization.ts +145 -0
- package/src/components/source-diff-viewer/source-diff-viewer.schema.json +1 -1
- package/src/components/source-diff-viewer/source-diff-viewer.schema.ts +1 -1
- package/src/components/source-diff-viewer/source-diff-viewer.svelte +4 -2
- package/src/components/source-diff-viewer/source-diff-viewer.types.ts +1 -1
- package/src/components/source-diff-viewer/source-diff-viewer.utilities.ts +6 -362
- package/src/components/spectrogram/index.ts +1 -0
- package/src/components/spectrogram/spectrogram.svelte +19 -4
- package/src/components/spectrum-chart/index.ts +1 -0
- package/src/components/speed-dial/speed-dial-exit.ts +121 -0
- package/src/components/speed-dial/speed-dial-focus.ts +96 -0
- package/src/components/speed-dial/speed-dial.css +45 -25
- package/src/components/speed-dial/speed-dial.examples.json +1 -1
- package/src/components/speed-dial/speed-dial.schema.json +1 -1
- package/src/components/speed-dial/speed-dial.schema.ts +1 -1
- package/src/components/speed-dial/speed-dial.svelte +303 -20
- package/src/components/speed-dial/speed-dial.types.ts +1 -1
- package/src/components/speed-dial-action/speed-dial-action.svelte +7 -11
- package/src/components/speed-dial-action/speed-dial-action.types.ts +3 -3
- package/src/components/stacked-list-item/stacked-list-item.css +9 -0
- package/src/components/statistic/index.ts +10 -0
- package/src/components/statistic/statistic.css +81 -0
- package/src/components/{stat/stat.schema.json → statistic/statistic.schema.json} +2 -2
- package/src/components/{stat/stat.schema.ts → statistic/statistic.schema.ts} +2 -2
- package/src/components/{stat/stat.svelte → statistic/statistic.svelte} +10 -8
- package/src/components/{stat/stat.types.ts → statistic/statistic.types.ts} +11 -11
- package/src/components/statistic/statistic.variables.json +10 -0
- package/src/components/statistic/statistic.variables.ts +12 -0
- package/src/components/statistic-group/index.ts +20 -0
- package/{dist/components/stat-group/stat-group.css → src/components/statistic-group/statistic-group.css} +27 -27
- package/src/components/statistic-group/statistic-group.examples.json +37 -0
- package/src/components/{stat-group/stat-group.schema.json → statistic-group/statistic-group.schema.json} +5 -5
- package/src/components/{stat-group/stat-group.schema.ts → statistic-group/statistic-group.schema.ts} +5 -5
- package/src/components/{stat-group/stat-group.svelte → statistic-group/statistic-group.svelte} +1 -1
- package/src/components/{stat-group/stat-group.types.ts → statistic-group/statistic-group.types.ts} +14 -14
- package/src/components/statistic-group/statistic-group.variables.json +5 -0
- package/src/components/statistic-group/statistic-group.variables.ts +7 -0
- package/src/components/statistics-section/index.ts +6 -0
- package/src/components/{stats-section/stats-section.css → statistics-section/statistics-section.css} +7 -7
- package/src/components/statistics-section/statistics-section.examples.json +13 -0
- package/src/components/{stats-section/stats-section.schema.json → statistics-section/statistics-section.schema.json} +5 -5
- package/src/components/{stats-section/stats-section.schema.ts → statistics-section/statistics-section.schema.ts} +5 -5
- package/src/components/{stats-section/stats-section.svelte → statistics-section/statistics-section.svelte} +11 -11
- package/src/components/statistics-section/statistics-section.types.ts +72 -0
- package/src/components/status-dot/status-dot.css +3 -3
- package/src/components/status-dot/status-dot.examples.json +1 -1
- package/src/components/status-dot/status-dot.schema.json +2 -2
- package/src/components/status-dot/status-dot.schema.ts +2 -2
- package/src/components/status-dot/status-dot.svelte +2 -2
- package/src/components/status-dot/status-dot.types.ts +4 -4
- package/src/components/steps/steps.css +1 -0
- package/src/components/steps/steps.schema.json +8 -4
- package/src/components/steps/steps.schema.ts +4 -0
- package/src/components/steps/steps.svelte +2 -1
- package/src/components/steps/steps.types.ts +7 -3
- package/src/components/tab/tab.schema.json +2 -1
- package/src/components/tab/tab.schema.ts +1 -0
- package/src/components/tab/tab.svelte +30 -11
- package/src/components/tab/tab.types.ts +14 -2
- package/src/components/tab-list/tab-list.svelte +2 -1
- package/src/components/tab-list/tab-list.types.ts +2 -1
- package/src/components/tab-panel/tab-panel.svelte +2 -1
- package/src/components/tab-panel/tab-panel.types.ts +2 -1
- package/src/components/table/table.css +18 -2
- package/src/components/table/table.examples.json +1 -1
- package/src/components/table/table.schema.json +8 -4
- package/src/components/table/table.schema.ts +4 -0
- package/src/components/table/table.svelte +4 -2
- package/src/components/table/table.types.ts +7 -4
- package/src/components/table-body/table-body.svelte +2 -2
- package/src/components/table-body/table-body.types.ts +2 -1
- package/src/components/table-cell/table-cell.schema.json +4 -2
- package/src/components/table-cell/table-cell.schema.ts +2 -0
- package/src/components/table-cell/table-cell.types.ts +2 -1
- package/src/components/table-header/table-header.schema.json +8 -8
- package/src/components/table-header/table-header.schema.ts +9 -9
- package/src/components/table-header/table-header.svelte +6 -6
- package/src/components/table-header/table-header.types.ts +48 -13
- package/src/components/table-header-cell/table-header-cell.schema.json +6 -3
- package/src/components/table-header-cell/table-header-cell.schema.ts +3 -0
- package/src/components/table-header-cell/table-header-cell.svelte +1 -1
- package/src/components/table-header-cell/table-header-cell.types.ts +3 -2
- package/src/components/table-of-contents/table-of-contents-active-heading.svelte.ts +158 -0
- package/src/components/table-of-contents/table-of-contents-heading-registry.svelte.ts +253 -0
- package/src/components/table-of-contents/table-of-contents.css +13 -1
- package/src/components/table-of-contents/table-of-contents.schema.json +1 -1
- package/src/components/table-of-contents/table-of-contents.schema.ts +2 -1
- package/src/components/table-of-contents/table-of-contents.svelte +11 -380
- package/src/components/table-of-contents/table-of-contents.types.ts +4 -1
- package/src/components/table-row/table-row.schema.json +2 -2
- package/src/components/table-row/table-row.schema.ts +2 -2
- package/src/components/table-row/table-row.svelte +6 -6
- package/src/components/table-row/table-row.types.ts +6 -6
- package/src/components/tabs/tabs.schema.json +9 -2
- package/src/components/tabs/tabs.schema.ts +7 -0
- package/src/components/tabs/tabs.svelte +71 -25
- package/src/components/tabs/tabs.types.ts +9 -10
- package/src/components/tag-input/tag-input.css +1 -1
- package/src/components/tag-input/tag-input.examples.json +3 -3
- package/src/components/tag-input/tag-input.schema.json +8 -12
- package/src/components/tag-input/tag-input.schema.ts +5 -9
- package/src/components/tag-input/tag-input.svelte +20 -17
- package/src/components/tag-input/tag-input.types.ts +8 -12
- package/src/components/team-section/team-section.css +2 -43
- package/src/components/team-section/team-section.examples.json +1 -1
- package/src/components/team-section/team-section.schema.json +1 -1
- package/src/components/team-section/team-section.schema.ts +1 -1
- package/src/components/team-section/team-section.svelte +20 -18
- package/src/components/team-section/team-section.types.ts +2 -2
- package/src/components/testimonial-section/testimonial-section.css +2 -47
- package/src/components/testimonial-section/testimonial-section.svelte +19 -20
- package/src/components/textarea/textarea.css +4 -1
- package/src/components/textarea/textarea.examples.json +2 -2
- package/src/components/textarea/textarea.schema.json +6 -7
- package/src/components/textarea/textarea.schema.ts +6 -7
- package/src/components/textarea/textarea.svelte +50 -17
- package/src/components/textarea/textarea.types.ts +3 -3
- package/src/components/time-field/time-field.css +33 -8
- package/src/components/time-field/time-field.schema.json +0 -3
- package/src/components/time-field/time-field.schema.ts +0 -3
- package/src/components/time-field/time-field.svelte +37 -20
- package/src/components/time-field/time-field.types.ts +0 -3
- package/src/components/timeline/timeline.svelte +1 -0
- package/src/components/toast-region/toast-region.svelte +12 -32
- package/src/components/toggle/toggle.schema.json +5 -0
- package/src/components/toggle/toggle.schema.ts +5 -0
- package/src/components/toggle/toggle.svelte +41 -24
- package/src/components/toggle/toggle.types.ts +3 -1
- package/src/components/toolbar/toolbar.svelte +26 -6
- package/src/components/tooltip/tooltip.css +1 -1
- package/src/components/tooltip/tooltip.schema.json +8 -3
- package/src/components/tooltip/tooltip.schema.ts +9 -2
- package/src/components/tooltip/tooltip.svelte +126 -28
- package/src/components/tooltip/tooltip.types.ts +21 -3
- package/src/components/transfer-list/transfer-list.css +33 -1
- package/src/components/transfer-list/transfer-list.svelte +17 -10
- package/src/components/tree/index.ts +1 -0
- package/src/components/tree/tree.examples.json +1 -1
- package/src/components/tree/tree.schema.json +3 -3
- package/src/components/tree/tree.schema.ts +3 -3
- package/src/components/tree/tree.svelte +50 -146
- package/src/components/tree/tree.types.ts +3 -3
- package/src/components/tree-item/index.ts +1 -0
- package/src/components/tree-item/tree-item-async-load.svelte.ts +64 -0
- package/src/components/tree-item/tree-item-drag.svelte.ts +129 -0
- package/src/components/tree-item/tree-item-label-highlight.ts +32 -0
- package/src/components/tree-item/tree-item-rename.svelte.ts +154 -0
- package/src/components/tree-item/tree-item.schema.json +4 -4
- package/src/components/tree-item/tree-item.schema.ts +4 -4
- package/src/components/tree-item/tree-item.svelte +75 -336
- package/src/components/tree-item/tree-item.types.ts +4 -4
- package/src/components/typography/typography.examples.json +1 -1
- package/src/components/typography/typography.schema.json +1 -1
- package/src/components/typography/typography.schema.ts +1 -1
- package/src/components/typography/typography.svelte +3 -3
- package/src/components/typography/typography.types.ts +7 -22
- package/src/components/waveform/index.ts +1 -0
- package/src/index.ts +71 -28
- package/src/schema-types.ts +10 -2
- package/src/styles/components/_control-item.css +3 -0
- package/src/styles/components/_field-label.css +1 -1
- package/src/styles/components/_floating-surface.css +0 -55
- package/src/styles/components/_input-frame.css +3 -0
- package/src/styles/components/_row-item.css +53 -0
- package/src/styles/components/_scroll-fade.css +317 -0
- package/src/styles/components/_status-surface.css +21 -1
- package/src/styles/components.css +12 -5
- package/src/styles/index.css +2 -0
- package/src/styles/tokens-base.css +241 -70
- package/src/styles/utilities.css +11 -2
- package/src/utilities/attachments.ts +202 -26
- package/src/utilities/drag-scroll-physics.ts +82 -0
- package/src/utilities/focus.ts +530 -0
- package/src/utilities/html-element-types.ts +48 -0
- package/src/utilities/sortable-controller.svelte.ts +2 -2
- package/src/utilities/use-drag-scroll.svelte.ts +186 -0
- package/src/utilities/use-drag-scroll.types.ts +17 -0
- package/src/utilities/use-fine-pointer.svelte.ts +23 -0
- package/src/utilities/use-fine-pointer.types.ts +4 -0
- package/src/utilities/use-intersection.svelte.ts +4 -3
- package/src/utilities/use-resize-observer.svelte.ts +8 -4
- package/src/utilities/value-change.ts +7 -3
- package/dist/cli/mcp-dependencies.d.ts +0 -4
- package/dist/cli/mcp.d.ts +0 -2
- package/dist/components/copy-button/__test-helpers__/copy-state-wrapper.svelte.d.ts +0 -6
- package/dist/components/copy-button/use-copy-state.svelte.d.ts +0 -57
- package/dist/components/cta-section/index.d.ts +0 -5
- package/dist/components/floating-action-button/index.d.ts +0 -5
- package/dist/components/stat/index.d.ts +0 -5
- package/dist/components/stat/stat.css +0 -81
- package/dist/components/stat/stat.svelte.d.ts +0 -18
- package/dist/components/stat-group/index.d.ts +0 -12
- package/dist/components/stat-group/stat-group.svelte.d.ts +0 -18
- package/dist/components/stats-section/index.d.ts +0 -5
- package/dist/components/stats-section/stats-section.svelte.d.ts +0 -19
- package/dist/components/stats-section/stats-section.types.d.ts +0 -58
- package/dist/server/components/cta-section/index.js +0 -16
- package/dist/server/components/floating-action-button/index.js +0 -16
- package/dist/server/components/stat-group/index.js +0 -17
- package/dist/server/components/stats-section/index.js +0 -18
- package/dist/server/index.server-42qeekwc.js +0 -10
- package/dist/server/index.server-435sj5m6.js +0 -125
- package/dist/server/index.server-4wx0qven.js +0 -221
- package/dist/server/index.server-62mtrvr7.js +0 -111
- package/dist/server/index.server-8c6cck0y.js +0 -247
- package/dist/server/index.server-8s3qm06c.js +0 -15
- package/dist/server/index.server-8xvc73zh.js +0 -169
- package/dist/server/index.server-8zazgeyc.js +0 -95
- package/dist/server/index.server-b4gp066a.js +0 -222
- package/dist/server/index.server-dj47xy3x.js +0 -400
- package/dist/server/index.server-dpw9dc92.js +0 -149
- package/dist/server/index.server-egk5q7aj.js +0 -148
- package/dist/server/index.server-hess6rtb.js +0 -45
- package/dist/server/index.server-psnzdn2g.js +0 -9
- package/dist/server/index.server-r70ezssy.js +0 -145
- package/dist/server/index.server-rsqa7q4a.js +0 -90
- package/dist/server/index.server-sd68dmej.js +0 -169
- package/dist/server/index.server-smw54qtg.js +0 -22
- package/dist/server/index.server-tbyd4re7.js +0 -203
- package/dist/server/index.server-tkrsxwye.js +0 -307
- package/dist/server/index.server-w7a9knxq.js +0 -666
- package/dist/server/index.server-wcadkrpf.js +0 -239
- package/dist/server/index.server-xsdzbgs2.js +0 -110
- package/dist/server/index.server-y35dk7yx.js +0 -9
- package/dist/server/index.server-zsjf8enc.js +0 -53
- package/dist/server/index.server-zwjp26z8.js +0 -21
- package/src/components/copy-button/__test-helpers__/copy-state-wrapper.svelte +0 -21
- package/src/components/copy-button/use-copy-state.svelte.ts +0 -76
- package/src/components/cta-section/cta-section.examples.json +0 -13
- package/src/components/cta-section/index.ts +0 -6
- package/src/components/floating-action-button/floating-action-button.examples.json +0 -13
- package/src/components/floating-action-button/index.ts +0 -11
- package/src/components/stat/index.ts +0 -6
- package/src/components/stat/stat.css +0 -81
- package/src/components/stat/stat.variables.json +0 -10
- package/src/components/stat/stat.variables.ts +0 -12
- package/src/components/stat-group/index.ts +0 -16
- package/src/components/stat-group/stat-group.examples.json +0 -37
- package/src/components/stat-group/stat-group.variables.json +0 -5
- package/src/components/stat-group/stat-group.variables.ts +0 -7
- package/src/components/stats-section/index.ts +0 -6
- package/src/components/stats-section/stats-section.examples.json +0 -13
- package/src/components/stats-section/stats-section.types.ts +0 -61
- /package/dist/components/{cta-section/cta-section.css.d.ts → call-to-action-section/call-to-action-section.css.d.ts} +0 -0
- /package/dist/components/{cta-section/cta-section.schema.d.ts → call-to-action-section/call-to-action-section.schema.d.ts} +0 -0
- /package/dist/components/{cta-section/cta-section.variables.d.ts → call-to-action-section/call-to-action-section.variables.d.ts} +0 -0
- /package/dist/components/{floating-action-button/floating-action-button.css.d.ts → floating-action/floating-action.css.d.ts} +0 -0
- /package/dist/components/{floating-action-button/floating-action-button.schema.d.ts → floating-action/floating-action.schema.d.ts} +0 -0
- /package/dist/components/{floating-action-button/floating-action-button.variables.d.ts → floating-action/floating-action.variables.d.ts} +0 -0
- /package/dist/components/{stat/stat.css.d.ts → statistic/statistic.css.d.ts} +0 -0
- /package/dist/components/{stat/stat.schema.d.ts → statistic/statistic.schema.d.ts} +0 -0
- /package/dist/components/{stat/stat.variables.d.ts → statistic/statistic.variables.d.ts} +0 -0
- /package/dist/components/{stat-group/stat-group.css.d.ts → statistic-group/statistic-group.css.d.ts} +0 -0
- /package/dist/components/{stat-group/stat-group.schema.d.ts → statistic-group/statistic-group.schema.d.ts} +0 -0
- /package/dist/components/{stat-group/stat-group.variables.d.ts → statistic-group/statistic-group.variables.d.ts} +0 -0
- /package/dist/components/{stats-section/stats-section.css.d.ts → statistics-section/statistics-section.css.d.ts} +0 -0
- /package/dist/components/{stats-section/stats-section.schema.d.ts → statistics-section/statistics-section.schema.d.ts} +0 -0
- /package/dist/components/{stats-section/stats-section.variables.d.ts → statistics-section/statistics-section.variables.d.ts} +0 -0
- /package/src/components/{cta-section/cta-section.variables.json → call-to-action-section/call-to-action-section.variables.json} +0 -0
- /package/src/components/{cta-section/cta-section.variables.ts → call-to-action-section/call-to-action-section.variables.ts} +0 -0
- /package/src/components/{floating-action-button/floating-action-button.variables.json → floating-action/floating-action.variables.json} +0 -0
- /package/src/components/{floating-action-button/floating-action-button.variables.ts → floating-action/floating-action.variables.ts} +0 -0
- /package/src/components/{stats-section/stats-section.variables.json → statistics-section/statistics-section.variables.json} +0 -0
- /package/src/components/{stats-section/stats-section.variables.ts → statistics-section/statistics-section.variables.ts} +0 -0
|
@@ -56,21 +56,1548 @@ import"@lostgradient/cinder/carousel/styles";
|
|
|
56
56
|
|
|
57
57
|
// src/components/carousel/carousel.svelte
|
|
58
58
|
import"svelte/internal/disclose-version";
|
|
59
|
-
import * as $
|
|
59
|
+
import * as $5 from "svelte/internal/client";
|
|
60
|
+
import { onDestroy, untrack } from "svelte";
|
|
61
|
+
import { SvelteSet } from "svelte/reactivity";
|
|
62
|
+
|
|
63
|
+
// src/_internal/text-direction-container.ts
|
|
64
|
+
function parseStyleQuery(conditionText) {
|
|
65
|
+
const start = /style\(\s*(--[\w-]+)\s*:\s*/i.exec(conditionText);
|
|
66
|
+
if (!start || !start[1])
|
|
67
|
+
return;
|
|
68
|
+
let depth = 0;
|
|
69
|
+
for (let index = start.index + start[0].length;index < conditionText.length; index += 1) {
|
|
70
|
+
const character = conditionText[index];
|
|
71
|
+
if (character === "(")
|
|
72
|
+
depth += 1;
|
|
73
|
+
if (character === ")") {
|
|
74
|
+
if (depth === 0)
|
|
75
|
+
return {
|
|
76
|
+
index: start.index,
|
|
77
|
+
end: index + 1,
|
|
78
|
+
name: start[1],
|
|
79
|
+
value: conditionText.slice(start.index + start[0].length, index)
|
|
80
|
+
};
|
|
81
|
+
depth -= 1;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
function splitTopLevel(conditionText, operator) {
|
|
87
|
+
const parts = [];
|
|
88
|
+
let depth = 0;
|
|
89
|
+
let start = 0;
|
|
90
|
+
let index = 0;
|
|
91
|
+
while (index < conditionText.length) {
|
|
92
|
+
const character = conditionText[index];
|
|
93
|
+
if (character === "(") {
|
|
94
|
+
depth += 1;
|
|
95
|
+
index += 1;
|
|
96
|
+
continue;
|
|
97
|
+
}
|
|
98
|
+
if (character === ")") {
|
|
99
|
+
depth = Math.max(0, depth - 1);
|
|
100
|
+
index += 1;
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
if (depth === 0 && conditionText.slice(index, index + operator.length).toLowerCase() === operator && /\s/.test(conditionText[index - 1] ?? "") && /\s/.test(conditionText[index + operator.length] ?? "")) {
|
|
104
|
+
parts.push(conditionText.slice(start, index));
|
|
105
|
+
index += operator.length;
|
|
106
|
+
start = index;
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
index += 1;
|
|
110
|
+
}
|
|
111
|
+
parts.push(conditionText.slice(start));
|
|
112
|
+
return parts;
|
|
113
|
+
}
|
|
114
|
+
function evaluateLogicalContainerCondition(conditionText, width, remSize, inlineSize) {
|
|
115
|
+
if (!isFullyParsedContainerCondition(conditionText))
|
|
116
|
+
return false;
|
|
117
|
+
return evaluateParsedLogicalContainerCondition(conditionText, width, remSize, inlineSize);
|
|
118
|
+
}
|
|
119
|
+
function evaluateParsedLogicalContainerCondition(conditionText, width, remSize, inlineSize) {
|
|
120
|
+
const orParts = splitTopLevel(conditionText, "or");
|
|
121
|
+
if (orParts.length > 1)
|
|
122
|
+
return orParts.some((part) => evaluateParsedLogicalContainerCondition(part, width, remSize, inlineSize));
|
|
123
|
+
const andParts = splitTopLevel(conditionText, "and");
|
|
124
|
+
if (andParts.length > 1)
|
|
125
|
+
return andParts.every((part) => evaluateParsedLogicalContainerCondition(part, width, remSize, inlineSize));
|
|
126
|
+
const trimmed = conditionText.trim();
|
|
127
|
+
const unwrapped = unwrapRedundantParentheses(trimmed);
|
|
128
|
+
if (unwrapped !== trimmed)
|
|
129
|
+
return evaluateParsedLogicalContainerCondition(unwrapped, width, remSize, inlineSize);
|
|
130
|
+
const notPrefix = /^not\s+/i.exec(trimmed);
|
|
131
|
+
if (notPrefix)
|
|
132
|
+
return !evaluateParsedLogicalContainerCondition(trimmed.slice(notPrefix[0].length), width, remSize, inlineSize);
|
|
133
|
+
return evaluateContainerSizeConstraints(trimmed, width, remSize, inlineSize);
|
|
134
|
+
}
|
|
135
|
+
var containerSizeTermPattern = /^(?:(?:min|max)-(?:width|inline-size)|(?:width|inline-size))\s*:\s*(?:\d+(?:\.\d+)?|\.\d+)(?:px|rem)$/i;
|
|
136
|
+
var featureFirstRangePattern = /^(?:width|inline-size)\s*(?:>=|>|<=|<)\s*(?:\d+(?:\.\d+)?|\.\d+)(?:px|rem)$/i;
|
|
137
|
+
var valueFirstRangePattern = /^(?:(?:(?:\d+(?:\.\d+)?|\.\d+)(?:px|rem)\s*(?:<=|<)\s*(?:width|inline-size))(?:\s*(?:<=|<)\s*(?:\d+(?:\.\d+)?|\.\d+)(?:px|rem))?|(?:(?:\d+(?:\.\d+)?|\.\d+)(?:px|rem)\s*(?:>=|>)\s*(?:width|inline-size))(?:\s*(?:>=|>)\s*(?:\d+(?:\.\d+)?|\.\d+)(?:px|rem))?)$/i;
|
|
138
|
+
function isFullyParsedContainerCondition(conditionText) {
|
|
139
|
+
const trimmed = conditionText.trim();
|
|
140
|
+
if (!trimmed || !hasBalancedParentheses(trimmed))
|
|
141
|
+
return false;
|
|
142
|
+
return parseContainerCondition(trimmed);
|
|
143
|
+
}
|
|
144
|
+
function parseContainerCondition(conditionText, isTopLevelCondition = true) {
|
|
145
|
+
const original = conditionText.trim();
|
|
146
|
+
const trimmed = unwrapRedundantParentheses(original);
|
|
147
|
+
const wasGrouped = trimmed !== original;
|
|
148
|
+
const orParts = splitTopLevel(trimmed, "or");
|
|
149
|
+
const andParts = splitTopLevel(trimmed, "and");
|
|
150
|
+
if (orParts.length > 1 && andParts.length > 1)
|
|
151
|
+
return false;
|
|
152
|
+
if (orParts.length > 1)
|
|
153
|
+
return orParts.every((part) => parseContainerCondition(part, false));
|
|
154
|
+
if (andParts.length > 1)
|
|
155
|
+
return andParts.every((part) => parseContainerCondition(part, false));
|
|
156
|
+
const notPrefix = /^not\s+/i.exec(trimmed);
|
|
157
|
+
if (notPrefix) {
|
|
158
|
+
if (!isTopLevelCondition && !wasGrouped)
|
|
159
|
+
return false;
|
|
160
|
+
const operand = trimmed.slice(notPrefix[0].length).trim();
|
|
161
|
+
const unwrappedOperand = unwrapRedundantParentheses(operand);
|
|
162
|
+
return unwrappedOperand !== operand && parseContainerCondition(operand);
|
|
163
|
+
}
|
|
164
|
+
return wasGrouped && (containerSizeTermPattern.test(trimmed) || featureFirstRangePattern.test(trimmed) || valueFirstRangePattern.test(trimmed));
|
|
165
|
+
}
|
|
166
|
+
function hasBalancedParentheses(conditionText) {
|
|
167
|
+
let depth = 0;
|
|
168
|
+
for (const character of conditionText) {
|
|
169
|
+
if (character === "(")
|
|
170
|
+
depth += 1;
|
|
171
|
+
if (character === ")") {
|
|
172
|
+
depth -= 1;
|
|
173
|
+
if (depth < 0)
|
|
174
|
+
return false;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return depth === 0;
|
|
178
|
+
}
|
|
179
|
+
function unwrapRedundantParentheses(conditionText) {
|
|
180
|
+
const trimmed = conditionText.trim();
|
|
181
|
+
if (!trimmed.startsWith("(") || !trimmed.endsWith(")"))
|
|
182
|
+
return trimmed;
|
|
183
|
+
const matchingClose = new Map;
|
|
184
|
+
const openPositions = [];
|
|
185
|
+
let depth = 0;
|
|
186
|
+
for (let index = 0;index < trimmed.length; index += 1) {
|
|
187
|
+
if (trimmed[index] === "(") {
|
|
188
|
+
openPositions.push(index);
|
|
189
|
+
depth += 1;
|
|
190
|
+
} else if (trimmed[index] === ")") {
|
|
191
|
+
const open = openPositions.pop();
|
|
192
|
+
if (open === undefined)
|
|
193
|
+
return trimmed;
|
|
194
|
+
matchingClose.set(open, index);
|
|
195
|
+
depth -= 1;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
if (depth !== 0)
|
|
199
|
+
return trimmed;
|
|
200
|
+
let start = 0;
|
|
201
|
+
let end = trimmed.length - 1;
|
|
202
|
+
while (start < end && matchingClose.get(start) === end) {
|
|
203
|
+
start += 1;
|
|
204
|
+
end -= 1;
|
|
205
|
+
while (/\s/.test(trimmed[start] ?? ""))
|
|
206
|
+
start += 1;
|
|
207
|
+
while (/\s/.test(trimmed[end] ?? ""))
|
|
208
|
+
end -= 1;
|
|
209
|
+
}
|
|
210
|
+
return start === 0 ? trimmed : trimmed.slice(start, end + 1).trim();
|
|
211
|
+
}
|
|
212
|
+
function hasUnsupportedContainerSizeQuery(conditionText) {
|
|
213
|
+
if (/(?:min-|max-)?(?:height|block-size)\b/i.test(conditionText))
|
|
214
|
+
return true;
|
|
215
|
+
if (/\baspect-ratio\b/i.test(conditionText))
|
|
216
|
+
return true;
|
|
217
|
+
if (/\borientation\s*:/i.test(conditionText))
|
|
218
|
+
return true;
|
|
219
|
+
const featureFirstUnitMatches = conditionText.matchAll(/(?:min-|max-)?(?:width|inline-size)\s*(?:>=|>|<=|<|:)\s*[\d.]+([a-z%]+)/gi);
|
|
220
|
+
const valueFirstUnitMatches = conditionText.matchAll(/[\d.]+([a-z%]+)\s*(?:>=|>|<=|<)\s*(?:width|inline-size)/gi);
|
|
221
|
+
return [...featureFirstUnitMatches, ...valueFirstUnitMatches].some((match) => !/^(?:px|rem)$/i.test(match[1]));
|
|
222
|
+
}
|
|
223
|
+
function evaluateRangeComparisons(conditionText, width, remSize) {
|
|
224
|
+
const featureFirstPattern = /(?:width|inline-size)\s*(>=|>|<=|<)\s*([\d.]+)(px|rem)/gi;
|
|
225
|
+
const valueFirstPattern = /([\d.]+)(px|rem)\s*(<=|<|>=|>)\s*(width|inline-size)/gi;
|
|
226
|
+
const comparisons = [];
|
|
227
|
+
for (const comparison of conditionText.matchAll(featureFirstPattern)) {
|
|
228
|
+
const operator = comparison[1];
|
|
229
|
+
const threshold = comparison[2];
|
|
230
|
+
const unit = comparison[3];
|
|
231
|
+
if (operator && threshold && unit)
|
|
232
|
+
comparisons.push({ operator, threshold, unit });
|
|
233
|
+
}
|
|
234
|
+
for (const comparison of conditionText.matchAll(valueFirstPattern)) {
|
|
235
|
+
const threshold = comparison[1];
|
|
236
|
+
const unit = comparison[2];
|
|
237
|
+
const operator = comparison[3] === "<=" ? ">=" : comparison[3] === "<" ? ">" : comparison[3] === ">=" ? "<=" : "<";
|
|
238
|
+
if (threshold && unit)
|
|
239
|
+
comparisons.push({ operator, threshold, unit });
|
|
240
|
+
}
|
|
241
|
+
if (comparisons.length === 0)
|
|
242
|
+
return;
|
|
243
|
+
const satisfiesAll = comparisons.every((comparison) => {
|
|
244
|
+
const { operator } = comparison;
|
|
245
|
+
const threshold = Number(comparison.threshold) * (comparison.unit.toLowerCase() === "rem" ? remSize : 1);
|
|
246
|
+
if (operator === ">=")
|
|
247
|
+
return width >= threshold;
|
|
248
|
+
if (operator === ">")
|
|
249
|
+
return width > threshold;
|
|
250
|
+
if (operator === "<=")
|
|
251
|
+
return width <= threshold;
|
|
252
|
+
return width < threshold;
|
|
253
|
+
});
|
|
254
|
+
return satisfiesAll;
|
|
255
|
+
}
|
|
256
|
+
function evaluateEqualityComparison(conditionText, width, remSize) {
|
|
257
|
+
const equalityPattern = /(?:^|[\s(])(?:width|inline-size)\s*:\s*([\d.]+)(px|rem)/gi;
|
|
258
|
+
const comparisons = [...conditionText.matchAll(equalityPattern)];
|
|
259
|
+
if (comparisons.length === 0)
|
|
260
|
+
return;
|
|
261
|
+
const satisfiesAll = comparisons.every((comparison) => {
|
|
262
|
+
const threshold = Number(comparison[1]) * (comparison[2].toLowerCase() === "rem" ? remSize : 1);
|
|
263
|
+
return width === threshold;
|
|
264
|
+
});
|
|
265
|
+
return satisfiesAll;
|
|
266
|
+
}
|
|
267
|
+
function evaluateContainerSizeConstraints(conditionText, width, remSize, inlineSize = width) {
|
|
268
|
+
const measuredSize = /\binline-size\b/i.test(conditionText) && !/\bwidth\b/i.test(conditionText) ? inlineSize : width;
|
|
269
|
+
if (/\bwidth\b/i.test(conditionText) && /\binline-size\b/i.test(conditionText) && /\band\b/i.test(conditionText)) {
|
|
270
|
+
return conditionText.split(/\s+and\s+/i).every((clause) => evaluateContainerSizeConstraints(clause, /\binline-size\b/i.test(clause) ? inlineSize : width, remSize, inlineSize));
|
|
271
|
+
}
|
|
272
|
+
const minimum = /min-(?:width|inline-size)\s*:\s*([\d.]+)(px|rem)/i.exec(conditionText);
|
|
273
|
+
const maximum = /max-(?:width|inline-size)\s*:\s*([\d.]+)(px|rem)/i.exec(conditionText);
|
|
274
|
+
const toPixels = (value) => Number(value[1]) * (value[2].toLowerCase() === "rem" ? remSize : 1);
|
|
275
|
+
const legacyMatches = (!minimum || measuredSize >= toPixels(minimum)) && (!maximum || measuredSize <= toPixels(maximum));
|
|
276
|
+
const rangeMatches = evaluateRangeComparisons(conditionText, measuredSize, remSize) ?? true;
|
|
277
|
+
const equalityMatches = evaluateEqualityComparison(conditionText, measuredSize, remSize) ?? true;
|
|
278
|
+
const hasSizeFeature = /\b(?:width|inline-size)\b/i.test(conditionText);
|
|
279
|
+
const hasRecognizedRange = /(?:width|inline-size)\s*(?:>=|>|<=|<)\s*[\d.]+(?:px|rem)/i.test(conditionText) || /[\d.]+(?:px|rem)\s*(?:<=|<|>=|>)\s*(?:width|inline-size)/i.test(conditionText);
|
|
280
|
+
const hasRecognizedEquality = /(?:width|inline-size)\s*:\s*[\d.]+(?:px|rem)/i.test(conditionText);
|
|
281
|
+
if (hasSizeFeature && !minimum && !maximum && !hasRecognizedRange && !hasRecognizedEquality)
|
|
282
|
+
return false;
|
|
283
|
+
const combinedMatches = legacyMatches && rangeMatches && equalityMatches;
|
|
284
|
+
return /^\s*not\b/i.test(conditionText) ? !combinedMatches : combinedMatches;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
// src/_internal/text-direction-css.ts
|
|
288
|
+
function matchesDirectionStyleRule(element, getParentElement) {
|
|
289
|
+
const styleSheets = new Map;
|
|
290
|
+
for (const sheet of Array.from(element.ownerDocument.styleSheets))
|
|
291
|
+
styleSheets.set(sheet, null);
|
|
292
|
+
for (const sheet of Array.from(element.ownerDocument.adoptedStyleSheets ?? []))
|
|
293
|
+
styleSheets.set(sheet, null);
|
|
294
|
+
const root = element.getRootNode();
|
|
295
|
+
if (typeof ShadowRoot !== "undefined" && root instanceof ShadowRoot) {
|
|
296
|
+
for (const sheet of root.adoptedStyleSheets)
|
|
297
|
+
styleSheets.set(sheet, root);
|
|
298
|
+
for (const styleElement of root.querySelectorAll("style")) {
|
|
299
|
+
if (styleElement.sheet)
|
|
300
|
+
styleSheets.set(styleElement.sheet, root);
|
|
301
|
+
}
|
|
302
|
+
for (const linkElement of root.querySelectorAll('link[rel~="stylesheet"]')) {
|
|
303
|
+
if (linkElement.sheet)
|
|
304
|
+
styleSheets.set(linkElement.sheet, root);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
for (const [sheet, fallbackRoot] of styleSheets) {
|
|
308
|
+
if (!isActiveStyleSheet(sheet))
|
|
309
|
+
continue;
|
|
310
|
+
let rules;
|
|
311
|
+
try {
|
|
312
|
+
rules = sheet.cssRules;
|
|
313
|
+
} catch {
|
|
314
|
+
continue;
|
|
315
|
+
}
|
|
316
|
+
if (matchesDirectionStyleRuleList(element, rules, getParentElement, [], getImplicitScopeRoot(sheet, fallbackRoot, element.ownerDocument.documentElement)))
|
|
317
|
+
return true;
|
|
318
|
+
}
|
|
319
|
+
return false;
|
|
320
|
+
}
|
|
321
|
+
function isActiveStyleSheet(sheet) {
|
|
322
|
+
if (sheet.disabled)
|
|
323
|
+
return false;
|
|
324
|
+
const mediaText = sheet.media?.mediaText;
|
|
325
|
+
if (!mediaText)
|
|
326
|
+
return true;
|
|
327
|
+
if (typeof matchMedia !== "function")
|
|
328
|
+
return true;
|
|
329
|
+
return matchMedia(mediaText).matches;
|
|
330
|
+
}
|
|
331
|
+
function getImplicitScopeRoot(sheet, fallbackRoot, documentRoot) {
|
|
332
|
+
const ownerNode = Reflect.get(sheet, "ownerNode");
|
|
333
|
+
if (!(ownerNode instanceof Element) || ownerNode.localName?.toLowerCase() !== "style") {
|
|
334
|
+
return typeof ShadowRoot !== "undefined" && fallbackRoot instanceof ShadowRoot ? fallbackRoot : documentRoot;
|
|
335
|
+
}
|
|
336
|
+
if (ownerNode.parentElement)
|
|
337
|
+
return ownerNode.parentElement;
|
|
338
|
+
const root = ownerNode.getRootNode();
|
|
339
|
+
return typeof ShadowRoot !== "undefined" && root instanceof ShadowRoot ? root : typeof ShadowRoot !== "undefined" && fallbackRoot instanceof ShadowRoot ? fallbackRoot : null;
|
|
340
|
+
}
|
|
341
|
+
function matchesDirectionStyleRuleCached(element, cache, getParentElement) {
|
|
342
|
+
if (!getParentElement)
|
|
343
|
+
return false;
|
|
344
|
+
if (!cache)
|
|
345
|
+
return matchesDirectionStyleRule(element, getParentElement);
|
|
346
|
+
const cached = cache.get(element);
|
|
347
|
+
if (cached !== undefined)
|
|
348
|
+
return cached;
|
|
349
|
+
const matched = matchesDirectionStyleRule(element, getParentElement);
|
|
350
|
+
cache.set(element, matched);
|
|
351
|
+
return matched;
|
|
352
|
+
}
|
|
353
|
+
function matchesDirectionStyleRuleList(element, rules, getParentElement, scopes = [], implicitScopeRoot = null) {
|
|
354
|
+
for (const rule of Array.from(rules)) {
|
|
355
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
356
|
+
const imported = Reflect.get(rule, "styleSheet");
|
|
357
|
+
if (imported) {
|
|
358
|
+
try {
|
|
359
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
360
|
+
if (isCssRuleCollection(importedRules) && matchesDirectionStyleRuleList(element, importedRules, getParentElement, scopes, implicitScopeRoot))
|
|
361
|
+
return true;
|
|
362
|
+
} catch {}
|
|
363
|
+
}
|
|
364
|
+
continue;
|
|
365
|
+
}
|
|
366
|
+
if (isCssStyleRule(rule)) {
|
|
367
|
+
if (!rule.style.direction) {
|
|
368
|
+
const nestedRules2 = readNestedCssRules(rule);
|
|
369
|
+
if (nestedRules2 && matchesDirectionStyleRuleList(element, nestedRules2, getParentElement, scopes, implicitScopeRoot))
|
|
370
|
+
return true;
|
|
371
|
+
continue;
|
|
372
|
+
}
|
|
373
|
+
try {
|
|
374
|
+
const selectorText = resolveNestedSelector(rule);
|
|
375
|
+
if (selectorText && matchesScopedSelector(element, selectorText, scopes))
|
|
376
|
+
return true;
|
|
377
|
+
} catch {
|
|
378
|
+
continue;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
const nestedRules = readNestedCssRules(rule);
|
|
382
|
+
if (isScopeRule(rule)) {
|
|
383
|
+
const scope = createActiveScope(rule, element, scopes, implicitScopeRoot);
|
|
384
|
+
if (scope && nestedRules) {
|
|
385
|
+
if (matchesDirectionStyleRuleList(element, nestedRules, getParentElement, [...scopes, scope], implicitScopeRoot))
|
|
386
|
+
return true;
|
|
387
|
+
}
|
|
388
|
+
continue;
|
|
389
|
+
}
|
|
390
|
+
if (nestedRules && isConditionalRuleActive(rule, element, getParentElement) && matchesDirectionStyleRuleList(element, nestedRules, getParentElement, scopes, implicitScopeRoot)) {
|
|
391
|
+
return true;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
return false;
|
|
395
|
+
}
|
|
396
|
+
function readNestedCssRules(rule) {
|
|
397
|
+
if (!("cssRules" in rule))
|
|
398
|
+
return;
|
|
399
|
+
try {
|
|
400
|
+
const nestedRules = Reflect.get(rule, "cssRules");
|
|
401
|
+
return isCssRuleCollection(nestedRules) ? nestedRules : undefined;
|
|
402
|
+
} catch {
|
|
403
|
+
return;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
function isCssRuleCollection(value) {
|
|
407
|
+
if (typeof CSSRuleList !== "undefined" && value instanceof CSSRuleList)
|
|
408
|
+
return true;
|
|
409
|
+
if (Array.isArray(value))
|
|
410
|
+
return value.every(isCssRule);
|
|
411
|
+
if (typeof value !== "object" || value === null)
|
|
412
|
+
return false;
|
|
413
|
+
const iterator = Reflect.get(value, Symbol.iterator);
|
|
414
|
+
return typeof iterator === "function";
|
|
415
|
+
}
|
|
416
|
+
function isCssRule(value) {
|
|
417
|
+
return typeof value === "object" && value !== null && typeof Reflect.get(value, "cssText") === "string" && typeof Reflect.get(value, "type") === "number";
|
|
418
|
+
}
|
|
419
|
+
function isCssStyleRule(rule) {
|
|
420
|
+
return typeof Reflect.get(rule, "selectorText") === "string" && typeof Reflect.get(rule, "style") === "object" && Reflect.get(rule, "style") !== null;
|
|
421
|
+
}
|
|
422
|
+
function resolveNestedSelector(rule) {
|
|
423
|
+
let selector = rule.selectorText.trim();
|
|
424
|
+
let parentRule = Reflect.get(rule, "parentRule");
|
|
425
|
+
while (parentRule) {
|
|
426
|
+
if (isCssStyleRule(parentRule)) {
|
|
427
|
+
const parentSelector = parentRule.selectorText.trim();
|
|
428
|
+
if (!parentSelector)
|
|
429
|
+
return;
|
|
430
|
+
selector = combineNestedSelectors(parentSelector, selector);
|
|
431
|
+
if (!selector)
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
parentRule = Reflect.get(parentRule, "parentRule");
|
|
435
|
+
}
|
|
436
|
+
return selector;
|
|
437
|
+
}
|
|
438
|
+
function combineNestedSelectors(parentSelector, nestedSelector) {
|
|
439
|
+
const parentContext = splitSelectorList(parentSelector).length > 1 ? `:is(${parentSelector})` : parentSelector;
|
|
440
|
+
return splitSelectorList(nestedSelector).map((selector) => {
|
|
441
|
+
const resolved = replaceNestingReferences(selector, parentContext);
|
|
442
|
+
return resolved.replaced ? resolved.selector : `${parentContext} ${selector}`;
|
|
443
|
+
}).join(", ");
|
|
444
|
+
}
|
|
445
|
+
function replaceNestingReferences(selector, parentContext) {
|
|
446
|
+
let quote;
|
|
447
|
+
let replaced = false;
|
|
448
|
+
let resolved = "";
|
|
449
|
+
for (let index = 0;index < selector.length; index += 1) {
|
|
450
|
+
const character = selector[index];
|
|
451
|
+
if (character === "\\") {
|
|
452
|
+
resolved += character;
|
|
453
|
+
if (index + 1 < selector.length)
|
|
454
|
+
resolved += selector[++index];
|
|
455
|
+
continue;
|
|
456
|
+
}
|
|
457
|
+
if (quote !== undefined) {
|
|
458
|
+
resolved += character;
|
|
459
|
+
if (character === quote)
|
|
460
|
+
quote = undefined;
|
|
461
|
+
continue;
|
|
462
|
+
}
|
|
463
|
+
if (character === '"' || character === "'") {
|
|
464
|
+
quote = character;
|
|
465
|
+
resolved += character;
|
|
466
|
+
continue;
|
|
467
|
+
}
|
|
468
|
+
if (character === "&") {
|
|
469
|
+
resolved += parentContext;
|
|
470
|
+
replaced = true;
|
|
471
|
+
continue;
|
|
472
|
+
}
|
|
473
|
+
resolved += character;
|
|
474
|
+
}
|
|
475
|
+
return { selector: resolved, replaced };
|
|
476
|
+
}
|
|
477
|
+
function splitSelectorList(selectorText) {
|
|
478
|
+
const selectors = [];
|
|
479
|
+
let parenthesesDepth = 0;
|
|
480
|
+
let bracketDepth = 0;
|
|
481
|
+
let quote;
|
|
482
|
+
let start = 0;
|
|
483
|
+
for (let index = 0;index < selectorText.length; index += 1) {
|
|
484
|
+
const character = selectorText[index];
|
|
485
|
+
if (character === "\\") {
|
|
486
|
+
index += 1;
|
|
487
|
+
continue;
|
|
488
|
+
}
|
|
489
|
+
if (quote !== undefined) {
|
|
490
|
+
if (character === quote)
|
|
491
|
+
quote = undefined;
|
|
492
|
+
continue;
|
|
493
|
+
}
|
|
494
|
+
if (character === '"' || character === "'") {
|
|
495
|
+
quote = character;
|
|
496
|
+
continue;
|
|
497
|
+
}
|
|
498
|
+
if (character === "(")
|
|
499
|
+
parenthesesDepth += 1;
|
|
500
|
+
if (character === ")")
|
|
501
|
+
parenthesesDepth = Math.max(0, parenthesesDepth - 1);
|
|
502
|
+
if (character === "[")
|
|
503
|
+
bracketDepth += 1;
|
|
504
|
+
if (character === "]")
|
|
505
|
+
bracketDepth = Math.max(0, bracketDepth - 1);
|
|
506
|
+
if (character === "," && parenthesesDepth === 0 && bracketDepth === 0) {
|
|
507
|
+
const selector2 = selectorText.slice(start, index).trim();
|
|
508
|
+
if (selector2)
|
|
509
|
+
selectors.push(selector2);
|
|
510
|
+
start = index + 1;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
const selector = selectorText.slice(start).trim();
|
|
514
|
+
if (selector)
|
|
515
|
+
selectors.push(selector);
|
|
516
|
+
return selectors;
|
|
517
|
+
}
|
|
518
|
+
function isConditionalRuleActive(rule, element, getParentElement) {
|
|
519
|
+
const conditionText = Reflect.get(rule, "conditionText");
|
|
520
|
+
if (typeof conditionText !== "string" || !conditionText.trim())
|
|
521
|
+
return true;
|
|
522
|
+
if (isContainerRule(rule))
|
|
523
|
+
return isContainerQueryActive(conditionText, element, rule, getParentElement);
|
|
524
|
+
if (isMediaRule(rule) && typeof matchMedia === "function") {
|
|
525
|
+
return matchMedia(conditionText).matches;
|
|
526
|
+
}
|
|
527
|
+
if (isSupportsRule(rule) && typeof CSS !== "undefined" && typeof CSS.supports === "function")
|
|
528
|
+
return CSS.supports(conditionText);
|
|
529
|
+
return true;
|
|
530
|
+
}
|
|
531
|
+
function isScopeRule(rule) {
|
|
532
|
+
if (rule.constructor.name === "CSSScopeRule")
|
|
533
|
+
return true;
|
|
534
|
+
const cssText = Reflect.get(rule, "cssText");
|
|
535
|
+
return typeof cssText === "string" && /^\s*@scope\b/i.test(cssText);
|
|
536
|
+
}
|
|
537
|
+
function createActiveScope(rule, element, parentScopes, implicitScopeRoot) {
|
|
538
|
+
const cssText = Reflect.get(rule, "cssText");
|
|
539
|
+
if (typeof cssText !== "string")
|
|
540
|
+
return null;
|
|
541
|
+
const prelude = parseScopePrelude(cssText);
|
|
542
|
+
if (!prelude)
|
|
543
|
+
return null;
|
|
544
|
+
const roots = findActiveScopeRoots(element, prelude, parentScopes, implicitScopeRoot);
|
|
545
|
+
return roots === null ? null : { roots };
|
|
546
|
+
}
|
|
547
|
+
function scopePseudoRootCandidates(parentScopes, implicitScopeRoot) {
|
|
548
|
+
if (parentScopes.length > 0)
|
|
549
|
+
return parentScopes.at(-1).roots;
|
|
550
|
+
return implicitScopeRoot ? [implicitScopeRoot] : [];
|
|
551
|
+
}
|
|
552
|
+
function findActiveScopeRoots(element, prelude, parentScopes, implicitScopeRoot) {
|
|
553
|
+
if (!selectorsAreValid(element, prelude.rootSelectors))
|
|
554
|
+
return null;
|
|
555
|
+
if (prelude.limitSelectors && !selectorsAreValid(element, prelude.limitSelectors))
|
|
556
|
+
return null;
|
|
557
|
+
if (prelude.rootSelectors.length === 0) {
|
|
558
|
+
const candidates = scopePseudoRootCandidates(parentScopes, implicitScopeRoot);
|
|
559
|
+
const roots2 = candidates.length > 0 ? candidates : [implicitScopeRoot ?? element.ownerDocument.documentElement];
|
|
560
|
+
return finalizeActiveScopeRoots(roots2.filter((root) => root.contains(element)), element, prelude, parentScopes);
|
|
561
|
+
}
|
|
562
|
+
const scopeRootSelectors = prelude.rootSelectors.filter(hasScopePseudoClass);
|
|
563
|
+
const ordinaryRootSelectors = prelude.rootSelectors.filter((selector) => !hasScopePseudoClass(selector));
|
|
564
|
+
const scopeRootCandidates = scopePseudoRootCandidates(parentScopes, implicitScopeRoot);
|
|
565
|
+
const roots = [
|
|
566
|
+
...findRelativeScopeRootMatches(element, scopeRootSelectors, scopeRootCandidates),
|
|
567
|
+
...findScopeMatches(element, ordinaryRootSelectors)
|
|
568
|
+
];
|
|
569
|
+
return finalizeActiveScopeRoots(roots, element, prelude, parentScopes);
|
|
570
|
+
}
|
|
571
|
+
function findRelativeScopeRootMatches(element, selectors, scopeRootCandidates) {
|
|
572
|
+
if (selectors.length === 0 || scopeRootCandidates.length === 0)
|
|
573
|
+
return [];
|
|
574
|
+
const parentScope = { roots: [...scopeRootCandidates] };
|
|
575
|
+
const hasExactScopeSelector = selectors.some(isExactScopeSelector);
|
|
576
|
+
const matches = [];
|
|
577
|
+
let current = element;
|
|
578
|
+
while (current) {
|
|
579
|
+
const currentElement = current;
|
|
580
|
+
if (selectors.some((selector) => matchesScopedSelector(currentElement, selector, [parentScope])))
|
|
581
|
+
matches.push(currentElement);
|
|
582
|
+
const parent = currentElement.parentElement;
|
|
583
|
+
if (parent) {
|
|
584
|
+
current = parent;
|
|
585
|
+
continue;
|
|
586
|
+
}
|
|
587
|
+
const root = currentElement.getRootNode();
|
|
588
|
+
if (typeof ShadowRoot !== "undefined" && root instanceof ShadowRoot && hasExactScopeSelector && scopeRootCandidates.includes(root))
|
|
589
|
+
matches.push(root);
|
|
590
|
+
current = null;
|
|
591
|
+
}
|
|
592
|
+
return matches;
|
|
593
|
+
}
|
|
594
|
+
function isExactScopeSelector(selector) {
|
|
595
|
+
return selector.trim().toLowerCase() === ":scope";
|
|
596
|
+
}
|
|
597
|
+
function finalizeActiveScopeRoots(roots, element, prelude, parentScopes) {
|
|
598
|
+
const activeRoots = [];
|
|
599
|
+
for (const root of roots) {
|
|
600
|
+
if (!isWithinParentScopes(root, parentScopes))
|
|
601
|
+
continue;
|
|
602
|
+
if (prelude.limitSelectors && isWithinScopeLimit(element, root, prelude.limitSelectors)) {
|
|
603
|
+
continue;
|
|
604
|
+
}
|
|
605
|
+
activeRoots.push(root);
|
|
606
|
+
}
|
|
607
|
+
return activeRoots.length === 0 ? null : activeRoots;
|
|
608
|
+
}
|
|
609
|
+
function selectorsAreValid(element, selectors) {
|
|
610
|
+
try {
|
|
611
|
+
for (const selector of selectors)
|
|
612
|
+
element.matches(selector);
|
|
613
|
+
return true;
|
|
614
|
+
} catch {
|
|
615
|
+
return false;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
function isWithinParentScopes(root, parentScopes) {
|
|
619
|
+
return parentScopes.every((scope) => scope.roots.some((parentRoot) => parentRoot.contains(root)));
|
|
620
|
+
}
|
|
621
|
+
function isWithinScopeLimit(element, root, limitSelectors) {
|
|
622
|
+
let current = element;
|
|
623
|
+
while (current) {
|
|
624
|
+
if (current === root)
|
|
625
|
+
break;
|
|
626
|
+
if (limitSelectors.some((selector) => hasScopePseudoClass(selector) ? matchesScopedSelector(current, selector, [{ roots: [root] }]) : matchesSelectorSafely(current, selector)))
|
|
627
|
+
return true;
|
|
628
|
+
current = current.parentElement;
|
|
629
|
+
}
|
|
630
|
+
return false;
|
|
631
|
+
}
|
|
632
|
+
function matchesSelectorSafely(element, selector) {
|
|
633
|
+
try {
|
|
634
|
+
return element.matches(selector);
|
|
635
|
+
} catch {
|
|
636
|
+
return false;
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
function normalizeScopeRelativeSelector(selector) {
|
|
640
|
+
return splitSelectorList(selector).map((part) => {
|
|
641
|
+
if (!part.includes("&") && !/^\s*[>+~]/.test(part))
|
|
642
|
+
return part;
|
|
643
|
+
const withScopeAlias = replaceNestingReferences(part, ":scope").selector;
|
|
644
|
+
return /^\s*[>+~]/.test(withScopeAlias) ? `:scope ${withScopeAlias}` : withScopeAlias;
|
|
645
|
+
}).join(", ");
|
|
646
|
+
}
|
|
647
|
+
function matchesScopedSelector(element, selector, scopes) {
|
|
648
|
+
const normalizedSelector = scopes.length > 0 ? normalizeScopeRelativeSelector(selector) : selector;
|
|
649
|
+
return splitSelectorList(normalizedSelector).some((item) => matchesScopedSelectorItem(element, item, scopes));
|
|
650
|
+
}
|
|
651
|
+
function matchesScopedSelectorItem(element, selector, scopes) {
|
|
652
|
+
if (!hasScopePseudoClass(selector))
|
|
653
|
+
return matchesSelectorSafely(element, selector);
|
|
654
|
+
if (scopes.length === 0)
|
|
655
|
+
return false;
|
|
656
|
+
const scope = scopes.at(-1);
|
|
657
|
+
if (!scope)
|
|
658
|
+
return false;
|
|
659
|
+
const outsideContext = splitScopeOutsideContext(selector);
|
|
660
|
+
const remainderSelector = outsideContext ? outsideContext.remainder : selector;
|
|
661
|
+
for (const root of scope.roots) {
|
|
662
|
+
try {
|
|
663
|
+
if (outsideContext) {
|
|
664
|
+
if (!(root instanceof Element))
|
|
665
|
+
continue;
|
|
666
|
+
if (!matchesOutsideScopeContext(root, outsideContext.before, outsideContext.combinator))
|
|
667
|
+
continue;
|
|
668
|
+
}
|
|
669
|
+
if (matchesRemainderAgainstScopeRoot(element, remainderSelector, root))
|
|
670
|
+
return true;
|
|
671
|
+
} catch {}
|
|
672
|
+
}
|
|
673
|
+
return false;
|
|
674
|
+
}
|
|
675
|
+
function splitScopeOutsideContext(selector) {
|
|
676
|
+
const scopeIndex = findScopePseudoClassIndex(selector, { topLevelOnly: true });
|
|
677
|
+
if (scopeIndex === null)
|
|
678
|
+
return null;
|
|
679
|
+
const beforeRaw = selector.slice(0, scopeIndex);
|
|
680
|
+
if (!beforeRaw.trim())
|
|
681
|
+
return null;
|
|
682
|
+
const trimmedEnd = beforeRaw.replace(/\s+$/, "");
|
|
683
|
+
const lastCharacter = trimmedEnd.at(-1);
|
|
684
|
+
if (lastCharacter === ">" || lastCharacter === "+" || lastCharacter === "~") {
|
|
685
|
+
const before2 = trimmedEnd.slice(0, -1).trim();
|
|
686
|
+
return before2 ? { before: before2, combinator: lastCharacter, remainder: selector.slice(scopeIndex) } : null;
|
|
687
|
+
}
|
|
688
|
+
if (!/\s$/.test(beforeRaw))
|
|
689
|
+
return null;
|
|
690
|
+
const before = trimmedEnd.trim();
|
|
691
|
+
return before ? { before, combinator: " ", remainder: selector.slice(scopeIndex) } : null;
|
|
692
|
+
}
|
|
693
|
+
function matchesOutsideScopeContext(root, before, combinator) {
|
|
694
|
+
if (combinator === " ")
|
|
695
|
+
return root.parentElement?.closest(before) != null;
|
|
696
|
+
if (combinator === ">")
|
|
697
|
+
return root.parentElement !== null && matchesSelectorSafely(root.parentElement, before);
|
|
698
|
+
if (combinator === "+") {
|
|
699
|
+
const sibling2 = root.previousElementSibling;
|
|
700
|
+
return sibling2 !== null && matchesSelectorSafely(sibling2, before);
|
|
701
|
+
}
|
|
702
|
+
let sibling = root.previousElementSibling;
|
|
703
|
+
while (sibling) {
|
|
704
|
+
if (matchesSelectorSafely(sibling, before))
|
|
705
|
+
return true;
|
|
706
|
+
sibling = sibling.previousElementSibling;
|
|
707
|
+
}
|
|
708
|
+
return false;
|
|
709
|
+
}
|
|
710
|
+
function matchesRemainderAgainstScopeRoot(element, selector, root) {
|
|
711
|
+
if (root.querySelector(":scope") === root) {
|
|
712
|
+
return Array.from(root.querySelectorAll(selector)).includes(element);
|
|
713
|
+
}
|
|
714
|
+
const clone = typeof ShadowRoot !== "undefined" && root instanceof ShadowRoot ? null : root.cloneNode(true);
|
|
715
|
+
const cloneElement = clone instanceof Element ? clone : typeof ShadowRoot !== "undefined" && root instanceof ShadowRoot ? (() => {
|
|
716
|
+
const wrapper = root.ownerDocument.createElement("div");
|
|
717
|
+
wrapper.append(...Array.from(root.children, (child) => child.cloneNode(true)));
|
|
718
|
+
return wrapper;
|
|
719
|
+
})() : null;
|
|
720
|
+
if (!cloneElement)
|
|
721
|
+
return false;
|
|
722
|
+
const marker = "data-cinder-scope-root";
|
|
723
|
+
const replacedSelector = replaceScopePseudoClass(selector, `[${marker}]`);
|
|
724
|
+
if (typeof ShadowRoot !== "undefined" && root instanceof ShadowRoot && /^\[[^\]]+\][^\s>+~]/.test(replacedSelector))
|
|
725
|
+
return false;
|
|
726
|
+
cloneElement.setAttribute(marker, "true");
|
|
727
|
+
const path = [];
|
|
728
|
+
let current = element;
|
|
729
|
+
while (current && current !== root) {
|
|
730
|
+
const parent = current.parentElement;
|
|
731
|
+
if (!parent) {
|
|
732
|
+
if (typeof ShadowRoot !== "undefined" && root instanceof ShadowRoot && current.getRootNode() === root)
|
|
733
|
+
path.unshift(Array.prototype.indexOf.call(root.children, current));
|
|
734
|
+
break;
|
|
735
|
+
}
|
|
736
|
+
path.unshift(Array.prototype.indexOf.call(parent.children, current));
|
|
737
|
+
current = parent;
|
|
738
|
+
}
|
|
739
|
+
if (current !== root && !(typeof ShadowRoot !== "undefined" && root instanceof ShadowRoot && current?.getRootNode() === root))
|
|
740
|
+
return false;
|
|
741
|
+
let matchedCloneElement = cloneElement;
|
|
742
|
+
for (const index of path) {
|
|
743
|
+
const child = matchedCloneElement.children[index];
|
|
744
|
+
if (!child)
|
|
745
|
+
break;
|
|
746
|
+
matchedCloneElement = child;
|
|
747
|
+
}
|
|
748
|
+
return matchedCloneElement === cloneElement && cloneElement.matches(replacedSelector) || Array.from(cloneElement.querySelectorAll(replacedSelector)).includes(matchedCloneElement);
|
|
749
|
+
}
|
|
750
|
+
function replaceScopePseudoClass(selector, replacement) {
|
|
751
|
+
let result = "";
|
|
752
|
+
let quote = null;
|
|
753
|
+
let escaped = false;
|
|
754
|
+
let brackets = 0;
|
|
755
|
+
for (let index = 0;index < selector.length; index += 1) {
|
|
756
|
+
const character = selector[index];
|
|
757
|
+
if (escaped) {
|
|
758
|
+
result += character;
|
|
759
|
+
escaped = false;
|
|
760
|
+
continue;
|
|
761
|
+
}
|
|
762
|
+
if (character === "\\") {
|
|
763
|
+
result += character;
|
|
764
|
+
escaped = true;
|
|
765
|
+
continue;
|
|
766
|
+
}
|
|
767
|
+
if (quote) {
|
|
768
|
+
result += character;
|
|
769
|
+
if (character === quote)
|
|
770
|
+
quote = null;
|
|
771
|
+
continue;
|
|
772
|
+
}
|
|
773
|
+
if (character === '"' || character === "'") {
|
|
774
|
+
result += character;
|
|
775
|
+
quote = character;
|
|
776
|
+
continue;
|
|
777
|
+
}
|
|
778
|
+
if (character === "[") {
|
|
779
|
+
brackets += 1;
|
|
780
|
+
result += character;
|
|
781
|
+
continue;
|
|
782
|
+
}
|
|
783
|
+
if (character === "]") {
|
|
784
|
+
brackets = Math.max(0, brackets - 1);
|
|
785
|
+
result += character;
|
|
786
|
+
continue;
|
|
787
|
+
}
|
|
788
|
+
if (brackets === 0 && character === ":" && selector.slice(index + 1, index + 6).toLowerCase() === "scope" && !/[\w-]/.test(selector[index + 6] ?? "")) {
|
|
789
|
+
result += replacement;
|
|
790
|
+
index += 5;
|
|
791
|
+
continue;
|
|
792
|
+
}
|
|
793
|
+
result += character;
|
|
794
|
+
}
|
|
795
|
+
return result;
|
|
796
|
+
}
|
|
797
|
+
function findScopePseudoClassIndex(selector, options = {}) {
|
|
798
|
+
let quote = null;
|
|
799
|
+
let brackets = 0;
|
|
800
|
+
let parentheses = 0;
|
|
801
|
+
let escaped = false;
|
|
802
|
+
for (let index = 0;index < selector.length; index += 1) {
|
|
803
|
+
const character = selector[index];
|
|
804
|
+
if (escaped) {
|
|
805
|
+
escaped = false;
|
|
806
|
+
continue;
|
|
807
|
+
}
|
|
808
|
+
if (character === "\\") {
|
|
809
|
+
escaped = true;
|
|
810
|
+
continue;
|
|
811
|
+
}
|
|
812
|
+
if (quote) {
|
|
813
|
+
if (character === quote)
|
|
814
|
+
quote = null;
|
|
815
|
+
continue;
|
|
816
|
+
}
|
|
817
|
+
if (character === '"' || character === "'") {
|
|
818
|
+
quote = character;
|
|
819
|
+
continue;
|
|
820
|
+
}
|
|
821
|
+
if (character === "[") {
|
|
822
|
+
brackets += 1;
|
|
823
|
+
continue;
|
|
824
|
+
}
|
|
825
|
+
if (character === "]") {
|
|
826
|
+
brackets = Math.max(0, brackets - 1);
|
|
827
|
+
continue;
|
|
828
|
+
}
|
|
829
|
+
if (character === "(") {
|
|
830
|
+
parentheses += 1;
|
|
831
|
+
continue;
|
|
832
|
+
}
|
|
833
|
+
if (character === ")") {
|
|
834
|
+
parentheses = Math.max(0, parentheses - 1);
|
|
835
|
+
continue;
|
|
836
|
+
}
|
|
837
|
+
if (brackets === 0 && (!options.topLevelOnly || parentheses === 0) && character === ":" && selector.slice(index + 1, index + 6).toLowerCase() === "scope" && !/[\w-]/.test(selector[index + 6] ?? ""))
|
|
838
|
+
return index;
|
|
839
|
+
}
|
|
840
|
+
return null;
|
|
841
|
+
}
|
|
842
|
+
function hasScopePseudoClass(selector) {
|
|
843
|
+
return findScopePseudoClassIndex(selector) !== null;
|
|
844
|
+
}
|
|
845
|
+
function parseScopePrelude(cssText) {
|
|
846
|
+
const match = /^\s*@scope\b/i.exec(cssText);
|
|
847
|
+
if (!match)
|
|
848
|
+
return null;
|
|
849
|
+
const start = match[0].length;
|
|
850
|
+
let quote = null;
|
|
851
|
+
let escaped = false;
|
|
852
|
+
let parentheses = 0;
|
|
853
|
+
let brackets = 0;
|
|
854
|
+
let end = -1;
|
|
855
|
+
for (let index = start;index < cssText.length; index += 1) {
|
|
856
|
+
const character = cssText[index];
|
|
857
|
+
if (escaped) {
|
|
858
|
+
escaped = false;
|
|
859
|
+
continue;
|
|
860
|
+
}
|
|
861
|
+
if (character === "\\") {
|
|
862
|
+
escaped = true;
|
|
863
|
+
continue;
|
|
864
|
+
}
|
|
865
|
+
if (quote) {
|
|
866
|
+
if (character === quote)
|
|
867
|
+
quote = null;
|
|
868
|
+
continue;
|
|
869
|
+
}
|
|
870
|
+
if (character === '"' || character === "'")
|
|
871
|
+
quote = character;
|
|
872
|
+
else if (character === "(")
|
|
873
|
+
parentheses += 1;
|
|
874
|
+
else if (character === ")")
|
|
875
|
+
parentheses -= 1;
|
|
876
|
+
else if (character === "[")
|
|
877
|
+
brackets += 1;
|
|
878
|
+
else if (character === "]")
|
|
879
|
+
brackets -= 1;
|
|
880
|
+
else if (character === "{" && parentheses === 0 && brackets === 0) {
|
|
881
|
+
end = index;
|
|
882
|
+
break;
|
|
883
|
+
}
|
|
884
|
+
if (parentheses < 0 || brackets < 0)
|
|
885
|
+
return null;
|
|
886
|
+
}
|
|
887
|
+
if (end < 0 || quote || escaped || parentheses !== 0 || brackets !== 0)
|
|
888
|
+
return null;
|
|
889
|
+
const prelude = cssText.slice(start, end).trim();
|
|
890
|
+
const limitIndex = findScopeLimitKeyword(prelude);
|
|
891
|
+
const rootText = (limitIndex === null ? prelude : prelude.slice(0, limitIndex)).trim();
|
|
892
|
+
const limitText = limitIndex === null ? null : prelude.slice(limitIndex + 2).trim();
|
|
893
|
+
const rootSelectorText = unwrapScopeGroup(rootText);
|
|
894
|
+
if (rootSelectorText === null)
|
|
895
|
+
return null;
|
|
896
|
+
const rootSelectors = rootSelectorText ? splitScopeSelectors(rootSelectorText) : [];
|
|
897
|
+
if (rootSelectorText && rootSelectors.length === 0)
|
|
898
|
+
return null;
|
|
899
|
+
if (limitText === null)
|
|
900
|
+
return { rootSelectors, limitSelectors: null };
|
|
901
|
+
const limitSelectorText = unwrapScopeGroup(limitText);
|
|
902
|
+
if (limitSelectorText === null || !limitSelectorText)
|
|
903
|
+
return null;
|
|
904
|
+
const limitSelectors = splitScopeSelectors(limitSelectorText);
|
|
905
|
+
return limitSelectors.length > 0 ? { rootSelectors, limitSelectors } : null;
|
|
906
|
+
}
|
|
907
|
+
function findScopeLimitKeyword(prelude) {
|
|
908
|
+
let quote = null;
|
|
909
|
+
let escaped = false;
|
|
910
|
+
let parentheses = 0;
|
|
911
|
+
let brackets = 0;
|
|
912
|
+
for (let index = 0;index < prelude.length; index += 1) {
|
|
913
|
+
const character = prelude[index];
|
|
914
|
+
if (escaped) {
|
|
915
|
+
escaped = false;
|
|
916
|
+
continue;
|
|
917
|
+
}
|
|
918
|
+
if (character === "\\") {
|
|
919
|
+
escaped = true;
|
|
920
|
+
continue;
|
|
921
|
+
}
|
|
922
|
+
if (quote) {
|
|
923
|
+
if (character === quote)
|
|
924
|
+
quote = null;
|
|
925
|
+
continue;
|
|
926
|
+
}
|
|
927
|
+
if (character === '"' || character === "'")
|
|
928
|
+
quote = character;
|
|
929
|
+
else if (character === "(")
|
|
930
|
+
parentheses += 1;
|
|
931
|
+
else if (character === ")")
|
|
932
|
+
parentheses -= 1;
|
|
933
|
+
else if (character === "[")
|
|
934
|
+
brackets += 1;
|
|
935
|
+
else if (character === "]")
|
|
936
|
+
brackets -= 1;
|
|
937
|
+
if (parentheses < 0 || brackets < 0)
|
|
938
|
+
return null;
|
|
939
|
+
if (parentheses === 0 && brackets === 0 && prelude.slice(index, index + 2).toLowerCase() === "to" && !/[\w-]/.test(prelude[index - 1] ?? "") && !/[\w-]/.test(prelude[index + 2] ?? "")) {
|
|
940
|
+
const remainder = prelude.slice(index + 2);
|
|
941
|
+
const opening = remainder.search(/\S/);
|
|
942
|
+
if (opening >= 0 && remainder[opening] === "(")
|
|
943
|
+
return index;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
return null;
|
|
947
|
+
}
|
|
948
|
+
function unwrapScopeGroup(value) {
|
|
949
|
+
if (!value)
|
|
950
|
+
return "";
|
|
951
|
+
if (value[0] !== "(")
|
|
952
|
+
return value;
|
|
953
|
+
const end = findScopeGroupEnd(value);
|
|
954
|
+
if (end < 0 || value.slice(end + 1).trim())
|
|
955
|
+
return null;
|
|
956
|
+
return value.slice(1, end).trim();
|
|
957
|
+
}
|
|
958
|
+
function findScopeGroupEnd(value) {
|
|
959
|
+
let depth = 0;
|
|
960
|
+
let brackets = 0;
|
|
961
|
+
let quote = null;
|
|
962
|
+
let escaped = false;
|
|
963
|
+
for (let index = 0;index < value.length; index += 1) {
|
|
964
|
+
const character = value[index];
|
|
965
|
+
if (escaped) {
|
|
966
|
+
escaped = false;
|
|
967
|
+
continue;
|
|
968
|
+
}
|
|
969
|
+
if (character === "\\") {
|
|
970
|
+
escaped = true;
|
|
971
|
+
continue;
|
|
972
|
+
}
|
|
973
|
+
if (quote) {
|
|
974
|
+
if (character === quote)
|
|
975
|
+
quote = null;
|
|
976
|
+
continue;
|
|
977
|
+
}
|
|
978
|
+
if (character === '"' || character === "'")
|
|
979
|
+
quote = character;
|
|
980
|
+
else if (character === "[")
|
|
981
|
+
brackets += 1;
|
|
982
|
+
else if (character === "]")
|
|
983
|
+
brackets -= 1;
|
|
984
|
+
else if (character === "(" && brackets === 0)
|
|
985
|
+
depth += 1;
|
|
986
|
+
else if (character === ")" && brackets === 0) {
|
|
987
|
+
depth -= 1;
|
|
988
|
+
if (depth === 0)
|
|
989
|
+
return index;
|
|
990
|
+
}
|
|
991
|
+
if (brackets < 0)
|
|
992
|
+
return -1;
|
|
993
|
+
}
|
|
994
|
+
return -1;
|
|
995
|
+
}
|
|
996
|
+
function findScopeMatches(element, selectors) {
|
|
997
|
+
if (selectors.length === 0)
|
|
998
|
+
return [];
|
|
999
|
+
const matches = [];
|
|
1000
|
+
let current = element;
|
|
1001
|
+
while (current) {
|
|
1002
|
+
const currentElement = current;
|
|
1003
|
+
if (selectors.some((selector) => matchesSelectorSafely(currentElement, selector)))
|
|
1004
|
+
matches.push(currentElement);
|
|
1005
|
+
current = currentElement.parentElement;
|
|
1006
|
+
}
|
|
1007
|
+
return matches;
|
|
1008
|
+
}
|
|
1009
|
+
function splitScopeSelectors(value) {
|
|
1010
|
+
const selectors = [];
|
|
1011
|
+
let parentheses = 0;
|
|
1012
|
+
let brackets = 0;
|
|
1013
|
+
let quote = null;
|
|
1014
|
+
let escaped = false;
|
|
1015
|
+
let start = 0;
|
|
1016
|
+
for (let index = 0;index < value.length; index += 1) {
|
|
1017
|
+
const character = value[index];
|
|
1018
|
+
if (escaped) {
|
|
1019
|
+
escaped = false;
|
|
1020
|
+
continue;
|
|
1021
|
+
}
|
|
1022
|
+
if (character === "\\") {
|
|
1023
|
+
escaped = true;
|
|
1024
|
+
continue;
|
|
1025
|
+
}
|
|
1026
|
+
if (quote) {
|
|
1027
|
+
if (character === quote)
|
|
1028
|
+
quote = null;
|
|
1029
|
+
continue;
|
|
1030
|
+
}
|
|
1031
|
+
if (character === '"' || character === "'")
|
|
1032
|
+
quote = character;
|
|
1033
|
+
else if (character === "(")
|
|
1034
|
+
parentheses += 1;
|
|
1035
|
+
else if (character === ")")
|
|
1036
|
+
parentheses -= 1;
|
|
1037
|
+
else if (character === "[")
|
|
1038
|
+
brackets += 1;
|
|
1039
|
+
else if (character === "]")
|
|
1040
|
+
brackets -= 1;
|
|
1041
|
+
else if (character === "," && parentheses === 0 && brackets === 0) {
|
|
1042
|
+
const selector2 = value.slice(start, index).trim();
|
|
1043
|
+
if (!selector2)
|
|
1044
|
+
return [];
|
|
1045
|
+
selectors.push(selector2);
|
|
1046
|
+
start = index + 1;
|
|
1047
|
+
}
|
|
1048
|
+
if (parentheses < 0 || brackets < 0)
|
|
1049
|
+
return [];
|
|
1050
|
+
}
|
|
1051
|
+
if (escaped || quote || parentheses !== 0 || brackets !== 0)
|
|
1052
|
+
return [];
|
|
1053
|
+
const selector = value.slice(start).trim();
|
|
1054
|
+
if (!selector)
|
|
1055
|
+
return [];
|
|
1056
|
+
selectors.push(selector);
|
|
1057
|
+
return selectors;
|
|
1058
|
+
}
|
|
1059
|
+
function resolveContainerQueryText(conditionText, rule, containerName) {
|
|
1060
|
+
const containerQuery = Reflect.get(rule, "containerQuery");
|
|
1061
|
+
if (typeof containerQuery === "string")
|
|
1062
|
+
return containerQuery;
|
|
1063
|
+
if (typeof containerName !== "string" || !containerName)
|
|
1064
|
+
return conditionText;
|
|
1065
|
+
if (!conditionText.startsWith(containerName))
|
|
1066
|
+
return conditionText;
|
|
1067
|
+
const rest = conditionText.slice(containerName.length);
|
|
1068
|
+
if (!/^\s/.test(rest))
|
|
1069
|
+
return conditionText;
|
|
1070
|
+
return rest.trimStart();
|
|
1071
|
+
}
|
|
1072
|
+
function isContainerConditionList(value) {
|
|
1073
|
+
if (!Array.isArray(value) || value.length === 0)
|
|
1074
|
+
return false;
|
|
1075
|
+
return value.every((entry) => typeof entry === "object" && entry !== null && typeof Reflect.get(entry, "name") === "string" && typeof Reflect.get(entry, "query") === "string");
|
|
1076
|
+
}
|
|
1077
|
+
function isContainerQueryActive(conditionText, element, rule, getParentElement) {
|
|
1078
|
+
if (typeof getComputedStyle !== "function")
|
|
1079
|
+
return false;
|
|
1080
|
+
const conditions = Reflect.get(rule, "conditions");
|
|
1081
|
+
if (isContainerConditionList(conditions))
|
|
1082
|
+
return conditions.some((condition) => isSingleContainerConditionActive(condition.query, condition.name, element, getParentElement));
|
|
1083
|
+
const containerName = Reflect.get(rule, "containerName");
|
|
1084
|
+
const queryText = resolveContainerQueryText(conditionText, rule, containerName);
|
|
1085
|
+
return isSingleContainerConditionActive(queryText, containerName, element, getParentElement);
|
|
1086
|
+
}
|
|
1087
|
+
function isSingleContainerConditionActive(queryText, containerName, element, getParentElement) {
|
|
1088
|
+
if (!queryText.trim())
|
|
1089
|
+
return false;
|
|
1090
|
+
const styleQuery = parseStyleQuery(queryText);
|
|
1091
|
+
if (styleQuery) {
|
|
1092
|
+
const remainder = (queryText.slice(0, styleQuery.index) + queryText.slice(styleQuery.end)).replace(/^\s*(?:and|or|not)\b/i, "").replace(/^\(|\)$/g, "").trim();
|
|
1093
|
+
if (remainder)
|
|
1094
|
+
return false;
|
|
1095
|
+
let ancestor = getParentElement(element);
|
|
1096
|
+
while (ancestor) {
|
|
1097
|
+
if (typeof containerName === "string" && containerName) {
|
|
1098
|
+
const computedStyle = getComputedStyle(ancestor);
|
|
1099
|
+
const name = computedStyle.containerName || computedStyle.getPropertyValue("container-name") || ancestor.style.containerName || ancestor.style.getPropertyValue("container-name");
|
|
1100
|
+
if (!name.split(/\s+/).includes(containerName)) {
|
|
1101
|
+
ancestor = getParentElement(ancestor);
|
|
1102
|
+
continue;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
const value = getComputedStyle(ancestor).getPropertyValue(styleQuery.name).trim() || ancestor.style.getPropertyValue(styleQuery.name).trim();
|
|
1106
|
+
return /^\s*not\b/i.test(queryText) ? value !== styleQuery.value.trim() : value === styleQuery.value.trim();
|
|
1107
|
+
}
|
|
1108
|
+
return false;
|
|
1109
|
+
}
|
|
1110
|
+
const queriesPhysicalWidth = /(?:^|[\s(])(?:width|min-width|max-width)\s*[:<>=]/i.test(queryText) || /[\d.]+(?:px|rem)\s*(?:<=|<|>=|>)\s*width\b/i.test(queryText);
|
|
1111
|
+
let container = getParentElement(element);
|
|
1112
|
+
while (container) {
|
|
1113
|
+
const computedStyle = getComputedStyle(container);
|
|
1114
|
+
const type = computedStyle.containerType || computedStyle.getPropertyValue("container-type") || container.style.containerType || container.style.getPropertyValue("container-type");
|
|
1115
|
+
const name = computedStyle.containerName || computedStyle.getPropertyValue("container-name") || container.style.containerName || container.style.getPropertyValue("container-name");
|
|
1116
|
+
const writingMode2 = computedStyle.writingMode || computedStyle.getPropertyValue("writing-mode") || container.style.writingMode || container.style.getPropertyValue("writing-mode");
|
|
1117
|
+
if ((typeof containerName !== "string" || !containerName || name.split(/\s+/).includes(containerName)) && type && type !== "normal" && !(queriesPhysicalWidth && /^(?:vertical|sideways)-/i.test(writingMode2) && type === "inline-size")) {
|
|
1118
|
+
break;
|
|
1119
|
+
}
|
|
1120
|
+
container = getParentElement(container);
|
|
1121
|
+
}
|
|
1122
|
+
if (!container)
|
|
1123
|
+
return false;
|
|
1124
|
+
const computedContainerStyle = getComputedStyle(container);
|
|
1125
|
+
const readInset = (property, fallbackProperty) => {
|
|
1126
|
+
const camel = property.replace(/-([a-z])/g, (_, character) => character.toUpperCase());
|
|
1127
|
+
const fallbackCamel = fallbackProperty.replace(/-([a-z])/g, (_, character) => character.toUpperCase());
|
|
1128
|
+
const value = Reflect.get(computedContainerStyle, camel) || Reflect.get(container.style, camel) || computedContainerStyle.getPropertyValue(property).trim() || container.style.getPropertyValue(property).trim() || Reflect.get(computedContainerStyle, fallbackCamel) || Reflect.get(container.style, fallbackCamel) || computedContainerStyle.getPropertyValue(fallbackProperty).trim() || container.style.getPropertyValue(fallbackProperty).trim();
|
|
1129
|
+
const parsed = Number.parseFloat(value);
|
|
1130
|
+
return Number.isFinite(parsed) && parsed > 0 ? parsed : 0;
|
|
1131
|
+
};
|
|
1132
|
+
const writingMode = computedContainerStyle.writingMode || computedContainerStyle.getPropertyValue("writing-mode") || container.style.writingMode || container.style.getPropertyValue("writing-mode");
|
|
1133
|
+
const usesInlineSize = /(?:inline-size|min-inline-size|max-inline-size)/i.test(queryText);
|
|
1134
|
+
const isVerticalWritingMode = /^(?:vertical|sideways)-/i.test(writingMode);
|
|
1135
|
+
const verticalInlineAxis = usesInlineSize && isVerticalWritingMode;
|
|
1136
|
+
const physicalInsets = readInset("padding-left", "padding-inline-start") + readInset("padding-right", "padding-inline-end");
|
|
1137
|
+
const physicalBorders = readInset("border-left-width", "border-inline-start-width") + readInset("border-right-width", "border-inline-end-width");
|
|
1138
|
+
const inlineInsets = verticalInlineAxis ? readInset("padding-inline-start", "padding-top") + readInset("padding-inline-end", "padding-bottom") : physicalInsets;
|
|
1139
|
+
const inlineBorders = verticalInlineAxis ? readInset("border-inline-start-width", "border-top-width") + readInset("border-inline-end-width", "border-bottom-width") : physicalBorders;
|
|
1140
|
+
const readUsedContentSize = (axis, fallback, insets, borders) => {
|
|
1141
|
+
const parsed = Number.parseFloat(computedContainerStyle[axis]);
|
|
1142
|
+
if (!Number.isFinite(parsed))
|
|
1143
|
+
return fallback;
|
|
1144
|
+
const boxSizing = computedContainerStyle.boxSizing || container.style.boxSizing;
|
|
1145
|
+
return boxSizing === "border-box" ? Math.max(0, parsed - insets - borders) : parsed;
|
|
1146
|
+
};
|
|
1147
|
+
const physicalClientSize = container.clientWidth;
|
|
1148
|
+
const inlineClientSize = verticalInlineAxis ? container.clientHeight : physicalClientSize;
|
|
1149
|
+
const width = Math.max(0, readUsedContentSize("width", physicalClientSize > 0 ? physicalClientSize - physicalInsets : container.offsetWidth - physicalBorders - physicalInsets, physicalInsets, physicalBorders));
|
|
1150
|
+
const inlineSize = Math.max(0, readUsedContentSize(verticalInlineAxis ? "height" : "width", inlineClientSize > 0 ? inlineClientSize - inlineInsets : (verticalInlineAxis ? container.offsetHeight : container.offsetWidth) - inlineBorders - inlineInsets, inlineInsets, inlineBorders));
|
|
1151
|
+
const rootFontSize = Number.parseFloat(getComputedStyle(element.ownerDocument.documentElement).fontSize);
|
|
1152
|
+
const remSize = Number.isFinite(rootFontSize) && rootFontSize > 0 ? rootFontSize : 16;
|
|
1153
|
+
if (hasUnsupportedContainerSizeQuery(queryText))
|
|
1154
|
+
return false;
|
|
1155
|
+
return evaluateLogicalContainerCondition(queryText, width, remSize, inlineSize);
|
|
1156
|
+
}
|
|
1157
|
+
function isContainerRule(rule) {
|
|
1158
|
+
if (rule.constructor.name === "CSSContainerRule")
|
|
1159
|
+
return true;
|
|
1160
|
+
if (Reflect.get(rule, "type") !== 0)
|
|
1161
|
+
return false;
|
|
1162
|
+
const cssText = Reflect.get(rule, "cssText");
|
|
1163
|
+
return typeof cssText === "string" && /^\s*@container\b/i.test(cssText);
|
|
1164
|
+
}
|
|
1165
|
+
function isMediaRule(rule) {
|
|
1166
|
+
return typeof Reflect.get(rule, "media") === "object" && Reflect.get(rule, "media") !== null;
|
|
1167
|
+
}
|
|
1168
|
+
function isSupportsRule(rule) {
|
|
1169
|
+
return rule.constructor.name === "CSSSupportsRule" || Reflect.get(rule, "type") === 12;
|
|
1170
|
+
}
|
|
1171
|
+
function observeTextDirectionMediaQueries(element, onChange) {
|
|
1172
|
+
if (!element || typeof matchMedia !== "function")
|
|
1173
|
+
return;
|
|
1174
|
+
const sheets = new Set(Array.from(element.ownerDocument.styleSheets));
|
|
1175
|
+
for (const sheet of element.ownerDocument.adoptedStyleSheets ?? [])
|
|
1176
|
+
sheets.add(sheet);
|
|
1177
|
+
const root = element.getRootNode();
|
|
1178
|
+
if (typeof ShadowRoot !== "undefined" && root instanceof ShadowRoot) {
|
|
1179
|
+
for (const sheet of root.adoptedStyleSheets)
|
|
1180
|
+
sheets.add(sheet);
|
|
1181
|
+
for (const style of root.querySelectorAll('style,link[rel~="stylesheet"]')) {
|
|
1182
|
+
const sheet = style.sheet;
|
|
1183
|
+
if (sheet)
|
|
1184
|
+
sheets.add(sheet);
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
const queries = new Set;
|
|
1188
|
+
const visitedSheets = new Set;
|
|
1189
|
+
const visit = (rules) => {
|
|
1190
|
+
for (const rule of Array.from(rules)) {
|
|
1191
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
1192
|
+
try {
|
|
1193
|
+
const media = Reflect.get(rule, "media");
|
|
1194
|
+
const condition = media && Reflect.get(media, "mediaText");
|
|
1195
|
+
if (typeof condition === "string" && condition)
|
|
1196
|
+
queries.add(condition);
|
|
1197
|
+
} catch {}
|
|
1198
|
+
let imported;
|
|
1199
|
+
try {
|
|
1200
|
+
imported = Reflect.get(rule, "styleSheet");
|
|
1201
|
+
} catch {
|
|
1202
|
+
continue;
|
|
1203
|
+
}
|
|
1204
|
+
if (imported && !visitedSheets.has(imported)) {
|
|
1205
|
+
visitedSheets.add(imported);
|
|
1206
|
+
try {
|
|
1207
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
1208
|
+
if (isCssRuleCollection(importedRules))
|
|
1209
|
+
visit(importedRules);
|
|
1210
|
+
} catch {}
|
|
1211
|
+
}
|
|
1212
|
+
continue;
|
|
1213
|
+
}
|
|
1214
|
+
if (isMediaRule(rule)) {
|
|
1215
|
+
const condition = Reflect.get(rule, "conditionText");
|
|
1216
|
+
if (typeof condition === "string" && condition)
|
|
1217
|
+
queries.add(condition);
|
|
1218
|
+
}
|
|
1219
|
+
const nested = readNestedCssRules(rule);
|
|
1220
|
+
if (nested)
|
|
1221
|
+
visit(nested);
|
|
1222
|
+
}
|
|
1223
|
+
};
|
|
1224
|
+
for (const sheet of sheets) {
|
|
1225
|
+
if (visitedSheets.has(sheet))
|
|
1226
|
+
continue;
|
|
1227
|
+
visitedSheets.add(sheet);
|
|
1228
|
+
try {
|
|
1229
|
+
visit(sheet.cssRules);
|
|
1230
|
+
} catch {}
|
|
1231
|
+
}
|
|
1232
|
+
const mediaQueries = [...queries].map((query) => matchMedia(query));
|
|
1233
|
+
const handler = () => onChange();
|
|
1234
|
+
for (const mediaQuery of mediaQueries)
|
|
1235
|
+
mediaQuery.addEventListener?.("change", handler);
|
|
1236
|
+
return () => {
|
|
1237
|
+
for (const mediaQuery of mediaQueries)
|
|
1238
|
+
mediaQuery.removeEventListener?.("change", handler);
|
|
1239
|
+
};
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
// src/_internal/text-direction.ts
|
|
1243
|
+
function elementDirectionStyleOverride(element) {
|
|
1244
|
+
if (!element)
|
|
1245
|
+
return;
|
|
1246
|
+
if (element.style.direction)
|
|
1247
|
+
return readComputedTextDirection(element);
|
|
1248
|
+
if (!matchesDirectionStyleRuleCached(element, undefined, composedParentElement))
|
|
1249
|
+
return;
|
|
1250
|
+
return readComputedTextDirection(element);
|
|
1251
|
+
}
|
|
1252
|
+
function resolveTextDirection(element, fallback, options) {
|
|
1253
|
+
const ignoreElementDirectionAttribute = options?.ignoreElementDirectionAttribute ?? false;
|
|
1254
|
+
const directionStyleRuleCache = new WeakMap;
|
|
1255
|
+
if (ignoreElementDirectionAttribute && element) {
|
|
1256
|
+
const styledDirection = readComputedTextDirection(element);
|
|
1257
|
+
const rootComputedDirection2 = readComputedTextDirection(element.ownerDocument.documentElement);
|
|
1258
|
+
const elementDirectionAttribute = element.getAttribute("dir")?.toLowerCase();
|
|
1259
|
+
const differsFromRootViaStyling = styledDirection !== rootComputedDirection2 && styledDirection !== elementDirectionAttribute;
|
|
1260
|
+
if (styledDirection && (hasElementDirectionStylingHint(element, directionStyleRuleCache) || differsFromRootViaStyling))
|
|
1261
|
+
return styledDirection;
|
|
1262
|
+
}
|
|
1263
|
+
let currentElement = ignoreElementDirectionAttribute ? element ? composedParentElement(element) : null : element ?? null;
|
|
1264
|
+
let documentDirection;
|
|
1265
|
+
let styledDirectionElement = null;
|
|
1266
|
+
while (currentElement) {
|
|
1267
|
+
if (!styledDirectionElement && currentElement !== currentElement.ownerDocument.documentElement && (Boolean(currentElement.style.direction) || matchesDirectionStyleRuleCached(currentElement, directionStyleRuleCache, composedParentElement))) {
|
|
1268
|
+
styledDirectionElement = currentElement;
|
|
1269
|
+
}
|
|
1270
|
+
const direction = currentElement.getAttribute("dir")?.toLowerCase();
|
|
1271
|
+
if (direction === "rtl" || direction === "ltr") {
|
|
1272
|
+
if (typeof getComputedStyle === "function" && styledDirectionElement) {
|
|
1273
|
+
const styledDirection2 = getComputedStyle(styledDirectionElement).direction;
|
|
1274
|
+
if (styledDirection2 === "rtl" || styledDirection2 === "ltr")
|
|
1275
|
+
return styledDirection2;
|
|
1276
|
+
}
|
|
1277
|
+
if (currentElement === currentElement.ownerDocument.documentElement) {
|
|
1278
|
+
documentDirection = direction;
|
|
1279
|
+
break;
|
|
1280
|
+
}
|
|
1281
|
+
return direction;
|
|
1282
|
+
}
|
|
1283
|
+
if (direction === "auto" && typeof getComputedStyle === "function") {
|
|
1284
|
+
const computedDirection2 = getComputedStyle(currentElement).direction;
|
|
1285
|
+
if (computedDirection2 === "rtl" || computedDirection2 === "ltr")
|
|
1286
|
+
return computedDirection2;
|
|
1287
|
+
}
|
|
1288
|
+
const styledDirection = currentElement.style.direction;
|
|
1289
|
+
if (!styledDirectionElement && (styledDirection === "rtl" || styledDirection === "ltr")) {
|
|
1290
|
+
styledDirectionElement = currentElement;
|
|
1291
|
+
}
|
|
1292
|
+
currentElement = composedParentElement(currentElement);
|
|
1293
|
+
}
|
|
1294
|
+
if (typeof getComputedStyle === "function" && styledDirectionElement) {
|
|
1295
|
+
const direction = getComputedStyle(styledDirectionElement).direction;
|
|
1296
|
+
if (direction === "rtl" || direction === "ltr")
|
|
1297
|
+
return direction;
|
|
1298
|
+
}
|
|
1299
|
+
const computedDirection = readComputedTextDirection(element);
|
|
1300
|
+
const rootComputedDirection = readComputedTextDirection(element?.ownerDocument.documentElement);
|
|
1301
|
+
if (!ignoreElementDirectionAttribute && computedDirection && computedDirection !== rootComputedDirection)
|
|
1302
|
+
return computedDirection;
|
|
1303
|
+
if (computedDirection && fallback && computedDirection !== fallback && hasDirectionStylingHint(element, false, directionStyleRuleCache)) {
|
|
1304
|
+
return computedDirection;
|
|
1305
|
+
}
|
|
1306
|
+
if (!fallback && computedDirection === "rtl")
|
|
1307
|
+
return computedDirection;
|
|
1308
|
+
if (fallback)
|
|
1309
|
+
return fallback;
|
|
1310
|
+
if (documentDirection)
|
|
1311
|
+
return documentDirection;
|
|
1312
|
+
return;
|
|
1313
|
+
}
|
|
1314
|
+
function hasElementDirectionStylingHint(element, cache) {
|
|
1315
|
+
return Boolean(element.style.direction) || matchesDirectionStyleRuleCached(element, cache, composedParentElement);
|
|
1316
|
+
}
|
|
1317
|
+
function readComputedTextDirection(element) {
|
|
1318
|
+
if (!element || typeof getComputedStyle !== "function")
|
|
1319
|
+
return;
|
|
1320
|
+
const direction = getComputedStyle(element).direction;
|
|
1321
|
+
return direction === "rtl" || direction === "ltr" ? direction : undefined;
|
|
1322
|
+
}
|
|
1323
|
+
function hasDirectionStylingHint(element, includeElement = false, cache) {
|
|
1324
|
+
let currentElement = includeElement ? element : element ? composedParentElement(element) : null;
|
|
1325
|
+
while (currentElement && currentElement !== currentElement.ownerDocument.documentElement) {
|
|
1326
|
+
if (currentElement.style.direction)
|
|
1327
|
+
return true;
|
|
1328
|
+
if (matchesDirectionStyleRuleCached(currentElement, cache, composedParentElement))
|
|
1329
|
+
return true;
|
|
1330
|
+
currentElement = composedParentElement(currentElement);
|
|
1331
|
+
}
|
|
1332
|
+
return false;
|
|
1333
|
+
}
|
|
1334
|
+
function composedParentElement(element) {
|
|
1335
|
+
if (element.parentElement)
|
|
1336
|
+
return element.parentElement;
|
|
1337
|
+
const root = element.getRootNode();
|
|
1338
|
+
return typeof ShadowRoot !== "undefined" && typeof HTMLElement !== "undefined" && root instanceof ShadowRoot && root.host instanceof HTMLElement ? root.host : null;
|
|
1339
|
+
}
|
|
1340
|
+
function isRightToLeftElement(element) {
|
|
1341
|
+
return resolveTextDirection(element) === "rtl";
|
|
1342
|
+
}
|
|
1343
|
+
function observeTextDirection(element, onChange) {
|
|
1344
|
+
if (!element || typeof MutationObserver === "undefined")
|
|
1345
|
+
return;
|
|
1346
|
+
const observedElement = element;
|
|
1347
|
+
const observer = new MutationObserver((mutations) => {
|
|
1348
|
+
if (mutations.some((mutation) => mutation.type === "attributes" && mutation.attributeName === "dir" || mutation.type === "childList")) {
|
|
1349
|
+
observeDirectionChain();
|
|
1350
|
+
}
|
|
1351
|
+
onChange();
|
|
1352
|
+
});
|
|
1353
|
+
function observeDirectionChain() {
|
|
1354
|
+
observer.disconnect();
|
|
1355
|
+
let currentElement = observedElement;
|
|
1356
|
+
while (currentElement) {
|
|
1357
|
+
const isAutoDirection = currentElement.getAttribute("dir")?.toLowerCase() === "auto";
|
|
1358
|
+
observer.observe(currentElement, {
|
|
1359
|
+
attributes: true,
|
|
1360
|
+
childList: true,
|
|
1361
|
+
characterData: isAutoDirection,
|
|
1362
|
+
subtree: isAutoDirection
|
|
1363
|
+
});
|
|
1364
|
+
currentElement = composedParentElement(currentElement);
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
observeDirectionChain();
|
|
1368
|
+
return () => observer.disconnect();
|
|
1369
|
+
}
|
|
60
1370
|
|
|
61
1371
|
// src/utilities/class-names.ts
|
|
62
1372
|
function classNames(...parts) {
|
|
63
1373
|
return parts.filter((part) => typeof part === "string" && part.length > 0).join(" ");
|
|
64
1374
|
}
|
|
65
1375
|
|
|
66
|
-
//
|
|
1376
|
+
// ../../node_modules/esm-env/true.js
|
|
1377
|
+
var true_default = true;
|
|
1378
|
+
// src/utilities/dev-warn.ts
|
|
1379
|
+
function devWarn(message, ...args) {
|
|
1380
|
+
if (!true_default)
|
|
1381
|
+
return;
|
|
1382
|
+
console.warn(message, ...args);
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
// src/utilities/use-drag-scroll.svelte.ts
|
|
67
1386
|
import * as $ from "svelte/internal/client";
|
|
1387
|
+
|
|
1388
|
+
// src/utilities/drag-scroll-physics.ts
|
|
1389
|
+
var DRAG_FRICTION = 0.95;
|
|
1390
|
+
var DRAG_DAMPING = 20;
|
|
1391
|
+
var DRAG_SETTLE_VELOCITY_EPSILON = 0.01;
|
|
1392
|
+
function damp(current, target, dampingConstant, deltaTimeMs) {
|
|
1393
|
+
if (dampingConstant <= 0 || deltaTimeMs <= 0)
|
|
1394
|
+
return current;
|
|
1395
|
+
const t = 1 - Math.exp(-dampingConstant * (deltaTimeMs / 1000));
|
|
1396
|
+
return current + (target - current) * t;
|
|
1397
|
+
}
|
|
1398
|
+
function project(current, velocity, friction) {
|
|
1399
|
+
if (friction <= 0 || friction >= 1)
|
|
1400
|
+
return current;
|
|
1401
|
+
return current + velocity * friction / (1 - friction);
|
|
1402
|
+
}
|
|
1403
|
+
function dragSnap(distance, friction) {
|
|
1404
|
+
if (friction <= 0 || friction >= 1)
|
|
1405
|
+
return 0;
|
|
1406
|
+
return distance * (1 - friction) / friction;
|
|
1407
|
+
}
|
|
1408
|
+
function snapSelect(position, snapPositions) {
|
|
1409
|
+
return snapPositions.reduce((nearest, candidate) => {
|
|
1410
|
+
if (nearest === null)
|
|
1411
|
+
return candidate;
|
|
1412
|
+
return Math.abs(candidate - position) < Math.abs(nearest - position) ? candidate : nearest;
|
|
1413
|
+
}, null);
|
|
1414
|
+
}
|
|
1415
|
+
function shouldSnap(distance, snapportSize, mode = "mandatory") {
|
|
1416
|
+
if (mode === "mandatory")
|
|
1417
|
+
return true;
|
|
1418
|
+
if (snapportSize <= 0)
|
|
1419
|
+
return false;
|
|
1420
|
+
return Math.abs(distance) <= snapportSize / 3;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
// src/utilities/use-drag-scroll.svelte.ts
|
|
1424
|
+
var DRAG_THRESHOLD_PX = 10;
|
|
1425
|
+
function useDragScroll(options = {}) {
|
|
1426
|
+
const {
|
|
1427
|
+
enabled = () => true,
|
|
1428
|
+
snapMode = "mandatory",
|
|
1429
|
+
axis = "x",
|
|
1430
|
+
onSettle,
|
|
1431
|
+
getSnapPositions
|
|
1432
|
+
} = options;
|
|
1433
|
+
const scrollProperty = axis === "x" ? "scrollLeft" : "scrollTop";
|
|
1434
|
+
const clientSizeProperty = axis === "x" ? "clientWidth" : "clientHeight";
|
|
1435
|
+
const clientAxisProperty = axis === "x" ? "clientX" : "clientY";
|
|
1436
|
+
const movementAxisProperty = axis === "x" ? "movementX" : "movementY";
|
|
1437
|
+
return (node) => {
|
|
1438
|
+
let pointerId = null;
|
|
1439
|
+
let startClientPosition = 0;
|
|
1440
|
+
let target = 0;
|
|
1441
|
+
let virtualScroll = 0;
|
|
1442
|
+
let velocity = 0;
|
|
1443
|
+
let dragged = false;
|
|
1444
|
+
let rafId = null;
|
|
1445
|
+
let lastFrameTime = 0;
|
|
1446
|
+
let originalSnapType = "";
|
|
1447
|
+
let dragSuppressTimer = null;
|
|
1448
|
+
function tick(now) {
|
|
1449
|
+
const frameDeltaMs = lastFrameTime === 0 ? 16 : now - lastFrameTime;
|
|
1450
|
+
lastFrameTime = now;
|
|
1451
|
+
if (pointerId === null) {
|
|
1452
|
+
velocity *= DRAG_FRICTION;
|
|
1453
|
+
target += velocity;
|
|
1454
|
+
}
|
|
1455
|
+
virtualScroll = damp(virtualScroll, target, DRAG_DAMPING, frameDeltaMs);
|
|
1456
|
+
node[scrollProperty] = virtualScroll;
|
|
1457
|
+
const settled = pointerId === null && Math.abs(velocity) < DRAG_SETTLE_VELOCITY_EPSILON;
|
|
1458
|
+
if (settled) {
|
|
1459
|
+
rafId = null;
|
|
1460
|
+
lastFrameTime = 0;
|
|
1461
|
+
node.removeAttribute("data-cinder-dragging");
|
|
1462
|
+
restoreSnapType();
|
|
1463
|
+
onSettle?.();
|
|
1464
|
+
return;
|
|
1465
|
+
}
|
|
1466
|
+
rafId = requestAnimationFrame(tick);
|
|
1467
|
+
}
|
|
1468
|
+
function startTicker() {
|
|
1469
|
+
if (rafId !== null)
|
|
1470
|
+
return;
|
|
1471
|
+
lastFrameTime = 0;
|
|
1472
|
+
rafId = requestAnimationFrame(tick);
|
|
1473
|
+
}
|
|
1474
|
+
function stopTicker() {
|
|
1475
|
+
if (rafId !== null)
|
|
1476
|
+
cancelAnimationFrame(rafId);
|
|
1477
|
+
rafId = null;
|
|
1478
|
+
lastFrameTime = 0;
|
|
1479
|
+
}
|
|
1480
|
+
function suppressSnapType() {
|
|
1481
|
+
originalSnapType = node.style.scrollSnapType;
|
|
1482
|
+
node.style.scrollSnapType = "none";
|
|
1483
|
+
}
|
|
1484
|
+
function restoreSnapType() {
|
|
1485
|
+
node.style.scrollSnapType = originalSnapType;
|
|
1486
|
+
}
|
|
1487
|
+
function suppressNextClick() {
|
|
1488
|
+
node.setAttribute("data-cinder-dragged", "");
|
|
1489
|
+
if (dragSuppressTimer !== null)
|
|
1490
|
+
clearTimeout(dragSuppressTimer);
|
|
1491
|
+
dragSuppressTimer = setTimeout(() => {
|
|
1492
|
+
dragSuppressTimer = null;
|
|
1493
|
+
node.removeAttribute("data-cinder-dragged");
|
|
1494
|
+
}, 0);
|
|
1495
|
+
}
|
|
1496
|
+
function onClickCapture(event) {
|
|
1497
|
+
if (node.hasAttribute("data-cinder-dragged")) {
|
|
1498
|
+
event.preventDefault();
|
|
1499
|
+
event.stopPropagation();
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
function onPointerMove(event) {
|
|
1503
|
+
if (event.pointerId !== pointerId)
|
|
1504
|
+
return;
|
|
1505
|
+
const clientPosition = event[clientAxisProperty];
|
|
1506
|
+
const dragDistance = clientPosition - startClientPosition;
|
|
1507
|
+
if (!dragged && Math.abs(dragDistance) > DRAG_THRESHOLD_PX) {
|
|
1508
|
+
dragged = true;
|
|
1509
|
+
node.setAttribute("data-cinder-dragging", "");
|
|
1510
|
+
}
|
|
1511
|
+
if (!dragged)
|
|
1512
|
+
return;
|
|
1513
|
+
const scrollDelta = -event[movementAxisProperty];
|
|
1514
|
+
target += scrollDelta;
|
|
1515
|
+
velocity += scrollDelta;
|
|
1516
|
+
}
|
|
1517
|
+
function onPointerUp(event) {
|
|
1518
|
+
if (event.pointerId !== pointerId)
|
|
1519
|
+
return;
|
|
1520
|
+
window.removeEventListener("pointermove", onPointerMove);
|
|
1521
|
+
window.removeEventListener("pointerup", onPointerUp);
|
|
1522
|
+
window.removeEventListener("pointercancel", onPointerUp);
|
|
1523
|
+
if ("releasePointerCapture" in node && node.hasPointerCapture(event.pointerId)) {
|
|
1524
|
+
node.releasePointerCapture(event.pointerId);
|
|
1525
|
+
}
|
|
1526
|
+
pointerId = null;
|
|
1527
|
+
if (!dragged) {
|
|
1528
|
+
stopTicker();
|
|
1529
|
+
node.removeAttribute("data-cinder-dragging");
|
|
1530
|
+
restoreSnapType();
|
|
1531
|
+
return;
|
|
1532
|
+
}
|
|
1533
|
+
suppressNextClick();
|
|
1534
|
+
const snapPositions = getSnapPositions?.();
|
|
1535
|
+
if (snapPositions && snapPositions.length > 0) {
|
|
1536
|
+
const projected = project(target, velocity, DRAG_FRICTION);
|
|
1537
|
+
const snapTarget = snapSelect(projected, snapPositions);
|
|
1538
|
+
if (snapTarget !== null && shouldSnap(snapTarget - projected, node[clientSizeProperty], snapMode)) {
|
|
1539
|
+
velocity = dragSnap(snapTarget - target, DRAG_FRICTION);
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
function onPointerDown(event) {
|
|
1544
|
+
if (event.pointerType !== "mouse")
|
|
1545
|
+
return;
|
|
1546
|
+
if (!enabled())
|
|
1547
|
+
return;
|
|
1548
|
+
pointerId = event.pointerId;
|
|
1549
|
+
startClientPosition = event[clientAxisProperty];
|
|
1550
|
+
const startScroll = node[scrollProperty];
|
|
1551
|
+
target = startScroll;
|
|
1552
|
+
virtualScroll = startScroll;
|
|
1553
|
+
velocity = 0;
|
|
1554
|
+
dragged = false;
|
|
1555
|
+
suppressSnapType();
|
|
1556
|
+
if ("setPointerCapture" in node)
|
|
1557
|
+
node.setPointerCapture(event.pointerId);
|
|
1558
|
+
window.addEventListener("pointermove", onPointerMove);
|
|
1559
|
+
window.addEventListener("pointerup", onPointerUp);
|
|
1560
|
+
window.addEventListener("pointercancel", onPointerUp);
|
|
1561
|
+
startTicker();
|
|
1562
|
+
}
|
|
1563
|
+
node.addEventListener("pointerdown", onPointerDown);
|
|
1564
|
+
node.addEventListener("click", onClickCapture, { capture: true });
|
|
1565
|
+
return () => {
|
|
1566
|
+
node.removeEventListener("pointerdown", onPointerDown);
|
|
1567
|
+
node.removeEventListener("click", onClickCapture, { capture: true });
|
|
1568
|
+
window.removeEventListener("pointermove", onPointerMove);
|
|
1569
|
+
window.removeEventListener("pointerup", onPointerUp);
|
|
1570
|
+
window.removeEventListener("pointercancel", onPointerUp);
|
|
1571
|
+
stopTicker();
|
|
1572
|
+
if (dragSuppressTimer !== null)
|
|
1573
|
+
clearTimeout(dragSuppressTimer);
|
|
1574
|
+
};
|
|
1575
|
+
};
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
// src/utilities/use-fine-pointer.svelte.ts
|
|
1579
|
+
import * as $2 from "svelte/internal/client";
|
|
68
1580
|
import { MediaQuery } from "svelte/reactivity";
|
|
1581
|
+
function useFinePointer() {
|
|
1582
|
+
if (typeof window === "undefined" || typeof window.matchMedia !== "function") {
|
|
1583
|
+
return { current: false };
|
|
1584
|
+
}
|
|
1585
|
+
const query = new MediaQuery("(hover: hover) and (pointer: fine)", false);
|
|
1586
|
+
return {
|
|
1587
|
+
get current() {
|
|
1588
|
+
return query.current;
|
|
1589
|
+
}
|
|
1590
|
+
};
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
// src/utilities/use-reduced-motion.svelte.ts
|
|
1594
|
+
import * as $3 from "svelte/internal/client";
|
|
1595
|
+
import { MediaQuery as MediaQuery2 } from "svelte/reactivity";
|
|
69
1596
|
function useReducedMotion() {
|
|
70
1597
|
if (typeof window === "undefined" || typeof window.matchMedia !== "function") {
|
|
71
1598
|
return { current: false };
|
|
72
1599
|
}
|
|
73
|
-
const query = new
|
|
1600
|
+
const query = new MediaQuery2("(prefers-reduced-motion: reduce)", false);
|
|
74
1601
|
return {
|
|
75
1602
|
get current() {
|
|
76
1603
|
return query.current;
|
|
@@ -78,6 +1605,43 @@ function useReducedMotion() {
|
|
|
78
1605
|
};
|
|
79
1606
|
}
|
|
80
1607
|
|
|
1608
|
+
// src/utilities/use-resize-observer.svelte.ts
|
|
1609
|
+
import * as $4 from "svelte/internal/client";
|
|
1610
|
+
function useResizeObserver(onResize, options = {}) {
|
|
1611
|
+
const { box, enabled = () => true } = options;
|
|
1612
|
+
return (node) => {
|
|
1613
|
+
let observer = null;
|
|
1614
|
+
const disconnectObserver = () => {
|
|
1615
|
+
observer?.disconnect();
|
|
1616
|
+
observer = null;
|
|
1617
|
+
};
|
|
1618
|
+
$4.user_effect(() => {
|
|
1619
|
+
if (!enabled()) {
|
|
1620
|
+
disconnectObserver();
|
|
1621
|
+
return;
|
|
1622
|
+
}
|
|
1623
|
+
const ResizeObserverConstructor = typeof document !== "undefined" && node.ownerDocument === document ? globalThis.ResizeObserver : node.ownerDocument.defaultView?.ResizeObserver;
|
|
1624
|
+
if (!ResizeObserverConstructor) {
|
|
1625
|
+
disconnectObserver();
|
|
1626
|
+
return;
|
|
1627
|
+
}
|
|
1628
|
+
observer = new ResizeObserverConstructor((entries) => {
|
|
1629
|
+
if (!enabled()) {
|
|
1630
|
+
return;
|
|
1631
|
+
}
|
|
1632
|
+
onResize(entries);
|
|
1633
|
+
});
|
|
1634
|
+
observer.observe(node, box !== undefined ? { box } : undefined);
|
|
1635
|
+
return () => {
|
|
1636
|
+
disconnectObserver();
|
|
1637
|
+
};
|
|
1638
|
+
});
|
|
1639
|
+
return () => {
|
|
1640
|
+
disconnectObserver();
|
|
1641
|
+
};
|
|
1642
|
+
};
|
|
1643
|
+
}
|
|
1644
|
+
|
|
81
1645
|
// src/components/carousel/carousel.svelte
|
|
82
1646
|
var rest_excludes = new Set([
|
|
83
1647
|
"$$slots",
|
|
@@ -87,360 +1651,783 @@ var rest_excludes = new Set([
|
|
|
87
1651
|
"activeIndex",
|
|
88
1652
|
"autoplay",
|
|
89
1653
|
"autoplayInterval",
|
|
1654
|
+
"loop",
|
|
90
1655
|
"label",
|
|
91
1656
|
"description",
|
|
92
1657
|
"controlLabels",
|
|
93
|
-
"
|
|
1658
|
+
"indicators",
|
|
1659
|
+
"indicatorLimit",
|
|
1660
|
+
"slidesPerView",
|
|
1661
|
+
"gap",
|
|
1662
|
+
"align",
|
|
1663
|
+
"onSlideChange",
|
|
1664
|
+
"slide",
|
|
1665
|
+
"class",
|
|
1666
|
+
"onkeydown",
|
|
1667
|
+
"onmouseenter",
|
|
1668
|
+
"onmouseleave",
|
|
1669
|
+
"onfocusin",
|
|
1670
|
+
"onfocusout"
|
|
94
1671
|
]);
|
|
95
|
-
var
|
|
96
|
-
var
|
|
97
|
-
var
|
|
98
|
-
var
|
|
99
|
-
var
|
|
100
|
-
var
|
|
101
|
-
var
|
|
102
|
-
var
|
|
103
|
-
var
|
|
104
|
-
var
|
|
1672
|
+
var root_1 = $5.from_html(`<p class="cinder-carousel__sr-only"> </p>`);
|
|
1673
|
+
var root_2 = $5.from_html(`<img class="cinder-carousel__image"/>`);
|
|
1674
|
+
var root_3 = $5.from_html(`<h3 class="cinder-carousel__title"> </h3>`);
|
|
1675
|
+
var root_4 = $5.from_html(`<p class="cinder-carousel__description"> </p>`);
|
|
1676
|
+
var root_5 = $5.from_html(`<a class="cinder-carousel__link"><!> <!> <!> <!></a>`);
|
|
1677
|
+
var root_6 = $5.from_html(`<!> <!> <!> <!>`, 1);
|
|
1678
|
+
var root_7 = $5.from_html(`<article class="cinder-carousel__slide" role="group" aria-roledescription="slide"><!></article>`);
|
|
1679
|
+
var root_8 = $5.from_html(`<button type="button" class="cinder-carousel__control cinder-carousel__control--pause"> </button>`);
|
|
1680
|
+
var root_9 = $5.from_html(`<button type="button" class="cinder-carousel__dot"></button>`);
|
|
1681
|
+
var root_10 = $5.from_html(`<div class="cinder-carousel__dots" role="group"></div>`);
|
|
1682
|
+
var root_11 = $5.from_html(`<div class="cinder-carousel__counter" aria-hidden="true"> </div>`);
|
|
1683
|
+
var root_12 = $5.from_html(`<section><!> <p class="cinder-carousel__sr-only" aria-atomic="true"> </p> <div class="cinder-carousel__viewport" role="group" tabindex="0"><!></div> <div class="cinder-carousel__controls" role="group"><div class="cinder-carousel__nav" role="group"><button type="button" class="cinder-carousel__control"> </button> <button type="button" class="cinder-carousel__control"> </button></div> <!> <!></div></section>`);
|
|
105
1684
|
function Carousel($$anchor, $$props) {
|
|
106
|
-
const descriptionId = $
|
|
107
|
-
$
|
|
1685
|
+
const descriptionId = $5.props_id();
|
|
1686
|
+
$5.push($$props, true);
|
|
108
1687
|
const reducedMotion = useReducedMotion();
|
|
109
|
-
|
|
110
|
-
let
|
|
111
|
-
let
|
|
112
|
-
let
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
1688
|
+
const finePointer = useFinePointer();
|
|
1689
|
+
let activeIndex = $5.prop($$props, "activeIndex", 15, 0), autoplay = $5.prop($$props, "autoplay", 3, false), autoplayInterval = $5.prop($$props, "autoplayInterval", 3, 5000), loop = $5.prop($$props, "loop", 3, false), label = $5.prop($$props, "label", 3, "Carousel"), indicatorLimit = $5.prop($$props, "indicatorLimit", 3, 8), slidesPerView = $5.prop($$props, "slidesPerView", 3, 1), align = $5.prop($$props, "align", 3, "start"), rest = $5.rest_props($$props, rest_excludes);
|
|
1690
|
+
let isHovered = $5.state(false);
|
|
1691
|
+
let hasFocusWithin = $5.state(false);
|
|
1692
|
+
let userPaused = $5.state(false);
|
|
1693
|
+
let motion = $5.state($5.proxy({ kind: "idle" }));
|
|
1694
|
+
function setMotion(next) {
|
|
1695
|
+
const unchanged = $5.get(motion).kind === next.kind && ($5.get(motion).kind !== "programmatic" || next.kind === "programmatic" && $5.get(motion).target === next.target && $5.get(motion).source === next.source) && ($5.get(motion).kind !== "user" || next.kind === "user" && $5.get(motion).source === next.source);
|
|
1696
|
+
if (!unchanged)
|
|
1697
|
+
$5.set(motion, next, true);
|
|
1698
|
+
}
|
|
1699
|
+
let settledIndex = $5.state($5.proxy(untrack(() => $$props.slides.length < 1 ? 0 : Math.max(0, Math.min($$props.slides.length - 1, activeIndex())))));
|
|
1700
|
+
let visualIndex = $5.state($5.proxy(untrack(() => $5.get(settledIndex))));
|
|
1701
|
+
let viewportElement = $5.state(null);
|
|
1702
|
+
const activePointerIds = new SvelteSet;
|
|
1703
|
+
let nativeScrollEndTimer = null;
|
|
1704
|
+
let scrollFrame = null;
|
|
1705
|
+
let cachedViewportInlineSize = 0;
|
|
1706
|
+
const clampedLength = $5.derived(() => $$props.slides.length);
|
|
1707
|
+
const initialSlideId = untrack(() => $$props.slides[Math.max(0, Math.min($$props.slides.length - 1, activeIndex()))]?.id ?? $$props.slides[0]?.id);
|
|
1708
|
+
const initialSlideIndex = $5.derived(() => $$props.slides.length < 1 ? 0 : Math.max(0, $$props.slides.findIndex((slide) => slide.id === initialSlideId)));
|
|
1709
|
+
const currentIndex = $5.derived(() => {
|
|
1710
|
+
if ($5.get(clampedLength) < 1)
|
|
116
1711
|
return 0;
|
|
117
|
-
return Math.max(0, Math.min($
|
|
1712
|
+
return Math.max(0, Math.min($5.get(clampedLength) - 1, activeIndex()));
|
|
118
1713
|
});
|
|
119
|
-
$
|
|
120
|
-
|
|
1714
|
+
let observedActiveIndex = $5.get(currentIndex);
|
|
1715
|
+
const displayIndex = $5.derived(() => $5.get(motion).kind === "user" ? $5.get(visualIndex) : $5.get(currentIndex));
|
|
1716
|
+
const slideIdentity = $5.derived(() => $$props.slides.map((slide) => slide.id).join("\x00"));
|
|
1717
|
+
let previousSlideIdentity = untrack(() => $5.get(slideIdentity));
|
|
1718
|
+
$5.user_effect(() => {
|
|
1719
|
+
if ($5.get(clampedLength) < 1) {
|
|
121
1720
|
if (activeIndex() !== 0)
|
|
122
1721
|
activeIndex(0);
|
|
123
1722
|
return;
|
|
124
1723
|
}
|
|
125
|
-
const normalizedIndex = Math.max(0, Math.min($
|
|
1724
|
+
const normalizedIndex = Math.max(0, Math.min($5.get(clampedLength) - 1, activeIndex()));
|
|
126
1725
|
if (activeIndex() !== normalizedIndex)
|
|
127
1726
|
activeIndex(normalizedIndex);
|
|
128
1727
|
});
|
|
129
|
-
const shouldAutoplay = $
|
|
130
|
-
const
|
|
131
|
-
|
|
1728
|
+
const shouldAutoplay = $5.derived(() => autoplay() && $5.get(clampedLength) > 1 && autoplayInterval() > 0 && !reducedMotion.current && !$5.get(isHovered) && !$5.get(hasFocusWithin) && activePointerIds.size === 0 && $5.get(motion).kind !== "user" && !$5.get(userPaused));
|
|
1729
|
+
const isMultiView = $5.derived(() => slidesPerView() !== 1);
|
|
1730
|
+
const visibleRangeSize = $5.derived(() => typeof slidesPerView() === "number" ? Math.max(1, Math.ceil(slidesPerView())) : 1);
|
|
1731
|
+
const rangeEnd = $5.derived(() => Math.min($5.get(clampedLength) - 1, $5.get(currentIndex) + $5.get(visibleRangeSize) - 1));
|
|
1732
|
+
function isSlideInRange(index) {
|
|
1733
|
+
return isInRangeOfAnchor(index, $5.get(currentIndex));
|
|
1734
|
+
}
|
|
1735
|
+
const effectiveLoop = $5.derived(() => loop() && !$5.get(isMultiView));
|
|
1736
|
+
const resolvedSlideSize = $5.derived(() => {
|
|
1737
|
+
if (!$5.get(isMultiView))
|
|
1738
|
+
return;
|
|
1739
|
+
if (slidesPerView() === "auto")
|
|
1740
|
+
return "auto";
|
|
1741
|
+
return `calc((100% - (${slidesPerView()} - 1) * var(--cinder-carousel-gap, var(--cinder-space-3))) / ${slidesPerView()})`;
|
|
1742
|
+
});
|
|
1743
|
+
$5.user_effect(() => {
|
|
1744
|
+
if (loop() && $5.get(isMultiView)) {
|
|
1745
|
+
devWarn("[cinder/Carousel] `loop` is not supported with `slidesPerView` greater than 1 yet; `loop` is being ignored.");
|
|
1746
|
+
}
|
|
1747
|
+
});
|
|
1748
|
+
const liveAnnouncement = $5.derived(() => {
|
|
1749
|
+
if (!$$props.slides[$5.get(currentIndex)])
|
|
132
1750
|
return "";
|
|
133
|
-
|
|
1751
|
+
if ($5.get(rangeEnd) > $5.get(currentIndex)) {
|
|
1752
|
+
return `Slides ${$5.get(currentIndex) + 1}–${$5.get(rangeEnd) + 1} of ${$5.get(clampedLength)}`;
|
|
1753
|
+
}
|
|
1754
|
+
return `Slide ${$5.get(currentIndex) + 1} of ${$5.get(clampedLength)}: ${$$props.slides[$5.get(currentIndex)].label}`;
|
|
134
1755
|
});
|
|
135
|
-
$
|
|
136
|
-
|
|
1756
|
+
const isAtStart = $5.derived(() => !$5.get(effectiveLoop) && $5.get(currentIndex) === 0);
|
|
1757
|
+
const isAtEnd = $5.derived(() => !$5.get(effectiveLoop) && $5.get(rangeEnd) === $5.get(clampedLength) - 1);
|
|
1758
|
+
const resolvedIndicators = $5.derived(() => $$props.indicators ?? ($5.get(clampedLength) > indicatorLimit() ? "counter" : "dots"));
|
|
1759
|
+
$5.user_effect(() => {
|
|
1760
|
+
if (!$5.get(shouldAutoplay))
|
|
137
1761
|
return;
|
|
138
1762
|
const timer = setInterval(() => {
|
|
139
|
-
if ($
|
|
1763
|
+
if ($5.get(clampedLength) < 2)
|
|
140
1764
|
return;
|
|
141
|
-
|
|
1765
|
+
goNext("autoplay");
|
|
142
1766
|
}, autoplayInterval());
|
|
143
1767
|
return () => clearInterval(timer);
|
|
144
1768
|
});
|
|
145
|
-
function goTo(index) {
|
|
146
|
-
if ($
|
|
1769
|
+
function goTo(index, immediate = false, source = "control") {
|
|
1770
|
+
if ($5.get(clampedLength) < 1)
|
|
147
1771
|
return;
|
|
148
|
-
|
|
1772
|
+
const nextIndex = $5.get(effectiveLoop) ? (index % $5.get(clampedLength) + $5.get(clampedLength)) % $5.get(clampedLength) : Math.max(0, Math.min($5.get(clampedLength) - 1, index));
|
|
1773
|
+
if ($5.get(motion).kind === "programmatic" && $5.get(viewportElement) !== null) {
|
|
1774
|
+
$5.set(settledIndex, nearestVisibleSlideIndex($5.get(viewportElement)), true);
|
|
1775
|
+
}
|
|
1776
|
+
const changed = nextIndex !== activeIndex();
|
|
1777
|
+
activeIndex(nextIndex);
|
|
1778
|
+
scrollToActiveSlide(immediate ? "auto" : undefined, source);
|
|
1779
|
+
if (changed) {
|
|
1780
|
+
const slide = $$props.slides[nextIndex];
|
|
1781
|
+
if (slide)
|
|
1782
|
+
$$props.onSlideChange?.(nextIndex, slide);
|
|
1783
|
+
}
|
|
149
1784
|
}
|
|
150
|
-
function goPrevious() {
|
|
151
|
-
|
|
1785
|
+
function goPrevious(source = "control") {
|
|
1786
|
+
const nextIndex = ($5.get(currentIndex) - 1 + $5.get(clampedLength)) % $5.get(clampedLength);
|
|
1787
|
+
const physicalDistance = Math.abs(initialSlideOrder(nextIndex) - initialSlideOrder($5.get(currentIndex)));
|
|
1788
|
+
goTo($5.get(currentIndex) - 1, $5.get(clampedLength) > 2 && physicalDistance > 1, source);
|
|
152
1789
|
}
|
|
153
|
-
function goNext() {
|
|
154
|
-
|
|
1790
|
+
function goNext(source = "control") {
|
|
1791
|
+
const nextIndex = ($5.get(currentIndex) + 1) % $5.get(clampedLength);
|
|
1792
|
+
const physicalDistance = Math.abs(initialSlideOrder(nextIndex) - initialSlideOrder($5.get(currentIndex)));
|
|
1793
|
+
goTo($5.get(currentIndex) + 1, $5.get(clampedLength) > 2 && physicalDistance > 1, source);
|
|
155
1794
|
}
|
|
156
|
-
function onKeydown(
|
|
157
|
-
|
|
1795
|
+
function onKeydown(event2) {
|
|
1796
|
+
$$props.onkeydown?.(event2);
|
|
1797
|
+
if (event2.defaultPrevented)
|
|
158
1798
|
return;
|
|
159
|
-
if (
|
|
160
|
-
|
|
161
|
-
|
|
1799
|
+
if ($5.get(clampedLength) < 2)
|
|
1800
|
+
return;
|
|
1801
|
+
if (event2.key === "ArrowLeft") {
|
|
1802
|
+
event2.preventDefault();
|
|
1803
|
+
focusCarouselRoot(event2);
|
|
1804
|
+
goPrevious("keyboard");
|
|
162
1805
|
return;
|
|
163
1806
|
}
|
|
164
|
-
if (
|
|
165
|
-
|
|
166
|
-
|
|
1807
|
+
if (event2.key === "ArrowRight") {
|
|
1808
|
+
event2.preventDefault();
|
|
1809
|
+
focusCarouselRoot(event2);
|
|
1810
|
+
goNext("keyboard");
|
|
167
1811
|
return;
|
|
168
1812
|
}
|
|
169
|
-
if (
|
|
170
|
-
|
|
171
|
-
|
|
1813
|
+
if (event2.key === "Home") {
|
|
1814
|
+
event2.preventDefault();
|
|
1815
|
+
focusCarouselRoot(event2);
|
|
1816
|
+
goTo(0, undefined, "keyboard");
|
|
172
1817
|
return;
|
|
173
1818
|
}
|
|
174
|
-
if (
|
|
175
|
-
|
|
176
|
-
|
|
1819
|
+
if (event2.key === "End") {
|
|
1820
|
+
event2.preventDefault();
|
|
1821
|
+
focusCarouselRoot(event2);
|
|
1822
|
+
goTo($5.get(clampedLength) - 1, undefined, "keyboard");
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
function focusCarouselRoot(event2) {
|
|
1826
|
+
const root = event2.currentTarget;
|
|
1827
|
+
const target = event2.target;
|
|
1828
|
+
const activeSlide = $5.get(viewportElement)?.children[$5.get(currentIndex)];
|
|
1829
|
+
if (root instanceof HTMLElement && target !== root && target instanceof Node && root.contains(target) && activeSlide instanceof HTMLElement && activeSlide.contains(target)) {
|
|
1830
|
+
root.focus();
|
|
177
1831
|
}
|
|
178
1832
|
}
|
|
179
|
-
function
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
1833
|
+
function onMouseEnter(event2) {
|
|
1834
|
+
$$props.onmouseenter?.(event2);
|
|
1835
|
+
$5.set(isHovered, true);
|
|
1836
|
+
}
|
|
1837
|
+
function onMouseLeave(event2) {
|
|
1838
|
+
$$props.onmouseleave?.(event2);
|
|
1839
|
+
$5.set(isHovered, false);
|
|
1840
|
+
}
|
|
1841
|
+
function onFocusIn(event2) {
|
|
1842
|
+
$$props.onfocusin?.(event2);
|
|
1843
|
+
$5.set(hasFocusWithin, true);
|
|
1844
|
+
}
|
|
1845
|
+
function onFocusOut(event2) {
|
|
1846
|
+
$$props.onfocusout?.(event2);
|
|
1847
|
+
const nextFocus = event2.relatedTarget;
|
|
1848
|
+
if (nextFocus instanceof Node && event2.currentTarget instanceof HTMLElement) {
|
|
1849
|
+
if (event2.currentTarget.contains(nextFocus))
|
|
183
1850
|
return;
|
|
184
1851
|
}
|
|
185
|
-
$
|
|
1852
|
+
$5.set(hasFocusWithin, false);
|
|
1853
|
+
}
|
|
1854
|
+
function initialSlideOrder(index) {
|
|
1855
|
+
if ($$props.slides.length < 1)
|
|
1856
|
+
return 0;
|
|
1857
|
+
return (index - $5.get(initialSlideIndex) + $$props.slides.length) % $$props.slides.length;
|
|
1858
|
+
}
|
|
1859
|
+
function isInRangeOfAnchor(index, anchor) {
|
|
1860
|
+
const end = Math.min($5.get(clampedLength) - 1, anchor + $5.get(visibleRangeSize) - 1);
|
|
1861
|
+
return index >= anchor && index <= end;
|
|
1862
|
+
}
|
|
1863
|
+
function isInteractionLayoutSlide(index) {
|
|
1864
|
+
if (isInRangeOfAnchor(index, $5.get(currentIndex)) || isInRangeOfAnchor(index, $5.get(settledIndex)))
|
|
1865
|
+
return true;
|
|
1866
|
+
if ($5.get(motion).kind === "idle")
|
|
1867
|
+
return false;
|
|
1868
|
+
const currentOrder = initialSlideOrder($5.get(currentIndex));
|
|
1869
|
+
const settledOrder = initialSlideOrder($5.get(settledIndex));
|
|
1870
|
+
const lowerBound = Math.max(0, Math.min(currentOrder, settledOrder) - 1);
|
|
1871
|
+
const upperBound = Math.min($5.get(clampedLength) - 1, Math.max(currentOrder, settledOrder) + 1);
|
|
1872
|
+
const slideOrder = initialSlideOrder(index);
|
|
1873
|
+
return slideOrder >= lowerBound && slideOrder <= upperBound;
|
|
1874
|
+
}
|
|
1875
|
+
function slideAnchor(rect) {
|
|
1876
|
+
return align() === "center" ? rect.left + rect.width / 2 : rect.left;
|
|
1877
|
+
}
|
|
1878
|
+
function scrollToActiveSlide(behavior, source = "external") {
|
|
1879
|
+
const viewport = $5.get(viewportElement);
|
|
1880
|
+
if (viewport === null)
|
|
1881
|
+
return;
|
|
1882
|
+
const slide = viewport?.children[$5.get(currentIndex)];
|
|
1883
|
+
if (!(slide instanceof HTMLElement))
|
|
1884
|
+
return;
|
|
1885
|
+
const viewportRect = viewport.getBoundingClientRect();
|
|
1886
|
+
const slideRect = slide.getBoundingClientRect();
|
|
1887
|
+
if (viewportRect.width === 0 || slideRect.width === 0)
|
|
1888
|
+
return;
|
|
1889
|
+
if (Math.abs(slideAnchor(slideRect) - slideAnchor(viewportRect)) <= 1) {
|
|
1890
|
+
setMotion({ kind: "idle" });
|
|
1891
|
+
$5.set(settledIndex, $5.get(currentIndex), true);
|
|
1892
|
+
return;
|
|
1893
|
+
}
|
|
1894
|
+
setMotion({ kind: "programmatic", target: $5.get(currentIndex), source });
|
|
1895
|
+
const direction = typeof window !== "undefined" ? window.getComputedStyle(viewport).direction : "ltr";
|
|
1896
|
+
const centeringOffset = align() === "center" && direction !== "rtl" ? (viewportRect.width - slideRect.width) / 2 : 0;
|
|
1897
|
+
const destination = direction === "rtl" ? viewport.scrollLeft + slideRect.left - viewportRect.left : slide.offsetLeft - centeringOffset;
|
|
1898
|
+
if (typeof viewport.scrollTo === "function") {
|
|
1899
|
+
viewport.scrollTo({
|
|
1900
|
+
left: destination,
|
|
1901
|
+
behavior: behavior ?? (reducedMotion.current ? "auto" : "smooth")
|
|
1902
|
+
});
|
|
1903
|
+
} else {
|
|
1904
|
+
viewport.scrollLeft = destination;
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
function nearestVisibleSlideIndex(viewport) {
|
|
1908
|
+
const viewportRect = viewport.getBoundingClientRect();
|
|
1909
|
+
const computed = typeof window !== "undefined" ? window.getComputedStyle(viewport) : null;
|
|
1910
|
+
const scrollPaddingInlineStart = computed ? Number.parseFloat(computed.scrollPaddingInlineStart) : Number.NaN;
|
|
1911
|
+
const referencePoint = align() === "center" ? viewportRect.left + viewportRect.width / 2 : computed?.direction !== "rtl" && Number.isFinite(scrollPaddingInlineStart) ? viewportRect.left + scrollPaddingInlineStart : viewportRect.left;
|
|
1912
|
+
return [...viewport.children].reduce((nearestIndex, slide, index) => {
|
|
1913
|
+
const nearest = viewport.children[nearestIndex];
|
|
1914
|
+
if (!nearest)
|
|
1915
|
+
return index;
|
|
1916
|
+
const slidePoint = slideAnchor(slide.getBoundingClientRect());
|
|
1917
|
+
const nearestPoint = slideAnchor(nearest.getBoundingClientRect());
|
|
1918
|
+
return Math.abs(slidePoint - referencePoint) < Math.abs(nearestPoint - referencePoint) ? index : nearestIndex;
|
|
1919
|
+
}, 0);
|
|
186
1920
|
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
1921
|
+
const observeViewport = useResizeObserver((entries) => {
|
|
1922
|
+
const entry = entries[0];
|
|
1923
|
+
if (!entry)
|
|
1924
|
+
return;
|
|
1925
|
+
const borderBoxSize = Array.isArray(entry.borderBoxSize) ? entry.borderBoxSize[0] : entry.borderBoxSize;
|
|
1926
|
+
const inlineSize = borderBoxSize?.inlineSize ?? entry.contentRect.width;
|
|
1927
|
+
if (inlineSize <= 0) {
|
|
1928
|
+
cachedViewportInlineSize = inlineSize;
|
|
1929
|
+
return;
|
|
1930
|
+
}
|
|
1931
|
+
if (inlineSize === cachedViewportInlineSize)
|
|
1932
|
+
return;
|
|
1933
|
+
cachedViewportInlineSize = inlineSize;
|
|
1934
|
+
if (activePointerIds.size === 0 && $5.get(motion).kind !== "user") {
|
|
1935
|
+
scrollToActiveSlide("auto");
|
|
1936
|
+
}
|
|
1937
|
+
});
|
|
1938
|
+
function getSlideSnapPositions() {
|
|
1939
|
+
const viewport = $5.get(viewportElement);
|
|
1940
|
+
if (viewport === null)
|
|
1941
|
+
return [];
|
|
1942
|
+
return [...viewport.children].map((child2) => {
|
|
1943
|
+
const slide = child2;
|
|
1944
|
+
if (align() !== "center")
|
|
1945
|
+
return slide.offsetLeft;
|
|
1946
|
+
return slide.offsetLeft - (viewport.clientWidth - slide.offsetWidth) / 2;
|
|
1947
|
+
});
|
|
1948
|
+
}
|
|
1949
|
+
const dragScroll = useDragScroll({
|
|
1950
|
+
enabled: () => finePointer.current && !reducedMotion.current,
|
|
1951
|
+
getSnapPositions: getSlideSnapPositions
|
|
1952
|
+
});
|
|
1953
|
+
function removePointerEndListeners() {
|
|
1954
|
+
if (typeof window === "undefined")
|
|
1955
|
+
return;
|
|
1956
|
+
window.removeEventListener("pointerup", finishPointerInteraction);
|
|
1957
|
+
window.removeEventListener("pointercancel", finishPointerInteraction);
|
|
1958
|
+
}
|
|
1959
|
+
function finishPointerInteraction(event2) {
|
|
1960
|
+
if (event2.type === "pointercancel") {
|
|
1961
|
+
if ($5.get(motion).kind !== "user")
|
|
1962
|
+
observedActiveIndex = $5.get(currentIndex);
|
|
1963
|
+
setMotion({ kind: "user", source: "touch" });
|
|
1964
|
+
scheduleFallbackSettle();
|
|
1965
|
+
}
|
|
1966
|
+
activePointerIds.delete(event2.pointerId);
|
|
1967
|
+
if (activePointerIds.size > 0)
|
|
1968
|
+
return;
|
|
1969
|
+
removePointerEndListeners();
|
|
1970
|
+
if ($5.get(motion).kind === "user")
|
|
1971
|
+
scheduleNativeScrollEnd();
|
|
1972
|
+
}
|
|
1973
|
+
function handleSettle() {
|
|
1974
|
+
if (nativeScrollEndTimer !== null) {
|
|
1975
|
+
clearTimeout(nativeScrollEndTimer);
|
|
1976
|
+
nativeScrollEndTimer = null;
|
|
1977
|
+
}
|
|
1978
|
+
if (activePointerIds.size > 0)
|
|
1979
|
+
return;
|
|
1980
|
+
if ($5.get(motion).kind !== "user")
|
|
1981
|
+
return;
|
|
1982
|
+
setMotion({ kind: "idle" });
|
|
1983
|
+
if ($5.get(viewportElement) === null)
|
|
1984
|
+
return;
|
|
1985
|
+
if ($5.get(currentIndex) !== observedActiveIndex) {
|
|
1986
|
+
$5.set(settledIndex, $5.get(currentIndex), true);
|
|
1987
|
+
$5.set(visualIndex, $5.get(currentIndex), true);
|
|
1988
|
+
scrollToActiveSlide("auto");
|
|
1989
|
+
return;
|
|
1990
|
+
}
|
|
1991
|
+
const nextIndex = nearestVisibleSlideIndex($5.get(viewportElement));
|
|
1992
|
+
$5.set(settledIndex, nextIndex, true);
|
|
1993
|
+
$5.set(visualIndex, nextIndex, true);
|
|
1994
|
+
if (nextIndex !== $5.get(currentIndex) && nextIndex >= 0 && nextIndex < $5.get(clampedLength)) {
|
|
1995
|
+
transferFocusFromOutgoingSlide();
|
|
1996
|
+
activeIndex(nextIndex);
|
|
1997
|
+
const slide = $$props.slides[nextIndex];
|
|
1998
|
+
if (slide)
|
|
1999
|
+
$$props.onSlideChange?.(nextIndex, slide);
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
function scheduleNativeScrollEnd() {
|
|
2003
|
+
if ($5.get(viewportElement) !== null && "onscrollend" in $5.get(viewportElement))
|
|
2004
|
+
return;
|
|
2005
|
+
scheduleFallbackSettle();
|
|
2006
|
+
}
|
|
2007
|
+
function scheduleFallbackSettle() {
|
|
2008
|
+
if (nativeScrollEndTimer !== null)
|
|
2009
|
+
clearTimeout(nativeScrollEndTimer);
|
|
2010
|
+
nativeScrollEndTimer = setTimeout(handleSettle, 100);
|
|
2011
|
+
}
|
|
2012
|
+
function onPointerDown(event2) {
|
|
2013
|
+
if (event2.pointerType !== "touch" && event2.pointerType !== "pen")
|
|
2014
|
+
return;
|
|
2015
|
+
if ($5.get(motion).kind === "programmatic")
|
|
2016
|
+
setMotion({ kind: "idle" });
|
|
2017
|
+
activePointerIds.add(event2.pointerId);
|
|
2018
|
+
removePointerEndListeners();
|
|
2019
|
+
window.addEventListener("pointerup", finishPointerInteraction);
|
|
2020
|
+
window.addEventListener("pointercancel", finishPointerInteraction);
|
|
2021
|
+
}
|
|
2022
|
+
function onWheel(event2) {
|
|
2023
|
+
const isHorizontallyDominant = Math.abs(event2.deltaX) > Math.abs(event2.deltaY);
|
|
2024
|
+
const isShiftScroll = event2.shiftKey && Math.abs(event2.deltaY) > 0;
|
|
2025
|
+
if (isHorizontallyDominant || isShiftScroll) {
|
|
2026
|
+
if ($5.get(motion).kind !== "user")
|
|
2027
|
+
observedActiveIndex = $5.get(currentIndex);
|
|
2028
|
+
setMotion({ kind: "user", source: "wheel" });
|
|
2029
|
+
scheduleNativeScrollEnd();
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
function onWindowBlur() {
|
|
2033
|
+
const hadPointers = activePointerIds.size > 0;
|
|
2034
|
+
const wasUserMotion = $5.get(motion).kind === "user";
|
|
2035
|
+
activePointerIds.clear();
|
|
2036
|
+
removePointerEndListeners();
|
|
2037
|
+
if (wasUserMotion)
|
|
2038
|
+
scheduleFallbackSettle();
|
|
2039
|
+
if (hadPointers && $5.get(motion).kind === "programmatic") {
|
|
2040
|
+
setMotion({ kind: "idle" });
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
$5.user_effect(() => {
|
|
2044
|
+
if (typeof window === "undefined")
|
|
2045
|
+
return;
|
|
2046
|
+
window.addEventListener("blur", onWindowBlur);
|
|
2047
|
+
return () => window.removeEventListener("blur", onWindowBlur);
|
|
2048
|
+
});
|
|
2049
|
+
onDestroy(() => {
|
|
2050
|
+
removePointerEndListeners();
|
|
2051
|
+
if (nativeScrollEndTimer !== null)
|
|
2052
|
+
clearTimeout(nativeScrollEndTimer);
|
|
2053
|
+
if (scrollFrame !== null)
|
|
2054
|
+
cancelAnimationFrame(scrollFrame);
|
|
2055
|
+
});
|
|
2056
|
+
function onViewportScroll() {
|
|
2057
|
+
const viewport = $5.get(viewportElement);
|
|
2058
|
+
if ($5.get(clampedLength) < 2 || viewport === null)
|
|
2059
|
+
return;
|
|
2060
|
+
if ($5.get(motion).kind === "programmatic") {
|
|
2061
|
+
if (scrollFrame !== null)
|
|
2062
|
+
return;
|
|
2063
|
+
scrollFrame = requestAnimationFrame(() => {
|
|
2064
|
+
scrollFrame = null;
|
|
2065
|
+
const nextIndex = nearestVisibleSlideIndex(viewport);
|
|
2066
|
+
$5.set(visualIndex, nextIndex, true);
|
|
2067
|
+
if ($5.get(motion).kind === "programmatic" && nextIndex === $5.get(motion).target) {
|
|
2068
|
+
$5.set(settledIndex, nextIndex, true);
|
|
2069
|
+
setMotion({ kind: "idle" });
|
|
2070
|
+
}
|
|
2071
|
+
});
|
|
2072
|
+
return;
|
|
2073
|
+
}
|
|
2074
|
+
if ($5.get(motion).kind !== "user") {
|
|
2075
|
+
const source = viewport.hasAttribute("data-cinder-dragging") ? "drag" : "touch";
|
|
2076
|
+
setMotion({ kind: "user", source });
|
|
2077
|
+
observedActiveIndex = $5.get(currentIndex);
|
|
2078
|
+
}
|
|
2079
|
+
scheduleNativeScrollEnd();
|
|
2080
|
+
if (scrollFrame !== null)
|
|
2081
|
+
return;
|
|
2082
|
+
scrollFrame = requestAnimationFrame(() => {
|
|
2083
|
+
scrollFrame = null;
|
|
2084
|
+
$5.set(visualIndex, nearestVisibleSlideIndex(viewport), true);
|
|
2085
|
+
});
|
|
2086
|
+
}
|
|
2087
|
+
function transferFocusFromOutgoingSlide() {
|
|
2088
|
+
if (typeof document === "undefined")
|
|
2089
|
+
return;
|
|
2090
|
+
const activeElement = document.activeElement;
|
|
2091
|
+
const outgoingSlide = $5.get(viewportElement)?.children[$5.get(currentIndex)];
|
|
2092
|
+
if (activeElement instanceof Node && outgoingSlide instanceof HTMLElement && outgoingSlide.contains(activeElement)) {
|
|
2093
|
+
$5.get(viewportElement)?.focus();
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
$5.user_effect(() => {
|
|
2097
|
+
if ($5.get(viewportElement) === null || $5.get(clampedLength) < 1)
|
|
2098
|
+
return;
|
|
2099
|
+
if ($5.get(motion).kind === "user" || activePointerIds.size > 0)
|
|
2100
|
+
return;
|
|
2101
|
+
const identityChanged = $5.get(slideIdentity) !== previousSlideIdentity;
|
|
2102
|
+
previousSlideIdentity = $5.get(slideIdentity);
|
|
2103
|
+
if (identityChanged) {
|
|
2104
|
+
$5.set(settledIndex, nearestVisibleSlideIndex($5.get(viewportElement)), true);
|
|
2105
|
+
scrollToActiveSlide("auto");
|
|
2106
|
+
return;
|
|
2107
|
+
}
|
|
2108
|
+
scrollToActiveSlide();
|
|
2109
|
+
});
|
|
2110
|
+
$5.user_effect(() => {
|
|
2111
|
+
const viewport = $5.get(viewportElement);
|
|
2112
|
+
if (viewport === null || !("onscrollend" in viewport))
|
|
2113
|
+
return;
|
|
2114
|
+
viewport.addEventListener("scrollend", handleSettle);
|
|
2115
|
+
return () => viewport.removeEventListener("scrollend", handleSettle);
|
|
2116
|
+
});
|
|
2117
|
+
$5.user_effect(() => {
|
|
2118
|
+
const viewport = $5.get(viewportElement);
|
|
2119
|
+
if (viewport === null)
|
|
2120
|
+
return;
|
|
2121
|
+
return observeTextDirection(viewport, () => {
|
|
2122
|
+
if ($5.get(motion).kind === "user" || activePointerIds.size > 0)
|
|
2123
|
+
return;
|
|
2124
|
+
scrollToActiveSlide("auto");
|
|
2125
|
+
});
|
|
2126
|
+
});
|
|
2127
|
+
var section = root_12();
|
|
2128
|
+
$5.attribute_effect(section, ($0) => ({
|
|
192
2129
|
...rest,
|
|
193
2130
|
class: $0,
|
|
194
|
-
role: "region",
|
|
195
2131
|
"aria-roledescription": "carousel",
|
|
196
2132
|
"aria-label": label(),
|
|
197
2133
|
"aria-describedby": $$props.description ? descriptionId : undefined,
|
|
198
2134
|
tabindex: "0",
|
|
2135
|
+
"data-cinder-align": align() === "center" ? "center" : undefined,
|
|
199
2136
|
onkeydown: onKeydown,
|
|
200
|
-
onmouseenter:
|
|
201
|
-
onmouseleave:
|
|
202
|
-
onfocusin:
|
|
203
|
-
onfocusout: onFocusOut
|
|
2137
|
+
onmouseenter: onMouseEnter,
|
|
2138
|
+
onmouseleave: onMouseLeave,
|
|
2139
|
+
onfocusin: onFocusIn,
|
|
2140
|
+
onfocusout: onFocusOut,
|
|
2141
|
+
[$5.STYLE]: {
|
|
2142
|
+
"--cinder-carousel-slide-size": $5.get(resolvedSlideSize),
|
|
2143
|
+
"--cinder-carousel-gap": $5.get(isMultiView) ? $$props.gap : undefined
|
|
2144
|
+
}
|
|
204
2145
|
}), [() => classNames("cinder-carousel", $$props.class)]);
|
|
205
|
-
var node = $
|
|
2146
|
+
var node = $5.child(section);
|
|
206
2147
|
{
|
|
207
2148
|
var consequent = ($$anchor2) => {
|
|
208
|
-
var p =
|
|
209
|
-
var text = $
|
|
210
|
-
$
|
|
211
|
-
$
|
|
212
|
-
$
|
|
213
|
-
$
|
|
2149
|
+
var p = root_1();
|
|
2150
|
+
var text = $5.child(p, true);
|
|
2151
|
+
$5.reset(p);
|
|
2152
|
+
$5.template_effect(() => {
|
|
2153
|
+
$5.set_attribute(p, "id", descriptionId);
|
|
2154
|
+
$5.set_text(text, $$props.description);
|
|
214
2155
|
});
|
|
215
|
-
$
|
|
2156
|
+
$5.append($$anchor2, p);
|
|
216
2157
|
};
|
|
217
|
-
$
|
|
2158
|
+
$5.if(node, ($$render) => {
|
|
218
2159
|
if ($$props.description)
|
|
219
2160
|
$$render(consequent);
|
|
220
2161
|
});
|
|
221
2162
|
}
|
|
222
|
-
var p_1 = $
|
|
223
|
-
var text_1 = $
|
|
224
|
-
$
|
|
225
|
-
var div = $
|
|
226
|
-
|
|
2163
|
+
var p_1 = $5.sibling(node, 2);
|
|
2164
|
+
var text_1 = $5.child(p_1, true);
|
|
2165
|
+
$5.reset(p_1);
|
|
2166
|
+
var div = $5.sibling(p_1, 2);
|
|
2167
|
+
let styles;
|
|
2168
|
+
var node_1 = $5.child(div);
|
|
227
2169
|
{
|
|
228
2170
|
var consequent_11 = ($$anchor2) => {
|
|
229
|
-
var fragment = $
|
|
230
|
-
var node_2 = $
|
|
231
|
-
$
|
|
232
|
-
var
|
|
233
|
-
|
|
2171
|
+
var fragment = $5.comment();
|
|
2172
|
+
var node_2 = $5.first_child(fragment);
|
|
2173
|
+
$5.each(node_2, 19, () => $$props.slides, (slide) => slide.id, ($$anchor3, slide, index) => {
|
|
2174
|
+
var article = root_7();
|
|
2175
|
+
let styles_1;
|
|
2176
|
+
var node_3 = $5.child(article);
|
|
234
2177
|
{
|
|
235
|
-
var
|
|
236
|
-
var
|
|
237
|
-
var node_4 = $
|
|
2178
|
+
var consequent_1 = ($$anchor4) => {
|
|
2179
|
+
var fragment_1 = $5.comment();
|
|
2180
|
+
var node_4 = $5.first_child(fragment_1);
|
|
238
2181
|
{
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
$
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
var node_8 = $2.sibling(node_7, 2);
|
|
285
|
-
{
|
|
286
|
-
var consequent_4 = ($$anchor6) => {
|
|
287
|
-
var p_3 = root_3();
|
|
288
|
-
var text_4 = $2.child(p_3, true);
|
|
289
|
-
$2.reset(p_3);
|
|
290
|
-
$2.template_effect(() => $2.set_text(text_4, $2.get(slide).label));
|
|
291
|
-
$2.append($$anchor6, p_3);
|
|
292
|
-
};
|
|
293
|
-
$2.if(node_8, ($$render) => {
|
|
294
|
-
if (!$2.get(slide).imageSrc && !$2.get(slide).title && !$2.get(slide).description)
|
|
295
|
-
$$render(consequent_4);
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
$2.reset(a);
|
|
299
|
-
$2.template_effect(() => $2.set_attribute(a, "href", $2.get(slide).href));
|
|
300
|
-
$2.append($$anchor5, a);
|
|
2182
|
+
let $0 = $5.derived(() => ({ index: $5.get(index), active: isSlideInRange($5.get(index)) }));
|
|
2183
|
+
$5.snippet(node_4, () => $$props.slide, () => $5.get(slide), () => $5.get($0));
|
|
2184
|
+
}
|
|
2185
|
+
$5.append($$anchor4, fragment_1);
|
|
2186
|
+
};
|
|
2187
|
+
var consequent_6 = ($$anchor4) => {
|
|
2188
|
+
var a = root_5();
|
|
2189
|
+
var node_5 = $5.child(a);
|
|
2190
|
+
{
|
|
2191
|
+
var consequent_2 = ($$anchor5) => {
|
|
2192
|
+
var img = root_2();
|
|
2193
|
+
$5.template_effect(($0) => {
|
|
2194
|
+
$5.set_attribute(img, "src", $5.get(slide).imageSrc);
|
|
2195
|
+
$5.set_attribute(img, "alt", $5.get(slide).imageAlt ?? $5.get(slide).title ?? $5.get(slide).label);
|
|
2196
|
+
$5.set_attribute(img, "loading", $0);
|
|
2197
|
+
}, [() => isSlideInRange($5.get(index)) ? "eager" : "lazy"]);
|
|
2198
|
+
$5.append($$anchor5, img);
|
|
2199
|
+
};
|
|
2200
|
+
$5.if(node_5, ($$render) => {
|
|
2201
|
+
if ($5.get(slide).imageSrc)
|
|
2202
|
+
$$render(consequent_2);
|
|
2203
|
+
});
|
|
2204
|
+
}
|
|
2205
|
+
var node_6 = $5.sibling(node_5, 2);
|
|
2206
|
+
{
|
|
2207
|
+
var consequent_3 = ($$anchor5) => {
|
|
2208
|
+
var h3 = root_3();
|
|
2209
|
+
var text_2 = $5.child(h3, true);
|
|
2210
|
+
$5.reset(h3);
|
|
2211
|
+
$5.template_effect(() => $5.set_text(text_2, $5.get(slide).title));
|
|
2212
|
+
$5.append($$anchor5, h3);
|
|
2213
|
+
};
|
|
2214
|
+
$5.if(node_6, ($$render) => {
|
|
2215
|
+
if ($5.get(slide).title)
|
|
2216
|
+
$$render(consequent_3);
|
|
2217
|
+
});
|
|
2218
|
+
}
|
|
2219
|
+
var node_7 = $5.sibling(node_6, 2);
|
|
2220
|
+
{
|
|
2221
|
+
var consequent_4 = ($$anchor5) => {
|
|
2222
|
+
var p_2 = root_4();
|
|
2223
|
+
var text_3 = $5.child(p_2, true);
|
|
2224
|
+
$5.reset(p_2);
|
|
2225
|
+
$5.template_effect(() => $5.set_text(text_3, $5.get(slide).description));
|
|
2226
|
+
$5.append($$anchor5, p_2);
|
|
301
2227
|
};
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
if ($2.get(slide).imageSrc)
|
|
316
|
-
$$render(consequent_6);
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
var node_10 = $2.sibling(node_9, 2);
|
|
320
|
-
{
|
|
321
|
-
var consequent_7 = ($$anchor6) => {
|
|
322
|
-
var h3_1 = root_2();
|
|
323
|
-
var text_5 = $2.child(h3_1, true);
|
|
324
|
-
$2.reset(h3_1);
|
|
325
|
-
$2.template_effect(() => $2.set_text(text_5, $2.get(slide).title));
|
|
326
|
-
$2.append($$anchor6, h3_1);
|
|
327
|
-
};
|
|
328
|
-
$2.if(node_10, ($$render) => {
|
|
329
|
-
if ($2.get(slide).title)
|
|
330
|
-
$$render(consequent_7);
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
var node_11 = $2.sibling(node_10, 2);
|
|
334
|
-
{
|
|
335
|
-
var consequent_8 = ($$anchor6) => {
|
|
336
|
-
var p_4 = root_3();
|
|
337
|
-
var text_6 = $2.child(p_4, true);
|
|
338
|
-
$2.reset(p_4);
|
|
339
|
-
$2.template_effect(() => $2.set_text(text_6, $2.get(slide).description));
|
|
340
|
-
$2.append($$anchor6, p_4);
|
|
341
|
-
};
|
|
342
|
-
$2.if(node_11, ($$render) => {
|
|
343
|
-
if ($2.get(slide).description)
|
|
344
|
-
$$render(consequent_8);
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
var node_12 = $2.sibling(node_11, 2);
|
|
348
|
-
{
|
|
349
|
-
var consequent_9 = ($$anchor6) => {
|
|
350
|
-
var p_5 = root_3();
|
|
351
|
-
var text_7 = $2.child(p_5, true);
|
|
352
|
-
$2.reset(p_5);
|
|
353
|
-
$2.template_effect(() => $2.set_text(text_7, $2.get(slide).label));
|
|
354
|
-
$2.append($$anchor6, p_5);
|
|
355
|
-
};
|
|
356
|
-
$2.if(node_12, ($$render) => {
|
|
357
|
-
if (!$2.get(slide).imageSrc && !$2.get(slide).title && !$2.get(slide).description)
|
|
358
|
-
$$render(consequent_9);
|
|
359
|
-
});
|
|
360
|
-
}
|
|
361
|
-
$2.append($$anchor5, fragment_2);
|
|
2228
|
+
$5.if(node_7, ($$render) => {
|
|
2229
|
+
if ($5.get(slide).description)
|
|
2230
|
+
$$render(consequent_4);
|
|
2231
|
+
});
|
|
2232
|
+
}
|
|
2233
|
+
var node_8 = $5.sibling(node_7, 2);
|
|
2234
|
+
{
|
|
2235
|
+
var consequent_5 = ($$anchor5) => {
|
|
2236
|
+
var p_3 = root_4();
|
|
2237
|
+
var text_4 = $5.child(p_3, true);
|
|
2238
|
+
$5.reset(p_3);
|
|
2239
|
+
$5.template_effect(() => $5.set_text(text_4, $5.get(slide).label));
|
|
2240
|
+
$5.append($$anchor5, p_3);
|
|
362
2241
|
};
|
|
363
|
-
$
|
|
364
|
-
if (
|
|
2242
|
+
$5.if(node_8, ($$render) => {
|
|
2243
|
+
if (!$5.get(slide).imageSrc && !$5.get(slide).title && !$5.get(slide).description)
|
|
365
2244
|
$$render(consequent_5);
|
|
366
|
-
else
|
|
367
|
-
$$render(alternate, -1);
|
|
368
2245
|
});
|
|
369
2246
|
}
|
|
370
|
-
$
|
|
371
|
-
$
|
|
372
|
-
$
|
|
2247
|
+
$5.reset(a);
|
|
2248
|
+
$5.template_effect(() => $5.set_attribute(a, "href", $5.get(slide).href));
|
|
2249
|
+
$5.append($$anchor4, a);
|
|
373
2250
|
};
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
2251
|
+
var alternate = ($$anchor4) => {
|
|
2252
|
+
var fragment_2 = root_6();
|
|
2253
|
+
var node_9 = $5.first_child(fragment_2);
|
|
2254
|
+
{
|
|
2255
|
+
var consequent_7 = ($$anchor5) => {
|
|
2256
|
+
var img_1 = root_2();
|
|
2257
|
+
$5.template_effect(($0) => {
|
|
2258
|
+
$5.set_attribute(img_1, "src", $5.get(slide).imageSrc);
|
|
2259
|
+
$5.set_attribute(img_1, "alt", $5.get(slide).imageAlt ?? $5.get(slide).title ?? $5.get(slide).label);
|
|
2260
|
+
$5.set_attribute(img_1, "loading", $0);
|
|
2261
|
+
}, [() => isSlideInRange($5.get(index)) ? "eager" : "lazy"]);
|
|
2262
|
+
$5.append($$anchor5, img_1);
|
|
2263
|
+
};
|
|
2264
|
+
$5.if(node_9, ($$render) => {
|
|
2265
|
+
if ($5.get(slide).imageSrc)
|
|
2266
|
+
$$render(consequent_7);
|
|
2267
|
+
});
|
|
2268
|
+
}
|
|
2269
|
+
var node_10 = $5.sibling(node_9, 2);
|
|
2270
|
+
{
|
|
2271
|
+
var consequent_8 = ($$anchor5) => {
|
|
2272
|
+
var h3_1 = root_3();
|
|
2273
|
+
var text_5 = $5.child(h3_1, true);
|
|
2274
|
+
$5.reset(h3_1);
|
|
2275
|
+
$5.template_effect(() => $5.set_text(text_5, $5.get(slide).title));
|
|
2276
|
+
$5.append($$anchor5, h3_1);
|
|
2277
|
+
};
|
|
2278
|
+
$5.if(node_10, ($$render) => {
|
|
2279
|
+
if ($5.get(slide).title)
|
|
2280
|
+
$$render(consequent_8);
|
|
2281
|
+
});
|
|
2282
|
+
}
|
|
2283
|
+
var node_11 = $5.sibling(node_10, 2);
|
|
2284
|
+
{
|
|
2285
|
+
var consequent_9 = ($$anchor5) => {
|
|
2286
|
+
var p_4 = root_4();
|
|
2287
|
+
var text_6 = $5.child(p_4, true);
|
|
2288
|
+
$5.reset(p_4);
|
|
2289
|
+
$5.template_effect(() => $5.set_text(text_6, $5.get(slide).description));
|
|
2290
|
+
$5.append($$anchor5, p_4);
|
|
2291
|
+
};
|
|
2292
|
+
$5.if(node_11, ($$render) => {
|
|
2293
|
+
if ($5.get(slide).description)
|
|
2294
|
+
$$render(consequent_9);
|
|
2295
|
+
});
|
|
2296
|
+
}
|
|
2297
|
+
var node_12 = $5.sibling(node_11, 2);
|
|
2298
|
+
{
|
|
2299
|
+
var consequent_10 = ($$anchor5) => {
|
|
2300
|
+
var p_5 = root_4();
|
|
2301
|
+
var text_7 = $5.child(p_5, true);
|
|
2302
|
+
$5.reset(p_5);
|
|
2303
|
+
$5.template_effect(() => $5.set_text(text_7, $5.get(slide).label));
|
|
2304
|
+
$5.append($$anchor5, p_5);
|
|
2305
|
+
};
|
|
2306
|
+
$5.if(node_12, ($$render) => {
|
|
2307
|
+
if (!$5.get(slide).imageSrc && !$5.get(slide).title && !$5.get(slide).description)
|
|
2308
|
+
$$render(consequent_10);
|
|
2309
|
+
});
|
|
2310
|
+
}
|
|
2311
|
+
$5.append($$anchor4, fragment_2);
|
|
2312
|
+
};
|
|
2313
|
+
$5.if(node_3, ($$render) => {
|
|
2314
|
+
if ($$props.slide)
|
|
2315
|
+
$$render(consequent_1);
|
|
2316
|
+
else if ($5.get(slide).href)
|
|
2317
|
+
$$render(consequent_6, 1);
|
|
2318
|
+
else
|
|
2319
|
+
$$render(alternate, -1);
|
|
377
2320
|
});
|
|
378
2321
|
}
|
|
379
|
-
$
|
|
2322
|
+
$5.reset(article);
|
|
2323
|
+
$5.template_effect(($0, $1, $22, $32) => {
|
|
2324
|
+
$5.set_attribute(article, "aria-label", `${$5.get(index) + 1} of ${$$props.slides.length}: ${$5.get(slide).label}`);
|
|
2325
|
+
$5.set_attribute(article, "aria-hidden", $0);
|
|
2326
|
+
article.inert = $1;
|
|
2327
|
+
$5.set_attribute(article, "data-cinder-collapsed", $22);
|
|
2328
|
+
styles_1 = $5.set_style(article, "", styles_1, $32);
|
|
2329
|
+
}, [
|
|
2330
|
+
() => isSlideInRange($5.get(index)) ? undefined : "true",
|
|
2331
|
+
() => !isSlideInRange($5.get(index)),
|
|
2332
|
+
() => !isInteractionLayoutSlide($5.get(index)) ? "" : undefined,
|
|
2333
|
+
() => ({ order: initialSlideOrder($5.get(index)) })
|
|
2334
|
+
]);
|
|
2335
|
+
$5.append($$anchor3, article);
|
|
380
2336
|
});
|
|
381
|
-
$
|
|
2337
|
+
$5.append($$anchor2, fragment);
|
|
382
2338
|
};
|
|
383
|
-
$
|
|
2339
|
+
$5.if(node_1, ($$render) => {
|
|
384
2340
|
if ($$props.slides.length > 0)
|
|
385
2341
|
$$render(consequent_11);
|
|
386
2342
|
});
|
|
387
2343
|
}
|
|
388
|
-
$
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
var
|
|
393
|
-
$
|
|
394
|
-
var
|
|
395
|
-
var
|
|
396
|
-
$
|
|
397
|
-
$
|
|
398
|
-
var
|
|
2344
|
+
$5.reset(div);
|
|
2345
|
+
$5.bind_this(div, ($$value) => $5.set(viewportElement, $$value), () => $5.get(viewportElement));
|
|
2346
|
+
$5.attach(div, () => observeViewport);
|
|
2347
|
+
$5.attach(div, () => dragScroll);
|
|
2348
|
+
var div_1 = $5.sibling(div, 2);
|
|
2349
|
+
var div_2 = $5.child(div_1);
|
|
2350
|
+
var button = $5.child(div_2);
|
|
2351
|
+
var text_8 = $5.child(button, true);
|
|
2352
|
+
$5.reset(button);
|
|
2353
|
+
var button_1 = $5.sibling(button, 2);
|
|
2354
|
+
var text_9 = $5.child(button_1, true);
|
|
2355
|
+
$5.reset(button_1);
|
|
2356
|
+
$5.reset(div_2);
|
|
2357
|
+
var node_13 = $5.sibling(div_2, 2);
|
|
399
2358
|
{
|
|
400
2359
|
var consequent_12 = ($$anchor2) => {
|
|
401
|
-
var button_2 =
|
|
402
|
-
var text_10 = $
|
|
403
|
-
$
|
|
404
|
-
$
|
|
405
|
-
$
|
|
406
|
-
$
|
|
2360
|
+
var button_2 = root_8();
|
|
2361
|
+
var text_10 = $5.child(button_2, true);
|
|
2362
|
+
$5.reset(button_2);
|
|
2363
|
+
$5.template_effect(() => {
|
|
2364
|
+
$5.set_attribute(button_2, "aria-pressed", $5.get(userPaused));
|
|
2365
|
+
$5.set_text(text_10, $5.get(userPaused) ? $$props.controlLabels?.play ?? "Play" : $$props.controlLabels?.pause ?? "Pause");
|
|
407
2366
|
});
|
|
408
|
-
$
|
|
409
|
-
$
|
|
2367
|
+
$5.delegated("click", button_2, () => $5.set(userPaused, !$5.get(userPaused)));
|
|
2368
|
+
$5.append($$anchor2, button_2);
|
|
410
2369
|
};
|
|
411
|
-
$
|
|
2370
|
+
$5.if(node_13, ($$render) => {
|
|
412
2371
|
if (autoplay() && !reducedMotion.current)
|
|
413
2372
|
$$render(consequent_12);
|
|
414
2373
|
});
|
|
415
2374
|
}
|
|
416
|
-
var
|
|
417
|
-
|
|
418
|
-
var
|
|
419
|
-
|
|
420
|
-
$
|
|
421
|
-
|
|
2375
|
+
var node_14 = $5.sibling(node_13, 2);
|
|
2376
|
+
{
|
|
2377
|
+
var consequent_13 = ($$anchor2) => {
|
|
2378
|
+
var div_3 = root_10();
|
|
2379
|
+
$5.each(div_3, 23, () => $$props.slides, (slide) => slide.id, ($$anchor3, slide, index) => {
|
|
2380
|
+
var button_3 = root_9();
|
|
2381
|
+
$5.template_effect(() => {
|
|
2382
|
+
$5.set_attribute(button_3, "aria-label", `Go to ${$5.get(slide).label}`);
|
|
2383
|
+
$5.set_attribute(button_3, "aria-current", $5.get(index) === $5.get(displayIndex) ? "true" : undefined);
|
|
2384
|
+
});
|
|
2385
|
+
$5.delegated("click", button_3, () => goTo($5.get(index), undefined, "control"));
|
|
2386
|
+
$5.append($$anchor3, button_3);
|
|
2387
|
+
});
|
|
2388
|
+
$5.reset(div_3);
|
|
2389
|
+
$5.template_effect(() => $5.set_attribute(div_3, "aria-label", $$props.controlLabels?.picker ?? "Choose slide"));
|
|
2390
|
+
$5.append($$anchor2, div_3);
|
|
2391
|
+
};
|
|
2392
|
+
var consequent_14 = ($$anchor2) => {
|
|
2393
|
+
var div_4 = root_11();
|
|
2394
|
+
var text_11 = $5.child(div_4);
|
|
2395
|
+
$5.reset(div_4);
|
|
2396
|
+
$5.template_effect(() => $5.set_text(text_11, `${$5.get(displayIndex) + 1} / ${$5.get(clampedLength) ?? ""}`));
|
|
2397
|
+
$5.append($$anchor2, div_4);
|
|
2398
|
+
};
|
|
2399
|
+
$5.if(node_14, ($$render) => {
|
|
2400
|
+
if ($5.get(resolvedIndicators) === "dots")
|
|
2401
|
+
$$render(consequent_13);
|
|
2402
|
+
else if ($5.get(resolvedIndicators) === "counter")
|
|
2403
|
+
$$render(consequent_14, 1);
|
|
422
2404
|
});
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
$
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
$
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
$
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
$
|
|
2405
|
+
}
|
|
2406
|
+
$5.reset(div_1);
|
|
2407
|
+
$5.reset(section);
|
|
2408
|
+
$5.template_effect(() => {
|
|
2409
|
+
$5.set_attribute(p_1, "aria-live", $5.get(shouldAutoplay) || $5.get(motion).kind === "programmatic" && $5.get(motion).source === "autoplay" ? "off" : "polite");
|
|
2410
|
+
$5.set_text(text_1, $5.get(liveAnnouncement));
|
|
2411
|
+
$5.set_attribute(div, "aria-label", `${label()} slides`);
|
|
2412
|
+
styles = $5.set_style(div, "", styles, {
|
|
2413
|
+
gap: $5.get(isMultiView) ? "var(--cinder-carousel-gap, var(--cinder-space-3))" : undefined
|
|
2414
|
+
});
|
|
2415
|
+
$5.set_attribute(div_1, "aria-label", `${label()} controls`);
|
|
2416
|
+
$5.set_attribute(div_2, "aria-label", `${label()} navigation`);
|
|
2417
|
+
button.disabled = $$props.slides.length < 2 || $5.get(isAtStart);
|
|
2418
|
+
$5.set_text(text_8, $$props.controlLabels?.previous ?? "Previous");
|
|
2419
|
+
button_1.disabled = $$props.slides.length < 2 || $5.get(isAtEnd);
|
|
2420
|
+
$5.set_text(text_9, $$props.controlLabels?.next ?? "Next");
|
|
437
2421
|
});
|
|
438
|
-
$
|
|
439
|
-
$
|
|
440
|
-
$
|
|
441
|
-
$
|
|
2422
|
+
$5.event("scroll", div, onViewportScroll);
|
|
2423
|
+
$5.delegated("pointerdown", div, onPointerDown);
|
|
2424
|
+
$5.event("wheel", div, onWheel);
|
|
2425
|
+
$5.delegated("click", button, () => goPrevious("control"));
|
|
2426
|
+
$5.delegated("click", button_1, () => goNext("control"));
|
|
2427
|
+
$5.append($$anchor, section);
|
|
2428
|
+
$5.pop();
|
|
442
2429
|
}
|
|
443
|
-
$
|
|
2430
|
+
$5.delegate(["pointerdown", "click"]);
|
|
444
2431
|
|
|
445
2432
|
// src/components/carousel/index.ts
|
|
446
2433
|
var carousel_default = Carousel;
|
|
@@ -449,4 +2436,4 @@ export {
|
|
|
449
2436
|
Carousel
|
|
450
2437
|
};
|
|
451
2438
|
|
|
452
|
-
//# debugId=
|
|
2439
|
+
//# debugId=785DC8738586284D64756E2164756E21
|