Skip to content

Commit 5e2a308

Browse files
committed
docs: update dialtone-icons usage
1 parent cf6d6eb commit 5e2a308

File tree

9 files changed

+68
-182
lines changed

9 files changed

+68
-182
lines changed

apps/dialtone-documentation/docs/.vuepress/baseComponents/IconPopoverContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383

8484
<script setup>
8585
import { computed, nextTick, ref, watch } from 'vue';
86-
import { v7 as sizes } from '@data/icons-sizes.json';
86+
import sizes from '@data/icons-sizes.json';
8787
import CopyButton from './CopyButton.vue';
8888
8989
const props = defineProps({

apps/dialtone-documentation/docs/.vuepress/baseComponents/IconSizesTable.vue

Lines changed: 0 additions & 74 deletions
This file was deleted.

apps/dialtone-documentation/docs/.vuepress/client.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import ComponentClassTable from './baseComponents/ComponentClassTable.vue';
1414
import TokenTable from './baseComponents/TokenTable.vue';
1515
import ComponentVueApi from './baseComponents/ComponentVueApi.vue';
1616
import WeatherCodesTable from './baseComponents/WeatherCodesTable.vue';
17-
import IconSizesTable from './baseComponents/IconSizesTable.vue';
1817
import ComponentAccessibleTable from './baseComponents/ComponentAccessibleTable.vue';
1918
import ComponentCombinator from './baseComponents/ComponentCombinator.vue';
2019
import ExampleTabs from './baseComponents/ExampleTabs.vue';
@@ -36,7 +35,6 @@ export default defineClientConfig({
3635
app.component('TokenTable', TokenTable);
3736
app.component('ComponentVueApi', ComponentVueApi);
3837
app.component('WeatherCodesTable', WeatherCodesTable);
39-
app.component('IconSizesTable', IconSizesTable);
4038
app.component('ComponentAccessibleTable', ComponentAccessibleTable);
4139
app.component('ComponentCombinator', ComponentCombinator);
4240
app.component('ExampleTabs', ExampleTabs);

apps/dialtone-documentation/docs/.vuepress/views/IconCatalog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
</template>
112112

113113
<script setup>
114-
import { categories } from '@dialpad/dialtone-icons/dist/icons.json';
114+
import { categories } from '@dialpad/dialtone-icons/dist/keywords.json';
115115
import { computed, onMounted, ref, watch } from 'vue';
116116
import IconPopover from '../baseComponents/IconPopover.vue';
117117
import IconPopoverContent from '../baseComponents/IconPopoverContent.vue';
Lines changed: 26 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,42 @@
1-
{
2-
"v6": [
1+
[
32
{
4-
"size": "14px",
5-
"sizeRem": "1.4rem",
6-
"variable": "@icon14",
7-
"class": "d-svg--size14"
3+
"size": "100",
4+
"width_height": "12px (1.2rem)",
5+
"className": "d-icon--size-100"
86
},
97
{
10-
"size": "16px",
11-
"sizeRem": "1.6rem",
12-
"variable": "@icon16",
13-
"class": "d-svg--size16"
8+
"size": "200",
9+
"width_height": "14px (1.4rem)",
10+
"className": "d-icon--size-200"
1411
},
1512
{
16-
"size": "18px",
17-
"sizeRem": "1.8rem",
18-
"variable": "@icon18",
19-
"class": "d-svg--size18"
13+
"size": "300",
14+
"width_height": "18px (1.8rem)",
15+
"className": "d-icon--size-300"
2016
},
2117
{
22-
"size": "20px",
23-
"sizeRem": "2.0rem",
24-
"variable": "@icon20",
25-
"class": "d-svg--size20"
18+
"size": "400",
19+
"width_height": "20px (2.0rem)",
20+
"className": "d-icon--size-400"
2621
},
2722
{
28-
"size": "24px",
29-
"sizeRem": "2.4rem",
30-
"variable": "@icon24",
31-
"class": "d-svg--size24"
23+
"size": "500",
24+
"width_height": "24px (2.4rem)",
25+
"className": "d-icon--size-500"
3226
},
3327
{
34-
"size": "32px",
35-
"sizeRem": "3.2rem",
36-
"variable": "@icon32",
37-
"class": "d-svg--size32"
28+
"size": "600",
29+
"width_height": "32px (3.2rem)",
30+
"className": "d-icon--size-600"
3831
},
3932
{
40-
"size": "48px",
41-
"sizeRem": "4.8rem",
42-
"variable": "@icon48",
43-
"class": "d-svg--size48"
33+
"size": "700",
34+
"width_height": "38px (3.8rem)",
35+
"className": "d-icon--size-700"
4436
},
4537
{
46-
"size": "64px",
47-
"sizeRem": "6.4rem",
48-
"variable": "@icon64",
49-
"class": "d-svg--size64"
50-
},
51-
{
52-
"size": "100%",
53-
"variable": "N/A",
54-
"class": "d-svg--size100p"
38+
"size": "800",
39+
"width_height": "48px (4.8rem)",
40+
"className": "d-icon--size-800"
5541
}
56-
],
57-
"v7": [
58-
{
59-
"size": 100,
60-
"width_height": "12px (1.2rem)",
61-
"className": "d-icon--size-100"
62-
},
63-
{
64-
"size": 200,
65-
"width_height": "14px (1.4rem)",
66-
"className": "d-icon--size-200"
67-
},
68-
{
69-
"size": 300,
70-
"width_height": "18px (1.8rem)",
71-
"className": "d-icon--size-300"
72-
},
73-
{
74-
"size": 400,
75-
"width_height": "20px (2.0rem)",
76-
"className": "d-icon--size-400"
77-
},
78-
{
79-
"size": 500,
80-
"width_height": "24px (2.4rem)",
81-
"className": "d-icon--size-500"
82-
},
83-
{
84-
"size": 600,
85-
"width_height": "32px (3.2rem)",
86-
"className": "d-icon--size-600"
87-
},
88-
{
89-
"size": 700,
90-
"width_height": "38px (3.8rem)",
91-
"className": "d-icon--size-700"
92-
},
93-
{
94-
"size": 800,
95-
"width_height": "48px (4.8rem)",
96-
"className": "d-icon--size-800"
97-
}
98-
]
99-
}
42+
]

apps/dialtone-documentation/docs/components/icon.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ figma_url: https://www.figma.com/file/zz40wi0uW9MvaJ5RuhcRZR/DT-Core%3A-Icons-7?
3030
### Base Styles
3131

3232
<code-well-header>
33-
<inbox-icon></inbox-icon>
33+
<dt-icon name="inbox" />
3434
</code-well-header>
3535

3636
```html
@@ -63,7 +63,7 @@ figma_url: https://www.figma.com/file/zz40wi0uW9MvaJ5RuhcRZR/DT-Core%3A-Icons-7?
6363
<tr v-for="{size, width_height, className } in sizes">
6464
<th scope="row">{{ size }}</th>
6565
<td class="d-ta-center">
66-
<inbox-icon :class="className" />
66+
<dt-icon name="inbox" :size="size" />
6767
</td>
6868
<td class="d-ff-mono d-fs-100">{{ width_height }}</td>
6969
<td class="d-ff-mono d-fs-100">.{{ className }}</td>
@@ -73,5 +73,5 @@ figma_url: https://www.figma.com/file/zz40wi0uW9MvaJ5RuhcRZR/DT-Core%3A-Icons-7?
7373

7474
<script setup>
7575
import IconCatalog from "@views/IconCatalog.vue";
76-
import { v7 as sizes } from '@data/icons-sizes.json';
76+
import sizes from '@data/icons-sizes.json';
7777
</script>

apps/dialtone-documentation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"devDependencies": {
6060
"@dialpad/dialtone-combinator": "^0.3.1",
6161
"@dialpad/dialtone-tokens": "workspace:^",
62-
"@dialpad/dialtone-vue": "^3.94.0",
62+
"@dialpad/dialtone-vue": "^3.94.2",
6363
"@dialpad/postcss-responsive-variations": "^1.1.5",
6464
"@docsearch/js": "^3.5.1",
6565
"@toycode/markdown-it-class": "^1.2.4",

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
},
2424
"resolutions": {
2525
"@dialpad/dialtone>postcss-preset-env": "^7.0.0",
26-
"@dialpad/dialtone>stylelint": "^15.10.1",
27-
"@dialpad/dialtone-documentation>@dialpad/dialtone-icons": "^3.4.0"
26+
"@dialpad/dialtone>stylelint": "^15.10.1"
2827
},
2928
"repository": "git@github.com:dialpad/dialtone.git"
3029
}

0 commit comments

Comments
 (0)