@x-plat/design-system 0.3.0 → 0.3.3

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.
@@ -410,6 +410,9 @@
410
410
  width: 20px;
411
411
  height: 20px;
412
412
  flex-shrink: 0;
413
+ display: flex;
414
+ align-items: center;
415
+ justify-content: center;
413
416
  transition: transform 0.25s ease;
414
417
  color: var(--xplat-neutral-500);
415
418
  }
@@ -2703,6 +2706,77 @@ h2.react-datepicker__current-month {
2703
2706
  color: var(--xplat-neutral-300);
2704
2707
  }
2705
2708
 
2709
+ /* src/components/Swiper/swiper.scss */
2710
+ .lib-xplat-swiper {
2711
+ width: 100%;
2712
+ position: relative;
2713
+ }
2714
+ .lib-xplat-swiper__viewport {
2715
+ overflow: hidden;
2716
+ cursor: grab;
2717
+ user-select: none;
2718
+ }
2719
+ .lib-xplat-swiper__viewport:active {
2720
+ cursor: grabbing;
2721
+ }
2722
+ .lib-xplat-swiper__track {
2723
+ display: flex;
2724
+ will-change: transform;
2725
+ }
2726
+ .lib-xplat-swiper__track.transitioning {
2727
+ transition-property: transform;
2728
+ transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
2729
+ }
2730
+ .lib-xplat-swiper__slide {
2731
+ flex-shrink: 0;
2732
+ overflow: hidden;
2733
+ }
2734
+ .lib-xplat-swiper__progress {
2735
+ margin-top: 1rem;
2736
+ display: flex;
2737
+ justify-content: center;
2738
+ }
2739
+ .lib-xplat-swiper__progress-track {
2740
+ position: relative;
2741
+ width: 100%;
2742
+ max-width: 580px;
2743
+ height: 2px;
2744
+ background-color: var(--xplat-neutral-200);
2745
+ border-radius: 1px;
2746
+ }
2747
+ .lib-xplat-swiper__progress-fill {
2748
+ position: absolute;
2749
+ top: 0;
2750
+ left: 0;
2751
+ height: 100%;
2752
+ background-color: var(--xplat-neutral-500);
2753
+ border-radius: 1px;
2754
+ transition-property: width;
2755
+ transition-timing-function: ease;
2756
+ }
2757
+ .lib-xplat-swiper__dots {
2758
+ display: flex;
2759
+ justify-content: center;
2760
+ gap: 6px;
2761
+ margin-top: 1rem;
2762
+ }
2763
+ .lib-xplat-swiper__dot {
2764
+ width: 8px;
2765
+ height: 8px;
2766
+ border-radius: 50%;
2767
+ border: none;
2768
+ padding: 0;
2769
+ cursor: pointer;
2770
+ background-color: var(--xplat-neutral-300);
2771
+ transition: background-color 0.2s;
2772
+ }
2773
+ .lib-xplat-swiper__dot.active {
2774
+ background-color: var(--xplat-neutral-700);
2775
+ }
2776
+ .lib-xplat-swiper__dot:hover:not(.active) {
2777
+ background-color: var(--xplat-neutral-400);
2778
+ }
2779
+
2706
2780
  /* src/components/Switch/switch.scss */
2707
2781
  .lib-xplat-switch {
2708
2782
  position: relative;
@@ -27,6 +27,7 @@ export { Radio, RadioGroup } from './Radio/index.cjs';
27
27
  export { Skeleton } from './Skeleton/index.cjs';
28
28
  export { Spinner } from './Spinner/index.cjs';
29
29
  export { Steps } from './Steps/index.cjs';
30
+ export { Swiper, SwiperHandle, SwiperProps } from './Swiper/index.cjs';
30
31
  export { Switch } from './Switch/index.cjs';
31
32
  export { Tab } from './Tab/index.cjs';
32
33
  export { Table, TableBody, TableCell, TableHead, TableRow } from './Table/index.cjs';
@@ -27,6 +27,7 @@ export { Radio, RadioGroup } from './Radio/index.js';
27
27
  export { Skeleton } from './Skeleton/index.js';
28
28
  export { Spinner } from './Spinner/index.js';
29
29
  export { Steps } from './Steps/index.js';
30
+ export { Swiper, SwiperHandle, SwiperProps } from './Swiper/index.js';
30
31
  export { Switch } from './Switch/index.js';
31
32
  export { Tab } from './Tab/index.js';
32
33
  export { Table, TableBody, TableCell, TableHead, TableRow } from './Table/index.js';