@momentum-design/components 0.22.3 → 0.22.4
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/dist/custom-elements.json +486 -486
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +2 -2
- package/package.json +1 -1
@@ -2,250 +2,6 @@
|
|
2
2
|
"schemaVersion": "1.0.0",
|
3
3
|
"readme": "",
|
4
4
|
"modules": [
|
5
|
-
{
|
6
|
-
"kind": "javascript-module",
|
7
|
-
"path": "components/avatar/avatar.component.js",
|
8
|
-
"declarations": [
|
9
|
-
{
|
10
|
-
"kind": "class",
|
11
|
-
"description": "The `mdc-avatar` component is used to represent a person or a space.\nAn avatar can be an icon, initials, counter and photo.\n\nTo set the photo of an avatar,\nyou need to set \"src\" attribute.\n\nWhile the avatar image is loading, as a placeholder,\nwe will show the initials text.\nIf the initials are not specified then,\nwe will show `user-regular` icon as a placeholder.\n\nBy default, if there are no attributes specified,\nthen the default avatar will be an icon with `user-regular` name.\n\nThe avatar component is non clickable and non interactive/focusable component.\nIf the avatar is typing, then the loading indicator will be displayed.\nIf the counter type avatar is set to a negative number, then we will display 0.\nThe presence indicator will be hidden when the counter property is set.",
|
12
|
-
"name": "Avatar",
|
13
|
-
"cssProperties": [
|
14
|
-
{
|
15
|
-
"description": "Allows customization of the default background color.",
|
16
|
-
"name": "--mdc-avatar-default-background-color"
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"description": "Allows customization of the default foreground color.",
|
20
|
-
"name": "--mdc-avatar-default-foreground-color"
|
21
|
-
},
|
22
|
-
{
|
23
|
-
"description": "Allows customization of the loading indicator background color.",
|
24
|
-
"name": "--mdc-avatar-loading-indicator-background-color"
|
25
|
-
},
|
26
|
-
{
|
27
|
-
"description": "Allows customization of the loading indicator foreground color.",
|
28
|
-
"name": "--mdc-avatar-loading-indicator-foreground-color"
|
29
|
-
},
|
30
|
-
{
|
31
|
-
"description": "Allows customization of the loading overlay background color.",
|
32
|
-
"name": "--mdc-avatar-loading-overlay-background-color"
|
33
|
-
}
|
34
|
-
],
|
35
|
-
"members": [
|
36
|
-
{
|
37
|
-
"kind": "field",
|
38
|
-
"name": "src",
|
39
|
-
"type": {
|
40
|
-
"text": "string | undefined"
|
41
|
-
},
|
42
|
-
"description": "The src is the url which will be used to display the avatar.\nWhen the src is loading, we will display the initials as a placeholder.",
|
43
|
-
"attribute": "src",
|
44
|
-
"inheritedFrom": {
|
45
|
-
"name": "AvatarComponentMixin",
|
46
|
-
"module": "utils/mixins/AvatarComponentMixin.js"
|
47
|
-
}
|
48
|
-
},
|
49
|
-
{
|
50
|
-
"kind": "field",
|
51
|
-
"name": "initials",
|
52
|
-
"type": {
|
53
|
-
"text": "string | undefined"
|
54
|
-
},
|
55
|
-
"description": "The initials to be displayed for the avatar.",
|
56
|
-
"attribute": "initials",
|
57
|
-
"inheritedFrom": {
|
58
|
-
"name": "AvatarComponentMixin",
|
59
|
-
"module": "utils/mixins/AvatarComponentMixin.js"
|
60
|
-
}
|
61
|
-
},
|
62
|
-
{
|
63
|
-
"kind": "field",
|
64
|
-
"name": "presence",
|
65
|
-
"type": {
|
66
|
-
"text": "PresenceType | undefined"
|
67
|
-
},
|
68
|
-
"description": "The presence is the status which can be used to display the\nactivity state of a user or a space within an avatar component.\n\nAcceptable values include:\n- `active`\n- `away`\n- `away-calling`\n- `busy`\n- `dnd`\n- `meeting`\n- `on-call`\n- `on-device`\n- `on-mobile`\n- `pause`\n- `pto`\n- `presenting`\n- `quiet`\n- `scheduled`",
|
69
|
-
"attribute": "presence",
|
70
|
-
"inheritedFrom": {
|
71
|
-
"name": "AvatarComponentMixin",
|
72
|
-
"module": "utils/mixins/AvatarComponentMixin.js"
|
73
|
-
}
|
74
|
-
},
|
75
|
-
{
|
76
|
-
"kind": "field",
|
77
|
-
"name": "size",
|
78
|
-
"type": {
|
79
|
-
"text": "AvatarSize"
|
80
|
-
},
|
81
|
-
"description": "Acceptable values include (size in px unit):\n- 24\n- 32\n- 48\n- 64\n- 72\n- 88\n- 124",
|
82
|
-
"default": "32",
|
83
|
-
"attribute": "size",
|
84
|
-
"reflects": true,
|
85
|
-
"inheritedFrom": {
|
86
|
-
"name": "AvatarComponentMixin",
|
87
|
-
"module": "utils/mixins/AvatarComponentMixin.js"
|
88
|
-
}
|
89
|
-
},
|
90
|
-
{
|
91
|
-
"kind": "field",
|
92
|
-
"name": "counter",
|
93
|
-
"type": {
|
94
|
-
"text": "number | undefined"
|
95
|
-
},
|
96
|
-
"description": "The counter is the number which can be displayed on the avatar.\nThe maximum number is 99 and if the given number is greater than 99,\nthen the avatar will be displayed as `99+`.\nIf the given number is a negative number,\nthen the avatar will be displayed as `0`.",
|
97
|
-
"attribute": "counter",
|
98
|
-
"inheritedFrom": {
|
99
|
-
"name": "AvatarComponentMixin",
|
100
|
-
"module": "utils/mixins/AvatarComponentMixin.js"
|
101
|
-
}
|
102
|
-
},
|
103
|
-
{
|
104
|
-
"kind": "field",
|
105
|
-
"name": "isTyping",
|
106
|
-
"type": {
|
107
|
-
"text": "boolean"
|
108
|
-
},
|
109
|
-
"default": "false",
|
110
|
-
"description": "Represents the typing indicator when the user is typing.",
|
111
|
-
"attribute": "is-typing",
|
112
|
-
"inheritedFrom": {
|
113
|
-
"name": "AvatarComponentMixin",
|
114
|
-
"module": "utils/mixins/AvatarComponentMixin.js"
|
115
|
-
}
|
116
|
-
},
|
117
|
-
{
|
118
|
-
"kind": "field",
|
119
|
-
"name": "iconName",
|
120
|
-
"type": {
|
121
|
-
"text": "IconNames | undefined"
|
122
|
-
},
|
123
|
-
"description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
|
124
|
-
"attribute": "icon-name",
|
125
|
-
"inheritedFrom": {
|
126
|
-
"name": "IconNameMixin",
|
127
|
-
"module": "utils/mixins/IconNameMixin.js"
|
128
|
-
}
|
129
|
-
}
|
130
|
-
],
|
131
|
-
"mixins": [
|
132
|
-
{
|
133
|
-
"name": "AvatarComponentMixin",
|
134
|
-
"module": "/src/utils/mixins/AvatarComponentMixin"
|
135
|
-
},
|
136
|
-
{
|
137
|
-
"name": "IconNameMixin",
|
138
|
-
"module": "/src/utils/mixins/IconNameMixin"
|
139
|
-
}
|
140
|
-
],
|
141
|
-
"superclass": {
|
142
|
-
"name": "Component",
|
143
|
-
"module": "/src/models"
|
144
|
-
},
|
145
|
-
"tagName": "mdc-avatar",
|
146
|
-
"jsDoc": "/**\n * The `mdc-avatar` component is used to represent a person or a space.\n * An avatar can be an icon, initials, counter and photo.\n *\n * To set the photo of an avatar,\n * you need to set \"src\" attribute.\n *\n * While the avatar image is loading, as a placeholder,\n * we will show the initials text.\n * If the initials are not specified then,\n * we will show `user-regular` icon as a placeholder.\n *\n * By default, if there are no attributes specified,\n * then the default avatar will be an icon with `user-regular` name.\n *\n * The avatar component is non clickable and non interactive/focusable component.\n * If the avatar is typing, then the loading indicator will be displayed.\n * If the counter type avatar is set to a negative number, then we will display 0.\n * The presence indicator will be hidden when the counter property is set.\n *\n * @dependency mdc-icon\n * @dependency mdc-presence\n * @dependency mdc-text\n *\n * @tagname mdc-avatar\n *\n * @cssproperty --mdc-avatar-default-background-color - Allows customization of the default background color.\n * @cssproperty --mdc-avatar-default-foreground-color - Allows customization of the default foreground color.\n * @cssproperty --mdc-avatar-loading-indicator-background-color -\n * Allows customization of the loading indicator background color.\n * @cssproperty --mdc-avatar-loading-indicator-foreground-color -\n * Allows customization of the loading indicator foreground color.\n * @cssproperty --mdc-avatar-loading-overlay-background-color -\n * Allows customization of the loading overlay background color.\n */",
|
147
|
-
"customElement": true,
|
148
|
-
"attributes": [
|
149
|
-
{
|
150
|
-
"name": "src",
|
151
|
-
"type": {
|
152
|
-
"text": "string | undefined"
|
153
|
-
},
|
154
|
-
"description": "The src is the url which will be used to display the avatar.\nWhen the src is loading, we will display the initials as a placeholder.",
|
155
|
-
"fieldName": "src",
|
156
|
-
"inheritedFrom": {
|
157
|
-
"name": "AvatarComponentMixin",
|
158
|
-
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
159
|
-
}
|
160
|
-
},
|
161
|
-
{
|
162
|
-
"name": "initials",
|
163
|
-
"type": {
|
164
|
-
"text": "string | undefined"
|
165
|
-
},
|
166
|
-
"description": "The initials to be displayed for the avatar.",
|
167
|
-
"fieldName": "initials",
|
168
|
-
"inheritedFrom": {
|
169
|
-
"name": "AvatarComponentMixin",
|
170
|
-
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
171
|
-
}
|
172
|
-
},
|
173
|
-
{
|
174
|
-
"name": "presence",
|
175
|
-
"type": {
|
176
|
-
"text": "PresenceType | undefined"
|
177
|
-
},
|
178
|
-
"description": "The presence is the status which can be used to display the\nactivity state of a user or a space within an avatar component.\n\nAcceptable values include:\n- `active`\n- `away`\n- `away-calling`\n- `busy`\n- `dnd`\n- `meeting`\n- `on-call`\n- `on-device`\n- `on-mobile`\n- `pause`\n- `pto`\n- `presenting`\n- `quiet`\n- `scheduled`",
|
179
|
-
"fieldName": "presence",
|
180
|
-
"inheritedFrom": {
|
181
|
-
"name": "AvatarComponentMixin",
|
182
|
-
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
183
|
-
}
|
184
|
-
},
|
185
|
-
{
|
186
|
-
"name": "size",
|
187
|
-
"type": {
|
188
|
-
"text": "AvatarSize"
|
189
|
-
},
|
190
|
-
"description": "Acceptable values include (size in px unit):\n- 24\n- 32\n- 48\n- 64\n- 72\n- 88\n- 124",
|
191
|
-
"default": "32",
|
192
|
-
"fieldName": "size",
|
193
|
-
"inheritedFrom": {
|
194
|
-
"name": "AvatarComponentMixin",
|
195
|
-
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
196
|
-
}
|
197
|
-
},
|
198
|
-
{
|
199
|
-
"name": "counter",
|
200
|
-
"type": {
|
201
|
-
"text": "number | undefined"
|
202
|
-
},
|
203
|
-
"description": "The counter is the number which can be displayed on the avatar.\nThe maximum number is 99 and if the given number is greater than 99,\nthen the avatar will be displayed as `99+`.\nIf the given number is a negative number,\nthen the avatar will be displayed as `0`.",
|
204
|
-
"fieldName": "counter",
|
205
|
-
"inheritedFrom": {
|
206
|
-
"name": "AvatarComponentMixin",
|
207
|
-
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
208
|
-
}
|
209
|
-
},
|
210
|
-
{
|
211
|
-
"name": "is-typing",
|
212
|
-
"type": {
|
213
|
-
"text": "boolean"
|
214
|
-
},
|
215
|
-
"default": "false",
|
216
|
-
"description": "Represents the typing indicator when the user is typing.",
|
217
|
-
"fieldName": "isTyping",
|
218
|
-
"inheritedFrom": {
|
219
|
-
"name": "AvatarComponentMixin",
|
220
|
-
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
221
|
-
}
|
222
|
-
},
|
223
|
-
{
|
224
|
-
"name": "icon-name",
|
225
|
-
"type": {
|
226
|
-
"text": "IconNames | undefined"
|
227
|
-
},
|
228
|
-
"description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
|
229
|
-
"fieldName": "iconName",
|
230
|
-
"inheritedFrom": {
|
231
|
-
"name": "IconNameMixin",
|
232
|
-
"module": "src/utils/mixins/IconNameMixin.ts"
|
233
|
-
}
|
234
|
-
}
|
235
|
-
]
|
236
|
-
}
|
237
|
-
],
|
238
|
-
"exports": [
|
239
|
-
{
|
240
|
-
"kind": "js",
|
241
|
-
"name": "default",
|
242
|
-
"declaration": {
|
243
|
-
"name": "Avatar",
|
244
|
-
"module": "components/avatar/avatar.component.js"
|
245
|
-
}
|
246
|
-
}
|
247
|
-
]
|
248
|
-
},
|
249
5
|
{
|
250
6
|
"kind": "javascript-module",
|
251
7
|
"path": "components/avatarbutton/avatarbutton.component.js",
|
@@ -1121,20 +877,264 @@
|
|
1121
877
|
},
|
1122
878
|
{
|
1123
879
|
"kind": "javascript-module",
|
1124
|
-
"path": "components/
|
880
|
+
"path": "components/avatar/avatar.component.js",
|
1125
881
|
"declarations": [
|
1126
882
|
{
|
1127
883
|
"kind": "class",
|
1128
|
-
"description": "
|
1129
|
-
"name": "
|
884
|
+
"description": "The `mdc-avatar` component is used to represent a person or a space.\nAn avatar can be an icon, initials, counter and photo.\n\nTo set the photo of an avatar,\nyou need to set \"src\" attribute.\n\nWhile the avatar image is loading, as a placeholder,\nwe will show the initials text.\nIf the initials are not specified then,\nwe will show `user-regular` icon as a placeholder.\n\nBy default, if there are no attributes specified,\nthen the default avatar will be an icon with `user-regular` name.\n\nThe avatar component is non clickable and non interactive/focusable component.\nIf the avatar is typing, then the loading indicator will be displayed.\nIf the counter type avatar is set to a negative number, then we will display 0.\nThe presence indicator will be hidden when the counter property is set.",
|
885
|
+
"name": "Avatar",
|
1130
886
|
"cssProperties": [
|
1131
887
|
{
|
1132
|
-
"description": "
|
1133
|
-
"name": "--mdc-
|
888
|
+
"description": "Allows customization of the default background color.",
|
889
|
+
"name": "--mdc-avatar-default-background-color"
|
1134
890
|
},
|
1135
891
|
{
|
1136
|
-
"description": "
|
1137
|
-
"name": "--mdc-
|
892
|
+
"description": "Allows customization of the default foreground color.",
|
893
|
+
"name": "--mdc-avatar-default-foreground-color"
|
894
|
+
},
|
895
|
+
{
|
896
|
+
"description": "Allows customization of the loading indicator background color.",
|
897
|
+
"name": "--mdc-avatar-loading-indicator-background-color"
|
898
|
+
},
|
899
|
+
{
|
900
|
+
"description": "Allows customization of the loading indicator foreground color.",
|
901
|
+
"name": "--mdc-avatar-loading-indicator-foreground-color"
|
902
|
+
},
|
903
|
+
{
|
904
|
+
"description": "Allows customization of the loading overlay background color.",
|
905
|
+
"name": "--mdc-avatar-loading-overlay-background-color"
|
906
|
+
}
|
907
|
+
],
|
908
|
+
"members": [
|
909
|
+
{
|
910
|
+
"kind": "field",
|
911
|
+
"name": "src",
|
912
|
+
"type": {
|
913
|
+
"text": "string | undefined"
|
914
|
+
},
|
915
|
+
"description": "The src is the url which will be used to display the avatar.\nWhen the src is loading, we will display the initials as a placeholder.",
|
916
|
+
"attribute": "src",
|
917
|
+
"inheritedFrom": {
|
918
|
+
"name": "AvatarComponentMixin",
|
919
|
+
"module": "utils/mixins/AvatarComponentMixin.js"
|
920
|
+
}
|
921
|
+
},
|
922
|
+
{
|
923
|
+
"kind": "field",
|
924
|
+
"name": "initials",
|
925
|
+
"type": {
|
926
|
+
"text": "string | undefined"
|
927
|
+
},
|
928
|
+
"description": "The initials to be displayed for the avatar.",
|
929
|
+
"attribute": "initials",
|
930
|
+
"inheritedFrom": {
|
931
|
+
"name": "AvatarComponentMixin",
|
932
|
+
"module": "utils/mixins/AvatarComponentMixin.js"
|
933
|
+
}
|
934
|
+
},
|
935
|
+
{
|
936
|
+
"kind": "field",
|
937
|
+
"name": "presence",
|
938
|
+
"type": {
|
939
|
+
"text": "PresenceType | undefined"
|
940
|
+
},
|
941
|
+
"description": "The presence is the status which can be used to display the\nactivity state of a user or a space within an avatar component.\n\nAcceptable values include:\n- `active`\n- `away`\n- `away-calling`\n- `busy`\n- `dnd`\n- `meeting`\n- `on-call`\n- `on-device`\n- `on-mobile`\n- `pause`\n- `pto`\n- `presenting`\n- `quiet`\n- `scheduled`",
|
942
|
+
"attribute": "presence",
|
943
|
+
"inheritedFrom": {
|
944
|
+
"name": "AvatarComponentMixin",
|
945
|
+
"module": "utils/mixins/AvatarComponentMixin.js"
|
946
|
+
}
|
947
|
+
},
|
948
|
+
{
|
949
|
+
"kind": "field",
|
950
|
+
"name": "size",
|
951
|
+
"type": {
|
952
|
+
"text": "AvatarSize"
|
953
|
+
},
|
954
|
+
"description": "Acceptable values include (size in px unit):\n- 24\n- 32\n- 48\n- 64\n- 72\n- 88\n- 124",
|
955
|
+
"default": "32",
|
956
|
+
"attribute": "size",
|
957
|
+
"reflects": true,
|
958
|
+
"inheritedFrom": {
|
959
|
+
"name": "AvatarComponentMixin",
|
960
|
+
"module": "utils/mixins/AvatarComponentMixin.js"
|
961
|
+
}
|
962
|
+
},
|
963
|
+
{
|
964
|
+
"kind": "field",
|
965
|
+
"name": "counter",
|
966
|
+
"type": {
|
967
|
+
"text": "number | undefined"
|
968
|
+
},
|
969
|
+
"description": "The counter is the number which can be displayed on the avatar.\nThe maximum number is 99 and if the given number is greater than 99,\nthen the avatar will be displayed as `99+`.\nIf the given number is a negative number,\nthen the avatar will be displayed as `0`.",
|
970
|
+
"attribute": "counter",
|
971
|
+
"inheritedFrom": {
|
972
|
+
"name": "AvatarComponentMixin",
|
973
|
+
"module": "utils/mixins/AvatarComponentMixin.js"
|
974
|
+
}
|
975
|
+
},
|
976
|
+
{
|
977
|
+
"kind": "field",
|
978
|
+
"name": "isTyping",
|
979
|
+
"type": {
|
980
|
+
"text": "boolean"
|
981
|
+
},
|
982
|
+
"default": "false",
|
983
|
+
"description": "Represents the typing indicator when the user is typing.",
|
984
|
+
"attribute": "is-typing",
|
985
|
+
"inheritedFrom": {
|
986
|
+
"name": "AvatarComponentMixin",
|
987
|
+
"module": "utils/mixins/AvatarComponentMixin.js"
|
988
|
+
}
|
989
|
+
},
|
990
|
+
{
|
991
|
+
"kind": "field",
|
992
|
+
"name": "iconName",
|
993
|
+
"type": {
|
994
|
+
"text": "IconNames | undefined"
|
995
|
+
},
|
996
|
+
"description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
|
997
|
+
"attribute": "icon-name",
|
998
|
+
"inheritedFrom": {
|
999
|
+
"name": "IconNameMixin",
|
1000
|
+
"module": "utils/mixins/IconNameMixin.js"
|
1001
|
+
}
|
1002
|
+
}
|
1003
|
+
],
|
1004
|
+
"mixins": [
|
1005
|
+
{
|
1006
|
+
"name": "AvatarComponentMixin",
|
1007
|
+
"module": "/src/utils/mixins/AvatarComponentMixin"
|
1008
|
+
},
|
1009
|
+
{
|
1010
|
+
"name": "IconNameMixin",
|
1011
|
+
"module": "/src/utils/mixins/IconNameMixin"
|
1012
|
+
}
|
1013
|
+
],
|
1014
|
+
"superclass": {
|
1015
|
+
"name": "Component",
|
1016
|
+
"module": "/src/models"
|
1017
|
+
},
|
1018
|
+
"tagName": "mdc-avatar",
|
1019
|
+
"jsDoc": "/**\n * The `mdc-avatar` component is used to represent a person or a space.\n * An avatar can be an icon, initials, counter and photo.\n *\n * To set the photo of an avatar,\n * you need to set \"src\" attribute.\n *\n * While the avatar image is loading, as a placeholder,\n * we will show the initials text.\n * If the initials are not specified then,\n * we will show `user-regular` icon as a placeholder.\n *\n * By default, if there are no attributes specified,\n * then the default avatar will be an icon with `user-regular` name.\n *\n * The avatar component is non clickable and non interactive/focusable component.\n * If the avatar is typing, then the loading indicator will be displayed.\n * If the counter type avatar is set to a negative number, then we will display 0.\n * The presence indicator will be hidden when the counter property is set.\n *\n * @dependency mdc-icon\n * @dependency mdc-presence\n * @dependency mdc-text\n *\n * @tagname mdc-avatar\n *\n * @cssproperty --mdc-avatar-default-background-color - Allows customization of the default background color.\n * @cssproperty --mdc-avatar-default-foreground-color - Allows customization of the default foreground color.\n * @cssproperty --mdc-avatar-loading-indicator-background-color -\n * Allows customization of the loading indicator background color.\n * @cssproperty --mdc-avatar-loading-indicator-foreground-color -\n * Allows customization of the loading indicator foreground color.\n * @cssproperty --mdc-avatar-loading-overlay-background-color -\n * Allows customization of the loading overlay background color.\n */",
|
1020
|
+
"customElement": true,
|
1021
|
+
"attributes": [
|
1022
|
+
{
|
1023
|
+
"name": "src",
|
1024
|
+
"type": {
|
1025
|
+
"text": "string | undefined"
|
1026
|
+
},
|
1027
|
+
"description": "The src is the url which will be used to display the avatar.\nWhen the src is loading, we will display the initials as a placeholder.",
|
1028
|
+
"fieldName": "src",
|
1029
|
+
"inheritedFrom": {
|
1030
|
+
"name": "AvatarComponentMixin",
|
1031
|
+
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
1032
|
+
}
|
1033
|
+
},
|
1034
|
+
{
|
1035
|
+
"name": "initials",
|
1036
|
+
"type": {
|
1037
|
+
"text": "string | undefined"
|
1038
|
+
},
|
1039
|
+
"description": "The initials to be displayed for the avatar.",
|
1040
|
+
"fieldName": "initials",
|
1041
|
+
"inheritedFrom": {
|
1042
|
+
"name": "AvatarComponentMixin",
|
1043
|
+
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
1044
|
+
}
|
1045
|
+
},
|
1046
|
+
{
|
1047
|
+
"name": "presence",
|
1048
|
+
"type": {
|
1049
|
+
"text": "PresenceType | undefined"
|
1050
|
+
},
|
1051
|
+
"description": "The presence is the status which can be used to display the\nactivity state of a user or a space within an avatar component.\n\nAcceptable values include:\n- `active`\n- `away`\n- `away-calling`\n- `busy`\n- `dnd`\n- `meeting`\n- `on-call`\n- `on-device`\n- `on-mobile`\n- `pause`\n- `pto`\n- `presenting`\n- `quiet`\n- `scheduled`",
|
1052
|
+
"fieldName": "presence",
|
1053
|
+
"inheritedFrom": {
|
1054
|
+
"name": "AvatarComponentMixin",
|
1055
|
+
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
1056
|
+
}
|
1057
|
+
},
|
1058
|
+
{
|
1059
|
+
"name": "size",
|
1060
|
+
"type": {
|
1061
|
+
"text": "AvatarSize"
|
1062
|
+
},
|
1063
|
+
"description": "Acceptable values include (size in px unit):\n- 24\n- 32\n- 48\n- 64\n- 72\n- 88\n- 124",
|
1064
|
+
"default": "32",
|
1065
|
+
"fieldName": "size",
|
1066
|
+
"inheritedFrom": {
|
1067
|
+
"name": "AvatarComponentMixin",
|
1068
|
+
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
1069
|
+
}
|
1070
|
+
},
|
1071
|
+
{
|
1072
|
+
"name": "counter",
|
1073
|
+
"type": {
|
1074
|
+
"text": "number | undefined"
|
1075
|
+
},
|
1076
|
+
"description": "The counter is the number which can be displayed on the avatar.\nThe maximum number is 99 and if the given number is greater than 99,\nthen the avatar will be displayed as `99+`.\nIf the given number is a negative number,\nthen the avatar will be displayed as `0`.",
|
1077
|
+
"fieldName": "counter",
|
1078
|
+
"inheritedFrom": {
|
1079
|
+
"name": "AvatarComponentMixin",
|
1080
|
+
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
1081
|
+
}
|
1082
|
+
},
|
1083
|
+
{
|
1084
|
+
"name": "is-typing",
|
1085
|
+
"type": {
|
1086
|
+
"text": "boolean"
|
1087
|
+
},
|
1088
|
+
"default": "false",
|
1089
|
+
"description": "Represents the typing indicator when the user is typing.",
|
1090
|
+
"fieldName": "isTyping",
|
1091
|
+
"inheritedFrom": {
|
1092
|
+
"name": "AvatarComponentMixin",
|
1093
|
+
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
1094
|
+
}
|
1095
|
+
},
|
1096
|
+
{
|
1097
|
+
"name": "icon-name",
|
1098
|
+
"type": {
|
1099
|
+
"text": "IconNames | undefined"
|
1100
|
+
},
|
1101
|
+
"description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
|
1102
|
+
"fieldName": "iconName",
|
1103
|
+
"inheritedFrom": {
|
1104
|
+
"name": "IconNameMixin",
|
1105
|
+
"module": "src/utils/mixins/IconNameMixin.ts"
|
1106
|
+
}
|
1107
|
+
}
|
1108
|
+
]
|
1109
|
+
}
|
1110
|
+
],
|
1111
|
+
"exports": [
|
1112
|
+
{
|
1113
|
+
"kind": "js",
|
1114
|
+
"name": "default",
|
1115
|
+
"declaration": {
|
1116
|
+
"name": "Avatar",
|
1117
|
+
"module": "components/avatar/avatar.component.js"
|
1118
|
+
}
|
1119
|
+
}
|
1120
|
+
]
|
1121
|
+
},
|
1122
|
+
{
|
1123
|
+
"kind": "javascript-module",
|
1124
|
+
"path": "components/bullet/bullet.component.js",
|
1125
|
+
"declarations": [
|
1126
|
+
{
|
1127
|
+
"kind": "class",
|
1128
|
+
"description": "Bullet component, which is a visual marker\nand be used to organize and present items in a list format.",
|
1129
|
+
"name": "Bullet",
|
1130
|
+
"cssProperties": [
|
1131
|
+
{
|
1132
|
+
"description": "background color of the bullet",
|
1133
|
+
"name": "--mdc-bullet-background-color"
|
1134
|
+
},
|
1135
|
+
{
|
1136
|
+
"description": "small size value of the bullet",
|
1137
|
+
"name": "--mdc-bullet-size-small"
|
1138
1138
|
},
|
1139
1139
|
{
|
1140
1140
|
"description": "medium size value of the bullet",
|
@@ -2002,246 +2002,16 @@
|
|
2002
2002
|
},
|
2003
2003
|
{
|
2004
2004
|
"kind": "javascript-module",
|
2005
|
-
"path": "components/
|
2005
|
+
"path": "components/checkbox/checkbox.component.js",
|
2006
2006
|
"declarations": [
|
2007
2007
|
{
|
2008
2008
|
"kind": "class",
|
2009
|
-
"description": "
|
2010
|
-
"name": "
|
2009
|
+
"description": "Checkboxes allow users to select multiple options from a list or turn an item/feature on or off.\nThese are often used in forms, settings, and selections in lists.\n\nA checkbox component contains an optional label and an optional helper text.",
|
2010
|
+
"name": "Checkbox",
|
2011
2011
|
"cssProperties": [
|
2012
2012
|
{
|
2013
|
-
"description": "
|
2014
|
-
"name": "--mdc-
|
2015
|
-
},
|
2016
|
-
{
|
2017
|
-
"description": "width of the divider",
|
2018
|
-
"name": "--mdc-divider-width"
|
2019
|
-
},
|
2020
|
-
{
|
2021
|
-
"description": "gradient of the horizontal divider",
|
2022
|
-
"name": "--mdc-divider-horizontal-gradient"
|
2023
|
-
},
|
2024
|
-
{
|
2025
|
-
"description": "gradient of the vertical divider",
|
2026
|
-
"name": "--mdc-divider-vertical-gradient"
|
2027
|
-
},
|
2028
|
-
{
|
2029
|
-
"description": "font size of label in the text divider",
|
2030
|
-
"name": "--mdc-divider-text-size"
|
2031
|
-
},
|
2032
|
-
{
|
2033
|
-
"description": "font color of label in the text divider",
|
2034
|
-
"name": "--mdc-divider-text-color"
|
2035
|
-
},
|
2036
|
-
{
|
2037
|
-
"description": "left and right margin of label in the text divider",
|
2038
|
-
"name": "--mdc-divider-text-margin"
|
2039
|
-
},
|
2040
|
-
{
|
2041
|
-
"description": "line height of label in the text divider",
|
2042
|
-
"name": "--mdc-divider-text-line-height"
|
2043
|
-
},
|
2044
|
-
{
|
2045
|
-
"description": "border radius of the grabber button",
|
2046
|
-
"name": "--mdc-divider-grabber-button-border-radius"
|
2047
|
-
}
|
2048
|
-
],
|
2049
|
-
"members": [
|
2050
|
-
{
|
2051
|
-
"kind": "field",
|
2052
|
-
"name": "orientation",
|
2053
|
-
"type": {
|
2054
|
-
"text": "DividerOrientation"
|
2055
|
-
},
|
2056
|
-
"description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
|
2057
|
-
"default": "horizontal",
|
2058
|
-
"attribute": "orientation",
|
2059
|
-
"reflects": true
|
2060
|
-
},
|
2061
|
-
{
|
2062
|
-
"kind": "field",
|
2063
|
-
"name": "variant",
|
2064
|
-
"type": {
|
2065
|
-
"text": "DividerVariant"
|
2066
|
-
},
|
2067
|
-
"description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
|
2068
|
-
"default": "solid",
|
2069
|
-
"attribute": "variant",
|
2070
|
-
"reflects": true
|
2071
|
-
},
|
2072
|
-
{
|
2073
|
-
"kind": "field",
|
2074
|
-
"name": "arrowDirection",
|
2075
|
-
"type": {
|
2076
|
-
"text": "Directions"
|
2077
|
-
},
|
2078
|
-
"description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
2079
|
-
"default": "'negative'",
|
2080
|
-
"attribute": "arrow-direction",
|
2081
|
-
"reflects": true
|
2082
|
-
},
|
2083
|
-
{
|
2084
|
-
"kind": "field",
|
2085
|
-
"name": "buttonPosition",
|
2086
|
-
"type": {
|
2087
|
-
"text": "Directions"
|
2088
|
-
},
|
2089
|
-
"description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
2090
|
-
"default": "'negative'",
|
2091
|
-
"attribute": "button-position",
|
2092
|
-
"reflects": true
|
2093
|
-
},
|
2094
|
-
{
|
2095
|
-
"kind": "method",
|
2096
|
-
"name": "setVariant",
|
2097
|
-
"privacy": "private",
|
2098
|
-
"parameters": [
|
2099
|
-
{
|
2100
|
-
"name": "variant",
|
2101
|
-
"type": {
|
2102
|
-
"text": "DividerVariant"
|
2103
|
-
},
|
2104
|
-
"description": "The variant to set."
|
2105
|
-
}
|
2106
|
-
],
|
2107
|
-
"description": "Sets the variant attribute for the divider component.\nIf the provided variant is not included in the DIVIDER_VARIANT,\nit defaults to the value specified in DEFAULTS.VARIANT."
|
2108
|
-
},
|
2109
|
-
{
|
2110
|
-
"kind": "method",
|
2111
|
-
"name": "setOrientation",
|
2112
|
-
"privacy": "private",
|
2113
|
-
"parameters": [
|
2114
|
-
{
|
2115
|
-
"name": "orientation",
|
2116
|
-
"type": {
|
2117
|
-
"text": "DividerOrientation"
|
2118
|
-
},
|
2119
|
-
"description": "The orientation to set."
|
2120
|
-
}
|
2121
|
-
],
|
2122
|
-
"description": "Sets the orientation attribute for the divider component.\nIf the provided orientation is not included in the DIVIDER_ORIENTATION,\nit defaults to the value specified in DEFAULTS.ORIENTATION."
|
2123
|
-
},
|
2124
|
-
{
|
2125
|
-
"kind": "method",
|
2126
|
-
"name": "ensureValidDirections",
|
2127
|
-
"privacy": "private",
|
2128
|
-
"description": "Sets the buttonPosition and arrowDirection attribute for the divider component.\nIf the provided buttonPosition and arrowDirection are not included in the DIRECTIONS,\nit defaults to the value specified in DIRECTIONS based on the ORIENTATION.",
|
2129
|
-
"parameters": [
|
2130
|
-
{
|
2131
|
-
"description": "The buttonPosition to set.",
|
2132
|
-
"name": "buttonPosition"
|
2133
|
-
},
|
2134
|
-
{
|
2135
|
-
"description": "The arrowDirection to set.",
|
2136
|
-
"name": "arrowDirection"
|
2137
|
-
}
|
2138
|
-
]
|
2139
|
-
},
|
2140
|
-
{
|
2141
|
-
"kind": "method",
|
2142
|
-
"name": "setGrabberButton",
|
2143
|
-
"privacy": "private",
|
2144
|
-
"return": {
|
2145
|
-
"type": {
|
2146
|
-
"text": "void"
|
2147
|
-
}
|
2148
|
-
},
|
2149
|
-
"description": "Configures the grabber button within the divider.\n\n- Sets the `prefix-icon` attribute for the grabber button based\non the `arrow-direction` and `orientation` properties.\n\nThis method updates the DOM element dynamically if a grabber button is present."
|
2150
|
-
},
|
2151
|
-
{
|
2152
|
-
"kind": "method",
|
2153
|
-
"name": "getArrowIcon",
|
2154
|
-
"privacy": "private",
|
2155
|
-
"return": {
|
2156
|
-
"type": {
|
2157
|
-
"text": ""
|
2158
|
-
}
|
2159
|
-
},
|
2160
|
-
"description": "Determines the arrow icon based on the consumer-defined `arrowDirection`."
|
2161
|
-
},
|
2162
|
-
{
|
2163
|
-
"kind": "method",
|
2164
|
-
"name": "inferDividerType",
|
2165
|
-
"privacy": "private",
|
2166
|
-
"description": "Infers the type of divider based on the kind of slot present.",
|
2167
|
-
"parameters": [
|
2168
|
-
{
|
2169
|
-
"description": "default slot of divider",
|
2170
|
-
"name": "slot"
|
2171
|
-
}
|
2172
|
-
]
|
2173
|
-
}
|
2174
|
-
],
|
2175
|
-
"attributes": [
|
2176
|
-
{
|
2177
|
-
"name": "orientation",
|
2178
|
-
"type": {
|
2179
|
-
"text": "DividerOrientation"
|
2180
|
-
},
|
2181
|
-
"description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
|
2182
|
-
"default": "horizontal",
|
2183
|
-
"fieldName": "orientation"
|
2184
|
-
},
|
2185
|
-
{
|
2186
|
-
"name": "variant",
|
2187
|
-
"type": {
|
2188
|
-
"text": "DividerVariant"
|
2189
|
-
},
|
2190
|
-
"description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
|
2191
|
-
"default": "solid",
|
2192
|
-
"fieldName": "variant"
|
2193
|
-
},
|
2194
|
-
{
|
2195
|
-
"name": "arrow-direction",
|
2196
|
-
"type": {
|
2197
|
-
"text": "Directions"
|
2198
|
-
},
|
2199
|
-
"description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
2200
|
-
"default": "'negative'",
|
2201
|
-
"fieldName": "arrowDirection"
|
2202
|
-
},
|
2203
|
-
{
|
2204
|
-
"name": "button-position",
|
2205
|
-
"type": {
|
2206
|
-
"text": "Directions"
|
2207
|
-
},
|
2208
|
-
"description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
2209
|
-
"default": "'negative'",
|
2210
|
-
"fieldName": "buttonPosition"
|
2211
|
-
}
|
2212
|
-
],
|
2213
|
-
"superclass": {
|
2214
|
-
"name": "Component",
|
2215
|
-
"module": "/src/models"
|
2216
|
-
},
|
2217
|
-
"tagName": "mdc-divider",
|
2218
|
-
"jsDoc": "/**\n * `mdc-divider` is a component that provides a line to separate and organize content.\n * It can also include a button or text positioned centrally, allowing users to interact with the layout.\n *\n * **Divider Orientation:**\n * - **Horizontal**: A thin, horizontal line.\n * - **Vertical**: A thin, vertical line.\n *\n * **Divider Variants:**\n * - **solid**: Solid line.\n * - **gradient**: Gradient Line.\n *\n * **Divider Types:**\n * - The type of divider is inferred based on the kind of slot present.\n * - **Primary**: A simple horizontal or vertical divider.\n * - **Text**: A horizontal divider with a text label in the center.\n * - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n *\n * **Accessibility:**\n * - When the slot is replaced by an `mdc-button`:\n * - `aria-label` should be passed to the `mdc-button`.\n * - `aria-expanded` should be passed to the `mdc-button`.\n *\n * **Notes:**\n * - If the slot is replaced by an invalid tag name or contains multiple elements,\n * the divider defaults to the **Primary** type.\n * - To override the styles of the divider, use the provided CSS custom properties.\n *\n * @tagname mdc-divider\n *\n * @cssproperty --mdc-divider-background-color - background color of the divider\n * @cssproperty --mdc-divider-width - width of the divider\n * @cssproperty --mdc-divider-horizontal-gradient - gradient of the horizontal divider\n * @cssproperty --mdc-divider-vertical-gradient - gradient of the vertical divider\n * @cssproperty --mdc-divider-text-size - font size of label in the text divider\n * @cssproperty --mdc-divider-text-color - font color of label in the text divider\n * @cssproperty --mdc-divider-text-margin - left and right margin of label in the text divider\n * @cssproperty --mdc-divider-text-line-height - line height of label in the text divider\n * @cssproperty --mdc-divider-grabber-button-border-radius - border radius of the grabber button\n */",
|
2219
|
-
"customElement": true
|
2220
|
-
}
|
2221
|
-
],
|
2222
|
-
"exports": [
|
2223
|
-
{
|
2224
|
-
"kind": "js",
|
2225
|
-
"name": "default",
|
2226
|
-
"declaration": {
|
2227
|
-
"name": "Divider",
|
2228
|
-
"module": "components/divider/divider.component.js"
|
2229
|
-
}
|
2230
|
-
}
|
2231
|
-
]
|
2232
|
-
},
|
2233
|
-
{
|
2234
|
-
"kind": "javascript-module",
|
2235
|
-
"path": "components/checkbox/checkbox.component.js",
|
2236
|
-
"declarations": [
|
2237
|
-
{
|
2238
|
-
"kind": "class",
|
2239
|
-
"description": "Checkboxes allow users to select multiple options from a list or turn an item/feature on or off.\nThese are often used in forms, settings, and selections in lists.\n\nA checkbox component contains an optional label and an optional helper text.",
|
2240
|
-
"name": "Checkbox",
|
2241
|
-
"cssProperties": [
|
2242
|
-
{
|
2243
|
-
"description": "Allows customization of the background color on hover.",
|
2244
|
-
"name": "--mdc-checkbox-background-color-hover"
|
2013
|
+
"description": "Allows customization of the background color on hover.",
|
2014
|
+
"name": "--mdc-checkbox-background-color-hover"
|
2245
2015
|
},
|
2246
2016
|
{
|
2247
2017
|
"description": "Border color in high contrast.",
|
@@ -2714,6 +2484,236 @@
|
|
2714
2484
|
}
|
2715
2485
|
]
|
2716
2486
|
},
|
2487
|
+
{
|
2488
|
+
"kind": "javascript-module",
|
2489
|
+
"path": "components/divider/divider.component.js",
|
2490
|
+
"declarations": [
|
2491
|
+
{
|
2492
|
+
"kind": "class",
|
2493
|
+
"description": "`mdc-divider` is a component that provides a line to separate and organize content.\nIt can also include a button or text positioned centrally, allowing users to interact with the layout.\n\n**Divider Orientation:**\n- **Horizontal**: A thin, horizontal line.\n- **Vertical**: A thin, vertical line.\n\n**Divider Variants:**\n- **solid**: Solid line.\n- **gradient**: Gradient Line.\n\n**Divider Types:**\n- The type of divider is inferred based on the kind of slot present.\n - **Primary**: A simple horizontal or vertical divider.\n - **Text**: A horizontal divider with a text label in the center.\n - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n\n**Accessibility:**\n- When the slot is replaced by an `mdc-button`:\n - `aria-label` should be passed to the `mdc-button`.\n - `aria-expanded` should be passed to the `mdc-button`.\n\n**Notes:**\n- If the slot is replaced by an invalid tag name or contains multiple elements,\n the divider defaults to the **Primary** type.\n- To override the styles of the divider, use the provided CSS custom properties.",
|
2494
|
+
"name": "Divider",
|
2495
|
+
"cssProperties": [
|
2496
|
+
{
|
2497
|
+
"description": "background color of the divider",
|
2498
|
+
"name": "--mdc-divider-background-color"
|
2499
|
+
},
|
2500
|
+
{
|
2501
|
+
"description": "width of the divider",
|
2502
|
+
"name": "--mdc-divider-width"
|
2503
|
+
},
|
2504
|
+
{
|
2505
|
+
"description": "gradient of the horizontal divider",
|
2506
|
+
"name": "--mdc-divider-horizontal-gradient"
|
2507
|
+
},
|
2508
|
+
{
|
2509
|
+
"description": "gradient of the vertical divider",
|
2510
|
+
"name": "--mdc-divider-vertical-gradient"
|
2511
|
+
},
|
2512
|
+
{
|
2513
|
+
"description": "font size of label in the text divider",
|
2514
|
+
"name": "--mdc-divider-text-size"
|
2515
|
+
},
|
2516
|
+
{
|
2517
|
+
"description": "font color of label in the text divider",
|
2518
|
+
"name": "--mdc-divider-text-color"
|
2519
|
+
},
|
2520
|
+
{
|
2521
|
+
"description": "left and right margin of label in the text divider",
|
2522
|
+
"name": "--mdc-divider-text-margin"
|
2523
|
+
},
|
2524
|
+
{
|
2525
|
+
"description": "line height of label in the text divider",
|
2526
|
+
"name": "--mdc-divider-text-line-height"
|
2527
|
+
},
|
2528
|
+
{
|
2529
|
+
"description": "border radius of the grabber button",
|
2530
|
+
"name": "--mdc-divider-grabber-button-border-radius"
|
2531
|
+
}
|
2532
|
+
],
|
2533
|
+
"members": [
|
2534
|
+
{
|
2535
|
+
"kind": "field",
|
2536
|
+
"name": "orientation",
|
2537
|
+
"type": {
|
2538
|
+
"text": "DividerOrientation"
|
2539
|
+
},
|
2540
|
+
"description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
|
2541
|
+
"default": "horizontal",
|
2542
|
+
"attribute": "orientation",
|
2543
|
+
"reflects": true
|
2544
|
+
},
|
2545
|
+
{
|
2546
|
+
"kind": "field",
|
2547
|
+
"name": "variant",
|
2548
|
+
"type": {
|
2549
|
+
"text": "DividerVariant"
|
2550
|
+
},
|
2551
|
+
"description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
|
2552
|
+
"default": "solid",
|
2553
|
+
"attribute": "variant",
|
2554
|
+
"reflects": true
|
2555
|
+
},
|
2556
|
+
{
|
2557
|
+
"kind": "field",
|
2558
|
+
"name": "arrowDirection",
|
2559
|
+
"type": {
|
2560
|
+
"text": "Directions"
|
2561
|
+
},
|
2562
|
+
"description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
2563
|
+
"default": "'negative'",
|
2564
|
+
"attribute": "arrow-direction",
|
2565
|
+
"reflects": true
|
2566
|
+
},
|
2567
|
+
{
|
2568
|
+
"kind": "field",
|
2569
|
+
"name": "buttonPosition",
|
2570
|
+
"type": {
|
2571
|
+
"text": "Directions"
|
2572
|
+
},
|
2573
|
+
"description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
2574
|
+
"default": "'negative'",
|
2575
|
+
"attribute": "button-position",
|
2576
|
+
"reflects": true
|
2577
|
+
},
|
2578
|
+
{
|
2579
|
+
"kind": "method",
|
2580
|
+
"name": "setVariant",
|
2581
|
+
"privacy": "private",
|
2582
|
+
"parameters": [
|
2583
|
+
{
|
2584
|
+
"name": "variant",
|
2585
|
+
"type": {
|
2586
|
+
"text": "DividerVariant"
|
2587
|
+
},
|
2588
|
+
"description": "The variant to set."
|
2589
|
+
}
|
2590
|
+
],
|
2591
|
+
"description": "Sets the variant attribute for the divider component.\nIf the provided variant is not included in the DIVIDER_VARIANT,\nit defaults to the value specified in DEFAULTS.VARIANT."
|
2592
|
+
},
|
2593
|
+
{
|
2594
|
+
"kind": "method",
|
2595
|
+
"name": "setOrientation",
|
2596
|
+
"privacy": "private",
|
2597
|
+
"parameters": [
|
2598
|
+
{
|
2599
|
+
"name": "orientation",
|
2600
|
+
"type": {
|
2601
|
+
"text": "DividerOrientation"
|
2602
|
+
},
|
2603
|
+
"description": "The orientation to set."
|
2604
|
+
}
|
2605
|
+
],
|
2606
|
+
"description": "Sets the orientation attribute for the divider component.\nIf the provided orientation is not included in the DIVIDER_ORIENTATION,\nit defaults to the value specified in DEFAULTS.ORIENTATION."
|
2607
|
+
},
|
2608
|
+
{
|
2609
|
+
"kind": "method",
|
2610
|
+
"name": "ensureValidDirections",
|
2611
|
+
"privacy": "private",
|
2612
|
+
"description": "Sets the buttonPosition and arrowDirection attribute for the divider component.\nIf the provided buttonPosition and arrowDirection are not included in the DIRECTIONS,\nit defaults to the value specified in DIRECTIONS based on the ORIENTATION.",
|
2613
|
+
"parameters": [
|
2614
|
+
{
|
2615
|
+
"description": "The buttonPosition to set.",
|
2616
|
+
"name": "buttonPosition"
|
2617
|
+
},
|
2618
|
+
{
|
2619
|
+
"description": "The arrowDirection to set.",
|
2620
|
+
"name": "arrowDirection"
|
2621
|
+
}
|
2622
|
+
]
|
2623
|
+
},
|
2624
|
+
{
|
2625
|
+
"kind": "method",
|
2626
|
+
"name": "setGrabberButton",
|
2627
|
+
"privacy": "private",
|
2628
|
+
"return": {
|
2629
|
+
"type": {
|
2630
|
+
"text": "void"
|
2631
|
+
}
|
2632
|
+
},
|
2633
|
+
"description": "Configures the grabber button within the divider.\n\n- Sets the `prefix-icon` attribute for the grabber button based\non the `arrow-direction` and `orientation` properties.\n\nThis method updates the DOM element dynamically if a grabber button is present."
|
2634
|
+
},
|
2635
|
+
{
|
2636
|
+
"kind": "method",
|
2637
|
+
"name": "getArrowIcon",
|
2638
|
+
"privacy": "private",
|
2639
|
+
"return": {
|
2640
|
+
"type": {
|
2641
|
+
"text": ""
|
2642
|
+
}
|
2643
|
+
},
|
2644
|
+
"description": "Determines the arrow icon based on the consumer-defined `arrowDirection`."
|
2645
|
+
},
|
2646
|
+
{
|
2647
|
+
"kind": "method",
|
2648
|
+
"name": "inferDividerType",
|
2649
|
+
"privacy": "private",
|
2650
|
+
"description": "Infers the type of divider based on the kind of slot present.",
|
2651
|
+
"parameters": [
|
2652
|
+
{
|
2653
|
+
"description": "default slot of divider",
|
2654
|
+
"name": "slot"
|
2655
|
+
}
|
2656
|
+
]
|
2657
|
+
}
|
2658
|
+
],
|
2659
|
+
"attributes": [
|
2660
|
+
{
|
2661
|
+
"name": "orientation",
|
2662
|
+
"type": {
|
2663
|
+
"text": "DividerOrientation"
|
2664
|
+
},
|
2665
|
+
"description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
|
2666
|
+
"default": "horizontal",
|
2667
|
+
"fieldName": "orientation"
|
2668
|
+
},
|
2669
|
+
{
|
2670
|
+
"name": "variant",
|
2671
|
+
"type": {
|
2672
|
+
"text": "DividerVariant"
|
2673
|
+
},
|
2674
|
+
"description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
|
2675
|
+
"default": "solid",
|
2676
|
+
"fieldName": "variant"
|
2677
|
+
},
|
2678
|
+
{
|
2679
|
+
"name": "arrow-direction",
|
2680
|
+
"type": {
|
2681
|
+
"text": "Directions"
|
2682
|
+
},
|
2683
|
+
"description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
2684
|
+
"default": "'negative'",
|
2685
|
+
"fieldName": "arrowDirection"
|
2686
|
+
},
|
2687
|
+
{
|
2688
|
+
"name": "button-position",
|
2689
|
+
"type": {
|
2690
|
+
"text": "Directions"
|
2691
|
+
},
|
2692
|
+
"description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
2693
|
+
"default": "'negative'",
|
2694
|
+
"fieldName": "buttonPosition"
|
2695
|
+
}
|
2696
|
+
],
|
2697
|
+
"superclass": {
|
2698
|
+
"name": "Component",
|
2699
|
+
"module": "/src/models"
|
2700
|
+
},
|
2701
|
+
"tagName": "mdc-divider",
|
2702
|
+
"jsDoc": "/**\n * `mdc-divider` is a component that provides a line to separate and organize content.\n * It can also include a button or text positioned centrally, allowing users to interact with the layout.\n *\n * **Divider Orientation:**\n * - **Horizontal**: A thin, horizontal line.\n * - **Vertical**: A thin, vertical line.\n *\n * **Divider Variants:**\n * - **solid**: Solid line.\n * - **gradient**: Gradient Line.\n *\n * **Divider Types:**\n * - The type of divider is inferred based on the kind of slot present.\n * - **Primary**: A simple horizontal or vertical divider.\n * - **Text**: A horizontal divider with a text label in the center.\n * - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n *\n * **Accessibility:**\n * - When the slot is replaced by an `mdc-button`:\n * - `aria-label` should be passed to the `mdc-button`.\n * - `aria-expanded` should be passed to the `mdc-button`.\n *\n * **Notes:**\n * - If the slot is replaced by an invalid tag name or contains multiple elements,\n * the divider defaults to the **Primary** type.\n * - To override the styles of the divider, use the provided CSS custom properties.\n *\n * @tagname mdc-divider\n *\n * @cssproperty --mdc-divider-background-color - background color of the divider\n * @cssproperty --mdc-divider-width - width of the divider\n * @cssproperty --mdc-divider-horizontal-gradient - gradient of the horizontal divider\n * @cssproperty --mdc-divider-vertical-gradient - gradient of the vertical divider\n * @cssproperty --mdc-divider-text-size - font size of label in the text divider\n * @cssproperty --mdc-divider-text-color - font color of label in the text divider\n * @cssproperty --mdc-divider-text-margin - left and right margin of label in the text divider\n * @cssproperty --mdc-divider-text-line-height - line height of label in the text divider\n * @cssproperty --mdc-divider-grabber-button-border-radius - border radius of the grabber button\n */",
|
2703
|
+
"customElement": true
|
2704
|
+
}
|
2705
|
+
],
|
2706
|
+
"exports": [
|
2707
|
+
{
|
2708
|
+
"kind": "js",
|
2709
|
+
"name": "default",
|
2710
|
+
"declaration": {
|
2711
|
+
"name": "Divider",
|
2712
|
+
"module": "components/divider/divider.component.js"
|
2713
|
+
}
|
2714
|
+
}
|
2715
|
+
]
|
2716
|
+
},
|
2717
2717
|
{
|
2718
2718
|
"kind": "javascript-module",
|
2719
2719
|
"path": "components/formfieldwrapper/formfieldwrapper.component.js",
|
package/dist/react/index.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
export { default as Avatar } from './avatar';
|
2
1
|
export { default as AvatarButton } from './avatarbutton';
|
3
2
|
export { default as Badge } from './badge';
|
3
|
+
export { default as Avatar } from './avatar';
|
4
4
|
export { default as Bullet } from './bullet';
|
5
5
|
export { default as Button } from './button';
|
6
6
|
export { default as Buttonsimple } from './buttonsimple';
|
7
|
-
export { default as Divider } from './divider';
|
8
7
|
export { default as Checkbox } from './checkbox';
|
8
|
+
export { default as Divider } from './divider';
|
9
9
|
export { default as FormfieldWrapper } from './formfieldwrapper';
|
10
10
|
export { default as Icon } from './icon';
|
11
11
|
export { default as IconProvider } from './iconprovider';
|
package/dist/react/index.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
export { default as Avatar } from './avatar';
|
2
1
|
export { default as AvatarButton } from './avatarbutton';
|
3
2
|
export { default as Badge } from './badge';
|
3
|
+
export { default as Avatar } from './avatar';
|
4
4
|
export { default as Bullet } from './bullet';
|
5
5
|
export { default as Button } from './button';
|
6
6
|
export { default as Buttonsimple } from './buttonsimple';
|
7
|
-
export { default as Divider } from './divider';
|
8
7
|
export { default as Checkbox } from './checkbox';
|
8
|
+
export { default as Divider } from './divider';
|
9
9
|
export { default as FormfieldWrapper } from './formfieldwrapper';
|
10
10
|
export { default as Icon } from './icon';
|
11
11
|
export { default as IconProvider } from './iconprovider';
|
package/package.json
CHANGED