@commercetools-frontend/experimental-components 0.0.3 → 0.1.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/dist/styles.css CHANGED
@@ -149,6 +149,11 @@
149
149
  .required-indicator-module__colored____YUFm {
150
150
  color: var(--color-warning);
151
151
  }
152
+
153
+ .required-indicator-module__indicatorAsterisk___3lEdX {
154
+ font-style: normal;
155
+ margin-left: 2px;
156
+ }
152
157
  /* imported from selectable-field-search-input.module.css */
153
158
 
154
159
  .selectable-field-search-input-module__container___z2ltR {
@@ -223,11 +228,6 @@
223
228
  .checkbox-field-module__custom-check___3uPdz:hover.checkbox-field-module__disabled___1HVC5 .checkbox-field-module__check-element___3wMNq {
224
229
  background-position: 0 0 !important;
225
230
  }
226
- /* imported from expandable-field.module.css */
227
-
228
- .expandable-field-module__expandable-field___1obGc {
229
- /* @TODO: Investigate what this is */
230
- }
231
231
  /* imported from label-range.module.css */
232
232
 
233
233
  .label-range-module__label___3Tb0p {
@@ -670,6 +670,15 @@
670
670
  }
671
671
  /* imported from divider.module.css */
672
672
 
673
+ html[data-theme='test'] {
674
+ --border-top-color-for-divider-size-m: var(--color-neutral-90);
675
+ --border-top-color-for-divider-size-s: var(--color-neutral-90);
676
+ }
677
+ html[data-theme='default'] {
678
+ --border-top-color-for-divider-size-m: var(--color-neutral-60);
679
+ --border-top-color-for-divider-size-s: var(--color-neutral);
680
+ }
681
+
673
682
  .divider-module__divider___4-vdy {
674
683
  box-sizing: border-box;
675
684
  width: 100%;
@@ -687,11 +696,11 @@
687
696
  }
688
697
 
689
698
  .divider-module__size_s___3aoIW {
690
- border-top-color: var(--color-neutral);
699
+ border-top-color: var(--border-top-color-for-divider-size-s);
691
700
  }
692
701
 
693
702
  .divider-module__size_m___LM34Z {
694
- border-top-color: var(--color-neutral-60);
703
+ border-top-color: var(--border-top-color-for-divider-size-m);
695
704
  }
696
705
  /* imported from reference-search.module.css */
697
706
 
@@ -996,296 +1005,6 @@
996
1005
  .tooltip-module__container-left___YePF0 {
997
1006
  transform: translateX(-100%) translateX(-10px) translateY(-6px);
998
1007
  }
999
- /* imported from localized-field.module.css */
1000
-
1001
- :root {
1002
- --width-locale-modal-selector: 80px;
1003
-
1004
- /* Left navigation */
1005
- --width-leftNavigation: 64px;
1006
- }
1007
-
1008
- .localized-field-module__fields___2pYgl {
1009
- width: 100%;
1010
- float: none;
1011
- clear: both;
1012
- }
1013
-
1014
- .localized-field-module__fields___2pYgl::after {
1015
- clear: both;
1016
- content: ' ';
1017
- display: block;
1018
- }
1019
-
1020
- .localized-field-module__input-text___19OTB {
1021
- transition: all 0.2s ease;
1022
- width: calc(100% - 90px);
1023
- margin: 0;
1024
- min-height: 36px;
1025
- overflow: hidden;
1026
- }
1027
-
1028
- .localized-field-module__all-locales___3xnTj {
1029
- transition: 0.2s ease;
1030
- background: var(--color-neutral-95);
1031
- border-radius: 6px;
1032
- border: 1px var(--color-neutral-60) solid;
1033
- bottom: 0;
1034
- cursor: pointer;
1035
- max-width: var(--width-locale-modal-selector);
1036
- text-align: center;
1037
- margin-left: var(--spacing-s);
1038
- }
1039
-
1040
- /* States */
1041
-
1042
- .localized-field-module__all-locales___3xnTj:hover {
1043
- background: var(--color-primary);
1044
- }
1045
-
1046
- .localized-field-module__all-locales___3xnTj:hover .localized-field-module__current-locale___1OAvW,
1047
- .localized-field-module__all-locales___3xnTj:hover .localized-field-module__available-locales___1LL64 {
1048
- color: var(--color-surface) !important;
1049
- }
1050
-
1051
- .localized-field-module__counter___M4crF {
1052
- color: var(--color-surface) !important;
1053
- }
1054
-
1055
- .localized-field-module__locale___1f9h9 {
1056
- background: var(--color-neutral-95);
1057
- color: var(--color-neutral-60);
1058
- border: 1px var(--color-neutral-60) solid;
1059
- border-radius: var(--border-radius-4);
1060
- display: inline-block;
1061
- font-size: 0.923rem;
1062
- margin-left: var(--spacing-s);
1063
- min-width: 70px;
1064
- padding: var(--spacing-s);
1065
- text-align: center;
1066
- text-transform: uppercase;
1067
- width: auto;
1068
- bottom: 0;
1069
- right: 0;
1070
- }
1071
-
1072
- .localized-field-module__locale-modal___1hp7U {
1073
- margin: 0 var(--spacing-s);
1074
- position: relative;
1075
- }
1076
-
1077
- .localized-field-module__text-area___2CkYY ~ .localized-field-module__locale___1f9h9 {
1078
- bottom: 5px;
1079
- height: 40px;
1080
- position: absolute;
1081
- top: inherit;
1082
- }
1083
-
1084
- .localized-field-module__container___4wHqe {
1085
- position: relative;
1086
- display: flex;
1087
- flex-direction: row;
1088
- align-items: flex-end;
1089
- width: 100%;
1090
- }
1091
-
1092
- .localized-field-module__container-expandable___LX72x {
1093
- align-items: flex-start;
1094
- }
1095
-
1096
- .localized-field-module__container___4wHqe > .localized-field-module__left-cell___YWB1o {
1097
- flex-grow: 1;
1098
- }
1099
-
1100
- .localized-field-module__container___4wHqe > .localized-field-module__left-cell___YWB1o.localized-field-module__set-width___3BitN {
1101
- flex-grow: 0;
1102
- width: 50%;
1103
- }
1104
-
1105
- .localized-field-module__container___4wHqe > .localized-field-module__right-cell___1ziDs {
1106
- flex-grow: 0;
1107
- }
1108
-
1109
- .localized-field-module__current-locale___1OAvW {
1110
- border-bottom: 1px var(--color-neutral-60) dashed;
1111
- color: var(--color-neutral-60);
1112
- display: inline-block;
1113
- padding: 2px 0;
1114
- transition: all 0.2s linear;
1115
- width: 100%;
1116
- }
1117
-
1118
- .localized-field-module__available-locales___1LL64 {
1119
- color: var(--color-primary-25);
1120
- display: inline-block;
1121
- padding: 2px 0;
1122
- transition: all 0.2s linear;
1123
- width: 60px;
1124
- }
1125
-
1126
- .localized-field-module__field___193NR {
1127
- clear: both;
1128
- position: relative;
1129
- width: 100%;
1130
- }
1131
-
1132
- .localized-field-module__field___193NR::after {
1133
- clear: both;
1134
- content: ' ';
1135
- display: block;
1136
- }
1137
-
1138
- /* with Modal */
1139
-
1140
- .localized-field-module__container-modal___9rZ1j {
1141
- margin-top: var(--spacing-m);
1142
- width: 100%;
1143
- display: flex;
1144
- flex-direction: row;
1145
- }
1146
-
1147
- .localized-field-module__expandable-field-modal___4P_Bs {
1148
- float: left;
1149
- width: 100%;
1150
- }
1151
-
1152
- .localized-field-module__textarea-modal___2BZTl {
1153
- width: 100%;
1154
- }
1155
-
1156
- .localized-field-module__edit-modal-form___1JH5t {
1157
- height: 100%;
1158
- overflow: auto;
1159
- padding: 40px;
1160
- padding-top: 20px;
1161
- background-color: var(--color-surface);
1162
- }
1163
-
1164
- .localized-field-module__field-modal-search___1pmvd {
1165
- float: left;
1166
- width: 100% !important;
1167
- }
1168
-
1169
- .localized-field-module__locale-modal-search___3fdr9 {
1170
- float: left;
1171
- width: 100%;
1172
- }
1173
-
1174
- .localized-field-module__input-text___19OTB {
1175
- transition: 0.2s ease;
1176
- border-radius: 6px;
1177
- border-style: solid;
1178
- border-width: 1px;
1179
- color: var(--color-solid);
1180
- font-weight: 500;
1181
- font-size: 1rem;
1182
- font-family: 'Open Sans', sans-serif !important;
1183
- padding: 7.5px 10px;
1184
- outline: none;
1185
- box-shadow: none;
1186
- appearance: none;
1187
- }
1188
-
1189
- .localized-field-module__input___2wG41 {
1190
- background-color: var(--color-neutral-95);
1191
- border-color: var(--color-surface);
1192
- width: 100%;
1193
- }
1194
-
1195
- .localized-field-module__transition-modal-overlay___1Rzbn {
1196
- display: flex;
1197
- position: absolute;
1198
- top: 0;
1199
- width: 100%;
1200
- height: 100%;
1201
- background-color: rgba(32, 62, 72, 0.5);
1202
- z-index: 2000;
1203
- }
1204
-
1205
- .localized-field-module__transition-modal-content___3TZ0q {
1206
- padding: 0;
1207
- border-radius: 0;
1208
- background: var(--color-surface);
1209
- overflow: auto;
1210
- -webkit-overflow-scrolling: touch;
1211
- outline: none;
1212
- height: 100%; /* hack for safari */
1213
- transition: left 150ms ease-out;
1214
- left: 100%;
1215
- }
1216
-
1217
- .localized-field-module__second-layer___37wlq {
1218
- /* Needed for showing a bit of
1219
- the background when there's an overlay */
1220
- width: calc(100% - var(--width-leftNavigation));
1221
- margin-left: auto;
1222
- }
1223
-
1224
- .localized-field-module__third-layer___2QOn9 {
1225
- /* Needed for showing a bit of
1226
- the background & the first overlay
1227
- when there's a second layer overlay */
1228
- width: calc(100% - var(--width-leftNavigation) - var(--width-leftNavigation));
1229
- margin-left: auto;
1230
- }
1231
-
1232
- .localized-field-module__push-right___KDu9r {
1233
- float: right;
1234
- }
1235
-
1236
- .localized-field-module__field-modal___28xSG {
1237
- /* this is here so the unit tests work */
1238
- }
1239
-
1240
- @media screen and (--screen-max-desktop) {
1241
- .localized-field-module__field-modal___28xSG {
1242
- width: 80%;
1243
- }
1244
- }
1245
-
1246
- @media screen and (--screen-min-desktop) {
1247
- .localized-field-module__field-modal___28xSG {
1248
- clear: none;
1249
- float: left;
1250
- width: 50%;
1251
- }
1252
-
1253
- .localized-field-module__field-modal___28xSG:nth-of-type(2n + 1) {
1254
- clear: both;
1255
- }
1256
- }
1257
-
1258
- /* Bigger screens */
1259
-
1260
- @media screen and (--screen-min-giantdesktop) {
1261
- .localized-field-module__field-modal___28xSG {
1262
- width: 33.33%;
1263
- }
1264
-
1265
- .localized-field-module__field-modal___28xSG:nth-of-type(2n + 1),
1266
- .localized-field-module__field-modal___28xSG:first-of-type {
1267
- clear: none;
1268
- }
1269
-
1270
- .localized-field-module__field-modal___28xSG:nth-of-type(3n + 1) {
1271
- clear: both;
1272
- }
1273
- }
1274
-
1275
- .localized-field-module__warning___HguI1 {
1276
- padding: 6px;
1277
- border-radius: 5px;
1278
- min-width: 100px;
1279
- vertical-align: middle;
1280
- font-size: 0.857rem;
1281
- background-color: var(--color-warning-95);
1282
- border: solid 1px var(--color-warning);
1283
- box-shadow: none;
1284
- }
1285
-
1286
- .localized-field-module__container-tooltip___2h2P4 {
1287
- align-self: flex-start;
1288
- }
1289
1008
  /* imported from button-close.module.css */
1290
1009
 
1291
1010
  .button-close-module__button-close-container___1uz2S {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/experimental-components",
3
- "version": "0.0.3",
3
+ "version": "0.1.1",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -13,20 +13,19 @@
13
13
  "README.md"
14
14
  ],
15
15
  "dependencies": {
16
- "@apollo/client": "3.7.2",
17
16
  "@babel/runtime": "^7.19.0",
18
17
  "@babel/runtime-corejs3": "^7.19.0",
19
- "@commercetools-frontend/actions-global": "21.21.0",
20
- "@commercetools-frontend/application-components": "21.21.0",
21
- "@commercetools-frontend/application-shell": "21.21.0",
22
- "@commercetools-frontend/application-shell-connectors": "21.21.0",
23
- "@commercetools-frontend/constants": "21.21.0",
24
- "@commercetools-frontend/l10n": "21.21.0",
25
- "@commercetools-frontend/sdk": "21.21.0",
26
- "@commercetools-frontend/sentry": "21.21.0",
27
- "@commercetools-frontend/ui-kit": "15.6.0",
28
- "@commercetools-uikit/select-utils": "15.6.0",
29
- "@commercetools-uikit/utils": "15.6.0",
18
+ "@commercetools-frontend/actions-global": "21.23.2",
19
+ "@commercetools-frontend/application-components": "21.23.2",
20
+ "@commercetools-frontend/application-shell": "21.23.2",
21
+ "@commercetools-frontend/application-shell-connectors": "21.23.2",
22
+ "@commercetools-frontend/constants": "21.23.2",
23
+ "@commercetools-frontend/l10n": "21.23.2",
24
+ "@commercetools-frontend/sdk": "21.23.2",
25
+ "@commercetools-frontend/sentry": "21.23.2",
26
+ "@commercetools-frontend/ui-kit": "15.9.0",
27
+ "@commercetools-uikit/select-utils": "15.9.0",
28
+ "@commercetools-uikit/utils": "15.9.0",
30
29
  "@emotion/react": "11.10.5",
31
30
  "classnames": "2.3.2",
32
31
  "cleave.js": "1.5.10",
@@ -58,17 +57,13 @@
58
57
  "lodash.uniqby": "4.7.0",
59
58
  "memoize-one": "6.0.0",
60
59
  "moment": "2.29.4",
61
- "moment-timezone": "0.5.39",
60
+ "moment-timezone": "0.5.40",
62
61
  "msw": "^0.49.0",
63
62
  "omit-deep": "0.3.0",
64
63
  "omit-empty-es": "1.1.3",
65
64
  "prop-types": "15.8.1",
66
- "react": "17.0.2",
67
- "react-intl": "5.25.1",
68
65
  "react-modal": "3.16.1",
69
- "react-redux": "7.2.9",
70
66
  "react-required-if": "1.0.3",
71
- "react-router-dom": "5.3.4",
72
67
  "react-textarea-autosize": "8.4.0",
73
68
  "reselect": "4.1.7",
74
69
  "tiny-invariant": "1.3.1",
@@ -76,17 +71,29 @@
76
71
  "uuid": "8.3.2"
77
72
  },
78
73
  "devDependencies": {
74
+ "@apollo/client": "3.7.4",
79
75
  "@commercetools-local/test-data": "workspace:*",
80
76
  "@commercetools-local/test-utils": "workspace:*",
81
- "@commercetools-test-data/channel": "4.1.1",
82
- "@commercetools-test-data/commons": "4.1.1",
83
- "@commercetools-test-data/core": "4.1.1",
77
+ "@commercetools-test-data/channel": "4.3.0",
78
+ "@commercetools-test-data/commons": "4.3.0",
79
+ "@commercetools-test-data/core": "4.3.0",
84
80
  "@testing-library/react": "12.1.5",
85
81
  "@testing-library/react-hooks": "8.0.1",
86
82
  "enzyme": "3.11.0",
87
83
  "graphql-tag": "2.12.6",
88
- "msw": "0.49.1",
84
+ "msw": "0.49.3",
85
+ "react": "17.0.2",
86
+ "react-intl": "5.25.1",
87
+ "react-redux": "7.2.9",
88
+ "react-router-dom": "5.3.4",
89
89
  "react-test-renderer": "17.0.2",
90
90
  "xhr-mock": "2.5.1"
91
+ },
92
+ "peerDependencies": {
93
+ "@apollo/client": "3.x",
94
+ "react": "17.x",
95
+ "react-intl": "5.x",
96
+ "react-redux": "7.x",
97
+ "react-router-dom": "5.x"
91
98
  }
92
99
  }