@opensearch-project/oui 2.0.0-alpha.1 → 2.0.0-alpha.2
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/CHANGELOG.md +19 -2
- package/dist/components/custom/avatar.d.ts +2 -2
- package/dist/components/custom/avatar.d.ts.map +1 -1
- package/dist/components/custom/avatar.js +6 -21
- package/dist/components/custom/avatar.js.map +1 -1
- package/dist/components/custom/breadcrumb.d.ts +1 -1
- package/dist/components/custom/breadcrumb.d.ts.map +1 -1
- package/dist/components/custom/breadcrumb.js +3 -18
- package/dist/components/custom/breadcrumb.js.map +1 -1
- package/dist/components/custom/button-group.d.ts +2 -2
- package/dist/components/custom/button-group.d.ts.map +1 -1
- package/dist/components/custom/button-group.js +5 -20
- package/dist/components/custom/button-group.js.map +1 -1
- package/dist/components/custom/button.d.ts +10 -3
- package/dist/components/custom/button.d.ts.map +1 -1
- package/dist/components/custom/button.js +16 -23
- package/dist/components/custom/button.js.map +1 -1
- package/dist/components/custom/checkbox.d.ts +1 -1
- package/dist/components/custom/checkbox.d.ts.map +1 -1
- package/dist/components/custom/checkbox.js +3 -18
- package/dist/components/custom/checkbox.js.map +1 -1
- package/dist/components/custom/combobox.d.ts +1 -1
- package/dist/components/custom/combobox.d.ts.map +1 -1
- package/dist/components/custom/combobox.js +47 -81
- package/dist/components/custom/combobox.js.map +1 -1
- package/dist/components/custom/context-menu.d.ts +4 -4
- package/dist/components/custom/context-menu.d.ts.map +1 -1
- package/dist/components/custom/context-menu.js +9 -20
- package/dist/components/custom/context-menu.js.map +1 -1
- package/dist/components/custom/pagination.d.ts +4 -4
- package/dist/components/custom/pagination.d.ts.map +1 -1
- package/dist/components/custom/pagination.js +9 -28
- package/dist/components/custom/pagination.js.map +1 -1
- package/dist/components/custom/progress.js +9 -19
- package/dist/components/custom/progress.js.map +1 -1
- package/dist/components/custom/radio-group.d.ts +2 -2
- package/dist/components/custom/radio-group.d.ts.map +1 -1
- package/dist/components/custom/radio-group.js +9 -24
- package/dist/components/custom/radio-group.js.map +1 -1
- package/dist/components/custom/select.d.ts +1 -1
- package/dist/components/custom/select.d.ts.map +1 -1
- package/dist/components/custom/select.js +3 -18
- package/dist/components/custom/select.js.map +1 -1
- package/dist/components/custom/switch.d.ts +1 -1
- package/dist/components/custom/switch.d.ts.map +1 -1
- package/dist/components/custom/switch.js +9 -29
- package/dist/components/custom/switch.js.map +1 -1
- package/dist/components/custom/tabs.d.ts +1 -1
- package/dist/components/custom/tabs.d.ts.map +1 -1
- package/dist/components/custom/tabs.js +6 -17
- package/dist/components/custom/tabs.js.map +1 -1
- package/dist/components/ui/accordion.d.ts +4 -4
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion.js +8 -27
- package/dist/components/ui/accordion.js.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +11 -11
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +20 -33
- package/dist/components/ui/alert-dialog.js.map +1 -1
- package/dist/components/ui/alert.d.ts +3 -3
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js +8 -23
- package/dist/components/ui/alert.js.map +1 -1
- package/dist/components/ui/aspect-ratio.d.ts +1 -1
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/components/ui/aspect-ratio.js +2 -13
- package/dist/components/ui/aspect-ratio.js.map +1 -1
- package/dist/components/ui/avatar.d.ts +3 -3
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar.js +7 -22
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/badge.js +5 -20
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +7 -7
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.js +15 -32
- package/dist/components/ui/breadcrumb.js.map +1 -1
- package/dist/components/ui/button-group.d.ts +3 -3
- package/dist/components/ui/button-group.d.ts.map +1 -1
- package/dist/components/ui/button-group.js +9 -24
- package/dist/components/ui/button-group.js.map +1 -1
- package/dist/components/ui/button.d.ts +5 -2
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +12 -21
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/calendar.d.ts +2 -2
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js +20 -38
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.d.ts +7 -7
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js +15 -30
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/carousel.d.ts +5 -5
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel.js +40 -56
- package/dist/components/ui/carousel.js.map +1 -1
- package/dist/components/ui/checkbox.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox.js +3 -20
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/collapsible.d.ts +3 -3
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible.js +4 -15
- package/dist/components/ui/collapsible.js.map +1 -1
- package/dist/components/ui/command.d.ts +9 -9
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/command.js +18 -36
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/context-menu.d.ts +15 -15
- package/dist/components/ui/context-menu.d.ts.map +1 -1
- package/dist/components/ui/context-menu.js +25 -51
- package/dist/components/ui/context-menu.js.map +1 -1
- package/dist/components/ui/dialog.d.ts +10 -10
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +17 -38
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/drawer.d.ts +10 -10
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer.js +17 -32
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +15 -15
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +25 -51
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/form.d.ts +6 -6
- package/dist/components/ui/form.d.ts.map +1 -1
- package/dist/components/ui/form.js +35 -47
- package/dist/components/ui/form.js.map +1 -1
- package/dist/components/ui/hover-card.d.ts +3 -3
- package/dist/components/ui/hover-card.d.ts.map +1 -1
- package/dist/components/ui/hover-card.js +5 -17
- package/dist/components/ui/hover-card.js.map +1 -1
- package/dist/components/ui/input-otp.d.ts +4 -4
- package/dist/components/ui/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp.js +14 -28
- package/dist/components/ui/input-otp.js.map +1 -1
- package/dist/components/ui/input.d.ts +1 -1
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.js +3 -18
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/label.d.ts +1 -1
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/label.js +3 -14
- package/dist/components/ui/label.js.map +1 -1
- package/dist/components/ui/menubar.d.ts +16 -16
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +28 -54
- package/dist/components/ui/menubar.js.map +1 -1
- package/dist/components/ui/navigation-menu.d.ts +8 -8
- package/dist/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu.js +18 -40
- package/dist/components/ui/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination.d.ts +7 -7
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js +15 -36
- package/dist/components/ui/pagination.js.map +1 -1
- package/dist/components/ui/popover.d.ts +4 -4
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +6 -18
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.d.ts +1 -1
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/progress.js +3 -19
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/radio-group.d.ts +2 -2
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group.js +5 -18
- package/dist/components/ui/radio-group.js.map +1 -1
- package/dist/components/ui/resizable.d.ts +3 -3
- package/dist/components/ui/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable.js +6 -22
- package/dist/components/ui/resizable.js.map +1 -1
- package/dist/components/ui/scroll-area.d.ts +2 -2
- package/dist/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/scroll-area.js +6 -21
- package/dist/components/ui/scroll-area.js.map +1 -1
- package/dist/components/ui/select.d.ts +10 -10
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +20 -48
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/separator.d.ts +1 -1
- package/dist/components/ui/separator.d.ts.map +1 -1
- package/dist/components/ui/separator.js +3 -14
- package/dist/components/ui/separator.js.map +1 -1
- package/dist/components/ui/sheet.d.ts +8 -8
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.js +21 -42
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/components/ui/sidebar.d.ts +23 -23
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/sidebar.js +108 -134
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/skeleton.d.ts +1 -1
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/components/ui/skeleton.js +3 -18
- package/dist/components/ui/skeleton.js.map +1 -1
- package/dist/components/ui/slider.d.ts +1 -1
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/slider.js +8 -23
- package/dist/components/ui/slider.js.map +1 -1
- package/dist/components/ui/sonner.d.ts +1 -2
- package/dist/components/ui/sonner.d.ts.map +1 -1
- package/dist/components/ui/sonner.js +9 -24
- package/dist/components/ui/sonner.js.map +1 -1
- package/dist/components/ui/spinner.d.ts +1 -1
- package/dist/components/ui/spinner.d.ts.map +1 -1
- package/dist/components/ui/spinner.js +3 -18
- package/dist/components/ui/spinner.js.map +1 -1
- package/dist/components/ui/switch.d.ts +1 -1
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/switch.js +3 -19
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/table.d.ts +8 -8
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/table.js +17 -29
- package/dist/components/ui/table.js.map +1 -1
- package/dist/components/ui/tabs.d.ts +4 -4
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +9 -24
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/textarea.d.ts +1 -1
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea.js +3 -18
- package/dist/components/ui/textarea.js.map +1 -1
- package/dist/components/ui/toggle-group.d.ts +2 -2
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.js +8 -19
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.d.ts +1 -1
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/toggle.js +4 -15
- package/dist/components/ui/toggle.js.map +1 -1
- package/dist/components/ui/tooltip.d.ts +4 -4
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.js +7 -26
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/hooks/use-mobile.js +6 -6
- package/dist/hooks/use-mobile.js.map +1 -1
- package/dist/lib/react-compat.js +5 -5
- package/dist/lib/react-compat.js.map +1 -1
- package/dist/lib/utils.js +1 -5
- package/dist/lib/utils.js.map +1 -1
- package/dist/style.css +82 -49
- package/dist/style.scoped.css +116 -87
- package/package.json +7 -12
package/dist/style.scoped.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* OUI2 Library - Scoped CSS */
|
|
2
|
-
/* Uses CSS @scope to limit reset styles from .oui2 to .oui2-end */
|
|
2
|
+
/* Uses CSS @scope to limit reset styles from .oui2, body > [data-slot], body > [data-vaul-drawer], body > [data-radix-popper-content-wrapper] to .oui2-end */
|
|
3
3
|
|
|
4
|
-
@scope (.oui2) to (.oui2-end) {
|
|
4
|
+
@scope (.oui2, body > [data-slot], body > [data-vaul-drawer], body > [data-radix-popper-content-wrapper]) to (.oui2-end) {
|
|
5
5
|
/* Include OUI1 reset unsets to prevent conflicts */
|
|
6
6
|
/**
|
|
7
7
|
* OUI1 Reset CSS Unset
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* In @layer theme so applied before shadcn reset css in @layer base
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
@layer
|
|
14
|
+
@layer theme {
|
|
15
15
|
/* Unset box-sizing reset */
|
|
16
16
|
*, *:before, *:after {
|
|
17
17
|
box-sizing: unset;
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
display: none !important;
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
|
|
263
|
+
|
|
264
264
|
/* Apply HTML reset styles to .oui2 root container */
|
|
265
265
|
@layer base {
|
|
266
266
|
:scope {
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
font-feature-settings: var(--oui-default-font-feature-settings, normal);
|
|
272
272
|
font-variation-settings: var(--oui-default-font-variation-settings, normal);
|
|
273
273
|
-webkit-tap-highlight-color: transparent;
|
|
274
|
-
font-size:
|
|
274
|
+
font-size: 14px; /* to override OUI 1 v9 theme */
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
}
|
|
@@ -282,10 +282,6 @@
|
|
|
282
282
|
@layer theme, base, components, utilities;
|
|
283
283
|
@layer theme {
|
|
284
284
|
:root, :host {
|
|
285
|
-
--oui-font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
|
|
286
|
-
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
287
|
-
--oui-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
|
|
288
|
-
"Courier New", monospace;
|
|
289
285
|
--oui-color-red-500: oklch(63.7% 0.237 25.331);
|
|
290
286
|
--oui-color-red-600: oklch(57.7% 0.245 27.325);
|
|
291
287
|
--oui-color-orange-100: oklch(95.4% 0.038 75.164);
|
|
@@ -293,10 +289,13 @@
|
|
|
293
289
|
--oui-color-orange-800: oklch(47% 0.157 37.304);
|
|
294
290
|
--oui-color-yellow-500: oklch(79.5% 0.184 86.047);
|
|
295
291
|
--oui-color-yellow-600: oklch(68.1% 0.162 75.834);
|
|
292
|
+
--oui-color-green-50: oklch(98.2% 0.018 155.826);
|
|
296
293
|
--oui-color-green-100: oklch(96.2% 0.044 156.743);
|
|
294
|
+
--oui-color-green-200: oklch(92.5% 0.084 155.995);
|
|
297
295
|
--oui-color-green-500: oklch(72.3% 0.219 149.579);
|
|
298
296
|
--oui-color-green-600: oklch(62.7% 0.194 149.214);
|
|
299
297
|
--oui-color-green-800: oklch(44.8% 0.119 151.328);
|
|
298
|
+
--oui-color-green-900: oklch(39.3% 0.095 152.535);
|
|
300
299
|
--oui-color-blue-100: oklch(93.2% 0.032 255.585);
|
|
301
300
|
--oui-color-blue-500: oklch(62.3% 0.214 259.815);
|
|
302
301
|
--oui-color-blue-600: oklch(54.6% 0.245 262.881);
|
|
@@ -358,8 +357,8 @@
|
|
|
358
357
|
--oui-aspect-video: 16 / 9;
|
|
359
358
|
--oui-default-transition-duration: 150ms;
|
|
360
359
|
--oui-default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
361
|
-
--oui-default-font-family:
|
|
362
|
-
--oui-default-mono-font-family:
|
|
360
|
+
--oui-default-font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segge UI Emoji', 'Segue UI Symbol';
|
|
361
|
+
--oui-default-mono-font-family: 'Source Code Pro', Consolas, Menlo, Courier, monospace;
|
|
363
362
|
}
|
|
364
363
|
}
|
|
365
364
|
|
|
@@ -1467,6 +1466,9 @@
|
|
|
1467
1466
|
.oui\:border-destructive {
|
|
1468
1467
|
border-color: var(--oui-destructive);
|
|
1469
1468
|
}
|
|
1469
|
+
.oui\:border-green-200 {
|
|
1470
|
+
border-color: var(--oui-color-green-200);
|
|
1471
|
+
}
|
|
1470
1472
|
.oui\:border-green-500 {
|
|
1471
1473
|
border-color: var(--oui-color-green-500);
|
|
1472
1474
|
}
|
|
@@ -1530,12 +1532,21 @@
|
|
|
1530
1532
|
.oui\:bg-destructive {
|
|
1531
1533
|
background-color: var(--oui-destructive);
|
|
1532
1534
|
}
|
|
1535
|
+
.oui\:bg-destructive\/10 {
|
|
1536
|
+
background-color: var(--oui-destructive);
|
|
1537
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1538
|
+
background-color: color-mix(in oklab, var(--oui-destructive) 10%, transparent);
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1533
1541
|
.oui\:bg-foreground {
|
|
1534
1542
|
background-color: var(--oui-foreground);
|
|
1535
1543
|
}
|
|
1536
1544
|
.oui\:bg-gray-400 {
|
|
1537
1545
|
background-color: var(--oui-color-gray-400);
|
|
1538
1546
|
}
|
|
1547
|
+
.oui\:bg-green-50 {
|
|
1548
|
+
background-color: var(--oui-color-green-50);
|
|
1549
|
+
}
|
|
1539
1550
|
.oui\:bg-green-100 {
|
|
1540
1551
|
background-color: var(--oui-color-green-100);
|
|
1541
1552
|
}
|
|
@@ -1782,7 +1793,7 @@
|
|
|
1782
1793
|
vertical-align: middle;
|
|
1783
1794
|
}
|
|
1784
1795
|
.oui\:font-mono {
|
|
1785
|
-
font-family:
|
|
1796
|
+
font-family: 'Source Code Pro', Consolas, Menlo, Courier, monospace;
|
|
1786
1797
|
}
|
|
1787
1798
|
.oui\:text-2xl {
|
|
1788
1799
|
font-size: var(--oui-text-2xl);
|
|
@@ -1909,6 +1920,9 @@
|
|
|
1909
1920
|
.oui\:text-green-800 {
|
|
1910
1921
|
color: var(--oui-color-green-800);
|
|
1911
1922
|
}
|
|
1923
|
+
.oui\:text-green-900 {
|
|
1924
|
+
color: var(--oui-color-green-900);
|
|
1925
|
+
}
|
|
1912
1926
|
.oui\:text-muted-foreground {
|
|
1913
1927
|
color: var(--oui-muted-foreground);
|
|
1914
1928
|
}
|
|
@@ -2588,6 +2602,13 @@
|
|
|
2588
2602
|
}
|
|
2589
2603
|
}
|
|
2590
2604
|
}
|
|
2605
|
+
.oui\:hover\:bg-blue-600 {
|
|
2606
|
+
&:hover {
|
|
2607
|
+
@media (hover: hover) {
|
|
2608
|
+
background-color: var(--oui-color-blue-600);
|
|
2609
|
+
}
|
|
2610
|
+
}
|
|
2611
|
+
}
|
|
2591
2612
|
.oui\:hover\:bg-destructive\/90 {
|
|
2592
2613
|
&:hover {
|
|
2593
2614
|
@media (hover: hover) {
|
|
@@ -4978,117 +4999,125 @@
|
|
|
4978
4999
|
}
|
|
4979
5000
|
:root {
|
|
4980
5001
|
--oui-background: #fff;
|
|
4981
|
-
--oui-foreground: oklch(
|
|
5002
|
+
--oui-foreground: oklch(14.5% 0 0);
|
|
4982
5003
|
--oui-card: #fff;
|
|
4983
|
-
--oui-card-foreground: oklch(
|
|
5004
|
+
--oui-card-foreground: oklch(14.5% 0 0);
|
|
4984
5005
|
--oui-popover: #fff;
|
|
4985
|
-
--oui-popover-foreground: oklch(
|
|
4986
|
-
--oui-primary: oklch(
|
|
4987
|
-
--oui-primary-foreground: oklch(98.
|
|
4988
|
-
--oui-secondary: oklch(
|
|
5006
|
+
--oui-popover-foreground: oklch(14.5% 0 0);
|
|
5007
|
+
--oui-primary: oklch(50% 0.134 242.749);
|
|
5008
|
+
--oui-primary-foreground: oklch(98.5% 0 0);
|
|
5009
|
+
--oui-secondary: oklch(97% 0 0);
|
|
4989
5010
|
--oui-secondary-foreground: oklch(20.5% 0 0);
|
|
4990
|
-
--oui-muted: oklch(
|
|
4991
|
-
--oui-muted-foreground: oklch(55.
|
|
4992
|
-
--oui-accent: oklch(
|
|
4993
|
-
--oui-accent-foreground: oklch(20.
|
|
5011
|
+
--oui-muted: oklch(97% 0 0);
|
|
5012
|
+
--oui-muted-foreground: oklch(55.6% 0 0);
|
|
5013
|
+
--oui-accent: oklch(97% 0 0);
|
|
5014
|
+
--oui-accent-foreground: oklch(20.5% 0 0);
|
|
4994
5015
|
--oui-destructive: oklch(57.7% 0.245 27.325);
|
|
4995
5016
|
--oui-destructive-foreground: oklch(97.1% 0.013 17.38);
|
|
4996
|
-
--oui-border: oklch(92.
|
|
4997
|
-
--oui-input: oklch(92.
|
|
4998
|
-
--oui-ring: oklch(
|
|
5017
|
+
--oui-border: oklch(92.2% 0 0);
|
|
5018
|
+
--oui-input: oklch(92.2% 0 0);
|
|
5019
|
+
--oui-ring: oklch(50% 0.134 242.749);
|
|
4999
5020
|
--oui-chart-1: oklch(64.6% 0.222 41.116);
|
|
5000
5021
|
--oui-chart-2: oklch(60% 0.118 184.704);
|
|
5001
5022
|
--oui-chart-3: oklch(39.8% 0.07 227.392);
|
|
5002
5023
|
--oui-chart-4: oklch(82.8% 0.189 84.429);
|
|
5003
5024
|
--oui-chart-5: oklch(76.9% 0.188 70.08);
|
|
5004
5025
|
--oui-radius: 0.625rem;
|
|
5005
|
-
--oui-sidebar: oklch(98.
|
|
5006
|
-
--oui-sidebar-foreground: oklch(
|
|
5007
|
-
--oui-sidebar-primary: oklch(20.
|
|
5008
|
-
--oui-sidebar-primary-foreground: oklch(98.
|
|
5009
|
-
--oui-sidebar-accent: oklch(
|
|
5010
|
-
--oui-sidebar-accent-foreground: oklch(20.
|
|
5011
|
-
--oui-sidebar-border: oklch(92.
|
|
5012
|
-
--oui-sidebar-ring: oklch(70.
|
|
5026
|
+
--oui-sidebar: oklch(98.5% 0 0);
|
|
5027
|
+
--oui-sidebar-foreground: oklch(14.5% 0 0);
|
|
5028
|
+
--oui-sidebar-primary: oklch(20.5% 0 0);
|
|
5029
|
+
--oui-sidebar-primary-foreground: oklch(98.5% 0 0);
|
|
5030
|
+
--oui-sidebar-accent: oklch(97% 0 0);
|
|
5031
|
+
--oui-sidebar-accent-foreground: oklch(20.5% 0 0);
|
|
5032
|
+
--oui-sidebar-border: oklch(92.2% 0 0);
|
|
5033
|
+
--oui-sidebar-ring: oklch(70.8% 0 0);
|
|
5013
5034
|
--oui-severity-low: oklch(82.8% 0.189 84.429);
|
|
5014
5035
|
--oui-severity-med: oklch(66.6% 0.179 58.318);
|
|
5015
5036
|
--oui-severity-high: oklch(55.3% 0.195 38.402);
|
|
5016
5037
|
--oui-severity-critical: oklch(44.4% 0.177 26.899);
|
|
5017
5038
|
}
|
|
5018
5039
|
.dark {
|
|
5019
|
-
--oui-background: oklch(
|
|
5020
|
-
--oui-foreground: oklch(98.
|
|
5021
|
-
--oui-card: oklch(20.
|
|
5022
|
-
--oui-card-foreground: oklch(98.
|
|
5023
|
-
--oui-popover: oklch(
|
|
5024
|
-
--oui-popover-foreground: oklch(98.
|
|
5025
|
-
--oui-primary: oklch(
|
|
5026
|
-
--oui-primary-foreground: oklch(98.
|
|
5027
|
-
--oui-secondary: oklch(
|
|
5028
|
-
--oui-secondary-foreground: oklch(98.
|
|
5029
|
-
--oui-muted: oklch(
|
|
5030
|
-
--oui-muted-foreground: oklch(70.
|
|
5031
|
-
--oui-accent: oklch(37.
|
|
5032
|
-
--oui-accent-foreground: oklch(98.
|
|
5040
|
+
--oui-background: oklch(14.5% 0 0);
|
|
5041
|
+
--oui-foreground: oklch(98.5% 0 0);
|
|
5042
|
+
--oui-card: oklch(20.5% 0 0);
|
|
5043
|
+
--oui-card-foreground: oklch(98.5% 0 0);
|
|
5044
|
+
--oui-popover: oklch(26.9% 0 0);
|
|
5045
|
+
--oui-popover-foreground: oklch(98.5% 0 0);
|
|
5046
|
+
--oui-primary: oklch(68.5% 0.169 237.323);
|
|
5047
|
+
--oui-primary-foreground: oklch(98.5% 0 0);
|
|
5048
|
+
--oui-secondary: oklch(44.3% 0.11 240.79);
|
|
5049
|
+
--oui-secondary-foreground: oklch(98.5% 0 0);
|
|
5050
|
+
--oui-muted: oklch(26.9% 0 0);
|
|
5051
|
+
--oui-muted-foreground: oklch(70.8% 0 0);
|
|
5052
|
+
--oui-accent: oklch(37.1% 0 0);
|
|
5053
|
+
--oui-accent-foreground: oklch(98.5% 0 0);
|
|
5033
5054
|
--oui-destructive: oklch(70.4% 0.191 22.216);
|
|
5034
5055
|
--oui-destructive-foreground: oklch(97.1% 0.013 17.38);
|
|
5035
5056
|
--oui-border: color-mix(in oklab, #fff 10%, transparent);
|
|
5036
5057
|
--oui-input: color-mix(in oklab, #fff 15%, transparent);
|
|
5037
|
-
--oui-ring: oklch(
|
|
5058
|
+
--oui-ring: oklch(68.5% 0.169 237.323);
|
|
5038
5059
|
--oui-chart-1: oklch(48.8% 0.243 264.376);
|
|
5039
5060
|
--oui-chart-2: oklch(69.6% 0.17 162.48);
|
|
5040
5061
|
--oui-chart-3: oklch(76.9% 0.188 70.08);
|
|
5041
5062
|
--oui-chart-4: oklch(62.7% 0.265 303.9);
|
|
5042
5063
|
--oui-chart-5: oklch(64.5% 0.246 16.439);
|
|
5043
|
-
--oui-sidebar: oklch(
|
|
5044
|
-
--oui-sidebar-foreground: oklch(98.
|
|
5064
|
+
--oui-sidebar: oklch(14.5% 0 0);
|
|
5065
|
+
--oui-sidebar-foreground: oklch(98.5% 0 0);
|
|
5045
5066
|
--oui-sidebar-primary: oklch(48.8% 0.243 264.376);
|
|
5046
|
-
--oui-sidebar-primary-foreground: oklch(98.
|
|
5047
|
-
--oui-sidebar-accent: oklch(
|
|
5048
|
-
--oui-sidebar-accent-foreground: oklch(98.
|
|
5067
|
+
--oui-sidebar-primary-foreground: oklch(98.5% 0 0);
|
|
5068
|
+
--oui-sidebar-accent: oklch(26.9% 0 0);
|
|
5069
|
+
--oui-sidebar-accent-foreground: oklch(98.5% 0 0);
|
|
5049
5070
|
--oui-sidebar-border: color-mix(in oklab, #fff 10%, transparent);
|
|
5050
|
-
--oui-sidebar-ring: oklch(
|
|
5071
|
+
--oui-sidebar-ring: oklch(43.9% 0 0);
|
|
5051
5072
|
--oui-severity-low: oklch(82.8% 0.189 84.429);
|
|
5052
5073
|
--oui-severity-med: oklch(66.6% 0.179 58.318);
|
|
5053
5074
|
--oui-severity-high: oklch(55.3% 0.195 38.402);
|
|
5054
5075
|
--oui-severity-critical: oklch(44.4% 0.177 26.899);
|
|
5055
5076
|
}
|
|
5056
|
-
@
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5077
|
+
@scope (.oui2, body > [data-slot], body > [data-vaul-drawer], body > [data-radix-popper-content-wrapper]) to (.oui2-end) {
|
|
5078
|
+
@layer base {
|
|
5079
|
+
* {
|
|
5080
|
+
border-color: var(--oui-border);
|
|
5081
|
+
outline-color: var(--oui-ring);
|
|
5082
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
5083
|
+
outline-color: color-mix(in oklab, var(--oui-ring) 50%, transparent);
|
|
5084
|
+
}
|
|
5085
|
+
}
|
|
5086
|
+
body {
|
|
5087
|
+
background-color: var(--oui-background);
|
|
5088
|
+
color: var(--oui-foreground);
|
|
5089
|
+
}
|
|
5090
|
+
.oui2 {
|
|
5091
|
+
color: var(--oui-foreground);
|
|
5092
|
+
}
|
|
5093
|
+
.oui2-body {
|
|
5094
|
+
background-color: var(--oui-background);
|
|
5062
5095
|
}
|
|
5063
5096
|
}
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5097
|
+
[data-sonner-toaster] [data-description], [data-sonner-toaster] .sonner-description, .sonner-description {
|
|
5098
|
+
color: var(--oui-muted-foreground) !important;
|
|
5099
|
+
opacity: 1 !important;
|
|
5100
|
+
}
|
|
5101
|
+
[data-sonner-toaster] [data-title], [data-sonner-toaster] .sonner-title, .sonner-title {
|
|
5102
|
+
color: var(--oui-popover-foreground) !important;
|
|
5103
|
+
}
|
|
5104
|
+
[data-sonner-toaster] [data-toast] {
|
|
5105
|
+
display: flex !important;
|
|
5106
|
+
align-items: flex-start !important;
|
|
5107
|
+
justify-content: space-between !important;
|
|
5108
|
+
gap: 16px !important;
|
|
5109
|
+
}
|
|
5110
|
+
[data-sonner-toaster] [data-toast]>div:first-child {
|
|
5111
|
+
flex: 1 !important;
|
|
5112
|
+
min-width: 0 !important;
|
|
5113
|
+
}
|
|
5114
|
+
[data-sonner-toaster] [data-toast]>*:last-child {
|
|
5115
|
+
flex-shrink: 0 !important;
|
|
5116
|
+
align-self: center !important;
|
|
5117
|
+
}
|
|
5118
|
+
[data-sonner-toaster] button {
|
|
5119
|
+
margin-left: auto !important;
|
|
5067
5120
|
}
|
|
5068
|
-
}
|
|
5069
|
-
[data-sonner-toaster] [data-description], [data-sonner-toaster] .sonner-description, .sonner-description {
|
|
5070
|
-
color: var(--oui-muted-foreground) !important;
|
|
5071
|
-
opacity: 1 !important;
|
|
5072
|
-
}
|
|
5073
|
-
[data-sonner-toaster] [data-title], [data-sonner-toaster] .sonner-title, .sonner-title {
|
|
5074
|
-
color: var(--oui-popover-foreground) !important;
|
|
5075
|
-
}
|
|
5076
|
-
[data-sonner-toaster] [data-toast] {
|
|
5077
|
-
display: flex !important;
|
|
5078
|
-
align-items: flex-start !important;
|
|
5079
|
-
justify-content: space-between !important;
|
|
5080
|
-
gap: 16px !important;
|
|
5081
|
-
}
|
|
5082
|
-
[data-sonner-toaster] [data-toast]>div:first-child {
|
|
5083
|
-
flex: 1 !important;
|
|
5084
|
-
min-width: 0 !important;
|
|
5085
|
-
}
|
|
5086
|
-
[data-sonner-toaster] [data-toast]>*:last-child {
|
|
5087
|
-
flex-shrink: 0 !important;
|
|
5088
|
-
align-self: center !important;
|
|
5089
|
-
}
|
|
5090
|
-
[data-sonner-toaster] button {
|
|
5091
|
-
margin-left: auto !important;
|
|
5092
5121
|
}
|
|
5093
5122
|
@property --tw-translate-x {
|
|
5094
5123
|
syntax: "*";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensearch-project/oui",
|
|
3
3
|
"description": "OpenSearch UI Component Library",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -37,20 +37,17 @@
|
|
|
37
37
|
"build-docs": "yarn run build:storybook",
|
|
38
38
|
"clean": "rm -rf build node_modules dist lib docs",
|
|
39
39
|
"fix:shadcn": "npx tsx scripts/fix-shadcn-components.ts",
|
|
40
|
-
"lint": "yarn run lint:ts && yarn run lint:
|
|
40
|
+
"lint": "yarn run lint:ts && yarn run lint:es",
|
|
41
41
|
"lint:es": "eslint --cache \"{src,scripts}/**/*.{ts,tsx,js}\" --max-warnings 0",
|
|
42
42
|
"lint:es:fix": "yarn run lint:es --fix",
|
|
43
43
|
"lint:ts": "tsc --project tsconfig.typecheck.json --noEmit",
|
|
44
44
|
"lint:ts:watch": "tsc --project tsconfig.typecheck.json --noEmit --watch",
|
|
45
|
-
"lint:ts:react16": "tsc --project tsconfig.react16.json --noEmit",
|
|
46
|
-
"lint:ts:react16:watch": "tsc --project tsconfig.react16.json --noEmit --watch",
|
|
47
45
|
"prebuild": "mkdir -p dist",
|
|
48
46
|
"prepublishOnly": "yarn run build",
|
|
49
47
|
"start": "storybook dev -p 8030 --no-open",
|
|
50
|
-
"test": "yarn run test:
|
|
48
|
+
"test": "yarn run test:storybook && yarn run test:eslint",
|
|
51
49
|
"test:eslint": "node scripts/eslint-plugin/require_license_header.test.js && node scripts/eslint-plugin/i18n.test.js && node scripts/eslint-plugin/rel.test.js && node scripts/eslint-plugin/forward_ref_display_name.test.js",
|
|
52
|
-
"test:
|
|
53
|
-
"test:react18": "REACT_VERSION=18 vitest --project=storybook --run"
|
|
50
|
+
"test:storybook": "vitest --project=storybook --run"
|
|
54
51
|
},
|
|
55
52
|
"repository": {
|
|
56
53
|
"type": "git",
|
|
@@ -130,8 +127,6 @@
|
|
|
130
127
|
"@types/node": "^24.10.1",
|
|
131
128
|
"@types/react": "^19.0.7",
|
|
132
129
|
"@types/react-dom": "^19.0.3",
|
|
133
|
-
"@types/react-16": "npm:@types/react@^16.14.0",
|
|
134
|
-
"@types/react-dom-16": "npm:@types/react-dom@^16.9.0",
|
|
135
130
|
"@vitest/browser": "^3.0.0",
|
|
136
131
|
"@vitest/coverage-v8": "^3.0.0",
|
|
137
132
|
"@vitest/ui": "^3.0.0",
|
|
@@ -153,7 +148,7 @@
|
|
|
153
148
|
"prettier": "^3.4.2",
|
|
154
149
|
"react": "^19.1.0",
|
|
155
150
|
"react-dom": "^19.1.0",
|
|
156
|
-
"storybook": "^9.1.
|
|
151
|
+
"storybook": "^9.1.17",
|
|
157
152
|
"tailwindcss": "^4.1.13",
|
|
158
153
|
"tsc-alias": "^1.8.16",
|
|
159
154
|
"typescript": "^5.9.2",
|
|
@@ -163,8 +158,8 @@
|
|
|
163
158
|
"peerDependencies": {
|
|
164
159
|
"@types/react": "*",
|
|
165
160
|
"@types/react-dom": "*",
|
|
166
|
-
"react": "^16.
|
|
167
|
-
"react-dom": "^16.
|
|
161
|
+
"react": "^16.14 || ^17.0 || ^18.0 || ^19.0",
|
|
162
|
+
"react-dom": "^16.14 || ^17.0 || ^18.0 || ^19.0"
|
|
168
163
|
},
|
|
169
164
|
"peerDependenciesMeta": {
|
|
170
165
|
"@types/react": {
|