@rokkit/stories 1.0.0-next.127 → 1.0.0-next.128
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/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import {
|
|
2
|
+
import { DEFAULT_STATE_ICONS } from '@rokkit/core'
|
|
3
3
|
import { Icon, Button } from '@rokkit/ui'
|
|
4
4
|
let { content, class: className = 'absolute right-2 top-2 z-10', title = 'Copy code' } = $props()
|
|
5
5
|
let copySuccess = $state(false)
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
|
|
20
20
|
<Button onclick={copyToClipboard} class={className} {title}>
|
|
21
21
|
{#if copySuccess}
|
|
22
|
-
<Icon name={
|
|
22
|
+
<Icon name={DEFAULT_STATE_ICONS.action.copysuccess} />
|
|
23
23
|
{:else}
|
|
24
|
-
<Icon name={
|
|
24
|
+
<Icon name={DEFAULT_STATE_ICONS.action.copy} />
|
|
25
25
|
{/if}
|
|
26
26
|
</Button>
|