@cargosense/cargo-design-system 1.0.4 → 1.0.5
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/assets/{Counter.cjs.js → index.cjs.js} +877 -17
- package/dist/assets/index.cjs.js.map +1 -0
- package/dist/assets/{Counter.es.js → index.es.js} +1633 -159
- package/dist/assets/index.es.js.map +1 -0
- package/dist/atoms/index.cjs.js +1 -861
- package/dist/atoms/index.cjs.js.map +1 -1
- package/dist/atoms/index.es.js +34 -1479
- package/dist/atoms/index.es.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +48 -47
- package/dist/index.es.js.map +1 -1
- package/dist/molecules/index.cjs.js +80 -13
- package/dist/molecules/index.cjs.js.map +1 -1
- package/dist/molecules/index.es.js +200 -89
- package/dist/molecules/index.es.js.map +1 -1
- package/dist/register/index.cjs.js +1 -1
- package/dist/register/index.cjs.js.map +1 -1
- package/dist/register/index.es.js +8 -7
- package/dist/register/index.es.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/Counter.cjs.js.map +0 -1
- package/dist/assets/Counter.es.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as s, i as r, c as o, f as i, d as a, o as c, x as e, a as p, b as h } from "../assets/Counter.es.js";
|
|
2
1
|
import "../fonts/index.es.js";
|
|
2
|
+
import { r as s, i as r, a as o, f as n, b as i, o as c, x as e, c as p, d as h, e as b } from "../assets/index.es.js";
|
|
3
3
|
s();
|
|
4
4
|
class v extends r {
|
|
5
|
-
static styles =
|
|
5
|
+
static styles = i`
|
|
6
6
|
@font-face {
|
|
7
7
|
font-family: 'Geist';
|
|
8
|
-
src: url(${o(
|
|
8
|
+
src: url(${o(n)}) format('woff');
|
|
9
9
|
font-weight: 100 900;
|
|
10
10
|
font-style: normal;
|
|
11
11
|
}
|
|
@@ -213,11 +213,11 @@ function d() {
|
|
|
213
213
|
typeof window < "u" && !customElements.get("cd-button") && customElements.define("cd-button", v);
|
|
214
214
|
}
|
|
215
215
|
s();
|
|
216
|
-
class
|
|
217
|
-
static styles =
|
|
216
|
+
class f extends r {
|
|
217
|
+
static styles = i`
|
|
218
218
|
@font-face {
|
|
219
219
|
font-family: 'Geist';
|
|
220
|
-
src: url(${o(
|
|
220
|
+
src: url(${o(n)}) format('woff');
|
|
221
221
|
font-weight: 100 900;
|
|
222
222
|
font-style: normal;
|
|
223
223
|
}
|
|
@@ -284,16 +284,16 @@ class b extends r {
|
|
|
284
284
|
`;
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
!customElements.get("cd-header") && typeof window < "u" && customElements.define("cd-header",
|
|
287
|
+
function I() {
|
|
288
|
+
!customElements.get("cd-header") && typeof window < "u" && customElements.define("cd-header", f);
|
|
289
289
|
}
|
|
290
290
|
s();
|
|
291
|
-
class
|
|
291
|
+
class g extends r {
|
|
292
292
|
static formAssociated = !0;
|
|
293
|
-
static styles =
|
|
293
|
+
static styles = i`
|
|
294
294
|
@font-face {
|
|
295
295
|
font-family: 'Geist';
|
|
296
|
-
src: url(${o(
|
|
296
|
+
src: url(${o(n)}) format('woff');
|
|
297
297
|
font-weight: 100 900;
|
|
298
298
|
font-style: normal;
|
|
299
299
|
}
|
|
@@ -536,15 +536,15 @@ class f extends r {
|
|
|
536
536
|
this.shadowRoot.querySelector("input").focus();
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
typeof window < "u" && !customElements.get("cd-input") && customElements.define("cd-input",
|
|
539
|
+
function D() {
|
|
540
|
+
typeof window < "u" && !customElements.get("cd-input") && customElements.define("cd-input", g);
|
|
541
541
|
}
|
|
542
542
|
p();
|
|
543
|
-
class
|
|
544
|
-
static styles =
|
|
543
|
+
class m extends r {
|
|
544
|
+
static styles = i`
|
|
545
545
|
@font-face {
|
|
546
546
|
font-family: 'Geist';
|
|
547
|
-
src: url(${o(
|
|
547
|
+
src: url(${o(n)}) format('woff');
|
|
548
548
|
font-weight: 100 900;
|
|
549
549
|
font-style: normal;
|
|
550
550
|
}
|
|
@@ -639,15 +639,15 @@ class g extends r {
|
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
641
|
function V() {
|
|
642
|
-
typeof window < "u" && !customElements.get("cd-nav-bar") && customElements.define("cd-nav-bar",
|
|
642
|
+
typeof window < "u" && !customElements.get("cd-nav-bar") && customElements.define("cd-nav-bar", m);
|
|
643
643
|
}
|
|
644
644
|
h();
|
|
645
645
|
s();
|
|
646
|
-
class
|
|
647
|
-
static styles =
|
|
646
|
+
class x extends r {
|
|
647
|
+
static styles = i`
|
|
648
648
|
@font-face {
|
|
649
649
|
font-family: 'Geist';
|
|
650
|
-
src: url('${o(
|
|
650
|
+
src: url('${o(n)}') format('woff');
|
|
651
651
|
font-weight: 100 900;
|
|
652
652
|
font-style: normal;
|
|
653
653
|
}
|
|
@@ -823,14 +823,14 @@ class m extends r {
|
|
|
823
823
|
this.active = !this.active, this.requestUpdate();
|
|
824
824
|
}
|
|
825
825
|
}
|
|
826
|
-
function
|
|
827
|
-
typeof window < "u" && !customElements.get("cd-nav-item") && customElements.define("cd-nav-item",
|
|
826
|
+
function F() {
|
|
827
|
+
typeof window < "u" && !customElements.get("cd-nav-item") && customElements.define("cd-nav-item", x);
|
|
828
828
|
}
|
|
829
829
|
class y extends r {
|
|
830
|
-
static styles =
|
|
830
|
+
static styles = i`
|
|
831
831
|
@font-face {
|
|
832
832
|
font-family: 'Geist';
|
|
833
|
-
src: url(${o(
|
|
833
|
+
src: url(${o(n)}) format('woff');
|
|
834
834
|
font-weight: 100 900;
|
|
835
835
|
font-style: normal;
|
|
836
836
|
}
|
|
@@ -850,14 +850,14 @@ class y extends r {
|
|
|
850
850
|
`;
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function R() {
|
|
854
854
|
typeof window < "u" && !customElements.get("cd-table") && customElements.define("cd-table", y);
|
|
855
855
|
}
|
|
856
|
-
class
|
|
857
|
-
static styles =
|
|
856
|
+
class w extends r {
|
|
857
|
+
static styles = i`
|
|
858
858
|
@font-face {
|
|
859
859
|
font-family: 'Geist';
|
|
860
|
-
src: url(${o(
|
|
860
|
+
src: url(${o(n)}) format('woff');
|
|
861
861
|
font-weight: 100 900;
|
|
862
862
|
font-style: normal;
|
|
863
863
|
}
|
|
@@ -954,15 +954,15 @@ class x extends r {
|
|
|
954
954
|
`;
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
|
-
function
|
|
958
|
-
typeof window < "u" && !customElements.get("cd-tool-tip") && customElements.define("cd-tool-tip",
|
|
957
|
+
function L() {
|
|
958
|
+
typeof window < "u" && !customElements.get("cd-tool-tip") && customElements.define("cd-tool-tip", w);
|
|
959
959
|
}
|
|
960
960
|
s();
|
|
961
|
-
class
|
|
962
|
-
static styles =
|
|
961
|
+
class k extends r {
|
|
962
|
+
static styles = i`
|
|
963
963
|
@font-face {
|
|
964
964
|
font-family: 'Geist';
|
|
965
|
-
src: url(${o(
|
|
965
|
+
src: url(${o(n)}) format('woff');
|
|
966
966
|
font-weight: 100 900;
|
|
967
967
|
font-style: normal;
|
|
968
968
|
}
|
|
@@ -1038,15 +1038,15 @@ class w extends r {
|
|
|
1038
1038
|
`;
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1042
|
-
typeof window < "u" && !customElements.get("cd-nav-profile") && customElements.define("cd-nav-profile",
|
|
1041
|
+
function P() {
|
|
1042
|
+
typeof window < "u" && !customElements.get("cd-nav-profile") && customElements.define("cd-nav-profile", k);
|
|
1043
1043
|
}
|
|
1044
1044
|
s();
|
|
1045
|
-
class
|
|
1046
|
-
static styles =
|
|
1045
|
+
class $ extends r {
|
|
1046
|
+
static styles = i`
|
|
1047
1047
|
@font-face {
|
|
1048
1048
|
font-family: 'Geist';
|
|
1049
|
-
src: url(${o(
|
|
1049
|
+
src: url(${o(n)}) format('woff');
|
|
1050
1050
|
font-weight: 100 900;
|
|
1051
1051
|
font-style: normal;
|
|
1052
1052
|
}
|
|
@@ -1145,15 +1145,15 @@ class k extends r {
|
|
|
1145
1145
|
`;
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1149
|
-
typeof window < "u" && !customElements.get("cd-value") && customElements.define("cd-value",
|
|
1148
|
+
function N() {
|
|
1149
|
+
typeof window < "u" && !customElements.get("cd-value") && customElements.define("cd-value", $);
|
|
1150
1150
|
}
|
|
1151
1151
|
s();
|
|
1152
|
-
class
|
|
1153
|
-
static styles =
|
|
1152
|
+
class E extends r {
|
|
1153
|
+
static styles = i`
|
|
1154
1154
|
@font-face {
|
|
1155
1155
|
font-family: 'Geist';
|
|
1156
|
-
src: url(${o(
|
|
1156
|
+
src: url(${o(n)}) format('woff');
|
|
1157
1157
|
font-weight: 100 900;
|
|
1158
1158
|
font-style: normal;
|
|
1159
1159
|
}
|
|
@@ -1490,15 +1490,15 @@ class $ extends r {
|
|
|
1490
1490
|
})), this.requestUpdate());
|
|
1491
1491
|
}
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1494
|
-
typeof window < "u" && !customElements.get("cd-search") && customElements.define("cd-search",
|
|
1493
|
+
function G() {
|
|
1494
|
+
typeof window < "u" && !customElements.get("cd-search") && customElements.define("cd-search", E);
|
|
1495
1495
|
}
|
|
1496
1496
|
s();
|
|
1497
|
-
class
|
|
1498
|
-
static styles =
|
|
1497
|
+
class z extends r {
|
|
1498
|
+
static styles = i`
|
|
1499
1499
|
@font-face {
|
|
1500
1500
|
font-family: 'Geist';
|
|
1501
|
-
src: url(${o(
|
|
1501
|
+
src: url(${o(n)}) format('woff');
|
|
1502
1502
|
font-weight: 100 900;
|
|
1503
1503
|
font-style: normal;
|
|
1504
1504
|
}
|
|
@@ -1657,14 +1657,14 @@ class E extends r {
|
|
|
1657
1657
|
this.disabled = t;
|
|
1658
1658
|
}
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1661
|
-
typeof window < "u" && !customElements.get("cd-tab") && customElements.define("cd-tab",
|
|
1660
|
+
function U() {
|
|
1661
|
+
typeof window < "u" && !customElements.get("cd-tab") && customElements.define("cd-tab", z);
|
|
1662
1662
|
}
|
|
1663
|
-
class
|
|
1664
|
-
static styles =
|
|
1663
|
+
class S extends r {
|
|
1664
|
+
static styles = i`
|
|
1665
1665
|
@font-face {
|
|
1666
1666
|
font-family: 'Geist';
|
|
1667
|
-
src: url(${o(
|
|
1667
|
+
src: url(${o(n)}) format('woff');
|
|
1668
1668
|
font-weight: normal;
|
|
1669
1669
|
font-style: normal;
|
|
1670
1670
|
}
|
|
@@ -1702,11 +1702,11 @@ class z extends r {
|
|
|
1702
1702
|
`;
|
|
1703
1703
|
}
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1706
|
-
typeof window < "u" && !customElements.get("cd-tab-container") && customElements.define("cd-tab-container",
|
|
1705
|
+
function M() {
|
|
1706
|
+
typeof window < "u" && !customElements.get("cd-tab-container") && customElements.define("cd-tab-container", S);
|
|
1707
1707
|
}
|
|
1708
1708
|
d();
|
|
1709
|
-
class
|
|
1709
|
+
class A extends r {
|
|
1710
1710
|
static formAssociated = !0;
|
|
1711
1711
|
static distinctTimezones = [
|
|
1712
1712
|
"Etc/GMT+12",
|
|
@@ -1746,10 +1746,10 @@ class S extends r {
|
|
|
1746
1746
|
"Pacific/Tongatapu",
|
|
1747
1747
|
"Pacific/Kiritimati"
|
|
1748
1748
|
];
|
|
1749
|
-
static styles =
|
|
1749
|
+
static styles = i`
|
|
1750
1750
|
@font-face {
|
|
1751
1751
|
font-family: 'Geist';
|
|
1752
|
-
src: url(${o(
|
|
1752
|
+
src: url(${o(n)}) format('woff');
|
|
1753
1753
|
font-weight: 100 900;
|
|
1754
1754
|
font-style: normal;
|
|
1755
1755
|
}
|
|
@@ -1967,11 +1967,11 @@ class S extends r {
|
|
|
1967
1967
|
}), this.requestUpdate();
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
|
-
function
|
|
1971
|
-
typeof window < "u" && !customElements.get("cd-date") && customElements.define("cd-date",
|
|
1970
|
+
function K() {
|
|
1971
|
+
typeof window < "u" && !customElements.get("cd-date") && customElements.define("cd-date", A);
|
|
1972
1972
|
}
|
|
1973
1973
|
d();
|
|
1974
|
-
class
|
|
1974
|
+
class C extends r {
|
|
1975
1975
|
static formAssociated = !0;
|
|
1976
1976
|
static distinctTimezones = [
|
|
1977
1977
|
"Etc/GMT+12",
|
|
@@ -2011,10 +2011,10 @@ class A extends r {
|
|
|
2011
2011
|
"Pacific/Tongatapu",
|
|
2012
2012
|
"Pacific/Kiritimati"
|
|
2013
2013
|
];
|
|
2014
|
-
static styles =
|
|
2014
|
+
static styles = i`
|
|
2015
2015
|
@font-face {
|
|
2016
2016
|
font-family: 'Geist';
|
|
2017
|
-
src: url(${o(
|
|
2017
|
+
src: url(${o(n)}) format('woff');
|
|
2018
2018
|
font-weight: 100 900;
|
|
2019
2019
|
font-style: normal;
|
|
2020
2020
|
}
|
|
@@ -2228,37 +2228,148 @@ class A extends r {
|
|
|
2228
2228
|
}), this.requestUpdate();
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
|
-
function
|
|
2232
|
-
typeof window < "u" && !customElements.get("cd-time") && customElements.define("cd-time",
|
|
2231
|
+
function W() {
|
|
2232
|
+
typeof window < "u" && !customElements.get("cd-time") && customElements.define("cd-time", C);
|
|
2233
|
+
}
|
|
2234
|
+
s();
|
|
2235
|
+
class B extends r {
|
|
2236
|
+
static styles = i`
|
|
2237
|
+
@font-face {
|
|
2238
|
+
font-family: 'GeistMono';
|
|
2239
|
+
src: url(${o(b)}) format('woff');
|
|
2240
|
+
font-weight: 100 900;
|
|
2241
|
+
font-style: normal;
|
|
2242
|
+
}
|
|
2243
|
+
|
|
2244
|
+
:host {
|
|
2245
|
+
height: var(--icon-container-size, 36px);
|
|
2246
|
+
width: var(--icon-container-size, 36px);
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
.icon-container {
|
|
2250
|
+
font-family: 'GeistMono', sans-serif;
|
|
2251
|
+
display: inline-flex;
|
|
2252
|
+
align-items: center;
|
|
2253
|
+
justify-content: center;
|
|
2254
|
+
width: var(--icon-container-size, 36px);
|
|
2255
|
+
height: var(--icon-container-size, 36px);
|
|
2256
|
+
border-radius: var(--icon-container-border-radius, 5px);
|
|
2257
|
+
cursor: pointer;
|
|
2258
|
+
box-sizing: border-box;
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
.icon-container.default {
|
|
2262
|
+
background-color: var(--icon-container-default-background, #2D3339);
|
|
2263
|
+
border: 1px solid var(--icon-container-default-border, #1B1F23);
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
.icon-container.primary {
|
|
2267
|
+
background-color: var(--icon-container-primary-background, #747E8B);
|
|
2268
|
+
border: 1px solid var(--icon-container-primary-border, #5C6570);
|
|
2269
|
+
}
|
|
2270
|
+
.icon-container.secondary {
|
|
2271
|
+
background-color: var(--icon-container-secondary-background, #F1F4F6);
|
|
2272
|
+
border: 1px solid var(--icon-container-secondary-border, #F1F4F6);
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
.icon-container.exception {
|
|
2276
|
+
background-color: var(--icon-container-exception-background, #C30F21);
|
|
2277
|
+
border: 1px solid var(--icon-container-exception-border, #A20D1C);
|
|
2278
|
+
}
|
|
2279
|
+
.icon-container.sensor {
|
|
2280
|
+
background-color: var(--icon-container-sensor-background, #0F665F);
|
|
2281
|
+
border: 1px solid var(--icon-container-sensor-border, #024C49);
|
|
2282
|
+
}
|
|
2283
|
+
.icon-container.fedex {
|
|
2284
|
+
background-color: var(--icon-container-fedex-background, #572297);
|
|
2285
|
+
border: 1px solid var(--icon-container-fedex-border, #481E7A);
|
|
2286
|
+
}
|
|
2287
|
+
.icon-container.ups {
|
|
2288
|
+
background-color: var(--icon-container-ups-background, #573C3C);
|
|
2289
|
+
border: 1px solid var(--icon-container-ups-border, #352222);
|
|
2290
|
+
}
|
|
2291
|
+
.icon-container.air {
|
|
2292
|
+
background-color: var(--icon-container-air-background, #1D5FAA);
|
|
2293
|
+
border: 1px solid var(--icon-container-air-border, #185294);
|
|
2294
|
+
}
|
|
2295
|
+
.icon-container.ocean {
|
|
2296
|
+
background-color: var(--icon-container-ocean-background, #12378E);
|
|
2297
|
+
border: 1px solid var(--icon-container-ocean-border, #132E6E);
|
|
2298
|
+
}
|
|
2299
|
+
`;
|
|
2300
|
+
static properties = {
|
|
2301
|
+
icon: {
|
|
2302
|
+
type: String,
|
|
2303
|
+
reflect: !0,
|
|
2304
|
+
attribute: "icon"
|
|
2305
|
+
},
|
|
2306
|
+
size: {
|
|
2307
|
+
type: String,
|
|
2308
|
+
reflect: !0,
|
|
2309
|
+
attribute: "size"
|
|
2310
|
+
},
|
|
2311
|
+
variant: {
|
|
2312
|
+
type: String,
|
|
2313
|
+
reflect: !0,
|
|
2314
|
+
attribute: "variant"
|
|
2315
|
+
}
|
|
2316
|
+
};
|
|
2317
|
+
constructor() {
|
|
2318
|
+
super(), this.icon = void 0, this.size = "md", this.variant = "default";
|
|
2319
|
+
}
|
|
2320
|
+
setIcon(t) {
|
|
2321
|
+
this.icon = t;
|
|
2322
|
+
}
|
|
2323
|
+
_handleIconClick() {
|
|
2324
|
+
this.dispatchEvent(new CustomEvent("click", {
|
|
2325
|
+
bubbles: !0,
|
|
2326
|
+
composed: !0,
|
|
2327
|
+
detail: {
|
|
2328
|
+
icon: this.icon
|
|
2329
|
+
}
|
|
2330
|
+
}));
|
|
2331
|
+
}
|
|
2332
|
+
render() {
|
|
2333
|
+
return e`
|
|
2334
|
+
<div class="icon-container ${this.variant}" @click="${this._handleIconClick}">
|
|
2335
|
+
${this.icon ? e`<cd-icon name="${this.icon}" size="${this.size | "md"}"></cd-icon>` : e`<slot></slot>`}
|
|
2336
|
+
</div>
|
|
2337
|
+
`;
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
function Y() {
|
|
2341
|
+
typeof window < "u" && !customElements.get("cd-icon-container") && customElements.define("cd-icon-container", B);
|
|
2233
2342
|
}
|
|
2234
2343
|
export {
|
|
2235
2344
|
v as Button,
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
g as
|
|
2240
|
-
m as
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
E as
|
|
2244
|
-
z as
|
|
2345
|
+
A as DateComponent,
|
|
2346
|
+
f as Header,
|
|
2347
|
+
B as IconContainer,
|
|
2348
|
+
g as Input,
|
|
2349
|
+
m as NavBar,
|
|
2350
|
+
x as NavItem,
|
|
2351
|
+
k as NavProfile,
|
|
2352
|
+
E as Search,
|
|
2353
|
+
z as Tab,
|
|
2354
|
+
S as TabContainer,
|
|
2245
2355
|
y as Table,
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2356
|
+
C as TimeComponent,
|
|
2357
|
+
w as ToolTip,
|
|
2358
|
+
$ as Value,
|
|
2249
2359
|
d as registerButton,
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2360
|
+
K as registerDate,
|
|
2361
|
+
I as registerHeader,
|
|
2362
|
+
Y as registerIconContainer,
|
|
2363
|
+
D as registerInput,
|
|
2253
2364
|
V as registerNavBar,
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2365
|
+
F as registerNavItem,
|
|
2366
|
+
P as registerNavProfile,
|
|
2367
|
+
G as registerSearch,
|
|
2368
|
+
U as registerTab,
|
|
2369
|
+
M as registerTabContainer,
|
|
2370
|
+
R as registerTable,
|
|
2371
|
+
W as registerTime,
|
|
2372
|
+
L as registerToolTip,
|
|
2373
|
+
N as registerValue
|
|
2263
2374
|
};
|
|
2264
2375
|
//# sourceMappingURL=index.es.js.map
|