@gomusdev/web-components 2.1.1 → 3.0.0-next.2

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.
Files changed (28) hide show
  1. package/README.md +942 -12
  2. package/dist-js/components/cart/components/CartCoupons.svelte.d.ts +1 -0
  3. package/dist-js/components/cart/components/CartDiscountedAmount.svelte.d.ts +1 -0
  4. package/dist-js/components/cart/components/CartItems.svelte.d.ts +1 -0
  5. package/dist-js/components/cart/components/CartSubtotalAmount.svelte.d.ts +1 -0
  6. package/dist-js/components/cart/components/CartTotalAmount.svelte.d.ts +1 -0
  7. package/dist-js/gomus-webcomponents.css +52 -15
  8. package/dist-js/gomus-webcomponents.iife.js +407 -277
  9. package/dist-js/gomus-webcomponents.js +407 -277
  10. package/dist-js/gomus-webcomponents.min.css +1 -1
  11. package/dist-js/gomus-webcomponents.min.iife.js +12 -12
  12. package/dist-js/gomus-webcomponents.min.js +7130 -7028
  13. package/dist-js/src/components/cart/components/CartCounter.spec.d.ts +1 -0
  14. package/dist-js/src/components/cart/components/CartCoupons.spec.d.ts +1 -0
  15. package/dist-js/src/components/cart/components/CartDetails.spec.d.ts +1 -0
  16. package/dist-js/src/components/cart/components/CartDetails.svelte.d.ts +15 -0
  17. package/dist-js/src/components/cart/components/CartDiscountedAmount.spec.d.ts +1 -0
  18. package/dist-js/src/components/cart/components/CartItems.spec.d.ts +1 -0
  19. package/dist-js/src/components/cart/components/CartSubtotalAmount.spec.d.ts +1 -0
  20. package/dist-js/src/components/cart/components/CartTotalAmount.spec.d.ts +1 -0
  21. package/dist-js/src/components/cart/components/Item.spec.d.ts +1 -0
  22. package/dist-js/src/components/cart/components/itemTitles/Event.spec.d.ts +1 -0
  23. package/dist-js/src/components/cart/components/itemTitles/Ticket.spec.d.ts +1 -0
  24. package/dist-js/src/components/cart/components/utils.spec.d.ts +1 -0
  25. package/dist-js/src/factories/CartItemFactories.d.ts +173 -0
  26. package/dist-js/src/lib/stores/shop.svelte.d.ts +0 -1
  27. package/dist-js/src/test-helpers/resetShop.d.ts +1 -0
  28. package/package.json +4 -2
@@ -0,0 +1 @@
1
+ export { SvelteComponent as default } from 'svelte';
@@ -0,0 +1 @@
1
+ export { SvelteComponent as default } from 'svelte';
@@ -0,0 +1 @@
1
+ export { SvelteComponent as default } from 'svelte';
@@ -0,0 +1 @@
1
+ export { SvelteComponent as default } from 'svelte';
@@ -0,0 +1 @@
1
+ export { SvelteComponent as default } from 'svelte';
@@ -126,7 +126,7 @@
126
126
  flex-direction: column;
127
127
  --invalid-border: 4px solid var(--red);
128
128
 
129
- padding: 0.5rem;
129
+ /*padding: 0.5rem;*/
130
130
  }
131
131
 
132
132
  :root .form-group {
@@ -135,7 +135,7 @@
135
135
  flex-direction: column;
136
136
  --invalid-border: 4px solid var(--red);
137
137
 
138
- padding: 0.5rem;
138
+ /*padding: 0.5rem;*/
139
139
  }
140
140
 
141
141
  :host .go-field {
@@ -144,7 +144,7 @@
144
144
  flex-direction: column;
145
145
  --invalid-border: 4px solid var(--red);
146
146
 
147
- padding: 0.5rem;
147
+ /*padding: 0.5rem;*/
148
148
  }
149
149
 
150
150
  :root .go-field {
@@ -153,7 +153,7 @@
153
153
  flex-direction: column;
154
154
  --invalid-border: 4px solid var(--red);
155
155
 
156
- padding: 0.5rem;
156
+ /*padding: 0.5rem;*/
157
157
  }
158
158
 
159
159
  :host .form-group label {
@@ -1208,22 +1208,59 @@ go-cart ul,go-cart ol {
1208
1208
  flex: 1;
1209
1209
  text-align: right;
1210
1210
  }
1211
- .go-cart-item article > ul .go-cart-item-remove button {
1212
- padding: 0.25rem 0.5rem;
1213
- margin: 0;
1214
- background-color: white;
1215
- background-color: var(--bg);
1216
- color: #111;
1217
- color: var(--fg);
1218
- border: none;
1219
- border-radius: 0px;
1220
- cursor: pointer;
1221
- }
1222
1211
  .go-cart-item article > ul .go-cart-item-sum {
1223
1212
  flex: 1;
1224
1213
  text-align: right;
1225
1214
  }
1226
1215
 
1216
+ /* Coupon row */
1217
+ .go-cart-coupon article > ul {
1218
+ display: flex;
1219
+ gap: 1rem;
1220
+ padding: 0.5rem 0;
1221
+ border-bottom: 1px solid rgba(0, 0, 0, 0.06);
1222
+ align-items: center;
1223
+ }
1224
+ .go-cart-coupon article > ul > li {
1225
+ list-style: none;
1226
+ min-width: 0;
1227
+ }
1228
+ .go-cart-coupon article > ul .go-cart-coupon-code {
1229
+ flex: 1;
1230
+ font-family: ui-monospace, monospace;
1231
+ }
1232
+ .go-cart-coupon article > ul .go-cart-coupon-remove-cell {
1233
+ text-align: right;
1234
+ }
1235
+
1236
+ .go-cart-coupon-inactive {
1237
+ opacity: 0.5;
1238
+ -webkit-text-decoration: line-through;
1239
+ text-decoration: line-through;
1240
+ }
1241
+
1242
+ /* Shared remove (✕) button — items + coupons */
1243
+ button.go-cart-remove {
1244
+ padding: 0.25rem 0.5rem !important;
1245
+ margin: 0;
1246
+ background-color: white;
1247
+ background-color: var(--bg);
1248
+ color: #111;
1249
+ color: var(--fg);
1250
+ border: none;
1251
+ border-radius: 0px;
1252
+ cursor: pointer;
1253
+ font-size: 1rem;
1254
+ line-height: 1;
1255
+ }
1256
+
1257
+ .go-cart-remove:hover {
1258
+ background-color: #111;
1259
+ background-color: var(--fg);
1260
+ color: white;
1261
+ color: var(--bg);
1262
+ }
1263
+
1227
1264
  /* Footer row */
1228
1265
  .go-cart-footer {
1229
1266
  background: inherit;