histoire 0.8.4 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/bin.js +1 -0
- package/dist/node/build.js +13 -1
- package/dist/node/builtin-plugins/tailwind-tokens.js +391 -377
- package/dist/node/builtin-plugins/vanilla-support/MountStory.d.ts +14 -0
- package/dist/node/builtin-plugins/vanilla-support/MountStory.js +39 -0
- package/dist/node/builtin-plugins/vanilla-support/RenderStory.d.ts +38 -0
- package/dist/node/builtin-plugins/vanilla-support/RenderStory.js +131 -0
- package/dist/node/builtin-plugins/vanilla-support/client.d.ts +3 -0
- package/dist/node/builtin-plugins/vanilla-support/client.js +5 -0
- package/dist/node/builtin-plugins/vanilla-support/collect.d.ts +2 -0
- package/dist/node/builtin-plugins/vanilla-support/collect.js +33 -0
- package/dist/node/builtin-plugins/vanilla-support/plugin.d.ts +2 -0
- package/dist/node/builtin-plugins/vanilla-support/plugin.js +29 -0
- package/dist/node/builtin-plugins/vanilla-support/types.d.ts +35 -0
- package/dist/node/builtin-plugins/vanilla-support/types.js +3 -0
- package/dist/node/builtin-plugins/vanilla-support/vanilla.story.d.ts +3 -0
- package/dist/node/builtin-plugins/vanilla-support/vanilla.story.js +55 -0
- package/dist/node/collect/run.js +4 -6
- package/dist/node/config.d.ts +9 -0
- package/dist/node/config.js +16 -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/server.js +1 -1
- package/dist/node/stories.js +15 -1
- package/dist/node/vite.d.ts +4 -0
- package/dist/node/vite.js +47 -16
- package/package.json +11 -21
- package/src/node/alias.ts +5 -6
- package/src/node/bin.ts +1 -0
- package/src/node/build.ts +13 -1
- package/src/node/builtin-plugins/tailwind-tokens.ts +394 -377
- package/src/node/builtin-plugins/vanilla-support/MountStory.ts +50 -0
- package/src/node/builtin-plugins/vanilla-support/RenderStory.ts +166 -0
- package/src/node/builtin-plugins/vanilla-support/client.ts +6 -0
- package/src/node/builtin-plugins/vanilla-support/collect.ts +42 -0
- package/src/node/builtin-plugins/vanilla-support/plugin.ts +35 -0
- package/src/node/builtin-plugins/vanilla-support/types.ts +40 -0
- package/src/node/builtin-plugins/vanilla-support/vanilla.story.ts +63 -0
- package/src/node/collect/run.ts +4 -8
- package/src/node/config.ts +26 -0
- package/src/node/context.ts +7 -2
- package/src/node/plugin.ts +5 -1
- package/src/node/server.ts +2 -2
- package/src/node/stories.ts +18 -1
- package/src/node/vite.ts +56 -16
- 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,33 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveDirective, withDirectives, openBlock, createElementBlock, unref, createVNode } from "@histoire/vendors/dist/client/vue.js";
|
|
2
|
-
import { Icon } from "@histoire/vendors/dist/client/iconify.js";
|
|
3
|
-
import { getSandboxUrl } from "../../util/sandbox.js";
|
|
4
|
-
const _hoisted_1 = ["href"];
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
-
name: "StoryVariantNewTab",
|
|
7
|
-
props: {
|
|
8
|
-
variant: null,
|
|
9
|
-
story: null
|
|
10
|
-
},
|
|
11
|
-
setup(__props) {
|
|
12
|
-
const props = __props;
|
|
13
|
-
const sandboxUrl = computed(() => {
|
|
14
|
-
return getSandboxUrl(props.story, props.variant);
|
|
15
|
-
});
|
|
16
|
-
return (_ctx, _cache) => {
|
|
17
|
-
const _directive_tooltip = resolveDirective("tooltip");
|
|
18
|
-
return withDirectives((openBlock(), createElementBlock("a", {
|
|
19
|
-
href: unref(sandboxUrl),
|
|
20
|
-
target: "_blank",
|
|
21
|
-
class: "htw-flex htw-items-center htw-gap-1 htw-h-full htw-px-2 hover:htw-text-primary-500 htw-opacity-50 hover:htw-opacity-100 dark:hover:htw-text-primary-400 htw-text-gray-900 dark:htw-text-gray-100"
|
|
22
|
-
}, [
|
|
23
|
-
createVNode(unref(Icon), {
|
|
24
|
-
icon: "carbon:launch",
|
|
25
|
-
class: "base-list-item-link-icon htw-w-4 htw-h-4"
|
|
26
|
-
})
|
|
27
|
-
], 8, _hoisted_1)), [
|
|
28
|
-
[_directive_tooltip, "Open variant in new tab"]
|
|
29
|
-
]);
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export { _sfc_main as default };
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { createTextVNode, createElementVNode, defineComponent, resolveComponent, resolveDirective, openBlock, createBlock, unref, withCtx, createVNode, withDirectives, vModelText, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, createCommentVNode } from "@histoire/vendors/dist/client/vue.js";
|
|
2
|
-
import { Icon } from "@histoire/vendors/dist/client/iconify.js";
|
|
3
|
-
import { usePreviewSettingsStore } from "../../stores/preview-settings.js";
|
|
4
|
-
import { histoireConfig } from "../../util/config.js";
|
|
5
|
-
import _sfc_main$1 from "../base/BaseCheckbox.js";
|
|
6
|
-
const _hoisted_1 = { class: "htw-flex htw-flex-col htw-items-stretch" };
|
|
7
|
-
const _hoisted_2 = /* @__PURE__ */ createTextVNode(" Rotate ");
|
|
8
|
-
const _hoisted_3 = { class: "htw-flex htw-gap-2 htw-px-4 htw-py-3" };
|
|
9
|
-
const _hoisted_4 = /* @__PURE__ */ createElementVNode("span", { class: "htw-opacity-50" }, "x", -1);
|
|
10
|
-
const _hoisted_5 = ["onClick"];
|
|
11
|
-
const _hoisted_6 = { class: "htw-ml-auto htw-opacity-70 htw-flex htw-gap-1" };
|
|
12
|
-
const _hoisted_7 = { key: 0 };
|
|
13
|
-
const _hoisted_8 = { key: 0 };
|
|
14
|
-
const _hoisted_9 = { key: 1 };
|
|
15
|
-
const _hoisted_10 = { key: 2 };
|
|
16
|
-
const _hoisted_11 = { key: 0 };
|
|
17
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
|
-
name: "StoryVariantResponsiveSize",
|
|
19
|
-
setup(__props) {
|
|
20
|
-
const settings = usePreviewSettingsStore().currentSettings;
|
|
21
|
-
return (_ctx, _cache) => {
|
|
22
|
-
var _a;
|
|
23
|
-
const _component_VDropdown = resolveComponent("VDropdown");
|
|
24
|
-
const _directive_tooltip = resolveDirective("tooltip");
|
|
25
|
-
return openBlock(), createBlock(_component_VDropdown, {
|
|
26
|
-
placement: "bottom-end",
|
|
27
|
-
skidding: 6,
|
|
28
|
-
disabled: !((_a = unref(histoireConfig).responsivePresets) == null ? void 0 : _a.length),
|
|
29
|
-
class: "htw-h-full htw-flex-none"
|
|
30
|
-
}, {
|
|
31
|
-
popper: withCtx(({ hide }) => [
|
|
32
|
-
createElementVNode("div", _hoisted_1, [
|
|
33
|
-
createVNode(_sfc_main$1, {
|
|
34
|
-
modelValue: unref(settings).rotate,
|
|
35
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(settings).rotate = $event)
|
|
36
|
-
}, {
|
|
37
|
-
default: withCtx(() => [
|
|
38
|
-
_hoisted_2
|
|
39
|
-
]),
|
|
40
|
-
_: 1
|
|
41
|
-
}, 8, ["modelValue"]),
|
|
42
|
-
createElementVNode("div", _hoisted_3, [
|
|
43
|
-
withDirectives(createElementVNode("input", {
|
|
44
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(settings).responsiveWidth = $event),
|
|
45
|
-
type: "number",
|
|
46
|
-
class: "htw-bg-transparent htw-border htw-border-gray-200 dark:htw-border-gray-850 htw-rounded htw-w-20 htw-opacity-50 focus:htw-opacity-100 htw-flex-1 htw-min-w-0",
|
|
47
|
-
step: "16",
|
|
48
|
-
placeholder: "Auto"
|
|
49
|
-
}, null, 512), [
|
|
50
|
-
[
|
|
51
|
-
vModelText,
|
|
52
|
-
unref(settings).responsiveWidth,
|
|
53
|
-
void 0,
|
|
54
|
-
{ number: true }
|
|
55
|
-
],
|
|
56
|
-
[_directive_tooltip, "Responsive width (px)"]
|
|
57
|
-
]),
|
|
58
|
-
_hoisted_4,
|
|
59
|
-
withDirectives(createElementVNode("input", {
|
|
60
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(settings).responsiveHeight = $event),
|
|
61
|
-
type: "number",
|
|
62
|
-
class: "htw-bg-transparent htw-border htw-border-gray-200 dark:htw-border-gray-850 htw-rounded htw-w-20 htw-opacity-50 focus:htw-opacity-100 htw-flex-1 htw-min-w-0",
|
|
63
|
-
step: "16",
|
|
64
|
-
placeholder: "Auto"
|
|
65
|
-
}, null, 512), [
|
|
66
|
-
[
|
|
67
|
-
vModelText,
|
|
68
|
-
unref(settings).responsiveHeight,
|
|
69
|
-
void 0,
|
|
70
|
-
{ number: true }
|
|
71
|
-
],
|
|
72
|
-
[_directive_tooltip, "Responsive height (px)"]
|
|
73
|
-
])
|
|
74
|
-
]),
|
|
75
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(histoireConfig).responsivePresets, (preset, index) => {
|
|
76
|
-
return openBlock(), createElementBlock("button", {
|
|
77
|
-
key: index,
|
|
78
|
-
class: normalizeClass(["htw-px-4 htw-py-3 htw-cursor-pointer htw-text-left htw-flex htw-gap-4", [
|
|
79
|
-
unref(settings).responsiveWidth === preset.width && unref(settings).responsiveHeight === preset.height ? "htw-bg-primary-500 hover:htw-bg-primary-600 htw-text-white dark:htw-text-black" : "htw-bg-transparent hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700"
|
|
80
|
-
]]),
|
|
81
|
-
onClick: ($event) => {
|
|
82
|
-
unref(settings).responsiveWidth = preset.width;
|
|
83
|
-
unref(settings).responsiveHeight = preset.height;
|
|
84
|
-
hide();
|
|
85
|
-
}
|
|
86
|
-
}, [
|
|
87
|
-
createTextVNode(toDisplayString(preset.label) + " ", 1),
|
|
88
|
-
createElementVNode("span", _hoisted_6, [
|
|
89
|
-
preset.width ? (openBlock(), createElementBlock("span", _hoisted_7, [
|
|
90
|
-
createTextVNode(toDisplayString(preset.width), 1),
|
|
91
|
-
!preset.height ? (openBlock(), createElementBlock("span", _hoisted_8, "px")) : createCommentVNode("", true)
|
|
92
|
-
])) : createCommentVNode("", true),
|
|
93
|
-
preset.width && preset.height ? (openBlock(), createElementBlock("span", _hoisted_9, "x")) : createCommentVNode("", true),
|
|
94
|
-
preset.height ? (openBlock(), createElementBlock("span", _hoisted_10, [
|
|
95
|
-
createTextVNode(toDisplayString(preset.height), 1),
|
|
96
|
-
!preset.width ? (openBlock(), createElementBlock("span", _hoisted_11, "px")) : createCommentVNode("", true)
|
|
97
|
-
])) : createCommentVNode("", true)
|
|
98
|
-
])
|
|
99
|
-
], 10, _hoisted_5);
|
|
100
|
-
}), 128))
|
|
101
|
-
])
|
|
102
|
-
]),
|
|
103
|
-
default: withCtx(() => {
|
|
104
|
-
var _a2;
|
|
105
|
-
return [
|
|
106
|
-
withDirectives((openBlock(), createElementBlock("div", {
|
|
107
|
-
class: normalizeClass(["htw-flex htw-items-center htw-gap-1 htw-h-full htw-px-2 htw-group", {
|
|
108
|
-
"htw-cursor-pointer hover:htw-text-primary-500": (_a2 = unref(histoireConfig).responsivePresets) == null ? void 0 : _a2.length
|
|
109
|
-
}])
|
|
110
|
-
}, [
|
|
111
|
-
createVNode(unref(Icon), {
|
|
112
|
-
icon: "carbon:devices",
|
|
113
|
-
class: "htw-w-4 htw-h-4 htw-opacity-50 group-hover:htw-opacity-100"
|
|
114
|
-
}),
|
|
115
|
-
createVNode(unref(Icon), {
|
|
116
|
-
icon: "carbon:caret-down",
|
|
117
|
-
class: "htw-w-4 htw-h-4 htw-opacity-50 group-hover:htw-opacity-100"
|
|
118
|
-
})
|
|
119
|
-
], 2)), [
|
|
120
|
-
[_directive_tooltip, "Responsive sizes"]
|
|
121
|
-
])
|
|
122
|
-
];
|
|
123
|
-
}),
|
|
124
|
-
_: 1
|
|
125
|
-
}, 8, ["disabled"]);
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
export { _sfc_main as default };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, createVNode, unref, normalizeClass, createElementVNode, toDisplayString } from "@histoire/vendors/dist/client/vue.js";
|
|
2
|
-
import { Icon } from "@histoire/vendors/dist/client/iconify.js";
|
|
3
|
-
const _hoisted_1 = { class: "htw-flex htw-items-center htw-gap-1 htw-text-gray-500 htw-flex-1 htw-truncate htw-min-w-0" };
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
name: "StoryVariantTitle",
|
|
6
|
-
props: {
|
|
7
|
-
variant: null
|
|
8
|
-
},
|
|
9
|
-
setup(__props) {
|
|
10
|
-
return (_ctx, _cache) => {
|
|
11
|
-
var _a;
|
|
12
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
13
|
-
createVNode(unref(Icon), {
|
|
14
|
-
icon: (_a = __props.variant.icon) != null ? _a : "carbon:cube",
|
|
15
|
-
class: normalizeClass(["base-list-item-link-icon htw-w-4 htw-h-4 htw-opacity-50", [
|
|
16
|
-
__props.variant.iconColor ? "bind-icon-color" : "htw-text-gray-500"
|
|
17
|
-
]])
|
|
18
|
-
}, null, 8, ["icon", "class"]),
|
|
19
|
-
createElementVNode("span", null, toDisplayString(__props.variant.title), 1)
|
|
20
|
-
]);
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
export { _sfc_main as default };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { createElementVNode, defineComponent, computed, openBlock, createElementBlock, withKeys, createVNode, unref, normalizeClass, toDisplayString, createCommentVNode, Fragment, renderList, createBlock } from "@histoire/vendors/dist/client/vue.js";
|
|
2
|
-
import StoryListItem from "./StoryListItem.js";
|
|
3
|
-
import StoryListFolder from "./StoryListFolder.js";
|
|
4
|
-
import { Icon } from "@histoire/vendors/dist/client/iconify.js";
|
|
5
|
-
import { useFolderStore } from "../../stores/folder.js";
|
|
6
|
-
const _hoisted_1 = {
|
|
7
|
-
"data-test-id": "story-group",
|
|
8
|
-
class: "htw-my-2 first:htw-mt-0 last:htw-mb-0"
|
|
9
|
-
};
|
|
10
|
-
const _hoisted_2 = ["onKeyup"];
|
|
11
|
-
const _hoisted_3 = { class: "htw-truncate htw-opacity-50" };
|
|
12
|
-
const _hoisted_4 = /* @__PURE__ */ createElementVNode("span", { class: "htw-h-[1px] htw-flex-1 htw-bg-gray-500/10 htw-mx-2" }, null, -1);
|
|
13
|
-
const _hoisted_5 = { key: 1 };
|
|
14
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
|
-
name: "StoryGroup",
|
|
16
|
-
props: {
|
|
17
|
-
path: { default: () => [] },
|
|
18
|
-
group: null,
|
|
19
|
-
stories: null
|
|
20
|
-
},
|
|
21
|
-
setup(__props) {
|
|
22
|
-
const props = __props;
|
|
23
|
-
const folderStore = useFolderStore();
|
|
24
|
-
const folderPath = computed(() => [...props.path, props.group.title]);
|
|
25
|
-
const isFolderOpen = computed(() => folderStore.isFolderOpened(folderPath.value, true));
|
|
26
|
-
function toggleOpen() {
|
|
27
|
-
folderStore.toggleFolder(folderPath.value, false);
|
|
28
|
-
}
|
|
29
|
-
return (_ctx, _cache) => {
|
|
30
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
31
|
-
__props.group.title ? (openBlock(), createElementBlock("div", {
|
|
32
|
-
key: 0,
|
|
33
|
-
role: "button",
|
|
34
|
-
tabindex: "0",
|
|
35
|
-
class: "htw-px-0.5 htw-py-2 md:htw-py-1.5 htw-mx-1 htw-rounded-sm hover:htw-bg-primary-100 dark:hover:htw-bg-primary-900 htw-cursor-pointer htw-select-none htw-flex htw-items-center htw-gap-1 htw-min-w-0",
|
|
36
|
-
onClick: toggleOpen,
|
|
37
|
-
onKeyup: [
|
|
38
|
-
withKeys(toggleOpen, ["enter"]),
|
|
39
|
-
withKeys(toggleOpen, ["space"])
|
|
40
|
-
]
|
|
41
|
-
}, [
|
|
42
|
-
createVNode(unref(Icon), {
|
|
43
|
-
icon: "carbon:caret-right",
|
|
44
|
-
class: normalizeClass(["htw-w-4 htw-h-4 htw-transition-transform htw-duration-150 htw-opacity-30 htw-flex-none", {
|
|
45
|
-
"htw-rotate-90": unref(isFolderOpen)
|
|
46
|
-
}])
|
|
47
|
-
}, null, 8, ["class"]),
|
|
48
|
-
createElementVNode("span", _hoisted_3, toDisplayString(__props.group.title), 1),
|
|
49
|
-
_hoisted_4
|
|
50
|
-
], 40, _hoisted_2)) : createCommentVNode("", true),
|
|
51
|
-
unref(isFolderOpen) ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
52
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.group.children, (element) => {
|
|
53
|
-
return openBlock(), createElementBlock(Fragment, {
|
|
54
|
-
key: element.title
|
|
55
|
-
}, [
|
|
56
|
-
element.children ? (openBlock(), createBlock(StoryListFolder, {
|
|
57
|
-
key: 0,
|
|
58
|
-
path: unref(folderPath),
|
|
59
|
-
folder: element,
|
|
60
|
-
stories: __props.stories,
|
|
61
|
-
depth: 0
|
|
62
|
-
}, null, 8, ["path", "folder", "stories"])) : (openBlock(), createBlock(StoryListItem, {
|
|
63
|
-
key: 1,
|
|
64
|
-
story: __props.stories[element.index],
|
|
65
|
-
depth: 0
|
|
66
|
-
}, null, 8, ["story"]))
|
|
67
|
-
], 64);
|
|
68
|
-
}), 128))
|
|
69
|
-
])) : createCommentVNode("", true)
|
|
70
|
-
]);
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
export { _sfc_main as default };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, Fragment, renderList, createBlock } from "@histoire/vendors/dist/client/vue.js";
|
|
2
|
-
import StoryListItem from "./StoryListItem.js";
|
|
3
|
-
import StoryListFolder from "./StoryListFolder.js";
|
|
4
|
-
import _sfc_main$1 from "./StoryGroup.js";
|
|
5
|
-
const _hoisted_1 = { class: "htw-overflow-y-auto" };
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
name: "StoryList",
|
|
8
|
-
props: {
|
|
9
|
-
tree: null,
|
|
10
|
-
stories: null
|
|
11
|
-
},
|
|
12
|
-
setup(__props) {
|
|
13
|
-
return (_ctx, _cache) => {
|
|
14
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
15
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tree, (element) => {
|
|
16
|
-
return openBlock(), createElementBlock(Fragment, {
|
|
17
|
-
key: element.title
|
|
18
|
-
}, [
|
|
19
|
-
element.group ? (openBlock(), createBlock(_sfc_main$1, {
|
|
20
|
-
key: 0,
|
|
21
|
-
group: element,
|
|
22
|
-
stories: __props.stories
|
|
23
|
-
}, null, 8, ["group", "stories"])) : element.children ? (openBlock(), createBlock(StoryListFolder, {
|
|
24
|
-
key: 1,
|
|
25
|
-
folder: element,
|
|
26
|
-
stories: __props.stories
|
|
27
|
-
}, null, 8, ["folder", "stories"])) : (openBlock(), createBlock(StoryListItem, {
|
|
28
|
-
key: 2,
|
|
29
|
-
story: __props.stories[element.index]
|
|
30
|
-
}, null, 8, ["story"]))
|
|
31
|
-
], 64);
|
|
32
|
-
}), 128))
|
|
33
|
-
]);
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
export { _sfc_main as default };
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { pushScopeId, popScopeId, defineComponent, useCssVars, unref, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, withKeys, createVNode, normalizeClass, toDisplayString, Fragment, renderList, createBlock, createCommentVNode } from "@histoire/vendors/dist/client/vue.js";
|
|
2
|
-
import StoryListItem from "./StoryListItem.js";
|
|
3
|
-
import { Icon } from "@histoire/vendors/dist/client/iconify.js";
|
|
4
|
-
import { useFolderStore } from "../../stores/folder.js";
|
|
5
|
-
import "./StoryListFolder.vue_vue_type_style_index_0_scoped_true_lang.js";
|
|
6
|
-
import _export_sfc from "../../_virtual/plugin-vue_export-helper.js";
|
|
7
|
-
const _withScopeId = (n) => (pushScopeId("data-v-1a78012e"), n = n(), popScopeId(), n);
|
|
8
|
-
const _hoisted_1 = { "data-test-id": "story-list-folder" };
|
|
9
|
-
const _hoisted_2 = ["onKeyup"];
|
|
10
|
-
const _hoisted_3 = { class: "bind-tree-padding htw-flex htw-items-center htw-gap-2 htw-min-w-0" };
|
|
11
|
-
const _hoisted_4 = { class: "htw-flex htw-flex-none htw-items-center" };
|
|
12
|
-
const _hoisted_5 = { class: "htw-truncate" };
|
|
13
|
-
const _hoisted_6 = { key: 0 };
|
|
14
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
|
-
name: "StoryListFolder",
|
|
16
|
-
props: {
|
|
17
|
-
path: { default: () => [] },
|
|
18
|
-
folder: null,
|
|
19
|
-
stories: null,
|
|
20
|
-
depth: { default: 0 }
|
|
21
|
-
},
|
|
22
|
-
setup(__props) {
|
|
23
|
-
const props = __props;
|
|
24
|
-
useCssVars((_ctx) => ({
|
|
25
|
-
"27f98670": unref(folderPadding)
|
|
26
|
-
}));
|
|
27
|
-
const folderStore = useFolderStore();
|
|
28
|
-
const folderPath = computed(() => [...props.path, props.folder.title]);
|
|
29
|
-
const isFolderOpen = computed(() => folderStore.isFolderOpened(folderPath.value));
|
|
30
|
-
function toggleOpen() {
|
|
31
|
-
folderStore.toggleFolder(folderPath.value);
|
|
32
|
-
}
|
|
33
|
-
const folderPadding = computed(() => {
|
|
34
|
-
return props.depth * 12 + "px";
|
|
35
|
-
});
|
|
36
|
-
return (_ctx, _cache) => {
|
|
37
|
-
const _component_StoryListFolder = resolveComponent("StoryListFolder", true);
|
|
38
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
39
|
-
createElementVNode("div", {
|
|
40
|
-
role: "button",
|
|
41
|
-
tabindex: "0",
|
|
42
|
-
class: "htw-px-0.5 htw-py-2 md:htw-py-1.5 htw-mx-1 htw-rounded-sm hover:htw-bg-primary-100 dark:hover:htw-bg-primary-900 htw-cursor-pointer htw-select-none htw-flex",
|
|
43
|
-
onClick: toggleOpen,
|
|
44
|
-
onKeyup: [
|
|
45
|
-
withKeys(toggleOpen, ["enter"]),
|
|
46
|
-
withKeys(toggleOpen, ["space"])
|
|
47
|
-
]
|
|
48
|
-
}, [
|
|
49
|
-
createElementVNode("span", _hoisted_3, [
|
|
50
|
-
createElementVNode("span", _hoisted_4, [
|
|
51
|
-
createVNode(unref(Icon), {
|
|
52
|
-
icon: "carbon:caret-right",
|
|
53
|
-
class: normalizeClass(["htw-w-4 htw-h-4 htw-transition-transform htw-duration-150 htw-opacity-30", {
|
|
54
|
-
"htw-rotate-90": unref(isFolderOpen)
|
|
55
|
-
}])
|
|
56
|
-
}, null, 8, ["class"]),
|
|
57
|
-
createVNode(unref(Icon), {
|
|
58
|
-
icon: "carbon:folder",
|
|
59
|
-
class: "htw-w-5 htw-h-5 sm:htw-w-4 sm:htw-h-4"
|
|
60
|
-
})
|
|
61
|
-
]),
|
|
62
|
-
createElementVNode("span", _hoisted_5, toDisplayString(__props.folder.title), 1)
|
|
63
|
-
])
|
|
64
|
-
], 40, _hoisted_2),
|
|
65
|
-
unref(isFolderOpen) ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
66
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.folder.children, (element) => {
|
|
67
|
-
return openBlock(), createElementBlock(Fragment, {
|
|
68
|
-
key: element.title
|
|
69
|
-
}, [
|
|
70
|
-
element.children ? (openBlock(), createBlock(_component_StoryListFolder, {
|
|
71
|
-
key: 0,
|
|
72
|
-
path: unref(folderPath),
|
|
73
|
-
folder: element,
|
|
74
|
-
stories: __props.stories,
|
|
75
|
-
depth: __props.depth + 1
|
|
76
|
-
}, null, 8, ["path", "folder", "stories", "depth"])) : (openBlock(), createBlock(StoryListItem, {
|
|
77
|
-
key: 1,
|
|
78
|
-
story: __props.stories[element.index],
|
|
79
|
-
depth: __props.depth + 1
|
|
80
|
-
}, null, 8, ["story", "depth"]))
|
|
81
|
-
], 64);
|
|
82
|
-
}), 128))
|
|
83
|
-
])) : createCommentVNode("", true)
|
|
84
|
-
]);
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
var StoryListFolder = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1a78012e"]]);
|
|
89
|
-
export { StoryListFolder as default };
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { pushScopeId, popScopeId, defineComponent, useCssVars, unref, computed, ref, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, normalizeClass, toDisplayString, createCommentVNode } from "@histoire/vendors/dist/client/vue.js";
|
|
2
|
-
import BaseListItemLink from "../base/BaseListItemLink.js";
|
|
3
|
-
import { Icon } from "@histoire/vendors/dist/client/iconify.js";
|
|
4
|
-
import { useRoute } from "@histoire/vendors/dist/client/vue-router.js";
|
|
5
|
-
import { useScrollOnActive } from "../../util/scroll.js";
|
|
6
|
-
import "./StoryListItem.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-1b0b957a"), n = n(), popScopeId(), n);
|
|
9
|
-
const _hoisted_1 = { class: "bind-tree-margin htw-flex htw-items-center htw-gap-2 htw-pl-4 htw-min-w-0" };
|
|
10
|
-
const _hoisted_2 = { class: "htw-truncate" };
|
|
11
|
-
const _hoisted_3 = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "htw-opacity-40 htw-text-sm"
|
|
14
|
-
};
|
|
15
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
|
-
name: "StoryListItem",
|
|
17
|
-
props: {
|
|
18
|
-
story: null,
|
|
19
|
-
depth: { default: 0 }
|
|
20
|
-
},
|
|
21
|
-
setup(__props) {
|
|
22
|
-
const props = __props;
|
|
23
|
-
useCssVars((_ctx) => ({
|
|
24
|
-
"2101d9b6": unref(filePadding),
|
|
25
|
-
"0fbedaf2": __props.story.iconColor
|
|
26
|
-
}));
|
|
27
|
-
const filePadding = computed(() => {
|
|
28
|
-
return props.depth * 12 + "px";
|
|
29
|
-
});
|
|
30
|
-
const route = useRoute();
|
|
31
|
-
const isActive = computed(() => route.params.storyId === props.story.id);
|
|
32
|
-
const el = ref();
|
|
33
|
-
useScrollOnActive(isActive, el);
|
|
34
|
-
return (_ctx, _cache) => {
|
|
35
|
-
return openBlock(), createElementBlock("div", {
|
|
36
|
-
ref_key: "el",
|
|
37
|
-
ref: el,
|
|
38
|
-
"data-test-id": "story-list-item"
|
|
39
|
-
}, [
|
|
40
|
-
createVNode(BaseListItemLink, {
|
|
41
|
-
to: {
|
|
42
|
-
name: "story",
|
|
43
|
-
params: {
|
|
44
|
-
storyId: __props.story.id
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
class: "htw-pl-0.5 htw-pr-2 htw-py-2 md:htw-py-1.5 htw-mx-1 htw-rounded-sm"
|
|
48
|
-
}, {
|
|
49
|
-
default: withCtx(({ active }) => {
|
|
50
|
-
var _a;
|
|
51
|
-
return [
|
|
52
|
-
createElementVNode("span", _hoisted_1, [
|
|
53
|
-
createVNode(unref(Icon), {
|
|
54
|
-
icon: (_a = __props.story.icon) != null ? _a : "carbon:cube",
|
|
55
|
-
class: normalizeClass(["base-list-item-link-icon htw-w-5 htw-h-5 sm:htw-w-4 sm:htw-h-4 htw-flex-none", {
|
|
56
|
-
"htw-text-primary-500": !active && !__props.story.iconColor,
|
|
57
|
-
"bind-icon-color": !active && __props.story.iconColor
|
|
58
|
-
}])
|
|
59
|
-
}, null, 8, ["icon", "class"]),
|
|
60
|
-
createElementVNode("span", _hoisted_2, toDisplayString(__props.story.title), 1)
|
|
61
|
-
]),
|
|
62
|
-
!__props.story.docsOnly ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.story.variants.length), 1)) : createCommentVNode("", true)
|
|
63
|
-
];
|
|
64
|
-
}),
|
|
65
|
-
_: 1
|
|
66
|
-
}, 8, ["to"])
|
|
67
|
-
], 512);
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
var StoryListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1b0b957a"]]);
|
|
72
|
-
export { StoryListItem as default };
|
package/dist/bundled/index.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import "$histoire-theme";
|
|
2
|
-
import { createApp } from "@histoire/vendors/dist/client/vue.js";
|
|
3
|
-
import { createPinia } from "@histoire/vendors/dist/client/pinia.js";
|
|
4
|
-
import { FloatingVue } from "@histoire/vendors/dist/client/floating-vue.js";
|
|
5
|
-
import _sfc_main from "./App.js";
|
|
6
|
-
import { router } from "./router.js";
|
|
7
|
-
function mountMainApp() {
|
|
8
|
-
const app = createApp(_sfc_main);
|
|
9
|
-
app.use(createPinia());
|
|
10
|
-
app.use(FloatingVue, {
|
|
11
|
-
overflowPadding: 4,
|
|
12
|
-
arrowPadding: 8,
|
|
13
|
-
themes: {
|
|
14
|
-
tooltip: {
|
|
15
|
-
distance: 8
|
|
16
|
-
},
|
|
17
|
-
dropdown: {
|
|
18
|
-
computeTransformOrigin: true,
|
|
19
|
-
distance: 8
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
app.use(router);
|
|
24
|
-
app.mount("#app");
|
|
25
|
-
if (import.meta.hot) {
|
|
26
|
-
import.meta.hot.send("histoire:mount", {});
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
export { mountMainApp };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
function parse_option(a, b) {
|
|
2
|
-
return typeof a == "undefined" ? b : a;
|
|
3
|
-
}
|
|
4
|
-
function create_object_array(a) {
|
|
5
|
-
const b = Array(a);
|
|
6
|
-
for (let c = 0; c < a; c++)
|
|
7
|
-
b[c] = create_object();
|
|
8
|
-
return b;
|
|
9
|
-
}
|
|
10
|
-
function create_arrays(a) {
|
|
11
|
-
const b = Array(a);
|
|
12
|
-
for (let c = 0; c < a; c++)
|
|
13
|
-
b[c] = [];
|
|
14
|
-
return b;
|
|
15
|
-
}
|
|
16
|
-
function get_keys(a) {
|
|
17
|
-
return Object.keys(a);
|
|
18
|
-
}
|
|
19
|
-
function create_object() {
|
|
20
|
-
return /* @__PURE__ */ Object.create(null);
|
|
21
|
-
}
|
|
22
|
-
function concat(a) {
|
|
23
|
-
return [].concat.apply([], a);
|
|
24
|
-
}
|
|
25
|
-
function sort_by_length_down(c, a) {
|
|
26
|
-
return a.length - c.length;
|
|
27
|
-
}
|
|
28
|
-
function is_array(a) {
|
|
29
|
-
return a.constructor === Array;
|
|
30
|
-
}
|
|
31
|
-
function is_string(a) {
|
|
32
|
-
return typeof a == "string";
|
|
33
|
-
}
|
|
34
|
-
function is_object(a) {
|
|
35
|
-
return typeof a == "object";
|
|
36
|
-
}
|
|
37
|
-
function is_function(a) {
|
|
38
|
-
return typeof a == "function";
|
|
39
|
-
}
|
|
40
|
-
export { concat, create_arrays, create_object, create_object_array, get_keys, is_array, is_function, is_object, is_string, parse_option, sort_by_length_down };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
const filter = ["a", "about", "above", "after", "again", "against", "all", "also", "am", "an", "and", "any", "are", "aren't", "as", "at", "be", "because", "been", "before", "being", "below", "both", "but", "by", "can", "cannot", "can't", "come", "could", "couldn't", "did", "didn't", "do", "does", "doesn't", "doing", "dont", "down", "during", "each", "even", "few", "first", "for", "from", "further", "get", "go", "had", "hadn't", "has", "hasn't", "have", "haven't", "having", "he", "hed", "her", "here", "here's", "hers", "herself", "hes", "him", "himself", "his", "how", "how's", "i", "id", "if", "ill", "im", "in", "into", "is", "isn't", "it", "it's", "itself", "i've", "just", "know", "let's", "like", "make", "me", "more", "most", "mustn't", "my", "myself", "new", "no", "nor", "not", "now", "of", "off", "on", "once", "only", "or", "other", "ought", "our", "our's", "ourselves", "out", "over", "own", "same", "say", "see", "shan't", "she", "she'd", "shell", "shes", "should", "shouldn't", "so", "some", "such", "than", "that", "that's", "the", "their", "theirs", "them", "themselves", "then", "there", "there's", "these", "they", "they'd", "they'll", "they're", "they've", "this", "those", "through", "time", "to", "too", "until", "up", "us", "very", "want", "was", "wasn't", "way", "we", "wed", "well", "were", "weren't", "we've", "what", "what's", "when", "when's", "where", "where's", "which", "while", "who", "whom", "who's", "why", "why's", "will", "with", "won't", "would", "wouldn't", "you", "you'd", "you'll", "your", "you're", "your's", "yourself", "yourselves", "you've"];
|
|
2
|
-
const stemmer = { ational: "ate", iveness: "ive", fulness: "ful", ousness: "ous", ization: "ize", tional: "tion", biliti: "ble", icate: "ic", ative: "", alize: "al", iciti: "ic", entli: "ent", ousli: "ous", alism: "al", ation: "ate", aliti: "al", iviti: "ive", ement: "", enci: "ence", anci: "ance", izer: "ize", alli: "al", ator: "ate", logi: "log", ical: "ic", ance: "", ence: "", ness: "", able: "", ible: "", ment: "", eli: "e", bli: "ble", ful: "", ant: "", ent: "", ism: "", ate: "", iti: "", ous: "", ive: "", ize: "", al: "", ou: "", er: "", ic: "" };
|
|
3
|
-
const matcher = {};
|
|
4
|
-
var language = { filter, stemmer, matcher };
|
|
5
|
-
export { language as default, filter, matcher, stemmer };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import "../../type.js";
|
|
2
|
-
import { regex, replace, collapse } from "../../lang.js";
|
|
3
|
-
import { encode as encode$1 } from "./balance.js";
|
|
4
|
-
const rtl = false;
|
|
5
|
-
const tokenize = "";
|
|
6
|
-
var charset = { encode, rtl: false, tokenize: "" };
|
|
7
|
-
const regex_ae = regex("ae"), regex_oe = regex("oe"), regex_sh = regex("sh"), regex_th = regex("th"), regex_ph = regex("ph"), regex_pf = regex("pf"), pairs = [regex_ae, "a", regex_oe, "o", regex_sh, "s", regex_th, "t", regex_ph, "f", regex_pf, "f", regex("(?![aeo])h(?![aeo])"), "", regex("(?!^[aeo])h(?!^[aeo])"), ""];
|
|
8
|
-
function encode(a, b) {
|
|
9
|
-
return a && (a = encode$1.call(this, a).join(" "), 2 < a.length && (a = replace(a, pairs)), !b && (1 < a.length && (a = collapse(a)), a && (a = a.split(" ")))), a;
|
|
10
|
-
}
|
|
11
|
-
export { charset as default, encode, rtl, tokenize };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import "../../type.js";
|
|
2
|
-
import { encode as encode$1 } from "./simple.js";
|
|
3
|
-
const rtl = false;
|
|
4
|
-
const tokenize = "strict";
|
|
5
|
-
var balance = { encode, rtl: false, tokenize: "strict" };
|
|
6
|
-
const regex_strip = /[^a-z0-9]+/, soundex = { b: "p", v: "f", w: "f", z: "s", x: "s", \u00DF: "s", d: "t", n: "m", c: "k", g: "k", j: "k", q: "k", i: "e", y: "e", u: "o" };
|
|
7
|
-
function encode(a) {
|
|
8
|
-
a = encode$1.call(this, a).join(" ");
|
|
9
|
-
const b = [];
|
|
10
|
-
if (a) {
|
|
11
|
-
const c = a.split(regex_strip), d = c.length;
|
|
12
|
-
for (let e, f = 0, g = 0; f < d; f++)
|
|
13
|
-
if ((a = c[f]) && (!this.filter || !this.filter[a])) {
|
|
14
|
-
e = a[0];
|
|
15
|
-
let c2 = soundex[e] || e, d2 = c2;
|
|
16
|
-
for (let b2 = 1; b2 < a.length; b2++) {
|
|
17
|
-
e = a[b2];
|
|
18
|
-
const f2 = soundex[e] || e;
|
|
19
|
-
f2 && f2 !== d2 && (c2 += f2, d2 = f2);
|
|
20
|
-
}
|
|
21
|
-
b[g++] = c2;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return b;
|
|
25
|
-
}
|
|
26
|
-
export { balance as default, encode, rtl, tokenize };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "../../type.js";
|
|
2
|
-
import { regex, pipeline, normalize, regex_whitespace } from "../../lang.js";
|
|
3
|
-
const rtl = false;
|
|
4
|
-
const tokenize = "";
|
|
5
|
-
var simple = { encode, rtl: false, tokenize: "" };
|
|
6
|
-
const regex_a = regex("[\xE0\xE1\xE2\xE3\xE4\xE5]"), regex_e = regex("[\xE8\xE9\xEA\xEB]"), regex_i = regex("[\xEC\xED\xEE\xEF]"), regex_o = regex("[\xF2\xF3\xF4\xF5\xF6\u0151]"), regex_u = regex("[\xF9\xFA\xFB\xFC\u0171]"), regex_y = regex("[\xFD\u0177\xFF]"), regex_n = regex("\xF1"), regex_c = regex("[\xE7c]"), regex_s = regex("\xDF"), regex_and = regex(" & "), pairs = [regex_a, "a", regex_e, "e", regex_i, "i", regex_o, "o", regex_u, "u", regex_y, "y", regex_n, "n", regex_c, "k", regex_s, "s", regex_and, " and "];
|
|
7
|
-
function encode(a) {
|
|
8
|
-
return a = "" + a, pipeline.call(this, normalize(a).toLowerCase(), !a.normalize && pairs, regex_whitespace, false);
|
|
9
|
-
}
|
|
10
|
-
export { simple as default, encode, rtl, tokenize };
|