@studiocms/ui 1.0.0-beta.5 → 1.0.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.
@@ -8,6 +8,7 @@
8
8
  margin: auto;
9
9
  z-index: 50;
10
10
  max-width: calc(100% - 4rem);
11
+ background-color: var(--background-base);
11
12
  }
12
13
  .sui-modal.sm {
13
14
  width: 384px;
@@ -9,6 +9,7 @@ class SUIComboboxElement extends SUISelectElement {
9
9
  selectedOptions: [],
10
10
  isSelectingOption: false
11
11
  };
12
+ // biome-ignore lint/complexity/noUselessConstructor: custom element requirement
12
13
  constructor() {
13
14
  super();
14
15
  }
@@ -15,6 +15,7 @@ class SUISelectElement extends HTMLElement {
15
15
  button;
16
16
  dropdown;
17
17
  select;
18
+ // biome-ignore lint/complexity/noUselessConstructor: custom element requirement
18
19
  constructor() {
19
20
  super();
20
21
  }
package/dist/index.d.ts CHANGED
@@ -1,3 +1,11 @@
1
+ /**
2
+ * Triple slash references for ambient types
3
+ *
4
+ * @remarks
5
+ * The references are duplicated here to ensure that they are included in the
6
+ * emitted declaration files. as well as available in the source code for IDEs
7
+ * during development.
8
+ */
1
9
  /// <reference path="events.d.ts" preserve="true" />
2
10
  /// <reference path="virtuals.d.ts" preserve="true" />
3
11
  import type { IconifyJSON } from '@iconify/types';
@@ -8,11 +8,11 @@ export declare const HeadConfigSchema: () => z.ZodDefault<z.ZodArray<z.ZodObject
8
8
  /** Content to place inside the tag (optional). */
9
9
  content: z.ZodDefault<z.ZodString>;
10
10
  }, "strip", z.ZodTypeAny, {
11
- tag: "link" | "base" | "meta" | "noscript" | "script" | "style" | "template" | "title";
11
+ tag: "base" | "link" | "meta" | "noscript" | "script" | "style" | "template" | "title";
12
12
  attrs: Record<string, string | boolean | undefined>;
13
13
  content: string;
14
14
  }, {
15
- tag: "link" | "base" | "meta" | "noscript" | "script" | "style" | "template" | "title";
15
+ tag: "base" | "link" | "meta" | "noscript" | "script" | "style" | "template" | "title";
16
16
  attrs?: Record<string, string | boolean | undefined> | undefined;
17
17
  content?: string | undefined;
18
18
  }>, "many">>;
@@ -29,7 +29,7 @@ export declare const HeadConfigSchema: () => z.ZodDefault<z.ZodArray<z.ZodObject
29
29
  * @returns
30
30
  */
31
31
  export declare const headDefaults: (title: string, description: string, Astro: AstroGlobalPartial, ogImage: string | undefined, canonical: URL | undefined) => {
32
- tag: "link" | "base" | "meta" | "noscript" | "script" | "style" | "template" | "title";
32
+ tag: "base" | "link" | "meta" | "noscript" | "script" | "style" | "template" | "title";
33
33
  attrs?: Record<string, string | boolean | undefined> | undefined;
34
34
  content?: string | undefined;
35
35
  }[];
@@ -41,11 +41,11 @@ export declare const HeadSchema: z.ZodDefault<z.ZodArray<z.ZodObject<{
41
41
  /** Content to place inside the tag (optional). */
42
42
  content: z.ZodDefault<z.ZodString>;
43
43
  }, "strip", z.ZodTypeAny, {
44
- tag: "link" | "base" | "meta" | "noscript" | "script" | "style" | "template" | "title";
44
+ tag: "base" | "link" | "meta" | "noscript" | "script" | "style" | "template" | "title";
45
45
  attrs: Record<string, string | boolean | undefined>;
46
46
  content: string;
47
47
  }, {
48
- tag: "link" | "base" | "meta" | "noscript" | "script" | "style" | "template" | "title";
48
+ tag: "base" | "link" | "meta" | "noscript" | "script" | "style" | "template" | "title";
49
49
  attrs?: Record<string, string | boolean | undefined> | undefined;
50
50
  content?: string | undefined;
51
51
  }>, "many">>;
@@ -69,21 +69,21 @@ export declare function hasOneOf(head: HeadConfig, entry: HeadConfig[number], ke
69
69
  export declare function getAttr(keys: string[], entry: HeadConfig[number]): [key: string, value: string | boolean] | undefined;
70
70
  /** Merge two heads, overwriting entries in the first head that exist in the second. */
71
71
  export declare function mergeHead(oldHead: HeadConfig, newHead: HeadConfig): {
72
- tag: "link" | "base" | "meta" | "noscript" | "script" | "style" | "template" | "title";
72
+ tag: "base" | "link" | "meta" | "noscript" | "script" | "style" | "template" | "title";
73
73
  attrs: Record<string, string | boolean | undefined>;
74
74
  content: string;
75
75
  }[];
76
76
  /** Sort head tags to place important tags first and relegate “SEO” meta tags. */
77
77
  export declare function sortHead(head: HeadConfig): {
78
- tag: "link" | "base" | "meta" | "noscript" | "script" | "style" | "template" | "title";
78
+ tag: "base" | "link" | "meta" | "noscript" | "script" | "style" | "template" | "title";
79
79
  attrs: Record<string, string | boolean | undefined>;
80
80
  content: string;
81
81
  }[];
82
82
  /** Get the relative importance of a specific head tag. */
83
- export declare function getImportance(entry: HeadConfig[number]): 0 | 80 | 100 | 90 | 70;
83
+ export declare function getImportance(entry: HeadConfig[number]): 80 | 0 | 100 | 90 | 70;
84
84
  /** Create a fully parsed, merged, and sorted head entry array from multiple sources. */
85
85
  export declare function createHead(defaultHeaders: HeadUserConfig, ...heads: HeadConfig[]): {
86
- tag: "link" | "base" | "meta" | "noscript" | "script" | "style" | "template" | "title";
86
+ tag: "base" | "link" | "meta" | "noscript" | "script" | "style" | "template" | "title";
87
87
  attrs: Record<string, string | boolean | undefined>;
88
88
  content: string;
89
89
  }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studiocms/ui",
3
- "version": "1.0.0-beta.5",
3
+ "version": "1.0.0",
4
4
  "description": "The UI library for StudioCMS. Includes the layouts & components we use to build StudioCMS.",
5
5
  "repository": {
6
6
  "type": "git",