@hyvor/design 1.1.16 → 1.1.17
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/components/EmojiPicker/EmojiPicker.svelte +6 -1
- package/dist/components/EmojiPicker/EmojiPicker.svelte.d.ts +2 -1
- package/dist/components/IconButton/IconButton.svelte +2 -2
- package/dist/components/IconButton/IconButton.svelte.d.ts +2 -2
- package/dist/components/IconButton/iconButton.types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2,13 +2,18 @@
|
|
|
2
2
|
import Dropdown from '../Dropdown/Dropdown.svelte';
|
|
3
3
|
import type { DropdownAlign, DropdownPosition } from '../Dropdown/dropdown.types.js';
|
|
4
4
|
import IconButton from '../IconButton/IconButton.svelte';
|
|
5
|
-
import type {
|
|
5
|
+
import type {
|
|
6
|
+
IconButtonColor,
|
|
7
|
+
IconButtonSize,
|
|
8
|
+
IconButtonVariant
|
|
9
|
+
} from '../IconButton/iconButton.types.js';
|
|
6
10
|
import EmojiSelector from './EmojiSelector.svelte';
|
|
7
11
|
|
|
8
12
|
interface Props {
|
|
9
13
|
emoji?: string;
|
|
10
14
|
iconButtonSize?: IconButtonSize;
|
|
11
15
|
iconButtonColor?: IconButtonColor;
|
|
16
|
+
iconButtonVariant?: IconButtonVariant;
|
|
12
17
|
dropdownAlign?: DropdownAlign;
|
|
13
18
|
dropdownPosition?: DropdownPosition;
|
|
14
19
|
onselect?: (emoji: string | undefined) => void;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { DropdownAlign, DropdownPosition } from '../Dropdown/dropdown.types.js';
|
|
2
|
-
import type { IconButtonColor, IconButtonSize } from '../IconButton/iconButton.types.js';
|
|
2
|
+
import type { IconButtonColor, IconButtonSize, IconButtonVariant } from '../IconButton/iconButton.types.js';
|
|
3
3
|
interface Props {
|
|
4
4
|
emoji?: string;
|
|
5
5
|
iconButtonSize?: IconButtonSize;
|
|
6
6
|
iconButtonColor?: IconButtonColor;
|
|
7
|
+
iconButtonVariant?: IconButtonVariant;
|
|
7
8
|
dropdownAlign?: DropdownAlign;
|
|
8
9
|
dropdownPosition?: DropdownPosition;
|
|
9
10
|
onselect?: (emoji: string | undefined) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { createBubbler } from 'svelte/legacy';
|
|
3
|
-
import type { IconButtonSize, IconButtonColor } from './iconButton.types.js';
|
|
3
|
+
import type { IconButtonSize, IconButtonColor, IconButtonVariant } from './iconButton.types.js';
|
|
4
4
|
import { legacyHandlers } from '../../legacy.js';
|
|
5
5
|
|
|
6
6
|
const bubble = createBubbler();
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
interface Props {
|
|
9
9
|
size?: IconButtonSize;
|
|
10
10
|
color?: IconButtonColor;
|
|
11
|
-
variant?:
|
|
11
|
+
variant?: IconButtonVariant;
|
|
12
12
|
as?: 'button' | 'a';
|
|
13
13
|
children?: import('svelte').Snippet;
|
|
14
14
|
[key: string]: any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { IconButtonSize, IconButtonColor } from './iconButton.types.js';
|
|
1
|
+
import type { IconButtonSize, IconButtonColor, IconButtonVariant } from './iconButton.types.js';
|
|
2
2
|
interface Props {
|
|
3
3
|
size?: IconButtonSize;
|
|
4
4
|
color?: IconButtonColor;
|
|
5
|
-
variant?:
|
|
5
|
+
variant?: IconButtonVariant;
|
|
6
6
|
as?: 'button' | 'a';
|
|
7
7
|
children?: import('svelte').Snippet;
|
|
8
8
|
[key: string]: any;
|
package/package.json
CHANGED