@crikket-io/capture 0.1.0 → 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/capture.css CHANGED
@@ -188,6 +188,9 @@
188
188
  .bottom-\[76px\] {
189
189
  bottom: 76px;
190
190
  }
191
+ .isolate {
192
+ isolation: isolate;
193
+ }
191
194
  .z-\[var\(--capture-overlay-z-index\)\] {
192
195
  z-index: var(--capture-overlay-z-index);
193
196
  }
@@ -327,6 +330,9 @@
327
330
  --tw-scale-z: 110%;
328
331
  scale: var(--tw-scale-x) var(--tw-scale-y);
329
332
  }
333
+ .transform {
334
+ transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
335
+ }
330
336
  .cursor-crosshair {
331
337
  cursor: crosshair;
332
338
  }
@@ -591,6 +597,10 @@
591
597
  .text-muted-foreground {
592
598
  color: var(--muted-foreground);
593
599
  }
600
+ .shadow {
601
+ --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
602
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
603
+ }
594
604
  .shadow-2xl {
595
605
  --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));
596
606
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -706,31 +716,11 @@
706
716
  }
707
717
  }
708
718
  }
709
- :root {
710
- --background: oklch(1 0 0);
711
- --foreground: oklch(0.145 0 0);
712
- --card: oklch(1 0 0);
713
- --card-foreground: oklch(0.145 0 0);
714
- --popover: oklch(1 0 0);
715
- --popover-foreground: oklch(0.145 0 0);
716
- --primary: oklch(0.205 0 0);
717
- --primary-foreground: oklch(0.985 0 0);
718
- --secondary: oklch(0.97 0 0);
719
- --secondary-foreground: oklch(0.205 0 0);
720
- --muted: oklch(0.97 0 0);
721
- --muted-foreground: oklch(0.556 0 0);
722
- --accent: oklch(0.97 0 0);
723
- --accent-foreground: oklch(0.205 0 0);
724
- --destructive: oklch(0.58 0.22 27);
725
- --border: oklch(0.922 0 0);
726
- --input: oklch(0.922 0 0);
727
- --ring: oklch(0.708 0 0);
728
- --radius: 0.625rem;
719
+ :host {
720
+ all: initial;
721
+ color-scheme: light dark;
729
722
  }
730
723
  @layer base {
731
- :host {
732
- font-family: var(--font-sans);
733
- }
734
724
  *,
735
725
  ::before,
736
726
  ::after {
@@ -738,9 +728,50 @@
738
728
  border-color: var(--border);
739
729
  }
740
730
  .crikket-capture-root {
731
+ --background: oklch(1 0 0);
732
+ --foreground: oklch(0.145 0 0);
733
+ --card: oklch(1 0 0);
734
+ --card-foreground: oklch(0.145 0 0);
735
+ --popover: oklch(1 0 0);
736
+ --popover-foreground: oklch(0.145 0 0);
737
+ --primary: oklch(0.205 0 0);
738
+ --primary-foreground: oklch(0.985 0 0);
739
+ --secondary: oklch(0.97 0 0);
740
+ --secondary-foreground: oklch(0.205 0 0);
741
+ --muted: oklch(0.97 0 0);
742
+ --muted-foreground: oklch(0.556 0 0);
743
+ --accent: oklch(0.97 0 0);
744
+ --accent-foreground: oklch(0.205 0 0);
745
+ --destructive: oklch(0.58 0.22 27);
746
+ --border: oklch(0.922 0 0);
747
+ --input: oklch(0.922 0 0);
748
+ --ring: oklch(0.708 0 0);
749
+ --radius: 0.625rem;
741
750
  color: var(--foreground);
742
751
  font-family: var(--font-sans);
743
752
  }
753
+ @media (prefers-color-scheme: dark) {
754
+ .crikket-capture-root {
755
+ --background: oklch(0.145 0 0);
756
+ --foreground: oklch(0.985 0 0);
757
+ --card: oklch(0.205 0 0);
758
+ --card-foreground: oklch(0.985 0 0);
759
+ --popover: oklch(0.205 0 0);
760
+ --popover-foreground: oklch(0.985 0 0);
761
+ --primary: oklch(0.87 0 0);
762
+ --primary-foreground: oklch(0.205 0 0);
763
+ --secondary: oklch(0.269 0 0);
764
+ --secondary-foreground: oklch(0.985 0 0);
765
+ --muted: oklch(0.269 0 0);
766
+ --muted-foreground: oklch(0.708 0 0);
767
+ --accent: oklch(0.371 0 0);
768
+ --accent-foreground: oklch(0.985 0 0);
769
+ --destructive: oklch(0.704 0.191 22.216);
770
+ --border: oklch(1 0 0 / 10%);
771
+ --input: oklch(1 0 0 / 15%);
772
+ --ring: oklch(0.556 0 0);
773
+ }
774
+ }
744
775
  .capture-launcher {
745
776
  position: fixed;
746
777
  right: 24px;
@@ -749,31 +780,40 @@
749
780
  display: inline-flex;
750
781
  align-items: center;
751
782
  justify-content: center;
783
+ gap: 6px;
752
784
  height: 36px;
753
- padding: 0 16px;
754
- border: 0;
755
- border-radius: 9999px;
756
- background: #111827;
757
- color: #ffffff;
758
- font: 500 14px / 1.2 Inter Variable,
759
- Inter,
760
- ui-sans-serif,
761
- system-ui,
762
- sans-serif;
763
- box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
785
+ padding: 0 14px;
786
+ border: 1px solid transparent;
787
+ border-radius: 8px;
788
+ background: var(--primary);
789
+ color: var(--primary-foreground);
790
+ font-family: var(--font-sans);
791
+ font-size: 14px;
792
+ font-weight: 500;
793
+ line-height: 1.2;
794
+ white-space: nowrap;
795
+ box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
764
796
  cursor: pointer;
765
- transition: opacity 150ms ease;
797
+ transition: background-color 150ms ease,
798
+ box-shadow 150ms ease,
799
+ transform 150ms ease;
800
+ user-select: none;
766
801
  }
767
802
  .capture-launcher:hover {
768
- opacity: 0.92;
803
+ transform: translateY(-1px);
804
+ box-shadow: 0 8px 24px rgb(0 0 0 / 0.16);
769
805
  }
770
806
  .capture-launcher:focus-visible {
771
- outline: 2px solid rgb(17 24 39 / 0.45);
807
+ outline: 2px solid var(--ring);
772
808
  outline-offset: 2px;
773
809
  }
774
810
  .capture-launcher:disabled {
775
- opacity: 0.7;
811
+ opacity: 0.5;
776
812
  cursor: progress;
813
+ transform: none;
814
+ }
815
+ .capture-launcher:active:not(:disabled) {
816
+ transform: translateY(0);
777
817
  }
778
818
  button:not(:disabled),
779
819
  [role="button"]:not(:disabled) {
@@ -795,6 +835,26 @@
795
835
  inherits: false;
796
836
  initial-value: 1;
797
837
  }
838
+ @property --tw-rotate-x {
839
+ syntax: "*";
840
+ inherits: false;
841
+ }
842
+ @property --tw-rotate-y {
843
+ syntax: "*";
844
+ inherits: false;
845
+ }
846
+ @property --tw-rotate-z {
847
+ syntax: "*";
848
+ inherits: false;
849
+ }
850
+ @property --tw-skew-x {
851
+ syntax: "*";
852
+ inherits: false;
853
+ }
854
+ @property --tw-skew-y {
855
+ syntax: "*";
856
+ inherits: false;
857
+ }
798
858
  @property --tw-border-style {
799
859
  syntax: "*";
800
860
  inherits: false;
@@ -884,6 +944,11 @@
884
944
  --tw-scale-x: 1;
885
945
  --tw-scale-y: 1;
886
946
  --tw-scale-z: 1;
947
+ --tw-rotate-x: initial;
948
+ --tw-rotate-y: initial;
949
+ --tw-rotate-z: initial;
950
+ --tw-skew-x: initial;
951
+ --tw-skew-y: initial;
887
952
  --tw-border-style: solid;
888
953
  --tw-leading: initial;
889
954
  --tw-font-weight: initial;