@dialpad/dialtone 9.59.0-beta.1 → 9.59.0
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/README.md +27 -59
- package/dist/css/dialtone.css +4734 -171
- package/dist/css/dialtone.min.css +1 -1
- package/dist/tokens/css/variables-dark.css +941 -0
- package/dist/tokens/css/variables-expressive-dark.css +942 -0
- package/dist/tokens/css/variables-expressive-light.css +822 -0
- package/dist/tokens/css/variables-expressive-sm-dark.css +942 -0
- package/dist/tokens/css/variables-expressive-sm-light.css +822 -0
- package/dist/tokens/css/variables-light.css +821 -0
- package/dist/tokens/css/variables-tmo-dark.css +941 -0
- package/dist/tokens/css/variables-tmo-light.css +821 -0
- package/dist/tokens/doc.json +72758 -79566
- package/dist/tokens/less/variables-dark.less +938 -0
- package/dist/tokens/less/variables-expressive-dark.less +939 -0
- package/dist/tokens/less/variables-expressive-light.less +819 -0
- package/dist/tokens/less/variables-expressive-sm-dark.less +939 -0
- package/dist/tokens/less/variables-expressive-sm-light.less +819 -0
- package/dist/tokens/less/variables-light.less +818 -0
- package/dist/tokens/less/variables-tmo-dark.less +938 -0
- package/dist/tokens/less/variables-tmo-light.less +818 -0
- package/dist/tokens/tokens-dark.json +933 -0
- package/dist/tokens/tokens-light.json +813 -0
- package/dist/vue2/lib/ivr-node.cjs +6 -2
- package/dist/vue2/lib/ivr-node.cjs.map +1 -1
- package/dist/vue2/lib/ivr-node.js +6 -2
- package/dist/vue2/lib/ivr-node.js.map +1 -1
- package/dist/vue2/lib/tooltip.cjs +3 -1
- package/dist/vue2/lib/tooltip.cjs.map +1 -1
- package/dist/vue2/lib/tooltip.js +3 -1
- package/dist/vue2/lib/tooltip.js.map +1 -1
- package/dist/vue2/types/recipes/cards/ivr_node/ivr_node_constants.d.ts +6 -0
- package/dist/vue2/types/recipes/cards/ivr_node/ivr_node_constants.d.ts.map +1 -1
- package/dist/vue3/lib/ivr-node.cjs +6 -2
- package/dist/vue3/lib/ivr-node.cjs.map +1 -1
- package/dist/vue3/lib/ivr-node.js +6 -2
- package/dist/vue3/lib/ivr-node.js.map +1 -1
- package/dist/vue3/types/recipes/cards/ivr_node/ivr_node_constants.d.ts +6 -0
- package/dist/vue3/types/recipes/cards/ivr_node/ivr_node_constants.d.ts.map +1 -1
- package/package.json +2 -9
- package/dist/css/tokens/tokens-base-dark.css +0 -938
- package/dist/css/tokens/tokens-base-light.css +0 -718
- package/dist/css/tokens/tokens-dp-dark.css +0 -1795
- package/dist/css/tokens/tokens-dp-light.css +0 -1795
- package/dist/css/tokens/tokens-expressive-dark.css +0 -1801
- package/dist/css/tokens/tokens-expressive-light.css +0 -1801
- package/dist/css/tokens/tokens-expressive-sm-dark.css +0 -1801
- package/dist/css/tokens/tokens-expressive-sm-light.css +0 -1801
- package/dist/css/tokens/tokens-tmo-dark.css +0 -1795
- package/dist/css/tokens/tokens-tmo-light.css +0 -1795
- package/dist/themes/config.cjs +0 -1
- package/dist/themes/config.js +0 -17
- package/dist/themes/dp-dark.cjs +0 -1
- package/dist/themes/dp-dark.js +0 -14
- package/dist/themes/dp-light.cjs +0 -1
- package/dist/themes/dp-light.js +0 -14
- package/dist/themes/expressive-dark.cjs +0 -1
- package/dist/themes/expressive-dark.js +0 -14
- package/dist/themes/expressive-light.cjs +0 -1
- package/dist/themes/expressive-light.js +0 -14
- package/dist/themes/expressive-sm-dark.cjs +0 -1
- package/dist/themes/expressive-sm-dark.js +0 -14
- package/dist/themes/expressive-sm-light.cjs +0 -1
- package/dist/themes/expressive-sm-light.js +0 -14
- package/dist/themes/tmo-dark.cjs +0 -1
- package/dist/themes/tmo-dark.js +0 -14
- package/dist/themes/tmo-light.cjs +0 -1
- package/dist/themes/tmo-light.js +0 -14
- package/dist/tokens/css/tokens-base-dark.css +0 -938
- package/dist/tokens/css/tokens-base-light.css +0 -718
- package/dist/tokens/css/tokens-dp-dark.css +0 -1795
- package/dist/tokens/css/tokens-dp-light.css +0 -1795
- package/dist/tokens/css/tokens-expressive-dark.css +0 -1801
- package/dist/tokens/css/tokens-expressive-light.css +0 -1801
- package/dist/tokens/css/tokens-expressive-sm-dark.css +0 -1801
- package/dist/tokens/css/tokens-expressive-sm-light.css +0 -1801
- package/dist/tokens/css/tokens-tmo-dark.css +0 -1795
- package/dist/tokens/css/tokens-tmo-light.css +0 -1795
- package/dist/tokens/less/tokens-base-dark.less +0 -488
- package/dist/tokens/less/tokens-base-light.less +0 -368
- package/dist/tokens/less/tokens-dp-dark.less +0 -451
- package/dist/tokens/less/tokens-dp-light.less +0 -451
- package/dist/tokens/less/tokens-expressive-dark.less +0 -457
- package/dist/tokens/less/tokens-expressive-light.less +0 -457
- package/dist/tokens/less/tokens-expressive-sm-dark.less +0 -457
- package/dist/tokens/less/tokens-expressive-sm-light.less +0 -457
- package/dist/tokens/less/tokens-tmo-dark.less +0 -451
- package/dist/tokens/less/tokens-tmo-light.less +0 -451
- package/dist/tokens/tokens-base-dark.json +0 -486
- package/dist/tokens/tokens-base-light.json +0 -366
- package/dist/tokens/tokens-dp-dark.json +0 -449
- package/dist/tokens/tokens-dp-light.json +0 -449
- package/dist/tokens/tokens-expressive-dark.json +0 -455
- package/dist/tokens/tokens-expressive-light.json +0 -455
- package/dist/tokens/tokens-expressive-sm-dark.json +0 -455
- package/dist/tokens/tokens-expressive-sm-light.json +0 -455
- package/dist/tokens/tokens-tmo-dark.json +0 -449
- package/dist/tokens/tokens-tmo-light.json +0 -449
- package/dist/tokens-base-dark-gxR6WJuq.js +0 -4
- package/dist/tokens-base-dark-lGwOt-Tx.cjs +0 -1
- package/dist/tokens-base-light-Exwmf79i.cjs +0 -1
- package/dist/tokens-base-light-Xfc5qwVj.js +0 -4
package/README.md
CHANGED
|
@@ -26,67 +26,9 @@ npm install @dialpad/dialtone@latest @linusborg/vue-simple-portal @tiptap/vue-2
|
|
|
26
26
|
|
|
27
27
|
### Import packages:
|
|
28
28
|
|
|
29
|
-
#### Dialtone Tokens
|
|
30
|
-
|
|
31
|
-
##### Importing tokens via javascript function
|
|
32
|
-
|
|
33
|
-
For efficiency, the Dialtone tokens are not included in the main dialtone css package, as it is an application side choice which theme to use.
|
|
34
|
-
|
|
35
|
-
The simplest way to import the you want to use, and pass it into the `setTheme` javascript function that is included with Dialtone:
|
|
36
|
-
|
|
37
|
-
```js
|
|
38
|
-
import { setTheme } from '@dialpad/dialtone/themes/config';
|
|
39
|
-
import DpLight from '@dialpad/dialtone/themes/dp-light';
|
|
40
|
-
setTheme(DpLight);
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
possible themes are as follows:
|
|
44
|
-
|
|
45
|
-
- DpLight - Dialpad Light
|
|
46
|
-
- DpDark - Dialpad Dark
|
|
47
|
-
- TmoLight - T-Mobile Light
|
|
48
|
-
- TmoDark - T-Mobile Dark
|
|
49
|
-
- ExpressiveLight - Marketing Light
|
|
50
|
-
- ExpressiveDark - Marketing Dark
|
|
51
|
-
- ExpressiveSmLight - Marketing Small Light
|
|
52
|
-
- ExpressiveSmDark - Marketing Small Dark
|
|
53
|
-
|
|
54
|
-
Note it is required to load a theme to use Dialtone. Without setting the theme via setTheme, or importing tokens manually, no CSS variables will be set and therefore no Dialtone styles will be displayed.
|
|
55
|
-
|
|
56
|
-
##### Importing tokens via manually importing files
|
|
57
|
-
|
|
58
|
-
You may want to use this method if you don't want to, or are unable to use javascript.
|
|
59
|
-
|
|
60
|
-
You need to import two tokens files in order to apply a theme. A base tokens files, which is either light or dark, and
|
|
61
|
-
a semantic brand tokens file which is named after a brand and theme 'tokens-dp-light', 'tokens-dp-dark', 'tokens-tmo-light', ...
|
|
62
|
-
|
|
63
|
-
Dialtone tokens doesn't have a default export, so you need to access
|
|
64
|
-
the files directly as following:
|
|
65
|
-
|
|
66
|
-
- CSS
|
|
67
|
-
|
|
68
|
-
```css
|
|
69
|
-
@import "@dialpad/dialtone/tokens/tokens-base-light.css" // Base light theme
|
|
70
|
-
@import "@dialpad/dialtone/tokens/tokens-dp-light.css" // Dialpad light brand
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
- LESS
|
|
74
|
-
|
|
75
|
-
```less
|
|
76
|
-
@import "@dialpad/dialtone/tokens/tokens-base-light.less" // Base light tokens
|
|
77
|
-
@import "@dialpad/dialtone/tokens/tokens-dp-light.less" // Dialpad light brand
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
- JSON
|
|
81
|
-
|
|
82
|
-
```js
|
|
83
|
-
import "@dialpad/dialtone/tokens/tokens-base-light.json" // Base light tokens
|
|
84
|
-
import "@dialpad/dialtone/tokens/tokens-dp-light.json" // Dialpad light brand
|
|
85
|
-
```
|
|
86
|
-
|
|
87
29
|
#### Dialtone CSS
|
|
88
30
|
|
|
89
|
-
Dialtone CSS includes
|
|
31
|
+
Dialtone CSS includes all utility classes as well as tokens.
|
|
90
32
|
|
|
91
33
|
- CSS
|
|
92
34
|
|
|
@@ -166,6 +108,32 @@ import { DtButton } from "@dialpad/dialtone/vue3"
|
|
|
166
108
|
import { DtButton } from "@dialpad/dialtone/vue3/lib/button"
|
|
167
109
|
```
|
|
168
110
|
|
|
111
|
+
#### Dialtone Tokens
|
|
112
|
+
|
|
113
|
+
Dialtone tokens doesn't have a default export, so you need to access
|
|
114
|
+
the files directly as following:
|
|
115
|
+
|
|
116
|
+
- CSS
|
|
117
|
+
|
|
118
|
+
```css
|
|
119
|
+
@import "@dialpad/dialtone/tokens/variables-light.css" // Light tokens
|
|
120
|
+
@import "@dialpad/dialtone/tokens/variables-dark.css" // Dark tokens
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
- LESS
|
|
124
|
+
|
|
125
|
+
```less
|
|
126
|
+
@import "@dialpad/dialtone/tokens/variables-light.less" // Light tokens
|
|
127
|
+
@import "@dialpad/dialtone/tokens/variables-dark.less" // Dark tokens
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
- JSON
|
|
131
|
+
|
|
132
|
+
```js
|
|
133
|
+
import "@dialpad/dialtone/tokens/tokens-light.json" // Light tokens
|
|
134
|
+
import "@dialpad/dialtone/tokens/tokens-dark.json" // Dark tokens
|
|
135
|
+
```
|
|
136
|
+
|
|
169
137
|
## About this repo
|
|
170
138
|
|
|
171
139
|
The @dialpad/dialtone repository is a monorepo composed of Dialtone NPM packages and apps.
|