Skip to content

Commit fd61e6b

Browse files
authored
Merge branch 'next' into DLT-3282
2 parents 2422aef + 6531783 commit fd61e6b

File tree

187 files changed

+4502
-964
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+4502
-964
lines changed

.mcp.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"mcpServers": {
33
"dialtone": {
4-
"command": "dialtone-mcp-server"
4+
"command": "node",
5+
"args": ["./packages/dialtone-mcp-server/build/index.js"]
56
}
67
}
78
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
aria-label="Search table"
77
placeholder="Search table"
88
type="search"
9-
root-class="d-w-500"
9+
class="d-w-500"
1010
@keydown.escape="handleEscapeKey"
1111
>
1212
<template #startIcon="{ iconSize }">
@@ -29,7 +29,7 @@
2929
</dt-stack>
3030
</template>
3131
</dt-input>
32-
<dt-toggle v-if="hasDeprecatedRows" v-model="hideDeprecated" wrapper-class="d-g-100" size="sm">
32+
<dt-toggle v-if="hasDeprecatedRows" v-model="hideDeprecated" class="d-g-100" size="sm">
3333
<dt-text kind="label" size="xs" strength="normal">
3434
Hide deprecated
3535
</dt-text>

apps/dialtone-documentation/docs/.vuepress/baseComponents/tokens/constants.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,6 @@ export const SUBCATEGORY_MAP = {
4040
size: ['radius', 'border'],
4141
};
4242

43-
export const DEPRECATED_PATTERNS = [
44-
'typography-headline-',
45-
'typography-body-',
46-
'typography-label-',
47-
'typography-helper-',
48-
'typography-code-',
49-
];
50-
5143
export const getTokensStructure = () => ({
5244
color: {
5345
foreground: {

apps/dialtone-documentation/docs/.vuepress/baseComponents/tokens/utilities.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import tokensJson from '@dialpad/dialtone-tokens/dist/doc.json';
2-
import { CATEGORY_MAP, SUBCATEGORY_MAP, FORMAT_MAP, MODES, THEMES, DEPRECATED_PATTERNS, getTokensStructure } from './constants';
2+
import { CATEGORY_MAP, SUBCATEGORY_MAP, FORMAT_MAP, MODES, THEMES, getTokensStructure } from './constants';
33

44
/**
55
Process the file tokensJson and fill processedTokens with the data we want to show.
@@ -76,9 +76,8 @@ const addTokensToCategories = (token, format, structure) => {
7676
const [key, value] = token;
7777
if (!value[FORMAT_MAP[format]] || !value[FORMAT_MAP.CSS] || isBaseToken(key)) return;
7878

79-
const { name, value: tokenValue, description, keywords, isCompositionToken } = value[FORMAT_MAP[format]];
79+
const { name, value: tokenValue, description, keywords, isCompositionToken, deprecated } = value[FORMAT_MAP[format]];
8080
const { value: exampleValue, name: exampleName } = value[FORMAT_MAP.CSS];
81-
const deprecated = isDeprecatedToken(exampleName);
8281
const displayToken = { exampleValue, exampleName, name, tokenValue, description, keywords, deprecated };
8382

8483
if (isCompositionToken) {
@@ -215,7 +214,3 @@ const addTokenToSubcategory = (token, category, subcategory, structure) => {
215214
};
216215

217216
const isBaseToken = (name) => name.endsWith('base') || name.endsWith('root');
218-
219-
const isDeprecatedToken = (name) => {
220-
return DEPRECATED_PATTERNS.some(pattern => name.includes(pattern));
221-
};

apps/dialtone-documentation/docs/.vuepress/theme/components/Navbar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ const capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
314314
const isActiveLink = (link) => {
315315
// For Design System, check all related paths (same as useSidebarItems.js)
316316
if (link === '/dialtone/') {
317-
const designSystemPaths = ['/components/', '/utilities/', '/tokens/', '/guides/', '/about/', '/dialtone/'];
317+
const designSystemPaths = ['/components/', '/utilities/', '/tokens/', '/guides/', '/about/', '/dialtone/', '/functions-and-utilities/'];
318318
return designSystemPaths.some(p => route.path.includes(p));
319319
}
320320
// For other links, use simple path matching

apps/dialtone-documentation/docs/.vuepress/theme/components/Page.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const route = useRoute();
130130
*/
131131
function detectTopLevelGroup(path) {
132132
// Map routes to top-level groups
133-
const designSystemPaths = ['/components/', '/utilities/', '/tokens/', '/guides/', '/about/'];
133+
const designSystemPaths = ['/components/', '/utilities/', '/tokens/', '/guides/', '/about/', '/functions-and-utilities/'];
134134
135135
if (designSystemPaths.some(p => path.includes(p))) {
136136
return 'dialtone';

apps/dialtone-documentation/docs/.vuepress/theme/composables/useSidebarItems.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { usePageData } from 'vuepress/client';
99
*/
1010
function detectTopLevelGroup(path) {
1111
// Map routes to top-level groups
12-
const designSystemPaths = ['/design/', '/components/', '/utilities/', '/tokens/', '/guides/', '/about/'];
12+
const designSystemPaths = ['/design/', '/components/', '/utilities/', '/tokens/', '/guides/', '/about/', '/functions-and-utilities/'];
1313

1414
if (designSystemPaths.some(p => path.includes(p))) {
1515
return 'dialtone';

apps/dialtone-documentation/docs/.vuepress/theme/layouts/Layout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const isMobile = ref(false);
8383
*/
8484
function detectTopLevelGroup(path) {
8585
// Map routes to top-level groups
86-
const designSystemPaths = ['/components/', '/utilities/', '/tokens/', '/guides/', '/about/'];
86+
const designSystemPaths = ['/components/', '/utilities/', '/tokens/', '/guides/', '/about/', '/functions-and-utilities/'];
8787
8888
if (designSystemPaths.some(p => path.includes(p))) {
8989
return 'dialtone';

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

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -25,37 +25,8 @@
2525
</div>
2626
</dt-stack>
2727
<dt-stack direction="row" gap="50" class="d-ai-center">
28-
<svg
29-
class="d-icon d-icon--size-200"
30-
viewBox="0 0 24 24"
31-
xmlns="http://www.w3.org/2000/svg"
32-
aria-hidden="true"
33-
>
34-
<path
35-
d="M4.61824 20.4293L4.00072 3.92089C3.98032 3.37568 4.397 2.91362 4.93974
36-
2.87959L18.9352 2.00199C19.4877 1.96735 19.9635 2.38859 19.998 2.94286C19.9993
37-
2.96374 20 2.98466 20 3.00558V20.9945C20 21.5498 19.5513 22 18.9978 22C18.9828
38-
22 18.9678 21.9997 18.9528 21.999L5.57482 21.3962C5.0538 21.3727 4.6378 20.9522
39-
4.61824 20.4293Z"
40-
fill="#FF4785"
41-
/>
42-
<path
43-
d="M15.8555 4.42657L15.9531 2.14956L17.9154 2L17.9999 4.34821C18.0028
44-
4.42993 17.9369 4.49849 17.8527 4.50135C17.8166 4.50257 17.7813 4.49135
45-
17.7529 4.46968L16.9962 3.89144L16.1003 4.55068C16.0331 4.6001 15.9374
46-
4.58735 15.8864 4.5222C15.865 4.49478 15.854 4.46096 15.8555 4.42657ZM13.346
47-
9.44092C13.346 9.82708 16.0275 9.642 16.3875 9.37075C16.3875 6.74106 14.9328
48-
5.3592 12.2692 5.3592C9.60547 5.3592 8.11304 6.76256 8.11304 8.8676C8.11304
49-
12.5339 13.2137 12.604 13.2137 14.6038C13.2137 15.1652 12.9304 15.4985 12.3069
50-
15.4985C11.4946 15.4985 11.1735 15.096 11.2112 13.7278C11.2112 13.4309 8.11304
51-
13.3384 8.01859 13.7278C7.77806 17.0436 9.90773 18 12.3447 18C14.7062 18 16.5575
52-
16.779 16.5575 14.5687C16.5575 10.6393 11.3813 10.7446 11.3813 8.79743C11.3813
53-
8.00804 11.9858 7.90279 12.3447 7.90279C12.7226 7.90279 13.4026 7.96739 13.346
54-
9.44092Z"
55-
fill="white"
56-
/>
57-
</svg>
58-
<span class="d-fs-125 d-fw-semibold d-fc-secondary">View in Storybook</span>
28+
<dt-icon name="storybook-color" size="200" />
29+
<dt-text kind="label" size="200" strength="medium" tone="secondary">Storybook</dt-text>
5930
</dt-stack>
6031
</dt-stack>
6132
</a>

apps/dialtone-documentation/docs/_data/site-nav.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@
923923
],
924924
"/functions-and-utilities/": [
925925
{
926-
"text": "Functions",
926+
"text": "Vue Utilities",
927927
"link": "/functions-and-utilities/",
928928
"icon": "code"
929929
}

0 commit comments

Comments
 (0)