@molecule/app-settings-container-vue 0.0.0-stage → 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.
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Types for the Vue settings-page scaffold.
3
+ *
4
+ * @module
5
+ */
6
+ import type { VNodeChild } from 'vue';
7
+ /** Props accepted by the {@link SettingsLayout} component. */
8
+ export interface SettingsLayoutProps {
9
+ /**
10
+ * Left-side navigation (typically `<SettingsSidebar>`). Passed as a prop or
11
+ * as the same-named slot — both work.
12
+ */
13
+ sidebar?: VNodeChild;
14
+ /** Main content area — the DEFAULT slot (usually one or more `<SettingsSection>`s). */
15
+ children?: VNodeChild;
16
+ /**
17
+ * Optional header (breadcrumb, title, save button) rendered above both
18
+ * columns. NOT sticky — apply your own sticky positioning if needed. Passed
19
+ * as a prop or as the same-named slot.
20
+ */
21
+ header?: VNodeChild;
22
+ /** Extra classes on the outer wrapper. */
23
+ className?: string;
24
+ /** `data-mol-id` for AI-agent selectors. */
25
+ dataMolId?: string;
26
+ }
27
+ /** Props accepted by the {@link SettingsContent} component. */
28
+ export interface SettingsContentProps {
29
+ /** Active section content — the DEFAULT slot. */
30
+ children?: VNodeChild;
31
+ /** Extra classes. */
32
+ className?: string;
33
+ }
34
+ /** A single navigable item in the settings sidebar. */
35
+ export interface SettingsSidebarItem {
36
+ /** Unique id; the active item is the one whose id equals `activeId`. */
37
+ id: string;
38
+ /** Visible label (a VNode or plain text). */
39
+ label: VNodeChild;
40
+ /** Optional leading icon (a VNode). */
41
+ icon?: VNodeChild;
42
+ }
43
+ /** Props accepted by the {@link SettingsSidebar} component. */
44
+ export interface SettingsSidebarProps {
45
+ /** Items to render, in order. */
46
+ items: SettingsSidebarItem[];
47
+ /** The id of the active item (controlled — the caller owns it). */
48
+ activeId: string;
49
+ /** Called with the clicked item's id. */
50
+ onSelect: (id: string) => void;
51
+ /**
52
+ * Optional footer inside the sidebar (sign-out, plan indicator). Passed as a
53
+ * prop or as the same-named slot.
54
+ */
55
+ footer?: VNodeChild;
56
+ /**
57
+ * Accessible name for the `<nav>` region. Overrides the translated /
58
+ * `defaultValue` `'Settings'` (prop > `t()` > default).
59
+ */
60
+ ariaLabel?: string;
61
+ /** Extra classes. */
62
+ className?: string;
63
+ }
64
+ /** Props accepted by the {@link SettingsSection} component. */
65
+ export interface SettingsSectionProps {
66
+ /** Section heading. Passed as a prop or as the same-named slot. */
67
+ title?: VNodeChild;
68
+ /**
69
+ * Optional description under the heading. Passed as a prop or as the
70
+ * same-named slot.
71
+ */
72
+ description?: VNodeChild;
73
+ /** Section body — the DEFAULT slot. */
74
+ children?: VNodeChild;
75
+ /**
76
+ * Optional footer row (save button, last-saved indicator). Passed as a prop
77
+ * or as the same-named slot.
78
+ */
79
+ footer?: VNodeChild;
80
+ /** Extra classes on the Card. */
81
+ className?: string;
82
+ /** `data-mol-id` for AI-agent selectors. */
83
+ dataMolId?: string;
84
+ }
85
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAErC,8DAA8D;AAC9D,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,uFAAuF;IACvF,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,+DAA+D;AAC/D,MAAM,WAAW,oBAAoB;IACnC,iDAAiD;IACjD,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,uDAAuD;AACvD,MAAM,WAAW,mBAAmB;IAClC,wEAAwE;IACxE,EAAE,EAAE,MAAM,CAAA;IACV,6CAA6C;IAC7C,KAAK,EAAE,UAAU,CAAA;IACjB,uCAAuC;IACvC,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB;AAED,+DAA+D;AAC/D,MAAM,WAAW,oBAAoB;IACnC,iCAAiC;IACjC,KAAK,EAAE,mBAAmB,EAAE,CAAA;IAC5B,mEAAmE;IACnE,QAAQ,EAAE,MAAM,CAAA;IAChB,yCAAyC;IACzC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9B;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,+DAA+D;AAC/D,MAAM,WAAW,oBAAoB;IACnC,mEAAmE;IACnE,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,CAAA;IACxB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
package/dist/types.js ADDED
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Types for the Vue settings-page scaffold.
3
+ *
4
+ * @module
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
package/package.json CHANGED
@@ -1,6 +1,65 @@
1
1
  {
2
2
  "name": "@molecule/app-settings-container-vue",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.1.0",
4
+ "description": "Vue layout for Settings pages (sidebar + content + section cards)",
5
+ "homepage": "https://www.molecule.dev/packages/app-settings-container-vue",
6
+ "type": "module",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md"
18
+ ],
19
+ "scripts": {
20
+ "build": "tsc",
21
+ "dev": "vue-tsc --watch",
22
+ "test": "vitest run",
23
+ "test:watch": "vitest"
24
+ },
25
+ "keywords": [
26
+ "molecule",
27
+ "settings-container",
28
+ "vue"
29
+ ],
30
+ "author": "Molecule Dev, Inc. (https://molecule.dev)",
31
+ "license": "Apache-2.0",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "https://github.com/molecule-dev/molecule.git",
35
+ "directory": "packages/app/features/settings-container-vue"
36
+ },
37
+ "engines": {
38
+ "node": ">=20"
39
+ },
40
+ "bugs": "https://github.com/molecule-dev/molecule/issues",
41
+ "publishConfig": {
42
+ "access": "public"
43
+ },
44
+ "peerDependencies": {
45
+ "@molecule/app-ui": "^1.0.1",
46
+ "@molecule/app-ui-vue": "^1.1.0",
47
+ "@molecule/app-vue": "^3.5.0",
48
+ "vue": "^3.4.0"
49
+ },
50
+ "devDependencies": {
51
+ "@molecule/app-framework-conformance": "0.0.0",
52
+ "@molecule/app-i18n": "1.2.2",
53
+ "@molecule/app-icons": "1.0.4",
54
+ "@molecule/app-ui": "1.5.0",
55
+ "@molecule/app-ui-vue": "1.2.1",
56
+ "@molecule/app-vue": "3.9.0",
57
+ "@types/node": "26.6.5",
58
+ "jsdom": "30.1.3",
59
+ "typescript": "6.0.3",
60
+ "vite": "8.3.5",
61
+ "vitest": "4.1.12",
62
+ "vue": "3.5.44",
63
+ "vue-tsc": "3.3.13"
64
+ }
65
+ }