@simplybusiness/theme-core 7.14.22 → 7.14.23

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.14.23
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [7ac6357]
8
+ - Updated dependencies [45ddf19]
9
+ - @simplybusiness/mobius@7.1.0
10
+
3
11
  ## 7.14.22
4
12
 
5
13
  ### Patch Changes
package/dist/index.css CHANGED
@@ -2549,6 +2549,222 @@ h6.mobius-accordion__link-text,
2549
2549
  background-color:var(--color-primary);
2550
2550
  }
2551
2551
 
2552
+ [data-sonner-toaster]{
2553
+ font-family:var(--font-family);
2554
+ }
2555
+
2556
+ .mobius-toast{
2557
+ position:relative;
2558
+ font-family:var(--font-family);
2559
+ font-size:var(--font-size-regular);
2560
+ line-height:var(--line-height-normal);
2561
+ color:var(--color-text);
2562
+ background-color:var(--color-background);
2563
+ border:2px solid var(--color-border);
2564
+ border-radius:var(--radius-1);
2565
+ box-shadow:var(--shadow-md);
2566
+ padding:var(--size-md);
2567
+ display:flex;
2568
+ align-items:flex-start;
2569
+ gap:var(--size-sm);
2570
+ width:var(--toast-width);
2571
+ max-width:calc(100vw - var(--size-lg) * 2);
2572
+ box-sizing:border-box;
2573
+ }
2574
+
2575
+ .mobius-toast.--info{
2576
+ border-color:var(--color-info);
2577
+ background-color:var(--color-info-background);
2578
+ }
2579
+
2580
+ .mobius-toast.--success{
2581
+ border-color:var(--color-valid);
2582
+ background-color:var(--color-valid-background);
2583
+ }
2584
+
2585
+ .mobius-toast.--warning{
2586
+ border-color:var(--color-warning);
2587
+ background-color:var(--color-warning-background);
2588
+ }
2589
+
2590
+ .mobius-toast.--error{
2591
+ border-color:var(--color-error);
2592
+ background-color:var(--color-error-background);
2593
+ }
2594
+
2595
+ .mobius-toast__icon{
2596
+ flex-shrink:0;
2597
+ display:flex;
2598
+ align-items:center;
2599
+ padding-top:2px;
2600
+ }
2601
+
2602
+ .mobius-toast__icon .mobius-icon{
2603
+ width:1.25em;
2604
+ height:1.25em;
2605
+ }
2606
+
2607
+ .mobius-toast__body{
2608
+ display:flex;
2609
+ flex-direction:column;
2610
+ gap:var(--size-sm);
2611
+ flex:1;
2612
+ min-width:0;
2613
+ padding-right:var(--size-lg);
2614
+ }
2615
+
2616
+ .mobius-toast__content{
2617
+ display:flex;
2618
+ flex-direction:column;
2619
+ gap:var(--size-xxs);
2620
+ }
2621
+
2622
+ .mobius-toast__title{
2623
+ font-size:var(--font-size-regular);
2624
+ font-weight:600;
2625
+ line-height:var(--line-height-normal);
2626
+ color:var(--color-text);
2627
+ margin:0;
2628
+ }
2629
+
2630
+ .mobius-toast__description{
2631
+ font-size:var(--font-size-regular);
2632
+ line-height:var(--line-height-normal);
2633
+ color:var(--color-text);
2634
+ margin:0;
2635
+ }
2636
+
2637
+ .mobius-toast__actions{
2638
+ display:flex;
2639
+ justify-content:flex-end;
2640
+ gap:var(--size-xs);
2641
+ flex-wrap:wrap;
2642
+ }
2643
+
2644
+ .mobius-toast__action,
2645
+ .mobius-toast__cancel{
2646
+ font-family:var(--font-family);
2647
+ font-size:var(--font-size-small);
2648
+ font-weight:600;
2649
+ padding:var(--size-xs) var(--size-sm);
2650
+ border-radius:var(--radius-1);
2651
+ cursor:pointer;
2652
+ transition:background-color 0.15s ease;
2653
+ flex-shrink:0;
2654
+ display:inline-flex;
2655
+ align-items:center;
2656
+ justify-content:center;
2657
+ }
2658
+
2659
+ .mobius-toast__action{
2660
+ background-color:var(--button-primary-color);
2661
+ color:var(--button-primary-content-color);
2662
+ border:none;
2663
+ }
2664
+
2665
+ .mobius-toast__action:hover{
2666
+ filter:brightness(0.9);
2667
+ }
2668
+
2669
+ .mobius-toast.--info .mobius-toast__action{
2670
+ background-color:var(--color-info);
2671
+ }
2672
+
2673
+ .mobius-toast.--success .mobius-toast__action{
2674
+ background-color:var(--color-valid);
2675
+ }
2676
+
2677
+ .mobius-toast.--warning .mobius-toast__action{
2678
+ background-color:var(--color-warning);
2679
+ }
2680
+
2681
+ .mobius-toast.--error .mobius-toast__action{
2682
+ background-color:var(--color-error);
2683
+ }
2684
+
2685
+ .mobius-toast__cancel{
2686
+ background-color:transparent;
2687
+ color:var(--color-text);
2688
+ border:1px solid var(--color-border);
2689
+ }
2690
+
2691
+ .mobius-toast__cancel:hover{
2692
+ background-color:var(--color-background-hover);
2693
+ }
2694
+
2695
+ .mobius-toast.--info .mobius-toast__cancel{
2696
+ border-color:var(--color-info);
2697
+ color:var(--color-info);
2698
+ }
2699
+
2700
+ .mobius-toast.--success .mobius-toast__cancel{
2701
+ border-color:var(--color-valid);
2702
+ color:var(--color-valid);
2703
+ }
2704
+
2705
+ .mobius-toast.--warning .mobius-toast__cancel{
2706
+ border-color:var(--color-warning);
2707
+ color:var(--color-warning);
2708
+ }
2709
+
2710
+ .mobius-toast.--error .mobius-toast__cancel{
2711
+ border-color:var(--color-error);
2712
+ color:var(--color-error);
2713
+ }
2714
+
2715
+ .mobius-toast__close{
2716
+ position:absolute;
2717
+ top:var(--size-md);
2718
+ right:var(--size-sm);
2719
+ background:transparent;
2720
+ border:none;
2721
+ border-radius:var(--radius-1);
2722
+ cursor:pointer;
2723
+ padding:var(--size-xxs);
2724
+ width:var(--size-md);
2725
+ height:var(--size-md);
2726
+ display:flex;
2727
+ align-items:center;
2728
+ justify-content:center;
2729
+ color:var(--color-text-muted);
2730
+ transition:color 0.15s ease;
2731
+ }
2732
+
2733
+ .mobius-toast__close:hover{
2734
+ color:var(--color-text);
2735
+ }
2736
+
2737
+ .mobius-toast__close-icon{
2738
+ display:flex;
2739
+ align-items:center;
2740
+ justify-content:center;
2741
+ }
2742
+
2743
+ .mobius-toast__close-icon .mobius-icon{
2744
+ width:1.25em;
2745
+ height:1.25em;
2746
+ }
2747
+
2748
+ .mobius-toast.--info .mobius-toast__close{
2749
+ color:var(--color-info);
2750
+ }
2751
+
2752
+ .mobius-toast.--success .mobius-toast__close{
2753
+ color:var(--color-valid);
2754
+ }
2755
+
2756
+ .mobius-toast.--warning .mobius-toast__close{
2757
+ color:var(--color-warning);
2758
+ }
2759
+
2760
+ .mobius-toast.--error .mobius-toast__close{
2761
+ color:var(--color-error);
2762
+ }
2763
+
2764
+ .mobius-toast .mobius-toast__close:hover{
2765
+ filter:brightness(0.8);
2766
+ }
2767
+
2552
2768
  .mobius-expandable-text__content--collapsed{
2553
2769
  display:-webkit-box;
2554
2770
  -webkit-line-clamp:var(--line-clamp, 3);
@@ -3175,6 +3391,7 @@ svg:not(:host).svg-inline--mobius-icon{
3175
3391
  --popover-z-index:2147483647;
3176
3392
  --color-background-popover:var(--color-azure-700);
3177
3393
  --color-text-popover:#fff;
3394
+ --toast-width:450px;
3178
3395
  --slider-primary-track-background:var(--color-primary-lighter);
3179
3396
  --slider-primary-thumb-background:var(--color-primary);
3180
3397
  --slider-secondary-track-background:var(--color-accent-lighter);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplybusiness/theme-core",
3
- "version": "7.14.22",
3
+ "version": "7.14.23",
4
4
  "main": "dist/index.css",
5
5
  "simplyBusiness": {
6
6
  "publishToPublicNpm": true
@@ -28,7 +28,7 @@
28
28
  "./fonts": "./dist/fonts.css"
29
29
  },
30
30
  "dependencies": {
31
- "@simplybusiness/mobius": "^7.0.0"
31
+ "@simplybusiness/mobius": "^7.1.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@simplybusiness/build-scripts": "^1.2.2"
package/src/index.css CHANGED
@@ -35,6 +35,7 @@
35
35
  @import "@simplybusiness/mobius/src/components/TextArea/TextArea.css";
36
36
  @import "@simplybusiness/mobius/src/components/TextField/TextField.css";
37
37
  @import "@simplybusiness/mobius/src/components/Title/Title.css";
38
+ @import "@simplybusiness/mobius/src/components/Toast/Toast.css";
38
39
  @import "@simplybusiness/mobius/src/components/ExpandableText/ExpandableText.css";
39
40
 
40
41
  @import "./icons.css"; /* Placing this at the top affects specificity */
package/src/variables.css CHANGED
@@ -223,7 +223,8 @@
223
223
  --radio-inner-size: 10px;
224
224
  --radio-gap: var(--size-xs);
225
225
  --radio-label-gap: calc(var(--size-xs) + 2px);
226
- --radio-label-border: var(--radio-border-width) solid var(--color-primary-light);
226
+ --radio-label-border: var(--radio-border-width) solid
227
+ var(--color-primary-light);
227
228
  --radio-label-align-items: center;
228
229
  --radio-label-background: var(--color-background-input);
229
230
  --radio-label-background-disabled: var(--color-background-light);
@@ -257,6 +258,9 @@
257
258
  --color-background-popover: var(--color-azure-700);
258
259
  --color-text-popover: #fff;
259
260
 
261
+ /* Toast */
262
+ --toast-width: 450px;
263
+
260
264
  /* Slider */
261
265
  --slider-primary-track-background: var(--color-primary-lighter);
262
266
  --slider-primary-thumb-background: var(--color-primary);