@dialpad/dialtone 9.149.0 → 9.149.1
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 +12 -12
- package/dist/css/dialtone-default-theme.css +34 -26
- package/dist/css/dialtone-default-theme.min.css +1 -1
- package/dist/css/dialtone.css +34 -26
- package/dist/css/dialtone.min.css +1 -1
- package/dist/css/tokens-docs.json +1 -1
- package/dist/tokens/doc.json +83679 -83679
- package/dist/vue2/component-documentation.json +1 -1
- package/dist/vue2/lib/stack/stack-constants.cjs +1 -1
- package/dist/vue2/lib/stack/stack-constants.cjs.map +1 -1
- package/dist/vue2/lib/stack/stack-constants.js +4 -4
- package/dist/vue2/lib/stack/stack-constants.js.map +1 -1
- package/dist/vue2/lib/stack/stack.cjs +1 -1
- package/dist/vue2/lib/stack/stack.cjs.map +1 -1
- package/dist/vue2/lib/stack/stack.js +3 -2
- package/dist/vue2/lib/stack/stack.js.map +1 -1
- package/dist/vue2/lib/stack/validators.cjs +1 -1
- package/dist/vue2/lib/stack/validators.cjs.map +1 -1
- package/dist/vue2/lib/stack/validators.js +1 -0
- package/dist/vue2/lib/stack/validators.js.map +1 -1
- package/dist/vue2/types/components/stack/stack.vue.d.ts +0 -3
- package/dist/vue2/types/components/stack/stack_constants.d.ts.map +1 -1
- package/dist/vue2/types/components/stack/validators.d.ts.map +1 -1
- package/dist/vue3/component-documentation.json +1 -1
- package/dist/vue3/lib/stack/stack-constants.cjs +1 -1
- package/dist/vue3/lib/stack/stack-constants.cjs.map +1 -1
- package/dist/vue3/lib/stack/stack-constants.js +4 -4
- package/dist/vue3/lib/stack/stack-constants.js.map +1 -1
- package/dist/vue3/lib/stack/stack.cjs +1 -1
- package/dist/vue3/lib/stack/stack.cjs.map +1 -1
- package/dist/vue3/lib/stack/stack.js +3 -2
- package/dist/vue3/lib/stack/stack.js.map +1 -1
- package/dist/vue3/lib/stack/validators.cjs +1 -1
- package/dist/vue3/lib/stack/validators.cjs.map +1 -1
- package/dist/vue3/lib/stack/validators.js +1 -0
- package/dist/vue3/lib/stack/validators.js.map +1 -1
- package/dist/vue3/types/components/stack/stack.vue.d.ts +0 -3
- package/dist/vue3/types/components/stack/stack_constants.d.ts.map +1 -1
- package/dist/vue3/types/components/stack/validators.d.ts.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ If you don't care about theming and just want to use Dialtone with the default l
|
|
|
35
35
|
@import "@dialpad/dialtone/css-default-theme";
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
-
|
|
38
|
+
- JavaScript
|
|
39
39
|
|
|
40
40
|
```js
|
|
41
41
|
import "@dialpad/dialtone/css-default-theme";
|
|
@@ -51,13 +51,13 @@ If you want to use theming, import from the below path. This file does not inclu
|
|
|
51
51
|
@import "@dialpad/dialtone/css";
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
-
|
|
54
|
+
- JavaScript
|
|
55
55
|
|
|
56
56
|
```js
|
|
57
57
|
import "@dialpad/dialtone/css";
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
##### Set theme via setTheme()
|
|
60
|
+
##### Set theme via setTheme() JavaScript function (preferred)
|
|
61
61
|
|
|
62
62
|
Import the theme you want to use and set it via the `setTheme` function:
|
|
63
63
|
|
|
@@ -78,7 +78,7 @@ Possible themes are as follows:
|
|
|
78
78
|
- ExpressiveSmLight - Marketing Small Light
|
|
79
79
|
- ExpressiveSmDark - Marketing Small Dark
|
|
80
80
|
|
|
81
|
-
There is an optional second parameter to `setTheme` that allows you to set the theme on a specific element. This is useful in the case of a
|
|
81
|
+
There is an optional second parameter to `setTheme` that allows you to set the theme on a specific element. This is useful in the case of a shadow DOM
|
|
82
82
|
when you want to apply the theme to the root element of the shadow DOM rather than the document root. If you do not set this parameter the theme will be applied to the document root.
|
|
83
83
|
|
|
84
84
|
```js
|
|
@@ -89,7 +89,7 @@ setTheme(DpLight, document.querySelector('#my-shadow-root-host'));
|
|
|
89
89
|
|
|
90
90
|
##### Set theme manually by importing files
|
|
91
91
|
|
|
92
|
-
You may want to use this method if you are unable to use
|
|
92
|
+
You may want to use this method if you are unable to use JavaScript.
|
|
93
93
|
|
|
94
94
|
You need to import two tokens files in order to apply a theme. A base tokens files, which is either light or dark, and
|
|
95
95
|
a semantic brand tokens file which is named after a brand and theme 'tokens-dp-light', 'tokens-dp-dark', 'tokens-tmo-light', ...
|
|
@@ -101,7 +101,7 @@ a semantic brand tokens file which is named after a brand and theme 'tokens-dp-l
|
|
|
101
101
|
@import "@dialpad/dialtone/tokens/tokens-dp-light.css" // Dialpad light brand
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
-
-
|
|
104
|
+
- JavaScript
|
|
105
105
|
|
|
106
106
|
```js
|
|
107
107
|
import "@dialpad/dialtone/tokens/tokens-base-light.css" // Base light theme
|
|
@@ -117,7 +117,7 @@ import "@dialpad/dialtone/tokens/tokens-dp-light.css" // Dialpad light brand
|
|
|
117
117
|
import { DtIconArrowUp } from '@dialpad/dialtone-icons/vue2';
|
|
118
118
|
import { DtIllustrationBlankSpace } from '@dialpad/dialtone-icons/vue2';
|
|
119
119
|
|
|
120
|
-
// Default import (
|
|
120
|
+
// Default import (Preferred if using webpack as it is tree-shakeable by default)
|
|
121
121
|
import DtIconArrowUp from '@dialpad/dialtone-icons/vue2/arrow-up';
|
|
122
122
|
import DtIllustrationBlankSpace from '@dialpad/dialtone-icons/vue2/blank-space';
|
|
123
123
|
```
|
|
@@ -129,7 +129,7 @@ import DtIllustrationBlankSpace from '@dialpad/dialtone-icons/vue2/blank-space';
|
|
|
129
129
|
import { DtIconArrowUp } from '@dialpad/dialtone-icons/vue3';
|
|
130
130
|
import { DtIllustrationBlankSpace } from '@dialpad/dialtone-icons/vue3';
|
|
131
131
|
|
|
132
|
-
// Default import (
|
|
132
|
+
// Default import (Preferred if using webpack as it is tree-shakeable by default)
|
|
133
133
|
import DtIconArrowUp from '@dialpad/dialtone-icons/vue3/arrow-up';
|
|
134
134
|
import DtIllustrationBlankSpace from '@dialpad/dialtone-icons/vue3/blank-space';
|
|
135
135
|
```
|
|
@@ -152,7 +152,7 @@ import { DtButton } from "@dialpad/dialtone/vue2/lib/button"
|
|
|
152
152
|
// Named import
|
|
153
153
|
import { DtButton } from "@dialpad/dialtone/vue3"
|
|
154
154
|
|
|
155
|
-
// Default import (
|
|
155
|
+
// Default import (Preferred if using webpack as it is tree-shakeable by default)
|
|
156
156
|
import { DtButton } from "@dialpad/dialtone/vue3/lib/button"
|
|
157
157
|
```
|
|
158
158
|
|
|
@@ -196,7 +196,7 @@ dialtone/
|
|
|
196
196
|
Dialtone is a mono-package that includes many packages within it to ease the maintenance of versions of
|
|
197
197
|
the library.
|
|
198
198
|
|
|
199
|
-
#### How
|
|
199
|
+
#### How our bundling works
|
|
200
200
|
|
|
201
201
|
To achieve this we needed to create certain configs through the monorepo to be able to handle them even if
|
|
202
202
|
they have the same package name e.g: `@dialpad/dialtone-vue`.
|
|
@@ -342,9 +342,9 @@ if they need to run before a specific command.
|
|
|
342
342
|
- Improve the speed of the command execution by saving its output to cache.
|
|
343
343
|
- Run the command on the [affected](https://nx.dev/nx-api/nx/documents/affected) projects only.
|
|
344
344
|
|
|
345
|
-
⚠️ You can run the commands with PNPM too, but it's not advisable as
|
|
345
|
+
⚠️ You can run the commands with PNPM too, but it's not advisable as you'll lose the advantages that NX provides.
|
|
346
346
|
|
|
347
|
-
For more information, check [setup a monorepo with PNPM workspaces and NX](https://
|
|
347
|
+
For more information, check [setup a monorepo with PNPM workspaces and NX](https://nx.dev/blog/setup-a-monorepo-with-pnpm-workspaces-and-speed-it-up-with-nx)
|
|
348
348
|
|
|
349
349
|
##### Installation
|
|
350
350
|
|
|
@@ -650,54 +650,58 @@ template {
|
|
|
650
650
|
.d-stack {
|
|
651
651
|
--stack-gap: 0;
|
|
652
652
|
--stack-direction: column;
|
|
653
|
+
--stack-align: initial;
|
|
654
|
+
--stack-justify: initial;
|
|
653
655
|
display: flex;
|
|
654
656
|
flex-direction: var(--stack-direction);
|
|
655
657
|
gap: var(--stack-gap);
|
|
658
|
+
align-items: var(--stack-align);
|
|
659
|
+
justify-content: var(--stack-justify);
|
|
656
660
|
}
|
|
657
661
|
.d-stack--column-reverse {
|
|
658
662
|
--stack-direction: column-reverse;
|
|
663
|
+
--stack-align: initial;
|
|
659
664
|
}
|
|
660
665
|
.d-stack--row {
|
|
661
666
|
--stack-direction: row;
|
|
667
|
+
--stack-align: center;
|
|
662
668
|
}
|
|
663
669
|
.d-stack--row-reverse {
|
|
664
670
|
--stack-direction: row-reverse;
|
|
665
|
-
|
|
666
|
-
.d-stack--align-normal {
|
|
667
|
-
align-items: normal;
|
|
671
|
+
--stack-align: center;
|
|
668
672
|
}
|
|
669
673
|
.d-stack--align-start {
|
|
670
|
-
align
|
|
674
|
+
--stack-align: start;
|
|
671
675
|
}
|
|
672
676
|
.d-stack--align-center {
|
|
673
|
-
align
|
|
677
|
+
--stack-align: center;
|
|
674
678
|
}
|
|
675
679
|
.d-stack--align-end {
|
|
676
|
-
align
|
|
680
|
+
--stack-align: end;
|
|
677
681
|
}
|
|
678
682
|
.d-stack--align-stretch {
|
|
679
|
-
align
|
|
683
|
+
--stack-align: stretch;
|
|
680
684
|
}
|
|
681
685
|
.d-stack--align-baseline {
|
|
682
|
-
align
|
|
686
|
+
--stack-align: baseline;
|
|
683
687
|
}
|
|
684
688
|
.d-stack--justify-start {
|
|
685
|
-
justify
|
|
689
|
+
--stack-justify: start;
|
|
686
690
|
}
|
|
687
691
|
.d-stack--justify-center {
|
|
688
|
-
justify
|
|
692
|
+
--stack-justify: center;
|
|
689
693
|
}
|
|
690
694
|
.d-stack--justify-end {
|
|
691
|
-
justify
|
|
695
|
+
--stack-justify: end;
|
|
692
696
|
}
|
|
693
697
|
.d-stack--justify-around {
|
|
694
|
-
justify
|
|
698
|
+
--stack-justify: space-around;
|
|
695
699
|
}
|
|
696
700
|
.d-stack--justify-between {
|
|
697
|
-
justify
|
|
701
|
+
--stack-justify: space-between;
|
|
698
702
|
}
|
|
699
703
|
.d-stack--justify-evenly {
|
|
700
|
-
justify
|
|
704
|
+
--stack-justify: space-evenly;
|
|
701
705
|
}
|
|
702
706
|
.d-stack--gap-50 {
|
|
703
707
|
--stack-gap: var(--dt-space-50);
|
|
@@ -744,15 +748,19 @@ template {
|
|
|
744
748
|
@media screen and (min-width: 480px) {
|
|
745
749
|
.d-stack--sm-column {
|
|
746
750
|
--stack-direction: column;
|
|
751
|
+
--stack-align: initial;
|
|
747
752
|
}
|
|
748
753
|
.d-stack--sm-column-reverse {
|
|
749
754
|
--stack-direction: column-reverse;
|
|
755
|
+
--stack-align: initial;
|
|
750
756
|
}
|
|
751
757
|
.d-stack--sm-row {
|
|
752
758
|
--stack-direction: row;
|
|
759
|
+
--stack-align: center;
|
|
753
760
|
}
|
|
754
761
|
.d-stack--sm-row-reverse {
|
|
755
762
|
--stack-direction: row-reverse;
|
|
763
|
+
--stack-align: center;
|
|
756
764
|
}
|
|
757
765
|
.d-stack--sm-gap-50 {
|
|
758
766
|
--stack-gap: var(--dt-space-50);
|
|
@@ -796,9 +804,6 @@ template {
|
|
|
796
804
|
.d-stack--sm-gap-700 {
|
|
797
805
|
--stack-gap: var(--dt-space-700);
|
|
798
806
|
}
|
|
799
|
-
.d-stack--sm-align-normal {
|
|
800
|
-
align-items: normal;
|
|
801
|
-
}
|
|
802
807
|
.d-stack--sm-align-start {
|
|
803
808
|
align-items: start;
|
|
804
809
|
}
|
|
@@ -836,15 +841,19 @@ template {
|
|
|
836
841
|
@media screen and (min-width: 640px) {
|
|
837
842
|
.d-stack--md-column {
|
|
838
843
|
--stack-direction: column;
|
|
844
|
+
--stack-align: initial;
|
|
839
845
|
}
|
|
840
846
|
.d-stack--md-column-reverse {
|
|
841
847
|
--stack-direction: column-reverse;
|
|
848
|
+
--stack-align: initial;
|
|
842
849
|
}
|
|
843
850
|
.d-stack--md-row {
|
|
844
851
|
--stack-direction: row;
|
|
852
|
+
--stack-align: center;
|
|
845
853
|
}
|
|
846
854
|
.d-stack--md-row-reverse {
|
|
847
855
|
--stack-direction: row-reverse;
|
|
856
|
+
--stack-align: center;
|
|
848
857
|
}
|
|
849
858
|
.d-stack--md-gap-50 {
|
|
850
859
|
--stack-gap: var(--dt-space-50);
|
|
@@ -888,9 +897,6 @@ template {
|
|
|
888
897
|
.d-stack--md-gap-700 {
|
|
889
898
|
--stack-gap: var(--dt-space-700);
|
|
890
899
|
}
|
|
891
|
-
.d-stack--md-align-normal {
|
|
892
|
-
align-items: normal;
|
|
893
|
-
}
|
|
894
900
|
.d-stack--md-align-start {
|
|
895
901
|
align-items: start;
|
|
896
902
|
}
|
|
@@ -928,15 +934,19 @@ template {
|
|
|
928
934
|
@media screen and (min-width: 980px) {
|
|
929
935
|
.d-stack--lg-column {
|
|
930
936
|
--stack-direction: column;
|
|
937
|
+
--stack-align: initial;
|
|
931
938
|
}
|
|
932
939
|
.d-stack--lg-column-reverse {
|
|
933
940
|
--stack-direction: column-reverse;
|
|
941
|
+
--stack-align: initial;
|
|
934
942
|
}
|
|
935
943
|
.d-stack--lg-row {
|
|
936
944
|
--stack-direction: row;
|
|
945
|
+
--stack-align: center;
|
|
937
946
|
}
|
|
938
947
|
.d-stack--lg-row-reverse {
|
|
939
948
|
--stack-direction: row-reverse;
|
|
949
|
+
--stack-align: center;
|
|
940
950
|
}
|
|
941
951
|
.d-stack--lg-gap-50 {
|
|
942
952
|
--stack-gap: var(--dt-space-50);
|
|
@@ -980,9 +990,6 @@ template {
|
|
|
980
990
|
.d-stack--lg-gap-700 {
|
|
981
991
|
--stack-gap: var(--dt-space-700);
|
|
982
992
|
}
|
|
983
|
-
.d-stack--lg-align-normal {
|
|
984
|
-
align-items: normal;
|
|
985
|
-
}
|
|
986
993
|
.d-stack--lg-align-start {
|
|
987
994
|
align-items: start;
|
|
988
995
|
}
|
|
@@ -1020,15 +1027,19 @@ template {
|
|
|
1020
1027
|
@media screen and (min-width: 1264px) {
|
|
1021
1028
|
.d-stack--xl-column {
|
|
1022
1029
|
--stack-direction: column;
|
|
1030
|
+
--stack-align: initial;
|
|
1023
1031
|
}
|
|
1024
1032
|
.d-stack--xl-column-reverse {
|
|
1025
1033
|
--stack-direction: column-reverse;
|
|
1034
|
+
--stack-align: initial;
|
|
1026
1035
|
}
|
|
1027
1036
|
.d-stack--xl-row {
|
|
1028
1037
|
--stack-direction: row;
|
|
1038
|
+
--stack-align: center;
|
|
1029
1039
|
}
|
|
1030
1040
|
.d-stack--xl-row-reverse {
|
|
1031
1041
|
--stack-direction: row-reverse;
|
|
1042
|
+
--stack-align: center;
|
|
1032
1043
|
}
|
|
1033
1044
|
.d-stack--xl-gap-50 {
|
|
1034
1045
|
--stack-gap: var(--dt-space-50);
|
|
@@ -1072,9 +1083,6 @@ template {
|
|
|
1072
1083
|
.d-stack--xl-gap-700 {
|
|
1073
1084
|
--stack-gap: var(--dt-space-700);
|
|
1074
1085
|
}
|
|
1075
|
-
.d-stack--xl-align-normal {
|
|
1076
|
-
align-items: normal;
|
|
1077
|
-
}
|
|
1078
1086
|
.d-stack--xl-align-start {
|
|
1079
1087
|
align-items: start;
|
|
1080
1088
|
}
|