@cloudparker/moldex.js 4.1.19 → 4.1.20

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.
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import Button from '../../../button/components/button/button.svelte';
3
- import { copyToClipboard, showToast } from '../../../../../services/index.js';
3
+ import { copyToClipboard, showToast } from '../../../../../services/index.js';
4
4
  import { mdiContentCopy } from '../../../icon';
5
5
 
6
6
  type PropsType = {
@@ -9,6 +9,7 @@
9
9
  buttonClassName?: string;
10
10
  iconClassName?: string;
11
11
  iconPath?: string;
12
+ textClassName?: string;
12
13
  };
13
14
 
14
15
  let {
@@ -16,7 +17,8 @@
16
17
  containerClassName = '',
17
18
  buttonClassName = '',
18
19
  iconClassName = '',
19
- iconPath = mdiContentCopy
20
+ iconPath = mdiContentCopy,
21
+ textClassName = ''
20
22
  }: PropsType = $props();
21
23
 
22
24
  function handleCopy() {
@@ -28,7 +30,7 @@
28
30
  </script>
29
31
 
30
32
  <span class="flex items-center {containerClassName}">
31
- <span>{input || ''}</span>
33
+ <span class={textClassName}>{input || ''}</span>
32
34
  {#if input}
33
35
  <Button
34
36
  onClick={handleCopy}
@@ -4,6 +4,7 @@ type PropsType = {
4
4
  buttonClassName?: string;
5
5
  iconClassName?: string;
6
6
  iconPath?: string;
7
+ textClassName?: string;
7
8
  };
8
9
  declare const TextCopy: import("svelte").Component<PropsType, {}, "">;
9
10
  type TextCopy = ReturnType<typeof TextCopy>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudparker/moldex.js",
3
- "version": "4.1.19",
3
+ "version": "4.1.20",
4
4
  "keywords": [
5
5
  "svelte"
6
6
  ],