@smalt-ui/nuxt 1.0.1 → 2.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.
package/dist/module.d.mts CHANGED
@@ -7,7 +7,10 @@ interface ModuleOptions {
7
7
  components: boolean;
8
8
  /** Include the global `@smalt-ui/core/styles.css` styles. Defaults to `true`. */
9
9
  css: boolean;
10
- /** Initialize color mode on the client (applies `data-theme`). Defaults to `true`. */
10
+ /**
11
+ * Manage the theme: an early inline script in `<head>` sets `data-theme` before the first
12
+ * paint, and a client plugin keeps it in sync after hydration. Defaults to `true`.
13
+ */
11
14
  colorMode: boolean;
12
15
  /**
13
16
  * Add the `.s-root .s-root--app` container classes to the app root (`#__nuxt`) for CSS isolation
@@ -25,8 +28,10 @@ interface ModuleOptions {
25
28
  /** Partial override of individual strings on top of the locale (`SMessages` keys). */
26
29
  messages?: Record<string, string>;
27
30
  /**
28
- * App-level prop defaults (keys are `global` and component names).
29
- * The type is a loose `Record` to keep the module's types portable; in core it is `SDefaults`.
31
+ * App-level prop defaults (keys are `global` and component names), layered on top of the preset
32
+ * prop by prop. Functions in the values do not survive JSON serialization and are reported with
33
+ * a warning at build time. The type is a loose `Record` to keep the module's types portable; in
34
+ * core it is `SDefaults`.
30
35
  */
31
36
  defaults?: Record<string, Record<string, unknown>>;
32
37
  /** Built-in preset name (`compact`/`comfortable`): "theme + defaults" in one value. */
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0"
6
6
  },
7
- "version": "1.0.1",
7
+ "version": "2.1.0",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.3",
10
10
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -9,18 +9,24 @@ const COMPONENT_NAMES = [
9
9
  "SAccordionItem",
10
10
  "SAlert",
11
11
  "SAlertDialog",
12
+ "SAppBar",
12
13
  "SAspectRatio",
13
14
  "SAutocomplete",
14
15
  "SAvatar",
16
+ "SBackTop",
15
17
  "SBadge",
18
+ "SBanner",
16
19
  "SBreadcrumb",
17
20
  "SButton",
21
+ "SButtonGroup",
18
22
  "SCalendar",
19
23
  "SCard",
20
24
  "SCheckbox",
25
+ "SCheckboxGroup",
21
26
  "SCollapsible",
22
27
  "SColorField",
23
28
  "SColorPicker",
29
+ "SCommandPalette",
24
30
  "SContextMenu",
25
31
  "SDateField",
26
32
  "SDatePicker",
@@ -28,13 +34,25 @@ const COMPONENT_NAMES = [
28
34
  "SDialog",
29
35
  "SDrawer",
30
36
  "SDropdownMenu",
37
+ "SEditable",
38
+ "SEmptyState",
39
+ "SFab",
40
+ "SFileUpload",
41
+ "SForm",
31
42
  "SFormField",
32
43
  "SHoverCard",
33
44
  "SIcon",
45
+ "SImage",
34
46
  "SInput",
47
+ "SKbd",
48
+ "SList",
49
+ "SListItem",
50
+ "SListbox",
51
+ "SLoadingOverlay",
35
52
  "SMenubar",
36
53
  "SNavigationMenu",
37
54
  "SNumberField",
55
+ "SPage",
38
56
  "SPagination",
39
57
  "SPinInput",
40
58
  "SPopover",
@@ -42,18 +60,23 @@ const COMPONENT_NAMES = [
42
60
  "SRadio",
43
61
  "SRadioGroup",
44
62
  "SRating",
63
+ "SScrollArea",
45
64
  "SSelect",
46
65
  "SSeparator",
66
+ "SSidebar",
47
67
  "SSkeleton",
48
68
  "SSlider",
49
69
  "SSpinner",
50
70
  "SSplitter",
71
+ "SStat",
51
72
  "SStepper",
52
73
  "SSwitch",
53
74
  "STabs",
54
75
  "STag",
55
76
  "STextarea",
56
77
  "STimeField",
78
+ "STimePicker",
79
+ "STimeline",
57
80
  "SToast",
58
81
  "SToggle",
59
82
  "SToggleGroup",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smalt-ui/nuxt",
3
- "version": "1.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "Nuxt module for @smalt-ui/core: component auto-import, styles, color mode",
5
5
  "license": "MIT",
6
6
  "author": "Stanislav Dyachenko",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "peerDependencies": {
46
46
  "reka-ui": "^2.10.0",
47
- "@smalt-ui/core": "^1.0.1"
47
+ "@smalt-ui/core": "^2.1.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@nuxt/module-builder": "^1.0.3",
@@ -52,7 +52,7 @@
52
52
  "nuxt": "^4.5.2",
53
53
  "reka-ui": "^2.0.0",
54
54
  "vue": "^3.5.0",
55
- "@smalt-ui/core": "1.0.1"
55
+ "@smalt-ui/core": "2.1.0"
56
56
  },
57
57
  "scripts": {
58
58
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare",