igniteui-theming 25.0.0 → 25.0.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/README.md +2 -2
- package/dist/mcp/generators/css.js +1 -8
- package/dist/mcp/generators/sass.d.ts +1 -1
- package/dist/mcp/generators/sass.js +26 -3
- package/dist/mcp/index.js +3 -3
- package/dist/mcp/json/components/themes.json.js +17 -17
- package/dist/mcp/knowledge/docs/setup/platform.md.js +4 -0
- package/dist/mcp/knowledge/index.d.ts +1 -1
- package/dist/mcp/knowledge/index.js +1 -4
- package/dist/mcp/knowledge/platform-setup.d.ts +2 -0
- package/dist/mcp/knowledge/platforms/index.d.ts +8 -11
- package/dist/mcp/knowledge/platforms/index.js +22 -14
- package/dist/mcp/knowledge/platforms/react.d.ts +2 -2
- package/dist/mcp/knowledge/platforms/react.js +3 -3
- package/dist/mcp/knowledge/sass-api.d.ts +2 -2
- package/dist/mcp/resources/presets.d.ts +12 -0
- package/dist/mcp/resources/presets.js +44 -1
- package/dist/mcp/tools/descriptions.d.ts +8 -8
- package/dist/mcp/tools/descriptions.js +25 -7
- package/dist/mcp/tools/handlers/component-theme.js +23 -5
- package/dist/mcp/tools/handlers/custom-palette.js +2 -1
- package/dist/mcp/tools/handlers/elevations.js +2 -1
- package/dist/mcp/tools/handlers/layout.js +1 -1
- package/dist/mcp/tools/handlers/palette.js +2 -3
- package/dist/mcp/tools/handlers/platform.js +247 -86
- package/dist/mcp/tools/handlers/theme.js +3 -0
- package/dist/mcp/tools/handlers/typography.js +2 -1
- package/dist/mcp/tools/schemas.d.ts +31 -31
- package/dist/mcp/utils/sass.d.ts +20 -0
- package/dist/mcp/utils/sass.js +16 -0
- package/dist/mcp/utils/types.d.ts +2 -1
- package/dist/mcp/utils/types.js +2 -1
- package/json/components/bootstrap.json +1 -1
- package/json/components/fluent.json +1 -1
- package/json/components/indigo.json +1 -1
- package/json/components/material.json +1 -1
- package/json/components/themes.json +53 -28
- package/package.json +15 -7
- package/sass/animations/_easings.scss +24 -24
- package/sass/bem/_index.scss +16 -14
- package/sass/color/_charts.scss +20 -20
- package/sass/color/_functions.scss +18 -18
- package/sass/color/_mixins.scss +1 -1
- package/sass/elevations/_functions.scss +4 -4
- package/sass/elevations/_mixins.scss +2 -2
- package/sass/elevations/presets/_index.scss +3 -3
- package/sass/elevations/presets/_indigo.scss +16 -16
- package/sass/elevations/presets/_material.scss +3 -3
- package/sass/tailwind/utilities/_common.scss +1 -1
- package/sass/themes/_functions.scss +15 -15
- package/sass/themes/_mixins.scss +9 -9
- package/sass/themes/charts/_category-chart-theme.scss +2 -9
- package/sass/themes/charts/_data-chart-theme.scss +1 -1
- package/sass/themes/charts/_doughnut-chart-theme.scss +1 -1
- package/sass/themes/charts/_financial-chart-theme.scss +2 -9
- package/sass/themes/charts/_funnel-chart-theme.scss +1 -1
- package/sass/themes/charts/_gauge-theme.scss +2 -2
- package/sass/themes/charts/_geo-map-theme.scss +1 -1
- package/sass/themes/charts/_graph-theme.scss +1 -1
- package/sass/themes/charts/_pie-chart-theme.scss +1 -1
- package/sass/themes/charts/_shape-chart-theme.scss +2 -9
- package/sass/themes/charts/_sparkline-theme.scss +2 -2
- package/sass/themes/components/action-strip/_action-strip-theme.scss +1 -1
- package/sass/themes/components/avatar/_avatar-theme.scss +2 -2
- package/sass/themes/components/badge/_badge-theme.scss +2 -2
- package/sass/themes/components/banner/_banner-theme.scss +1 -1
- package/sass/themes/components/bottom-nav/_bottom-nav-theme.scss +2 -2
- package/sass/themes/components/button/_button-theme.scss +5 -5
- package/sass/themes/components/button/_contained-button-theme.scss +5 -5
- package/sass/themes/components/button/_fab-button-theme.scss +5 -5
- package/sass/themes/components/button/_flat-button-theme.scss +17 -17
- package/sass/themes/components/button/_outlined-button-theme.scss +17 -17
- package/sass/themes/components/button-group/_button-group-theme.scss +5 -5
- package/sass/themes/components/calendar/_calendar-theme.scss +18 -20
- package/sass/themes/components/card/_card-theme.scss +3 -3
- package/sass/themes/components/carousel/_carousel-theme.scss +8 -8
- package/sass/themes/components/chat/_chat-theme.scss +1 -1
- package/sass/themes/components/checkbox/_checkbox-theme.scss +6 -6
- package/sass/themes/components/chip/_chip-theme.scss +5 -5
- package/sass/themes/components/column-actions/_column-actions-theme.scss +1 -1
- package/sass/themes/components/combo/_combo-theme.scss +3 -3
- package/sass/themes/components/dialog/_dialog-theme.scss +4 -4
- package/sass/themes/components/divider/_divider-theme.scss +1 -1
- package/sass/themes/components/dock-manager/_dock-manager-theme.scss +1 -1
- package/sass/themes/components/drop-down/_drop-down-theme.scss +10 -10
- package/sass/themes/components/expansion-panel/_expansion-panel-theme.scss +4 -4
- package/sass/themes/components/grid/_grid-summary-theme.scss +3 -3
- package/sass/themes/components/grid/_grid-theme.scss +56 -17
- package/sass/themes/components/grid/_grid-toolbar-theme.scss +1 -1
- package/sass/themes/components/highlight/_highlight-theme.scss +1 -1
- package/sass/themes/components/icon/_icon-theme.scss +1 -1
- package/sass/themes/components/icon-button/_contained-icon-button-theme.scss +8 -8
- package/sass/themes/components/icon-button/_flat-icon-button-theme.scss +12 -12
- package/sass/themes/components/icon-button/_icon-button-theme.scss +4 -4
- package/sass/themes/components/icon-button/_outlined-icon-button-theme.scss +13 -13
- package/sass/themes/components/input/_file-input-theme.scss +1 -1
- package/sass/themes/components/input/_input-theme.scss +23 -23
- package/sass/themes/components/list/_list-theme.scss +6 -6
- package/sass/themes/components/navbar/_navbar-theme.scss +4 -4
- package/sass/themes/components/navdrawer/_navdrawer-theme.scss +3 -3
- package/sass/themes/components/overlay/_overlay-theme.scss +1 -1
- package/sass/themes/components/paginator/_paginator-theme.scss +1 -1
- package/sass/themes/components/progress/_circular-theme.scss +1 -1
- package/sass/themes/components/progress/_linear-theme.scss +1 -1
- package/sass/themes/components/query-builder/_query-builder-theme.scss +2 -2
- package/sass/themes/components/radio/_radio-theme.scss +5 -5
- package/sass/themes/components/rating/_rating-theme.scss +1 -1
- package/sass/themes/components/ripple/_ripple-theme.scss +1 -1
- package/sass/themes/components/scrollbar/_scrollbar-theme.scss +1 -1
- package/sass/themes/components/select/_select-theme.scss +1 -1
- package/sass/themes/components/slider/_slider-theme.scss +7 -7
- package/sass/themes/components/snackbar/_snackbar-theme.scss +2 -2
- package/sass/themes/components/splitter/_splitter-theme.scss +1 -1
- package/sass/themes/components/stepper/_stepper-theme.scss +2 -2
- package/sass/themes/components/switch/_switch-theme.scss +13 -13
- package/sass/themes/components/tabs/_tabs-theme.scss +8 -8
- package/sass/themes/components/time-picker/_time-picker-theme.scss +8 -8
- package/sass/themes/components/toast/_toast-theme.scss +3 -3
- package/sass/themes/components/tooltip/_tooltip-theme.scss +2 -2
- package/sass/themes/components/tree/_tree-theme.scss +17 -17
- package/sass/themes/components/watermark/_watermark-theme.scss +1 -1
- package/sass/themes/schemas/charts/dark/_category-chart.scss +5 -5
- package/sass/themes/schemas/charts/dark/_data-chart.scss +5 -5
- package/sass/themes/schemas/charts/dark/_doughnut-chart.scss +5 -5
- package/sass/themes/schemas/charts/dark/_financial-chart.scss +5 -5
- package/sass/themes/schemas/charts/dark/_funnel-chart.scss +5 -5
- package/sass/themes/schemas/charts/dark/_gauge.scss +9 -9
- package/sass/themes/schemas/charts/dark/_geo-map.scss +5 -5
- package/sass/themes/schemas/charts/dark/_graph.scss +5 -5
- package/sass/themes/schemas/charts/dark/_pie-chart.scss +5 -5
- package/sass/themes/schemas/charts/dark/_shape-chart.scss +5 -5
- package/sass/themes/schemas/charts/dark/_sparkline.scss +5 -5
- package/sass/themes/schemas/charts/light/_category-chart.scss +8 -8
- package/sass/themes/schemas/charts/light/_data-chart.scss +8 -8
- package/sass/themes/schemas/charts/light/_doughnut-chart.scss +8 -8
- package/sass/themes/schemas/charts/light/_financial-chart.scss +8 -8
- package/sass/themes/schemas/charts/light/_funnel-chart.scss +8 -8
- package/sass/themes/schemas/charts/light/_gauge.scss +19 -19
- package/sass/themes/schemas/charts/light/_geo-map.scss +8 -8
- package/sass/themes/schemas/charts/light/_graph.scss +8 -8
- package/sass/themes/schemas/charts/light/_pie-chart.scss +8 -8
- package/sass/themes/schemas/charts/light/_shape-chart.scss +8 -8
- package/sass/themes/schemas/charts/light/_sparkline.scss +9 -9
- package/sass/themes/schemas/components/dark/_action-strip.scss +5 -5
- package/sass/themes/schemas/components/dark/_avatar.scss +5 -5
- package/sass/themes/schemas/components/dark/_badge.scss +5 -5
- package/sass/themes/schemas/components/dark/_banner.scss +5 -5
- package/sass/themes/schemas/components/dark/_bottom-nav.scss +5 -5
- package/sass/themes/schemas/components/dark/_button-group.scss +6 -6
- package/sass/themes/schemas/components/dark/_button.scss +65 -65
- package/sass/themes/schemas/components/dark/_calendar.scss +24 -24
- package/sass/themes/schemas/components/dark/_card.scss +5 -5
- package/sass/themes/schemas/components/dark/_carousel.scss +5 -5
- package/sass/themes/schemas/components/dark/_chat.scss +5 -5
- package/sass/themes/schemas/components/dark/_checkbox.scss +5 -5
- package/sass/themes/schemas/components/dark/_chip.scss +7 -7
- package/sass/themes/schemas/components/dark/_column-actions.scss +5 -5
- package/sass/themes/schemas/components/dark/_combo.scss +6 -6
- package/sass/themes/schemas/components/dark/_date-picker.scss +8 -8
- package/sass/themes/schemas/components/dark/_date-range-picker.scss +5 -5
- package/sass/themes/schemas/components/dark/_dialog.scss +5 -5
- package/sass/themes/schemas/components/dark/_divider.scss +5 -5
- package/sass/themes/schemas/components/dark/_dock-manager.scss +5 -5
- package/sass/themes/schemas/components/dark/_drop-down.scss +5 -5
- package/sass/themes/schemas/components/dark/_expansion-panel.scss +5 -5
- package/sass/themes/schemas/components/dark/_file-input.scss +5 -5
- package/sass/themes/schemas/components/dark/_grid-filtering.scss +5 -5
- package/sass/themes/schemas/components/dark/_grid-summary.scss +9 -9
- package/sass/themes/schemas/components/dark/_grid-toolbar.scss +5 -5
- package/sass/themes/schemas/components/dark/_grid.scss +57 -14
- package/sass/themes/schemas/components/dark/_highlight.scss +7 -7
- package/sass/themes/schemas/components/dark/_icon-button.scss +46 -46
- package/sass/themes/schemas/components/dark/_icon.scss +5 -5
- package/sass/themes/schemas/components/dark/_input-group.scss +6 -6
- package/sass/themes/schemas/components/dark/_label.scss +5 -5
- package/sass/themes/schemas/components/dark/_list.scss +5 -5
- package/sass/themes/schemas/components/dark/_navbar.scss +5 -5
- package/sass/themes/schemas/components/dark/_navdrawer.scss +5 -5
- package/sass/themes/schemas/components/dark/_overlay.scss +5 -5
- package/sass/themes/schemas/components/dark/_pagination.scss +5 -5
- package/sass/themes/schemas/components/dark/_pivot-data-selector.scss +9 -9
- package/sass/themes/schemas/components/dark/_progress.scss +10 -10
- package/sass/themes/schemas/components/dark/_query-builder.scss +3 -3
- package/sass/themes/schemas/components/dark/_radio.scss +5 -5
- package/sass/themes/schemas/components/dark/_rating.scss +5 -5
- package/sass/themes/schemas/components/dark/_resize-indicator.scss +9 -9
- package/sass/themes/schemas/components/dark/_ripple.scss +5 -5
- package/sass/themes/schemas/components/dark/_scrollbar.scss +5 -5
- package/sass/themes/schemas/components/dark/_select.scss +5 -5
- package/sass/themes/schemas/components/dark/_slider.scss +5 -5
- package/sass/themes/schemas/components/dark/_snackbar.scss +6 -6
- package/sass/themes/schemas/components/dark/_splitter.scss +13 -7
- package/sass/themes/schemas/components/dark/_stepper.scss +5 -5
- package/sass/themes/schemas/components/dark/_switch.scss +5 -5
- package/sass/themes/schemas/components/dark/_tabs.scss +5 -5
- package/sass/themes/schemas/components/dark/_tile-manager.scss +11 -11
- package/sass/themes/schemas/components/dark/_time-picker.scss +5 -5
- package/sass/themes/schemas/components/dark/_toast.scss +4 -4
- package/sass/themes/schemas/components/dark/_tooltip.scss +7 -7
- package/sass/themes/schemas/components/dark/_tree.scss +5 -5
- package/sass/themes/schemas/components/dark/_validator.scss +5 -5
- package/sass/themes/schemas/components/dark/_watermark.scss +5 -5
- package/sass/themes/schemas/components/dark/calendar/_base.scss +9 -9
- package/sass/themes/schemas/components/dark/calendar/_days-view.scss +11 -11
- package/sass/themes/schemas/components/dark/calendar/_picker.scss +8 -8
- package/sass/themes/schemas/components/dark/calendar/_year-month-view.scss +11 -11
- package/sass/themes/schemas/components/elevation/_button-group.scss +3 -3
- package/sass/themes/schemas/components/elevation/_carousel.scss +2 -2
- package/sass/themes/schemas/components/light/_action-strip.scss +9 -9
- package/sass/themes/schemas/components/light/_avatar.scss +9 -9
- package/sass/themes/schemas/components/light/_badge.scss +12 -12
- package/sass/themes/schemas/components/light/_banner.scss +9 -9
- package/sass/themes/schemas/components/light/_bottom-nav.scss +12 -12
- package/sass/themes/schemas/components/light/_button-group.scss +14 -14
- package/sass/themes/schemas/components/light/_button.scss +103 -103
- package/sass/themes/schemas/components/light/_calendar.scss +28 -28
- package/sass/themes/schemas/components/light/_card.scss +14 -42
- package/sass/themes/schemas/components/light/_carousel.scss +12 -12
- package/sass/themes/schemas/components/light/_chat.scss +9 -9
- package/sass/themes/schemas/components/light/_checkbox.scss +9 -9
- package/sass/themes/schemas/components/light/_chip.scss +27 -27
- package/sass/themes/schemas/components/light/_column-actions.scss +9 -9
- package/sass/themes/schemas/components/light/_combo.scss +11 -11
- package/sass/themes/schemas/components/light/_date-picker.scss +8 -8
- package/sass/themes/schemas/components/light/_date-range-picker.scss +9 -9
- package/sass/themes/schemas/components/light/_dialog.scss +14 -23
- package/sass/themes/schemas/components/light/_divider.scss +7 -7
- package/sass/themes/schemas/components/light/_dock-manager.scss +9 -9
- package/sass/themes/schemas/components/light/_drop-down.scss +16 -24
- package/sass/themes/schemas/components/light/_expansion-panel.scss +12 -24
- package/sass/themes/schemas/components/light/_file-input.scss +1 -1
- package/sass/themes/schemas/components/light/_grid-filtering.scss +9 -9
- package/sass/themes/schemas/components/light/_grid-summary.scss +13 -26
- package/sass/themes/schemas/components/light/_grid-toolbar.scss +9 -9
- package/sass/themes/schemas/components/light/_grid.scss +162 -68
- package/sass/themes/schemas/components/light/_highlight.scss +10 -10
- package/sass/themes/schemas/components/light/_icon-button.scss +48 -48
- package/sass/themes/schemas/components/light/_icon.scss +9 -9
- package/sass/themes/schemas/components/light/_input-group.scss +17 -26
- package/sass/themes/schemas/components/light/_label.scss +8 -8
- package/sass/themes/schemas/components/light/_list.scss +13 -33
- package/sass/themes/schemas/components/light/_navbar.scss +12 -12
- package/sass/themes/schemas/components/light/_navdrawer.scss +14 -26
- package/sass/themes/schemas/components/light/_overlay.scss +9 -9
- package/sass/themes/schemas/components/light/_pagination.scss +9 -9
- package/sass/themes/schemas/components/light/_pivot-data-selector.scss +9 -9
- package/sass/themes/schemas/components/light/_progress.scss +13 -13
- package/sass/themes/schemas/components/light/_query-builder.scss +10 -10
- package/sass/themes/schemas/components/light/_radio.scss +9 -9
- package/sass/themes/schemas/components/light/_rating.scss +9 -9
- package/sass/themes/schemas/components/light/_resize-indicator.scss +8 -8
- package/sass/themes/schemas/components/light/_ripple.scss +9 -9
- package/sass/themes/schemas/components/light/_scrollbar.scss +9 -9
- package/sass/themes/schemas/components/light/_select.scss +9 -9
- package/sass/themes/schemas/components/light/_slider.scss +11 -17
- package/sass/themes/schemas/components/light/_snackbar.scss +9 -9
- package/sass/themes/schemas/components/light/_splitter.scss +9 -9
- package/sass/themes/schemas/components/light/_stepper.scss +8 -8
- package/sass/themes/schemas/components/light/_switch.scss +9 -9
- package/sass/themes/schemas/components/light/_tabs.scss +9 -9
- package/sass/themes/schemas/components/light/_tile-manager.scss +10 -10
- package/sass/themes/schemas/components/light/_time-picker.scss +10 -19
- package/sass/themes/schemas/components/light/_toast.scss +11 -11
- package/sass/themes/schemas/components/light/_tooltip.scss +10 -10
- package/sass/themes/schemas/components/light/_tree.scss +8 -8
- package/sass/themes/schemas/components/light/_validator.scss +9 -9
- package/sass/themes/schemas/components/light/_watermark.scss +9 -9
- package/sass/themes/schemas/components/light/calendar/_base.scss +9 -29
- package/sass/themes/schemas/components/light/calendar/_days-view.scss +8 -17
- package/sass/themes/schemas/components/light/calendar/_picker.scss +9 -17
- package/sass/themes/schemas/components/light/calendar/_year-month-view.scss +9 -17
- package/sass/typography/_functions.scss +14 -14
- package/sass/typography/_mixins.scss +7 -7
- package/sass/utils/_css.scss +1 -1
- package/sass/utils/_map.scss +5 -5
- package/sass/utils/_math.scss +6 -5
- package/sass/utils/_meta.scss +4 -4
- package/tailwind/utilities/bootstrap.css +1 -1
- package/tailwind/utilities/fluent.css +1 -1
- package/tailwind/utilities/indigo.css +1 -1
- package/tailwind/utilities/material.css +1 -1
|
@@ -27,7 +27,7 @@ export declare const sizeKeywordSchema: z.ZodEnum<["small", "medium", "large"]>;
|
|
|
27
27
|
/**
|
|
28
28
|
* Platform schema - derived from PLATFORMS constant.
|
|
29
29
|
*/
|
|
30
|
-
export declare const platformSchema: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor"]>>;
|
|
30
|
+
export declare const platformSchema: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor", "generic"]>>;
|
|
31
31
|
/**
|
|
32
32
|
* Licensed package schema - for @infragistics prefixed packages.
|
|
33
33
|
*/
|
|
@@ -46,7 +46,7 @@ export declare const detectPlatformSchema: z.ZodObject<{
|
|
|
46
46
|
* Schema for create_palette tool.
|
|
47
47
|
*/
|
|
48
48
|
export declare const createPaletteSchema: z.ZodObject<{
|
|
49
|
-
platform: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor"]>>;
|
|
49
|
+
platform: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor", "generic"]>>;
|
|
50
50
|
licensed: z.ZodOptional<z.ZodBoolean>;
|
|
51
51
|
primary: z.ZodString;
|
|
52
52
|
secondary: z.ZodString;
|
|
@@ -69,7 +69,7 @@ export declare const createPaletteSchema: z.ZodObject<{
|
|
|
69
69
|
warn?: string | undefined;
|
|
70
70
|
error?: string | undefined;
|
|
71
71
|
variant?: "light" | "dark" | undefined;
|
|
72
|
-
platform?: "angular" | "webcomponents" | "react" | "blazor" | undefined;
|
|
72
|
+
platform?: "angular" | "webcomponents" | "react" | "blazor" | "generic" | undefined;
|
|
73
73
|
name?: string | undefined;
|
|
74
74
|
licensed?: boolean | undefined;
|
|
75
75
|
output?: "sass" | "css" | undefined;
|
|
@@ -83,7 +83,7 @@ export declare const createPaletteSchema: z.ZodObject<{
|
|
|
83
83
|
warn?: string | undefined;
|
|
84
84
|
error?: string | undefined;
|
|
85
85
|
variant?: "light" | "dark" | undefined;
|
|
86
|
-
platform?: "angular" | "webcomponents" | "react" | "blazor" | undefined;
|
|
86
|
+
platform?: "angular" | "webcomponents" | "react" | "blazor" | "generic" | undefined;
|
|
87
87
|
name?: string | undefined;
|
|
88
88
|
licensed?: boolean | undefined;
|
|
89
89
|
output?: "sass" | "css" | undefined;
|
|
@@ -123,7 +123,7 @@ export declare const typeStyleSchema: z.ZodObject<{
|
|
|
123
123
|
* Schema for create_typography tool.
|
|
124
124
|
*/
|
|
125
125
|
export declare const createTypographySchema: z.ZodObject<{
|
|
126
|
-
platform: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor"]>>;
|
|
126
|
+
platform: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor", "generic"]>>;
|
|
127
127
|
licensed: z.ZodOptional<z.ZodBoolean>;
|
|
128
128
|
fontFamily: z.ZodString;
|
|
129
129
|
designSystem: z.ZodOptional<z.ZodEnum<["material", "bootstrap", "fluent", "indigo"]>>;
|
|
@@ -159,7 +159,7 @@ export declare const createTypographySchema: z.ZodObject<{
|
|
|
159
159
|
}, "strip", z.ZodTypeAny, {
|
|
160
160
|
fontFamily: string;
|
|
161
161
|
designSystem?: "material" | "bootstrap" | "fluent" | "indigo" | undefined;
|
|
162
|
-
platform?: "angular" | "webcomponents" | "react" | "blazor" | undefined;
|
|
162
|
+
platform?: "angular" | "webcomponents" | "react" | "blazor" | "generic" | undefined;
|
|
163
163
|
name?: string | undefined;
|
|
164
164
|
licensed?: boolean | undefined;
|
|
165
165
|
customScale?: Record<string, {
|
|
@@ -175,7 +175,7 @@ export declare const createTypographySchema: z.ZodObject<{
|
|
|
175
175
|
}, {
|
|
176
176
|
fontFamily: string;
|
|
177
177
|
designSystem?: "material" | "bootstrap" | "fluent" | "indigo" | undefined;
|
|
178
|
-
platform?: "angular" | "webcomponents" | "react" | "blazor" | undefined;
|
|
178
|
+
platform?: "angular" | "webcomponents" | "react" | "blazor" | "generic" | undefined;
|
|
179
179
|
name?: string | undefined;
|
|
180
180
|
licensed?: boolean | undefined;
|
|
181
181
|
customScale?: Record<string, {
|
|
@@ -193,18 +193,18 @@ export declare const createTypographySchema: z.ZodObject<{
|
|
|
193
193
|
* Schema for create_elevations tool.
|
|
194
194
|
*/
|
|
195
195
|
export declare const createElevationsSchema: z.ZodObject<{
|
|
196
|
-
platform: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor"]>>;
|
|
196
|
+
platform: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor", "generic"]>>;
|
|
197
197
|
licensed: z.ZodOptional<z.ZodBoolean>;
|
|
198
198
|
designSystem: z.ZodOptional<z.ZodEnum<["material", "indigo"]>>;
|
|
199
199
|
name: z.ZodOptional<z.ZodString>;
|
|
200
200
|
}, "strip", z.ZodTypeAny, {
|
|
201
201
|
designSystem?: "material" | "indigo" | undefined;
|
|
202
|
-
platform?: "angular" | "webcomponents" | "react" | "blazor" | undefined;
|
|
202
|
+
platform?: "angular" | "webcomponents" | "react" | "blazor" | "generic" | undefined;
|
|
203
203
|
name?: string | undefined;
|
|
204
204
|
licensed?: boolean | undefined;
|
|
205
205
|
}, {
|
|
206
206
|
designSystem?: "material" | "indigo" | undefined;
|
|
207
|
-
platform?: "angular" | "webcomponents" | "react" | "blazor" | undefined;
|
|
207
|
+
platform?: "angular" | "webcomponents" | "react" | "blazor" | "generic" | undefined;
|
|
208
208
|
name?: string | undefined;
|
|
209
209
|
licensed?: boolean | undefined;
|
|
210
210
|
}>;
|
|
@@ -212,7 +212,7 @@ export declare const createElevationsSchema: z.ZodObject<{
|
|
|
212
212
|
* Schema for create_theme tool.
|
|
213
213
|
*/
|
|
214
214
|
export declare const createThemeSchema: z.ZodObject<{
|
|
215
|
-
platform: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor"]>>;
|
|
215
|
+
platform: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor", "generic"]>>;
|
|
216
216
|
licensed: z.ZodOptional<z.ZodBoolean>;
|
|
217
217
|
designSystem: z.ZodOptional<z.ZodEnum<["material", "bootstrap", "fluent", "indigo"]>>;
|
|
218
218
|
primaryColor: z.ZodString;
|
|
@@ -234,7 +234,7 @@ export declare const createThemeSchema: z.ZodObject<{
|
|
|
234
234
|
designSystem?: "material" | "bootstrap" | "fluent" | "indigo" | undefined;
|
|
235
235
|
variant?: "light" | "dark" | undefined;
|
|
236
236
|
fontFamily?: string | undefined;
|
|
237
|
-
platform?: "angular" | "webcomponents" | "react" | "blazor" | undefined;
|
|
237
|
+
platform?: "angular" | "webcomponents" | "react" | "blazor" | "generic" | undefined;
|
|
238
238
|
name?: string | undefined;
|
|
239
239
|
licensed?: boolean | undefined;
|
|
240
240
|
}, {
|
|
@@ -247,7 +247,7 @@ export declare const createThemeSchema: z.ZodObject<{
|
|
|
247
247
|
includeElevations?: boolean | undefined;
|
|
248
248
|
includeSpacing?: boolean | undefined;
|
|
249
249
|
fontFamily?: string | undefined;
|
|
250
|
-
platform?: "angular" | "webcomponents" | "react" | "blazor" | undefined;
|
|
250
|
+
platform?: "angular" | "webcomponents" | "react" | "blazor" | "generic" | undefined;
|
|
251
251
|
name?: string | undefined;
|
|
252
252
|
licensed?: boolean | undefined;
|
|
253
253
|
}>;
|
|
@@ -264,7 +264,7 @@ export type { DesignSystem, ElevationPreset, OutputFormat, Platform, ThemeVarian
|
|
|
264
264
|
* Schema for create_custom_palette tool.
|
|
265
265
|
*/
|
|
266
266
|
export declare const createCustomPaletteSchema: z.ZodObject<{
|
|
267
|
-
platform: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor"]>>;
|
|
267
|
+
platform: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor", "generic"]>>;
|
|
268
268
|
licensed: z.ZodOptional<z.ZodBoolean>;
|
|
269
269
|
variant: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
|
|
270
270
|
designSystem: z.ZodOptional<z.ZodEnum<["material", "bootstrap", "fluent", "indigo"]>>;
|
|
@@ -593,7 +593,7 @@ export declare const createCustomPaletteSchema: z.ZodObject<{
|
|
|
593
593
|
} | undefined;
|
|
594
594
|
designSystem?: "material" | "bootstrap" | "fluent" | "indigo" | undefined;
|
|
595
595
|
variant?: "light" | "dark" | undefined;
|
|
596
|
-
platform?: "angular" | "webcomponents" | "react" | "blazor" | undefined;
|
|
596
|
+
platform?: "angular" | "webcomponents" | "react" | "blazor" | "generic" | undefined;
|
|
597
597
|
name?: string | undefined;
|
|
598
598
|
licensed?: boolean | undefined;
|
|
599
599
|
output?: "sass" | "css" | undefined;
|
|
@@ -680,7 +680,7 @@ export declare const createCustomPaletteSchema: z.ZodObject<{
|
|
|
680
680
|
} | undefined;
|
|
681
681
|
designSystem?: "material" | "bootstrap" | "fluent" | "indigo" | undefined;
|
|
682
682
|
variant?: "light" | "dark" | undefined;
|
|
683
|
-
platform?: "angular" | "webcomponents" | "react" | "blazor" | undefined;
|
|
683
|
+
platform?: "angular" | "webcomponents" | "react" | "blazor" | "generic" | undefined;
|
|
684
684
|
name?: string | undefined;
|
|
685
685
|
licensed?: boolean | undefined;
|
|
686
686
|
output?: "sass" | "css" | undefined;
|
|
@@ -700,7 +700,7 @@ export declare const getComponentDesignTokensSchema: z.ZodObject<{
|
|
|
700
700
|
* Schema for create_component_theme tool.
|
|
701
701
|
*/
|
|
702
702
|
export declare const createComponentThemeSchema: z.ZodObject<{
|
|
703
|
-
platform: z.ZodEnum<["angular", "webcomponents", "react", "blazor"]>;
|
|
703
|
+
platform: z.ZodEnum<["angular", "webcomponents", "react", "blazor", "generic"]>;
|
|
704
704
|
licensed: z.ZodOptional<z.ZodBoolean>;
|
|
705
705
|
designSystem: z.ZodOptional<z.ZodEnum<["material", "bootstrap", "fluent", "indigo"]>>;
|
|
706
706
|
variant: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
|
|
@@ -710,7 +710,7 @@ export declare const createComponentThemeSchema: z.ZodObject<{
|
|
|
710
710
|
name: z.ZodOptional<z.ZodString>;
|
|
711
711
|
output: z.ZodOptional<z.ZodEnum<["sass", "css"]>>;
|
|
712
712
|
}, "strip", z.ZodTypeAny, {
|
|
713
|
-
platform: "angular" | "webcomponents" | "react" | "blazor";
|
|
713
|
+
platform: "angular" | "webcomponents" | "react" | "blazor" | "generic";
|
|
714
714
|
component: string;
|
|
715
715
|
tokens: Record<string, string | number>;
|
|
716
716
|
designSystem?: "material" | "bootstrap" | "fluent" | "indigo" | undefined;
|
|
@@ -720,7 +720,7 @@ export declare const createComponentThemeSchema: z.ZodObject<{
|
|
|
720
720
|
output?: "sass" | "css" | undefined;
|
|
721
721
|
selector?: string | undefined;
|
|
722
722
|
}, {
|
|
723
|
-
platform: "angular" | "webcomponents" | "react" | "blazor";
|
|
723
|
+
platform: "angular" | "webcomponents" | "react" | "blazor" | "generic";
|
|
724
724
|
component: string;
|
|
725
725
|
tokens: Record<string, string | number>;
|
|
726
726
|
designSystem?: "material" | "bootstrap" | "fluent" | "indigo" | undefined;
|
|
@@ -764,26 +764,26 @@ export declare const getColorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
764
764
|
}>;
|
|
765
765
|
export type GetColorParams = z.infer<typeof getColorSchema>;
|
|
766
766
|
export declare const setSizeSchema: z.ZodObject<{
|
|
767
|
-
platform: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor"]>>;
|
|
767
|
+
platform: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor", "generic"]>>;
|
|
768
768
|
component: z.ZodOptional<z.ZodString>;
|
|
769
769
|
scope: z.ZodOptional<z.ZodString>;
|
|
770
770
|
size: z.ZodUnion<[z.ZodEnum<["small", "medium", "large"]>, z.ZodNumber]>;
|
|
771
771
|
output: z.ZodOptional<z.ZodEnum<["sass", "css"]>>;
|
|
772
772
|
}, "strip", z.ZodTypeAny, {
|
|
773
773
|
size: number | "medium" | "small" | "large";
|
|
774
|
-
platform?: "angular" | "webcomponents" | "react" | "blazor" | undefined;
|
|
774
|
+
platform?: "angular" | "webcomponents" | "react" | "blazor" | "generic" | undefined;
|
|
775
775
|
output?: "sass" | "css" | undefined;
|
|
776
776
|
component?: string | undefined;
|
|
777
777
|
scope?: string | undefined;
|
|
778
778
|
}, {
|
|
779
779
|
size: number | "medium" | "small" | "large";
|
|
780
|
-
platform?: "angular" | "webcomponents" | "react" | "blazor" | undefined;
|
|
780
|
+
platform?: "angular" | "webcomponents" | "react" | "blazor" | "generic" | undefined;
|
|
781
781
|
output?: "sass" | "css" | undefined;
|
|
782
782
|
component?: string | undefined;
|
|
783
783
|
scope?: string | undefined;
|
|
784
784
|
}>;
|
|
785
785
|
export declare const setSpacingInputSchema: z.ZodObject<{
|
|
786
|
-
platform: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor"]>>;
|
|
786
|
+
platform: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor", "generic"]>>;
|
|
787
787
|
component: z.ZodOptional<z.ZodString>;
|
|
788
788
|
scope: z.ZodOptional<z.ZodString>;
|
|
789
789
|
spacing: z.ZodNumber;
|
|
@@ -792,7 +792,7 @@ export declare const setSpacingInputSchema: z.ZodObject<{
|
|
|
792
792
|
output: z.ZodOptional<z.ZodEnum<["sass", "css"]>>;
|
|
793
793
|
}, "strip", z.ZodTypeAny, {
|
|
794
794
|
spacing: number;
|
|
795
|
-
platform?: "angular" | "webcomponents" | "react" | "blazor" | undefined;
|
|
795
|
+
platform?: "angular" | "webcomponents" | "react" | "blazor" | "generic" | undefined;
|
|
796
796
|
inline?: number | undefined;
|
|
797
797
|
output?: "sass" | "css" | undefined;
|
|
798
798
|
component?: string | undefined;
|
|
@@ -800,7 +800,7 @@ export declare const setSpacingInputSchema: z.ZodObject<{
|
|
|
800
800
|
block?: number | undefined;
|
|
801
801
|
}, {
|
|
802
802
|
spacing: number;
|
|
803
|
-
platform?: "angular" | "webcomponents" | "react" | "blazor" | undefined;
|
|
803
|
+
platform?: "angular" | "webcomponents" | "react" | "blazor" | "generic" | undefined;
|
|
804
804
|
inline?: number | undefined;
|
|
805
805
|
output?: "sass" | "css" | undefined;
|
|
806
806
|
component?: string | undefined;
|
|
@@ -808,7 +808,7 @@ export declare const setSpacingInputSchema: z.ZodObject<{
|
|
|
808
808
|
block?: number | undefined;
|
|
809
809
|
}>;
|
|
810
810
|
export declare const setSpacingSchema: z.ZodObject<{
|
|
811
|
-
platform: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor"]>>;
|
|
811
|
+
platform: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor", "generic"]>>;
|
|
812
812
|
component: z.ZodOptional<z.ZodString>;
|
|
813
813
|
scope: z.ZodOptional<z.ZodString>;
|
|
814
814
|
spacing: z.ZodNumber;
|
|
@@ -817,7 +817,7 @@ export declare const setSpacingSchema: z.ZodObject<{
|
|
|
817
817
|
output: z.ZodOptional<z.ZodEnum<["sass", "css"]>>;
|
|
818
818
|
}, "strip", z.ZodTypeAny, {
|
|
819
819
|
spacing: number;
|
|
820
|
-
platform?: "angular" | "webcomponents" | "react" | "blazor" | undefined;
|
|
820
|
+
platform?: "angular" | "webcomponents" | "react" | "blazor" | "generic" | undefined;
|
|
821
821
|
inline?: number | undefined;
|
|
822
822
|
output?: "sass" | "css" | undefined;
|
|
823
823
|
component?: string | undefined;
|
|
@@ -825,7 +825,7 @@ export declare const setSpacingSchema: z.ZodObject<{
|
|
|
825
825
|
block?: number | undefined;
|
|
826
826
|
}, {
|
|
827
827
|
spacing: number;
|
|
828
|
-
platform?: "angular" | "webcomponents" | "react" | "blazor" | undefined;
|
|
828
|
+
platform?: "angular" | "webcomponents" | "react" | "blazor" | "generic" | undefined;
|
|
829
829
|
inline?: number | undefined;
|
|
830
830
|
output?: "sass" | "css" | undefined;
|
|
831
831
|
component?: string | undefined;
|
|
@@ -833,20 +833,20 @@ export declare const setSpacingSchema: z.ZodObject<{
|
|
|
833
833
|
block?: number | undefined;
|
|
834
834
|
}>;
|
|
835
835
|
export declare const setRoundnessSchema: z.ZodObject<{
|
|
836
|
-
platform: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor"]>>;
|
|
836
|
+
platform: z.ZodOptional<z.ZodEnum<["angular", "webcomponents", "react", "blazor", "generic"]>>;
|
|
837
837
|
component: z.ZodOptional<z.ZodString>;
|
|
838
838
|
scope: z.ZodOptional<z.ZodString>;
|
|
839
839
|
radiusFactor: z.ZodNumber;
|
|
840
840
|
output: z.ZodOptional<z.ZodEnum<["sass", "css"]>>;
|
|
841
841
|
}, "strip", z.ZodTypeAny, {
|
|
842
842
|
radiusFactor: number;
|
|
843
|
-
platform?: "angular" | "webcomponents" | "react" | "blazor" | undefined;
|
|
843
|
+
platform?: "angular" | "webcomponents" | "react" | "blazor" | "generic" | undefined;
|
|
844
844
|
output?: "sass" | "css" | undefined;
|
|
845
845
|
component?: string | undefined;
|
|
846
846
|
scope?: string | undefined;
|
|
847
847
|
}, {
|
|
848
848
|
radiusFactor: number;
|
|
849
|
-
platform?: "angular" | "webcomponents" | "react" | "blazor" | undefined;
|
|
849
|
+
platform?: "angular" | "webcomponents" | "react" | "blazor" | "generic" | undefined;
|
|
850
850
|
output?: "sass" | "css" | undefined;
|
|
851
851
|
component?: string | undefined;
|
|
852
852
|
scope?: string | undefined;
|
package/dist/mcp/utils/sass.d.ts
CHANGED
|
@@ -42,6 +42,26 @@ export declare function generateHeader(description: string): string;
|
|
|
42
42
|
* @returns The appropriate @use statement for the platform
|
|
43
43
|
*/
|
|
44
44
|
export declare function generateUseStatement(platform?: Platform, licensed?: boolean): string;
|
|
45
|
+
/**
|
|
46
|
+
* Generate additional @use import statements for typography and/or elevation presets.
|
|
47
|
+
*
|
|
48
|
+
* For non-Angular platforms, preset variables like `$material-type-scale` and
|
|
49
|
+
* `$material-elevations` are defined in separate sub-modules that must be
|
|
50
|
+
* explicitly imported. Angular's `igniteui-angular/theming` re-exports all
|
|
51
|
+
* presets, so no additional imports are needed.
|
|
52
|
+
*
|
|
53
|
+
* These imports use the presets index files which re-forward individual
|
|
54
|
+
* design system modules with prefixed names (e.g., `$type-scale` becomes
|
|
55
|
+
* `$material-type-scale` via `@forward './material' as material-*`).
|
|
56
|
+
*
|
|
57
|
+
* @param options - Configuration for which preset imports to include
|
|
58
|
+
* @returns Array of @use statements (empty for Angular)
|
|
59
|
+
*/
|
|
60
|
+
export declare function generatePresetImports(options: {
|
|
61
|
+
platform?: Platform;
|
|
62
|
+
includeTypography?: boolean;
|
|
63
|
+
includeElevations?: boolean;
|
|
64
|
+
}): string[];
|
|
45
65
|
/**
|
|
46
66
|
* Options for generating a palette function call.
|
|
47
67
|
*/
|
package/dist/mcp/utils/sass.js
CHANGED
|
@@ -40,6 +40,21 @@ function generateUseStatement(platform, licensed) {
|
|
|
40
40
|
}
|
|
41
41
|
return "@use 'igniteui-theming' as *;";
|
|
42
42
|
}
|
|
43
|
+
const TYPOGRAPHY_PRESETS_PATH = "igniteui-theming/sass/typography/presets";
|
|
44
|
+
const ELEVATIONS_PRESETS_PATH = "igniteui-theming/sass/elevations/presets";
|
|
45
|
+
function generatePresetImports(options) {
|
|
46
|
+
if (options.platform === "angular") {
|
|
47
|
+
return [];
|
|
48
|
+
}
|
|
49
|
+
const lines = [];
|
|
50
|
+
if (options.includeTypography) {
|
|
51
|
+
lines.push(`@use '${TYPOGRAPHY_PRESETS_PATH}' as *;`);
|
|
52
|
+
}
|
|
53
|
+
if (options.includeElevations) {
|
|
54
|
+
lines.push(`@use '${ELEVATIONS_PRESETS_PATH}' as *;`);
|
|
55
|
+
}
|
|
56
|
+
return lines;
|
|
57
|
+
}
|
|
43
58
|
function generatePaletteCode(options) {
|
|
44
59
|
const variant = options.variant ?? "light";
|
|
45
60
|
const varName = options.variableName ? `$${options.variableName}` : `$custom-${variant}-palette`;
|
|
@@ -187,6 +202,7 @@ export {
|
|
|
187
202
|
generateElevationsCode,
|
|
188
203
|
generateHeader,
|
|
189
204
|
generatePaletteCode,
|
|
205
|
+
generatePresetImports,
|
|
190
206
|
generateTypographyCode,
|
|
191
207
|
generateUseStatement,
|
|
192
208
|
quoteFontFamily,
|
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
* - webcomponents: Ignite UI for Web Components (uses igniteui-theming directly)
|
|
15
15
|
* - react: Ignite UI for React (uses igniteui-theming directly)
|
|
16
16
|
* - blazor: Ignite UI for Blazor (uses igniteui-theming for Sass compilation)
|
|
17
|
+
* - generic: Platform-agnostic output using igniteui-theming directly (no Ignite UI product)
|
|
17
18
|
*/
|
|
18
|
-
export declare const PLATFORMS: readonly ["angular", "webcomponents", "react", "blazor"];
|
|
19
|
+
export declare const PLATFORMS: readonly ["angular", "webcomponents", "react", "blazor", "generic"];
|
|
19
20
|
/**
|
|
20
21
|
* Supported design systems.
|
|
21
22
|
*/
|