drab 1.9.3 → 1.10.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.
@@ -21,7 +21,7 @@ Displays when the parent element is right clicked.
21
21
 
22
22
  ```svelte
23
23
  <script>
24
- import { ContextMenu } from "@rossrobino/components";
24
+ import { ContextMenu } from "drab";
25
25
  </script>
26
26
 
27
27
  <div class="p-12 border border-dashed flex justify-center">
@@ -36,7 +36,7 @@ export type ContextMenuSlots = typeof __propDef.slots;
36
36
  *
37
37
  * ```svelte
38
38
  * <script>
39
- * import { ContextMenu } from "@rossrobino/components";
39
+ * import { ContextMenu } from "drab";
40
40
  * </script>
41
41
  *
42
42
  * <div class="p-12 border border-dashed flex justify-center">
@@ -23,10 +23,10 @@ Uses the navigator api to copy text to the clipboard.
23
23
 
24
24
  ```svelte
25
25
  <script>
26
- import { CopyButton } from "@rossrobino/components";
26
+ import { CopyButton } from "drab";
27
27
  </script>
28
28
 
29
- <CopyButton text="Text to copy" />
29
+ <CopyButton text="Text to copy" />
30
30
  ```
31
31
  -->
32
32
 
@@ -40,10 +40,10 @@ export type CopyButtonSlots = typeof __propDef.slots;
40
40
  *
41
41
  * ```svelte
42
42
  * <script>
43
- * import { CopyButton } from "@rossrobino/components";
43
+ * import { CopyButton } from "drab";
44
44
  * </script>
45
45
  *
46
- * <CopyButton text="Text to copy" />
46
+ * <CopyButton text="Text to copy" />
47
47
  * ```
48
48
  */
49
49
  export default class CopyButton extends SvelteComponent<CopyButtonProps, CopyButtonEvents, CopyButtonSlots> {
@@ -26,7 +26,7 @@ Data table to display an array of JS objects. Click a column header to sort.
26
26
 
27
27
  ```svelte
28
28
  <script>
29
- import { DataTable } from "@rossrobino/components";
29
+ import { DataTable } from "drab";
30
30
  </script>
31
31
 
32
32
  <DataTable
@@ -53,7 +53,7 @@ export type DataTableSlots = typeof __propDef.slots;
53
53
  *
54
54
  * ```svelte
55
55
  * <script>
56
- * import { DataTable } from "@rossrobino/components";
56
+ * import { DataTable } from "drab";
57
57
  * </script>
58
58
  *
59
59
  * <DataTable
@@ -23,7 +23,7 @@ Text editor with controls to add elements and keyboard shortcuts.
23
23
 
24
24
  ```svelte
25
25
  <script>
26
- import { Editor } from "@rossrobino/components";
26
+ import { Editor } from "drab";
27
27
  </script>
28
28
 
29
29
  <Editor contentElements={[
@@ -68,7 +68,7 @@ export type EditorSlots = typeof __propDef.slots;
68
68
  *
69
69
  * ```svelte
70
70
  * <script>
71
- * import { Editor } from "@rossrobino/components";
71
+ * import { Editor } from "drab";
72
72
  * </script>
73
73
  *
74
74
  * <Editor contentElements={[
@@ -24,7 +24,7 @@ Make the document or a specific element fullscreen.
24
24
 
25
25
  ```svelte
26
26
  <script>
27
- import { FullscreenButton } from "@rossrobino/components";
27
+ import { FullscreenButton } from "drab";
28
28
 
29
29
  let fullscreenDiv;
30
30
  </script>
@@ -42,7 +42,7 @@ export type FullscreenButtonSlots = typeof __propDef.slots;
42
42
  *
43
43
  * ```svelte
44
44
  * <script>
45
- * import { FullscreenButton } from "@rossrobino/components";
45
+ * import { FullscreenButton } from "drab";
46
46
  *
47
47
  * let fullscreenDiv;
48
48
  * </script>
@@ -24,13 +24,13 @@ Uses the navigator api to share or copy a url link depending on browser support.
24
24
 
25
25
  ```svelte
26
26
  <script>
27
- import { ShareButton } from "@rossrobino/components";
27
+ import { ShareButton } from "drab";
28
28
  </script>
29
29
 
30
30
  <ShareButton
31
31
  text="Check out this page: "
32
- title="@rossrobino/components"
33
- url="https://components.robino.dev"
32
+ title="drab"
33
+ url="https://drab.robino.dev"
34
34
  />
35
35
  ```
36
36
  -->
@@ -42,13 +42,13 @@ export type ShareButtonSlots = typeof __propDef.slots;
42
42
  *
43
43
  * ```svelte
44
44
  * <script>
45
- * import { ShareButton } from "@rossrobino/components";
45
+ * import { ShareButton } from "drab";
46
46
  * </script>
47
47
  *
48
48
  * <ShareButton
49
49
  * text="Check out this page: "
50
- * title="@rossrobino/components"
51
- * url="https://components.robino.dev"
50
+ * title="drab"
51
+ * url="https://drab.robino.dev"
52
52
  * />
53
53
  * ```
54
54
  */
@@ -18,7 +18,7 @@ Embeds a YouTube video into a website with the video `uid`, using [www.youtube-n
18
18
 
19
19
  ```svelte
20
20
  <script>
21
- import { YouTube } from "@rossrobino/components";
21
+ import { YouTube } from "drab";
22
22
  </script>
23
23
 
24
24
  <YouTube title="Video Title" uid="youtube_uid" />
@@ -34,7 +34,7 @@ export type YouTubeSlots = typeof __propDef.slots;
34
34
  *
35
35
  * ```svelte
36
36
  * <script>
37
- * import { YouTube } from "@rossrobino/components";
37
+ * import { YouTube } from "drab";
38
38
  * </script>
39
39
  *
40
40
  * <YouTube title="Video Title" uid="youtube_uid" />
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import Chord from "./components/Chord.svelte";
2
+ import ContextMenu from "./components/ContextMenu.svelte";
2
3
  import CopyButton from "./components/CopyButton.svelte";
3
4
  import DataTable from "./components/DataTable.svelte";
4
5
  import type { DataTableRow } from "./components/DataTable.svelte";
@@ -7,4 +8,4 @@ import type { EditorContentElement } from "./components/Editor.svelte";
7
8
  import FullscreenButton from "./components/FullscreenButton.svelte";
8
9
  import ShareButton from "./components/ShareButton.svelte";
9
10
  import YouTube from "./components/YouTube.svelte";
10
- export { Chord, CopyButton, DataTable, type DataTableRow, Editor, type EditorContentElement, FullscreenButton, ShareButton, YouTube, };
11
+ export { Chord, ContextMenu, CopyButton, DataTable, type DataTableRow, Editor, type EditorContentElement, FullscreenButton, ShareButton, YouTube, };
package/dist/index.js CHANGED
@@ -1,8 +1,9 @@
1
1
  import Chord from "./components/Chord.svelte";
2
+ import ContextMenu from "./components/ContextMenu.svelte";
2
3
  import CopyButton from "./components/CopyButton.svelte";
3
4
  import DataTable from "./components/DataTable.svelte";
4
5
  import Editor from "./components/Editor.svelte";
5
6
  import FullscreenButton from "./components/FullscreenButton.svelte";
6
7
  import ShareButton from "./components/ShareButton.svelte";
7
8
  import YouTube from "./components/YouTube.svelte";
8
- export { Chord, CopyButton, DataTable, Editor, FullscreenButton, ShareButton, YouTube, };
9
+ export { Chord, ContextMenu, CopyButton, DataTable, Editor, FullscreenButton, ShareButton, YouTube, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drab",
3
- "version": "1.9.3",
3
+ "version": "1.10.0",
4
4
  "description": "An unstyled Svelte component library",
5
5
  "keywords": [
6
6
  "components",