rimelight-components 2.1.26 → 2.1.28

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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
- "version": "2.1.26",
3
+ "version": "2.1.28",
4
4
  "docs": "https://rimelight.com/tools/rimelight-components",
5
5
  "configKey": "rimelightComponents",
6
6
  "compatibility": {
package/dist/module.mjs CHANGED
@@ -4,7 +4,7 @@ import { readdirSync } from 'node:fs';
4
4
  import { basename } from 'node:path';
5
5
 
6
6
  const name = "rimelight-components";
7
- const version = "2.1.26";
7
+ const version = "2.1.28";
8
8
  const homepage = "https://rimelight.com/tools/rimelight-components";
9
9
 
10
10
  const defaultOptions = {
@@ -1,4 +1,5 @@
1
1
  export interface HeaderProps {
2
+ contain?: boolean;
2
3
  rc?: {
3
4
  root?: string;
4
5
  container?: string;
@@ -1,7 +1,8 @@
1
1
  <script setup>
2
2
  import { tv } from "../../internal/tv";
3
3
  import { useRC } from "../../composables/useRC";
4
- const { rc: rcProp } = defineProps({
4
+ const { contain = true, rc: rcProp } = defineProps({
5
+ contain: { type: Boolean, required: false },
5
6
  rc: { type: Object, required: false }
6
7
  });
7
8
  const emit = defineEmits([]);
@@ -17,6 +18,13 @@ const headerStyles = tv({
17
18
  collapsedLeft: "lg:hidden flex-1 justify-start",
18
19
  collapsedCenter: "lg:hidden flex-none",
19
20
  collapsedRight: "lg:hidden flex-1 justify-end"
21
+ },
22
+ variants: {
23
+ contain: {
24
+ false: {
25
+ container: "max-w-none"
26
+ }
27
+ }
20
28
  }
21
29
  });
22
30
  const {
@@ -28,7 +36,7 @@ const {
28
36
  collapsedLeft,
29
37
  collapsedCenter,
30
38
  collapsedRight
31
- } = headerStyles();
39
+ } = headerStyles({ contain });
32
40
  </script>
33
41
 
34
42
  <template>
@@ -1,4 +1,5 @@
1
1
  export interface HeaderProps {
2
+ contain?: boolean;
2
3
  rc?: {
3
4
  root?: string;
4
5
  container?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
- "version": "2.1.26",
3
+ "version": "2.1.28",
4
4
  "description": "A component library by Rimelight Entertainment.",
5
5
  "keywords": [
6
6
  "nuxt",
@@ -25,19 +25,23 @@
25
25
  "./components/*": "./dist/runtime/components/*",
26
26
  "./composables": {
27
27
  "types": "./dist/runtime/composables/index.d.ts",
28
- "import": "./dist/runtime/composables/index.mjs"
28
+ "import": "./dist/runtime/composables/index.mjs",
29
+ "default": "./dist/runtime/composables/index.mjs"
29
30
  },
30
31
  "./types": {
31
32
  "types": "./dist/runtime/types/index.d.ts",
32
- "import": "./dist/runtime/types/index.mjs"
33
+ "import": "./dist/runtime/types/index.mjs",
34
+ "default": "./dist/runtime/types/index.mjs"
33
35
  },
34
36
  "./utils": {
35
37
  "types": "./dist/runtime/utils/index.d.ts",
36
- "import": "./dist/runtime/utils/index.mjs"
38
+ "import": "./dist/runtime/utils/index.mjs",
39
+ "default": "./dist/runtime/utils/index.mjs"
37
40
  },
38
41
  "./db": {
39
42
  "types": "./dist/runtime/db/index.d.ts",
40
- "import": "./dist/runtime/db/index.mjs"
43
+ "import": "./dist/runtime/db/index.mjs",
44
+ "default": "./dist/runtime/db/index.mjs"
41
45
  }
42
46
  },
43
47
  "style": "./dist/runtime/index.css",