wally-ui 1.10.0 → 1.11.1
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/README.md +89 -93
- package/package.json +1 -1
- package/playground/showcase/src/app/components/button/button.html +3 -9
- package/playground/showcase/src/app/components/button/button.ts +28 -2
- package/playground/showcase/src/app/components/carousel/carousel.html +33 -1
- package/playground/showcase/src/app/components/carousel/carousel.ts +251 -199
- package/playground/showcase/src/app/pages/documentation/components/breadcrumb-docs/breadcrumb-docs.html +186 -114
- package/playground/showcase/src/app/pages/documentation/components/button-docs/button-docs.examples.ts +291 -28
- package/playground/showcase/src/app/pages/documentation/components/button-docs/button-docs.html +825 -404
- package/playground/showcase/src/app/pages/documentation/components/button-docs/button-docs.ts +36 -9
- package/playground/showcase/src/app/pages/documentation/components/carousel-docs/carousel-docs.html +326 -253
- package/playground/showcase/src/app/pages/documentation/components/components.html +136 -74
- package/playground/showcase/src/app/pages/documentation/components/input-docs/input-docs.html +370 -292
- package/playground/showcase/src/app/pages/documentation/documentation.html +204 -153
- package/playground/showcase/src/app/pages/home/home.html +153 -50
- package/playground/showcase/src/app/pages/home/home.ts +2 -1
- package/playground/showcase/src/app/pages/mcp/mcp.html +235 -179
- package/playground/showcase/src/index.html +13 -6
package/playground/showcase/src/app/pages/documentation/components/button-docs/button-docs.ts
CHANGED
|
@@ -25,6 +25,7 @@ export class ButtonDocs {
|
|
|
25
25
|
{ label: 'Button' }
|
|
26
26
|
];
|
|
27
27
|
|
|
28
|
+
// Installation & Import
|
|
28
29
|
basicUsageCode = getFormattedCode(ButtonCodeExamples.installation, 'bash');
|
|
29
30
|
importCode = getFormattedCode(ButtonCodeExamples.import, 'typescript');
|
|
30
31
|
componentImportCode = getFormattedCode(ButtonCodeExamples.componentImport, 'typescript');
|
|
@@ -33,29 +34,55 @@ export class ButtonDocs {
|
|
|
33
34
|
// Variants
|
|
34
35
|
primaryVariantCode = getFormattedCode(ButtonCodeExamples.primaryVariant, 'html');
|
|
35
36
|
secondaryVariantCode = getFormattedCode(ButtonCodeExamples.secondaryVariant, 'html');
|
|
37
|
+
destructiveVariantCode = getFormattedCode(ButtonCodeExamples.destructiveVariant, 'html');
|
|
38
|
+
outlineVariantCode = getFormattedCode(ButtonCodeExamples.outlineVariant, 'html');
|
|
39
|
+
ghostVariantCode = getFormattedCode(ButtonCodeExamples.ghostVariant, 'html');
|
|
40
|
+
linkVariantCode = getFormattedCode(ButtonCodeExamples.linkVariant, 'html');
|
|
41
|
+
|
|
42
|
+
// States
|
|
36
43
|
disabledCode = getFormattedCode(ButtonCodeExamples.disabled, 'html');
|
|
37
44
|
loadingCode = getFormattedCode(ButtonCodeExamples.loading, 'html');
|
|
38
45
|
notificationCode = getFormattedCode(ButtonCodeExamples.notification, 'html');
|
|
46
|
+
|
|
47
|
+
// Production Examples
|
|
48
|
+
ctaExampleCode = getFormattedCode(ButtonCodeExamples.ctaExample, 'html');
|
|
49
|
+
loginExampleCode = getFormattedCode(ButtonCodeExamples.loginExample, 'html');
|
|
50
|
+
loginExampleTsCode = getFormattedCode(ButtonCodeExamples.loginExampleTs, 'typescript');
|
|
51
|
+
deleteExampleCode = getFormattedCode(ButtonCodeExamples.deleteExample, 'html');
|
|
52
|
+
dashboardExampleCode = getFormattedCode(ButtonCodeExamples.dashboardExample, 'html');
|
|
53
|
+
notificationButtonCode = getFormattedCode(ButtonCodeExamples.notificationButton, 'html');
|
|
54
|
+
|
|
55
|
+
// Button Types
|
|
39
56
|
submitCode = getFormattedCode(ButtonCodeExamples.submit, 'html');
|
|
57
|
+
resetCode = getFormattedCode(ButtonCodeExamples.reset, 'html');
|
|
58
|
+
|
|
59
|
+
// Events
|
|
40
60
|
clickCodeHTML = getFormattedCode(ButtonCodeExamples.clickTemplate, 'html');
|
|
41
61
|
clickCodeTs = getFormattedCode(ButtonCodeExamples.clickMethod, 'typescript');
|
|
62
|
+
|
|
63
|
+
// Icons
|
|
42
64
|
iconCode = getFormattedCode(ButtonCodeExamples.iconWithText, 'html');
|
|
43
|
-
|
|
65
|
+
iconOnlyCode = getFormattedCode(ButtonCodeExamples.iconOnly, 'html');
|
|
66
|
+
iconLeftCode = getFormattedCode(ButtonCodeExamples.iconLeft, 'html');
|
|
44
67
|
|
|
45
68
|
// Accessibility
|
|
46
69
|
ariaLabelCode = getFormattedCode(ButtonCodeExamples.ariaLabel, 'html');
|
|
47
70
|
ariaPressedCode = getFormattedCode(ButtonCodeExamples.ariaPressed, 'html');
|
|
48
71
|
ariaBusyCode = getFormattedCode(ButtonCodeExamples.ariaBusy, 'html');
|
|
72
|
+
ariaDescribedByCode = getFormattedCode(ButtonCodeExamples.ariaDescribedBy, 'html');
|
|
49
73
|
|
|
50
|
-
//
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
74
|
+
// Advanced & Edge Cases
|
|
75
|
+
formIntegrationCode = getFormattedCode(ButtonCodeExamples.formIntegration, 'html');
|
|
76
|
+
formIntegrationTsCode = getFormattedCode(ButtonCodeExamples.formIntegrationTs, 'typescript');
|
|
77
|
+
routerExampleCode = getFormattedCode(ButtonCodeExamples.routerExample, 'html');
|
|
78
|
+
routerExampleTsCode = getFormattedCode(ButtonCodeExamples.routerExampleTs, 'typescript');
|
|
79
|
+
loadingDisabledExampleCode = getFormattedCode(ButtonCodeExamples.loadingDisabledExample, 'html');
|
|
80
|
+
iconRecommendationsCode = getFormattedCode(ButtonCodeExamples.iconRecommendations, 'html');
|
|
81
|
+
signalsPatternCode = getFormattedCode(ButtonCodeExamples.signalsPattern, 'typescript');
|
|
82
|
+
buttonTypeExplainedCode = getFormattedCode(ButtonCodeExamples.buttonTypeExplained, 'html');
|
|
83
|
+
hrefBehaviorCode = getFormattedCode(ButtonCodeExamples.hrefBehavior, 'html');
|
|
58
84
|
|
|
85
|
+
// Interactive states
|
|
59
86
|
clickMessage: WritableSignal<string> = signal<string>('');
|
|
60
87
|
toggleState: WritableSignal<boolean> = signal<boolean>(false);
|
|
61
88
|
|