bison-web-components 1.0.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.
package/package.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "bison-web-components",
3
+ "version": "1.0.0",
4
+ "description": "Bison JIB's suite of web components",
5
+ "main": "component.js",
6
+ "type": "module",
7
+ "keywords": [
8
+ "web component",
9
+ "form",
10
+ "custom element"
11
+ ],
12
+ "author": "Your Name",
13
+ "license": "MIT"
14
+ }
package/test.js ADDED
@@ -0,0 +1,3 @@
1
+ import { BisonJibPayAPI } from './api.js';
2
+ const api = new BisonJibPayAPI("https://bison-backend-development-hhgrdbhcbwhahdfk.southeastasia-01.azurewebsites.net", "BwVEfJ2u5y2JPsX8qGxtXlIhHyhu3qU2VW2y6Nf9Qc6KTsETvr");
3
+ api.findOperatorFromEnverus("12345").then(console.log).catch(console.error);
package/test.mjs ADDED
@@ -0,0 +1,3 @@
1
+ import { BisonJibPayAPI } from './api.js';
2
+ const api = new BisonJibPayAPI("https://bison-backend-development-hhgrdbhcbwhahdfk.southeastasia-01.azurewebsites.net", "BwVEfJ2u5y2JPsX8qGxtXlIhHyhu3qU2VW2y6Nf9Qc6KTsETvr");
3
+ api.findOperatorFromEnverus("12345").then(console.log).catch(console.error);
package/theme.css ADDED
@@ -0,0 +1,312 @@
1
+ @theme {
2
+ /* ----- COLORS ----- */
3
+ --color-orange-100: oklch(95.4% 0.038 75.164);
4
+ --color-orange-600: oklch(64.6% 0.222 41.116);
5
+ --color-gray-50: oklch(98.5% 0.002 247.839);
6
+ --color-gray-100: oklch(96.7% 0.003 264.542);
7
+ --color-gray-200: oklch(92.8% 0.006 264.531);
8
+ --color-gray-400: oklch(70.7% 0.022 261.325);
9
+ --color-gray-500: oklch(55.1% 0.027 264.364);
10
+ --color-gray-600: oklch(44.6% 0.03 256.802);
11
+ --color-gray-700: oklch(37.3% 0.034 259.733);
12
+ --color-black: #000;
13
+ --color-white: #fff;
14
+
15
+ --color-primary: #4c7b63;
16
+ --color-primary-light: #e8f0eb;
17
+ --color-headline: #0f2a39;
18
+ --color-secondary: #5f6e78;
19
+ --color-success: #22c55e;
20
+ --color-warning: #f59e0b;
21
+ --color-error: #dd524b;
22
+ --color-sidebar: #fafafa;
23
+ --color-border: #e8e8e8;
24
+
25
+ /* ----- SPACING ----- */
26
+ --spacing: 0.25rem;
27
+ --spacing-xs: 0.25rem;
28
+ --spacing-sm: 0.5rem;
29
+ --spacing-md: 1rem;
30
+ --spacing-lg: 1.5rem;
31
+ --spacing-xl: 2rem;
32
+ --spacing-2xl: 3rem;
33
+
34
+ /* ----- CONTAINERS ----- */
35
+ --container-xs: 20rem;
36
+ --container-sm: 24rem;
37
+ --container-md: 28rem;
38
+ --container-lg: 32rem;
39
+ --container-xl: 36rem;
40
+ --container-2xl: 42rem;
41
+ --container-3xl: 48rem;
42
+ --container-4xl: 56rem;
43
+ --container-6xl: 72rem;
44
+
45
+ /* ----- TEXT SIZES ----- */
46
+ --text-xs: 0.75rem;
47
+ --text-xs--line-height: calc(1 / 0.75);
48
+ --text-sm: 0.875rem;
49
+ --text-sm--line-height: calc(1.25 / 0.875);
50
+ --text-base: 1rem;
51
+ --text-base--line-height: 1.5;
52
+ --text-lg: 1.125rem;
53
+ --text-lg--line-height: calc(1.75 / 1.125);
54
+ --text-xl: 1.25rem;
55
+ --text-xl--line-height: calc(1.75 / 1.25);
56
+ --text-2xl: 1.5rem;
57
+ --text-2xl--line-height: calc(2 / 1.5);
58
+ --text-3xl: 1.875rem;
59
+ --text-3xl--line-height: 1.2;
60
+ --text-8xl: 6rem;
61
+ --text-8xl--line-height: 1;
62
+
63
+ /* ----- FONT WEIGHTS ----- */
64
+ --font-weight-medium: 500;
65
+ --font-weight-semibold: 600;
66
+ --font-weight-bold: 700;
67
+
68
+ /* ----- MISC ----- */
69
+ --tracking-wide: 0.025em;
70
+ --leading-relaxed: 1.625;
71
+ --radius-lg: 0.5rem;
72
+ --radius-xl: 0.75rem;
73
+ --radius-2xl: 1rem;
74
+ --duration-fast: 150ms;
75
+ --duration-normal: 200ms;
76
+ --duration-slow: 300ms;
77
+ --ease-in: cubic-bezier(0.4, 0, 1, 1);
78
+ --ease-out: cubic-bezier(0, 0, 0.2, 1);
79
+ --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
80
+ --animate-spin: spin 1s linear infinite;
81
+ --blur-sm: 8px;
82
+
83
+ --default-transition-duration: 0.15s;
84
+ --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
85
+
86
+ --font-sans: 'Inter', system-ui, sans-serif;
87
+ --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
88
+
89
+ --z-dropdown: 10;
90
+ --z-sticky: 20;
91
+ --z-modal-backdrop: 40;
92
+ --z-modal: 50;
93
+ --z-toast: 60;
94
+ }
95
+
96
+ @layer base {
97
+
98
+ *,
99
+ ::after,
100
+ ::before,
101
+ ::backdrop {
102
+ box-sizing: border-box;
103
+ border: 0 solid;
104
+ margin: 0;
105
+ padding: 0;
106
+ }
107
+
108
+ html,
109
+ :host {
110
+ -webkit-text-size-adjust: 100%;
111
+ tab-size: 4;
112
+ line-height: 1.5;
113
+ font-family: var(--font-sans);
114
+ -webkit-tap-highlight-color: transparent;
115
+ }
116
+
117
+ body {
118
+ line-height: inherit;
119
+ background-color: var(--color-white);
120
+ color: var(--color-secondary);
121
+ -webkit-font-smoothing: antialiased;
122
+ -moz-osx-font-smoothing: grayscale;
123
+ margin: 0;
124
+ }
125
+
126
+ h1,
127
+ h2,
128
+ h3,
129
+ h4,
130
+ h5,
131
+ h6 {
132
+ font-size: inherit;
133
+ font-weight: var(--font-weight-semibold);
134
+ color: var(--color-headline);
135
+ }
136
+
137
+ h1 {
138
+ font-size: var(--text-3xl);
139
+ line-height: 1.2;
140
+ }
141
+
142
+ h2 {
143
+ font-size: var(--text-2xl);
144
+ line-height: 1.33;
145
+ }
146
+
147
+ h3 {
148
+ font-size: var(--text-xl);
149
+ line-height: 1.4;
150
+ }
151
+
152
+ h4 {
153
+ font-size: var(--text-lg);
154
+ line-height: 1.55;
155
+ }
156
+
157
+ a {
158
+ color: inherit;
159
+ text-decoration: inherit;
160
+ }
161
+
162
+ b,
163
+ strong {
164
+ font-weight: bolder;
165
+ }
166
+
167
+ button,
168
+ input,
169
+ select,
170
+ optgroup,
171
+ textarea {
172
+ font-family: inherit;
173
+ font-size: 100%;
174
+ font-weight: inherit;
175
+ line-height: inherit;
176
+ color: inherit;
177
+ margin: 0;
178
+ padding: 0;
179
+ }
180
+
181
+ button,
182
+ select {
183
+ text-transform: none;
184
+ }
185
+
186
+ button,
187
+ [type='button'],
188
+ [type='reset'],
189
+ [type='submit'] {
190
+ -webkit-appearance: button;
191
+ background-color: transparent;
192
+ background-image: none;
193
+ cursor: pointer;
194
+ }
195
+
196
+ /* Custom checkbox styling from production */
197
+ input[type="checkbox"] {
198
+ appearance: none;
199
+ -webkit-appearance: none;
200
+ width: 1.125rem;
201
+ height: 1.125rem;
202
+ border: 1.5px solid var(--color-border);
203
+ border-radius: 0.25rem;
204
+ background-color: white;
205
+ cursor: pointer;
206
+ flex-shrink: 0;
207
+ background-repeat: no-repeat;
208
+ background-position: center;
209
+ margin: 0;
210
+ vertical-align: middle;
211
+ }
212
+
213
+ input[type="checkbox"]:checked {
214
+ border-color: var(--color-primary);
215
+ background-color: var(--color-primary);
216
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
217
+ background-size: 12px;
218
+ }
219
+
220
+ input[type="checkbox"]:hover {
221
+ border-color: var(--color-secondary);
222
+ }
223
+
224
+ input[type="checkbox"]:focus-visible {
225
+ outline: 2px solid var(--color-primary);
226
+ outline-offset: 2px;
227
+ }
228
+
229
+ /* Scrollbar Utilities */
230
+ .scrollbar-hide::-webkit-scrollbar {
231
+ display: none;
232
+ }
233
+
234
+ .scrollbar-subtle::-webkit-scrollbar {
235
+ height: 8px;
236
+ width: 8px;
237
+ }
238
+
239
+ .scrollbar-subtle::-webkit-scrollbar-track {
240
+ background: transparent;
241
+ }
242
+
243
+ .scrollbar-subtle::-webkit-scrollbar-thumb {
244
+ background: var(--color-border);
245
+ border-radius: 4px;
246
+ }
247
+
248
+ .scrollbar-subtle::-webkit-scrollbar-thumb:hover {
249
+ background: var(--color-secondary);
250
+ }
251
+ }
252
+
253
+ @layer utilities {
254
+ .collapse {
255
+ visibility: collapse;
256
+ }
257
+
258
+ /* Additional utilities commonly found */
259
+ .w-full {
260
+ width: 100%;
261
+ }
262
+
263
+ /* Explicitly map max-width utilities to container variables to override spacing collision */
264
+ .max-w-xs {
265
+ max-width: var(--container-xs);
266
+ }
267
+
268
+ .max-w-sm {
269
+ max-width: var(--container-sm);
270
+ }
271
+
272
+ .max-w-md {
273
+ max-width: var(--container-md);
274
+ }
275
+
276
+ .max-w-lg {
277
+ max-width: var(--container-lg);
278
+ }
279
+
280
+ .max-w-xl {
281
+ max-width: var(--container-xl);
282
+ }
283
+
284
+ .max-w-2xl {
285
+ max-width: var(--container-2xl);
286
+ }
287
+
288
+ .max-w-3xl {
289
+ max-width: var(--container-3xl);
290
+ }
291
+
292
+ .max-w-4xl {
293
+ max-width: var(--container-4xl);
294
+ }
295
+
296
+ .max-w-6xl {
297
+ max-width: var(--container-6xl);
298
+ }
299
+ }
300
+
301
+ /* Toast Animation */
302
+ @keyframes slideIn {
303
+ from {
304
+ opacity: 0;
305
+ transform: translateX(100%);
306
+ }
307
+
308
+ to {
309
+ opacity: 1;
310
+ transform: translateX(0);
311
+ }
312
+ }