@sankhyatronics/sankhya-cms 0.0.0-stage → 0.0.9
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/LICENSE +21 -0
- package/README.md +34 -3
- package/custom-elements.json +4008 -0
- package/dist/bento-grid/index.d.ts +27 -0
- package/dist/bento-grid/index.js +10 -0
- package/dist/bento-grid/index.js.map +1 -0
- package/dist/card/index.d.ts +20 -0
- package/dist/card/index.js +9 -0
- package/dist/card/index.js.map +1 -0
- package/dist/carousel/index.d.ts +44 -0
- package/dist/carousel/index.js +10 -0
- package/dist/carousel/index.js.map +1 -0
- package/dist/chunk-23IHTBAB.js +557 -0
- package/dist/chunk-23IHTBAB.js.map +1 -0
- package/dist/chunk-2VZFHTBC.js +203 -0
- package/dist/chunk-2VZFHTBC.js.map +1 -0
- package/dist/chunk-3ERKQNZT.js +155 -0
- package/dist/chunk-3ERKQNZT.js.map +1 -0
- package/dist/chunk-3JU3R22O.js +193 -0
- package/dist/chunk-3JU3R22O.js.map +1 -0
- package/dist/chunk-3TCP25JG.js +347 -0
- package/dist/chunk-3TCP25JG.js.map +1 -0
- package/dist/chunk-3VE6VFJ4.js +87 -0
- package/dist/chunk-3VE6VFJ4.js.map +1 -0
- package/dist/chunk-4HKSA5UT.js +312 -0
- package/dist/chunk-4HKSA5UT.js.map +1 -0
- package/dist/chunk-5REZSZCK.js +266 -0
- package/dist/chunk-5REZSZCK.js.map +1 -0
- package/dist/chunk-5UFRGZWG.js +268 -0
- package/dist/chunk-5UFRGZWG.js.map +1 -0
- package/dist/chunk-74MILER4.js +215 -0
- package/dist/chunk-74MILER4.js.map +1 -0
- package/dist/chunk-7PSYCTEN.js +118 -0
- package/dist/chunk-7PSYCTEN.js.map +1 -0
- package/dist/chunk-E52WO7R7.js +279 -0
- package/dist/chunk-E52WO7R7.js.map +1 -0
- package/dist/chunk-EUXUH3YW.js +15 -0
- package/dist/chunk-EUXUH3YW.js.map +1 -0
- package/dist/chunk-IMACP7HN.js +156 -0
- package/dist/chunk-IMACP7HN.js.map +1 -0
- package/dist/chunk-LHU23TF6.js +273 -0
- package/dist/chunk-LHU23TF6.js.map +1 -0
- package/dist/chunk-OEX5FDMR.js +250 -0
- package/dist/chunk-OEX5FDMR.js.map +1 -0
- package/dist/chunk-RHAOQ6K4.js +138 -0
- package/dist/chunk-RHAOQ6K4.js.map +1 -0
- package/dist/chunk-RMIJVTFS.js +397 -0
- package/dist/chunk-RMIJVTFS.js.map +1 -0
- package/dist/chunk-TIU73O7I.js +221 -0
- package/dist/chunk-TIU73O7I.js.map +1 -0
- package/dist/chunk-USNFT4DU.js +125 -0
- package/dist/chunk-USNFT4DU.js.map +1 -0
- package/dist/chunk-VYON56QO.js +90 -0
- package/dist/chunk-VYON56QO.js.map +1 -0
- package/dist/chunk-WCO7JAIK.js +195 -0
- package/dist/chunk-WCO7JAIK.js.map +1 -0
- package/dist/chunk-XHBC23TV.js +254 -0
- package/dist/chunk-XHBC23TV.js.map +1 -0
- package/dist/chunk-XXPBFHWR.js +70 -0
- package/dist/chunk-XXPBFHWR.js.map +1 -0
- package/dist/chunk-YYK4GQUW.js +299 -0
- package/dist/chunk-YYK4GQUW.js.map +1 -0
- package/dist/cms-theme.css +15 -0
- package/dist/content-block/index.d.ts +25 -0
- package/dist/content-block/index.js +11 -0
- package/dist/content-block/index.js.map +1 -0
- package/dist/cookie-consent/index.d.ts +33 -0
- package/dist/cookie-consent/index.js +9 -0
- package/dist/cookie-consent/index.js.map +1 -0
- package/dist/dropdown/index.d.ts +89 -0
- package/dist/dropdown/index.js +9 -0
- package/dist/dropdown/index.js.map +1 -0
- package/dist/feature-split/index.d.ts +38 -0
- package/dist/feature-split/index.js +11 -0
- package/dist/feature-split/index.js.map +1 -0
- package/dist/features-section/index.d.ts +50 -0
- package/dist/features-section/index.js +14 -0
- package/dist/features-section/index.js.map +1 -0
- package/dist/footer/index.d.ts +64 -0
- package/dist/footer/index.js +9 -0
- package/dist/footer/index.js.map +1 -0
- package/dist/header/index.d.ts +112 -0
- package/dist/header/index.js +10 -0
- package/dist/header/index.js.map +1 -0
- package/dist/hero/index.d.ts +32 -0
- package/dist/hero/index.js +10 -0
- package/dist/hero/index.js.map +1 -0
- package/dist/icon-button/index.d.ts +23 -0
- package/dist/icon-button/index.js +9 -0
- package/dist/icon-button/index.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +93 -0
- package/dist/index.js.map +1 -0
- package/dist/items-accordion/index.d.ts +31 -0
- package/dist/items-accordion/index.js +10 -0
- package/dist/items-accordion/index.js.map +1 -0
- package/dist/markdown/index.d.ts +33 -0
- package/dist/markdown/index.js +9 -0
- package/dist/markdown/index.js.map +1 -0
- package/dist/menu-grid/index.d.ts +21 -0
- package/dist/menu-grid/index.js +9 -0
- package/dist/menu-grid/index.js.map +1 -0
- package/dist/menu-grid-item/index.d.ts +53 -0
- package/dist/menu-grid-item/index.js +9 -0
- package/dist/menu-grid-item/index.js.map +1 -0
- package/dist/menu-item/index.d.ts +50 -0
- package/dist/menu-item/index.js +9 -0
- package/dist/menu-item/index.js.map +1 -0
- package/dist/promo-banner/index.d.ts +22 -0
- package/dist/promo-banner/index.js +10 -0
- package/dist/promo-banner/index.js.map +1 -0
- package/dist/schema/index.d.ts +72 -0
- package/dist/schema/index.js +75 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/select/index.d.ts +77 -0
- package/dist/select/index.js +10 -0
- package/dist/select/index.js.map +1 -0
- package/dist/shared/icons.d.ts +77 -0
- package/dist/shared/icons.js +64 -0
- package/dist/shared/icons.js.map +1 -0
- package/dist/shared/styles.d.ts +90 -0
- package/dist/shared/styles.js +48 -0
- package/dist/shared/styles.js.map +1 -0
- package/dist/stats/index.d.ts +17 -0
- package/dist/stats/index.js +9 -0
- package/dist/stats/index.js.map +1 -0
- package/dist/testimonials/index.d.ts +25 -0
- package/dist/testimonials/index.js +10 -0
- package/dist/testimonials/index.js.map +1 -0
- package/dist/theme.css +292 -0
- package/dist/themes.css +65 -0
- package/dist/theming/index.d.ts +28 -0
- package/dist/theming/index.js +53 -0
- package/dist/theming/index.js.map +1 -0
- package/package.json +160 -3
package/dist/themes.css
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
:root.dark {
|
|
2
|
+
--st-primary-color: oklch(97.913% 0.00011 271.152);
|
|
3
|
+
--st-primary-background: oklch(11.862% 0.03663 260.411 / 0.808);
|
|
4
|
+
--st-font-family: "Open Sans";
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
:root.red {
|
|
8
|
+
--st-primary-color: oklch(25.8% 0.092 26.042);
|
|
9
|
+
--st-primary-background: oklch(97.1% 0.013 17.38);
|
|
10
|
+
--st-font-family: 'Arimo';
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:root.amber {
|
|
14
|
+
--st-primary-color: oklch(27.9% 0.077 45.635);
|
|
15
|
+
--st-primary-background: oklch(98.7% 0.022 95.277);
|
|
16
|
+
--st-font-family: "Open Sans";
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:root.lime {
|
|
20
|
+
--st-primary-color: oklch(27.4% 0.072 132.109);
|
|
21
|
+
--st-primary-background: oklch(98.6% 0.031 120.757);
|
|
22
|
+
--st-font-family: "Quicksand";
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:root.teal {
|
|
26
|
+
--st-primary-color: oklch(27.7% 0.046 192.524);
|
|
27
|
+
--st-primary-background: oklch(98.4% 0.014 180.72);
|
|
28
|
+
--st-font-family: "Nunito";
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:root.cyan {
|
|
32
|
+
--st-primary-color: oklch(30.2% 0.056 229.695);
|
|
33
|
+
--st-primary-background: oklch(98.4% 0.019 200.873);
|
|
34
|
+
--st-font-family: "Arimo";
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:root.sky {
|
|
38
|
+
--st-primary-color: oklch(29.3% 0.066 243.157);
|
|
39
|
+
--st-primary-background: oklch(97.7% 0.013 236.62);
|
|
40
|
+
--st-font-family: "Almendra";
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:root.blue {
|
|
44
|
+
--st-primary-color: oklch(28.2% 0.091 267.935);
|
|
45
|
+
--st-primary-background: oklch(97% 0.014 254.604);
|
|
46
|
+
--st-font-family: "Miranda Sans";
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:root.indigo {
|
|
50
|
+
--st-primary-color: oklch(25.7% 0.09 281.288);
|
|
51
|
+
--st-primary-background: oklch(96.2% 0.018 272.314);
|
|
52
|
+
--st-font-family: "Nunito";
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:root.fuchsia {
|
|
56
|
+
--st-primary-color: oklch(29.3% 0.136 325.661);
|
|
57
|
+
--st-primary-background: oklch(97.7% 0.017 320.058);
|
|
58
|
+
--st-font-family: "Quicksand";
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:root.pink {
|
|
62
|
+
--st-primary-color: oklch(28.4% 0.109 3.907);
|
|
63
|
+
--st-primary-background: oklch(97.1% 0.014 343.198);
|
|
64
|
+
--st-font-family: "Open Sans";
|
|
65
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Theme runtime for `themes.css`: the list of themes, and applying one to `<html>`.
|
|
3
|
+
* Framework-free and storage-free — where the chosen theme is remembered is up to the host app.
|
|
4
|
+
*/
|
|
5
|
+
interface ThemeOption {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
/** Approximate color for a picker swatch, not the palette itself (that's `themes.css`). */
|
|
9
|
+
swatch: string;
|
|
10
|
+
dark: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const DEFAULT_THEME = "default";
|
|
13
|
+
/** `'default'` applies no class (the base palette); every other value is a class in `themes.css`. */
|
|
14
|
+
declare const THEMES: readonly ThemeOption[];
|
|
15
|
+
declare function isTheme(value: unknown): value is string;
|
|
16
|
+
/** The theme to use when nobody has chosen one: `dark` if the OS prefers it, else `default`. */
|
|
17
|
+
declare function systemTheme(): string;
|
|
18
|
+
/** Calls `onChange` when the OS light/dark setting flips; returns an unsubscribe function. */
|
|
19
|
+
declare function watchSystemTheme(onChange: (theme: string) => void): () => void;
|
|
20
|
+
/**
|
|
21
|
+
* Applies a theme to `<html>`: swaps only the theme classes (other classes on the element are left
|
|
22
|
+
* alone) and sets `color-scheme` so native controls and scrollbars match. `null`/`undefined` means
|
|
23
|
+
* "nobody chose", which follows the OS; an unknown value falls back to `default`. Returns the
|
|
24
|
+
* theme actually applied.
|
|
25
|
+
*/
|
|
26
|
+
declare function applyTheme(theme: string | null | undefined): string;
|
|
27
|
+
|
|
28
|
+
export { DEFAULT_THEME, THEMES, type ThemeOption, applyTheme, isTheme, systemTheme, watchSystemTheme };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import "../chunk-EUXUH3YW.js";
|
|
2
|
+
|
|
3
|
+
// src/theming/index.ts
|
|
4
|
+
var DEFAULT_THEME = "default";
|
|
5
|
+
var THEMES = [
|
|
6
|
+
{ value: "default", label: "Default", swatch: "#94a3b8", dark: false },
|
|
7
|
+
{ value: "dark", label: "Dark", swatch: "#1f2937", dark: true },
|
|
8
|
+
{ value: "red", label: "Red", swatch: "#ef4444", dark: false },
|
|
9
|
+
{ value: "amber", label: "Amber", swatch: "#f59e0b", dark: false },
|
|
10
|
+
{ value: "lime", label: "Lime", swatch: "#84cc16", dark: false },
|
|
11
|
+
{ value: "teal", label: "Teal", swatch: "#14b8a6", dark: false },
|
|
12
|
+
{ value: "cyan", label: "Cyan", swatch: "#06b6d4", dark: false },
|
|
13
|
+
{ value: "sky", label: "Sky", swatch: "#0ea5e9", dark: false },
|
|
14
|
+
{ value: "blue", label: "Blue", swatch: "#3b82f6", dark: false },
|
|
15
|
+
{ value: "indigo", label: "Indigo", swatch: "#6366f1", dark: false },
|
|
16
|
+
{ value: "fuchsia", label: "Fuchsia", swatch: "#d946ef", dark: false },
|
|
17
|
+
{ value: "pink", label: "Pink", swatch: "#ec4899", dark: false }
|
|
18
|
+
];
|
|
19
|
+
function isTheme(value) {
|
|
20
|
+
return typeof value === "string" && THEMES.some((theme) => theme.value === value);
|
|
21
|
+
}
|
|
22
|
+
var THEME_CLASSES = THEMES.filter((theme) => theme.value !== DEFAULT_THEME).map((theme) => theme.value);
|
|
23
|
+
var DARK_QUERY = "(prefers-color-scheme: dark)";
|
|
24
|
+
function systemTheme() {
|
|
25
|
+
if (typeof window === "undefined" || !window.matchMedia) return DEFAULT_THEME;
|
|
26
|
+
return window.matchMedia(DARK_QUERY).matches ? "dark" : DEFAULT_THEME;
|
|
27
|
+
}
|
|
28
|
+
function watchSystemTheme(onChange) {
|
|
29
|
+
if (typeof window === "undefined" || !window.matchMedia) return () => {
|
|
30
|
+
};
|
|
31
|
+
const query = window.matchMedia(DARK_QUERY);
|
|
32
|
+
const listener = () => onChange(systemTheme());
|
|
33
|
+
query.addEventListener("change", listener);
|
|
34
|
+
return () => query.removeEventListener("change", listener);
|
|
35
|
+
}
|
|
36
|
+
function applyTheme(theme) {
|
|
37
|
+
const resolved = theme === null || theme === void 0 ? systemTheme() : isTheme(theme) ? theme : DEFAULT_THEME;
|
|
38
|
+
if (typeof document === "undefined") return resolved;
|
|
39
|
+
const root = document.documentElement;
|
|
40
|
+
root.classList.remove(...THEME_CLASSES);
|
|
41
|
+
if (resolved !== DEFAULT_THEME) root.classList.add(resolved);
|
|
42
|
+
root.style.colorScheme = THEMES.find((option) => option.value === resolved)?.dark ? "dark" : "light";
|
|
43
|
+
return resolved;
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
DEFAULT_THEME,
|
|
47
|
+
THEMES,
|
|
48
|
+
applyTheme,
|
|
49
|
+
isTheme,
|
|
50
|
+
systemTheme,
|
|
51
|
+
watchSystemTheme
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/theming/index.ts"],"sourcesContent":["/**\n * Theme runtime for `themes.css`: the list of themes, and applying one to `<html>`.\n * Framework-free and storage-free — where the chosen theme is remembered is up to the host app.\n */\n\nexport interface ThemeOption {\n value: string;\n label: string;\n /** Approximate color for a picker swatch, not the palette itself (that's `themes.css`). */\n swatch: string;\n dark: boolean;\n}\n\nexport const DEFAULT_THEME = 'default';\n\n/** `'default'` applies no class (the base palette); every other value is a class in `themes.css`. */\nexport const THEMES: readonly ThemeOption[] = [\n { value: 'default', label: 'Default', swatch: '#94a3b8', dark: false },\n { value: 'dark', label: 'Dark', swatch: '#1f2937', dark: true },\n { value: 'red', label: 'Red', swatch: '#ef4444', dark: false },\n { value: 'amber', label: 'Amber', swatch: '#f59e0b', dark: false },\n { value: 'lime', label: 'Lime', swatch: '#84cc16', dark: false },\n { value: 'teal', label: 'Teal', swatch: '#14b8a6', dark: false },\n { value: 'cyan', label: 'Cyan', swatch: '#06b6d4', dark: false },\n { value: 'sky', label: 'Sky', swatch: '#0ea5e9', dark: false },\n { value: 'blue', label: 'Blue', swatch: '#3b82f6', dark: false },\n { value: 'indigo', label: 'Indigo', swatch: '#6366f1', dark: false },\n { value: 'fuchsia', label: 'Fuchsia', swatch: '#d946ef', dark: false },\n { value: 'pink', label: 'Pink', swatch: '#ec4899', dark: false }\n];\n\nexport function isTheme(value: unknown): value is string {\n return typeof value === 'string' && THEMES.some(theme => theme.value === value);\n}\n\nconst THEME_CLASSES = THEMES.filter(theme => theme.value !== DEFAULT_THEME).map(theme => theme.value);\nconst DARK_QUERY = '(prefers-color-scheme: dark)';\n\n/** The theme to use when nobody has chosen one: `dark` if the OS prefers it, else `default`. */\nexport function systemTheme(): string {\n if (typeof window === 'undefined' || !window.matchMedia) return DEFAULT_THEME;\n return window.matchMedia(DARK_QUERY).matches ? 'dark' : DEFAULT_THEME;\n}\n\n/** Calls `onChange` when the OS light/dark setting flips; returns an unsubscribe function. */\nexport function watchSystemTheme(onChange: (theme: string) => void): () => void {\n if (typeof window === 'undefined' || !window.matchMedia) return () => {};\n const query = window.matchMedia(DARK_QUERY);\n const listener = () => onChange(systemTheme());\n query.addEventListener('change', listener);\n return () => query.removeEventListener('change', listener);\n}\n\n/**\n * Applies a theme to `<html>`: swaps only the theme classes (other classes on the element are left\n * alone) and sets `color-scheme` so native controls and scrollbars match. `null`/`undefined` means\n * \"nobody chose\", which follows the OS; an unknown value falls back to `default`. Returns the\n * theme actually applied.\n */\nexport function applyTheme(theme: string | null | undefined): string {\n const resolved = theme === null || theme === undefined ? systemTheme() : isTheme(theme) ? theme : DEFAULT_THEME;\n if (typeof document === 'undefined') return resolved;\n const root = document.documentElement;\n root.classList.remove(...THEME_CLASSES);\n if (resolved !== DEFAULT_THEME) root.classList.add(resolved);\n root.style.colorScheme = THEMES.find(option => option.value === resolved)?.dark ? 'dark' : 'light';\n return resolved;\n}\n"],"mappings":";;;AAaO,IAAM,gBAAgB;AAGtB,IAAM,SAAiC;AAAA,EAC5C,EAAE,OAAO,WAAW,OAAO,WAAW,QAAQ,WAAW,MAAM,MAAM;AAAA,EACrE,EAAE,OAAO,QAAQ,OAAO,QAAQ,QAAQ,WAAW,MAAM,KAAK;AAAA,EAC9D,EAAE,OAAO,OAAO,OAAO,OAAO,QAAQ,WAAW,MAAM,MAAM;AAAA,EAC7D,EAAE,OAAO,SAAS,OAAO,SAAS,QAAQ,WAAW,MAAM,MAAM;AAAA,EACjE,EAAE,OAAO,QAAQ,OAAO,QAAQ,QAAQ,WAAW,MAAM,MAAM;AAAA,EAC/D,EAAE,OAAO,QAAQ,OAAO,QAAQ,QAAQ,WAAW,MAAM,MAAM;AAAA,EAC/D,EAAE,OAAO,QAAQ,OAAO,QAAQ,QAAQ,WAAW,MAAM,MAAM;AAAA,EAC/D,EAAE,OAAO,OAAO,OAAO,OAAO,QAAQ,WAAW,MAAM,MAAM;AAAA,EAC7D,EAAE,OAAO,QAAQ,OAAO,QAAQ,QAAQ,WAAW,MAAM,MAAM;AAAA,EAC/D,EAAE,OAAO,UAAU,OAAO,UAAU,QAAQ,WAAW,MAAM,MAAM;AAAA,EACnE,EAAE,OAAO,WAAW,OAAO,WAAW,QAAQ,WAAW,MAAM,MAAM;AAAA,EACrE,EAAE,OAAO,QAAQ,OAAO,QAAQ,QAAQ,WAAW,MAAM,MAAM;AACjE;AAEO,SAAS,QAAQ,OAAiC;AACvD,SAAO,OAAO,UAAU,YAAY,OAAO,KAAK,WAAS,MAAM,UAAU,KAAK;AAChF;AAEA,IAAM,gBAAgB,OAAO,OAAO,WAAS,MAAM,UAAU,aAAa,EAAE,IAAI,WAAS,MAAM,KAAK;AACpG,IAAM,aAAa;AAGZ,SAAS,cAAsB;AACpC,MAAI,OAAO,WAAW,eAAe,CAAC,OAAO,WAAY,QAAO;AAChE,SAAO,OAAO,WAAW,UAAU,EAAE,UAAU,SAAS;AAC1D;AAGO,SAAS,iBAAiB,UAA+C;AAC9E,MAAI,OAAO,WAAW,eAAe,CAAC,OAAO,WAAY,QAAO,MAAM;AAAA,EAAC;AACvE,QAAM,QAAQ,OAAO,WAAW,UAAU;AAC1C,QAAM,WAAW,MAAM,SAAS,YAAY,CAAC;AAC7C,QAAM,iBAAiB,UAAU,QAAQ;AACzC,SAAO,MAAM,MAAM,oBAAoB,UAAU,QAAQ;AAC3D;AAQO,SAAS,WAAW,OAA0C;AACnE,QAAM,WAAW,UAAU,QAAQ,UAAU,SAAY,YAAY,IAAI,QAAQ,KAAK,IAAI,QAAQ;AAClG,MAAI,OAAO,aAAa,YAAa,QAAO;AAC5C,QAAM,OAAO,SAAS;AACtB,OAAK,UAAU,OAAO,GAAG,aAAa;AACtC,MAAI,aAAa,cAAe,MAAK,UAAU,IAAI,QAAQ;AAC3D,OAAK,MAAM,cAAc,OAAO,KAAK,YAAU,OAAO,UAAU,QAAQ,GAAG,OAAO,SAAS;AAC3F,SAAO;AACT;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,163 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sankhyatronics/sankhya-cms",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
|
|
3
|
+
"version": "0.0.9",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/sankhyatronics/SankhyaCMS.git",
|
|
7
|
+
"directory": "packages/sankhya-cms"
|
|
8
|
+
},
|
|
9
|
+
"description": "Lit web components for JSON-driven CMS portals (st-* tags)",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"module": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./cms-theme.css": "./dist/cms-theme.css",
|
|
20
|
+
"./theme.css": "./dist/theme.css",
|
|
21
|
+
"./themes.css": "./dist/themes.css",
|
|
22
|
+
"./bento-grid": {
|
|
23
|
+
"types": "./dist/bento-grid/index.d.ts",
|
|
24
|
+
"import": "./dist/bento-grid/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./card": {
|
|
27
|
+
"types": "./dist/card/index.d.ts",
|
|
28
|
+
"import": "./dist/card/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./carousel": {
|
|
31
|
+
"types": "./dist/carousel/index.d.ts",
|
|
32
|
+
"import": "./dist/carousel/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./content-block": {
|
|
35
|
+
"types": "./dist/content-block/index.d.ts",
|
|
36
|
+
"import": "./dist/content-block/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./cookie-consent": {
|
|
39
|
+
"types": "./dist/cookie-consent/index.d.ts",
|
|
40
|
+
"import": "./dist/cookie-consent/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./dropdown": {
|
|
43
|
+
"types": "./dist/dropdown/index.d.ts",
|
|
44
|
+
"import": "./dist/dropdown/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./feature-split": {
|
|
47
|
+
"types": "./dist/feature-split/index.d.ts",
|
|
48
|
+
"import": "./dist/feature-split/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./features-section": {
|
|
51
|
+
"types": "./dist/features-section/index.d.ts",
|
|
52
|
+
"import": "./dist/features-section/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./footer": {
|
|
55
|
+
"types": "./dist/footer/index.d.ts",
|
|
56
|
+
"import": "./dist/footer/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./header": {
|
|
59
|
+
"types": "./dist/header/index.d.ts",
|
|
60
|
+
"import": "./dist/header/index.js"
|
|
61
|
+
},
|
|
62
|
+
"./hero": {
|
|
63
|
+
"types": "./dist/hero/index.d.ts",
|
|
64
|
+
"import": "./dist/hero/index.js"
|
|
65
|
+
},
|
|
66
|
+
"./icon-button": {
|
|
67
|
+
"types": "./dist/icon-button/index.d.ts",
|
|
68
|
+
"import": "./dist/icon-button/index.js"
|
|
69
|
+
},
|
|
70
|
+
"./items-accordion": {
|
|
71
|
+
"types": "./dist/items-accordion/index.d.ts",
|
|
72
|
+
"import": "./dist/items-accordion/index.js"
|
|
73
|
+
},
|
|
74
|
+
"./markdown": {
|
|
75
|
+
"types": "./dist/markdown/index.d.ts",
|
|
76
|
+
"import": "./dist/markdown/index.js"
|
|
77
|
+
},
|
|
78
|
+
"./menu-grid": {
|
|
79
|
+
"types": "./dist/menu-grid/index.d.ts",
|
|
80
|
+
"import": "./dist/menu-grid/index.js"
|
|
81
|
+
},
|
|
82
|
+
"./menu-grid-item": {
|
|
83
|
+
"types": "./dist/menu-grid-item/index.d.ts",
|
|
84
|
+
"import": "./dist/menu-grid-item/index.js"
|
|
85
|
+
},
|
|
86
|
+
"./menu-item": {
|
|
87
|
+
"types": "./dist/menu-item/index.d.ts",
|
|
88
|
+
"import": "./dist/menu-item/index.js"
|
|
89
|
+
},
|
|
90
|
+
"./promo-banner": {
|
|
91
|
+
"types": "./dist/promo-banner/index.d.ts",
|
|
92
|
+
"import": "./dist/promo-banner/index.js"
|
|
93
|
+
},
|
|
94
|
+
"./select": {
|
|
95
|
+
"types": "./dist/select/index.d.ts",
|
|
96
|
+
"import": "./dist/select/index.js"
|
|
97
|
+
},
|
|
98
|
+
"./stats": {
|
|
99
|
+
"types": "./dist/stats/index.d.ts",
|
|
100
|
+
"import": "./dist/stats/index.js"
|
|
101
|
+
},
|
|
102
|
+
"./testimonials": {
|
|
103
|
+
"types": "./dist/testimonials/index.d.ts",
|
|
104
|
+
"import": "./dist/testimonials/index.js"
|
|
105
|
+
},
|
|
106
|
+
"./shared/styles": {
|
|
107
|
+
"types": "./dist/shared/styles.d.ts",
|
|
108
|
+
"import": "./dist/shared/styles.js"
|
|
109
|
+
},
|
|
110
|
+
"./shared/icons": {
|
|
111
|
+
"types": "./dist/shared/icons.d.ts",
|
|
112
|
+
"import": "./dist/shared/icons.js"
|
|
113
|
+
},
|
|
114
|
+
"./schema": {
|
|
115
|
+
"types": "./dist/schema/index.d.ts",
|
|
116
|
+
"import": "./dist/schema/index.js"
|
|
117
|
+
},
|
|
118
|
+
"./theming": {
|
|
119
|
+
"types": "./dist/theming/index.d.ts",
|
|
120
|
+
"import": "./dist/theming/index.js"
|
|
121
|
+
},
|
|
122
|
+
"./custom-elements.json": "./custom-elements.json"
|
|
123
|
+
},
|
|
124
|
+
"files": [
|
|
125
|
+
"dist",
|
|
126
|
+
"custom-elements.json"
|
|
127
|
+
],
|
|
128
|
+
"sideEffects": true,
|
|
129
|
+
"dependencies": {
|
|
130
|
+
"dompurify": "^3.4.16",
|
|
131
|
+
"iconify-icon": "^3.0.3",
|
|
132
|
+
"lit": "3.3.3",
|
|
133
|
+
"marked": "^18.1.0"
|
|
134
|
+
},
|
|
135
|
+
"devDependencies": {
|
|
136
|
+
"@sankhyatronics/oxlint-config": "0.0.9",
|
|
137
|
+
"@sankhyatronics/typescript-config": "0.0.9",
|
|
138
|
+
"oxlint": "1.87.0",
|
|
139
|
+
"rimraf": "6.1.3",
|
|
140
|
+
"tsup": "8.5.1",
|
|
141
|
+
"typescript": "6.0.3",
|
|
142
|
+
"vitest": "5.0.3",
|
|
143
|
+
"@types/node": "26.6.4",
|
|
144
|
+
"@custom-elements-manifest/analyzer": "0.11.0"
|
|
145
|
+
},
|
|
146
|
+
"keywords": [
|
|
147
|
+
"web-components",
|
|
148
|
+
"lit",
|
|
149
|
+
"cms"
|
|
150
|
+
],
|
|
151
|
+
"license": "MIT",
|
|
152
|
+
"customElements": "custom-elements.json",
|
|
153
|
+
"scripts": {
|
|
154
|
+
"build": "tsup src/index.ts src/schema/index.ts src/theming/index.ts src/shared/styles.ts src/shared/icons.ts src/bento-grid/index.ts src/card/index.ts src/carousel/index.ts src/content-block/index.ts src/cookie-consent/index.ts src/dropdown/index.ts src/feature-split/index.ts src/features-section/index.ts src/footer/index.ts src/header/index.ts src/hero/index.ts src/icon-button/index.ts src/items-accordion/index.ts src/markdown/index.ts src/menu-grid/index.ts src/menu-grid-item/index.ts src/menu-item/index.ts src/promo-banner/index.ts src/select/index.ts src/stats/index.ts src/testimonials/index.ts --format esm --dts --sourcemap --clean && node scripts/copy-theme.mjs && cem analyze",
|
|
155
|
+
"dev": "tsup src/index.ts --watch --format esm --dts",
|
|
156
|
+
"typecheck": "tsc --noEmit",
|
|
157
|
+
"lint": "oxlint",
|
|
158
|
+
"clean": "rimraf dist",
|
|
159
|
+
"test": "vitest run",
|
|
160
|
+
"migrate-json": "node scripts/migrate-json.mjs",
|
|
161
|
+
"analyze": "cem analyze"
|
|
162
|
+
}
|
|
6
163
|
}
|