@carbonorm/carbonreact 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compileValidSQL.tsx +1 -1
- package/dist/CarbonReact.d.ts +4 -1
- package/dist/api/hoc/useEffectOnce.d.ts +1 -0
- package/dist/components/Alert/Alert.d.ts +1 -1
- package/dist/components/WebSocket/CarbonWebSocket.d.ts +9 -0
- package/dist/index.cjs.css +45 -40
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +233 -66
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.css +45 -40
- package/dist/index.esm.css.map +1 -1
- package/dist/index.esm.js +231 -68
- package/dist/index.esm.js.map +1 -1
- package/package.json +4 -2
- package/src/CarbonReact.tsx +15 -2
- package/src/api/hoc/useEffectOnce.tsx +33 -0
- package/src/components/Alert/Alert.tsx +11 -12
- package/src/components/WebSocket/CarbonWebSocket.tsx +181 -0
- package/src/index.ts +3 -0
- package/src/variables/bootstrap.module.css +45 -40
- package/src/variables/bootstrap.module.css.map +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export { default as CarbonReact } from "./CarbonReact";
|
|
5
5
|
export * from "./CarbonReact";
|
|
6
|
+
export * from "./api/hoc/useEffectOnce";
|
|
6
7
|
export { default as Alert } from "./components/Alert/Alert";
|
|
7
8
|
export * from "./components/Alert/Alert";
|
|
8
9
|
export { default as AccessDenied } from "./components/Errors/AccessDenied";
|
|
@@ -19,6 +20,8 @@ export { default as Nest } from "./components/Nest/Nest";
|
|
|
19
20
|
export * from "./components/Nest/Nest";
|
|
20
21
|
export { default as Popup } from "./components/Popup/Popup";
|
|
21
22
|
export * from "./components/Popup/Popup";
|
|
23
|
+
export { default as CarbonWebSocket } from "./components/WebSocket/CarbonWebSocket";
|
|
24
|
+
export * from "./components/WebSocket/CarbonWebSocket";
|
|
22
25
|
export * from "./hoc/GlobalHistory";
|
|
23
26
|
export * from "./hoc/KeysMatching";
|
|
24
27
|
export { default as addValidSQL } from "./hoc/addValidSQL";
|
package/dist/index.esm.css
CHANGED
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
**/
|
|
117
117
|
/* override the !default vars with the values we set above */
|
|
118
118
|
/*!
|
|
119
|
-
* Bootstrap v5.3.
|
|
119
|
+
* Bootstrap v5.3.2 (https://getbootstrap.com/)
|
|
120
120
|
* Copyright 2011-2023 The Bootstrap Authors
|
|
121
121
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
122
122
|
*/
|
|
@@ -215,6 +215,7 @@
|
|
|
215
215
|
--bs-link-hover-color: #0a58ca;
|
|
216
216
|
--bs-link-hover-color-rgb: 10, 88, 202;
|
|
217
217
|
--bs-code-color: #d63384;
|
|
218
|
+
--bs-highlight-color: #212529;
|
|
218
219
|
--bs-highlight-bg: #fff3cd;
|
|
219
220
|
--bs-border-width: 1px;
|
|
220
221
|
--bs-border-style: solid;
|
|
@@ -286,6 +287,8 @@
|
|
|
286
287
|
--bs-link-color-rgb: 110, 168, 254;
|
|
287
288
|
--bs-link-hover-color-rgb: 139, 185, 254;
|
|
288
289
|
--bs-code-color: #e685b5;
|
|
290
|
+
--bs-highlight-color: #dee2e6;
|
|
291
|
+
--bs-highlight-bg: #664d03;
|
|
289
292
|
--bs-border-color: #495057;
|
|
290
293
|
--bs-border-color-translucent: rgba(255, 255, 255, 0.15);
|
|
291
294
|
--bs-form-valid-color: #75b798;
|
|
@@ -441,6 +444,7 @@ small, .-PV1l0j {
|
|
|
441
444
|
|
|
442
445
|
mark, .VzffaFg {
|
|
443
446
|
padding: 0.1875em;
|
|
447
|
+
color: var(--bs-highlight-color);
|
|
444
448
|
background-color: var(--bs-highlight-bg);
|
|
445
449
|
}
|
|
446
450
|
|
|
@@ -942,7 +946,7 @@ progress {
|
|
|
942
946
|
|
|
943
947
|
.xg81Q5- > * {
|
|
944
948
|
flex: 0 0 auto;
|
|
945
|
-
width: 33.
|
|
949
|
+
width: 33.33333333%;
|
|
946
950
|
}
|
|
947
951
|
|
|
948
952
|
._6NJACWz > * {
|
|
@@ -957,7 +961,7 @@ progress {
|
|
|
957
961
|
|
|
958
962
|
.od1x71k > * {
|
|
959
963
|
flex: 0 0 auto;
|
|
960
|
-
width: 16.
|
|
964
|
+
width: 16.66666667%;
|
|
961
965
|
}
|
|
962
966
|
|
|
963
967
|
.qPkVmm3 {
|
|
@@ -1147,7 +1151,7 @@ progress {
|
|
|
1147
1151
|
}
|
|
1148
1152
|
.JGJNK5d > * {
|
|
1149
1153
|
flex: 0 0 auto;
|
|
1150
|
-
width: 33.
|
|
1154
|
+
width: 33.33333333%;
|
|
1151
1155
|
}
|
|
1152
1156
|
.glJhMBW > * {
|
|
1153
1157
|
flex: 0 0 auto;
|
|
@@ -1159,7 +1163,7 @@ progress {
|
|
|
1159
1163
|
}
|
|
1160
1164
|
.bT-520U > * {
|
|
1161
1165
|
flex: 0 0 auto;
|
|
1162
|
-
width: 16.
|
|
1166
|
+
width: 16.66666667%;
|
|
1163
1167
|
}
|
|
1164
1168
|
.A2VOsta {
|
|
1165
1169
|
flex: 0 0 auto;
|
|
@@ -1316,7 +1320,7 @@ progress {
|
|
|
1316
1320
|
}
|
|
1317
1321
|
.apWPOHd > * {
|
|
1318
1322
|
flex: 0 0 auto;
|
|
1319
|
-
width: 33.
|
|
1323
|
+
width: 33.33333333%;
|
|
1320
1324
|
}
|
|
1321
1325
|
._7MQ--qk > * {
|
|
1322
1326
|
flex: 0 0 auto;
|
|
@@ -1328,7 +1332,7 @@ progress {
|
|
|
1328
1332
|
}
|
|
1329
1333
|
.OYkfCQx > * {
|
|
1330
1334
|
flex: 0 0 auto;
|
|
1331
|
-
width: 16.
|
|
1335
|
+
width: 16.66666667%;
|
|
1332
1336
|
}
|
|
1333
1337
|
.OgyOkYP {
|
|
1334
1338
|
flex: 0 0 auto;
|
|
@@ -1485,7 +1489,7 @@ progress {
|
|
|
1485
1489
|
}
|
|
1486
1490
|
.sYncP5k > * {
|
|
1487
1491
|
flex: 0 0 auto;
|
|
1488
|
-
width: 33.
|
|
1492
|
+
width: 33.33333333%;
|
|
1489
1493
|
}
|
|
1490
1494
|
.v1atoVQ > * {
|
|
1491
1495
|
flex: 0 0 auto;
|
|
@@ -1497,7 +1501,7 @@ progress {
|
|
|
1497
1501
|
}
|
|
1498
1502
|
.qdIc42H > * {
|
|
1499
1503
|
flex: 0 0 auto;
|
|
1500
|
-
width: 16.
|
|
1504
|
+
width: 16.66666667%;
|
|
1501
1505
|
}
|
|
1502
1506
|
.ARv1heL {
|
|
1503
1507
|
flex: 0 0 auto;
|
|
@@ -1654,7 +1658,7 @@ progress {
|
|
|
1654
1658
|
}
|
|
1655
1659
|
.nsNb0mB > * {
|
|
1656
1660
|
flex: 0 0 auto;
|
|
1657
|
-
width: 33.
|
|
1661
|
+
width: 33.33333333%;
|
|
1658
1662
|
}
|
|
1659
1663
|
.e7S9U10 > * {
|
|
1660
1664
|
flex: 0 0 auto;
|
|
@@ -1666,7 +1670,7 @@ progress {
|
|
|
1666
1670
|
}
|
|
1667
1671
|
._4EsFFoT > * {
|
|
1668
1672
|
flex: 0 0 auto;
|
|
1669
|
-
width: 16.
|
|
1673
|
+
width: 16.66666667%;
|
|
1670
1674
|
}
|
|
1671
1675
|
._6PVe5iT {
|
|
1672
1676
|
flex: 0 0 auto;
|
|
@@ -1823,7 +1827,7 @@ progress {
|
|
|
1823
1827
|
}
|
|
1824
1828
|
.USiZV4r > * {
|
|
1825
1829
|
flex: 0 0 auto;
|
|
1826
|
-
width: 33.
|
|
1830
|
+
width: 33.33333333%;
|
|
1827
1831
|
}
|
|
1828
1832
|
.LC7nM77 > * {
|
|
1829
1833
|
flex: 0 0 auto;
|
|
@@ -1835,7 +1839,7 @@ progress {
|
|
|
1835
1839
|
}
|
|
1836
1840
|
.MG-om-O > * {
|
|
1837
1841
|
flex: 0 0 auto;
|
|
1838
|
-
width: 16.
|
|
1842
|
+
width: 16.66666667%;
|
|
1839
1843
|
}
|
|
1840
1844
|
.iRiRmIr {
|
|
1841
1845
|
flex: 0 0 auto;
|
|
@@ -1992,7 +1996,7 @@ progress {
|
|
|
1992
1996
|
}
|
|
1993
1997
|
.Ou2gyOt > * {
|
|
1994
1998
|
flex: 0 0 auto;
|
|
1995
|
-
width: 33.
|
|
1999
|
+
width: 33.33333333%;
|
|
1996
2000
|
}
|
|
1997
2001
|
.nSK0M-n > * {
|
|
1998
2002
|
flex: 0 0 auto;
|
|
@@ -2004,7 +2008,7 @@ progress {
|
|
|
2004
2008
|
}
|
|
2005
2009
|
._5c77K8L > * {
|
|
2006
2010
|
flex: 0 0 auto;
|
|
2007
|
-
width: 16.
|
|
2011
|
+
width: 16.66666667%;
|
|
2008
2012
|
}
|
|
2009
2013
|
.qO85rwt {
|
|
2010
2014
|
flex: 0 0 auto;
|
|
@@ -2148,16 +2152,16 @@ progress {
|
|
|
2148
2152
|
--bs-table-bg-type: initial;
|
|
2149
2153
|
--bs-table-color-state: initial;
|
|
2150
2154
|
--bs-table-bg-state: initial;
|
|
2151
|
-
--bs-table-color: var(--bs-
|
|
2155
|
+
--bs-table-color: var(--bs-emphasis-color);
|
|
2152
2156
|
--bs-table-bg: var(--bs-body-bg);
|
|
2153
2157
|
--bs-table-border-color: var(--bs-border-color);
|
|
2154
2158
|
--bs-table-accent-bg: transparent;
|
|
2155
|
-
--bs-table-striped-color: var(--bs-
|
|
2156
|
-
--bs-table-striped-bg: rgba(
|
|
2157
|
-
--bs-table-active-color: var(--bs-
|
|
2158
|
-
--bs-table-active-bg: rgba(
|
|
2159
|
-
--bs-table-hover-color: var(--bs-
|
|
2160
|
-
--bs-table-hover-bg: rgba(
|
|
2159
|
+
--bs-table-striped-color: var(--bs-emphasis-color);
|
|
2160
|
+
--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), 0.05);
|
|
2161
|
+
--bs-table-active-color: var(--bs-emphasis-color);
|
|
2162
|
+
--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), 0.1);
|
|
2163
|
+
--bs-table-hover-color: var(--bs-emphasis-color);
|
|
2164
|
+
--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), 0.075);
|
|
2161
2165
|
width: 100%;
|
|
2162
2166
|
margin-bottom: 1rem;
|
|
2163
2167
|
vertical-align: top;
|
|
@@ -2226,7 +2230,7 @@ progress {
|
|
|
2226
2230
|
.WvKWFRQ {
|
|
2227
2231
|
--bs-table-color: #000;
|
|
2228
2232
|
--bs-table-bg: #cfe2ff;
|
|
2229
|
-
--bs-table-border-color: #
|
|
2233
|
+
--bs-table-border-color: #a6b5cc;
|
|
2230
2234
|
--bs-table-striped-bg: #c5d7f2;
|
|
2231
2235
|
--bs-table-striped-color: #000;
|
|
2232
2236
|
--bs-table-active-bg: #bacbe6;
|
|
@@ -2240,7 +2244,7 @@ progress {
|
|
|
2240
2244
|
.-WbhEsQ {
|
|
2241
2245
|
--bs-table-color: #000;
|
|
2242
2246
|
--bs-table-bg: #e2e3e5;
|
|
2243
|
-
--bs-table-border-color: #
|
|
2247
|
+
--bs-table-border-color: #b5b6b7;
|
|
2244
2248
|
--bs-table-striped-bg: #d7d8da;
|
|
2245
2249
|
--bs-table-striped-color: #000;
|
|
2246
2250
|
--bs-table-active-bg: #cbccce;
|
|
@@ -2254,7 +2258,7 @@ progress {
|
|
|
2254
2258
|
.xXiGHTn {
|
|
2255
2259
|
--bs-table-color: #000;
|
|
2256
2260
|
--bs-table-bg: #d1e7dd;
|
|
2257
|
-
--bs-table-border-color: #
|
|
2261
|
+
--bs-table-border-color: #a7b9b1;
|
|
2258
2262
|
--bs-table-striped-bg: #c7dbd2;
|
|
2259
2263
|
--bs-table-striped-color: #000;
|
|
2260
2264
|
--bs-table-active-bg: #bcd0c7;
|
|
@@ -2268,7 +2272,7 @@ progress {
|
|
|
2268
2272
|
.ZVODab3 {
|
|
2269
2273
|
--bs-table-color: #000;
|
|
2270
2274
|
--bs-table-bg: #cff4fc;
|
|
2271
|
-
--bs-table-border-color: #
|
|
2275
|
+
--bs-table-border-color: #a6c3ca;
|
|
2272
2276
|
--bs-table-striped-bg: #c5e8ef;
|
|
2273
2277
|
--bs-table-striped-color: #000;
|
|
2274
2278
|
--bs-table-active-bg: #badce3;
|
|
@@ -2282,7 +2286,7 @@ progress {
|
|
|
2282
2286
|
.inmIIoc {
|
|
2283
2287
|
--bs-table-color: #000;
|
|
2284
2288
|
--bs-table-bg: #fff3cd;
|
|
2285
|
-
--bs-table-border-color: #
|
|
2289
|
+
--bs-table-border-color: #ccc2a4;
|
|
2286
2290
|
--bs-table-striped-bg: #f2e7c3;
|
|
2287
2291
|
--bs-table-striped-color: #000;
|
|
2288
2292
|
--bs-table-active-bg: #e6dbb9;
|
|
@@ -2296,7 +2300,7 @@ progress {
|
|
|
2296
2300
|
.zCQpCdD {
|
|
2297
2301
|
--bs-table-color: #000;
|
|
2298
2302
|
--bs-table-bg: #f8d7da;
|
|
2299
|
-
--bs-table-border-color: #
|
|
2303
|
+
--bs-table-border-color: #c6acae;
|
|
2300
2304
|
--bs-table-striped-bg: #eccccf;
|
|
2301
2305
|
--bs-table-striped-color: #000;
|
|
2302
2306
|
--bs-table-active-bg: #dfc2c4;
|
|
@@ -2310,7 +2314,7 @@ progress {
|
|
|
2310
2314
|
.-sb0H3L {
|
|
2311
2315
|
--bs-table-color: #000;
|
|
2312
2316
|
--bs-table-bg: #f8f9fa;
|
|
2313
|
-
--bs-table-border-color: #
|
|
2317
|
+
--bs-table-border-color: #c6c7c8;
|
|
2314
2318
|
--bs-table-striped-bg: #ecedee;
|
|
2315
2319
|
--bs-table-striped-color: #000;
|
|
2316
2320
|
--bs-table-active-bg: #dfe0e1;
|
|
@@ -2324,7 +2328,7 @@ progress {
|
|
|
2324
2328
|
.NYnwdK6 {
|
|
2325
2329
|
--bs-table-color: #fff;
|
|
2326
2330
|
--bs-table-bg: #212529;
|
|
2327
|
-
--bs-table-border-color: #
|
|
2331
|
+
--bs-table-border-color: #4d5154;
|
|
2328
2332
|
--bs-table-striped-bg: #2c3034;
|
|
2329
2333
|
--bs-table-striped-color: #fff;
|
|
2330
2334
|
--bs-table-active-bg: #373b3e;
|
|
@@ -2648,6 +2652,7 @@ textarea.Qfp5feW {
|
|
|
2648
2652
|
|
|
2649
2653
|
.d7dZZ7e {
|
|
2650
2654
|
--bs-form-check-bg: var(--bs-body-bg);
|
|
2655
|
+
flex-shrink: 0;
|
|
2651
2656
|
width: 1em;
|
|
2652
2657
|
height: 1em;
|
|
2653
2658
|
margin-top: 0.25em;
|
|
@@ -2803,7 +2808,7 @@ textarea.Qfp5feW {
|
|
|
2803
2808
|
height: 0.5rem;
|
|
2804
2809
|
color: transparent;
|
|
2805
2810
|
cursor: pointer;
|
|
2806
|
-
background-color: var(--bs-
|
|
2811
|
+
background-color: var(--bs-secondary-bg);
|
|
2807
2812
|
border-color: transparent;
|
|
2808
2813
|
border-radius: 1rem;
|
|
2809
2814
|
}
|
|
@@ -2832,7 +2837,7 @@ textarea.Qfp5feW {
|
|
|
2832
2837
|
height: 0.5rem;
|
|
2833
2838
|
color: transparent;
|
|
2834
2839
|
cursor: pointer;
|
|
2835
|
-
background-color: var(--bs-
|
|
2840
|
+
background-color: var(--bs-secondary-bg);
|
|
2836
2841
|
border-color: transparent;
|
|
2837
2842
|
border-radius: 1rem;
|
|
2838
2843
|
}
|
|
@@ -3690,7 +3695,7 @@ textarea.Qfp5feW {
|
|
|
3690
3695
|
--bs-dropdown-inner-border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));
|
|
3691
3696
|
--bs-dropdown-divider-bg: var(--bs-border-color-translucent);
|
|
3692
3697
|
--bs-dropdown-divider-margin-y: 0.5rem;
|
|
3693
|
-
--bs-dropdown-box-shadow:
|
|
3698
|
+
--bs-dropdown-box-shadow: var(--bs-box-shadow);
|
|
3694
3699
|
--bs-dropdown-link-color: var(--bs-body-color);
|
|
3695
3700
|
--bs-dropdown-link-hover-color: var(--bs-body-color);
|
|
3696
3701
|
--bs-dropdown-link-hover-bg: var(--bs-tertiary-bg);
|
|
@@ -5820,7 +5825,7 @@ textarea.Qfp5feW {
|
|
|
5820
5825
|
--bs-modal-border-color: var(--bs-border-color-translucent);
|
|
5821
5826
|
--bs-modal-border-width: var(--bs-border-width);
|
|
5822
5827
|
--bs-modal-border-radius: var(--bs-border-radius-lg);
|
|
5823
|
-
--bs-modal-box-shadow:
|
|
5828
|
+
--bs-modal-box-shadow: var(--bs-box-shadow-sm);
|
|
5824
5829
|
--bs-modal-inner-border-radius: calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));
|
|
5825
5830
|
--bs-modal-header-padding-x: 1rem;
|
|
5826
5831
|
--bs-modal-header-padding-y: 1rem;
|
|
@@ -5961,7 +5966,7 @@ textarea.Qfp5feW {
|
|
|
5961
5966
|
@media (min-width: 576px) {
|
|
5962
5967
|
.b9Z4Jf- {
|
|
5963
5968
|
--bs-modal-margin: 1.75rem;
|
|
5964
|
-
--bs-modal-box-shadow:
|
|
5969
|
+
--bs-modal-box-shadow: var(--bs-box-shadow);
|
|
5965
5970
|
}
|
|
5966
5971
|
._4wH6vpb {
|
|
5967
5972
|
max-width: var(--bs-modal-width);
|
|
@@ -6233,7 +6238,7 @@ textarea.Qfp5feW {
|
|
|
6233
6238
|
--bs-popover-border-color: var(--bs-border-color-translucent);
|
|
6234
6239
|
--bs-popover-border-radius: var(--bs-border-radius-lg);
|
|
6235
6240
|
--bs-popover-inner-border-radius: calc(var(--bs-border-radius-lg) - var(--bs-border-width));
|
|
6236
|
-
--bs-popover-box-shadow:
|
|
6241
|
+
--bs-popover-box-shadow: var(--bs-box-shadow);
|
|
6237
6242
|
--bs-popover-header-padding-x: 1rem;
|
|
6238
6243
|
--bs-popover-header-padding-y: 0.5rem;
|
|
6239
6244
|
--bs-popover-header-font-size: 1rem;
|
|
@@ -6667,7 +6672,7 @@ textarea.Qfp5feW {
|
|
|
6667
6672
|
--bs-offcanvas-bg: var(--bs-body-bg);
|
|
6668
6673
|
--bs-offcanvas-border-width: var(--bs-border-width);
|
|
6669
6674
|
--bs-offcanvas-border-color: var(--bs-border-color-translucent);
|
|
6670
|
-
--bs-offcanvas-box-shadow:
|
|
6675
|
+
--bs-offcanvas-box-shadow: var(--bs-box-shadow-sm);
|
|
6671
6676
|
--bs-offcanvas-transition: transform 0.3s ease-in-out;
|
|
6672
6677
|
--bs-offcanvas-title-line-height: 1.5;
|
|
6673
6678
|
}
|
|
@@ -7804,15 +7809,15 @@ textarea.Qfp5feW {
|
|
|
7804
7809
|
}
|
|
7805
7810
|
|
|
7806
7811
|
.lVQefz8 {
|
|
7807
|
-
box-shadow:
|
|
7812
|
+
box-shadow: var(--bs-box-shadow) !important;
|
|
7808
7813
|
}
|
|
7809
7814
|
|
|
7810
7815
|
.-BotraB {
|
|
7811
|
-
box-shadow:
|
|
7816
|
+
box-shadow: var(--bs-box-shadow-sm) !important;
|
|
7812
7817
|
}
|
|
7813
7818
|
|
|
7814
7819
|
.alPlu9O {
|
|
7815
|
-
box-shadow:
|
|
7820
|
+
box-shadow: var(--bs-box-shadow-lg) !important;
|
|
7816
7821
|
}
|
|
7817
7822
|
|
|
7818
7823
|
.LuXpHKX {
|