histoire 0.8.4 → 0.9.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/client.d.ts +1 -3
- package/client.js +1 -0
- package/dist/node/alias.d.ts +0 -1
- package/dist/node/alias.js +5 -6
- package/dist/node/build.js +1 -1
- package/dist/node/builtin-plugins/tailwind-tokens.js +19 -12
- package/dist/node/collect/run.js +4 -6
- package/dist/node/config.d.ts +9 -0
- package/dist/node/config.js +14 -0
- package/dist/node/context.d.ts +3 -7
- package/dist/node/context.js +2 -0
- package/dist/node/plugin.d.ts +5 -1
- package/dist/node/stories.js +15 -1
- package/dist/node/vite.d.ts +4 -0
- package/dist/node/vite.js +43 -8
- package/package.json +11 -21
- package/src/node/alias.ts +5 -6
- package/src/node/build.ts +1 -1
- package/src/node/builtin-plugins/tailwind-tokens.ts +19 -12
- package/src/node/collect/run.ts +4 -8
- package/src/node/config.ts +24 -0
- package/src/node/context.ts +7 -2
- package/src/node/plugin.ts +5 -1
- package/src/node/stories.ts +18 -1
- package/src/node/vite.ts +52 -8
- package/tsconfig.json +2 -11
- package/dist/bundled/App.js +0 -166
- package/dist/bundled/_virtual/plugin-vue_export-helper.js +0 -8
- package/dist/bundled/api.js +0 -1
- package/dist/bundled/assets/histoire-text-dark.js +0 -2
- package/dist/bundled/assets/histoire-text.js +0 -2
- package/dist/bundled/assets/histoire.js +0 -2
- package/dist/bundled/components/HomeView.js +0 -24
- package/dist/bundled/components/app/AppHeader.js +0 -67
- package/dist/bundled/components/app/AppLogo.js +0 -26
- package/dist/bundled/components/app/Breadcrumb.js +0 -95
- package/dist/bundled/components/app/Breadcrumb.vue_vue_type_style_index_0_scoped_true_lang.js +0 -2
- package/dist/bundled/components/app/InitialLoading.js +0 -48
- package/dist/bundled/components/app/MobileOverlay.js +0 -41
- package/dist/bundled/components/base/BaseCheckbox.js +0 -75
- package/dist/bundled/components/base/BaseEmpty.js +0 -13
- package/dist/bundled/components/base/BaseEmpty.vue_vue_type_style_index_0_scoped_true_lang.js +0 -2
- package/dist/bundled/components/base/BaseListItemLink.js +0 -50
- package/dist/bundled/components/base/BaseOverflowMenu.js +0 -97
- package/dist/bundled/components/base/BaseOverflowTab.js +0 -45
- package/dist/bundled/components/base/BaseSelect.js +0 -88
- package/dist/bundled/components/base/BaseSplitPane.js +0 -184
- package/dist/bundled/components/base/BaseSplitPane.vue_vue_type_style_index_0_scoped_true_lang.js +0 -2
- package/dist/bundled/components/base/BaseTab.js +0 -45
- package/dist/bundled/components/misc/CheckerboardPattern.js +0 -41
- package/dist/bundled/components/misc/HatchedPattern.js +0 -11
- package/dist/bundled/components/misc/HatchedPattern.vue_vue_type_style_index_0_scoped_true_lang.js +0 -2
- package/dist/bundled/components/panel/ControlsComponentPropItem.js +0 -98
- package/dist/bundled/components/panel/ControlsComponentProps.js +0 -42
- package/dist/bundled/components/panel/PaneTabs.js +0 -131
- package/dist/bundled/components/panel/StatePresets.js +0 -184
- package/dist/bundled/components/panel/StoryControls.js +0 -66
- package/dist/bundled/components/panel/StoryDocs.js +0 -58
- package/dist/bundled/components/panel/StoryEvent.js +0 -56
- package/dist/bundled/components/panel/StoryEvents.js +0 -49
- package/dist/bundled/components/panel/StorySidePanel.js +0 -71
- package/dist/bundled/components/panel/StorySourceCode.js +0 -110
- package/dist/bundled/components/panel/StorySourceCode.vue_vue_type_style_index_0_scoped_true_lang.js +0 -2
- package/dist/bundled/components/search/SearchItem.js +0 -113
- package/dist/bundled/components/search/SearchItem.vue_vue_type_style_index_0_scoped_true_lang.js +0 -2
- package/dist/bundled/components/search/SearchLoading.js +0 -19
- package/dist/bundled/components/search/SearchModal.js +0 -46
- package/dist/bundled/components/search/SearchPane.js +0 -263
- package/dist/bundled/components/search/search-docs-data.js +0 -7
- package/dist/bundled/components/search/search-title-data.js +0 -7
- package/dist/bundled/components/story/StoryResponsivePreview.js +0 -180
- package/dist/bundled/components/story/StoryResponsivePreview.vue_vue_type_style_index_0_scoped_true_lang.js +0 -2
- package/dist/bundled/components/story/StoryVariantGrid.js +0 -94
- package/dist/bundled/components/story/StoryVariantGridItem.js +0 -106
- package/dist/bundled/components/story/StoryVariantGridItem.vue_vue_type_style_index_0_scoped_true_lang.js +0 -2
- package/dist/bundled/components/story/StoryVariantListItem.js +0 -58
- package/dist/bundled/components/story/StoryVariantListItem.vue_vue_type_style_index_0_scoped_true_lang.js +0 -2
- package/dist/bundled/components/story/StoryVariantSingle.js +0 -115
- package/dist/bundled/components/story/StoryVariantSingle.vue_vue_type_style_index_0_scoped_true_lang.js +0 -2
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.js +0 -43
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.js +0 -119
- package/dist/bundled/components/story/StoryVariantSingleView.js +0 -49
- package/dist/bundled/components/story/StoryView.js +0 -107
- package/dist/bundled/components/story/StoryViewer.js +0 -57
- package/dist/bundled/components/story/StoryViewer.vue_vue_type_style_index_0_scoped_true_lang.js +0 -2
- package/dist/bundled/components/toolbar/StoryVariantBackground.js +0 -85
- package/dist/bundled/components/toolbar/StoryVariantBackground.vue_vue_type_style_index_0_scoped_true_lang.js +0 -2
- package/dist/bundled/components/toolbar/StoryVariantNewTab.js +0 -33
- package/dist/bundled/components/toolbar/StoryVariantResponsiveSize.js +0 -129
- package/dist/bundled/components/toolbar/StoryVariantTitle.js +0 -24
- package/dist/bundled/components/tree/StoryGroup.js +0 -74
- package/dist/bundled/components/tree/StoryList.js +0 -37
- package/dist/bundled/components/tree/StoryListFolder.js +0 -89
- package/dist/bundled/components/tree/StoryListFolder.vue_vue_type_style_index_0_scoped_true_lang.js +0 -2
- package/dist/bundled/components/tree/StoryListItem.js +0 -72
- package/dist/bundled/components/tree/StoryListItem.vue_vue_type_style_index_0_scoped_true_lang.js +0 -2
- package/dist/bundled/index.js +0 -29
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/common.js +0 -40
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/en.js +0 -5
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/advanced.js +0 -11
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/balance.js +0 -26
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/simple.js +0 -10
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang.js +0 -50
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/type.js +0 -8
- package/dist/bundled/router.js +0 -28
- package/dist/bundled/sandbox.js +0 -87
- package/dist/bundled/stores/events.js +0 -29
- package/dist/bundled/stores/folder.js +0 -46
- package/dist/bundled/stores/preview-settings.js +0 -15
- package/dist/bundled/stores/story.js +0 -43
- package/dist/bundled/style.css +0 -102
- package/dist/bundled/util/config.js +0 -4
- package/dist/bundled/util/const.js +0 -5
- package/dist/bundled/util/dark.js +0 -4
- package/dist/bundled/util/env.js +0 -2
- package/dist/bundled/util/events.js +0 -32
- package/dist/bundled/util/keyboard.js +0 -84
- package/dist/bundled/util/mapping.js +0 -94
- package/dist/bundled/util/preview-settings.js +0 -6
- package/dist/bundled/util/responsive.js +0 -3
- package/dist/bundled/util/sandbox.js +0 -8
- package/dist/bundled/util/scroll.js +0 -28
- package/dist/bundled/util/state.js +0 -31
- package/dist/bundled/util/tooltip.js +0 -12
- package/dist/bundled/util/variant.js +0 -35
- package/dist/client/app/App.vue +0 -162
- package/dist/client/app/api.d.ts +0 -1
- package/dist/client/app/api.js +0 -1
- package/dist/client/app/assets/histoire-text-dark.svg +0 -89
- package/dist/client/app/assets/histoire-text.svg +0 -89
- package/dist/client/app/assets/histoire.svg +0 -51
- package/dist/client/app/components/HomeView.vue +0 -17
- package/dist/client/app/components/app/AppHeader.vue +0 -64
- package/dist/client/app/components/app/AppLogo.vue +0 -24
- package/dist/client/app/components/app/Breadcrumb.vue +0 -98
- package/dist/client/app/components/app/InitialLoading.vue +0 -44
- package/dist/client/app/components/app/MobileOverlay.vue +0 -33
- package/dist/client/app/components/base/BaseCheckbox.vue +0 -77
- package/dist/client/app/components/base/BaseCopyIcon.vue +0 -34
- package/dist/client/app/components/base/BaseEmpty.vue +0 -21
- package/dist/client/app/components/base/BaseListItemLink.vue +0 -55
- package/dist/client/app/components/base/BaseOverflowMenu.vue +0 -119
- package/dist/client/app/components/base/BaseOverflowTab.vue +0 -46
- package/dist/client/app/components/base/BaseSelect.vue +0 -72
- package/dist/client/app/components/base/BaseSplitPane.vue +0 -240
- package/dist/client/app/components/base/BaseTab.vue +0 -46
- package/dist/client/app/components/misc/CheckerboardPattern.vue +0 -32
- package/dist/client/app/components/misc/HatchedPattern.vue +0 -13
- package/dist/client/app/components/panel/ControlsComponentPropItem.vue +0 -103
- package/dist/client/app/components/panel/ControlsComponentProps.vue +0 -34
- package/dist/client/app/components/panel/PaneTabs.vue +0 -89
- package/dist/client/app/components/panel/StatePresets.vue +0 -196
- package/dist/client/app/components/panel/StoryControls.vue +0 -68
- package/dist/client/app/components/panel/StoryDocs.vue +0 -61
- package/dist/client/app/components/panel/StoryEvent.vue +0 -54
- package/dist/client/app/components/panel/StoryEvents.vue +0 -45
- package/dist/client/app/components/panel/StorySidePanel.vue +0 -69
- package/dist/client/app/components/panel/StorySourceCode.vue +0 -116
- package/dist/client/app/components/search/SearchItem.vue +0 -110
- package/dist/client/app/components/search/SearchLoading.vue +0 -16
- package/dist/client/app/components/search/SearchModal.vue +0 -43
- package/dist/client/app/components/search/SearchPane.vue +0 -293
- package/dist/client/app/components/search/search-docs-data.d.ts +0 -3
- package/dist/client/app/components/search/search-docs-data.js +0 -7
- package/dist/client/app/components/search/search-title-data.d.ts +0 -3
- package/dist/client/app/components/search/search-title-data.js +0 -7
- package/dist/client/app/components/search/types.d.ts +0 -7
- package/dist/client/app/components/search/types.js +0 -1
- package/dist/client/app/components/story/StoryResponsivePreview.vue +0 -204
- package/dist/client/app/components/story/StoryVariantGrid.vue +0 -112
- package/dist/client/app/components/story/StoryVariantGridItem.vue +0 -110
- package/dist/client/app/components/story/StoryVariantListItem.vue +0 -50
- package/dist/client/app/components/story/StoryVariantSingle.vue +0 -105
- package/dist/client/app/components/story/StoryVariantSinglePreviewNative.vue +0 -42
- package/dist/client/app/components/story/StoryVariantSinglePreviewRemote.vue +0 -139
- package/dist/client/app/components/story/StoryVariantSingleView.vue +0 -52
- package/dist/client/app/components/story/StoryView.vue +0 -96
- package/dist/client/app/components/story/StoryViewer.vue +0 -53
- package/dist/client/app/components/toolbar/StoryVariantBackground.vue +0 -67
- package/dist/client/app/components/toolbar/StoryVariantNewTab.vue +0 -29
- package/dist/client/app/components/toolbar/StoryVariantResponsiveSize.vue +0 -82
- package/dist/client/app/components/toolbar/StoryVariantTitle.vue +0 -21
- package/dist/client/app/components/tree/StoryGroup.vue +0 -75
- package/dist/client/app/components/tree/StoryList.vue +0 -35
- package/dist/client/app/components/tree/StoryListFolder.vue +0 -89
- package/dist/client/app/components/tree/StoryListItem.vue +0 -71
- package/dist/client/app/index.d.ts +0 -2
- package/dist/client/app/index.js +0 -28
- package/dist/client/app/router.d.ts +0 -2
- package/dist/client/app/router.js +0 -26
- package/dist/client/app/sandbox.d.ts +0 -1
- package/dist/client/app/sandbox.js +0 -87
- package/dist/client/app/stores/events.d.ts +0 -29
- package/dist/client/app/stores/events.js +0 -25
- package/dist/client/app/stores/folder.d.ts +0 -10
- package/dist/client/app/stores/folder.js +0 -47
- package/dist/client/app/stores/preview-settings.d.ts +0 -8
- package/dist/client/app/stores/preview-settings.js +0 -14
- package/dist/client/app/stores/story.d.ts +0 -362
- package/dist/client/app/stores/story.js +0 -39
- package/dist/client/app/style/floating-vue.pcss +0 -34
- package/dist/client/app/style/main.pcss +0 -86
- package/dist/client/app/style/sandbox.css +0 -19
- package/dist/client/app/style/transitions.pcss +0 -51
- package/dist/client/app/types.d.ts +0 -34
- package/dist/client/app/types.js +0 -1
- package/dist/client/app/util/config.d.ts +0 -3
- package/dist/client/app/util/config.js +0 -4
- package/dist/client/app/util/const.d.ts +0 -4
- package/dist/client/app/util/const.js +0 -4
- package/dist/client/app/util/dark.d.ts +0 -2
- package/dist/client/app/util/dark.js +0 -3
- package/dist/client/app/util/env.d.ts +0 -1
- package/dist/client/app/util/env.js +0 -1
- package/dist/client/app/util/events.d.ts +0 -1
- package/dist/client/app/util/events.js +0 -31
- package/dist/client/app/util/keyboard.d.ts +0 -8
- package/dist/client/app/util/keyboard.js +0 -82
- package/dist/client/app/util/mapping.d.ts +0 -3
- package/dist/client/app/util/mapping.js +0 -85
- package/dist/client/app/util/preview-settings.d.ts +0 -9
- package/dist/client/app/util/preview-settings.js +0 -5
- package/dist/client/app/util/responsive.d.ts +0 -1
- package/dist/client/app/util/responsive.js +0 -2
- package/dist/client/app/util/sandbox.d.ts +0 -2
- package/dist/client/app/util/sandbox.js +0 -7
- package/dist/client/app/util/scroll.d.ts +0 -4
- package/dist/client/app/util/scroll.js +0 -27
- package/dist/client/app/util/state.d.ts +0 -1
- package/dist/client/app/util/state.js +0 -31
- package/dist/client/app/util/tooltip.d.ts +0 -6
- package/dist/client/app/util/tooltip.js +0 -11
- package/dist/client/app/util/variant.d.ts +0 -18
- package/dist/client/app/util/variant.js +0 -17
- package/dist/client/bundle-index.js +0 -5
- package/dist/client/bundle-main.js +0 -5
- package/dist/client/bundle-sandbox.js +0 -2
- package/dist/client/index.d.ts +0 -9
- package/dist/client/index.js +0 -4
- package/dist/style.css +0 -2382
- package/postcss.config.cjs +0 -8
- package/scripts/copy.mjs +0 -12
- package/scripts/watchAndCopy.mjs +0 -15
- package/src/client/app/App.vue +0 -162
- package/src/client/app/api.ts +0 -1
- package/src/client/app/assets/histoire-text-dark.svg +0 -89
- package/src/client/app/assets/histoire-text.svg +0 -89
- package/src/client/app/assets/histoire.svg +0 -51
- package/src/client/app/components/HomeView.vue +0 -17
- package/src/client/app/components/app/AppHeader.vue +0 -64
- package/src/client/app/components/app/AppLogo.vue +0 -24
- package/src/client/app/components/app/Breadcrumb.vue +0 -98
- package/src/client/app/components/app/InitialLoading.vue +0 -44
- package/src/client/app/components/app/MobileOverlay.vue +0 -33
- package/src/client/app/components/base/BaseCheckbox.vue +0 -77
- package/src/client/app/components/base/BaseCopyIcon.vue +0 -34
- package/src/client/app/components/base/BaseEmpty.vue +0 -21
- package/src/client/app/components/base/BaseListItemLink.vue +0 -55
- package/src/client/app/components/base/BaseOverflowMenu.vue +0 -119
- package/src/client/app/components/base/BaseOverflowTab.vue +0 -46
- package/src/client/app/components/base/BaseSelect.vue +0 -72
- package/src/client/app/components/base/BaseSplitPane.vue +0 -240
- package/src/client/app/components/base/BaseTab.vue +0 -46
- package/src/client/app/components/misc/CheckerboardPattern.vue +0 -32
- package/src/client/app/components/misc/HatchedPattern.vue +0 -13
- package/src/client/app/components/panel/ControlsComponentPropItem.vue +0 -103
- package/src/client/app/components/panel/ControlsComponentProps.vue +0 -34
- package/src/client/app/components/panel/PaneTabs.vue +0 -89
- package/src/client/app/components/panel/StatePresets.vue +0 -196
- package/src/client/app/components/panel/StoryControls.vue +0 -68
- package/src/client/app/components/panel/StoryDocs.vue +0 -61
- package/src/client/app/components/panel/StoryEvent.vue +0 -54
- package/src/client/app/components/panel/StoryEvents.vue +0 -45
- package/src/client/app/components/panel/StorySidePanel.vue +0 -69
- package/src/client/app/components/panel/StorySourceCode.vue +0 -116
- package/src/client/app/components/search/SearchItem.vue +0 -110
- package/src/client/app/components/search/SearchLoading.vue +0 -16
- package/src/client/app/components/search/SearchModal.vue +0 -43
- package/src/client/app/components/search/SearchPane.vue +0 -293
- package/src/client/app/components/search/search-docs-data.ts +0 -10
- package/src/client/app/components/search/search-title-data.ts +0 -10
- package/src/client/app/components/search/types.ts +0 -4
- package/src/client/app/components/story/StoryResponsivePreview.vue +0 -204
- package/src/client/app/components/story/StoryVariantGrid.vue +0 -112
- package/src/client/app/components/story/StoryVariantGridItem.vue +0 -110
- package/src/client/app/components/story/StoryVariantListItem.vue +0 -50
- package/src/client/app/components/story/StoryVariantSingle.vue +0 -105
- package/src/client/app/components/story/StoryVariantSinglePreviewNative.vue +0 -42
- package/src/client/app/components/story/StoryVariantSinglePreviewRemote.vue +0 -139
- package/src/client/app/components/story/StoryVariantSingleView.vue +0 -52
- package/src/client/app/components/story/StoryView.vue +0 -96
- package/src/client/app/components/story/StoryViewer.vue +0 -53
- package/src/client/app/components/toolbar/StoryVariantBackground.vue +0 -67
- package/src/client/app/components/toolbar/StoryVariantNewTab.vue +0 -29
- package/src/client/app/components/toolbar/StoryVariantResponsiveSize.vue +0 -82
- package/src/client/app/components/toolbar/StoryVariantTitle.vue +0 -21
- package/src/client/app/components/tree/StoryGroup.vue +0 -75
- package/src/client/app/components/tree/StoryList.vue +0 -35
- package/src/client/app/components/tree/StoryListFolder.vue +0 -89
- package/src/client/app/components/tree/StoryListItem.vue +0 -71
- package/src/client/app/index.ts +0 -30
- package/src/client/app/router.ts +0 -29
- package/src/client/app/sandbox.ts +0 -95
- package/src/client/app/stores/events.ts +0 -36
- package/src/client/app/stores/folder.ts +0 -59
- package/src/client/app/stores/preview-settings.ts +0 -17
- package/src/client/app/stores/story.ts +0 -47
- package/src/client/app/style/floating-vue.pcss +0 -34
- package/src/client/app/style/main.pcss +0 -86
- package/src/client/app/style/sandbox.css +0 -19
- package/src/client/app/style/transitions.pcss +0 -51
- package/src/client/app/types.ts +0 -46
- package/src/client/app/util/config.ts +0 -6
- package/src/client/app/util/const.ts +0 -4
- package/src/client/app/util/dark.ts +0 -4
- package/src/client/app/util/env.ts +0 -1
- package/src/client/app/util/events.ts +0 -30
- package/src/client/app/util/keyboard.ts +0 -99
- package/src/client/app/util/mapping.ts +0 -91
- package/src/client/app/util/preview-settings.ts +0 -8
- package/src/client/app/util/responsive.ts +0 -3
- package/src/client/app/util/sandbox.ts +0 -10
- package/src/client/app/util/scroll.ts +0 -31
- package/src/client/app/util/state.ts +0 -37
- package/src/client/app/util/tooltip.ts +0 -13
- package/src/client/app/util/variant.ts +0 -20
- package/src/client/bundle-index.js +0 -5
- package/src/client/bundle-main.js +0 -5
- package/src/client/bundle-sandbox.js +0 -2
- package/src/client/index.ts +0 -13
- package/src/client/shim.d.ts +0 -7
- package/tailwind.config.cjs +0 -126
- package/vite.config.ts +0 -87
- package/vue.d.ts +0 -1
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { pushScopeId, popScopeId, createElementVNode, createTextVNode, defineComponent, useCssVars, unref, computed, ref, watch, openBlock, createElementBlock, Fragment, renderList, toDisplayString, createVNode, normalizeClass, withCtx } from "@histoire/vendors/dist/client/vue.js";
|
|
2
|
-
import { Icon } from "@histoire/vendors/dist/client/iconify.js";
|
|
3
|
-
import { useStoryStore } from "../../stores/story.js";
|
|
4
|
-
import _sfc_main$1 from "./MobileOverlay.js";
|
|
5
|
-
import _sfc_main$2 from "../tree/StoryList.js";
|
|
6
|
-
import "./Breadcrumb.vue_vue_type_style_index_0_scoped_true_lang.js";
|
|
7
|
-
import _export_sfc from "../../_virtual/plugin-vue_export-helper.js";
|
|
8
|
-
const _withScopeId = (n) => (pushScopeId("data-v-67187ed0"), n = n(), popScopeId(), n);
|
|
9
|
-
const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "htw-opacity-40" }, " / ", -1));
|
|
10
|
-
const _hoisted_2 = { class: "htw-flex htw-items-center htw-gap-2" };
|
|
11
|
-
const _hoisted_3 = { class: "htw-opacity-40 htw-text-sm" };
|
|
12
|
-
const _hoisted_4 = /* @__PURE__ */ createTextVNode(" Select a story... ");
|
|
13
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
|
-
name: "Breadcrumb",
|
|
15
|
-
props: {
|
|
16
|
-
tree: null,
|
|
17
|
-
stories: null
|
|
18
|
-
},
|
|
19
|
-
setup(__props) {
|
|
20
|
-
useCssVars((_ctx) => {
|
|
21
|
-
var _a;
|
|
22
|
-
return {
|
|
23
|
-
"5e381dde": (_a = unref(story)) == null ? void 0 : _a.iconColor
|
|
24
|
-
};
|
|
25
|
-
});
|
|
26
|
-
const storyStore = useStoryStore();
|
|
27
|
-
const story = computed(() => storyStore.currentStory);
|
|
28
|
-
const folders = computed(() => {
|
|
29
|
-
return story.value.file.path.slice(0, -1);
|
|
30
|
-
});
|
|
31
|
-
const isMenuOpened = ref(false);
|
|
32
|
-
function openMenu() {
|
|
33
|
-
isMenuOpened.value = true;
|
|
34
|
-
}
|
|
35
|
-
function closeMenu() {
|
|
36
|
-
isMenuOpened.value = false;
|
|
37
|
-
}
|
|
38
|
-
watch(story, () => {
|
|
39
|
-
isMenuOpened.value = false;
|
|
40
|
-
});
|
|
41
|
-
return (_ctx, _cache) => {
|
|
42
|
-
var _a;
|
|
43
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
44
|
-
createElementVNode("div", null, [
|
|
45
|
-
createElementVNode("a", {
|
|
46
|
-
class: "htw-px-6 htw-h-12 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer htw-flex htw-gap-2 htw-flex-wrap htw-w-full htw-items-center",
|
|
47
|
-
onClick: openMenu
|
|
48
|
-
}, [
|
|
49
|
-
unref(story) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
50
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(folders), (file, key) => {
|
|
51
|
-
return openBlock(), createElementBlock(Fragment, { key }, [
|
|
52
|
-
createElementVNode("span", null, toDisplayString(file), 1),
|
|
53
|
-
_hoisted_1
|
|
54
|
-
], 64);
|
|
55
|
-
}), 128)),
|
|
56
|
-
createElementVNode("span", _hoisted_2, [
|
|
57
|
-
createVNode(unref(Icon), {
|
|
58
|
-
icon: (_a = unref(story).icon) != null ? _a : "carbon:cube",
|
|
59
|
-
class: normalizeClass(["base-list-item-link-icon htw-w-5 htw-h-5 htw-flex-none", {
|
|
60
|
-
"htw-text-primary-500": !unref(story).iconColor,
|
|
61
|
-
"bind-icon-color": unref(story).iconColor
|
|
62
|
-
}])
|
|
63
|
-
}, null, 8, ["icon", "class"]),
|
|
64
|
-
createTextVNode(" " + toDisplayString(unref(story).title) + " ", 1),
|
|
65
|
-
createElementVNode("span", _hoisted_3, toDisplayString(unref(story).variants.length), 1)
|
|
66
|
-
])
|
|
67
|
-
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
68
|
-
_hoisted_4
|
|
69
|
-
], 64)),
|
|
70
|
-
createVNode(unref(Icon), {
|
|
71
|
-
icon: "carbon:chevron-sort",
|
|
72
|
-
class: "htw-w-5 htw-h-5 htw-shrink-0 htw-ml-auto"
|
|
73
|
-
})
|
|
74
|
-
])
|
|
75
|
-
]),
|
|
76
|
-
createVNode(_sfc_main$1, {
|
|
77
|
-
title: "Select a story",
|
|
78
|
-
opened: isMenuOpened.value,
|
|
79
|
-
onClose: closeMenu
|
|
80
|
-
}, {
|
|
81
|
-
default: withCtx(() => [
|
|
82
|
-
createVNode(_sfc_main$2, {
|
|
83
|
-
tree: __props.tree,
|
|
84
|
-
stories: __props.stories,
|
|
85
|
-
class: "htw-flex-1 htw-overflow-y-scroll"
|
|
86
|
-
}, null, 8, ["tree", "stories"])
|
|
87
|
-
]),
|
|
88
|
-
_: 1
|
|
89
|
-
}, 8, ["opened"])
|
|
90
|
-
], 64);
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
var Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-67187ed0"]]);
|
|
95
|
-
export { Breadcrumb as default };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { defineComponent, reactive, openBlock, createElementBlock, createVNode, Transition, withCtx, normalizeStyle, Fragment, renderList, createElementVNode, normalizeClass, createCommentVNode } from "@histoire/vendors/dist/client/vue.js";
|
|
2
|
-
const _hoisted_1 = { class: "htw-fixed htw-inset-0 htw-bg-white dark:htw-bg-gray-700 htw-flex htw-flex-col htw-gap-6 htw-items-center htw-justify-center" };
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
name: "InitialLoading",
|
|
5
|
-
setup(__props) {
|
|
6
|
-
const progress = reactive({
|
|
7
|
-
loaded: 0,
|
|
8
|
-
total: 0
|
|
9
|
-
});
|
|
10
|
-
const maxCols = window.innerWidth / 20;
|
|
11
|
-
if (import.meta.hot) {
|
|
12
|
-
import.meta.hot.on("histoire:stories-loading-progress", (data) => {
|
|
13
|
-
progress.loaded = data.loadedFileCount;
|
|
14
|
-
progress.total = data.totalFileCount;
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
return (_ctx, _cache) => {
|
|
18
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
19
|
-
createVNode(Transition, { name: "__histoire-fade" }, {
|
|
20
|
-
default: withCtx(() => [
|
|
21
|
-
progress.total > 0 ? (openBlock(), createElementBlock("div", {
|
|
22
|
-
key: 0,
|
|
23
|
-
class: "htw-grid htw-gap-2",
|
|
24
|
-
style: normalizeStyle({
|
|
25
|
-
gridTemplateColumns: `repeat(${Math.min(Math.ceil(Math.sqrt(progress.total)), maxCols)}, minmax(0, 1fr))`
|
|
26
|
-
})
|
|
27
|
-
}, [
|
|
28
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(progress.total, (n) => {
|
|
29
|
-
return openBlock(), createElementBlock("div", {
|
|
30
|
-
key: n,
|
|
31
|
-
class: "htw-bg-primary-500/10 htw-rounded-full"
|
|
32
|
-
}, [
|
|
33
|
-
createElementVNode("div", {
|
|
34
|
-
class: normalizeClass(["htw-w-3 htw-h-3 htw-bg-primary-500 htw-rounded-full htw-duration-150 htw-ease-out", {
|
|
35
|
-
"htw-transition-transform htw-scale-0": n >= progress.loaded
|
|
36
|
-
}])
|
|
37
|
-
}, null, 2)
|
|
38
|
-
]);
|
|
39
|
-
}), 128))
|
|
40
|
-
], 4)) : createCommentVNode("", true)
|
|
41
|
-
]),
|
|
42
|
-
_: 1
|
|
43
|
-
})
|
|
44
|
-
]);
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
export { _sfc_main as default };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createBlock, Transition, withCtx, createElementBlock, createElementVNode, toDisplayString, createVNode, unref, renderSlot, createCommentVNode } from "@histoire/vendors/dist/client/vue.js";
|
|
2
|
-
import { Icon } from "@histoire/vendors/dist/client/iconify.js";
|
|
3
|
-
const _hoisted_1 = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "htw-absolute htw-z-10 htw-bg-white dark:htw-bg-gray-700 htw-w-screen htw-h-screen htw-inset-0 htw-overflow-hidden htw-flex htw-flex-col"
|
|
6
|
-
};
|
|
7
|
-
const _hoisted_2 = { class: "htw-p-4 htw-h-16 htw-flex htw-border-b htw-border-gray-100 dark:htw-border-gray-800 htw-items-center htw-place-content-between" };
|
|
8
|
-
const _hoisted_3 = { class: "htw-text-gray-500" };
|
|
9
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
-
name: "MobileOverlay",
|
|
11
|
-
props: {
|
|
12
|
-
title: null,
|
|
13
|
-
opened: { type: Boolean }
|
|
14
|
-
},
|
|
15
|
-
emits: ["close"],
|
|
16
|
-
setup(__props, { emit: emits }) {
|
|
17
|
-
return (_ctx, _cache) => {
|
|
18
|
-
return openBlock(), createBlock(Transition, { name: "__histoire-fade-bottom" }, {
|
|
19
|
-
default: withCtx(() => [
|
|
20
|
-
__props.opened ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
21
|
-
createElementVNode("div", _hoisted_2, [
|
|
22
|
-
createElementVNode("span", _hoisted_3, toDisplayString(__props.title), 1),
|
|
23
|
-
createElementVNode("a", {
|
|
24
|
-
class: "htw-p-1 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer",
|
|
25
|
-
onClick: _cache[0] || (_cache[0] = ($event) => emits("close"))
|
|
26
|
-
}, [
|
|
27
|
-
createVNode(unref(Icon), {
|
|
28
|
-
icon: "carbon:close",
|
|
29
|
-
class: "htw-w-8 htw-h-8 htw-shrink-0"
|
|
30
|
-
})
|
|
31
|
-
])
|
|
32
|
-
]),
|
|
33
|
-
renderSlot(_ctx.$slots, "default")
|
|
34
|
-
])) : createCommentVNode("", true)
|
|
35
|
-
]),
|
|
36
|
-
_: 3
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
export { _sfc_main as default };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, withKeys, withModifiers, createElementVNode, normalizeClass, unref, renderSlot } from "@histoire/vendors/dist/client/vue.js";
|
|
2
|
-
const _hoisted_1 = { class: "htw-text-white htw-w-[16px] htw-h-[16px] htw-relative" };
|
|
3
|
-
const _hoisted_2 = {
|
|
4
|
-
width: "16",
|
|
5
|
-
height: "16",
|
|
6
|
-
viewBox: "0 0 24 24",
|
|
7
|
-
class: "htw-relative htw-z-10"
|
|
8
|
-
};
|
|
9
|
-
const _hoisted_3 = ["stroke-dasharray", "stroke-dashoffset"];
|
|
10
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
-
name: "BaseCheckbox",
|
|
12
|
-
props: {
|
|
13
|
-
modelValue: {
|
|
14
|
-
type: Boolean,
|
|
15
|
-
default: false
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
emits: {
|
|
19
|
-
"update:modelValue": (newValue) => true
|
|
20
|
-
},
|
|
21
|
-
setup(__props, { emit }) {
|
|
22
|
-
const props = __props;
|
|
23
|
-
function toggle() {
|
|
24
|
-
emit("update:modelValue", !props.modelValue);
|
|
25
|
-
animationEnabled.value = true;
|
|
26
|
-
}
|
|
27
|
-
const path = ref();
|
|
28
|
-
const dasharray = ref(0);
|
|
29
|
-
const progress = computed(() => props.modelValue ? 1 : 0);
|
|
30
|
-
const dashoffset = computed(() => (1 - progress.value) * dasharray.value);
|
|
31
|
-
const animationEnabled = ref(false);
|
|
32
|
-
watch(path, () => {
|
|
33
|
-
var _a, _b, _c;
|
|
34
|
-
dasharray.value = (_c = (_b = (_a = path.value).getTotalLength) == null ? void 0 : _b.call(_a)) != null ? _c : 21.21;
|
|
35
|
-
});
|
|
36
|
-
return (_ctx, _cache) => {
|
|
37
|
-
return openBlock(), createElementBlock("div", {
|
|
38
|
-
role: "checkbox",
|
|
39
|
-
tabindex: "0",
|
|
40
|
-
class: "htw-flex htw-items-center htw-gap-2 htw-select-none htw-px-4 htw-py-3 htw-cursor-pointer hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700",
|
|
41
|
-
onClick: _cache[0] || (_cache[0] = ($event) => toggle()),
|
|
42
|
-
onKeydown: [
|
|
43
|
-
_cache[1] || (_cache[1] = withKeys(withModifiers(($event) => toggle(), ["prevent"]), ["enter"])),
|
|
44
|
-
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => toggle(), ["prevent"]), ["space"]))
|
|
45
|
-
]
|
|
46
|
-
}, [
|
|
47
|
-
createElementVNode("div", _hoisted_1, [
|
|
48
|
-
createElementVNode("div", {
|
|
49
|
-
class: normalizeClass(["htw-border group-active:htw-bg-gray-500/20 htw-rounded-sm htw-box-border htw-absolute htw-inset-0 htw-transition-border htw-duration-150 htw-ease-out", [
|
|
50
|
-
__props.modelValue ? "htw-border-primary-500 htw-border-8" : "htw-border-black/25 dark:htw-border-white/25 htw-delay-150"
|
|
51
|
-
]])
|
|
52
|
-
}, null, 2),
|
|
53
|
-
(openBlock(), createElementBlock("svg", _hoisted_2, [
|
|
54
|
-
createElementVNode("path", {
|
|
55
|
-
ref_key: "path",
|
|
56
|
-
ref: path,
|
|
57
|
-
d: "m 4 12 l 5 5 l 10 -10",
|
|
58
|
-
fill: "none",
|
|
59
|
-
class: normalizeClass(["htw-stroke-white htw-stroke-2 htw-duration-200 htw-ease-in-out", [
|
|
60
|
-
animationEnabled.value ? "htw-transition-all" : "htw-transition-none",
|
|
61
|
-
{
|
|
62
|
-
"htw-delay-150": __props.modelValue
|
|
63
|
-
}
|
|
64
|
-
]]),
|
|
65
|
-
"stroke-dasharray": dasharray.value,
|
|
66
|
-
"stroke-dashoffset": unref(dashoffset)
|
|
67
|
-
}, null, 10, _hoisted_3)
|
|
68
|
-
]))
|
|
69
|
-
]),
|
|
70
|
-
renderSlot(_ctx.$slots, "default")
|
|
71
|
-
], 32);
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
export { _sfc_main as default };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { pushScopeId, popScopeId, openBlock, createElementBlock, renderSlot } from "@histoire/vendors/dist/client/vue.js";
|
|
2
|
-
import "./BaseEmpty.vue_vue_type_style_index_0_scoped_true_lang.js";
|
|
3
|
-
import _export_sfc from "../../_virtual/plugin-vue_export-helper.js";
|
|
4
|
-
const _sfc_main = {};
|
|
5
|
-
const _withScopeId = (n) => (pushScopeId("data-v-046d52e2"), n = n(), popScopeId(), n);
|
|
6
|
-
const _hoisted_1 = { class: "htw-base-empty htw-flex htw-flex-col htw-items-center htw-justify-center htw-space-y-4 htw-py-12 htw-h-full htw-text-center htw-text-gray-400 htw-text-lg" };
|
|
7
|
-
function _sfc_render(_ctx, _cache) {
|
|
8
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
9
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
10
|
-
]);
|
|
11
|
-
}
|
|
12
|
-
var BaseEmpty = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-046d52e2"]]);
|
|
13
|
-
export { BaseEmpty as default };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementVNode, normalizeClass, withKeys, renderSlot } from "@histoire/vendors/dist/client/vue.js";
|
|
2
|
-
import _export_sfc from "../../_virtual/plugin-vue_export-helper.js";
|
|
3
|
-
const _sfc_main = defineComponent({
|
|
4
|
-
inheritAttrs: false,
|
|
5
|
-
props: {
|
|
6
|
-
isActive: {
|
|
7
|
-
type: Boolean,
|
|
8
|
-
default: void 0
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
emits: {
|
|
12
|
-
navigate: () => true
|
|
13
|
-
},
|
|
14
|
-
setup(props, { emit }) {
|
|
15
|
-
function handleNavigate(event, navigate) {
|
|
16
|
-
emit("navigate");
|
|
17
|
-
navigate(event);
|
|
18
|
-
}
|
|
19
|
-
return {
|
|
20
|
-
handleNavigate
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
const _hoisted_1 = ["href", "onClick", "onKeyup"];
|
|
25
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
26
|
-
const _component_RouterLink = resolveComponent("RouterLink");
|
|
27
|
-
return openBlock(), createBlock(_component_RouterLink, mergeProps(_ctx.$attrs, { custom: "" }), {
|
|
28
|
-
default: withCtx(({ isActive: linkIsActive, href, navigate }) => [
|
|
29
|
-
createElementVNode("a", {
|
|
30
|
-
href,
|
|
31
|
-
class: normalizeClass(["htw-flex htw-items-center htw-gap-2 htw-text-gray-900 dark:htw-text-gray-100", [
|
|
32
|
-
_ctx.$attrs.class,
|
|
33
|
-
(_ctx.isActive != null ? _ctx.isActive : linkIsActive) ? "active htw-bg-primary-500 hover:htw-bg-primary-600 htw-text-white dark:htw-text-black" : "hover:htw-bg-primary-100 dark:hover:htw-bg-primary-900"
|
|
34
|
-
]]),
|
|
35
|
-
onClick: ($event) => _ctx.handleNavigate($event, navigate),
|
|
36
|
-
onKeyup: [
|
|
37
|
-
withKeys(($event) => _ctx.handleNavigate($event, navigate), ["enter"]),
|
|
38
|
-
withKeys(($event) => _ctx.handleNavigate($event, navigate), ["space"])
|
|
39
|
-
]
|
|
40
|
-
}, [
|
|
41
|
-
renderSlot(_ctx.$slots, "default", {
|
|
42
|
-
active: _ctx.isActive != null ? _ctx.isActive : linkIsActive
|
|
43
|
-
})
|
|
44
|
-
], 42, _hoisted_1)
|
|
45
|
-
]),
|
|
46
|
-
_: 3
|
|
47
|
-
}, 16);
|
|
48
|
-
}
|
|
49
|
-
var BaseListItemLink = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
50
|
-
export { BaseListItemLink as default };
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, reactive, onBeforeUnmount, h, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, renderSlot, unref, createBlock, createElementVNode, createCommentVNode } from "@histoire/vendors/dist/client/vue.js";
|
|
2
|
-
import { useResizeObserver } from "@histoire/vendors/dist/client/vue-use.js";
|
|
3
|
-
import { Icon } from "@histoire/vendors/dist/client/iconify.js";
|
|
4
|
-
const _hoisted_1 = {
|
|
5
|
-
role: "button",
|
|
6
|
-
class: "htw-cursor-pointer hover:htw-bg-primary-50 dark:hover:htw-bg-primary-900 htw-w-8 htw-h-full htw-flex htw-items-center htw-justify-center htw-absolute htw-top-0 htw-right-0"
|
|
7
|
-
};
|
|
8
|
-
const _hoisted_2 = { class: "htw-flex htw-flex-col htw-items-stretch" };
|
|
9
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
-
name: "BaseOverflowMenu",
|
|
11
|
-
setup(__props) {
|
|
12
|
-
const overflowButtonWidth = 32;
|
|
13
|
-
const el = ref();
|
|
14
|
-
const availableWidth = ref(0);
|
|
15
|
-
useResizeObserver(el, (entries) => {
|
|
16
|
-
const containerWidth = entries[0].contentRect.width;
|
|
17
|
-
availableWidth.value = containerWidth - overflowButtonWidth;
|
|
18
|
-
});
|
|
19
|
-
const children = ref(/* @__PURE__ */ new Map());
|
|
20
|
-
const visibleChildrenCount = computed(() => {
|
|
21
|
-
let width = 0;
|
|
22
|
-
const c = [...children.value.values()].sort((a, b) => a.index - b.index);
|
|
23
|
-
for (let i = 0; i < c.length; i++) {
|
|
24
|
-
width += c[i].width;
|
|
25
|
-
if (width > availableWidth.value) {
|
|
26
|
-
return i;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return c.length;
|
|
30
|
-
});
|
|
31
|
-
const ChildWrapper = {
|
|
32
|
-
name: "ChildWrapper",
|
|
33
|
-
props: ["index"],
|
|
34
|
-
setup(props, { slots }) {
|
|
35
|
-
const el2 = ref();
|
|
36
|
-
const state = reactive({ width: 0, index: props.index });
|
|
37
|
-
useResizeObserver(el2, (entries) => {
|
|
38
|
-
const width = entries[0].contentRect.width;
|
|
39
|
-
if (!children.value.has(el2.value)) {
|
|
40
|
-
children.value.set(el2.value, state);
|
|
41
|
-
}
|
|
42
|
-
state.width = width;
|
|
43
|
-
});
|
|
44
|
-
onBeforeUnmount(() => {
|
|
45
|
-
children.value.delete(el2.value);
|
|
46
|
-
});
|
|
47
|
-
const visible = computed(() => visibleChildrenCount.value > state.index);
|
|
48
|
-
return () => h("div", { ref: el2, style: { visibility: visible.value ? "visible" : "hidden" } }, slots.default());
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
const ChildrenRender = (props, { slots }) => {
|
|
52
|
-
const [fragment] = slots.default();
|
|
53
|
-
return fragment.children.map((vnode, index) => h(ChildWrapper, { index }, () => [vnode]));
|
|
54
|
-
};
|
|
55
|
-
const ChildrenSlice = (props, { slots }) => {
|
|
56
|
-
const [fragment] = slots.default();
|
|
57
|
-
return fragment.children.slice(props.start, props.end);
|
|
58
|
-
};
|
|
59
|
-
return (_ctx, _cache) => {
|
|
60
|
-
const _component_VDropdown = resolveComponent("VDropdown");
|
|
61
|
-
return openBlock(), createElementBlock("div", {
|
|
62
|
-
ref_key: "el",
|
|
63
|
-
ref: el,
|
|
64
|
-
class: "htw-flex htw-overflow-hidden htw-relative"
|
|
65
|
-
}, [
|
|
66
|
-
createVNode(ChildrenRender, null, {
|
|
67
|
-
default: withCtx(() => [
|
|
68
|
-
renderSlot(_ctx.$slots, "default")
|
|
69
|
-
]),
|
|
70
|
-
_: 3
|
|
71
|
-
}),
|
|
72
|
-
unref(visibleChildrenCount) < children.value.size ? (openBlock(), createBlock(_component_VDropdown, { key: 0 }, {
|
|
73
|
-
popper: withCtx(() => [
|
|
74
|
-
createElementVNode("div", _hoisted_2, [
|
|
75
|
-
createVNode(ChildrenSlice, { start: unref(visibleChildrenCount) }, {
|
|
76
|
-
default: withCtx(() => [
|
|
77
|
-
renderSlot(_ctx.$slots, "overflow")
|
|
78
|
-
]),
|
|
79
|
-
_: 3
|
|
80
|
-
}, 8, ["start"])
|
|
81
|
-
])
|
|
82
|
-
]),
|
|
83
|
-
default: withCtx(() => [
|
|
84
|
-
createElementVNode("div", _hoisted_1, [
|
|
85
|
-
createVNode(unref(Icon), {
|
|
86
|
-
icon: "carbon:caret-down",
|
|
87
|
-
class: "htw-w-4 htw-h-4 htw-opacity-50 group-hover:htw-opacity-100"
|
|
88
|
-
})
|
|
89
|
-
])
|
|
90
|
-
]),
|
|
91
|
-
_: 3
|
|
92
|
-
})) : createCommentVNode("", true)
|
|
93
|
-
], 512);
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
export { _sfc_main as default };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementVNode, renderSlot, createVNode, Transition, createElementBlock, createCommentVNode } from "@histoire/vendors/dist/client/vue.js";
|
|
2
|
-
import _export_sfc from "../../_virtual/plugin-vue_export-helper.js";
|
|
3
|
-
const _sfc_main = defineComponent({
|
|
4
|
-
inheritAttrs: false,
|
|
5
|
-
props: {
|
|
6
|
-
exact: {
|
|
7
|
-
type: Boolean,
|
|
8
|
-
default: false
|
|
9
|
-
},
|
|
10
|
-
matched: {
|
|
11
|
-
type: Boolean,
|
|
12
|
-
default: null
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
const _hoisted_1 = ["href", "onClick"];
|
|
17
|
-
const _hoisted_2 = {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: "htw-absolute htw-top-0 htw-left-0 htw-h-full htw-w-[2px] htw-bg-primary-500 dark:htw-bg-primary-400"
|
|
20
|
-
};
|
|
21
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22
|
-
const _component_router_link = resolveComponent("router-link");
|
|
23
|
-
return openBlock(), createBlock(_component_router_link, mergeProps(_ctx.$attrs, { custom: "" }), {
|
|
24
|
-
default: withCtx(({ isActive, isExactActive, href, navigate }) => [
|
|
25
|
-
createElementVNode("a", mergeProps(_ctx.$attrs, {
|
|
26
|
-
href,
|
|
27
|
-
class: ["htw-px-4 htw-h-10 htw-min-w-[150px] htw-inline-flex htw-items-center hover:htw-bg-primary-50 dark:hover:htw-bg-primary-900 htw-relative htw-text-gray-900 dark:htw-text-gray-100", {
|
|
28
|
-
"htw-text-primary-500 dark:htw-text-primary-400": _ctx.matched != null ? _ctx.matched : _ctx.exact && isExactActive || !_ctx.exact && isActive
|
|
29
|
-
}],
|
|
30
|
-
onClick: navigate
|
|
31
|
-
}), [
|
|
32
|
-
renderSlot(_ctx.$slots, "default"),
|
|
33
|
-
createVNode(Transition, { name: "__histoire-scale-y" }, {
|
|
34
|
-
default: withCtx(() => [
|
|
35
|
-
(_ctx.matched != null ? _ctx.matched : _ctx.exact && isExactActive || !_ctx.exact && isActive) ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true)
|
|
36
|
-
]),
|
|
37
|
-
_: 2
|
|
38
|
-
}, 1024)
|
|
39
|
-
], 16, _hoisted_1)
|
|
40
|
-
]),
|
|
41
|
-
_: 3
|
|
42
|
-
}, 16);
|
|
43
|
-
}
|
|
44
|
-
var BaseOverflowTab = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
45
|
-
export { BaseOverflowTab as default };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, computed, openBlock, createBlock, unref, withCtx, createElementVNode, createElementBlock, Fragment, renderList, mergeProps, renderSlot, createTextVNode, toDisplayString, createVNode } from "@histoire/vendors/dist/client/vue.js";
|
|
21
|
-
import { Dropdown } from "@histoire/vendors/dist/client/floating-vue.js";
|
|
22
|
-
import { Icon } from "@histoire/vendors/dist/client/iconify.js";
|
|
23
|
-
const _hoisted_1 = { class: "htw-cursor-pointer htw-w-full htw-outline-none htw-px-2 htw-h-[27px] -htw-my-1 htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 hover:htw-border-primary-500 dark:hover:htw-border-primary-500 htw-rounded-sm htw-flex htw-gap-2 htw-items-center htw-leading-normal" };
|
|
24
|
-
const _hoisted_2 = { class: "htw-flex-1 htw-truncate" };
|
|
25
|
-
const _hoisted_3 = { class: "htw-flex htw-flex-col htw-bg-gray-50 dark:htw-bg-gray-700" };
|
|
26
|
-
const _hoisted_4 = ["onClick"];
|
|
27
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
|
-
name: "BaseSelect",
|
|
29
|
-
props: {
|
|
30
|
-
modelValue: null,
|
|
31
|
-
options: null
|
|
32
|
-
},
|
|
33
|
-
emits: ["update:modelValue", "select"],
|
|
34
|
-
setup(__props, { emit: emits }) {
|
|
35
|
-
const props = __props;
|
|
36
|
-
const formattedOptions = computed(() => {
|
|
37
|
-
if (Array.isArray(props.options)) {
|
|
38
|
-
return Object.fromEntries(props.options.map((value) => [value, value]));
|
|
39
|
-
}
|
|
40
|
-
return props.options;
|
|
41
|
-
});
|
|
42
|
-
const selectedLabel = computed(() => formattedOptions.value[props.modelValue]);
|
|
43
|
-
function selectValue(value, hide) {
|
|
44
|
-
emits("update:modelValue", value);
|
|
45
|
-
emits("select", value);
|
|
46
|
-
hide();
|
|
47
|
-
}
|
|
48
|
-
return (_ctx, _cache) => {
|
|
49
|
-
return openBlock(), createBlock(unref(Dropdown), { "auto-size": "" }, {
|
|
50
|
-
popper: withCtx(({ hide }) => [
|
|
51
|
-
createElementVNode("div", _hoisted_3, [
|
|
52
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(formattedOptions), (label, value) => {
|
|
53
|
-
return openBlock(), createElementBlock("div", mergeProps(__spreadProps(__spreadValues({}, _ctx.$attrs), { class: null, style: null }), {
|
|
54
|
-
key: label,
|
|
55
|
-
class: ["htw-px-2 htw-py-1 htw-cursor-pointer hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700", {
|
|
56
|
-
"htw-bg-primary-200 dark:htw-bg-primary-800": props.modelValue === value
|
|
57
|
-
}],
|
|
58
|
-
onClick: ($event) => selectValue(value, hide)
|
|
59
|
-
}), [
|
|
60
|
-
renderSlot(_ctx.$slots, "option", {
|
|
61
|
-
label,
|
|
62
|
-
value
|
|
63
|
-
}, () => [
|
|
64
|
-
createTextVNode(toDisplayString(label), 1)
|
|
65
|
-
])
|
|
66
|
-
], 16, _hoisted_4);
|
|
67
|
-
}), 128))
|
|
68
|
-
])
|
|
69
|
-
]),
|
|
70
|
-
default: withCtx(() => [
|
|
71
|
-
createElementVNode("div", _hoisted_1, [
|
|
72
|
-
createElementVNode("div", _hoisted_2, [
|
|
73
|
-
renderSlot(_ctx.$slots, "default", { label: unref(selectedLabel) }, () => [
|
|
74
|
-
createTextVNode(toDisplayString(unref(selectedLabel)), 1)
|
|
75
|
-
])
|
|
76
|
-
]),
|
|
77
|
-
createVNode(unref(Icon), {
|
|
78
|
-
icon: "carbon:chevron-sort",
|
|
79
|
-
class: "htw-w-4 htw-h-4 htw-flex-none htw-ml-auto"
|
|
80
|
-
})
|
|
81
|
-
])
|
|
82
|
-
]),
|
|
83
|
-
_: 3
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
export { _sfc_main as default };
|