@cgi-learning-hub/ui 1.11.0-dev.1764841886 → 1.11.0-dev.1765193488

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/index.cjs.js CHANGED
@@ -57564,14 +57564,72 @@ const ImagePicker = ({
57564
57564
  }
57565
57565
  );
57566
57566
  };
57567
+ const StyledLoader = styled(Box)({
57568
+ padding: "0 auto",
57569
+ textAlign: "center",
57570
+ whiteSpace: "nowrap",
57571
+ overflow: "hidden"
57572
+ });
57573
+ const StyledLoaderInner = styled(Box)({
57574
+ "& label": {
57575
+ fontSize: 16,
57576
+ opacity: 0,
57577
+ display: "inline-block",
57578
+ verticalAlign: "middle",
57579
+ "&:nth-of-type(4)": {
57580
+ animation: "dotSlide 3s 200ms infinite ease-in-out"
57581
+ },
57582
+ "&:nth-of-type(3)": {
57583
+ animation: "dotSlide 3s 300ms infinite ease-in-out"
57584
+ },
57585
+ "&:nth-of-type(2)": {
57586
+ animation: "dotSlide 3s 400ms infinite ease-in-out"
57587
+ },
57588
+ "&:nth-of-type(1)": {
57589
+ animation: "dotSlide 3s 500ms infinite ease-in-out"
57590
+ }
57591
+ },
57592
+ "@keyframes dotSlide": {
57593
+ "0%": { opacity: 0, transform: "translateX(-100px)" },
57594
+ "33%": { opacity: 1, transform: "translateX(0px)" },
57595
+ "66%": { opacity: 1, transform: "translateX(0px)" },
57596
+ "100%": { opacity: 0, transform: "translateX(100px)" }
57597
+ }
57598
+ });
57567
57599
  const Loader = (props) => {
57568
- return /* @__PURE__ */ jsxRuntime.jsx(Box, { className: "cs-loader", color: "primary.main", ...props, children: /* @__PURE__ */ jsxRuntime.jsxs(Box, { className: "cs-loader-inner", children: [
57600
+ return /* @__PURE__ */ jsxRuntime.jsx(StyledLoader, { color: "primary.main", ...props, children: /* @__PURE__ */ jsxRuntime.jsxs(StyledLoaderInner, { children: [
57569
57601
  /* @__PURE__ */ jsxRuntime.jsx("label", { children: "●" }),
57570
57602
  /* @__PURE__ */ jsxRuntime.jsx("label", { children: "●" }),
57571
57603
  /* @__PURE__ */ jsxRuntime.jsx("label", { children: "●" }),
57572
57604
  /* @__PURE__ */ jsxRuntime.jsx("label", { children: "●" })
57573
57605
  ] }) });
57574
57606
  };
57607
+ const StyledLoaderBackdropInner = styled(Box)({
57608
+ textAlign: "center",
57609
+ "& label": {
57610
+ fontSize: 20,
57611
+ opacity: 0,
57612
+ display: "inline-block",
57613
+ "&:nth-of-type(4)": {
57614
+ animation: "dotSlide 3s 200ms infinite ease-in-out"
57615
+ },
57616
+ "&:nth-of-type(3)": {
57617
+ animation: "dotSlide 3s 300ms infinite ease-in-out"
57618
+ },
57619
+ "&:nth-of-type(2)": {
57620
+ animation: "dotSlide 3s 400ms infinite ease-in-out"
57621
+ },
57622
+ "&:nth-of-type(1)": {
57623
+ animation: "dotSlide 3s 500ms infinite ease-in-out"
57624
+ }
57625
+ },
57626
+ "@keyframes dotSlide": {
57627
+ "0%": { opacity: 0, transform: "translateX(-300px)" },
57628
+ "33%": { opacity: 1, transform: "translateX(0px)" },
57629
+ "66%": { opacity: 1, transform: "translateX(0px)" },
57630
+ "100%": { opacity: 0, transform: "translateX(300px)" }
57631
+ }
57632
+ });
57575
57633
  const LoaderBackdrop = ({
57576
57634
  slotProps = {}
57577
57635
  }) => {
@@ -57581,20 +57639,12 @@ const LoaderBackdrop = ({
57581
57639
  open: true,
57582
57640
  sx: { bgcolor: "background.default" },
57583
57641
  ...slotProps.backdrop,
57584
- children: /* @__PURE__ */ jsxRuntime.jsxs(
57585
- Box,
57586
- {
57587
- className: "cs-loader-backdrop-inner",
57588
- color: "primary.main",
57589
- ...slotProps.loader,
57590
- children: [
57591
- /* @__PURE__ */ jsxRuntime.jsx("label", { children: "●" }),
57592
- /* @__PURE__ */ jsxRuntime.jsx("label", { children: "●" }),
57593
- /* @__PURE__ */ jsxRuntime.jsx("label", { children: "●" }),
57594
- /* @__PURE__ */ jsxRuntime.jsx("label", { children: "●" })
57595
- ]
57596
- }
57597
- )
57642
+ children: /* @__PURE__ */ jsxRuntime.jsxs(StyledLoaderBackdropInner, { color: "primary.main", ...slotProps.loader, children: [
57643
+ /* @__PURE__ */ jsxRuntime.jsx("label", { children: "●" }),
57644
+ /* @__PURE__ */ jsxRuntime.jsx("label", { children: "●" }),
57645
+ /* @__PURE__ */ jsxRuntime.jsx("label", { children: "" }),
57646
+ /* @__PURE__ */ jsxRuntime.jsx("label", { children: "" })
57647
+ ] })
57598
57648
  }
57599
57649
  );
57600
57650
  };
package/dist/index.es.js CHANGED
@@ -57547,14 +57547,72 @@ const ImagePicker = ({
57547
57547
  }
57548
57548
  );
57549
57549
  };
57550
+ const StyledLoader = styled(Box)({
57551
+ padding: "0 auto",
57552
+ textAlign: "center",
57553
+ whiteSpace: "nowrap",
57554
+ overflow: "hidden"
57555
+ });
57556
+ const StyledLoaderInner = styled(Box)({
57557
+ "& label": {
57558
+ fontSize: 16,
57559
+ opacity: 0,
57560
+ display: "inline-block",
57561
+ verticalAlign: "middle",
57562
+ "&:nth-of-type(4)": {
57563
+ animation: "dotSlide 3s 200ms infinite ease-in-out"
57564
+ },
57565
+ "&:nth-of-type(3)": {
57566
+ animation: "dotSlide 3s 300ms infinite ease-in-out"
57567
+ },
57568
+ "&:nth-of-type(2)": {
57569
+ animation: "dotSlide 3s 400ms infinite ease-in-out"
57570
+ },
57571
+ "&:nth-of-type(1)": {
57572
+ animation: "dotSlide 3s 500ms infinite ease-in-out"
57573
+ }
57574
+ },
57575
+ "@keyframes dotSlide": {
57576
+ "0%": { opacity: 0, transform: "translateX(-100px)" },
57577
+ "33%": { opacity: 1, transform: "translateX(0px)" },
57578
+ "66%": { opacity: 1, transform: "translateX(0px)" },
57579
+ "100%": { opacity: 0, transform: "translateX(100px)" }
57580
+ }
57581
+ });
57550
57582
  const Loader = (props) => {
57551
- return /* @__PURE__ */ jsx(Box, { className: "cs-loader", color: "primary.main", ...props, children: /* @__PURE__ */ jsxs(Box, { className: "cs-loader-inner", children: [
57583
+ return /* @__PURE__ */ jsx(StyledLoader, { color: "primary.main", ...props, children: /* @__PURE__ */ jsxs(StyledLoaderInner, { children: [
57552
57584
  /* @__PURE__ */ jsx("label", { children: "●" }),
57553
57585
  /* @__PURE__ */ jsx("label", { children: "●" }),
57554
57586
  /* @__PURE__ */ jsx("label", { children: "●" }),
57555
57587
  /* @__PURE__ */ jsx("label", { children: "●" })
57556
57588
  ] }) });
57557
57589
  };
57590
+ const StyledLoaderBackdropInner = styled(Box)({
57591
+ textAlign: "center",
57592
+ "& label": {
57593
+ fontSize: 20,
57594
+ opacity: 0,
57595
+ display: "inline-block",
57596
+ "&:nth-of-type(4)": {
57597
+ animation: "dotSlide 3s 200ms infinite ease-in-out"
57598
+ },
57599
+ "&:nth-of-type(3)": {
57600
+ animation: "dotSlide 3s 300ms infinite ease-in-out"
57601
+ },
57602
+ "&:nth-of-type(2)": {
57603
+ animation: "dotSlide 3s 400ms infinite ease-in-out"
57604
+ },
57605
+ "&:nth-of-type(1)": {
57606
+ animation: "dotSlide 3s 500ms infinite ease-in-out"
57607
+ }
57608
+ },
57609
+ "@keyframes dotSlide": {
57610
+ "0%": { opacity: 0, transform: "translateX(-300px)" },
57611
+ "33%": { opacity: 1, transform: "translateX(0px)" },
57612
+ "66%": { opacity: 1, transform: "translateX(0px)" },
57613
+ "100%": { opacity: 0, transform: "translateX(300px)" }
57614
+ }
57615
+ });
57558
57616
  const LoaderBackdrop = ({
57559
57617
  slotProps = {}
57560
57618
  }) => {
@@ -57564,20 +57622,12 @@ const LoaderBackdrop = ({
57564
57622
  open: true,
57565
57623
  sx: { bgcolor: "background.default" },
57566
57624
  ...slotProps.backdrop,
57567
- children: /* @__PURE__ */ jsxs(
57568
- Box,
57569
- {
57570
- className: "cs-loader-backdrop-inner",
57571
- color: "primary.main",
57572
- ...slotProps.loader,
57573
- children: [
57574
- /* @__PURE__ */ jsx("label", { children: "●" }),
57575
- /* @__PURE__ */ jsx("label", { children: "●" }),
57576
- /* @__PURE__ */ jsx("label", { children: "●" }),
57577
- /* @__PURE__ */ jsx("label", { children: "●" })
57578
- ]
57579
- }
57580
- )
57625
+ children: /* @__PURE__ */ jsxs(StyledLoaderBackdropInner, { color: "primary.main", ...slotProps.loader, children: [
57626
+ /* @__PURE__ */ jsx("label", { children: "●" }),
57627
+ /* @__PURE__ */ jsx("label", { children: "●" }),
57628
+ /* @__PURE__ */ jsx("label", { children: "" }),
57629
+ /* @__PURE__ */ jsx("label", { children: "" })
57630
+ ] })
57581
57631
  }
57582
57632
  );
57583
57633
  };
package/dist/ui.css CHANGED
@@ -11,141 +11,3 @@
11
11
  --toastify-text-color-light: var(--theme-palette-text-primary);
12
12
  --toastify-text-color-dark: var(--theme-palette-common-white);
13
13
  }
14
- .cs-loader {
15
- padding: 0 auto;
16
- text-align: center;
17
- white-space: nowrap;
18
- overflow: hidden;
19
- }
20
-
21
- .cs-loader-inner label {
22
- font-size: 16px;
23
- opacity: 0;
24
- display: inline-block;
25
- vertical-align: middle;
26
- }
27
-
28
- @keyframes lol {
29
- 0% {
30
- opacity: 0;
31
- transform: translateX(-100px);
32
- }
33
- 33% {
34
- opacity: 1;
35
- transform: translateX(0px);
36
- }
37
- 66% {
38
- opacity: 1;
39
- transform: translateX(0px);
40
- }
41
- 100% {
42
- opacity: 0;
43
- transform: translateX(100px);
44
- }
45
- }
46
-
47
- @-webkit-keyframes lol {
48
- 0% {
49
- opacity: 0;
50
- -webkit-transform: translateX(-100px);
51
- }
52
- 33% {
53
- opacity: 1;
54
- -webkit-transform: translateX(0px);
55
- }
56
- 66% {
57
- opacity: 1;
58
- -webkit-transform: translateX(0px);
59
- }
60
- 100% {
61
- opacity: 0;
62
- -webkit-transform: translateX(100px);
63
- }
64
- }
65
-
66
- .cs-loader-inner label:nth-child(4) {
67
- -webkit-animation: lol 3s 200ms infinite ease-in-out;
68
- animation: lol 3s 200ms infinite ease-in-out;
69
- }
70
-
71
- .cs-loader-inner label:nth-child(3) {
72
- -webkit-animation: lol 3s 300ms infinite ease-in-out;
73
- animation: lol 3s 300ms infinite ease-in-out;
74
- }
75
-
76
- .cs-loader-inner label:nth-child(2) {
77
- -webkit-animation: lol 3s 400ms infinite ease-in-out;
78
- animation: lol 3s 400ms infinite ease-in-out;
79
- }
80
-
81
- .cs-loader-inner label:nth-child(1) {
82
- -webkit-animation: lol 3s 500ms infinite ease-in-out;
83
- animation: lol 3s 500ms infinite ease-in-out;
84
- }
85
- .cs-loader-backdrop-inner {
86
- text-align: center;
87
- }
88
-
89
- .cs-loader-backdrop-inner label {
90
- font-size: 20px;
91
- opacity: 0;
92
- display: inline-block;
93
- }
94
-
95
- @keyframes lol-backdrop {
96
- 0% {
97
- opacity: 0;
98
- transform: translateX(-300px);
99
- }
100
- 33% {
101
- opacity: 1;
102
- transform: translateX(0px);
103
- }
104
- 66% {
105
- opacity: 1;
106
- transform: translateX(0px);
107
- }
108
- 100% {
109
- opacity: 0;
110
- transform: translateX(300px);
111
- }
112
- }
113
-
114
- @-webkit-keyframes lol-backdrop {
115
- 0% {
116
- opacity: 0;
117
- -webkit-transform: translateX(-300px);
118
- }
119
- 33% {
120
- opacity: 1;
121
- -webkit-transform: translateX(0px);
122
- }
123
- 66% {
124
- opacity: 1;
125
- -webkit-transform: translateX(0px);
126
- }
127
- 100% {
128
- opacity: 0;
129
- -webkit-transform: translateX(300px);
130
- }
131
- }
132
-
133
- .cs-loader-backdrop-inner label:nth-child(4) {
134
- -webkit-animation: lol-backdrop 3s 200ms infinite ease-in-out;
135
- animation: lol-backdrop 3s 200ms infinite ease-in-out;
136
- }
137
-
138
- .cs-loader-backdrop-inner label:nth-child(3) {
139
- -webkit-animation: lol-backdrop 3s 300ms infinite ease-in-out;
140
- animation: lol-backdrop 3s 300ms infinite ease-in-out;
141
- }
142
-
143
- .cs-loader-backdrop-inner label:nth-child(2) {
144
- -webkit-animation: lol-backdrop 3s 400ms infinite ease-in-out;
145
- animation: lol-backdrop 3s 400ms infinite ease-in-out;
146
- }
147
-
148
- .cs-loader-backdrop-inner label:nth-child(1) {
149
- -webkit-animation: lol-backdrop 3s 500ms infinite ease-in-out;
150
- animation: lol-backdrop 3s 500ms infinite ease-in-out;
151
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgi-learning-hub/ui",
3
- "version": "1.11.0-dev.1764841886",
3
+ "version": "1.11.0-dev.1765193488",
4
4
  "description": "React component library for Hub's design system, built on Material UI with custom and extended components.",
5
5
  "keywords": [
6
6
  "cgi-learning-hub",