@code-coaching/vuetiful 0.0.3 → 0.1.0

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.
@@ -611,9 +611,9 @@ h5:not(.unstyled):is(:not(.prose *)) {
611
611
  }
612
612
 
613
613
  h6:not(.unstyled):is(:not(.prose *)) {
614
- font-size: 0.875rem;
615
- line-height: 1.25rem;
616
614
  font-family: var(--theme-font-family-heading);
615
+ font-size:.875rem;
616
+ line-height:1.25rem;
617
617
  }
618
618
 
619
619
  @media (min-width: 768px) {
@@ -666,16 +666,24 @@ blockquote:not(.unstyled):is(:not(.prose *)) {
666
666
  }
667
667
 
668
668
  .dark blockquote:not(.unstyled):is(:not(.prose *)) {
669
- color:rgba(var(--theme-font-color-dark));
669
+ color: rgba(var(--theme-font-color-dark));
670
+ }
671
+
672
+ blockquote:not(.unstyled):is(:not(.prose *)){
673
+ padding-left:1rem
674
+ }
675
+
676
+ .dark blockquote:not(.unstyled):is(:not(.prose *)){
677
+ color:rgba(var(--theme-font-color-dark))
670
678
  }
671
679
 
672
680
  /* Keyboard */
673
681
 
674
682
  kbd:not(.unstyled):is(:not(.prose *)) {
675
683
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
676
- font-size: 0.875rem;
677
- line-height: 1.25rem;
678
684
  font-weight: 700;
685
+ font-size:.875rem;
686
+ line-height:1.25rem;
679
687
  border-radius: 0.25rem;
680
688
  padding-left: 0.375rem;
681
689
  padding-right: 0.375rem;
@@ -715,24 +723,25 @@ kbd:not(.unstyled):is(:not(.prose *)) {
715
723
 
716
724
  pre:not(.unstyled):not(.code-block pre):is(:not(.prose *)) {
717
725
  overflow-x: auto;
718
- white-space: pre-wrap;
719
726
  background-color: rgb(23 23 23 / 0.9);
720
727
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
721
728
  font-size: 1rem;
722
729
  line-height: 1.5rem;
723
- --tw-text-opacity: 1;
724
- color: rgb(255 255 255 / var(--tw-text-opacity));
730
+ white-space:pre-wrap;
731
+ background-color:#171717e6;
725
732
  padding:1rem;
733
+ --tw-text-opacity: 1;
734
+ color:rgb(255 255 255 / var(--tw-text-opacity));
726
735
  border-radius:var(--theme-rounded-container);
727
736
  }
728
737
 
729
738
  code:not(.unstyled):is(:not(.prose *)):is(:not(pre *)) {
730
739
  white-space: nowrap;
731
740
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
732
- font-size: 0.75rem;
733
- line-height: 1rem;
734
741
  --tw-text-opacity: 1;
735
742
  color: rgb(var(--color-primary-700) / var(--tw-text-opacity));
743
+ font-size:.75rem;
744
+ line-height:1rem;
736
745
  }
737
746
 
738
747
  .dark code:not(.unstyled):is(:not(.prose *)):is(:not(pre *)) {
@@ -805,10 +814,10 @@ del:not(.unstyled):is(:not(.prose *)) {
805
814
  /* Useful for displaying timestamps */
806
815
 
807
816
  time:not(.unstyled):is(:not(.prose *)) {
808
- font-size: 0.875rem;
809
- line-height: 1.25rem;
810
817
  --tw-text-opacity: 1;
811
818
  color: rgb(var(--color-surface-500) / var(--tw-text-opacity));
819
+ font-size:.875rem;
820
+ line-height:1.25rem;
812
821
  }
813
822
 
814
823
  .dark time:not(.unstyled):is(:not(.prose *)) {
@@ -865,8 +874,8 @@ progress {
865
874
  -webkit-appearance: none;
866
875
  appearance: none;
867
876
  height: 0.5rem;
868
- overflow: hidden;
869
877
  width:100%;
878
+ overflow:hidden;
870
879
  border-radius:var(--theme-rounded-base);
871
880
  background-color: rgb(var(--color-surface-400));
872
881
  }
@@ -1130,6 +1139,15 @@ button:disabled:active {
1130
1139
 
1131
1140
  /* Note: Default values are built into `.btn` */
1132
1141
 
1142
+ .btn-sm {
1143
+ padding-left: 0.75rem;
1144
+ padding-right: 0.75rem;
1145
+ padding-top: 0.375rem;
1146
+ padding-bottom: 0.375rem;
1147
+ font-size:.875rem;
1148
+ line-height:1.25rem;
1149
+ }
1150
+
1133
1151
  /* === Icon Button === */
1134
1152
 
1135
1153
  /* A circular button meant for housing icons. */
@@ -1195,8 +1213,8 @@ input[type='file']:not(.file-dropzone-input)::file-selector-button {
1195
1213
  padding-right: 0.75rem;
1196
1214
  padding-top: 0.375rem;
1197
1215
  padding-bottom: 0.375rem;
1198
- font-size: 0.875rem;
1199
- line-height: 1.25rem;
1216
+ font-size:.875rem;
1217
+ line-height:1.25rem;
1200
1218
  background-color: rgb(var(--color-surface-900));
1201
1219
  }
1202
1220
 
@@ -1347,6 +1365,21 @@ input[type='file']:not(.file-dropzone-input)::file-selector-button {
1347
1365
 
1348
1366
  /* Soft */
1349
1367
 
1368
+ .variant-soft,
1369
+ .variant-soft-surface {
1370
+ background-color: rgb(var(--color-surface-400) / 0.2);
1371
+ --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;
1372
+ --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;
1373
+ box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000) !important;
1374
+ color: rgb(var(--color-surface-700));
1375
+ }
1376
+
1377
+ .dark .variant-soft,.dark
1378
+ .variant-soft-surface {
1379
+ color:rgb(var(--color-surface-200));
1380
+ background-color: rgb(var(--color-surface-500) / 0.2);
1381
+ }
1382
+
1350
1383
  /* Glass */
1351
1384
 
1352
1385
  .absolute {
@@ -1448,14 +1481,30 @@ input[type='file']:not(.file-dropzone-input)::file-selector-button {
1448
1481
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
1449
1482
  }
1450
1483
 
1484
+ .overflow-hidden {
1485
+ overflow: hidden;
1486
+ }
1487
+
1451
1488
  .overflow-y-auto {
1452
1489
  overflow-y: auto;
1453
1490
  }
1454
1491
 
1492
+ .whitespace-pre-wrap {
1493
+ white-space: pre-wrap;
1494
+ }
1495
+
1496
+ .break-all {
1497
+ word-break: break-all;
1498
+ }
1499
+
1455
1500
  .rounded {
1456
1501
  border-radius: 0.25rem;
1457
1502
  }
1458
1503
 
1504
+ .bg-neutral-900\/90 {
1505
+ background-color: rgb(23 23 23 / 0.9);
1506
+ }
1507
+
1459
1508
  .bg-primary-50 {
1460
1509
  --tw-bg-opacity: 1;
1461
1510
  background-color: rgb(var(--color-primary-50) / var(--tw-bg-opacity));
@@ -1489,10 +1538,36 @@ input[type='file']:not(.file-dropzone-input)::file-selector-button {
1489
1538
  padding: 1rem;
1490
1539
  }
1491
1540
 
1541
+ .pb-0 {
1542
+ padding-bottom: 0px;
1543
+ }
1544
+
1545
+ .pl-4 {
1546
+ padding-left: 1rem;
1547
+ }
1548
+
1549
+ .pt-1 {
1550
+ padding-top: 0.25rem;
1551
+ }
1552
+
1492
1553
  .text-center {
1493
1554
  text-align: center;
1494
1555
  }
1495
1556
 
1557
+ .text-sm {
1558
+ font-size: 0.875rem;
1559
+ line-height: 1.25rem;
1560
+ }
1561
+
1562
+ .text-xs {
1563
+ font-size: 0.75rem;
1564
+ line-height: 1rem;
1565
+ }
1566
+
1567
+ .uppercase {
1568
+ text-transform: uppercase;
1569
+ }
1570
+
1496
1571
  .capitalize {
1497
1572
  text-transform: capitalize;
1498
1573
  }
@@ -1517,6 +1592,21 @@ input[type='file']:not(.file-dropzone-input)::file-selector-button {
1517
1592
  color: rgb(var(--color-surface-900) / var(--tw-text-opacity));
1518
1593
  }
1519
1594
 
1595
+ .text-white {
1596
+ --tw-text-opacity: 1;
1597
+ color: rgb(255 255 255 / var(--tw-text-opacity));
1598
+ }
1599
+
1600
+ .text-white\/50 {
1601
+ color: rgb(255 255 255 / 0.5);
1602
+ }
1603
+
1604
+ .shadow {
1605
+ --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
1606
+ --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
1607
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1608
+ }
1609
+
1520
1610
  .shadow-xl {
1521
1611
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
1522
1612
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
@@ -1543,6 +1633,11 @@ input[type='file']:not(.file-dropzone-input)::file-selector-button {
1543
1633
  --tw-ring-color: rgb(var(--color-surface-500) / 0.3);
1544
1634
  }
1545
1635
 
1636
+ .blur {
1637
+ --tw-blur: blur(8px);
1638
+ filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
1639
+ }
1640
+
1546
1641
  .transition-all {
1547
1642
  transition-property: all;
1548
1643
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -3244,14 +3339,30 @@ img,video{
3244
3339
  margin-bottom:calc(1rem * var(--tw-space-y-reverse))
3245
3340
  }
3246
3341
 
3342
+ .overflow-hidden{
3343
+ overflow:hidden
3344
+ }
3345
+
3247
3346
  .overflow-y-auto{
3248
3347
  overflow-y:auto
3249
3348
  }
3250
3349
 
3350
+ .whitespace-pre-wrap{
3351
+ white-space:pre-wrap
3352
+ }
3353
+
3354
+ .break-all{
3355
+ word-break:break-all
3356
+ }
3357
+
3251
3358
  .rounded{
3252
3359
  border-radius:.25rem
3253
3360
  }
3254
3361
 
3362
+ .bg-neutral-900\/90{
3363
+ background-color:#171717e6
3364
+ }
3365
+
3255
3366
  .bg-primary-50{
3256
3367
  --tw-bg-opacity: 1;
3257
3368
  background-color:rgb(var(--color-primary-50) / var(--tw-bg-opacity))
@@ -3285,10 +3396,36 @@ img,video{
3285
3396
  padding:1rem
3286
3397
  }
3287
3398
 
3399
+ .pb-0{
3400
+ padding-bottom:0
3401
+ }
3402
+
3403
+ .pl-4{
3404
+ padding-left:1rem
3405
+ }
3406
+
3407
+ .pt-1{
3408
+ padding-top:.25rem
3409
+ }
3410
+
3288
3411
  .text-center{
3289
3412
  text-align:center
3290
3413
  }
3291
3414
 
3415
+ .text-sm{
3416
+ font-size:.875rem;
3417
+ line-height:1.25rem
3418
+ }
3419
+
3420
+ .text-xs{
3421
+ font-size:.75rem;
3422
+ line-height:1rem
3423
+ }
3424
+
3425
+ .uppercase{
3426
+ text-transform:uppercase
3427
+ }
3428
+
3292
3429
  .capitalize{
3293
3430
  text-transform:capitalize
3294
3431
  }
@@ -3313,6 +3450,21 @@ img,video{
3313
3450
  color:rgb(var(--color-surface-900) / var(--tw-text-opacity))
3314
3451
  }
3315
3452
 
3453
+ .text-white{
3454
+ --tw-text-opacity: 1;
3455
+ color:rgb(255 255 255 / var(--tw-text-opacity))
3456
+ }
3457
+
3458
+ .text-white\/50{
3459
+ color:#ffffff80
3460
+ }
3461
+
3462
+ .shadow{
3463
+ --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
3464
+ --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
3465
+ box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)
3466
+ }
3467
+
3316
3468
  .shadow-xl{
3317
3469
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
3318
3470
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
@@ -3339,6 +3491,11 @@ img,video{
3339
3491
  --tw-ring-color: rgb(var(--color-surface-500) / .3)
3340
3492
  }
3341
3493
 
3494
+ .blur{
3495
+ --tw-blur: blur(8px);
3496
+ filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
3497
+ }
3498
+
3342
3499
  .transition-all{
3343
3500
  transition-property:all;
3344
3501
  transition-timing-function:cubic-bezier(.4,0,.2,1);
@@ -4545,4 +4702,91 @@ img,video{
4545
4702
  position:absolute;
4546
4703
  z-index:1;
4547
4704
  margin-top:.25rem
4705
+ }
4706
+
4707
+ pre code.hljs{
4708
+ display:block;
4709
+ overflow-x:auto;
4710
+ padding:1em
4711
+ }
4712
+
4713
+ code.hljs{
4714
+ padding:3px 5px
4715
+ }
4716
+
4717
+ /*!
4718
+ Theme: GitHub Dark
4719
+ Description: Dark theme as seen on github.com
4720
+ Author: github.com
4721
+ Maintainer: @Hirse
4722
+ Updated: 2021-05-15
4723
+
4724
+ Outdated base version: https://github.com/primer/github-syntax-dark
4725
+ Current colors taken from GitHub's CSS
4726
+ */
4727
+
4728
+ .hljs{
4729
+ color:#c9d1d9;
4730
+ background:#0d1117
4731
+ }
4732
+
4733
+ .hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{
4734
+ color:#ff7b72
4735
+ }
4736
+
4737
+ .hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{
4738
+ color:#d2a8ff
4739
+ }
4740
+
4741
+ .hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{
4742
+ color:#79c0ff
4743
+ }
4744
+
4745
+ .hljs-meta .hljs-string,.hljs-regexp,.hljs-string{
4746
+ color:#a5d6ff
4747
+ }
4748
+
4749
+ .hljs-built_in,.hljs-symbol{
4750
+ color:#ffa657
4751
+ }
4752
+
4753
+ .hljs-code,.hljs-comment,.hljs-formula{
4754
+ color:#8b949e
4755
+ }
4756
+
4757
+ .hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{
4758
+ color:#7ee787
4759
+ }
4760
+
4761
+ .hljs-subst{
4762
+ color:#c9d1d9
4763
+ }
4764
+
4765
+ .hljs-section{
4766
+ color:#1f6feb;
4767
+ font-weight:700
4768
+ }
4769
+
4770
+ .hljs-bullet{
4771
+ color:#f2cc60
4772
+ }
4773
+
4774
+ .hljs-emphasis{
4775
+ color:#c9d1d9;
4776
+ font-style:italic
4777
+ }
4778
+
4779
+ .hljs-strong{
4780
+ color:#c9d1d9;
4781
+ font-weight:700
4782
+ }
4783
+
4784
+ .hljs-addition{
4785
+ color:#aff5b4;
4786
+ background-color:#033a16
4787
+ }
4788
+
4789
+ .hljs-deletion{
4790
+ color:#ffdcd7;
4791
+ background-color:#67060c
4548
4792
  }
@@ -0,0 +1,3 @@
1
+ import { DirectiveBinding } from "vue";
2
+ declare const clipboard: (el: HTMLElement, binding: DirectiveBinding) => void;
3
+ export default clipboard;
@@ -0,0 +1,2 @@
1
+ import vClipboard from './clipboard';
2
+ export { vClipboard };
@@ -8,4 +8,5 @@ export default _default;
8
8
  export * from "./components";
9
9
  export * from "./constants";
10
10
  export * from "./utils";
11
+ export * from "./directives";
11
12
  export declare type CssClasses = string;
@@ -0,0 +1,110 @@
1
+ import { CssClasses } from "@/index";
2
+ import "highlight.js/styles/github-dark.css";
3
+ declare const _default: import("vue").DefineComponent<{
4
+ language: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ code: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ background: {
13
+ type: () => CssClasses;
14
+ default: string;
15
+ };
16
+ blur: {
17
+ type: () => CssClasses;
18
+ default: string;
19
+ };
20
+ text: {
21
+ type: () => CssClasses;
22
+ default: string;
23
+ };
24
+ color: {
25
+ type: () => CssClasses;
26
+ default: string;
27
+ };
28
+ rounded: {
29
+ type: () => CssClasses;
30
+ default: string;
31
+ };
32
+ shadow: {
33
+ type: () => CssClasses;
34
+ default: string;
35
+ };
36
+ button: {
37
+ type: () => CssClasses;
38
+ default: string;
39
+ };
40
+ buttonLabel: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ buttonCopied: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ }, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
49
+ copy: () => void;
50
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
51
+ language: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ code: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ background: {
60
+ type: () => CssClasses;
61
+ default: string;
62
+ };
63
+ blur: {
64
+ type: () => CssClasses;
65
+ default: string;
66
+ };
67
+ text: {
68
+ type: () => CssClasses;
69
+ default: string;
70
+ };
71
+ color: {
72
+ type: () => CssClasses;
73
+ default: string;
74
+ };
75
+ rounded: {
76
+ type: () => CssClasses;
77
+ default: string;
78
+ };
79
+ shadow: {
80
+ type: () => CssClasses;
81
+ default: string;
82
+ };
83
+ button: {
84
+ type: () => CssClasses;
85
+ default: string;
86
+ };
87
+ buttonLabel: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ };
91
+ buttonCopied: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
95
+ }>> & {
96
+ onCopy?: (() => any) | undefined;
97
+ }, {
98
+ rounded: string;
99
+ button: string;
100
+ code: string;
101
+ language: string;
102
+ background: string;
103
+ blur: string;
104
+ text: string;
105
+ color: string;
106
+ shadow: string;
107
+ buttonLabel: string;
108
+ buttonCopied: string;
109
+ }>;
110
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const useHighlight: () => {
2
+ highlight: (code: string, lang: string) => string;
3
+ };
4
+ export { useHighlight };
@@ -1,6 +1,6 @@
1
1
  import { useDarkMode } from "./dark-mode/dark-mode";
2
2
  import DarkModeSwitch from "./dark-mode/dark-mode.vue";
3
- import MyUtil from "./MyUtil";
4
3
  import { useTheme } from "./theme/theme";
5
4
  import ThemeSwitcher from "./theme/theme-switcher.vue";
6
- export { MyUtil, DarkModeSwitch, ThemeSwitcher, useDarkMode, useTheme };
5
+ import CodeBlock from "./code-block/code-block.vue";
6
+ export { DarkModeSwitch, ThemeSwitcher, useDarkMode, useTheme, CodeBlock };