@dxtmisha/scripts 0.11.8 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +77 -0
- package/ai-resources/componentMaterials.md +19 -0
- package/ai-resources/componentPrompt.md +381 -0
- package/ai-resources/componentWiki.md +13 -0
- package/bin/arguments.ts +168 -0
- package/bin/build-packages.ts +34 -3
- package/bin/build-publish-packages.ts +12 -2
- package/bin/design-component.ts +7 -1
- package/bin/design-constructor.ts +22 -3
- package/bin/design-figma.ts +26 -4
- package/bin/design-flags.ts +14 -2
- package/bin/design-library.ts +7 -1
- package/bin/design-package.ts +29 -5
- package/bin/design-prompt.ts +27 -3
- package/bin/design-screenshot.ts +12 -2
- package/bin/design-types-save.ts +32 -5
- package/bin/design-types.ts +32 -6
- package/bin/design-ui.ts +21 -3
- package/bin/design-wiki-storm.ts +11 -3
- package/dist/AiZAi-BiLAcdFy.js +232 -0
- package/dist/PropertiesConfig-BKZz_FWW.js +262 -0
- package/{src/config.ts → dist/config.d.ts} +185 -158
- package/dist/config.js +20 -0
- package/dist/figmaApiTypes-CArSsNW8.js +6 -0
- package/dist/library-ai.d.ts +482 -0
- package/dist/library-ai.js +2 -0
- package/dist/library-figma.d.ts +462 -0
- package/dist/library-figma.js +75 -0
- package/dist/library-ui.d.ts +586 -0
- package/dist/library-ui.js +3760 -0
- package/dist/library.d.ts +4910 -0
- package/dist/library.js +1568 -0
- package/dist/propertyTypes-C64u6rT3.js +236 -0
- package/package.json +76 -27
- package/bin/ai-doc.ts +0 -7
- package/bin/build-functional.ts +0 -5
- package/bin/design-component-wiki.ts +0 -11
- package/src/classes/Ai/AiAbstract.ts +0 -242
- package/src/classes/Ai/AiClaude.ts +0 -26
- package/src/classes/Ai/AiClaudeAgent.ts +0 -16
- package/src/classes/Ai/AiClaudeAgentLite.ts +0 -86
- package/src/classes/Ai/AiClaudeCli.ts +0 -24
- package/src/classes/Ai/AiClaudeCliLite.ts +0 -108
- package/src/classes/Ai/AiClaudeLite.ts +0 -112
- package/src/classes/Ai/AiDoc.ts +0 -81
- package/src/classes/Ai/AiDocItem.ts +0 -27
- package/src/classes/Ai/AiDocItemAbstract.ts +0 -209
- package/src/classes/Ai/AiDocItemClasses.ts +0 -27
- package/src/classes/Ai/AiDocItemComposables.ts +0 -20
- package/src/classes/Ai/AiDocType.ts +0 -45
- package/src/classes/Ai/AiGoogle.ts +0 -26
- package/src/classes/Ai/AiGoogleCli.ts +0 -24
- package/src/classes/Ai/AiGoogleCliLite.ts +0 -108
- package/src/classes/Ai/AiGoogleLite.ts +0 -78
- package/src/classes/Ai/AiOpenAi.ts +0 -26
- package/src/classes/Ai/AiOpenAiLite.ts +0 -107
- package/src/classes/Ai/AiZAi.ts +0 -17
- package/src/classes/Ai/AiZAiLite.ts +0 -77
- package/src/classes/Ai/ApiTmp.ts +0 -43
- package/src/classes/BrowserItem.ts +0 -408
- package/src/classes/Build/BuildFunctional.ts +0 -54
- package/src/classes/Build/BuildPackages.ts +0 -137
- package/src/classes/Build/BuildPublishPackages.ts +0 -105
- package/src/classes/BuildItem.ts +0 -187
- package/src/classes/Component/ComponentCreator.ts +0 -45
- package/src/classes/Component/ComponentItem.ts +0 -161
- package/src/classes/Component/ComponentWiki.ts +0 -258
- package/src/classes/Component/ComponentWikiFile.ts +0 -138
- package/src/classes/Design/DesignCommand.ts +0 -243
- package/src/classes/Design/DesignComponent.ts +0 -824
- package/src/classes/Design/DesignConstructor.ts +0 -222
- package/src/classes/Design/DesignConstructors.ts +0 -101
- package/src/classes/Design/DesignFigma.ts +0 -61
- package/src/classes/Design/DesignFlags.ts +0 -215
- package/src/classes/Design/DesignReplace.ts +0 -672
- package/src/classes/Design/DesignScreenshot.ts +0 -140
- package/src/classes/Design/DesignStructure.ts +0 -201
- package/src/classes/Design/DesignStructureClasses.ts +0 -105
- package/src/classes/Design/DesignStructureItemAbstract.ts +0 -52
- package/src/classes/Design/DesignStructureRead.ts +0 -349
- package/src/classes/Design/DesignStructureStyles.ts +0 -45
- package/src/classes/Design/DesignTypes.ts +0 -94
- package/src/classes/Design/DesignTypesAi.ts +0 -135
- package/src/classes/Design/DesignTypesDescription.ts +0 -121
- package/src/classes/Design/DesignTypesMake.ts +0 -460
- package/src/classes/Design/DesignTypesMcp.ts +0 -90
- package/src/classes/Design/DesignTypesPrompts.ts +0 -332
- package/src/classes/Design/DesignTypescript.ts +0 -244
- package/src/classes/Design/DesignUi.ts +0 -143
- package/src/classes/Design/DesignWiki.ts +0 -52
- package/src/classes/Design/DesignWikiStorm.ts +0 -95
- package/src/classes/Design/DesignWikiStormItem.ts +0 -316
- package/src/classes/FigmaApi.ts +0 -190
- package/src/classes/Git/GitRead.ts +0 -261
- package/src/classes/Library/LibraryAiMcpItem.ts +0 -67
- package/src/classes/Library/LibraryAiPrompt.ts +0 -268
- package/src/classes/Library/LibraryAiPromptItem.ts +0 -331
- package/src/classes/Library/LibraryAiWiki.ts +0 -127
- package/src/classes/Library/LibraryAiWikiItem.ts +0 -79
- package/src/classes/Library/LibraryExport.ts +0 -167
- package/src/classes/Library/LibraryFlags.ts +0 -62
- package/src/classes/Library/LibraryItems.ts +0 -138
- package/src/classes/Library/LibraryList.ts +0 -189
- package/src/classes/Library/LibraryMedia.ts +0 -139
- package/src/classes/Library/LibraryPlugin.ts +0 -73
- package/src/classes/Library/LibraryTypes.ts +0 -130
- package/src/classes/Package/PackageFile.ts +0 -154
- package/src/classes/Package/PackageInit.ts +0 -54
- package/src/classes/Package/PackageItem.ts +0 -329
- package/src/classes/Properties/Properties.ts +0 -175
- package/src/classes/Properties/PropertiesCache.ts +0 -248
- package/src/classes/Properties/PropertiesConfig.ts +0 -213
- package/src/classes/Properties/PropertiesConvector.ts +0 -52
- package/src/classes/Properties/PropertiesFile.ts +0 -522
- package/src/classes/Properties/PropertiesImport.ts +0 -182
- package/src/classes/Properties/PropertiesItems.ts +0 -605
- package/src/classes/Properties/PropertiesKeys.ts +0 -121
- package/src/classes/Properties/PropertiesMain.ts +0 -138
- package/src/classes/Properties/PropertiesPalette.ts +0 -149
- package/src/classes/Properties/PropertiesPath.ts +0 -193
- package/src/classes/Properties/PropertiesScss.ts +0 -261
- package/src/classes/Properties/PropertiesSeparator.ts +0 -118
- package/src/classes/Properties/PropertiesSettings.ts +0 -104
- package/src/classes/Properties/PropertiesStandard.ts +0 -180
- package/src/classes/Properties/PropertiesTool.ts +0 -80
- package/src/classes/Properties/PropertiesTypes.ts +0 -147
- package/src/classes/Properties/PropertiesValues.ts +0 -75
- package/src/classes/Properties/PropertiesWrap.ts +0 -187
- package/src/classes/Properties/convector/convectorColor.ts +0 -27
- package/src/classes/Properties/convector/convectorFontFamilies.ts +0 -18
- package/src/classes/Properties/convector/convectorShadow.ts +0 -61
- package/src/classes/Properties/convector/convectorTypography.ts +0 -19
- package/src/classes/Properties/to/PropertiesToAbstract.ts +0 -51
- package/src/classes/Properties/to/PropertiesToAnimate.ts +0 -59
- package/src/classes/Properties/to/PropertiesToClass.ts +0 -49
- package/src/classes/Properties/to/PropertiesToClone.ts +0 -114
- package/src/classes/Properties/to/PropertiesToComponent.ts +0 -52
- package/src/classes/Properties/to/PropertiesToDrag.ts +0 -231
- package/src/classes/Properties/to/PropertiesToDuplicate.ts +0 -165
- package/src/classes/Properties/to/PropertiesToFull.ts +0 -36
- package/src/classes/Properties/to/PropertiesToLink.ts +0 -259
- package/src/classes/Properties/to/PropertiesToMedia.ts +0 -187
- package/src/classes/Properties/to/PropertiesToMulti.ts +0 -101
- package/src/classes/Properties/to/PropertiesToNone.ts +0 -46
- package/src/classes/Properties/to/PropertiesToPalette.ts +0 -241
- package/src/classes/Properties/to/PropertiesToProperty.ts +0 -31
- package/src/classes/Properties/to/PropertiesToRemove.ts +0 -33
- package/src/classes/Properties/to/PropertiesToReplace.ts +0 -77
- package/src/classes/Properties/to/PropertiesToRoot.ts +0 -40
- package/src/classes/Properties/to/PropertiesToSimilar.ts +0 -128
- package/src/classes/Properties/to/PropertiesToSort.ts +0 -146
- package/src/classes/Properties/to/PropertiesToState.ts +0 -65
- package/src/classes/Properties/to/PropertiesToStyle.ts +0 -52
- package/src/classes/Properties/to/PropertiesToSub.ts +0 -95
- package/src/classes/Properties/to/PropertiesToSubclass.ts +0 -76
- package/src/classes/Properties/to/PropertiesToVar.ts +0 -194
- package/src/classes/Properties/to/PropertiesToVariable.ts +0 -176
- package/src/classes/Styles/Styles.ts +0 -247
- package/src/classes/Styles/StylesClasses.ts +0 -86
- package/src/classes/Styles/StylesProperties.ts +0 -197
- package/src/classes/Styles/StylesRoot.ts +0 -103
- package/src/classes/Styles/StylesTool.ts +0 -112
- package/src/classes/Styles/to/StylesToAbstract.ts +0 -93
- package/src/classes/Styles/to/StylesToAnimate.ts +0 -19
- package/src/classes/Styles/to/StylesToClass.ts +0 -25
- package/src/classes/Styles/to/StylesToClassFull.ts +0 -19
- package/src/classes/Styles/to/StylesToContainer.ts +0 -24
- package/src/classes/Styles/to/StylesToMedia.ts +0 -19
- package/src/classes/Styles/to/StylesToProperty.ts +0 -123
- package/src/classes/Styles/to/StylesToRoot.ts +0 -14
- package/src/classes/Styles/to/StylesToSelector.ts +0 -71
- package/src/classes/Styles/to/StylesToVar.ts +0 -105
- package/src/classes/Styles/to/StylesToVirtual.ts +0 -33
- package/src/composables/useAi.ts +0 -38
- package/src/demo/ai.ts +0 -10
- package/src/functions/getComponentPaths.ts +0 -13
- package/src/functions/getConfigAi.ts +0 -14
- package/src/functions/getConstructorProperties.ts +0 -54
- package/src/functions/getDirname.ts +0 -17
- package/src/functions/getNameDirByPaths.ts +0 -16
- package/src/functions/getPackageJson.ts +0 -19
- package/src/functions/hasNativeDirname.ts +0 -8
- package/src/functions/run.ts +0 -47
- package/src/functions/toPathStandardSep.ts +0 -14
- package/src/library-ai.ts +0 -10
- package/src/library.ts +0 -73
- package/src/media/ai/ai-doc-types.ts +0 -21
- package/src/media/properties/css.ts +0 -634
- package/src/media/properties/cssSelector.ts +0 -74
- package/src/media/properties/cssVirtual.ts +0 -12
- package/src/media/properties/listSort.ts +0 -113
- package/src/media/properties/style.ts +0 -81
- package/src/media/templates/component/DesignComponent.mdx +0 -30
- package/src/media/templates/component/DesignComponent.stories.ts +0 -34
- package/src/media/templates/component/DesignComponent.vue +0 -54
- package/src/media/templates/component/DesignComponentAiWiki.vue +0 -25
- package/src/media/templates/component/index.ts +0 -13
- package/src/media/templates/component/props.ts +0 -27
- package/src/media/templates/component/styleToken.scss +0 -17
- package/src/media/templates/component/wiki.ts +0 -13
- package/src/media/templates/component/wikiData.ts +0 -28
- package/src/media/templates/componentDoc/ComponentDoc.vue +0 -26
- package/src/media/templates/componentDoc/index.ts +0 -12
- package/src/media/templates/componentDoc/materials/README.md +0 -8
- package/src/media/templates/componentDoc/materials/prompt.md +0 -38
- package/src/media/templates/componentDoc/subcomponents/_.gitignore.txt +0 -0
- package/src/media/templates/componentDoc/types.ts +0 -15
- package/src/media/templates/componentDoc/wiki/ComponentDoc.mdx +0 -13
- package/src/media/templates/componentDoc/wiki/ComponentDoc.stories.ts +0 -24
- package/src/media/templates/componentDoc/wiki/prompt.md +0 -41
- package/src/media/templates/constructors/Constructors.ts +0 -33
- package/src/media/templates/constructors/ConstructorsDesign.tsx +0 -129
- package/src/media/templates/constructors/basicTypes.ts +0 -0
- package/src/media/templates/constructors/index.ts +0 -5
- package/src/media/templates/constructors/props.ts +0 -28
- package/src/media/templates/constructors/style.scss +0 -5
- package/src/media/templates/constructors/types.ts +0 -47
- package/src/media/templates/packages/figma/README.md +0 -1
- package/src/media/templates/packages/figma/_.gitignore.txt +0 -29
- package/src/media/templates/packages/figma/ai.sample.config.ts +0 -2
- package/src/media/templates/packages/figma/design.config.json +0 -3
- package/src/media/templates/packages/figma/index.html +0 -12
- package/src/media/templates/packages/figma/manifest.json +0 -25
- package/src/media/templates/packages/figma/package.json +0 -37
- package/src/media/templates/packages/figma/src/App.vue +0 -9
- package/src/media/templates/packages/figma/src/classes/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/code.ts +0 -16
- package/src/media/templates/packages/figma/src/components/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/composables/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/config.ts +0 -0
- package/src/media/templates/packages/figma/src/functions/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/library.ts +0 -0
- package/src/media/templates/packages/figma/src/main.ts +0 -4
- package/src/media/templates/packages/figma/src/media/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/storybook/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/types/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/vite-env.d.ts +0 -1
- package/src/media/templates/packages/figma/tsconfig.app.json +0 -12
- package/src/media/templates/packages/figma/tsconfig.json +0 -7
- package/src/media/templates/packages/figma/tsconfig.node.json +0 -8
- package/src/media/templates/packages/figma/vite.config.ts +0 -7
- package/src/media/templates/packages/library/README.md +0 -1
- package/src/media/templates/packages/library/_.gitignore.txt +0 -27
- package/src/media/templates/packages/library/ai-description.md +0 -15
- package/src/media/templates/packages/library/design.config.json +0 -3
- package/src/media/templates/packages/library/index.html +0 -12
- package/src/media/templates/packages/library/materials/README.md +0 -8
- package/src/media/templates/packages/library/materials/prompt.md +0 -45
- package/src/media/templates/packages/library/package.json +0 -46
- package/src/media/templates/packages/library/src/App.vue +0 -8
- package/src/media/templates/packages/library/src/classes/_.gitignore.txt +0 -1
- package/src/media/templates/packages/library/src/components/_.gitignore.txt +0 -1
- package/src/media/templates/packages/library/src/composables/_.gitignore.txt +0 -1
- package/src/media/templates/packages/library/src/functions/_.gitignore.txt +0 -1
- package/src/media/templates/packages/library/src/library.ts +0 -0
- package/src/media/templates/packages/library/src/main.ts +0 -6
- package/src/media/templates/packages/library/src/style.scss +0 -0
- package/src/media/templates/packages/library/src/types/_.gitignore.txt +0 -1
- package/src/media/templates/packages/library/src/vite-env.d.ts +0 -1
- package/src/media/templates/packages/library/tsconfig.app.json +0 -11
- package/src/media/templates/packages/library/tsconfig.json +0 -7
- package/src/media/templates/packages/library/tsconfig.node.json +0 -7
- package/src/media/templates/packages/library/vite.config.ts +0 -14
- package/src/media/templates/packages/nitro/README.md +0 -1
- package/src/media/templates/packages/nitro/_.gitignore.txt +0 -28
- package/src/media/templates/packages/nitro/index.html +0 -2
- package/src/media/templates/packages/nitro/package.json +0 -25
- package/src/media/templates/packages/nitro/server/plugins/ui-plugin.ts +0 -7
- package/src/media/templates/packages/nitro/server/routes/api/hello.ts +0 -13
- package/src/media/templates/packages/nitro/src/App.vue +0 -10
- package/src/media/templates/packages/nitro/src/assets/_.gitignore.txt +0 -0
- package/src/media/templates/packages/nitro/src/components/_.gitignore.txt +0 -0
- package/src/media/templates/packages/nitro/src/composables/_.gitignore.txt +0 -0
- package/src/media/templates/packages/nitro/src/entry-client.ts +0 -13
- package/src/media/templates/packages/nitro/src/entry-server.ts +0 -29
- package/src/media/templates/packages/nitro/src/main.ts +0 -14
- package/src/media/templates/packages/nitro/src/pages/HomePage.vue +0 -8
- package/src/media/templates/packages/nitro/src/router.ts +0 -11
- package/src/media/templates/packages/nitro/src/style.scss +0 -0
- package/src/media/templates/packages/nitro/src/templates/main.html +0 -21
- package/src/media/templates/packages/nitro/src/vite-env.d.ts +0 -11
- package/src/media/templates/packages/nitro/tsconfig.app.json +0 -14
- package/src/media/templates/packages/nitro/tsconfig.json +0 -7
- package/src/media/templates/packages/nitro/tsconfig.node.json +0 -12
- package/src/media/templates/packages/nitro/vite.config.ts +0 -17
- package/src/media/templates/packages/project/README.md +0 -1
- package/src/media/templates/packages/project/_.gitignore.txt +0 -28
- package/src/media/templates/packages/project/design.config.json +0 -3
- package/src/media/templates/packages/project/index.html +0 -12
- package/src/media/templates/packages/project/materials/README.md +0 -8
- package/src/media/templates/packages/project/materials/prompt.md +0 -41
- package/src/media/templates/packages/project/package.json +0 -13
- package/src/media/templates/packages/project/public/_.gitignore.txt +0 -0
- package/src/media/templates/packages/project/src/App.vue +0 -12
- package/src/media/templates/packages/project/src/assets/_.gitignore.txt +0 -0
- package/src/media/templates/packages/project/src/components/_.gitignore.txt +0 -0
- package/src/media/templates/packages/project/src/composables/_.gitignore.txt +0 -0
- package/src/media/templates/packages/project/src/main.ts +0 -6
- package/src/media/templates/packages/project/src/style.scss +0 -0
- package/src/media/templates/packages/project/src/vite-env.d.ts +0 -1
- package/src/media/templates/packages/project/tsconfig.app.json +0 -11
- package/src/media/templates/packages/project/tsconfig.json +0 -7
- package/src/media/templates/packages/project/tsconfig.node.json +0 -7
- package/src/media/templates/packages/project/vite.config.ts +0 -7
- package/src/media/templates/prompts/aiCodeGlobalPrompt.en.md +0 -22
- package/src/media/templates/prompts/aiCodeGlobalPrompt.ru.md +0 -21
- package/src/media/templates/prompts/aiCodeVuePrompt.en.md +0 -17
- package/src/media/templates/prompts/aiCodeVuePrompt.ru.md +0 -17
- package/src/media/templates/prompts/aiDocClassPrompt.en.txt +0 -63
- package/src/media/templates/prompts/aiDocClassPrompt.ru.txt +0 -63
- package/src/media/templates/prompts/aiDocComposablePrompt.en.txt +0 -67
- package/src/media/templates/prompts/aiDocComposablePrompt.ru.txt +0 -67
- package/src/media/templates/prompts/aiDocFunctionPrompt.en.txt +0 -57
- package/src/media/templates/prompts/aiDocFunctionPrompt.ru.txt +0 -57
- package/src/media/templates/prompts/componentPrompt.en.txt +0 -182
- package/src/media/templates/prompts/componentPrompt.ru.txt +0 -182
- package/src/media/templates/prompts/demoClassEn.mdx +0 -111
- package/src/media/templates/prompts/demoClassRu.mdx +0 -111
- package/src/media/templates/prompts/demoComponentEn.mdx +0 -282
- package/src/media/templates/prompts/demoComponentRu.mdx +0 -282
- package/src/media/templates/prompts/demoComposableEn.mdx +0 -103
- package/src/media/templates/prompts/demoComposableRu.mdx +0 -103
- package/src/media/templates/prompts/demoDocEn.mdx +0 -30
- package/src/media/templates/prompts/demoDocRu.mdx +0 -30
- package/src/media/templates/viteComponentTemplateConfig.ts +0 -14
- package/src/types/aiTypes.ts +0 -19
- package/src/types/configTypes.ts +0 -69
- package/src/types/designTypes.ts +0 -167
- package/src/types/figmaApiTypes.ts +0 -337
- package/src/types/gitTypes.ts +0 -59
- package/src/types/libraryTypes.ts +0 -49
- package/src/types/propertyTypes.ts +0 -586
- package/src/types/screenshotTypes.ts +0 -55
- package/src/types/webTypes.ts +0 -134
- package/src/vite-env.d.ts +0 -1
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
export const cssSelector = [
|
|
2
|
-
// Selector
|
|
3
|
-
'root',
|
|
4
|
-
|
|
5
|
-
'dir', // который выбирает элементы на основе направления текста в них
|
|
6
|
-
'blank', // находит элементы, у которых либо вообще нет дочерних узлов, либо только пустые текстовые узлы
|
|
7
|
-
'empty', // находит любой элемент, у которого нет потомков
|
|
8
|
-
'is', // выбирает любой элемент, который может быть выбран одним из селекторов в этом списке
|
|
9
|
-
'has', // будут применены, если хотя бы один из относительных селекторов, переданных в качестве аргумента, соответствует хотя бы одному элементу
|
|
10
|
-
'where', // в качестве аргумента принимает список селекторов и выбирает только те элементы, которые могут быть выбраны из переданного списка
|
|
11
|
-
'not',
|
|
12
|
-
|
|
13
|
-
'first-child',
|
|
14
|
-
'first-of-type', // находит первого потомка своего типа среди детей родителя
|
|
15
|
-
'last-child',
|
|
16
|
-
'last-of-type',
|
|
17
|
-
'only-child', // находит любой элемент, являющийся единственным потомком родителя
|
|
18
|
-
'only-of-type',
|
|
19
|
-
'nth-child',
|
|
20
|
-
'nth-of-type',
|
|
21
|
-
'nth-col',
|
|
22
|
-
'nth-last-child',
|
|
23
|
-
'nth-last-of-type',
|
|
24
|
-
'nth-last-col',
|
|
25
|
-
|
|
26
|
-
'lang', // выбирает элементы основываясь на языке, на котором они определены
|
|
27
|
-
|
|
28
|
-
'target', // представляет уникальный элемент (целевой элемент) с подходящим id
|
|
29
|
-
'defined', // находит любой элемент, который был определён, включая любой стандартный элемент, встроенный в браузер
|
|
30
|
-
|
|
31
|
-
'current', // это временной псевдокласс, который представляет элемент или предка элемента, который отображается в данный момент
|
|
32
|
-
'future', // это временной псевдокласс, который будет соответствовать любому элементу, который появляется полностью после элемента, соответствующего
|
|
33
|
-
|
|
34
|
-
'host',
|
|
35
|
-
'host-context',
|
|
36
|
-
|
|
37
|
-
// Input
|
|
38
|
-
'placeholder-shown',
|
|
39
|
-
|
|
40
|
-
'autofill', // соответствует, когда значение input автоматически заполняется браузером
|
|
41
|
-
'default', // находит элемент формы, установленный по умолчанию для группы связанных элементов
|
|
42
|
-
|
|
43
|
-
'read-only',
|
|
44
|
-
'read-write', // находит элементы, доступные для редактирования пользователем, такие как текстовые поля
|
|
45
|
-
|
|
46
|
-
'required',
|
|
47
|
-
'optional', // находит любые <input> элементы, у которых не установлен атрибут required
|
|
48
|
-
|
|
49
|
-
'indeterminate', // находит элементы в неопределённом состоянии
|
|
50
|
-
|
|
51
|
-
'checked',
|
|
52
|
-
'in-range', // находит элементы, значение которых соответствует указанному для них диапазону ограничений
|
|
53
|
-
'out-of-range', // находит элементы, значение которых находится вне диапазона их ограничений
|
|
54
|
-
|
|
55
|
-
'valid',
|
|
56
|
-
'invalid', // находит любые input, контент которых не проходит валидацию
|
|
57
|
-
|
|
58
|
-
// Link
|
|
59
|
-
'any-link', // представляет собой элемент, который действует как исходный якорь гиперссылки, независимо от того, была ли она посещена
|
|
60
|
-
'link', // позволяет вам выбирать ссылки внутри элементов
|
|
61
|
-
'local-link', // собой ссылку на тот же документ
|
|
62
|
-
'visited', // позволяет вам выбирать ссылки, которые были посещены
|
|
63
|
-
|
|
64
|
-
// Status
|
|
65
|
-
'fullscreen',
|
|
66
|
-
|
|
67
|
-
'focus',
|
|
68
|
-
'focus-visible',
|
|
69
|
-
'focus-within', // соответствует элементу, который находится в фокусе сам или содержит элемент, который находится в фокусе
|
|
70
|
-
'hover',
|
|
71
|
-
'active',
|
|
72
|
-
'enabled', // находит любой включённый элемент
|
|
73
|
-
'disabled'
|
|
74
|
-
]
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export const cssVirtual = [
|
|
2
|
-
'before',
|
|
3
|
-
'after',
|
|
4
|
-
|
|
5
|
-
'placeholder',
|
|
6
|
-
'marker', // применяет стили к маркеру элемента списка, которые обычно содержит значок или номер
|
|
7
|
-
|
|
8
|
-
'first-letter', // применяет стили к первой букве первой строки
|
|
9
|
-
'first-line', // применяет стили к первой строке блочного элемента
|
|
10
|
-
|
|
11
|
-
'selection' // позволяет применить стили к части документа, который был выделен пользователем
|
|
12
|
-
]
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import type { Item } from '@dxtmisha/functional-basic'
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
PropertyCategory,
|
|
5
|
-
PropertyType
|
|
6
|
-
} from '../../types/propertyTypes'
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
cssBackgrounds,
|
|
10
|
-
cssBorder,
|
|
11
|
-
cssColor,
|
|
12
|
-
cssColumns,
|
|
13
|
-
cssContent,
|
|
14
|
-
cssDeprecated,
|
|
15
|
-
cssDifferent,
|
|
16
|
-
cssEffects,
|
|
17
|
-
cssExperimental,
|
|
18
|
-
cssFlexbox,
|
|
19
|
-
cssInteractivity,
|
|
20
|
-
cssLayout,
|
|
21
|
-
cssMath,
|
|
22
|
-
cssOther,
|
|
23
|
-
cssPrint,
|
|
24
|
-
cssScrolls,
|
|
25
|
-
cssSizing,
|
|
26
|
-
cssSpacing,
|
|
27
|
-
cssSVG,
|
|
28
|
-
cssTables,
|
|
29
|
-
cssTransforms,
|
|
30
|
-
cssTransitions,
|
|
31
|
-
cssTypography
|
|
32
|
-
} from './css'
|
|
33
|
-
import { cssSelector } from './cssSelector'
|
|
34
|
-
import { cssVirtual } from './cssVirtual'
|
|
35
|
-
|
|
36
|
-
export const sortList: Item<string[][]>[] = [
|
|
37
|
-
{
|
|
38
|
-
index: PropertyType.var,
|
|
39
|
-
value: []
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
index: PropertyType.property,
|
|
43
|
-
value: [
|
|
44
|
-
cssLayout,
|
|
45
|
-
cssFlexbox,
|
|
46
|
-
cssColumns,
|
|
47
|
-
cssSpacing,
|
|
48
|
-
cssSizing,
|
|
49
|
-
cssContent,
|
|
50
|
-
cssTypography,
|
|
51
|
-
cssMath,
|
|
52
|
-
cssColor,
|
|
53
|
-
cssBackgrounds,
|
|
54
|
-
cssBorder,
|
|
55
|
-
cssEffects,
|
|
56
|
-
cssTransforms,
|
|
57
|
-
cssTables,
|
|
58
|
-
cssTransitions,
|
|
59
|
-
cssInteractivity,
|
|
60
|
-
cssScrolls,
|
|
61
|
-
cssSVG,
|
|
62
|
-
cssPrint,
|
|
63
|
-
cssOther,
|
|
64
|
-
cssExperimental,
|
|
65
|
-
cssDifferent,
|
|
66
|
-
cssDeprecated
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
index: PropertyType.virtual,
|
|
71
|
-
value: [
|
|
72
|
-
cssVirtual
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
index: PropertyType.subclass,
|
|
77
|
-
value: []
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
index: PropertyType.selector,
|
|
81
|
-
value: [
|
|
82
|
-
cssSelector
|
|
83
|
-
]
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
index: PropertyType.state,
|
|
87
|
-
value: []
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
index: `category-${PropertyCategory.theme}`,
|
|
91
|
-
value: []
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
index: `category-${PropertyCategory.class}`,
|
|
95
|
-
value: []
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
index: PropertyType.classType,
|
|
99
|
-
value: []
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
index: PropertyType.component,
|
|
103
|
-
value: []
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
index: PropertyType.scss,
|
|
107
|
-
value: []
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
index: PropertyType.other,
|
|
111
|
-
value: []
|
|
112
|
-
}
|
|
113
|
-
]
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
export const styleTypes: string[] = [
|
|
2
|
-
/* Flex */
|
|
3
|
-
'flex-position',
|
|
4
|
-
'flex-dynamic',
|
|
5
|
-
'justify-content',
|
|
6
|
-
|
|
7
|
-
/* Position */
|
|
8
|
-
'inset',
|
|
9
|
-
'horizon',
|
|
10
|
-
'vertically',
|
|
11
|
-
'left',
|
|
12
|
-
'right',
|
|
13
|
-
'absolute',
|
|
14
|
-
'absolute-top',
|
|
15
|
-
'absolute-bottom',
|
|
16
|
-
'absolute-after',
|
|
17
|
-
|
|
18
|
-
/* Padding */
|
|
19
|
-
'padding-x',
|
|
20
|
-
'padding-y',
|
|
21
|
-
'padding-left',
|
|
22
|
-
'padding-right',
|
|
23
|
-
|
|
24
|
-
/* Margin */
|
|
25
|
-
'margin-x',
|
|
26
|
-
'margin-y',
|
|
27
|
-
'margin-left',
|
|
28
|
-
'margin-right',
|
|
29
|
-
|
|
30
|
-
/* Dimension */
|
|
31
|
-
'width',
|
|
32
|
-
'height',
|
|
33
|
-
'width-basis',
|
|
34
|
-
'height-basis',
|
|
35
|
-
'aspect-ratio',
|
|
36
|
-
'aspect-ratio-width',
|
|
37
|
-
'aspect-ratio-height',
|
|
38
|
-
'squared',
|
|
39
|
-
'circle',
|
|
40
|
-
|
|
41
|
-
/* Font */
|
|
42
|
-
'font-size',
|
|
43
|
-
'line-height',
|
|
44
|
-
'text-align',
|
|
45
|
-
'text-overflow',
|
|
46
|
-
'clamp',
|
|
47
|
-
'text-select-none',
|
|
48
|
-
'text-case',
|
|
49
|
-
'paragraph-spacing',
|
|
50
|
-
|
|
51
|
-
/* Color */
|
|
52
|
-
'palette',
|
|
53
|
-
'palette-var',
|
|
54
|
-
'palette-color',
|
|
55
|
-
'palette-stroke',
|
|
56
|
-
'palette-background',
|
|
57
|
-
'palette-fill',
|
|
58
|
-
'palette-gradient',
|
|
59
|
-
'palette-border',
|
|
60
|
-
'color',
|
|
61
|
-
'color-opacity',
|
|
62
|
-
'stroke',
|
|
63
|
-
'stroke-opacity',
|
|
64
|
-
'background-color',
|
|
65
|
-
'background-opacity',
|
|
66
|
-
'background-size',
|
|
67
|
-
'fill',
|
|
68
|
-
'fill-opacity',
|
|
69
|
-
'gradient',
|
|
70
|
-
'gradient-opacity',
|
|
71
|
-
'border-color',
|
|
72
|
-
'border-opacity',
|
|
73
|
-
'outline-color',
|
|
74
|
-
'outline-opacity',
|
|
75
|
-
|
|
76
|
-
/* Transform */
|
|
77
|
-
'translate-x',
|
|
78
|
-
'translate-y',
|
|
79
|
-
'scale',
|
|
80
|
-
'rotate'
|
|
81
|
-
]
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {Canvas, Meta} from '@storybook/addon-docs/blocks'
|
|
2
|
-
import {
|
|
3
|
-
StorybookDescriptions,
|
|
4
|
-
StorybookMain
|
|
5
|
-
} from '@dxtmisha/wiki/storybook'
|
|
6
|
-
|
|
7
|
-
import * as Component from './DesignComponent.stories'
|
|
8
|
-
import {ComponentWikiStorybook} from './wiki'
|
|
9
|
-
|
|
10
|
-
[//]: # (:documentation-import [!] System label / Системная метка)
|
|
11
|
-
[//]: # (:documentation-import [!] System label / Системная метка)
|
|
12
|
-
|
|
13
|
-
<Meta of={Component}/>
|
|
14
|
-
<StorybookMain
|
|
15
|
-
name={ComponentWikiStorybook.getName()}
|
|
16
|
-
description={ComponentWikiStorybook.getDescription()}
|
|
17
|
-
story={Component.Component}
|
|
18
|
-
/>
|
|
19
|
-
|
|
20
|
-
[//]: # (:documentation-body [!] System label / Системная метка)
|
|
21
|
-
[//]: # (:documentation-body [!] System label / Системная метка)
|
|
22
|
-
|
|
23
|
-
[//]: # (:documentation-events [!] System label / Системная метка)
|
|
24
|
-
[//]: # (:documentation-events [!] System label / Системная метка)
|
|
25
|
-
|
|
26
|
-
[//]: # (:documentation-expose [!] System label / Системная метка)
|
|
27
|
-
[//]: # (:documentation-expose [!] System label / Системная метка)
|
|
28
|
-
|
|
29
|
-
[//]: # (:documentation-slots [!] System label / Системная метка)
|
|
30
|
-
[//]: # (:documentation-slots [!] System label / Системная метка)
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/vue3-vite'
|
|
2
|
-
|
|
3
|
-
import DesignComponent from './DesignComponent.vue'
|
|
4
|
-
// :component.once import { ComponentWikiStorybook } from './wiki'
|
|
5
|
-
|
|
6
|
-
// :story-import [!] System label / Системная метка
|
|
7
|
-
// :story-import [!] System label / Системная метка
|
|
8
|
-
|
|
9
|
-
const meta = {
|
|
10
|
-
// :component.once title: '[project]/Component',
|
|
11
|
-
// :component.once component: DesignComponent,
|
|
12
|
-
// :component.once parameters: {
|
|
13
|
-
// :component.once design: '[design]',
|
|
14
|
-
// :component.once docs: {
|
|
15
|
-
// :component.once description: {
|
|
16
|
-
// :component.once component: ComponentWikiStorybook.getDescription()
|
|
17
|
-
// :component.once }
|
|
18
|
-
// :component.once }
|
|
19
|
-
// :component.once },
|
|
20
|
-
// :component.once argTypes: ComponentWikiStorybook.getWiki(),
|
|
21
|
-
// :component.once args: ComponentWikiStorybook.getValues()
|
|
22
|
-
} satisfies Meta<typeof DesignComponent>
|
|
23
|
-
|
|
24
|
-
export default meta
|
|
25
|
-
|
|
26
|
-
type Story = StoryObj<typeof meta>
|
|
27
|
-
|
|
28
|
-
export const Component: Story = {
|
|
29
|
-
// :story-main [!] System label / Системная метка
|
|
30
|
-
// :story-main [!] System label / Системная метка
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// :story-items [!] System label / Системная метка
|
|
34
|
-
// :story-items [!] System label / Системная метка
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
// :component.once import { computed } from 'vue'
|
|
3
|
-
// :component.once import {
|
|
4
|
-
// :component.once inArray,
|
|
5
|
-
// :component.once isFilled,
|
|
6
|
-
// :component.once type ConstrClasses,
|
|
7
|
-
// :component.once type ConstrStyles
|
|
8
|
-
// :component.once } from '@dxtmisha/functional'
|
|
9
|
-
// :component.once import {
|
|
10
|
-
// :component.once ComponentDesign,
|
|
11
|
-
// :component.once type ComponentEmits,
|
|
12
|
-
// :component.once type ComponentSlots
|
|
13
|
-
// :component.once } from '@dxtmisha/constructor/Component'
|
|
14
|
-
|
|
15
|
-
// :component.once import { defaults, type ComponentProps, propsValues } from './props'
|
|
16
|
-
// :component.once import './styleToken.scss'
|
|
17
|
-
|
|
18
|
-
// :component.once defineOptions({
|
|
19
|
-
// :component.once name: 'DesignComponent'
|
|
20
|
-
// :component.once })
|
|
21
|
-
|
|
22
|
-
// :component.once const emits = defineEmits<ComponentEmits>()
|
|
23
|
-
// :component.once const props = withDefaults(defineProps<ComponentProps>(), defaults)
|
|
24
|
-
|
|
25
|
-
// :component.once const classesToken = computed<ConstrClasses>(() => ({
|
|
26
|
-
// :component.once main: {
|
|
27
|
-
// :component.once // :classes-values [!] System label / Системная метка
|
|
28
|
-
// :component.once // :classes-values [!] System label / Системная метка
|
|
29
|
-
// :component.once }
|
|
30
|
-
// :component.once }))
|
|
31
|
-
// :component.once const stylesToken = computed<ConstrStyles>(() => ({
|
|
32
|
-
// :component.once // :styles-values [!] System label / Системная метка
|
|
33
|
-
// :component.once // :styles-values [!] System label / Системная метка
|
|
34
|
-
// :component.once }))
|
|
35
|
-
|
|
36
|
-
// :component.once const design = new ComponentDesign(
|
|
37
|
-
// :component.once '[design].[component]',
|
|
38
|
-
// :component.once props,
|
|
39
|
-
// :component.once {
|
|
40
|
-
// :component.once emits,
|
|
41
|
-
// :component.once classes: classesToken,
|
|
42
|
-
// :component.once styles: stylesToken
|
|
43
|
-
// :component.once }
|
|
44
|
-
// :component.once )
|
|
45
|
-
|
|
46
|
-
// :component.once const render = design.render()
|
|
47
|
-
|
|
48
|
-
// :component.once defineSlots<ComponentSlots>()
|
|
49
|
-
// :component.once defineExpose(design.expose())
|
|
50
|
-
</script>
|
|
51
|
-
|
|
52
|
-
<!-- :component.once <template> -->
|
|
53
|
-
<!-- :component.once <render/> -->
|
|
54
|
-
<!-- :component.once </template> -->
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
// :component.once import { DxtTestWiki } from '@dxtmisha/test'
|
|
3
|
-
// :component.once import { DesignComponent } from './index'
|
|
4
|
-
// :component.once import { ComponentWikiStorybook } from './wiki'
|
|
5
|
-
|
|
6
|
-
// :component-import [!] System label / Системная метка
|
|
7
|
-
// :component-import [!] System label / Системная метка
|
|
8
|
-
|
|
9
|
-
defineOptions({
|
|
10
|
-
name: 'DesignComponentAiWiki'
|
|
11
|
-
})
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<!-- :component.once <template> -->
|
|
15
|
-
<!-- :component.once <DxtTestWiki -->
|
|
16
|
-
<!-- :component.once design="Design" -->
|
|
17
|
-
<!-- :component.once :wiki="ComponentWikiStorybook" -->
|
|
18
|
-
<!-- :component.once :component="DesignComponent" -->
|
|
19
|
-
<!-- :component.once > -->
|
|
20
|
-
<!-- :component-render [!] System label / Системная метка -->
|
|
21
|
-
<!-- :component-render [!] System label / Системная метка -->
|
|
22
|
-
<!-- :component.once </DxtTestWiki> -->
|
|
23
|
-
<!-- :component.once </template> -->
|
|
24
|
-
|
|
25
|
-
<style lang="scss"></style>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// :component.once import type { DefineSetupFnComponent, ShortEmitsToObject, SlotsType } from 'vue'
|
|
2
|
-
// :component.once import type { ComponentEmits, ComponentSlots } from '@dxtmisha/constructor/Component'
|
|
3
|
-
|
|
4
|
-
// :component.once import item from './DesignComponent.vue'
|
|
5
|
-
|
|
6
|
-
// :component.once import type { ComponentProps } from './props'
|
|
7
|
-
// :component.once export type { ComponentProps } from './props'
|
|
8
|
-
|
|
9
|
-
// :component.once export const DesignComponent: DefineSetupFnComponent<
|
|
10
|
-
// :component.once ComponentProps,
|
|
11
|
-
// :component.once ShortEmitsToObject<ComponentEmits>,
|
|
12
|
-
// :component.once SlotsType<ComponentSlots>
|
|
13
|
-
// :component.once > = item
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// :component.once import { type ComponentPropsBasic, defaultsComponent } from '@dxtmisha/constructor/Component'
|
|
2
|
-
|
|
3
|
-
export const propsValues = {
|
|
4
|
-
// :values [!] System label / Системная метка
|
|
5
|
-
// :values [!] System label / Системная метка
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
type PropsToken = {
|
|
9
|
-
// :type [!] System label / Системная метка
|
|
10
|
-
// :type [!] System label / Системная метка
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Type describing incoming properties/ Тип, описывающий входящие свойства
|
|
15
|
-
*/
|
|
16
|
-
export type ComponentProps = /* :component.once ComponentPropsBasic & */ PropsToken
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Default value for property/ Значение по умолчанию для свойства
|
|
20
|
-
*/
|
|
21
|
-
export const defaults: object = {
|
|
22
|
-
/* :component.once ...defaultsComponent, */
|
|
23
|
-
...{
|
|
24
|
-
// :default [!] System label / Системная метка
|
|
25
|
-
// :default [!] System label / Системная метка
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// :component.once @use "../../../styles/[project]/properties";
|
|
2
|
-
@use "@dxtmisha/styles/properties" as ui;
|
|
3
|
-
// :component.once @use "@dxtmisha/constructor/style.scss" as Component;
|
|
4
|
-
|
|
5
|
-
@include ui.initDesignBasic('[design].[component]') {
|
|
6
|
-
// Basic styles for a component
|
|
7
|
-
// Базовый стили для компонента
|
|
8
|
-
// :component.once @include Component.mixinComponent;
|
|
9
|
-
|
|
10
|
-
// Styles from tokens
|
|
11
|
-
// Стили из токенов
|
|
12
|
-
// :style [!] System label / Системная метка
|
|
13
|
-
// :style [!] System label / Системная метка
|
|
14
|
-
|
|
15
|
-
// Here are the user styles
|
|
16
|
-
// Здесь пользовательские стили
|
|
17
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// :component.once import { WikiStorybook } from '@dxtmisha/wiki'
|
|
2
|
-
// :component.once import { wiki, wikiDescriptions } from '@dxtmisha/wiki/media'
|
|
3
|
-
|
|
4
|
-
// :component.once import { ComponentWikiData } from './wikiData'
|
|
5
|
-
|
|
6
|
-
// :component.once export const ComponentWikiStorybook = new WikiStorybook(
|
|
7
|
-
// :component.once ComponentWikiData.component,
|
|
8
|
-
// :component.once ComponentWikiData.props,
|
|
9
|
-
// :component.once ComponentWikiData.defaults,
|
|
10
|
-
// :component.once ComponentWikiData.wikiDesign,
|
|
11
|
-
// :component.once wiki,
|
|
12
|
-
// :component.once wikiDescriptions
|
|
13
|
-
// :component.once )
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// :component.once import { type StorybookProps, type StorybookSlots, type WikiDataItem } from '@dxtmisha/wiki'
|
|
2
|
-
|
|
3
|
-
// :component.once import { wiki[Design] } from '../../../wiki/wiki'
|
|
4
|
-
// :component.once import { defaults } from './props'
|
|
5
|
-
|
|
6
|
-
// :component.once const propsNames: StorybookProps = [
|
|
7
|
-
// :component.once // :propsList [!] System label / Системная метка
|
|
8
|
-
// :component.once // :propsList [!] System label / Системная метка
|
|
9
|
-
// :component.once ]
|
|
10
|
-
|
|
11
|
-
// :component.once const slotsNames: StorybookSlots = [
|
|
12
|
-
// :component.once // :slotsList [!] System label / Системная метка
|
|
13
|
-
// :component.once // :slotsList [!] System label / Системная метка
|
|
14
|
-
// :component.once ]
|
|
15
|
-
|
|
16
|
-
// :component.once const eventsNames: StorybookSlots = [
|
|
17
|
-
// :component.once // :eventsList [!] System label / Системная метка
|
|
18
|
-
// :component.once // :eventsList [!] System label / Системная метка
|
|
19
|
-
// :component.once ]
|
|
20
|
-
|
|
21
|
-
// :component.once export const ComponentWikiData: WikiDataItem = {
|
|
22
|
-
// :component.once component: 'Component',
|
|
23
|
-
// :component.once props: propsNames,
|
|
24
|
-
// :component.once slots: slotsNames,
|
|
25
|
-
// :component.once events: eventsNames,
|
|
26
|
-
// :component.once defaults,
|
|
27
|
-
// :component.once wikiDesign: wiki[Design]
|
|
28
|
-
// :component.once }
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
ComponentDocDefaults,
|
|
4
|
-
type ComponentDocEmits,
|
|
5
|
-
type ComponentDocProps,
|
|
6
|
-
type ComponentDocSlots
|
|
7
|
-
} from './types'
|
|
8
|
-
|
|
9
|
-
defineOptions({
|
|
10
|
-
name: 'ComponentDoc'
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
withDefaults(defineProps<ComponentDocProps>(), ComponentDocDefaults)
|
|
14
|
-
defineEmits<ComponentDocEmits>()
|
|
15
|
-
defineSlots<ComponentDocSlots>()
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<template>
|
|
19
|
-
<div class="component-doc"></div>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<style lang="scss">
|
|
23
|
-
.component-doc {
|
|
24
|
-
// Your styles here
|
|
25
|
-
}
|
|
26
|
-
</style>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { DefineSetupFnComponent, ShortEmitsToObject, SlotsType } from 'vue'
|
|
2
|
-
import type { ComponentDocEmits, ComponentDocProps, ComponentDocSlots } from './types'
|
|
3
|
-
|
|
4
|
-
import item from './ComponentDoc.vue'
|
|
5
|
-
|
|
6
|
-
export type * from './types'
|
|
7
|
-
|
|
8
|
-
export const ComponentDoc: DefineSetupFnComponent<
|
|
9
|
-
ComponentDocProps,
|
|
10
|
-
ShortEmitsToObject<ComponentDocEmits>,
|
|
11
|
-
SlotsType<ComponentDocSlots>
|
|
12
|
-
> = item
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# Work Materials
|
|
2
|
-
|
|
3
|
-
This folder is designed to store all supporting design documents, component specifications, assets, research notes, and raw inputs utilized for generating high-quality component documentation and design integrations.
|
|
4
|
-
|
|
5
|
-
### Contents and Usage:
|
|
6
|
-
- Place design screenshots, layout diagrams, or visual references here.
|
|
7
|
-
- Place text drafts, API research files, or functional notes here.
|
|
8
|
-
- Keeping materials here helps maintain a centralized workspace context for AI agents and developers.
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# AI Prompt: Component Implementation & Development (Materials)
|
|
2
|
-
|
|
3
|
-
**Role Persona:**
|
|
4
|
-
You are a distinguished, world-class Senior Frontend Web Developer and Technical Architect. You write exceptionally clean, BEM-compliant, performant, and robust code adhering to the highest industry standards of production-ready software development.
|
|
5
|
-
|
|
6
|
-
**Task Goal:**
|
|
7
|
-
Based on the design assets, specifications, and other work materials located in this "materials" folder, you must implement a fully working, production-ready, and robust component.
|
|
8
|
-
|
|
9
|
-
**Work Materials & Assets ("materials" folder):**
|
|
10
|
-
This directory (the `materials` folder) contains all relevant design assets, technical specifications, screenshots, and other reference materials for implementing the component.
|
|
11
|
-
- **Mandatory Study**: You MUST locate, open, and deeply analyze all files and assets present inside this `materials` folder before beginning any implementation or modifying any code.
|
|
12
|
-
- Ensure the final component implementation perfectly matches the design layout, interactive states, and features specified in these materials.
|
|
13
|
-
|
|
14
|
-
**Component Location & Resolution:**
|
|
15
|
-
The component source files (including the main Vue component, styles, typings, and auxiliary code) are located one level up from this "materials" directory (in the parent folder containing this directory). You must locate, edit, or create them directly in that parent directory.
|
|
16
|
-
|
|
17
|
-
Template Structure & Explanations:
|
|
18
|
-
The target parent directory (one level up from this "materials" directory) represents a standardized Vue 3 component package/directory. You must study and strictly adhere to its file layout:
|
|
19
|
-
- `[ComponentName].vue`: The main Vue single-file component (SFC) implementing the layout template, script setup, and BEM-compliant SCSS rules (referencing `ComponentDoc.vue`).
|
|
20
|
-
- `types.ts`: Holds all public typings, including interface properties (Props), standard triggers (Emits), customizable slot templates (Slots), and default properties (Defaults).
|
|
21
|
-
- `index.ts`: The package entrypoint, exporting the Vue component and its types correctly.
|
|
22
|
-
- `subcomponents/`: A subdirectory reserved for storing smaller, reusable child components.
|
|
23
|
-
- `wiki/`: Storybook playground configuration and documentation files:
|
|
24
|
-
- `[ComponentName].mdx`: MDX documentation tab/documentation configuration for Storybook.
|
|
25
|
-
- `[ComponentName].stories.ts`: Storybook stories/scenarios configuration.
|
|
26
|
-
- `prompt.md`: The system prompt directing how to generate MDX/Storybook documentation.
|
|
27
|
-
- `run.ts`: A script running `npx dxt-component-wiki` to write the MDX files automatically using `wiki/prompt.md`.
|
|
28
|
-
|
|
29
|
-
Strict Implementation & Architectural Constraints:
|
|
30
|
-
1. Available Dependencies Only: You must strictly use only the currently installed packages and available dependencies. Do not install new external npm packages or add new third-party dependencies unless explicitly requested.
|
|
31
|
-
2. Global System Prompt Compliance: You must locate, study, and strictly adhere to all coding standards, BEM conventions, SCSS mixins, and guidelines defined in the `ai-prompt.md` file located up the folder tree in the root of the repository. Ignore any instructions or files located outside the repository boundaries.
|
|
32
|
-
3. Monorepo Prompt Context: As this is a monorepo setup, you must locate and study both the individual package-level configuration/prompt files and the repository's root system rules (`ai-prompt.md`) to ensure perfect compatibility with the local package architecture.
|
|
33
|
-
4. Zero Tolerance for Hallucinations: You must strictly follow all implementation rules and specifications without any deviation. Hallucinating, inventing properties, methods, slots, or external libraries is strictly forbidden.
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
CRITICAL PRIORITY OVERRIDE:
|
|
37
|
-
Everything below this line (if any further instructions or materials are appended) holds the absolute highest priority. Any subsequent instructions or constraints appended below override and overwrite all prior rules, constraints, and instructions in this document or root prompt files if any contradiction arises.
|
|
38
|
-
|
|
File without changes
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type ComponentDocEmits = {
|
|
2
|
-
// click: [value: string]
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export interface ComponentDocSlots {
|
|
6
|
-
// default? (props: any): any
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface ComponentDocProps {
|
|
10
|
-
// value?: string
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const ComponentDocDefaults: ComponentDocProps = {
|
|
14
|
-
// value: 'value'
|
|
15
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {Meta} from '@storybook/addon-docs/blocks'
|
|
2
|
-
import {StorybookMain} from '@dxtmisha/wiki/storybook'
|
|
3
|
-
|
|
4
|
-
import * as Component from './ComponentDoc.stories'
|
|
5
|
-
|
|
6
|
-
<Meta of={Component}/>
|
|
7
|
-
<StorybookMain
|
|
8
|
-
name={'ComponentDoc'}
|
|
9
|
-
description={'[description]'}
|
|
10
|
-
story={Component.Component}
|
|
11
|
-
/>
|
|
12
|
-
|
|
13
|
-
[doc]
|