@lukso/web-components 1.186.0 → 1.188.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/dist/components/lukso-alert/index.cjs +9 -1
- package/dist/components/lukso-alert/index.d.ts +4 -0
- package/dist/components/lukso-alert/index.d.ts.map +1 -1
- package/dist/components/lukso-alert/index.js +9 -1
- package/dist/components/lukso-alert/lukso-alert.stories.d.ts +7 -0
- package/dist/components/lukso-alert/lukso-alert.stories.d.ts.map +1 -1
- package/dist/components/lukso-alert/style.css.cjs +1 -1
- package/dist/components/lukso-alert/style.css.js +1 -1
- package/dist/components/lukso-button/index.d.ts +6 -0
- package/dist/components/lukso-button/index.d.ts.map +1 -1
- package/dist/components/lukso-card/index.d.ts +7 -0
- package/dist/components/lukso-card/index.d.ts.map +1 -1
- package/dist/components/lukso-checkbox/index.d.ts +5 -0
- package/dist/components/lukso-checkbox/index.d.ts.map +1 -1
- package/dist/components/lukso-collapse/index.d.ts +5 -0
- package/dist/components/lukso-collapse/index.d.ts.map +1 -1
- package/dist/components/lukso-color-picker/index.d.ts +3 -0
- package/dist/components/lukso-color-picker/index.d.ts.map +1 -1
- package/dist/components/lukso-dropdown/index.d.ts +5 -0
- package/dist/components/lukso-dropdown/index.d.ts.map +1 -1
- package/dist/components/lukso-dropdown-option/index.d.ts +5 -0
- package/dist/components/lukso-dropdown-option/index.d.ts.map +1 -1
- package/dist/components/lukso-footer/index.d.ts +5 -0
- package/dist/components/lukso-footer/index.d.ts.map +1 -1
- package/dist/components/lukso-form-description/index.d.ts +3 -0
- package/dist/components/lukso-form-description/index.d.ts.map +1 -1
- package/dist/components/lukso-form-error/index.d.ts +3 -0
- package/dist/components/lukso-form-error/index.d.ts.map +1 -1
- package/dist/components/lukso-form-label/index.d.ts +3 -0
- package/dist/components/lukso-form-label/index.d.ts.map +1 -1
- package/dist/components/lukso-icon/index.d.ts +3 -0
- package/dist/components/lukso-icon/index.d.ts.map +1 -1
- package/dist/components/lukso-image/index.d.ts +3 -0
- package/dist/components/lukso-image/index.d.ts.map +1 -1
- package/dist/components/lukso-input/index.cjs +51 -0
- package/dist/components/lukso-input/index.d.ts +10 -0
- package/dist/components/lukso-input/index.d.ts.map +1 -1
- package/dist/components/lukso-input/index.js +51 -0
- package/dist/components/lukso-input/lukso-input.stories.d.ts +2 -0
- package/dist/components/lukso-input/lukso-input.stories.d.ts.map +1 -1
- package/dist/components/lukso-input/rules.cjs +38 -0
- package/dist/components/lukso-input/rules.d.ts +50 -0
- package/dist/components/lukso-input/rules.d.ts.map +1 -0
- package/dist/components/lukso-input/rules.js +30 -0
- package/dist/components/lukso-markdown/index.d.ts +3 -0
- package/dist/components/lukso-markdown/index.d.ts.map +1 -1
- package/dist/components/lukso-markdown-editor/index.cjs +0 -1
- package/dist/components/lukso-markdown-editor/index.d.ts +4 -1
- package/dist/components/lukso-markdown-editor/index.d.ts.map +1 -1
- package/dist/components/lukso-markdown-editor/index.js +0 -1
- package/dist/components/lukso-modal/index.d.ts +6 -0
- package/dist/components/lukso-modal/index.d.ts.map +1 -1
- package/dist/components/lukso-navbar/index.d.ts +8 -0
- package/dist/components/lukso-navbar/index.d.ts.map +1 -1
- package/dist/components/lukso-pagination/index.d.ts +3 -0
- package/dist/components/lukso-pagination/index.d.ts.map +1 -1
- package/dist/components/lukso-profile/index.d.ts +3 -0
- package/dist/components/lukso-profile/index.d.ts.map +1 -1
- package/dist/components/lukso-progress/index.d.ts +3 -0
- package/dist/components/lukso-progress/index.d.ts.map +1 -1
- package/dist/components/lukso-qr-code/index.d.ts +5 -0
- package/dist/components/lukso-qr-code/index.d.ts.map +1 -1
- package/dist/components/lukso-radio/index.d.ts +5 -0
- package/dist/components/lukso-radio/index.d.ts.map +1 -1
- package/dist/components/lukso-radio-group/index.d.ts +5 -0
- package/dist/components/lukso-radio-group/index.d.ts.map +1 -1
- package/dist/components/lukso-sanitize/index.d.ts +3 -0
- package/dist/components/lukso-sanitize/index.d.ts.map +1 -1
- package/dist/components/lukso-search/index.d.ts +3 -0
- package/dist/components/lukso-search/index.d.ts.map +1 -1
- package/dist/components/lukso-select/index.d.ts +3 -0
- package/dist/components/lukso-select/index.d.ts.map +1 -1
- package/dist/components/lukso-share/index.d.ts +3 -0
- package/dist/components/lukso-share/index.d.ts.map +1 -1
- package/dist/components/lukso-switch/index.d.ts +3 -0
- package/dist/components/lukso-switch/index.d.ts.map +1 -1
- package/dist/components/lukso-tag/index.d.ts +5 -0
- package/dist/components/lukso-tag/index.d.ts.map +1 -1
- package/dist/components/lukso-terms/index.d.ts +3 -0
- package/dist/components/lukso-terms/index.d.ts.map +1 -1
- package/dist/components/lukso-textarea/index.d.ts +4 -0
- package/dist/components/lukso-textarea/index.d.ts.map +1 -1
- package/dist/components/lukso-tooltip/index.d.ts +7 -0
- package/dist/components/lukso-tooltip/index.d.ts.map +1 -1
- package/dist/components/lukso-username/index.d.ts +3 -0
- package/dist/components/lukso-username/index.d.ts.map +1 -1
- package/dist/components/lukso-wizard/index.d.ts +3 -0
- package/dist/components/lukso-wizard/index.d.ts.map +1 -1
- package/dist/docs/Typography.stories.d.ts.map +1 -1
- package/dist/scripts/generate-llm-docs.d.ts +10 -0
- package/dist/scripts/generate-llm-docs.d.ts.map +1 -0
- package/dist/scripts/generate-styles.d.ts +12 -0
- package/dist/scripts/generate-styles.d.ts.map +1 -0
- package/dist/scripts/llm/cem.d.ts +60 -0
- package/dist/scripts/llm/cem.d.ts.map +1 -0
- package/dist/scripts/llm/component-doc.d.ts +28 -0
- package/dist/scripts/llm/component-doc.d.ts.map +1 -0
- package/dist/scripts/llm/stories.d.ts +14 -0
- package/dist/scripts/llm/stories.d.ts.map +1 -0
- package/dist/scripts/llm/tailwind.d.ts +26 -0
- package/dist/scripts/llm/tailwind.d.ts.map +1 -0
- package/dist/scripts/llm/utils.d.ts +12 -0
- package/dist/scripts/llm/utils.d.ts.map +1 -0
- package/dist/shared/tailwind-element/style.css.cjs +1 -1
- package/dist/shared/tailwind-element/style.css.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* cem.ts
|
|
3
|
+
*
|
|
4
|
+
* Loads and queries the Custom Elements Manifest (package/custom-elements.json).
|
|
5
|
+
* Provides typed interfaces for CEM declarations and helpers to extract
|
|
6
|
+
* Lukso class declarations and tag names from component source files.
|
|
7
|
+
*/
|
|
8
|
+
export interface CemMember {
|
|
9
|
+
kind: string;
|
|
10
|
+
name: string;
|
|
11
|
+
type?: {
|
|
12
|
+
text: string;
|
|
13
|
+
};
|
|
14
|
+
default?: string;
|
|
15
|
+
attribute?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
privacy?: string;
|
|
18
|
+
static?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface CemDeclaration {
|
|
21
|
+
kind: string;
|
|
22
|
+
name: string;
|
|
23
|
+
tagName?: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
members?: CemMember[];
|
|
26
|
+
attributes?: {
|
|
27
|
+
name: string;
|
|
28
|
+
type?: {
|
|
29
|
+
text: string;
|
|
30
|
+
};
|
|
31
|
+
default?: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
}[];
|
|
34
|
+
events?: {
|
|
35
|
+
name: string;
|
|
36
|
+
type?: {
|
|
37
|
+
text: string;
|
|
38
|
+
};
|
|
39
|
+
description?: string;
|
|
40
|
+
}[];
|
|
41
|
+
slots?: {
|
|
42
|
+
name: string;
|
|
43
|
+
description?: string;
|
|
44
|
+
}[];
|
|
45
|
+
}
|
|
46
|
+
export interface CemModule {
|
|
47
|
+
kind: string;
|
|
48
|
+
path: string;
|
|
49
|
+
declarations?: CemDeclaration[];
|
|
50
|
+
}
|
|
51
|
+
/** Load the Custom Elements Manifest from package/custom-elements.json */
|
|
52
|
+
export declare function loadCem(root: string): CemModule[];
|
|
53
|
+
/** Return all Lukso class declarations with their parent module */
|
|
54
|
+
export declare function getClassDeclarations(modules: CemModule[]): {
|
|
55
|
+
module: CemModule;
|
|
56
|
+
decl: CemDeclaration;
|
|
57
|
+
}[];
|
|
58
|
+
/** Extract the custom element tag name from a component source file */
|
|
59
|
+
export declare function getTagName(source: string): string;
|
|
60
|
+
//# sourceMappingURL=cem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cem.d.ts","sourceRoot":"","sources":["../../../../scripts/llm/cem.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,SAAS,EAAE,CAAA;IACrB,UAAU,CAAC,EAAE;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAA;QACvB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,EAAE,CAAA;IACH,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAC1E,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CACjD;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE,cAAc,EAAE,CAAA;CAChC;AAED,0EAA0E;AAC1E,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,CAIjD;AAED,mEAAmE;AACnE,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,SAAS,EAAE,GACnB;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,cAAc,CAAA;CAAE,EAAE,CAW/C;AAED,uEAAuE;AACvE,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAGjD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CemMember } from './cem.js';
|
|
2
|
+
/** Extract the JSDoc block immediately before a class declaration (identified by markerPattern) */
|
|
3
|
+
export declare function extractJsDoc(source: string, markerPattern: RegExp): string;
|
|
4
|
+
/** Parse @fires tags from a JSDoc string */
|
|
5
|
+
export declare function parseFiresTags(jsdoc: string): {
|
|
6
|
+
event: string;
|
|
7
|
+
detail: string;
|
|
8
|
+
bubbles: string;
|
|
9
|
+
description: string;
|
|
10
|
+
}[];
|
|
11
|
+
/** Parse @slot tags from a JSDoc string */
|
|
12
|
+
export declare function parseSlotTags(jsdoc: string): {
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
}[];
|
|
16
|
+
/** Strip @fires/@slot tags from a JSDoc string and return the prose description only. */
|
|
17
|
+
export declare function extractProse(jsdoc: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Build a ## Types section listing types referenced in the attributes table.
|
|
20
|
+
* Looks up definitions from the component source and shared types.ts.
|
|
21
|
+
* Pass pre-loaded sharedTypesSrc to avoid re-reading the file per component.
|
|
22
|
+
*/
|
|
23
|
+
export declare function buildTypesSection(members: CemMember[], componentSrc: string, sharedTypesSrc: string): string;
|
|
24
|
+
/** Build the ## Attributes markdown table from CEM members */
|
|
25
|
+
export declare function buildAttributesTable(members: CemMember[]): string;
|
|
26
|
+
/** Build the full markdown doc for a single component */
|
|
27
|
+
export declare function buildComponentDoc(tagName: string, jsdoc: string, members: CemMember[], componentSrc: string, sharedTypesSrc: string, root: string): string;
|
|
28
|
+
//# sourceMappingURL=component-doc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-doc.d.ts","sourceRoot":"","sources":["../../../../scripts/llm/component-doc.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAKzC,mGAAmG;AACnG,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAiB1E;AAED,4CAA4C;AAC5C,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,GACZ;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,EAAE,CAc3E;AAED,2CAA2C;AAC3C,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,GACZ;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,EAAE,CAUzC;AAED,yFAAyF;AACzF,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMlD;AAmDD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,SAAS,EAAE,EACpB,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,MAAM,GACrB,MAAM,CAkBR;AAYD,8DAA8D;AAC9D,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,MAAM,CAqBjE;AAID,yDAAyD;AACzD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,SAAS,EAAE,EACpB,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,MAAM,GACX,MAAM,CAwDR"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* stories.ts
|
|
3
|
+
*
|
|
4
|
+
* Extracts usage examples from Storybook story files (*.stories.ts).
|
|
5
|
+
* Parses story args, renders Lit html`` templates into plain HTML snippets,
|
|
6
|
+
* and extracts per-story JSDoc descriptions for inclusion in component docs.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Extract usage examples from a component's `*.stories.ts` file.
|
|
10
|
+
* Parses meta.args, argTypes, and named story exports statically (no DOM needed).
|
|
11
|
+
* Returns a markdown ```html code block with one entry per story.
|
|
12
|
+
*/
|
|
13
|
+
export declare function extractStoriesExamples(tagName: string, root: string): string;
|
|
14
|
+
//# sourceMappingURL=stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stories.d.ts","sourceRoot":"","sources":["../../../../scripts/llm/stories.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAiMH;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CA6F5E"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tailwind.ts
|
|
3
|
+
*
|
|
4
|
+
* Generates markdown documentation for Tailwind utility classes and icon packs.
|
|
5
|
+
* Sources: tailwind-config.ts (colors/shadows), typography-v4.css, Animations/DropShadows
|
|
6
|
+
* story files, and the lukso-icon component's icon directories.
|
|
7
|
+
*/
|
|
8
|
+
/** Generate the Colors section: color families and their available lightness values. */
|
|
9
|
+
export declare function generateColorsDoc(root: string): string;
|
|
10
|
+
/** Generate the Typography section: heading, nav, and paragraph classes parsed from typography-v4.css. */
|
|
11
|
+
export declare function generateTypographyDoc(root: string): string;
|
|
12
|
+
/** Generate the Shadows section: shadow classes grouped by prefix, parsed from DropShadows.stories.ts. */
|
|
13
|
+
export declare function generateShadowsDoc(root: string): string;
|
|
14
|
+
/** Generate the Animations section: animation classes and utility modifiers parsed from Animations.stories.ts. */
|
|
15
|
+
export declare function generateAnimationsDoc(root: string): string;
|
|
16
|
+
/** Generate the Other Utilities section: border radius tokens and extra spacing values. */
|
|
17
|
+
export declare function generateOtherDoc(): string;
|
|
18
|
+
/** Generate the Custom Icons section: icon names discovered from the icons/ directory. */
|
|
19
|
+
export declare function generateCustomIconsDoc(root: string): string;
|
|
20
|
+
/** Generate the Vuesax Icons section: availability grid (✅/❌) per icon and variant, scanned from the vuesax/ directory. */
|
|
21
|
+
export declare function generateVuesaxIconsDoc(root: string): string;
|
|
22
|
+
/** Return all Tailwind utility class docs as a single concatenated string. */
|
|
23
|
+
export declare function generateTailwindDocs(root: string): string;
|
|
24
|
+
/** Return custom and Vuesax icon docs as a single concatenated string. */
|
|
25
|
+
export declare function generateIconDocs(root: string): string;
|
|
26
|
+
//# sourceMappingURL=tailwind.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwind.d.ts","sourceRoot":"","sources":["../../../../scripts/llm/tailwind.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,wFAAwF;AACxF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA2CtD;AAID,0GAA0G;AAC1G,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAuE1D;AAID,0GAA0G;AAC1G,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAmCvD;AAID,kHAAkH;AAClH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAoD1D;AAID,2FAA2F;AAC3F,wBAAgB,gBAAgB,IAAI,MAAM,CAmBzC;AAID,0FAA0F;AAC1F,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgC3D;AAED,2HAA2H;AAC3H,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAkD3D;AAID,8EAA8E;AAC9E,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQzD;AAED,0EAA0E;AAC1E,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* utils.ts
|
|
3
|
+
*
|
|
4
|
+
* Filesystem helpers used by the LLM doc generation scripts.
|
|
5
|
+
*/
|
|
6
|
+
/** Read a file as UTF-8 text; throws if the file does not exist. */
|
|
7
|
+
export declare function read(filePath: string): string;
|
|
8
|
+
/** Read a file as UTF-8 text; returns an empty string if the file does not exist. */
|
|
9
|
+
export declare function readSafe(filePath: string): string;
|
|
10
|
+
/** Write content to a file, creating parent directories as needed. */
|
|
11
|
+
export declare function write(filePath: string, content: string): void;
|
|
12
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../scripts/llm/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,oEAAoE;AACpE,wBAAgB,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED,qFAAqF;AACrF,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMjD;AAED,sEAAsE;AACtE,wBAAgB,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAGtD"}
|