@redvars/peacock 3.2.6 → 3.2.8
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/PeacockComponent-DMrFEGDh.js +80 -0
- package/dist/PeacockComponent-DMrFEGDh.js.map +1 -0
- package/dist/assets/components.css +2 -0
- package/dist/assets/components.css.map +1 -0
- package/dist/assets/styles.css +2 -0
- package/dist/assets/styles.css.map +1 -0
- package/dist/breadcrumb-item-DkhwoMAH.js +6879 -0
- package/dist/breadcrumb-item-DkhwoMAH.js.map +1 -0
- package/dist/button-BtpAXuLN.js +1180 -0
- package/dist/button-BtpAXuLN.js.map +1 -0
- package/dist/button-group.js +7 -6
- package/dist/button-group.js.map +1 -1
- package/dist/button.js +5 -0
- package/dist/button.js.map +1 -0
- package/dist/{class-map-BmCohX9p.js → class-map-CbncA34D.js} +2 -3
- package/dist/class-map-CbncA34D.js.map +1 -0
- package/dist/code-highlighter.js +9 -8
- package/dist/code-highlighter.js.map +1 -1
- package/dist/custom-elements-jsdocs.json +4 -4
- package/dist/custom-elements.json +296 -154
- package/dist/index.js +87 -35
- package/dist/index.js.map +1 -1
- package/dist/number-counter.js +7 -6
- package/dist/number-counter.js.map +1 -1
- package/dist/peacock-loader.js +1006 -535
- package/dist/peacock-loader.js.map +1 -1
- package/dist/src/CssLoader.d.ts +5 -0
- package/dist/src/PeacockComponent.d.ts +1 -0
- package/dist/src/avatar/avatar.d.ts +1 -1
- package/dist/src/button/button/button.d.ts +1 -1
- package/dist/{state-CV1fRmOT.js → state-CEVpI7Vv.js} +2 -2
- package/dist/{state-CV1fRmOT.js.map → state-CEVpI7Vv.js.map} +1 -1
- package/dist/{style-map-CdmclYgz.js → style-map-mOmZwsJT.js} +2 -3
- package/dist/style-map-mOmZwsJT.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{unsafe-html-BS8X6Gto.js → unsafe-html-Ca00SXpn.js} +2 -3
- package/dist/unsafe-html-Ca00SXpn.js.map +1 -0
- package/package.json +11 -5
- package/readme.md +2 -1
- package/scss/components.scss +3 -0
- package/scss/styles.scss +4 -0
- package/src/CssLoader.ts +66 -0
- package/src/PeacockComponent.ts +3 -0
- package/src/avatar/avatar.ts +1 -1
- package/src/button/button/button.ts +4 -2
- package/src/button/button-group/button-group.ts +2 -0
- package/src/code-highlighter/code-highlighter.ts +2 -0
- package/src/number-counter/number-counter.ts +2 -0
- package/src/peacock-loader.ts +14 -9
- package/dist/BaseButton.js +0 -209
- package/dist/BaseButton.js.map +0 -1
- package/dist/BaseInput.js +0 -27
- package/dist/BaseInput.js.map +0 -1
- package/dist/accordion-item.js +0 -191
- package/dist/accordion-item.js.map +0 -1
- package/dist/accordion.js +0 -142
- package/dist/accordion.js.map +0 -1
- package/dist/avatar.js +0 -106
- package/dist/avatar.js.map +0 -1
- package/dist/badge.js +0 -84
- package/dist/badge.js.map +0 -1
- package/dist/base-progress.js +0 -33
- package/dist/base-progress.js.map +0 -1
- package/dist/breadcrumb-item.js +0 -160
- package/dist/breadcrumb-item.js.map +0 -1
- package/dist/breadcrumb.js +0 -84
- package/dist/breadcrumb.js.map +0 -1
- package/dist/checkbox.js +0 -530
- package/dist/checkbox.js.map +0 -1
- package/dist/chip.js +0 -303
- package/dist/chip.js.map +0 -1
- package/dist/class-map-BmCohX9p.js.map +0 -1
- package/dist/clock.js +0 -83
- package/dist/clock.js.map +0 -1
- package/dist/container.js +0 -135
- package/dist/container.js.map +0 -1
- package/dist/directive-Cuw6h7YA.js +0 -9
- package/dist/directive-Cuw6h7YA.js.map +0 -1
- package/dist/divider.js +0 -126
- package/dist/divider.js.map +0 -1
- package/dist/elevation.js +0 -79
- package/dist/elevation.js.map +0 -1
- package/dist/empty-state.js +0 -171
- package/dist/empty-state.js.map +0 -1
- package/dist/field.js +0 -416
- package/dist/field.js.map +0 -1
- package/dist/focus-ring.js +0 -107
- package/dist/focus-ring.js.map +0 -1
- package/dist/icon.js +0 -183
- package/dist/icon.js.map +0 -1
- package/dist/link.js +0 -91
- package/dist/link.js.map +0 -1
- package/dist/lit-element-CA46RFZ_.js +0 -28
- package/dist/lit-element-CA46RFZ_.js.map +0 -1
- package/dist/menu-item.js +0 -232
- package/dist/menu-item.js.map +0 -1
- package/dist/menu-list.js +0 -108
- package/dist/menu-list.js.map +0 -1
- package/dist/menu.js +0 -117
- package/dist/menu.js.map +0 -1
- package/dist/property-DNVWDdPC.js +0 -45
- package/dist/property-DNVWDdPC.js.map +0 -1
- package/dist/query-QBcUV-L_.js +0 -15
- package/dist/query-QBcUV-L_.js.map +0 -1
- package/dist/ripple.js +0 -128
- package/dist/ripple.js.map +0 -1
- package/dist/skeleton.js +0 -113
- package/dist/skeleton.js.map +0 -1
- package/dist/spinner.js +0 -93
- package/dist/spinner.js.map +0 -1
- package/dist/spread-axRTFMoH.js +0 -32
- package/dist/spread-axRTFMoH.js.map +0 -1
- package/dist/style-map-CdmclYgz.js.map +0 -1
- package/dist/switch-CC-S5fbc.js +0 -2738
- package/dist/switch-CC-S5fbc.js.map +0 -1
- package/dist/tag.js +0 -323
- package/dist/tag.js.map +0 -1
- package/dist/tooltip.js +0 -1857
- package/dist/tooltip.js.map +0 -1
- package/dist/unsafe-html-BS8X6Gto.js.map +0 -1
- package/dist/utils.js +0 -277
- package/dist/utils.js.map +0 -1
- /package/{dist/assets/styles → scss}/tokens.css +0 -0
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"@example": [
|
|
155
155
|
{
|
|
156
156
|
"kind": "code",
|
|
157
|
-
"text": "```html\n<base-avatar name=\"Shivaji Varma\" src=\"https://peacock.redvars.com/assets/img/avatar.webp\" style='--avatar-size: 4rem'></base-avatar>\n```"
|
|
157
|
+
"text": "```html\n<base-avatar name=\"Shivaji Varma\" src=\"https://peacock.redvars.com/assets/img/avatar.xs.webp\" style='--avatar-size: 4rem'></base-avatar>\n```"
|
|
158
158
|
}
|
|
159
159
|
],
|
|
160
160
|
"@tags": [
|
|
@@ -613,7 +613,7 @@
|
|
|
613
613
|
"@fires": [
|
|
614
614
|
{
|
|
615
615
|
"kind": "text",
|
|
616
|
-
"text": "
|
|
616
|
+
"text": "click - Dispatched when the button is clicked."
|
|
617
617
|
}
|
|
618
618
|
],
|
|
619
619
|
"@example": [
|
|
@@ -1059,10 +1059,10 @@
|
|
|
1059
1059
|
"events": [
|
|
1060
1060
|
{
|
|
1061
1061
|
"type": {
|
|
1062
|
-
"text": "
|
|
1062
|
+
"text": "MouseEvent"
|
|
1063
1063
|
},
|
|
1064
1064
|
"description": "Dispatched when the button is clicked.",
|
|
1065
|
-
"name": "
|
|
1065
|
+
"name": "click"
|
|
1066
1066
|
}
|
|
1067
1067
|
],
|
|
1068
1068
|
"attributes": [
|
|
@@ -2,6 +2,120 @@
|
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
3
|
"readme": "",
|
|
4
4
|
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "src/CssLoader.ts",
|
|
8
|
+
"declarations": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "function",
|
|
11
|
+
"name": "loadCSS",
|
|
12
|
+
"return": {
|
|
13
|
+
"type": {
|
|
14
|
+
"text": "Promise<CSSStyleSheet>"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"parameters": [
|
|
18
|
+
{
|
|
19
|
+
"name": "url",
|
|
20
|
+
"type": {
|
|
21
|
+
"text": "string"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "options",
|
|
26
|
+
"default": "{}",
|
|
27
|
+
"type": {
|
|
28
|
+
"text": "any"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"kind": "function",
|
|
35
|
+
"name": "loadMultipleCSS",
|
|
36
|
+
"return": {
|
|
37
|
+
"type": {
|
|
38
|
+
"text": "Promise<CSSStyleSheet[]>"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"parameters": [
|
|
42
|
+
{
|
|
43
|
+
"name": "urls",
|
|
44
|
+
"type": {
|
|
45
|
+
"text": "string[]"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "options",
|
|
50
|
+
"default": "{}",
|
|
51
|
+
"type": {
|
|
52
|
+
"text": "any"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"kind": "function",
|
|
59
|
+
"name": "unloadCSS",
|
|
60
|
+
"return": {
|
|
61
|
+
"type": {
|
|
62
|
+
"text": "boolean"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"parameters": [
|
|
66
|
+
{
|
|
67
|
+
"name": "url",
|
|
68
|
+
"type": {
|
|
69
|
+
"text": "string"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"kind": "function",
|
|
76
|
+
"name": "clearAllCSS",
|
|
77
|
+
"return": {
|
|
78
|
+
"type": {
|
|
79
|
+
"text": "void"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"exports": [
|
|
85
|
+
{
|
|
86
|
+
"kind": "js",
|
|
87
|
+
"name": "loadCSS",
|
|
88
|
+
"declaration": {
|
|
89
|
+
"name": "loadCSS",
|
|
90
|
+
"module": "src/CssLoader.ts"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"kind": "js",
|
|
95
|
+
"name": "loadMultipleCSS",
|
|
96
|
+
"declaration": {
|
|
97
|
+
"name": "loadMultipleCSS",
|
|
98
|
+
"module": "src/CssLoader.ts"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"kind": "js",
|
|
103
|
+
"name": "unloadCSS",
|
|
104
|
+
"declaration": {
|
|
105
|
+
"name": "unloadCSS",
|
|
106
|
+
"module": "src/CssLoader.ts"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"kind": "js",
|
|
111
|
+
"name": "clearAllCSS",
|
|
112
|
+
"declaration": {
|
|
113
|
+
"name": "clearAllCSS",
|
|
114
|
+
"module": "src/CssLoader.ts"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
},
|
|
5
119
|
{
|
|
6
120
|
"kind": "javascript-module",
|
|
7
121
|
"path": "src/LoaderUtils.ts",
|
|
@@ -143,6 +257,34 @@
|
|
|
143
257
|
}
|
|
144
258
|
]
|
|
145
259
|
},
|
|
260
|
+
{
|
|
261
|
+
"kind": "javascript-module",
|
|
262
|
+
"path": "src/PeacockComponent.ts",
|
|
263
|
+
"declarations": [
|
|
264
|
+
{
|
|
265
|
+
"kind": "function",
|
|
266
|
+
"name": "PeacockComponent",
|
|
267
|
+
"parameters": [
|
|
268
|
+
{
|
|
269
|
+
"name": "constructor",
|
|
270
|
+
"type": {
|
|
271
|
+
"text": "Function"
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"exports": [
|
|
278
|
+
{
|
|
279
|
+
"kind": "js",
|
|
280
|
+
"name": "default",
|
|
281
|
+
"declaration": {
|
|
282
|
+
"name": "PeacockComponent",
|
|
283
|
+
"module": "src/PeacockComponent.ts"
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
},
|
|
146
288
|
{
|
|
147
289
|
"kind": "javascript-module",
|
|
148
290
|
"path": "src/constants.ts",
|
|
@@ -852,158 +994,6 @@
|
|
|
852
994
|
}
|
|
853
995
|
]
|
|
854
996
|
},
|
|
855
|
-
{
|
|
856
|
-
"kind": "javascript-module",
|
|
857
|
-
"path": "src/badge/badge.ts",
|
|
858
|
-
"declarations": [
|
|
859
|
-
{
|
|
860
|
-
"kind": "class",
|
|
861
|
-
"description": "",
|
|
862
|
-
"name": "Badge",
|
|
863
|
-
"cssProperties": [
|
|
864
|
-
{
|
|
865
|
-
"description": "Controls the color of the badge.",
|
|
866
|
-
"name": "--badge-color"
|
|
867
|
-
}
|
|
868
|
-
],
|
|
869
|
-
"members": [
|
|
870
|
-
{
|
|
871
|
-
"kind": "field",
|
|
872
|
-
"name": "value",
|
|
873
|
-
"type": {
|
|
874
|
-
"text": "string"
|
|
875
|
-
},
|
|
876
|
-
"default": "''",
|
|
877
|
-
"description": "The value to display in the badge.",
|
|
878
|
-
"attribute": "value"
|
|
879
|
-
}
|
|
880
|
-
],
|
|
881
|
-
"attributes": [
|
|
882
|
-
{
|
|
883
|
-
"name": "value",
|
|
884
|
-
"type": {
|
|
885
|
-
"text": "string"
|
|
886
|
-
},
|
|
887
|
-
"default": "''",
|
|
888
|
-
"description": "The value to display in the badge.",
|
|
889
|
-
"fieldName": "value"
|
|
890
|
-
}
|
|
891
|
-
],
|
|
892
|
-
"superclass": {
|
|
893
|
-
"name": "LitElement",
|
|
894
|
-
"package": "lit"
|
|
895
|
-
},
|
|
896
|
-
"tagName": "base-badge",
|
|
897
|
-
"customElement": true,
|
|
898
|
-
"summary": "The badge component is used to display a small amount of information to the user.",
|
|
899
|
-
"rawTag": {
|
|
900
|
-
"name": "badge",
|
|
901
|
-
"description": ""
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
],
|
|
905
|
-
"exports": [
|
|
906
|
-
{
|
|
907
|
-
"kind": "js",
|
|
908
|
-
"name": "Badge",
|
|
909
|
-
"declaration": {
|
|
910
|
-
"name": "Badge",
|
|
911
|
-
"module": "src/badge/badge.ts"
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
]
|
|
915
|
-
},
|
|
916
|
-
{
|
|
917
|
-
"kind": "javascript-module",
|
|
918
|
-
"path": "src/badge/index.ts",
|
|
919
|
-
"declarations": [],
|
|
920
|
-
"exports": [
|
|
921
|
-
{
|
|
922
|
-
"kind": "js",
|
|
923
|
-
"name": "Badge",
|
|
924
|
-
"declaration": {
|
|
925
|
-
"name": "Badge",
|
|
926
|
-
"module": "./badge.js"
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
]
|
|
930
|
-
},
|
|
931
|
-
{
|
|
932
|
-
"kind": "javascript-module",
|
|
933
|
-
"path": "src/badge/p-badge.ts",
|
|
934
|
-
"declarations": [
|
|
935
|
-
{
|
|
936
|
-
"kind": "class",
|
|
937
|
-
"description": "",
|
|
938
|
-
"name": "PBadge",
|
|
939
|
-
"superclass": {
|
|
940
|
-
"name": "Badge",
|
|
941
|
-
"module": "/src/badge/badge.js"
|
|
942
|
-
},
|
|
943
|
-
"tagName": "p-badge",
|
|
944
|
-
"customElement": true,
|
|
945
|
-
"cssProperties": [
|
|
946
|
-
{
|
|
947
|
-
"description": "Controls the color of the badge.",
|
|
948
|
-
"name": "--badge-color",
|
|
949
|
-
"inheritedFrom": {
|
|
950
|
-
"name": "Badge",
|
|
951
|
-
"module": "src/badge/badge.ts"
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
],
|
|
955
|
-
"attributes": [
|
|
956
|
-
{
|
|
957
|
-
"name": "value",
|
|
958
|
-
"type": {
|
|
959
|
-
"text": "string"
|
|
960
|
-
},
|
|
961
|
-
"default": "''",
|
|
962
|
-
"description": "The value to display in the badge.",
|
|
963
|
-
"fieldName": "value",
|
|
964
|
-
"inheritedFrom": {
|
|
965
|
-
"name": "Badge",
|
|
966
|
-
"module": "src/badge/badge.ts"
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
],
|
|
970
|
-
"members": [
|
|
971
|
-
{
|
|
972
|
-
"kind": "field",
|
|
973
|
-
"name": "value",
|
|
974
|
-
"type": {
|
|
975
|
-
"text": "string"
|
|
976
|
-
},
|
|
977
|
-
"default": "''",
|
|
978
|
-
"description": "The value to display in the badge.",
|
|
979
|
-
"attribute": "value",
|
|
980
|
-
"inheritedFrom": {
|
|
981
|
-
"name": "Badge",
|
|
982
|
-
"module": "src/badge/badge.ts"
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
]
|
|
986
|
-
}
|
|
987
|
-
],
|
|
988
|
-
"exports": [
|
|
989
|
-
{
|
|
990
|
-
"kind": "js",
|
|
991
|
-
"name": "PBadge",
|
|
992
|
-
"declaration": {
|
|
993
|
-
"name": "PBadge",
|
|
994
|
-
"module": "src/badge/p-badge.ts"
|
|
995
|
-
}
|
|
996
|
-
},
|
|
997
|
-
{
|
|
998
|
-
"kind": "custom-element-definition",
|
|
999
|
-
"name": "p-badge",
|
|
1000
|
-
"declaration": {
|
|
1001
|
-
"name": "PBadge",
|
|
1002
|
-
"module": "src/badge/p-badge.ts"
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
]
|
|
1006
|
-
},
|
|
1007
997
|
{
|
|
1008
998
|
"kind": "javascript-module",
|
|
1009
999
|
"path": "src/avatar/avatar.ts",
|
|
@@ -1244,6 +1234,158 @@
|
|
|
1244
1234
|
}
|
|
1245
1235
|
]
|
|
1246
1236
|
},
|
|
1237
|
+
{
|
|
1238
|
+
"kind": "javascript-module",
|
|
1239
|
+
"path": "src/badge/badge.ts",
|
|
1240
|
+
"declarations": [
|
|
1241
|
+
{
|
|
1242
|
+
"kind": "class",
|
|
1243
|
+
"description": "",
|
|
1244
|
+
"name": "Badge",
|
|
1245
|
+
"cssProperties": [
|
|
1246
|
+
{
|
|
1247
|
+
"description": "Controls the color of the badge.",
|
|
1248
|
+
"name": "--badge-color"
|
|
1249
|
+
}
|
|
1250
|
+
],
|
|
1251
|
+
"members": [
|
|
1252
|
+
{
|
|
1253
|
+
"kind": "field",
|
|
1254
|
+
"name": "value",
|
|
1255
|
+
"type": {
|
|
1256
|
+
"text": "string"
|
|
1257
|
+
},
|
|
1258
|
+
"default": "''",
|
|
1259
|
+
"description": "The value to display in the badge.",
|
|
1260
|
+
"attribute": "value"
|
|
1261
|
+
}
|
|
1262
|
+
],
|
|
1263
|
+
"attributes": [
|
|
1264
|
+
{
|
|
1265
|
+
"name": "value",
|
|
1266
|
+
"type": {
|
|
1267
|
+
"text": "string"
|
|
1268
|
+
},
|
|
1269
|
+
"default": "''",
|
|
1270
|
+
"description": "The value to display in the badge.",
|
|
1271
|
+
"fieldName": "value"
|
|
1272
|
+
}
|
|
1273
|
+
],
|
|
1274
|
+
"superclass": {
|
|
1275
|
+
"name": "LitElement",
|
|
1276
|
+
"package": "lit"
|
|
1277
|
+
},
|
|
1278
|
+
"tagName": "base-badge",
|
|
1279
|
+
"customElement": true,
|
|
1280
|
+
"summary": "The badge component is used to display a small amount of information to the user.",
|
|
1281
|
+
"rawTag": {
|
|
1282
|
+
"name": "badge",
|
|
1283
|
+
"description": ""
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
],
|
|
1287
|
+
"exports": [
|
|
1288
|
+
{
|
|
1289
|
+
"kind": "js",
|
|
1290
|
+
"name": "Badge",
|
|
1291
|
+
"declaration": {
|
|
1292
|
+
"name": "Badge",
|
|
1293
|
+
"module": "src/badge/badge.ts"
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
]
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
"kind": "javascript-module",
|
|
1300
|
+
"path": "src/badge/index.ts",
|
|
1301
|
+
"declarations": [],
|
|
1302
|
+
"exports": [
|
|
1303
|
+
{
|
|
1304
|
+
"kind": "js",
|
|
1305
|
+
"name": "Badge",
|
|
1306
|
+
"declaration": {
|
|
1307
|
+
"name": "Badge",
|
|
1308
|
+
"module": "./badge.js"
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
]
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
"kind": "javascript-module",
|
|
1315
|
+
"path": "src/badge/p-badge.ts",
|
|
1316
|
+
"declarations": [
|
|
1317
|
+
{
|
|
1318
|
+
"kind": "class",
|
|
1319
|
+
"description": "",
|
|
1320
|
+
"name": "PBadge",
|
|
1321
|
+
"superclass": {
|
|
1322
|
+
"name": "Badge",
|
|
1323
|
+
"module": "/src/badge/badge.js"
|
|
1324
|
+
},
|
|
1325
|
+
"tagName": "p-badge",
|
|
1326
|
+
"customElement": true,
|
|
1327
|
+
"cssProperties": [
|
|
1328
|
+
{
|
|
1329
|
+
"description": "Controls the color of the badge.",
|
|
1330
|
+
"name": "--badge-color",
|
|
1331
|
+
"inheritedFrom": {
|
|
1332
|
+
"name": "Badge",
|
|
1333
|
+
"module": "src/badge/badge.ts"
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
],
|
|
1337
|
+
"attributes": [
|
|
1338
|
+
{
|
|
1339
|
+
"name": "value",
|
|
1340
|
+
"type": {
|
|
1341
|
+
"text": "string"
|
|
1342
|
+
},
|
|
1343
|
+
"default": "''",
|
|
1344
|
+
"description": "The value to display in the badge.",
|
|
1345
|
+
"fieldName": "value",
|
|
1346
|
+
"inheritedFrom": {
|
|
1347
|
+
"name": "Badge",
|
|
1348
|
+
"module": "src/badge/badge.ts"
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
],
|
|
1352
|
+
"members": [
|
|
1353
|
+
{
|
|
1354
|
+
"kind": "field",
|
|
1355
|
+
"name": "value",
|
|
1356
|
+
"type": {
|
|
1357
|
+
"text": "string"
|
|
1358
|
+
},
|
|
1359
|
+
"default": "''",
|
|
1360
|
+
"description": "The value to display in the badge.",
|
|
1361
|
+
"attribute": "value",
|
|
1362
|
+
"inheritedFrom": {
|
|
1363
|
+
"name": "Badge",
|
|
1364
|
+
"module": "src/badge/badge.ts"
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
]
|
|
1368
|
+
}
|
|
1369
|
+
],
|
|
1370
|
+
"exports": [
|
|
1371
|
+
{
|
|
1372
|
+
"kind": "js",
|
|
1373
|
+
"name": "PBadge",
|
|
1374
|
+
"declaration": {
|
|
1375
|
+
"name": "PBadge",
|
|
1376
|
+
"module": "src/badge/p-badge.ts"
|
|
1377
|
+
}
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
"kind": "custom-element-definition",
|
|
1381
|
+
"name": "p-badge",
|
|
1382
|
+
"declaration": {
|
|
1383
|
+
"name": "PBadge",
|
|
1384
|
+
"module": "src/badge/p-badge.ts"
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
]
|
|
1388
|
+
},
|
|
1247
1389
|
{
|
|
1248
1390
|
"kind": "javascript-module",
|
|
1249
1391
|
"path": "src/breadcrumb/index.ts",
|
|
@@ -8274,10 +8416,10 @@
|
|
|
8274
8416
|
"events": [
|
|
8275
8417
|
{
|
|
8276
8418
|
"type": {
|
|
8277
|
-
"text": "
|
|
8419
|
+
"text": "MouseEvent"
|
|
8278
8420
|
},
|
|
8279
8421
|
"description": "Dispatched when the button is clicked.",
|
|
8280
|
-
"name": "
|
|
8422
|
+
"name": "click"
|
|
8281
8423
|
}
|
|
8282
8424
|
],
|
|
8283
8425
|
"attributes": [
|
package/dist/index.js
CHANGED
|
@@ -1,39 +1,91 @@
|
|
|
1
|
-
export { Icon } from './
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
export { Divider } from './divider.js';
|
|
5
|
-
export { Clock } from './clock.js';
|
|
6
|
-
export { Elevation } from './elevation.js';
|
|
7
|
-
export { B as Button, C as CircularProgress, D as DatePicker, I as IconButton, a as Input, L as LinearProgress, N as NumberField, S as Switch, T as Textarea, b as TimePicker } from './switch-CC-S5fbc.js';
|
|
1
|
+
export { A as Accordion, a as Avatar, B as Badge, b as Breadcrumb, c as BreadcrumbItem, C as Chip, d as CircularProgress, e as Container, D as DatePicker, f as Divider, E as Elevation, g as EmptyState, F as Field, h as FocusRing, I as Icon, i as IconButton, j as Input, L as LinearProgress, k as Link, N as NumberField, R as Ripple, S as Skeleton, l as Spinner, m as Switch, T as Tag, n as Textarea, o as TimePicker, p as Tooltip } from './breadcrumb-item-DkhwoMAH.js';
|
|
2
|
+
import { i, _ as __decorate, n, a as i$1, b } from './PeacockComponent-DMrFEGDh.js';
|
|
3
|
+
export { B as Button } from './button-BtpAXuLN.js';
|
|
8
4
|
export { ButtonGroup } from './button-group.js';
|
|
9
|
-
export { FocusRing } from './focus-ring.js';
|
|
10
|
-
export { Ripple } from './ripple.js';
|
|
11
|
-
export { Accordion } from './accordion.js';
|
|
12
|
-
export { Link } from './link.js';
|
|
13
|
-
export { Tag } from './tag.js';
|
|
14
|
-
export { Chip } from './chip.js';
|
|
15
|
-
export { Skeleton } from './skeleton.js';
|
|
16
|
-
export { Field } from './field.js';
|
|
17
|
-
export { Spinner } from './spinner.js';
|
|
18
|
-
export { Container } from './container.js';
|
|
19
5
|
export { NumberCounter } from './number-counter.js';
|
|
20
|
-
export { EmptyState } from './empty-state.js';
|
|
21
|
-
export { Tooltip } from './tooltip.js';
|
|
22
|
-
export { Breadcrumb } from './breadcrumb.js';
|
|
23
|
-
export { BreadcrumbItem } from './breadcrumb-item.js';
|
|
24
6
|
export { CodeHighlighter } from './code-highlighter.js';
|
|
25
|
-
import './
|
|
26
|
-
import './
|
|
27
|
-
import './
|
|
28
|
-
import './
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
7
|
+
import './state-CEVpI7Vv.js';
|
|
8
|
+
import './unsafe-html-Ca00SXpn.js';
|
|
9
|
+
import './class-map-CbncA34D.js';
|
|
10
|
+
import './style-map-mOmZwsJT.js';
|
|
11
|
+
|
|
12
|
+
var css_248z = i`* {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.screen-reader-only {
|
|
17
|
+
display: none !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:host {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.current-time {
|
|
25
|
+
font-family: var(--typography-body-medium-font-family) !important;
|
|
26
|
+
font-size: var(--typography-body-medium-font-size) !important;
|
|
27
|
+
font-weight: var(--typography-body-medium-font-weight) !important;
|
|
28
|
+
line-height: var(--typography-body-medium-line-height) !important;
|
|
29
|
+
letter-spacing: var(--typography-body-medium-letter-spacing) !important;
|
|
30
|
+
}`;
|
|
31
|
+
|
|
32
|
+
class ClockController {
|
|
33
|
+
constructor(host, timeout = 1000) {
|
|
34
|
+
this.value = new Date();
|
|
35
|
+
this.host = host;
|
|
36
|
+
this.host.addController(this);
|
|
37
|
+
this.timeout = timeout;
|
|
38
|
+
}
|
|
39
|
+
hostConnected() {
|
|
40
|
+
// Start a timer when the host is connected
|
|
41
|
+
this._timerID = setInterval(() => {
|
|
42
|
+
this.value = new Date();
|
|
43
|
+
// Update the host with new value
|
|
44
|
+
this.host.requestUpdate();
|
|
45
|
+
}, this.timeout);
|
|
46
|
+
}
|
|
47
|
+
hostDisconnected() {
|
|
48
|
+
// Clear the timer when the host is disconnected
|
|
49
|
+
clearInterval(this._timerID);
|
|
50
|
+
this._timerID = undefined;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @label Clock
|
|
56
|
+
* @tag base-clock
|
|
57
|
+
* @rawTag clock
|
|
58
|
+
*
|
|
59
|
+
* @summary Displays the current time in a given timezone.
|
|
60
|
+
* @overview
|
|
61
|
+
* - Clocks are used to display the current time in a specified timezone.
|
|
62
|
+
* - They can be displayed in various formats, including 12-hour and 24-hour time.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```html
|
|
66
|
+
* <base-clock></base-clock>
|
|
67
|
+
* ```
|
|
68
|
+
* @tags display
|
|
69
|
+
*/
|
|
70
|
+
class Clock extends i$1 {
|
|
71
|
+
constructor() {
|
|
72
|
+
super(...arguments);
|
|
73
|
+
this.clockController = new ClockController(this, 100);
|
|
74
|
+
}
|
|
75
|
+
__formatDate(date) {
|
|
76
|
+
return date.toLocaleTimeString('en-US', {
|
|
77
|
+
timeZone: this.timezone,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
render() {
|
|
81
|
+
const currentDate = this.__formatDate(this.clockController.value);
|
|
82
|
+
return b `<div class="current-time">${currentDate}</div>`;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
Clock.styles = [css_248z];
|
|
86
|
+
__decorate([
|
|
87
|
+
n()
|
|
88
|
+
], Clock.prototype, "timezone", void 0);
|
|
89
|
+
|
|
90
|
+
export { Clock };
|
|
39
91
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/clock/ClockController.ts","../../src/clock/clock.ts"],"sourcesContent":["import { ReactiveController, ReactiveControllerHost } from 'lit';\n\nexport class ClockController implements ReactiveController {\n host: ReactiveControllerHost;\n\n value = new Date();\n\n timeout: number;\n\n private _timerID?: any;\n\n constructor(host: ReactiveControllerHost, timeout = 1000) {\n this.host = host;\n this.host.addController(this);\n this.timeout = timeout;\n }\n\n hostConnected() {\n // Start a timer when the host is connected\n this._timerID = setInterval(() => {\n this.value = new Date();\n // Update the host with new value\n this.host.requestUpdate();\n }, this.timeout);\n }\n\n hostDisconnected() {\n // Clear the timer when the host is disconnected\n clearInterval(this._timerID);\n this._timerID = undefined;\n }\n}\n","import { html, LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport styles from './clock.scss';\nimport { ClockController } from './ClockController.js';\n\n/**\n * @label Clock\n * @tag base-clock\n * @rawTag clock\n *\n * @summary Displays the current time in a given timezone.\n * @overview\n * - Clocks are used to display the current time in a specified timezone.\n * - They can be displayed in various formats, including 12-hour and 24-hour time.\n *\n * @example\n * ```html\n * <base-clock></base-clock>\n * ```\n * @tags display\n */\nexport class Clock extends LitElement {\n static styles = [styles];\n\n clockController = new ClockController(this, 100);\n\n @property() timezone?: string;\n\n __formatDate(date: Date) {\n return date.toLocaleTimeString('en-US', {\n timeZone: this.timezone,\n });\n }\n\n render() {\n const currentDate = this.__formatDate(this.clockController.value);\n return html`<div class=\"current-time\">${currentDate}</div>`;\n }\n}\n"],"names":["LitElement","html","styles","property"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEa,eAAe,CAAA;AAS1B,IAAA,WAAA,CAAY,IAA4B,EAAE,OAAO,GAAG,IAAI,EAAA;AANxD,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,IAAI,EAAE;AAOhB,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI;AAChB,QAAA,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC;AAC7B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO;IACxB;IAEA,aAAa,GAAA;;AAEX,QAAA,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC,MAAK;AAC/B,YAAA,IAAI,CAAC,KAAK,GAAG,IAAI,IAAI,EAAE;;AAEvB,YAAA,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;AAC3B,QAAA,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC;IAClB;IAEA,gBAAgB,GAAA;;AAEd,QAAA,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC;AAC5B,QAAA,IAAI,CAAC,QAAQ,GAAG,SAAS;IAC3B;AACD;;AC1BD;;;;;;;;;;;;;;;AAeG;AACG,MAAO,KAAM,SAAQA,GAAU,CAAA;AAArC,IAAA,WAAA,GAAA;;QAGE,IAAA,CAAA,eAAe,GAAG,IAAI,eAAe,CAAC,IAAI,EAAE,GAAG,CAAC;IAclD;AAVE,IAAA,YAAY,CAAC,IAAU,EAAA;AACrB,QAAA,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE;YACtC,QAAQ,EAAE,IAAI,CAAC,QAAQ;AACxB,SAAA,CAAC;IACJ;IAEA,MAAM,GAAA;AACJ,QAAA,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC;AACjE,QAAA,OAAOC,CAAI,CAAA,CAAA,0BAAA,EAA6B,WAAW,QAAQ;IAC7D;;AAfO,KAAA,CAAA,MAAM,GAAG,CAACC,QAAM,CAAC;AAIZ,UAAA,CAAA;AAAX,IAAAC,CAAQ;AAAqB,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;;;;"}
|
package/dist/number-counter.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { _ as __decorate, n } from './
|
|
2
|
-
import {
|
|
3
|
-
import { o } from './style-map-CdmclYgz.js';
|
|
4
|
-
import './directive-Cuw6h7YA.js';
|
|
1
|
+
import { i, _ as __decorate, n, P as PeacockComponent, a as i$1, b, A } from './PeacockComponent-DMrFEGDh.js';
|
|
2
|
+
import { o } from './style-map-mOmZwsJT.js';
|
|
5
3
|
|
|
6
4
|
var css_248z = i`* {
|
|
7
5
|
box-sizing: border-box;
|
|
@@ -58,7 +56,7 @@ var css_248z = i`* {
|
|
|
58
56
|
* ```
|
|
59
57
|
* @tags display
|
|
60
58
|
*/
|
|
61
|
-
class NumberCounter extends i$1 {
|
|
59
|
+
let NumberCounter = class NumberCounter extends i$1 {
|
|
62
60
|
constructor() {
|
|
63
61
|
super(...arguments);
|
|
64
62
|
this.value = 0;
|
|
@@ -100,7 +98,7 @@ class NumberCounter extends i$1 {
|
|
|
100
98
|
</div>
|
|
101
99
|
</div>`;
|
|
102
100
|
}
|
|
103
|
-
}
|
|
101
|
+
};
|
|
104
102
|
NumberCounter.styles = [css_248z];
|
|
105
103
|
__decorate([
|
|
106
104
|
n({ type: Number })
|
|
@@ -108,6 +106,9 @@ __decorate([
|
|
|
108
106
|
__decorate([
|
|
109
107
|
n()
|
|
110
108
|
], NumberCounter.prototype, "locale", void 0);
|
|
109
|
+
NumberCounter = __decorate([
|
|
110
|
+
PeacockComponent
|
|
111
|
+
], NumberCounter);
|
|
111
112
|
|
|
112
113
|
export { NumberCounter };
|
|
113
114
|
//# sourceMappingURL=number-counter.js.map
|