rockin 0.0.12 → 0.0.13
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/README.md +4 -4
- package/dist/styles.css +102 -0
- package/dist/ui/index.d.ts +279 -221
- package/dist/ui/index.js +3525 -3216
- package/package.json +24 -2
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Shared React UI for Rockstar projects.
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
|
|
8
|
+
npm install rockin
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -33,7 +33,7 @@ import * as Gravity from "rockin/gravity"
|
|
|
33
33
|
## Development
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
npm install
|
|
37
|
+
npm run typecheck
|
|
38
|
+
npm run build
|
|
39
39
|
```
|
package/dist/styles.css
CHANGED
|
@@ -747,3 +747,105 @@ select:-webkit-autofill {
|
|
|
747
747
|
--jelly-belly-glow: #fef3c7;
|
|
748
748
|
--jelly-eye-sparkle: #fbbf24;
|
|
749
749
|
}
|
|
750
|
+
.code-block {
|
|
751
|
+
position: relative;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
.code-block-content {
|
|
755
|
+
overflow: auto;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
.code-block-content pre {
|
|
759
|
+
@apply m-0 bg-transparent! py-1;
|
|
760
|
+
|
|
761
|
+
font-family:
|
|
762
|
+
ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas,
|
|
763
|
+
"Liberation Mono", "Courier New", monospace;
|
|
764
|
+
|
|
765
|
+
font-size: 0.9375rem;
|
|
766
|
+
line-height: 1.75rem;
|
|
767
|
+
tab-size: 2;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.code-block-fallback {
|
|
771
|
+
@apply m-0 bg-transparent py-1;
|
|
772
|
+
|
|
773
|
+
font-family:
|
|
774
|
+
ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas,
|
|
775
|
+
"Liberation Mono", "Courier New", monospace;
|
|
776
|
+
|
|
777
|
+
font-size: 0.9375rem;
|
|
778
|
+
line-height: 1.75rem;
|
|
779
|
+
tab-size: 2;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.code-block-content code {
|
|
783
|
+
display: block;
|
|
784
|
+
width: max-content;
|
|
785
|
+
min-width: 100%;
|
|
786
|
+
|
|
787
|
+
font-family: inherit;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
/* Lines */
|
|
791
|
+
|
|
792
|
+
.code-block-content .line {
|
|
793
|
+
display: block;
|
|
794
|
+
width: 100%;
|
|
795
|
+
min-width: max-content;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
/* Line Numbers */
|
|
799
|
+
|
|
800
|
+
.code-block-line-numbers code {
|
|
801
|
+
counter-reset: line;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
.code-block-fallback-number {
|
|
805
|
+
display: inline-block;
|
|
806
|
+
width: 3rem;
|
|
807
|
+
min-width: 3rem;
|
|
808
|
+
box-sizing: border-box;
|
|
809
|
+
padding-right: 0.75rem;
|
|
810
|
+
|
|
811
|
+
color: #8a8a8a;
|
|
812
|
+
text-align: right;
|
|
813
|
+
|
|
814
|
+
user-select: none;
|
|
815
|
+
pointer-events: none;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
.code-block-line-numbers .line::before {
|
|
819
|
+
counter-increment: line;
|
|
820
|
+
content: counter(line);
|
|
821
|
+
|
|
822
|
+
position: sticky;
|
|
823
|
+
left: 0;
|
|
824
|
+
z-index: 5;
|
|
825
|
+
|
|
826
|
+
display: inline-block;
|
|
827
|
+
|
|
828
|
+
/* Fixed gutter */
|
|
829
|
+
width: 3rem;
|
|
830
|
+
min-width: 3rem;
|
|
831
|
+
box-sizing: border-box;
|
|
832
|
+
padding-right: 0.75rem;
|
|
833
|
+
|
|
834
|
+
@apply bg-[#f7f7f7] dark:bg-[#111];
|
|
835
|
+
|
|
836
|
+
color: #8a8a8a;
|
|
837
|
+
text-align: right;
|
|
838
|
+
|
|
839
|
+
user-select: none;
|
|
840
|
+
pointer-events: none;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
/* Selection */
|
|
844
|
+
|
|
845
|
+
.code-block-content ::selection {
|
|
846
|
+
background: rgb(0 0 0 / 10%);
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
.dark .code-block-content ::selection {
|
|
850
|
+
background: rgb(255 255 255 / 15%);
|
|
851
|
+
}
|