@keepkit/ui 0.27.3 → 0.28.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.
@@ -773,6 +773,72 @@
773
773
  white-space: nowrap;
774
774
  }
775
775
 
776
+ :where(.keep-theme, [data-keep-theme]) [data-keepkit="floating-tour"] {
777
+ position: fixed;
778
+ z-index: var(--keep-tour-z-index, 1000);
779
+ bottom: calc(var(--keep-tour-offset, 16px) + env(safe-area-inset-bottom));
780
+ display: flex;
781
+ align-items: center;
782
+ gap: var(--keep-control-gap);
783
+ max-width: min(calc(100vw - 2rem), 42rem);
784
+ padding: 0.5rem;
785
+ border: 1px solid var(--keep-border);
786
+ border-radius: var(--keep-radius);
787
+ background: var(--keep-surface);
788
+ box-shadow: var(--keep-shadow);
789
+ }
790
+ :where(.keep-theme, [data-keep-theme]) [data-keepkit="floating-tour"].keep-floating-tour--bottom-center {
791
+ left: 50%;
792
+ transform: translateX(-50%);
793
+ }
794
+ :where(.keep-theme, [data-keep-theme]) [data-keepkit="floating-tour"].keep-floating-tour--bottom-left {
795
+ left: var(--keep-tour-offset, 16px);
796
+ }
797
+ :where(.keep-theme, [data-keep-theme]) [data-keepkit="floating-tour"].keep-floating-tour--bottom-right {
798
+ right: var(--keep-tour-offset, 16px);
799
+ }
800
+ :where(.keep-theme, [data-keep-theme]) [data-keepkit="floating-tour"] .keep-floating-tour__bar {
801
+ margin: 0;
802
+ }
803
+ :where(.keep-theme, [data-keep-theme])
804
+ [data-keepkit="floating-tour"]
805
+ .keep-floating-tour__bar
806
+ > [data-keep-action^="tour-"] {
807
+ min-width: 5.5rem;
808
+ }
809
+ :where(.keep-theme, [data-keep-theme]) [data-keepkit="floating-tour"] button {
810
+ min-height: 2.75rem;
811
+ }
812
+ :where(.keep-theme, [data-keep-theme]) [data-keepkit="floating-tour"] .keep-floating-tour__control {
813
+ min-width: 2.75rem;
814
+ }
815
+ :where(.keep-theme, [data-keep-theme]) [data-keepkit="floating-tour"] .keep-floating-tour__expand {
816
+ border: 0;
817
+ background: transparent;
818
+ }
819
+ @media (max-width: 32rem) {
820
+ :where(.keep-theme, [data-keep-theme]) [data-keepkit="floating-tour"] {
821
+ right: var(--keep-tour-offset, 16px);
822
+ left: var(--keep-tour-offset, 16px);
823
+ max-width: none;
824
+ transform: none;
825
+ }
826
+ :where(.keep-theme, [data-keep-theme]) [data-keepkit="floating-tour"] .keep-floating-tour__bar {
827
+ flex: 1;
828
+ min-width: 0;
829
+ }
830
+ :where(.keep-theme, [data-keep-theme])
831
+ [data-keepkit="floating-tour"]
832
+ .keep-floating-tour__bar
833
+ > [data-keep-action^="tour-"] {
834
+ min-width: 0;
835
+ flex: 1;
836
+ }
837
+ :where(.keep-theme, [data-keep-theme]) [data-keepkit="floating-tour"] [data-tour-preview] {
838
+ display: none;
839
+ }
840
+ }
841
+
776
842
  :where(.keep-theme, [data-keep-theme]) [data-keepkit="card-skeleton"][data-layout="compact"] {
777
843
  --keep-skeleton-media-size: 2.75rem;
778
844
  --keep-skeleton-title-width: 64%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keepkit/ui",
3
- "version": "0.27.3",
3
+ "version": "0.28.1",
4
4
  "description": "Headless, accessible React UI components for KeepKit.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -57,10 +57,11 @@
57
57
  "access": "public"
58
58
  },
59
59
  "peerDependencies": {
60
- "react": ">=18"
60
+ "react": ">=18",
61
+ "react-dom": ">=18"
61
62
  },
62
63
  "dependencies": {
63
- "@keepkit/core": "0.27.3"
64
+ "@keepkit/core": "0.28.1"
64
65
  },
65
66
  "devDependencies": {
66
67
  "@testing-library/react": "^16.3.3",