@optimum-intelligence/opti-ui 0.7.5 → 0.8.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/CHANGELOG.md +77 -0
- package/README.md +24 -11
- package/dist/components/alert/Alert.d.ts +5 -2
- package/dist/components/alert/Alert.js +67 -65
- package/dist/components/alert/Alert.js.map +1 -1
- package/dist/components/app-shell/AppShell.d.ts +19 -7
- package/dist/components/app-shell/AppShell.js +329 -303
- package/dist/components/app-shell/AppShell.js.map +1 -1
- package/dist/components/calendar/Calendar.js +140 -136
- package/dist/components/calendar/Calendar.js.map +1 -1
- package/dist/components/combobox/Combobox.d.ts +8 -2
- package/dist/components/combobox/Combobox.js +182 -202
- package/dist/components/combobox/Combobox.js.map +1 -1
- package/dist/components/data-table/DataTable.d.ts +23 -11
- package/dist/components/data-table/DataTable.js +148 -88
- package/dist/components/data-table/DataTable.js.map +1 -1
- package/dist/components/data-table/DataTableContent.js +1 -1
- package/dist/components/data-table/DataTableFilters.d.ts +56 -4
- package/dist/components/data-table/DataTableFilters.js +492 -77
- package/dist/components/data-table/DataTableFilters.js.map +1 -1
- package/dist/components/data-table/types.d.ts +13 -2
- package/dist/components/data-table/useDataTable.d.ts +1 -1
- package/dist/components/data-table/useDataTable.js +251 -229
- package/dist/components/data-table/useDataTable.js.map +1 -1
- package/dist/components/date-picker/DatePicker.d.ts +5 -0
- package/dist/components/date-picker/DatePicker.js +148 -140
- package/dist/components/date-picker/DatePicker.js.map +1 -1
- package/dist/components/date-picker/DateRangePicker.d.ts +2 -0
- package/dist/components/date-picker/DateRangePicker.js +171 -164
- package/dist/components/date-picker/DateRangePicker.js.map +1 -1
- package/dist/components/date-picker/PickerField.d.ts +6 -3
- package/dist/components/date-picker/PickerField.js +166 -159
- package/dist/components/date-picker/PickerField.js.map +1 -1
- package/dist/components/dialog/ConfirmDialog.d.ts +5 -2
- package/dist/components/dialog/ConfirmDialog.js +79 -77
- package/dist/components/dialog/ConfirmDialog.js.map +1 -1
- package/dist/components/dialog/Dialog.d.ts +5 -2
- package/dist/components/dialog/Dialog.js +65 -63
- package/dist/components/dialog/Dialog.js.map +1 -1
- package/dist/components/drawer/Drawer.d.ts +13 -4
- package/dist/components/drawer/Drawer.js +122 -164
- package/dist/components/drawer/Drawer.js.map +1 -1
- package/dist/components/field/Field.d.ts +38 -9
- package/dist/components/field/Field.js +66 -1
- package/dist/components/field/Field.js.map +1 -1
- package/dist/components/file-upload/FileUpload.js +2 -0
- package/dist/components/file-upload/FileUpload.js.map +1 -1
- package/dist/components/input/Input.d.ts +9 -16
- package/dist/components/input/Input.js +124 -206
- package/dist/components/input/Input.js.map +1 -1
- package/dist/components/map/Map.d.ts +29 -3
- package/dist/components/map/Map.js +332 -160
- package/dist/components/map/Map.js.map +1 -1
- package/dist/components/map/colors.d.ts +2 -2
- package/dist/components/map/colors.js +12 -3
- package/dist/components/map/colors.js.map +1 -1
- package/dist/components/number-field/NumberField.d.ts +12 -3
- package/dist/components/number-field/NumberField.js +109 -130
- package/dist/components/number-field/NumberField.js.map +1 -1
- package/dist/components/pagination/Pagination.js +135 -186
- package/dist/components/pagination/Pagination.js.map +1 -1
- package/dist/components/search-input/SearchInput.d.ts +5 -2
- package/dist/components/search-input/SearchInput.js +47 -45
- package/dist/components/search-input/SearchInput.js.map +1 -1
- package/dist/components/select/Select.d.ts +13 -3
- package/dist/components/select/Select.js +144 -139
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/spinner/Spinner.d.ts +6 -2
- package/dist/components/spinner/Spinner.js +42 -40
- package/dist/components/spinner/Spinner.js.map +1 -1
- package/dist/components/stepper/Stepper.js +44 -40
- package/dist/components/stepper/Stepper.js.map +1 -1
- package/dist/components/toast/Toast.d.ts +17 -1
- package/dist/components/toast/Toast.js +65 -33
- package/dist/components/toast/Toast.js.map +1 -1
- package/dist/components.json +393 -59
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -3
- package/dist/labels/Labels.d.ts +85 -0
- package/dist/labels/Labels.js +92 -0
- package/dist/labels/Labels.js.map +1 -0
- package/dist/llms-full.txt +231 -45
- package/dist/llms.txt +10 -4
- package/dist/opti-ui.css +212 -18
- package/dist/theme/ThemeProvider.d.ts +8 -4
- package/dist/theme/ThemeProvider.js.map +1 -1
- package/dist/utils/media.d.ts +9 -2
- package/dist/utils/media.js +10 -3
- package/dist/utils/media.js.map +1 -1
- package/package.json +5 -2
package/dist/opti-ui.css
CHANGED
|
@@ -75,6 +75,28 @@
|
|
|
75
75
|
--oui-control-height-lg: 3rem;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
+
[data-oui-theme=light],
|
|
79
|
+
[data-oui-theme=system] {
|
|
80
|
+
--oui-color-success: #21856d;
|
|
81
|
+
--oui-color-success-text: #17604f;
|
|
82
|
+
--oui-color-warning: #db6b2f;
|
|
83
|
+
--oui-color-warning-text: #9a4515;
|
|
84
|
+
--oui-color-danger: #c42b55;
|
|
85
|
+
--oui-color-danger-text: #7a1f3d;
|
|
86
|
+
--oui-color-on-tone: #ffffff;
|
|
87
|
+
--oui-color-blue: #2f6fd0;
|
|
88
|
+
--oui-color-blue-text: #1f4f99;
|
|
89
|
+
--oui-color-cyan: #1a8aa8;
|
|
90
|
+
--oui-color-cyan-text: #126278;
|
|
91
|
+
--oui-color-green: #3d8a2f;
|
|
92
|
+
--oui-color-green-text: #2a6320;
|
|
93
|
+
--oui-color-yellow: #c99a12;
|
|
94
|
+
--oui-color-yellow-text: #7a5a06;
|
|
95
|
+
--oui-color-purple: #7b4fc4;
|
|
96
|
+
--oui-color-purple-text: #573591;
|
|
97
|
+
--oui-color-pink: #c2479b;
|
|
98
|
+
--oui-color-pink-text: #8c2f6f;
|
|
99
|
+
}
|
|
78
100
|
:root,
|
|
79
101
|
.oui-theme,
|
|
80
102
|
[data-oui-theme] {
|
|
@@ -102,7 +124,8 @@
|
|
|
102
124
|
color-mix(in srgb, var(--oui-color-brand) 14%, white)
|
|
103
125
|
);
|
|
104
126
|
--oui-color-border-subtle: color-mix(in srgb, var(--oui-color-accent) 20%, transparent);
|
|
105
|
-
--oui-color-border-control: color-mix(in srgb, var(--oui-color-accent)
|
|
127
|
+
--oui-color-border-control: color-mix(in srgb, var(--oui-color-accent) 70%, transparent);
|
|
128
|
+
--oui-color-border-control-hover: var(--oui-color-accent);
|
|
106
129
|
--oui-color-border-hover: color-mix(in srgb, var(--oui-color-accent) 45%, transparent);
|
|
107
130
|
--oui-color-border-focus: color-mix(in srgb, var(--oui-color-accent) 75%, transparent);
|
|
108
131
|
--oui-color-info: var(--oui-color-accent);
|
|
@@ -136,6 +159,8 @@
|
|
|
136
159
|
--oui-color-chart-7: var(--oui-color-yellow);
|
|
137
160
|
--oui-color-chart-8: var(--oui-color-accent);
|
|
138
161
|
--oui-map-casing-color: var(--oui-color-surface);
|
|
162
|
+
--oui-map-cluster-color: var(--oui-color-primary);
|
|
163
|
+
--oui-map-cluster-text-color: var(--oui-color-on-primary);
|
|
139
164
|
--oui-color-inverse: var(--oui-color-brand);
|
|
140
165
|
--oui-color-on-inverse: #ffffff;
|
|
141
166
|
--oui-color-on-inverse-muted: rgba(255, 255, 255, 0.72);
|
|
@@ -176,6 +201,8 @@
|
|
|
176
201
|
--oui-color-surface-muted: color-mix(in oklab, var(--oui-color-accent) 12%, #1c1823);
|
|
177
202
|
--oui-color-overlay: rgba(4, 2, 8, 0.66);
|
|
178
203
|
--oui-color-border: color-mix(in oklab, var(--oui-color-accent) 20%, #28232f);
|
|
204
|
+
--oui-color-border-control: color-mix(in srgb, var(--oui-color-accent-text) 50%, transparent);
|
|
205
|
+
--oui-color-border-control-hover: color-mix(in srgb, var(--oui-color-accent-text) 80%, transparent);
|
|
179
206
|
--oui-color-success: #3cbf9b;
|
|
180
207
|
--oui-color-success-text: #7ee0c3;
|
|
181
208
|
--oui-color-warning: #f08a4b;
|
|
@@ -203,6 +230,52 @@
|
|
|
203
230
|
--oui-shadow-dialog: 0 28px 64px -12px rgba(0, 0, 0, 0.7);
|
|
204
231
|
--oui-focus-outline-color: var(--oui-color-accent-text);
|
|
205
232
|
}
|
|
233
|
+
@media (prefers-color-scheme: dark) {
|
|
234
|
+
[data-oui-theme=system],
|
|
235
|
+
[data-oui-theme=system] .oui-theme:not([data-oui-theme]) {
|
|
236
|
+
color-scheme: dark;
|
|
237
|
+
--oui-color-primary: color-mix(in oklab, var(--oui-color-accent) 30%, white);
|
|
238
|
+
--oui-color-primary-hover: color-mix(in oklab, var(--oui-color-accent) 16%, white);
|
|
239
|
+
--oui-color-on-primary: color-mix(in oklab, var(--oui-color-brand) 75%, black);
|
|
240
|
+
--oui-color-accent-text: color-mix(in oklab, var(--oui-color-accent) 35%, white);
|
|
241
|
+
--oui-color-text: color-mix(in oklab, var(--oui-color-accent) 6%, #ececf0);
|
|
242
|
+
--oui-color-text-strong: #ffffff;
|
|
243
|
+
--oui-color-text-muted: color-mix(in oklab, var(--oui-color-accent) 25%, #a6a1ae);
|
|
244
|
+
--oui-color-bg: color-mix(in oklab, var(--oui-color-accent) 7%, #0c0a10);
|
|
245
|
+
--oui-color-surface: color-mix(in oklab, var(--oui-color-accent) 9%, #16131c);
|
|
246
|
+
--oui-color-surface-muted: color-mix(in oklab, var(--oui-color-accent) 12%, #1c1823);
|
|
247
|
+
--oui-color-overlay: rgba(4, 2, 8, 0.66);
|
|
248
|
+
--oui-color-border: color-mix(in oklab, var(--oui-color-accent) 20%, #28232f);
|
|
249
|
+
--oui-color-border-control: color-mix(in srgb, var(--oui-color-accent-text) 50%, transparent);
|
|
250
|
+
--oui-color-border-control-hover: color-mix(in srgb, var(--oui-color-accent-text) 80%, transparent);
|
|
251
|
+
--oui-color-success: #3cbf9b;
|
|
252
|
+
--oui-color-success-text: #7ee0c3;
|
|
253
|
+
--oui-color-warning: #f08a4b;
|
|
254
|
+
--oui-color-warning-text: #ffb68a;
|
|
255
|
+
--oui-color-danger: #f0587f;
|
|
256
|
+
--oui-color-danger-text: #ff9db5;
|
|
257
|
+
--oui-color-on-tone: #15121b;
|
|
258
|
+
--oui-color-blue: #5b9bf0;
|
|
259
|
+
--oui-color-blue-text: #a8cbff;
|
|
260
|
+
--oui-color-cyan: #3ec1df;
|
|
261
|
+
--oui-color-cyan-text: #8fe3f5;
|
|
262
|
+
--oui-color-green: #6fcf5a;
|
|
263
|
+
--oui-color-green-text: #b2eba3;
|
|
264
|
+
--oui-color-yellow: #f0c53e;
|
|
265
|
+
--oui-color-yellow-text: #ffe08a;
|
|
266
|
+
--oui-color-purple: #a585f0;
|
|
267
|
+
--oui-color-purple-text: #d2c1ff;
|
|
268
|
+
--oui-color-pink: #f07ac8;
|
|
269
|
+
--oui-color-pink-text: #ffb8e4;
|
|
270
|
+
--oui-color-inverse: color-mix(in oklab, var(--oui-color-accent) 8%, #0a0810);
|
|
271
|
+
--oui-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
272
|
+
--oui-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 18px -2px rgba(0, 0, 0, 0.3);
|
|
273
|
+
--oui-shadow-raised: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 24px -4px rgba(0, 0, 0, 0.4);
|
|
274
|
+
--oui-shadow-overlay: 0 14px 32px -6px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
|
|
275
|
+
--oui-shadow-dialog: 0 28px 64px -12px rgba(0, 0, 0, 0.7);
|
|
276
|
+
--oui-focus-outline-color: var(--oui-color-accent-text);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
206
279
|
}
|
|
207
280
|
@layer oui.base {
|
|
208
281
|
.oui-root {
|
|
@@ -967,6 +1040,9 @@
|
|
|
967
1040
|
z-index: 1;
|
|
968
1041
|
}
|
|
969
1042
|
@media (max-width: 900px) {
|
|
1043
|
+
:root:has(.oui-app-shell__tabbar[data-position=bottom]) {
|
|
1044
|
+
--oui-toast-offset-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
|
|
1045
|
+
}
|
|
970
1046
|
.oui-app-shell {
|
|
971
1047
|
display: flex;
|
|
972
1048
|
flex-direction: column;
|
|
@@ -1001,6 +1077,10 @@
|
|
|
1001
1077
|
font-family: var(--oui-font-body);
|
|
1002
1078
|
-webkit-font-smoothing: antialiased;
|
|
1003
1079
|
-moz-osx-font-smoothing: grayscale;
|
|
1080
|
+
display: grid;
|
|
1081
|
+
gap: var(--oui-space-2);
|
|
1082
|
+
}
|
|
1083
|
+
.oui-page-header__heading {
|
|
1004
1084
|
display: flex;
|
|
1005
1085
|
flex-wrap: wrap;
|
|
1006
1086
|
align-items: flex-end;
|
|
@@ -1534,6 +1614,11 @@
|
|
|
1534
1614
|
--_bg-hover: color-mix(in oklab, var(--_tone) 86%, black);
|
|
1535
1615
|
--_fg: var(--_tone-fg);
|
|
1536
1616
|
}
|
|
1617
|
+
.oui-button[data-disabled]:not([data-loading]):is([data-variant=primary], [data-variant=accent], [data-variant=danger]) {
|
|
1618
|
+
--_bg: color-mix(in srgb, var(--oui-color-text) 10%, transparent);
|
|
1619
|
+
--_fg: color-mix(in srgb, var(--oui-color-text) 45%, transparent);
|
|
1620
|
+
opacity: 1;
|
|
1621
|
+
}
|
|
1537
1622
|
.oui-button[data-tone][data-variant=secondary] {
|
|
1538
1623
|
--_bg-hover: var(--_tone-subtle);
|
|
1539
1624
|
--_fg: var(--_tone-text);
|
|
@@ -1941,7 +2026,7 @@
|
|
|
1941
2026
|
width: var(--_box);
|
|
1942
2027
|
height: var(--_box);
|
|
1943
2028
|
vertical-align: middle;
|
|
1944
|
-
border: var(--oui-control-border-width) solid var(--oui-color-border-
|
|
2029
|
+
border: var(--oui-control-border-width) solid var(--oui-color-border-control);
|
|
1945
2030
|
background: var(--oui-color-surface);
|
|
1946
2031
|
color: var(--oui-color-on-accent);
|
|
1947
2032
|
cursor: pointer;
|
|
@@ -1959,7 +2044,7 @@
|
|
|
1959
2044
|
@media (hover: hover) {
|
|
1960
2045
|
.oui-checkbox:hover:not([data-disabled], [data-checked], [data-indeterminate]),
|
|
1961
2046
|
.oui-radio:hover:not([data-disabled], [data-checked], [data-indeterminate]) {
|
|
1962
|
-
border-color: var(--oui-color-
|
|
2047
|
+
border-color: var(--oui-color-border-control-hover);
|
|
1963
2048
|
}
|
|
1964
2049
|
}
|
|
1965
2050
|
.oui-checkbox[data-checked], .oui-checkbox[data-indeterminate],
|
|
@@ -2151,7 +2236,7 @@
|
|
|
2151
2236
|
}
|
|
2152
2237
|
@media (hover: hover) {
|
|
2153
2238
|
.oui-combobox__group:hover:not([data-disabled], :disabled, :focus-within, [data-popup-open]) {
|
|
2154
|
-
border-color: var(--oui-color-border-hover);
|
|
2239
|
+
border-color: var(--oui-color-border-control-hover);
|
|
2155
2240
|
}
|
|
2156
2241
|
}
|
|
2157
2242
|
.oui-combobox__group[data-invalid] {
|
|
@@ -2667,10 +2752,89 @@
|
|
|
2667
2752
|
.oui-data-table__toolbar[data-layout=narrow] > :first-child:not(.oui-input-group) {
|
|
2668
2753
|
margin-left: auto;
|
|
2669
2754
|
}
|
|
2670
|
-
.oui-data-table__sheet-trigger[data-active]
|
|
2755
|
+
.oui-data-table__sheet-trigger[data-active],
|
|
2756
|
+
.oui-data-table__filter-button[data-active] {
|
|
2671
2757
|
--_border: var(--oui-color-accent);
|
|
2672
2758
|
--_bg: var(--oui-color-accent-subtle);
|
|
2673
2759
|
}
|
|
2760
|
+
.oui-data-table__filter-badge {
|
|
2761
|
+
display: inline-grid;
|
|
2762
|
+
place-items: center;
|
|
2763
|
+
min-width: 1.25rem;
|
|
2764
|
+
height: 1.25rem;
|
|
2765
|
+
padding: 0 0.3rem;
|
|
2766
|
+
border-radius: var(--oui-radius-pill);
|
|
2767
|
+
background: var(--oui-color-primary);
|
|
2768
|
+
color: var(--oui-color-on-primary);
|
|
2769
|
+
font-size: var(--oui-font-size-xs);
|
|
2770
|
+
font-variant-numeric: tabular-nums;
|
|
2771
|
+
line-height: 1;
|
|
2772
|
+
}
|
|
2773
|
+
.oui-data-table__filter-badge[data-empty] {
|
|
2774
|
+
visibility: hidden;
|
|
2775
|
+
}
|
|
2776
|
+
.oui-data-table__clear[data-hidden] {
|
|
2777
|
+
visibility: hidden;
|
|
2778
|
+
}
|
|
2779
|
+
.oui-data-table__loading {
|
|
2780
|
+
display: inline-flex;
|
|
2781
|
+
justify-content: center;
|
|
2782
|
+
min-width: 1.25em;
|
|
2783
|
+
font-size: var(--oui-font-size-sm);
|
|
2784
|
+
}
|
|
2785
|
+
.oui-data-table__panel {
|
|
2786
|
+
width: var(--oui-data-table-panel-width, 22rem);
|
|
2787
|
+
}
|
|
2788
|
+
.oui-data-table__panel-footer {
|
|
2789
|
+
display: flex;
|
|
2790
|
+
justify-content: space-between;
|
|
2791
|
+
gap: var(--oui-space-4);
|
|
2792
|
+
padding-top: var(--oui-space-6);
|
|
2793
|
+
border-top: 1px solid var(--oui-color-border-subtle);
|
|
2794
|
+
}
|
|
2795
|
+
.oui-data-table__active-filters {
|
|
2796
|
+
display: flex;
|
|
2797
|
+
flex-wrap: wrap;
|
|
2798
|
+
align-items: center;
|
|
2799
|
+
gap: var(--oui-space-3) var(--oui-space-4);
|
|
2800
|
+
}
|
|
2801
|
+
.oui-data-table__tag-edit {
|
|
2802
|
+
max-width: 22rem;
|
|
2803
|
+
padding: 0;
|
|
2804
|
+
overflow: hidden;
|
|
2805
|
+
border: 0;
|
|
2806
|
+
background: none;
|
|
2807
|
+
color: inherit;
|
|
2808
|
+
font: inherit;
|
|
2809
|
+
text-overflow: ellipsis;
|
|
2810
|
+
white-space: nowrap;
|
|
2811
|
+
cursor: pointer;
|
|
2812
|
+
}
|
|
2813
|
+
.oui-data-table__tag-edit:focus-visible {
|
|
2814
|
+
border-radius: var(--oui-radius-xs);
|
|
2815
|
+
outline: 2px solid var(--oui-color-border-focus);
|
|
2816
|
+
outline-offset: 2px;
|
|
2817
|
+
}
|
|
2818
|
+
.oui-data-table__tag-name {
|
|
2819
|
+
color: var(--oui-color-text-muted);
|
|
2820
|
+
font-weight: var(--oui-font-weight-regular);
|
|
2821
|
+
}
|
|
2822
|
+
.oui-data-table__footer {
|
|
2823
|
+
display: flex;
|
|
2824
|
+
flex-wrap: wrap;
|
|
2825
|
+
align-items: center;
|
|
2826
|
+
justify-content: space-between;
|
|
2827
|
+
gap: 0.6rem 1rem;
|
|
2828
|
+
}
|
|
2829
|
+
.oui-data-table__footer:empty {
|
|
2830
|
+
display: none;
|
|
2831
|
+
}
|
|
2832
|
+
.oui-data-table__footer > .oui-pagination {
|
|
2833
|
+
flex: 1 1 auto;
|
|
2834
|
+
}
|
|
2835
|
+
.oui-data-table__footer .oui-pagination__controls {
|
|
2836
|
+
margin-left: auto;
|
|
2837
|
+
}
|
|
2674
2838
|
.oui-data-table__filters {
|
|
2675
2839
|
display: flex;
|
|
2676
2840
|
flex-wrap: wrap;
|
|
@@ -2693,6 +2857,20 @@
|
|
|
2693
2857
|
.oui-data-table__filters[data-stacked] .oui-select__trigger.oui-data-table__filter .oui-select__icon {
|
|
2694
2858
|
margin-left: auto;
|
|
2695
2859
|
}
|
|
2860
|
+
.oui-data-table__filters:not([data-stacked]) > :is(.oui-select__trigger, .oui-date-picker).oui-data-table__filter {
|
|
2861
|
+
flex: none;
|
|
2862
|
+
width: var(--oui-data-table-filter-width, 12rem);
|
|
2863
|
+
}
|
|
2864
|
+
.oui-data-table__filters:not([data-stacked]) > :is(.oui-select__trigger, .oui-date-picker).oui-data-table__filter .oui-data-table__filter-label {
|
|
2865
|
+
flex: none;
|
|
2866
|
+
}
|
|
2867
|
+
.oui-data-table__filters:not([data-stacked]) > :is(.oui-select__trigger, .oui-date-picker).oui-data-table__filter .oui-select__value,
|
|
2868
|
+
.oui-data-table__filters:not([data-stacked]) > :is(.oui-select__trigger, .oui-date-picker).oui-data-table__filter .oui-date-picker__value {
|
|
2869
|
+
min-width: 0;
|
|
2870
|
+
overflow: hidden;
|
|
2871
|
+
text-overflow: ellipsis;
|
|
2872
|
+
white-space: nowrap;
|
|
2873
|
+
}
|
|
2696
2874
|
.oui-data-table__filter-field {
|
|
2697
2875
|
display: grid;
|
|
2698
2876
|
gap: var(--oui-space-3);
|
|
@@ -2772,6 +2950,10 @@
|
|
|
2772
2950
|
.oui-data-table__filter-count {
|
|
2773
2951
|
font-variant-numeric: tabular-nums;
|
|
2774
2952
|
}
|
|
2953
|
+
.oui-badge > .oui-data-table__filter-count {
|
|
2954
|
+
color: inherit;
|
|
2955
|
+
opacity: 0.75;
|
|
2956
|
+
}
|
|
2775
2957
|
.oui-data-table[data-fill] {
|
|
2776
2958
|
flex: 1;
|
|
2777
2959
|
min-height: 0;
|
|
@@ -2871,15 +3053,11 @@
|
|
|
2871
3053
|
mask-image: linear-gradient(to left, transparent, #000 var(--_fade));
|
|
2872
3054
|
}
|
|
2873
3055
|
.oui-data-table .oui-table__row[data-tone] {
|
|
2874
|
-
--_tone: var(--oui-color-accent);
|
|
2875
3056
|
--_tone-subtle: var(--oui-color-accent-subtle);
|
|
2876
3057
|
}
|
|
2877
3058
|
.oui-data-table .oui-table__row[data-tone]:not([data-selected], :hover) {
|
|
2878
3059
|
background: var(--_tone-subtle);
|
|
2879
3060
|
}
|
|
2880
|
-
.oui-data-table .oui-table__row[data-tone] > :first-child {
|
|
2881
|
-
box-shadow: inset 3px 0 0 var(--_tone);
|
|
2882
|
-
}
|
|
2883
3061
|
.oui-data-table .oui-table__row[data-tone][data-tone=info] {
|
|
2884
3062
|
--_tone: var(--oui-color-info);
|
|
2885
3063
|
--_tone-text: var(--oui-color-info-text);
|
|
@@ -2972,6 +3150,14 @@
|
|
|
2972
3150
|
width: 0;
|
|
2973
3151
|
min-width: 100%;
|
|
2974
3152
|
}
|
|
3153
|
+
@media (max-width: 640px) {
|
|
3154
|
+
.oui-data-table .oui-table[data-locked]:has(.oui-table__row[data-editing]) {
|
|
3155
|
+
table-layout: auto;
|
|
3156
|
+
}
|
|
3157
|
+
.oui-data-table .oui-table__row[data-editing] :is(.oui-input, .oui-input-group, .oui-select__trigger) {
|
|
3158
|
+
min-width: max(100%, 8rem);
|
|
3159
|
+
}
|
|
3160
|
+
}
|
|
2975
3161
|
.oui-data-table .oui-table[data-locked] {
|
|
2976
3162
|
table-layout: fixed;
|
|
2977
3163
|
}
|
|
@@ -3046,7 +3232,7 @@
|
|
|
3046
3232
|
}
|
|
3047
3233
|
@media (hover: hover) {
|
|
3048
3234
|
.oui-date-picker__trigger:hover:not([data-disabled], :disabled, :focus-within, [data-popup-open]) {
|
|
3049
|
-
border-color: var(--oui-color-border-hover);
|
|
3235
|
+
border-color: var(--oui-color-border-control-hover);
|
|
3050
3236
|
}
|
|
3051
3237
|
}
|
|
3052
3238
|
.oui-date-picker__trigger[data-invalid] {
|
|
@@ -3107,6 +3293,10 @@
|
|
|
3107
3293
|
max-width: none;
|
|
3108
3294
|
padding: 0.75rem;
|
|
3109
3295
|
}
|
|
3296
|
+
.oui-date-picker__sheet .oui-calendar {
|
|
3297
|
+
--_cell: min(3rem, calc((100vw - 3rem) / 7));
|
|
3298
|
+
margin-inline: auto;
|
|
3299
|
+
}
|
|
3110
3300
|
.oui-date-picker__time {
|
|
3111
3301
|
display: flex;
|
|
3112
3302
|
align-items: center;
|
|
@@ -3770,7 +3960,7 @@
|
|
|
3770
3960
|
}
|
|
3771
3961
|
@media (hover: hover) {
|
|
3772
3962
|
.oui-dropzone:hover:not([data-disabled], [data-dragging]) {
|
|
3773
|
-
border-color: var(--oui-color-border-hover);
|
|
3963
|
+
border-color: var(--oui-color-border-control-hover);
|
|
3774
3964
|
}
|
|
3775
3965
|
}
|
|
3776
3966
|
.oui-dropzone:has(.oui-dropzone__input:focus-visible) {
|
|
@@ -3925,7 +4115,7 @@
|
|
|
3925
4115
|
}
|
|
3926
4116
|
@media (hover: hover) {
|
|
3927
4117
|
.oui-input:hover:not([data-disabled], :disabled, :focus-within, [data-popup-open]) {
|
|
3928
|
-
border-color: var(--oui-color-border-hover);
|
|
4118
|
+
border-color: var(--oui-color-border-control-hover);
|
|
3929
4119
|
}
|
|
3930
4120
|
}
|
|
3931
4121
|
.oui-input[data-invalid] {
|
|
@@ -4006,7 +4196,7 @@
|
|
|
4006
4196
|
}
|
|
4007
4197
|
@media (hover: hover) {
|
|
4008
4198
|
.oui-input-group:hover:not([data-disabled], :disabled, :focus-within, [data-popup-open]) {
|
|
4009
|
-
border-color: var(--oui-color-border-hover);
|
|
4199
|
+
border-color: var(--oui-color-border-control-hover);
|
|
4010
4200
|
}
|
|
4011
4201
|
}
|
|
4012
4202
|
.oui-input-group[data-invalid] {
|
|
@@ -4741,7 +4931,7 @@
|
|
|
4741
4931
|
}
|
|
4742
4932
|
@media (hover: hover) {
|
|
4743
4933
|
.oui-number-field__group:hover:not([data-disabled], :disabled, :focus-within, [data-popup-open]) {
|
|
4744
|
-
border-color: var(--oui-color-border-hover);
|
|
4934
|
+
border-color: var(--oui-color-border-control-hover);
|
|
4745
4935
|
}
|
|
4746
4936
|
}
|
|
4747
4937
|
.oui-number-field__group[data-invalid] {
|
|
@@ -5215,7 +5405,7 @@
|
|
|
5215
5405
|
}
|
|
5216
5406
|
@media (hover: hover) {
|
|
5217
5407
|
.oui-select__trigger:hover:not([data-disabled], :disabled, :focus-within, [data-popup-open]) {
|
|
5218
|
-
border-color: var(--oui-color-border-hover);
|
|
5408
|
+
border-color: var(--oui-color-border-control-hover);
|
|
5219
5409
|
}
|
|
5220
5410
|
}
|
|
5221
5411
|
.oui-select__trigger[data-invalid] {
|
|
@@ -6412,7 +6602,7 @@
|
|
|
6412
6602
|
margin: 0;
|
|
6413
6603
|
}
|
|
6414
6604
|
.oui-toast-viewport[data-placement^=bottom] {
|
|
6415
|
-
bottom: 1rem;
|
|
6605
|
+
bottom: calc(1rem + var(--oui-toast-offset-bottom, env(safe-area-inset-bottom, 0px)));
|
|
6416
6606
|
}
|
|
6417
6607
|
.oui-toast-viewport[data-placement^=top] {
|
|
6418
6608
|
top: 1rem;
|
|
@@ -6500,7 +6690,7 @@
|
|
|
6500
6690
|
.oui-toast[data-type=warning] {
|
|
6501
6691
|
--_tone: var(--oui-color-warning);
|
|
6502
6692
|
}
|
|
6503
|
-
.oui-toast[data-type=danger] {
|
|
6693
|
+
.oui-toast:is([data-type=danger], [data-type=error]) {
|
|
6504
6694
|
--_tone: var(--oui-color-danger);
|
|
6505
6695
|
}
|
|
6506
6696
|
.oui-toast:focus-visible {
|
|
@@ -6566,6 +6756,10 @@
|
|
|
6566
6756
|
font-weight: var(--oui-font-weight-semibold);
|
|
6567
6757
|
line-height: 1.35;
|
|
6568
6758
|
}
|
|
6759
|
+
.oui-toast__body {
|
|
6760
|
+
margin-top: var(--oui-space-3);
|
|
6761
|
+
font-size: var(--oui-font-size-sm);
|
|
6762
|
+
}
|
|
6569
6763
|
.oui-toast__description {
|
|
6570
6764
|
margin: 0;
|
|
6571
6765
|
color: var(--oui-color-text-muted);
|
|
@@ -6672,7 +6866,7 @@
|
|
|
6672
6866
|
}
|
|
6673
6867
|
@media (hover: hover) {
|
|
6674
6868
|
.oui-toggle:hover:not([data-disabled], [data-pressed]) {
|
|
6675
|
-
border-color: var(--oui-color-border-hover);
|
|
6869
|
+
border-color: var(--oui-color-border-control-hover);
|
|
6676
6870
|
color: var(--oui-color-text-strong);
|
|
6677
6871
|
}
|
|
6678
6872
|
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Token or component variable name without the `--oui-` prefix, e.g. `color-accent`, `space-8`,
|
|
4
|
+
* `card-padding` or `navbar-width`. Any name is accepted, because component variables follow no single pattern.
|
|
5
|
+
*/
|
|
6
|
+
export type ThemeTokenName = string;
|
|
4
7
|
/** A partial set of token overrides. Values are any valid CSS value. */
|
|
5
8
|
export type Theme = Partial<Record<ThemeTokenName, string>>;
|
|
6
|
-
|
|
9
|
+
/** Colour mode of a subtree. `system` follows the OS setting (`prefers-color-scheme`) and switches with it. */
|
|
10
|
+
export type ColorMode = 'light' | 'dark' | 'system';
|
|
7
11
|
/** Converts a theme object into CSS custom properties for a `style` prop. */
|
|
8
12
|
export declare function themeToStyle(theme: Theme | undefined): React.CSSProperties;
|
|
9
13
|
/** Builds a theme from a base, applying overrides on top. */
|
|
@@ -13,7 +17,7 @@ export interface ThemeProviderProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
13
17
|
ref?: React.Ref<HTMLDivElement>;
|
|
14
18
|
/** Token overrides applied to this subtree. */
|
|
15
19
|
theme?: Theme;
|
|
16
|
-
/** Color mode for this subtree. */
|
|
20
|
+
/** Color mode for this subtree; `system` follows the OS. Left out, the subtree inherits its ancestor's mode. */
|
|
17
21
|
mode?: ColorMode;
|
|
18
22
|
}
|
|
19
23
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.js","names":["React","PortalContainerContext","cx","ThemeTokenName","Theme","Partial","Record","ColorMode","themeToStyle","theme","CSSProperties","style","name","value","Object","entries","createTheme","themes","assign","ThemeProviderProps","HTMLAttributes","HTMLDivElement","ref","Ref","mode","ThemeProvider","t0","$","_c","children","className","props","container","setContainer","useState","t1","t2","t3","t4","t5","Symbol","for","t6","_c"],"sources":["../../src/theme/ThemeProvider.tsx"],"sourcesContent":["import * as React from 'react';\nimport { PortalContainerContext } from '../utils/portal';\nimport { cx } from '../utils/cx';\n\n
|
|
1
|
+
{"version":3,"file":"ThemeProvider.js","names":["React","PortalContainerContext","cx","ThemeTokenName","Theme","Partial","Record","ColorMode","themeToStyle","theme","CSSProperties","style","name","value","Object","entries","createTheme","themes","assign","ThemeProviderProps","HTMLAttributes","HTMLDivElement","ref","Ref","mode","ThemeProvider","t0","$","_c","children","className","props","container","setContainer","useState","t1","t2","t3","t4","t5","Symbol","for","t6","_c"],"sources":["../../src/theme/ThemeProvider.tsx"],"sourcesContent":["import * as React from 'react';\nimport { PortalContainerContext } from '../utils/portal';\nimport { cx } from '../utils/cx';\n\n/**\n * Token or component variable name without the `--oui-` prefix, e.g. `color-accent`, `space-8`,\n * `card-padding` or `navbar-width`. Any name is accepted, because component variables follow no single pattern.\n */\nexport type ThemeTokenName = string;\n\n/** A partial set of token overrides. Values are any valid CSS value. */\nexport type Theme = Partial<Record<ThemeTokenName, string>>;\n\n/** Colour mode of a subtree. `system` follows the OS setting (`prefers-color-scheme`) and switches with it. */\nexport type ColorMode = 'light' | 'dark' | 'system';\n\n/** Converts a theme object into CSS custom properties for a `style` prop. */\nexport function themeToStyle(theme: Theme | undefined): React.CSSProperties {\n const style: Record<string, string> = {};\n if (!theme) return style;\n for (const [name, value] of Object.entries(theme)) {\n if (value != null && value !== '') style[`--oui-${name}`] = value;\n }\n return style as React.CSSProperties;\n}\n\n/** Builds a theme from a base, applying overrides on top. */\nexport function createTheme(...themes: Theme[]): Theme {\n return Object.assign({}, ...themes);\n}\n\nexport interface ThemeProviderProps extends React.HTMLAttributes<HTMLDivElement> {\n /** Ref to the provider's root element. */\n ref?: React.Ref<HTMLDivElement>;\n /** Token overrides applied to this subtree. */\n theme?: Theme;\n /** Color mode for this subtree; `system` follows the OS. Left out, the subtree inherits its ancestor's mode. */\n mode?: ColorMode;\n}\n\n/**\n * Scopes a theme to its children. Popups opened inside are portalled into the\n * provider so they pick up the same tokens.\n */\nexport function ThemeProvider({ theme, mode, className, style, children, ref, ...props }: ThemeProviderProps) {\n const [container, setContainer] = React.useState<HTMLDivElement | null>(null);\n return (\n <div\n ref={ref}\n className={cx('oui-theme', className)}\n data-oui-theme={mode}\n style={{ ...themeToStyle(theme), ...style }}\n {...props}\n >\n <PortalContainerContext value={container}>{children}</PortalContainerContext>\n <div className=\"oui-theme__portal\" ref={setContainer} />\n </div>\n );\n}\n"],"mappings":";;;;;;;;AAiBA,SAAgBQ,aAAaC,OAA+C;CAC1E,MAAME,QAAgC,CAAC;CACvC,IAAI,CAACF,OAAO,OAAOE;CACnB,KAAK,MAAM,CAACC,MAAMC,UAAUC,OAAOC,QAAQN,KAAK,GAC9C,IAAII,SAAS,QAAQA,UAAU,IAAIF,MAAM,SAASC,UAAUC;CAE9D,OAAOF;AACT;;AAGA,SAAgBK,YAAY,GAAGC,QAAwB;CACrD,OAAOH,OAAOI,OAAO,CAAC,GAAG,GAAGD,MAAM;AACpC;;;;;AAeA,SAAOQ,cAAAC,IAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAN;CAAA,IAAAO;CAAA,IAAAT;CAAA,IAAAX;CAAA,IAAAF;CAAA,IAAAkB,EAAA,OAAAD,IAAA;EAAuB,CAAA,CAAAjB,OAAAe,MAAAM,WAAAnB,OAAAkB,UAAAP,KAAA,GAAAS,SAAAL;EAA8EC,EAAA,KAAAD;EAAAC,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAH;EAAAG,EAAA,KAAAI;EAAAJ,EAAA,KAAAL;EAAAK,EAAA,KAAAhB;EAAAgB,EAAA,KAAAlB;CAAA,OAAA;EAAAoB,WAAAF,EAAA;EAAAG,YAAAH,EAAA;EAAAH,OAAAG,EAAA;EAAAI,QAAAJ,EAAA;EAAAL,MAAAK,EAAA;EAAAhB,QAAAgB,EAAA;EAAAlB,QAAAkB,EAAA;CAAA;CAC1G,MAAA,CAAAK,WAAAC,gBAAkCjC,MAAKkC,SAAiC,IAAI;CAAE,IAAAC;CAAA,IAAAR,EAAA,OAAAG,WAAA;EAI/DK,KAAAjC,GAAG,aAAa4B,SAAS;EAACH,EAAA,KAAAG;EAAAH,EAAA,KAAAQ;CAAA,OAAAA,KAAAR,EAAA;CAAA,IAAAS;CAAA,IAAAT,EAAA,QAAAlB,OAAA;EAEzB2B,KAAA5B,aAAaC,KAAK;EAACkB,EAAA,MAAAlB;EAAAkB,EAAA,MAAAS;CAAA,OAAAA,KAAAT,EAAA;CAAA,IAAAU;CAAA,IAAAV,EAAA,QAAAhB,SAAAgB,EAAA,QAAAS,IAAA;EAAxBC,KAAA;GAAA,GAAKD;GAAmB,GAAKzB;EAAM;EAACgB,EAAA,MAAAhB;EAAAgB,EAAA,MAAAS;EAAAT,EAAA,MAAAU;CAAA,OAAAA,KAAAV,EAAA;CAAA,IAAAW;CAAA,IAAAX,EAAA,QAAAE,YAAAF,EAAA,QAAAK,WAAA;EAG3CM,KAAA,oBAAC,wBAAD;GAA+BN,OAAAA;GAAYH;EAApB,CAAA;EAAsDF,EAAA,MAAAE;EAAAF,EAAA,MAAAK;EAAAL,EAAA,MAAAW;CAAA,OAAAA,KAAAX,EAAA;CAAA,IAAAY;CAAA,IAAAZ,EAAA,QAAAa,OAAAC,IAAA,2BAAA,GAAA;EAC7EF,KAAA,oBAAA,OAAA;GAAe,WAAA;GAAyBN,KAAAA;EAAY,CAAA;EAAIN,EAAA,MAAAY;CAAA,OAAAA,KAAAZ,EAAA;CAAA,IAAAe;CAAA,IAAAf,EAAA,QAAAH,QAAAG,EAAA,QAAAI,SAAAJ,EAAA,QAAAL,OAAAK,EAAA,QAAAQ,MAAAR,EAAA,QAAAU,MAAAV,EAAA,QAAAW,IAAA;EAR1DI,KAAA,qBAAA,OAAA;GACOpB;GACM,WAAAa;GACKX,kBAAAA;GACT,OAAAa;GAAoC,GACvCN;GALN,UAAA,CAOEO,IACAC,EACI;;EAAAZ,EAAA,MAAAH;EAAAG,EAAA,MAAAI;EAAAJ,EAAA,MAAAL;EAAAK,EAAA,MAAAQ;EAAAR,EAAA,MAAAU;EAAAV,EAAA,MAAAW;EAAAX,EAAA,MAAAe;CAAA,OAAAA,KAAAf,EAAA;CAAA,OATNe;AASM"}
|
package/dist/utils/media.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** Media query for phones, which get their own layout at and below 640px. Pass it to `useMediaQuery`. */
|
|
2
2
|
export declare const NARROW_SCREEN = "(max-width: 640px)";
|
|
3
|
-
/**
|
|
3
|
+
/** Media query for screens where `AppShell` moves its navbar into a drawer and shows the tab bar (900px and below). */
|
|
4
|
+
export declare const SHELL_COLLAPSED = "(max-width: 900px)";
|
|
5
|
+
/**
|
|
6
|
+
* Whether a media query matches, following changes. `false` during server rendering.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* const phone = useMediaQuery(NARROW_SCREEN);
|
|
10
|
+
*/
|
|
4
11
|
export declare function useMediaQuery(query: string): boolean;
|
package/dist/utils/media.js
CHANGED
|
@@ -2,9 +2,16 @@
|
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
//#region src/utils/media.ts
|
|
5
|
-
/**
|
|
5
|
+
/** Media query for phones, which get their own layout at and below 640px. Pass it to `useMediaQuery`. */
|
|
6
6
|
var NARROW_SCREEN = "(max-width: 640px)";
|
|
7
|
-
/**
|
|
7
|
+
/** Media query for screens where `AppShell` moves its navbar into a drawer and shows the tab bar (900px and below). */
|
|
8
|
+
var SHELL_COLLAPSED = "(max-width: 900px)";
|
|
9
|
+
/**
|
|
10
|
+
* Whether a media query matches, following changes. `false` during server rendering.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* const phone = useMediaQuery(NARROW_SCREEN);
|
|
14
|
+
*/
|
|
8
15
|
function useMediaQuery(query) {
|
|
9
16
|
const $ = c(3);
|
|
10
17
|
let t0;
|
|
@@ -29,6 +36,6 @@ function _temp() {
|
|
|
29
36
|
return false;
|
|
30
37
|
}
|
|
31
38
|
//#endregion
|
|
32
|
-
export { NARROW_SCREEN, useMediaQuery };
|
|
39
|
+
export { NARROW_SCREEN, SHELL_COLLAPSED, useMediaQuery };
|
|
33
40
|
|
|
34
41
|
//# sourceMappingURL=media.js.map
|
package/dist/utils/media.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media.js","names":["React","NARROW_SCREEN","useMediaQuery","query","$","_c","t0","t1","notify","list","window","matchMedia","addEventListener","removeEventListener","matches","useSyncExternalStore","_temp","_c"],"sources":["../../src/utils/media.ts"],"sourcesContent":["import * as React from 'react';\n\n/**
|
|
1
|
+
{"version":3,"file":"media.js","names":["React","NARROW_SCREEN","SHELL_COLLAPSED","useMediaQuery","query","$","_c","t0","t1","notify","list","window","matchMedia","addEventListener","removeEventListener","matches","useSyncExternalStore","_temp","_c"],"sources":["../../src/utils/media.ts"],"sourcesContent":["import * as React from 'react';\n\n/** Media query for phones, which get their own layout at and below 640px. Pass it to `useMediaQuery`. */\nexport const NARROW_SCREEN = '(max-width: 640px)';\n\n/** Media query for screens where `AppShell` moves its navbar into a drawer and shows the tab bar (900px and below). */\nexport const SHELL_COLLAPSED = '(max-width: 900px)';\n\n/**\n * Whether a media query matches, following changes. `false` during server rendering.\n *\n * @example\n * const phone = useMediaQuery(NARROW_SCREEN);\n */\nexport function useMediaQuery(query: string) {\n return React.useSyncExternalStore(\n (notify) => {\n const list = window.matchMedia(query);\n list.addEventListener('change', notify);\n return () => list.removeEventListener('change', notify);\n },\n () => window.matchMedia(query).matches,\n () => false,\n );\n}\n"],"mappings":";;;;;AAGA,IAAaC,gBAAgB;;AAG7B,IAAaC,kBAAkB;;;;;;;AAQ/B,SAAOC,cAAAC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,OAAA;EAEHG,MAAAE,WAAA;GACE,MAAAC,OAAaC,OAAMC,WAAYR,KAAK;GACpCM,KAAIG,iBAAkB,UAAUJ,MAAM;GAAC,aAC1BC,KAAII,oBAAqB,UAAUL,MAAM;EAAC;EAEzDD,WAAMG,OAAMC,WAAYR,KAAK,CAAC,CAAAW;EAAQV,EAAA,KAAAD;EAAAC,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAD,KAAAF,EAAA;EAAAG,KAAAH,EAAA;CAAA;CAAA,OANjCL,MAAKgB,qBACVT,IAKAC,IACAS,KACF;AAAC;AATI,SAAAA,QAAA;CAAA,OAQG;AAAK"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optimum-intelligence/opti-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Optimum's customizable React component library, built on Base UI.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Optimum Intelligence",
|
|
@@ -51,9 +51,12 @@
|
|
|
51
51
|
"build": "npm run typecheck && vite build && tsc -p tsconfig.build.json && npm run docs",
|
|
52
52
|
"docs": "node scripts/generate-docs.mjs",
|
|
53
53
|
"build:showcase": "vite build --mode showcase",
|
|
54
|
-
"test": "npm run build && node --test tests
|
|
54
|
+
"test": "npm run build && node --test tests/*.test.mjs",
|
|
55
55
|
"prepack": "npm run build"
|
|
56
56
|
},
|
|
57
|
+
"engines": {
|
|
58
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
59
|
+
},
|
|
57
60
|
"peerDependencies": {
|
|
58
61
|
"react": "^19.0.0",
|
|
59
62
|
"react-dom": "^19.0.0"
|