@omnikit-js/ui 0.4.6 → 0.5.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.
@@ -1,91 +1 @@
1
- /* Essential component-specific styles only */
2
-
3
- /* Pricing text styles */
4
- span.omnikit-price-text {
5
- font-size: 2rem !important;
6
- line-height: 1 !important;
7
- font-weight: 700 !important;
8
- letter-spacing: -0.025em !important;
9
- display: inline-block !important;
10
- }
11
-
12
- .omnikit-price-units {
13
- font-size: 0.875rem;
14
- line-height: 1.25rem;
15
- color: #6b7280;
16
- font-weight: 400;
17
- margin-left: 0.25rem;
18
- }
19
-
20
- /* Feature value styles */
21
- div.omnikit-feature-value {
22
- font-size: 1rem !important;
23
- line-height: 1.5rem !important;
24
- font-weight: 600 !important;
25
- color: #111827 !important;
26
- display: block !important;
27
- }
28
-
29
- .omnikit-feature-units {
30
- font-size: 0.875rem;
31
- color: #6b7280;
32
- font-weight: 400;
33
- }
34
-
35
- .omnikit-feature-name {
36
- font-size: 0.75rem;
37
- line-height: 1rem;
38
- color: #6b7280;
39
- margin-top: 0.25rem;
40
- cursor: help;
41
- }
42
-
43
- /* Boolean feature icons */
44
- div.omnikit-feature-value span.omnikit-boolean-true {
45
- color: #22c55e !important;
46
- font-size: 1rem !important;
47
- }
48
-
49
- div.omnikit-feature-value span.omnikit-boolean-false {
50
- color: #ef4444 !important;
51
- font-size: 1rem !important;
52
- }
53
-
54
- /* Progress bar specific styles */
55
- .omnikit-progress-fill-red { background-color: #ef4444; }
56
- .omnikit-progress-fill-orange { background-color: #f97316; }
57
- .omnikit-progress-fill-yellow { background-color: #eab308; }
58
- .omnikit-progress-fill-green { background-color: #22c55e; }
59
-
60
- /* Usage status colors that might not be in standard Tailwind */
61
- .omnikit-usage-red { color: #dc2626; }
62
- .omnikit-usage-orange { color: #ea580c; }
63
- .omnikit-usage-yellow { color: #d97706; }
64
- .omnikit-usage-green { color: #16a34a; }
65
-
66
- /* Background colors for usage indicators */
67
- .omnikit-bg-red-100 { background-color: #fee2e2; }
68
- .omnikit-bg-orange-100 { background-color: #ffedd5; }
69
- .omnikit-bg-yellow-100 { background-color: #fef3c7; }
70
- .omnikit-bg-green-100 { background-color: #dcfce7; }
71
-
72
- /* Dark mode variants */
73
- @media (prefers-color-scheme: dark) {
74
- .omnikit-usage-red { color: #f87171; }
75
- .omnikit-usage-orange { color: #fb923c; }
76
- .omnikit-usage-yellow { color: #facc15; }
77
- .omnikit-usage-green { color: #4ade80; }
78
-
79
- .omnikit-bg-red-100 { background-color: #450a0a; }
80
- .omnikit-bg-orange-100 { background-color: #431407; }
81
- .omnikit-bg-yellow-100 { background-color: #451a03; }
82
- .omnikit-bg-green-100 { background-color: #14532d; }
83
-
84
- .omnikit-feature-value { color: #ffffff; }
85
- .omnikit-feature-units { color: #9ca3af; }
86
- .omnikit-feature-name { color: #9ca3af; }
87
- .omnikit-price-units { color: #9ca3af; }
88
-
89
- .omnikit-feature-value .omnikit-boolean-true { color: #4ade80; }
90
- .omnikit-feature-value .omnikit-boolean-false { color: #f87171; }
91
- }
1
+ @import "tailwindcss";
@@ -0,0 +1,95 @@
1
+ @import "./globals.css";
2
+
3
+ /* Essential component-specific styles only */
4
+
5
+ /* Pricing text styles */
6
+ span.omnikit-price-text {
7
+ font-size: 2rem !important;
8
+ line-height: 1 !important;
9
+ font-weight: 700 !important;
10
+ letter-spacing: -0.025em !important;
11
+ display: inline-block !important;
12
+ }
13
+
14
+ .omnikit-price-units {
15
+ font-size: 0.875rem;
16
+ line-height: 1.25rem;
17
+ color: #6b7280;
18
+ font-weight: 400;
19
+ margin-left: 0.25rem;
20
+ }
21
+
22
+ /* Feature value styles */
23
+ .omnikit-feature-value {
24
+ font-weight: 600;
25
+ color: #111827;
26
+ }
27
+
28
+ .omnikit-feature-value.unlimited {
29
+ color: #10b981;
30
+ }
31
+
32
+ /* Badge styles */
33
+ .omnikit-badge {
34
+ display: inline-flex;
35
+ align-items: center;
36
+ border-radius: 9999px;
37
+ padding: 0.25rem 0.75rem;
38
+ font-size: 0.75rem;
39
+ font-weight: 600;
40
+ transition: all 150ms;
41
+ }
42
+
43
+ .omnikit-badge.popular {
44
+ background-color: #fbbf24;
45
+ color: #78350f;
46
+ }
47
+
48
+ /* Modal overlay */
49
+ .omnikit-modal-overlay {
50
+ position: fixed;
51
+ inset: 0;
52
+ background-color: rgba(0, 0, 0, 0.5);
53
+ z-index: 50;
54
+ }
55
+
56
+ /* Modal content */
57
+ .omnikit-modal-content {
58
+ position: fixed;
59
+ left: 50%;
60
+ top: 50%;
61
+ transform: translate(-50%, -50%);
62
+ background-color: white;
63
+ padding: 1.5rem;
64
+ border-radius: 0.5rem;
65
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
66
+ z-index: 50;
67
+ max-width: 500px;
68
+ width: 90%;
69
+ max-height: 90vh;
70
+ overflow-y: auto;
71
+ }
72
+
73
+ /* Form input styles */
74
+ .omnikit-input {
75
+ width: 100%;
76
+ padding: 0.5rem;
77
+ border: 1px solid #e5e7eb;
78
+ border-radius: 0.375rem;
79
+ font-size: 0.875rem;
80
+ transition: border-color 150ms;
81
+ }
82
+
83
+ .omnikit-input:focus {
84
+ outline: none;
85
+ border-color: #3b82f6;
86
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
87
+ }
88
+
89
+ .omnikit-input.error {
90
+ border-color: #ef4444;
91
+ }
92
+
93
+ .omnikit-input.error:focus {
94
+ box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
95
+ }
@@ -0,0 +1,95 @@
1
+ @import "./prefixed.css";
2
+
3
+ /* Essential component-specific styles only */
4
+
5
+ /* Pricing text styles */
6
+ span.omnikit-price-text {
7
+ font-size: 2rem !important;
8
+ line-height: 1 !important;
9
+ font-weight: 700 !important;
10
+ letter-spacing: -0.025em !important;
11
+ display: inline-block !important;
12
+ }
13
+
14
+ .omnikit-price-units {
15
+ font-size: 0.875rem;
16
+ line-height: 1.25rem;
17
+ color: #6b7280;
18
+ font-weight: 400;
19
+ margin-left: 0.25rem;
20
+ }
21
+
22
+ /* Feature value styles */
23
+ .omnikit-feature-value {
24
+ font-weight: 600;
25
+ color: #111827;
26
+ }
27
+
28
+ .omnikit-feature-value.unlimited {
29
+ color: #10b981;
30
+ }
31
+
32
+ /* Badge styles */
33
+ .omnikit-badge {
34
+ display: inline-flex;
35
+ align-items: center;
36
+ border-radius: 9999px;
37
+ padding: 0.25rem 0.75rem;
38
+ font-size: 0.75rem;
39
+ font-weight: 600;
40
+ transition: all 150ms;
41
+ }
42
+
43
+ .omnikit-badge.popular {
44
+ background-color: #fbbf24;
45
+ color: #78350f;
46
+ }
47
+
48
+ /* Modal overlay */
49
+ .omnikit-modal-overlay {
50
+ position: fixed;
51
+ inset: 0;
52
+ background-color: rgba(0, 0, 0, 0.5);
53
+ z-index: 50;
54
+ }
55
+
56
+ /* Modal content */
57
+ .omnikit-modal-content {
58
+ position: fixed;
59
+ left: 50%;
60
+ top: 50%;
61
+ transform: translate(-50%, -50%);
62
+ background-color: white;
63
+ padding: 1.5rem;
64
+ border-radius: 0.5rem;
65
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
66
+ z-index: 50;
67
+ max-width: 500px;
68
+ width: 90%;
69
+ max-height: 90vh;
70
+ overflow-y: auto;
71
+ }
72
+
73
+ /* Form input styles */
74
+ .omnikit-input {
75
+ width: 100%;
76
+ padding: 0.5rem;
77
+ border: 1px solid #e5e7eb;
78
+ border-radius: 0.375rem;
79
+ font-size: 0.875rem;
80
+ transition: border-color 150ms;
81
+ }
82
+
83
+ .omnikit-input:focus {
84
+ outline: none;
85
+ border-color: #3b82f6;
86
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
87
+ }
88
+
89
+ .omnikit-input.error {
90
+ border-color: #ef4444;
91
+ }
92
+
93
+ .omnikit-input.error:focus {
94
+ box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
95
+ }
@@ -0,0 +1 @@
1
+ @import "tailwindcss" prefix(tw);