@orcestr/ui 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/components/AppShell/AppShell.d.ts +11 -0
- package/dist/components/AppShell/AppShell.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.js +8 -6
- package/dist/components/AppSidebar/AppSidebar.d.ts.map +1 -1
- package/dist/components/AppSidebar/AppSidebar.js +71 -7
- package/dist/components/Collapse/Collapse.d.ts.map +1 -1
- package/dist/components/Collapse/Collapse.js +5 -25
- package/dist/components/CopyButton/CopyButton.d.ts +24 -0
- package/dist/components/CopyButton/CopyButton.d.ts.map +1 -0
- package/dist/components/CopyButton/CopyButton.js +81 -0
- package/dist/components/Drawer/Drawer.d.ts +2 -1
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.js +2 -2
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.js +15 -4
- package/dist/components/Toast/Toast.d.ts +0 -4
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/Toast.js +60 -36
- package/dist/example/CodePreview.d.ts +2 -1
- package/dist/example/CodePreview.d.ts.map +1 -1
- package/dist/example/CodePreview.js +13 -48
- package/dist/example/ExampleActionsSection.d.ts.map +1 -1
- package/dist/example/ExampleActionsSection.js +2 -2
- package/dist/example/ExampleApplicationSection.d.ts.map +1 -1
- package/dist/example/ExampleApplicationSection.js +27 -7
- package/dist/example/ExampleBasicsSections.d.ts +1 -1
- package/dist/example/ExampleBasicsSections.d.ts.map +1 -1
- package/dist/example/ExampleBasicsSections.js +12 -6
- package/dist/example/ExampleOverlaysSection.d.ts.map +1 -1
- package/dist/example/ExampleOverlaysSection.js +15 -28
- package/dist/example/ExampleStateSection.d.ts.map +1 -1
- package/dist/example/ExampleStateSection.js +12 -11
- package/dist/example/ExampleThemePlayground.d.ts +1 -1
- package/dist/example/ExampleThemePlayground.d.ts.map +1 -1
- package/dist/example/ExampleThemePlayground.js +10 -7
- package/dist/example/UiExamplePage.d.ts.map +1 -1
- package/dist/example/UiExamplePage.js +34 -43
- package/dist/example/codeSamples.d.ts +1 -1
- package/dist/example/codeSamples.d.ts.map +1 -1
- package/dist/example/codeSamples.js +171 -69
- package/dist/example/exampleData.d.ts.map +1 -1
- package/dist/example/exampleData.js +3 -9
- package/dist/example/styles.css +79 -119
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/styles/orcestr-ui.css +395 -138
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/ThemeProvider.js +19 -17
- package/dist/theme/defaultTheme.d.ts.map +1 -1
- package/dist/theme/defaultTheme.js +42 -37
- package/dist/theme/themeTypes.d.ts +23 -18
- package/dist/theme/themeTypes.d.ts.map +1 -1
- package/package.json +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeProvider.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAGR,yBAAyB,EAE5B,MAAM,cAAc,CAAC;AAEtB,wBAAgB,oBAAoB,CAAC,EACjC,QAAQ,EACR,IAAI,EAAE,cAAc,EACpB,WAAoB,EACpB,cAA0B,EAC1B,OAAO,EACP,YAAY,EACZ,eAAe,EACf,cAAc,EACd,SAAS,EACT,KAAK,EACL,MAAM,GACT,EAAE,yBAAyB,
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeProvider.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAGR,yBAAyB,EAE5B,MAAM,cAAc,CAAC;AAEtB,wBAAgB,oBAAoB,CAAC,EACjC,QAAQ,EACR,IAAI,EAAE,cAAc,EACpB,WAAoB,EACpB,cAA0B,EAC1B,OAAO,EACP,YAAY,EACZ,eAAe,EACf,cAAc,EACd,SAAS,EACT,KAAK,EACL,MAAM,GACT,EAAE,yBAAyB,2CA+P3B"}
|
|
@@ -88,9 +88,9 @@ export function OrcestrThemeProvider({ children, mode: controlledMode, defaultMo
|
|
|
88
88
|
'--oui-section-shadow': theme.shadows.section,
|
|
89
89
|
'--oui-shadow-focus': theme.shadows.focus,
|
|
90
90
|
'--oui-ring': theme.colors.focusRing,
|
|
91
|
-
'--oui-radius': theme.
|
|
92
|
-
'--oui-radius-sm': theme.
|
|
93
|
-
'--oui-radius-xl': theme.
|
|
91
|
+
'--oui-radius': theme.radius.lg,
|
|
92
|
+
'--oui-radius-sm': theme.radius.md,
|
|
93
|
+
'--oui-radius-xl': theme.radius.xl,
|
|
94
94
|
'--oui-space-px': theme.spacing.px,
|
|
95
95
|
'--oui-space-xs': theme.spacing.xs,
|
|
96
96
|
'--oui-space-sm': theme.spacing.sm,
|
|
@@ -104,19 +104,19 @@ export function OrcestrThemeProvider({ children, mode: controlledMode, defaultMo
|
|
|
104
104
|
'--oui-breakpoint-tablet': theme.breakpoints.tablet,
|
|
105
105
|
'--oui-breakpoint-desktop': theme.breakpoints.desktop,
|
|
106
106
|
'--oui-breakpoint-wide': theme.breakpoints.wide,
|
|
107
|
-
'--oui-font-family': theme.
|
|
108
|
-
'--oui-font-family-mono': theme.
|
|
109
|
-
'--oui-title-size': theme.
|
|
110
|
-
'--oui-heading-size': theme.
|
|
111
|
-
'--oui-body-size': theme.
|
|
112
|
-
'--oui-compact-size': theme.
|
|
113
|
-
'--oui-label-size': theme.
|
|
114
|
-
'--oui-line-height': theme.
|
|
115
|
-
'--oui-heading-line-height': theme.
|
|
116
|
-
'--oui-weight-regular': theme.
|
|
117
|
-
'--oui-weight-medium': theme.
|
|
118
|
-
'--oui-weight-bold': theme.
|
|
119
|
-
'--oui-letter-spacing': theme.
|
|
107
|
+
'--oui-font-family': theme.text.family,
|
|
108
|
+
'--oui-font-family-mono': theme.text.mono,
|
|
109
|
+
'--oui-title-size': theme.text.title,
|
|
110
|
+
'--oui-heading-size': theme.text.heading,
|
|
111
|
+
'--oui-body-size': theme.text.body,
|
|
112
|
+
'--oui-compact-size': theme.text.compact,
|
|
113
|
+
'--oui-label-size': theme.text.label,
|
|
114
|
+
'--oui-line-height': theme.text.line,
|
|
115
|
+
'--oui-heading-line-height': theme.text.headingLine,
|
|
116
|
+
'--oui-weight-regular': theme.text.regular,
|
|
117
|
+
'--oui-weight-medium': theme.text.medium,
|
|
118
|
+
'--oui-weight-bold': theme.text.bold,
|
|
119
|
+
'--oui-letter-spacing': theme.text.letterSpacing,
|
|
120
120
|
'--oui-status-neutral': theme.status.neutral.color,
|
|
121
121
|
'--oui-status-neutral-text': theme.status.neutral.text,
|
|
122
122
|
'--oui-status-neutral-soft': theme.status.neutral.soft,
|
|
@@ -156,11 +156,13 @@ export function OrcestrThemeProvider({ children, mode: controlledMode, defaultMo
|
|
|
156
156
|
'--oui-z-toast': theme.zIndex.toast,
|
|
157
157
|
'--oui-toast-bg': theme.toast.background,
|
|
158
158
|
'--oui-toast-blur': cssBlur(theme.toast.blur),
|
|
159
|
-
'--oui-toast-border-color': theme.toast.borderColor,
|
|
160
159
|
'--oui-toast-shadow': theme.toast.shadow,
|
|
161
160
|
'--oui-toast-animation-duration': theme.toast.animationDuration,
|
|
162
161
|
'--oui-toast-exit-duration': theme.toast.exitDuration,
|
|
163
162
|
'--oui-toast-progress-height': theme.toast.progressHeight,
|
|
163
|
+
'--oui-scrollbar-thumb': theme.scrollbar.thumb,
|
|
164
|
+
'--oui-scrollbar-thumb-hover': theme.scrollbar.thumbHover,
|
|
165
|
+
'--oui-scrollbar-track': theme.scrollbar.track,
|
|
164
166
|
'--oui-state-hover-opacity': theme.states.hoverOpacity,
|
|
165
167
|
'--oui-state-active-opacity': theme.states.activeOpacity,
|
|
166
168
|
'--oui-state-disabled-opacity': theme.states.disabledOpacity,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultTheme.d.ts","sourceRoot":"","sources":["../../src/theme/defaultTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACtB,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,6BAA6B,GAAG;IACxC,KAAK,EAAE,mBAAmB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAC5C,mBAAmB,EACnB,6BAA6B,CAsBhC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,EAK/D,CAAC;
|
|
1
|
+
{"version":3,"file":"defaultTheme.d.ts","sourceRoot":"","sources":["../../src/theme/defaultTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACtB,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,6BAA6B,GAAG;IACxC,KAAK,EAAE,mBAAmB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAC5C,mBAAmB,EACnB,6BAA6B,CAsBhC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,EAK/D,CAAC;AAqlBF,wBAAgB,WAAW,CACvB,IAAI,EAAE,gBAAgB,EACtB,OAAO,GAAE,mBAA+B,EACxC,cAAc,CAAC,EAAE,qBAAqB,GACvC,YAAY,CASd;AAED,eAAO,MAAM,SAAS,EAAE,YAAkC,CAAC;AAC3D,eAAO,MAAM,UAAU,EAAE,YAAmC,CAAC"}
|
|
@@ -27,7 +27,7 @@ export const orcestrThemeSurfaces = [
|
|
|
27
27
|
orcestrThemeSurfaceRegistry.catalog,
|
|
28
28
|
];
|
|
29
29
|
const sharedStructure = {
|
|
30
|
-
|
|
30
|
+
radius: {
|
|
31
31
|
sm: '4px',
|
|
32
32
|
md: '6px',
|
|
33
33
|
lg: '8px',
|
|
@@ -51,19 +51,19 @@ const sharedStructure = {
|
|
|
51
51
|
desktop: '1024px',
|
|
52
52
|
wide: '1440px',
|
|
53
53
|
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
54
|
+
text: {
|
|
55
|
+
family: 'var(--font-manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif)',
|
|
56
|
+
mono: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace',
|
|
57
|
+
title: '22px',
|
|
58
|
+
heading: '18px',
|
|
59
|
+
body: '14px',
|
|
60
|
+
compact: '13px',
|
|
61
|
+
label: '12px',
|
|
62
|
+
line: '1.45',
|
|
63
|
+
headingLine: '1.18',
|
|
64
|
+
regular: 450,
|
|
65
|
+
medium: 650,
|
|
66
|
+
bold: 760,
|
|
67
67
|
letterSpacing: '0',
|
|
68
68
|
},
|
|
69
69
|
motion: {
|
|
@@ -232,14 +232,18 @@ const darkBase = {
|
|
|
232
232
|
},
|
|
233
233
|
}),
|
|
234
234
|
toast: {
|
|
235
|
-
background: 'rgb(12 12 15 /
|
|
236
|
-
blur:
|
|
237
|
-
|
|
238
|
-
shadow: '0 10px 30px rgb(0 0 0 / 20%)',
|
|
235
|
+
background: 'rgb(12 12 15 / 5%)',
|
|
236
|
+
blur: 6,
|
|
237
|
+
shadow: '0 16px 40px rgb(0 0 0 / 30%)',
|
|
239
238
|
animationDuration: '420ms',
|
|
240
239
|
exitDuration: '320ms',
|
|
241
240
|
progressHeight: '2px',
|
|
242
241
|
},
|
|
242
|
+
scrollbar: {
|
|
243
|
+
thumb: 'color-mix(in srgb, var(--oui-bg) 96%, var(--oui-text) 4%)',
|
|
244
|
+
thumbHover: 'color-mix(in srgb, var(--oui-bg) 93%, var(--oui-text) 7%)',
|
|
245
|
+
track: 'transparent',
|
|
246
|
+
},
|
|
243
247
|
...sharedStructure,
|
|
244
248
|
};
|
|
245
249
|
const lightBase = {
|
|
@@ -365,14 +369,18 @@ const lightBase = {
|
|
|
365
369
|
},
|
|
366
370
|
}),
|
|
367
371
|
toast: {
|
|
368
|
-
background: 'rgb(255 255 255 /
|
|
369
|
-
blur:
|
|
370
|
-
|
|
371
|
-
shadow: '0 10px 30px rgb(15 23 42 / 12%)',
|
|
372
|
+
background: 'rgb(255 255 255 / 5%)',
|
|
373
|
+
blur: 6,
|
|
374
|
+
shadow: '0 16px 40px rgb(15 23 42 / 16%)',
|
|
372
375
|
animationDuration: '420ms',
|
|
373
376
|
exitDuration: '320ms',
|
|
374
377
|
progressHeight: '2px',
|
|
375
378
|
},
|
|
379
|
+
scrollbar: {
|
|
380
|
+
thumb: 'color-mix(in srgb, var(--oui-bg) 95%, var(--oui-text) 5%)',
|
|
381
|
+
thumbHover: 'color-mix(in srgb, var(--oui-bg) 92%, var(--oui-text) 8%)',
|
|
382
|
+
track: 'transparent',
|
|
383
|
+
},
|
|
376
384
|
...sharedStructure,
|
|
377
385
|
};
|
|
378
386
|
const surfaceOverrides = {
|
|
@@ -389,7 +397,7 @@ const surfaceOverrides = {
|
|
|
389
397
|
floating: '#0c0c0f',
|
|
390
398
|
},
|
|
391
399
|
toast: {
|
|
392
|
-
background: 'rgb(12 12 15 /
|
|
400
|
+
background: 'rgb(12 12 15 / 5%)',
|
|
393
401
|
},
|
|
394
402
|
components: {
|
|
395
403
|
buttonFontWeight: 500,
|
|
@@ -405,7 +413,7 @@ const surfaceOverrides = {
|
|
|
405
413
|
floating: '#ffffff',
|
|
406
414
|
},
|
|
407
415
|
toast: {
|
|
408
|
-
background: 'rgb(255 255 255 /
|
|
416
|
+
background: 'rgb(255 255 255 / 5%)',
|
|
409
417
|
},
|
|
410
418
|
components: {
|
|
411
419
|
buttonFontWeight: 500,
|
|
@@ -446,11 +454,10 @@ const surfaceOverrides = {
|
|
|
446
454
|
},
|
|
447
455
|
},
|
|
448
456
|
toast: {
|
|
449
|
-
background: 'rgb(29 24 32 /
|
|
450
|
-
borderColor: 'rgb(255 193 231 / 16%)',
|
|
457
|
+
background: 'rgb(29 24 32 / 5%)',
|
|
451
458
|
shadow: '0 12px 32px rgb(0 0 0 / 22%)',
|
|
452
459
|
},
|
|
453
|
-
|
|
460
|
+
radius: {
|
|
454
461
|
md: '8px',
|
|
455
462
|
lg: '10px',
|
|
456
463
|
},
|
|
@@ -485,10 +492,9 @@ const surfaceOverrides = {
|
|
|
485
492
|
},
|
|
486
493
|
},
|
|
487
494
|
toast: {
|
|
488
|
-
background: 'rgb(255 255 255 /
|
|
489
|
-
borderColor: 'rgb(192 38 127 / 13%)',
|
|
495
|
+
background: 'rgb(255 255 255 / 5%)',
|
|
490
496
|
},
|
|
491
|
-
|
|
497
|
+
radius: {
|
|
492
498
|
md: '8px',
|
|
493
499
|
lg: '10px',
|
|
494
500
|
},
|
|
@@ -526,10 +532,9 @@ const surfaceOverrides = {
|
|
|
526
532
|
},
|
|
527
533
|
},
|
|
528
534
|
toast: {
|
|
529
|
-
background: 'rgb(25 23 18 /
|
|
530
|
-
borderColor: 'rgb(241 217 144 / 15%)',
|
|
535
|
+
background: 'rgb(25 23 18 / 5%)',
|
|
531
536
|
},
|
|
532
|
-
|
|
537
|
+
radius: {
|
|
533
538
|
md: '6px',
|
|
534
539
|
lg: '8px',
|
|
535
540
|
},
|
|
@@ -564,8 +569,7 @@ const surfaceOverrides = {
|
|
|
564
569
|
},
|
|
565
570
|
},
|
|
566
571
|
toast: {
|
|
567
|
-
background: 'rgb(255 255 255 /
|
|
568
|
-
borderColor: 'rgb(155 111 18 / 13%)',
|
|
572
|
+
background: 'rgb(255 255 255 / 5%)',
|
|
569
573
|
},
|
|
570
574
|
},
|
|
571
575
|
},
|
|
@@ -579,16 +583,17 @@ function mergeTheme(baseTheme, overrides) {
|
|
|
579
583
|
mode: baseTheme.mode,
|
|
580
584
|
surface: baseTheme.surface,
|
|
581
585
|
colors: mergeColors(baseTheme.colors, overrides.colors),
|
|
582
|
-
|
|
586
|
+
radius: { ...baseTheme.radius, ...overrides.radius },
|
|
583
587
|
spacing: { ...baseTheme.spacing, ...overrides.spacing },
|
|
584
588
|
breakpoints: { ...baseTheme.breakpoints, ...overrides.breakpoints },
|
|
585
589
|
shadows: { ...baseTheme.shadows, ...overrides.shadows },
|
|
586
|
-
|
|
590
|
+
text: { ...baseTheme.text, ...overrides.text },
|
|
587
591
|
status: mergeStatus(baseTheme.status, overrides.status),
|
|
588
592
|
motion: { ...baseTheme.motion, ...overrides.motion },
|
|
589
593
|
density: { ...baseTheme.density, ...overrides.density },
|
|
590
594
|
zIndex: { ...baseTheme.zIndex, ...overrides.zIndex },
|
|
591
595
|
toast: { ...baseTheme.toast, ...overrides.toast },
|
|
596
|
+
scrollbar: { ...baseTheme.scrollbar, ...overrides.scrollbar },
|
|
592
597
|
states: { ...baseTheme.states, ...overrides.states },
|
|
593
598
|
components: { ...baseTheme.components, ...overrides.components },
|
|
594
599
|
};
|
|
@@ -41,7 +41,7 @@ export type OrcestrTheme = {
|
|
|
41
41
|
padHover: string;
|
|
42
42
|
skeletonShimmer: string;
|
|
43
43
|
};
|
|
44
|
-
|
|
44
|
+
radius: {
|
|
45
45
|
sm: string;
|
|
46
46
|
md: string;
|
|
47
47
|
lg: string;
|
|
@@ -72,19 +72,19 @@ export type OrcestrTheme = {
|
|
|
72
72
|
section: string;
|
|
73
73
|
focus: string;
|
|
74
74
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
75
|
+
text: {
|
|
76
|
+
family: string;
|
|
77
|
+
mono: string;
|
|
78
|
+
title: string;
|
|
79
|
+
heading: string;
|
|
80
|
+
body: string;
|
|
81
|
+
compact: string;
|
|
82
|
+
label: string;
|
|
83
|
+
line: string;
|
|
84
|
+
headingLine: string;
|
|
85
|
+
regular: number;
|
|
86
|
+
medium: number;
|
|
87
|
+
bold: number;
|
|
88
88
|
letterSpacing: string;
|
|
89
89
|
};
|
|
90
90
|
status: {
|
|
@@ -111,12 +111,16 @@ export type OrcestrTheme = {
|
|
|
111
111
|
toast: {
|
|
112
112
|
background: string;
|
|
113
113
|
blur: number | string | false;
|
|
114
|
-
borderColor: string;
|
|
115
114
|
shadow: string;
|
|
116
115
|
animationDuration: string;
|
|
117
116
|
exitDuration: string;
|
|
118
117
|
progressHeight: string;
|
|
119
118
|
};
|
|
119
|
+
scrollbar: {
|
|
120
|
+
thumb: string;
|
|
121
|
+
thumbHover: string;
|
|
122
|
+
track: string;
|
|
123
|
+
};
|
|
120
124
|
states: {
|
|
121
125
|
hoverOpacity: number;
|
|
122
126
|
activeOpacity: number;
|
|
@@ -148,18 +152,19 @@ export type OrcestrTheme = {
|
|
|
148
152
|
modalMaxWidth: string;
|
|
149
153
|
};
|
|
150
154
|
};
|
|
151
|
-
export type OrcestrThemeOverrides = Partial<Omit<OrcestrTheme, 'colors' | 'mode' | 'surface' | 'motion' | '
|
|
155
|
+
export type OrcestrThemeOverrides = Partial<Omit<OrcestrTheme, 'colors' | 'mode' | 'surface' | 'motion' | 'radius' | 'spacing' | 'breakpoints' | 'shadows' | 'density' | 'zIndex' | 'toast' | 'scrollbar' | 'text' | 'status' | 'states' | 'components'>> & {
|
|
152
156
|
colors?: PartialColorOverrides;
|
|
153
|
-
|
|
157
|
+
radius?: Partial<OrcestrTheme['radius']>;
|
|
154
158
|
spacing?: Partial<OrcestrTheme['spacing']>;
|
|
155
159
|
breakpoints?: Partial<OrcestrTheme['breakpoints']>;
|
|
156
160
|
shadows?: Partial<OrcestrTheme['shadows']>;
|
|
157
|
-
|
|
161
|
+
text?: Partial<OrcestrTheme['text']>;
|
|
158
162
|
status?: PartialStatusOverrides;
|
|
159
163
|
motion?: Partial<OrcestrTheme['motion']>;
|
|
160
164
|
density?: Partial<OrcestrTheme['density']>;
|
|
161
165
|
zIndex?: Partial<OrcestrTheme['zIndex']>;
|
|
162
166
|
toast?: Partial<OrcestrTheme['toast']>;
|
|
167
|
+
scrollbar?: Partial<OrcestrTheme['scrollbar']>;
|
|
163
168
|
states?: Partial<OrcestrTheme['states']>;
|
|
164
169
|
components?: Partial<OrcestrTheme['components']>;
|
|
165
170
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themeTypes.d.ts","sourceRoot":"","sources":["../../src/theme/themeTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAEpD,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,OAAO,CAAC;AAChD,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,CAAC;AACjF,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAC3E,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;AAC3D,MAAM,MAAM,qBAAqB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,MAAM,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC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AU,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACpC,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAChD,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACzD,cAAc,CAAC,EAAE,qBAAqB,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orcestr/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Shared React UI package for Orcestr products.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -46,6 +46,8 @@
|
|
|
46
46
|
"build": "npm run clean && tsc -p tsconfig.build.json && npm run build:styles",
|
|
47
47
|
"build:styles": "sass src/styles/orcestr-ui.sass dist/styles/orcestr-ui.css --no-source-map && sass src/example/styles.sass dist/example/styles.css --no-source-map",
|
|
48
48
|
"check": "npm run typecheck",
|
|
49
|
+
"format": "prettier --write \"**/*.{ts,tsx,mts,cts,js,jsx,mjs,cjs,json,md,yml,yaml}\"",
|
|
50
|
+
"format:check": "prettier --check \"**/*.{ts,tsx,mts,cts,js,jsx,mjs,cjs,json,md,yml,yaml}\"",
|
|
49
51
|
"pack:dry-run": "npm pack --dry-run",
|
|
50
52
|
"release:patch": "node scripts/release.mjs patch",
|
|
51
53
|
"release:minor": "node scripts/release.mjs minor",
|
|
@@ -69,6 +71,7 @@
|
|
|
69
71
|
"@types/node": "25.6.0",
|
|
70
72
|
"@types/react": "19.2.14",
|
|
71
73
|
"@types/react-dom": "19.2.3",
|
|
74
|
+
"prettier": "^3.9.4",
|
|
72
75
|
"react": "19.2.5",
|
|
73
76
|
"react-dom": "19.2.5",
|
|
74
77
|
"react-icons": "5.6.0",
|