Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit 7cdec36

Browse files
author
TheComputerM
committed
feat: local icons
1 parent 1b552df commit 7cdec36

File tree

10 files changed

+13
-29
lines changed

10 files changed

+13
-29
lines changed

packages/svelte-materialify/src/components/Chip/Chip.svelte

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
<script context="module">
2-
const closeIcon =
3-
'M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z';
4-
</script>
5-
61
<script>
72
import Ripple from '../../actions/Ripple';
83
import Icon from '../Icon';
4+
import closeIcon from '../../internal/Icons/close';
95
import { createEventDispatcher } from 'svelte';
106
117
// Classes to add to chip.

packages/svelte-materialify/src/components/ExpansionPanels/ExpansionPanel.svelte

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
<script context="module">
2-
const down = 'M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z';
3-
</script>
4-
51
<script>
62
import { getContext } from 'svelte';
73
import { EXPANSION_PANELS } from './ExpansionPanels.svelte';
84
import { slide } from 'svelte/transition';
95
import Icon from '../Icon';
6+
import down from '../../internal/Icons/down';
107
118
const { values, Disabled, selectPanel, index } = getContext(EXPANSION_PANELS);
129

packages/svelte-materialify/src/components/Select/Select.svelte

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
<script context="module">
2-
const DOWN_ICON = 'M7,10L12,15L17,10H7Z';
3-
</script>
4-
51
<script>
62
import TextField from '../TextField';
73
import Menu from '../Menu';
84
import { ListItemGroup, ListItem } from '../List';
95
import Chip from '../Chip';
106
import Checkbox from '../Checkbox';
117
import Icon from '../Icon';
8+
import DOWN_ICON from '../../internal/Icons/down';
129
1310
let klass = '';
1411
export { klass as class };

packages/svelte-materialify/src/components/SlideGroup/SlideGroup.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script context="module">
22
export const SLIDE_GROUP = {};
3-
const prevIcon = 'M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z';
4-
const nextIcon = 'M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z';
53
</script>
64

75
<script>
86
import { setContext, afterUpdate } from 'svelte';
97
import ItemGroup from '../ItemGroup';
8+
import prevIcon from '../../internal/Icons/prev';
9+
import nextIcon from '../../internal/Icons/next';
1010
import Icon from '../Icon';
1111
1212
let contentWidth;

packages/svelte-materialify/src/components/TextField/TextField.svelte

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
<script context="module">
2-
import uid from '../../internal/uid';
3-
4-
const clearIcon =
5-
'M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z';
6-
</script>
7-
81
<script>
92
import Input from '../Input';
103
import Icon from '../Icon';
4+
import uid from '../../internal/uid';
5+
import clearIcon from '../../internal/Icons/close';
116
127
let klass = '';
138
export { klass as class };

packages/svelte-materialify/src/components/Textarea/Textarea.svelte

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
<script context="module">
2-
import uid from '../../internal/uid';
3-
4-
const clearIcon =
5-
'M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z';
6-
</script>
7-
81
<script>
92
import Input from '../Input';
103
import Icon from '../Icon';
4+
import uid from '../../internal/uid';
5+
import clearIcon from '../../internal/Icons/close';
116
127
export let value = '';
138
export let color = 'primary';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default 'M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default 'M7,10L12,15L17,10H7Z';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default 'M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default 'M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z';

0 commit comments

Comments
 (0)