@ostack.tech/ui 0.11.3 → 0.12.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/ostack-ui.css +40 -32
- package/dist/ostack-ui.js +552 -304
- package/dist/ostack-ui.js.map +1 -1
- package/dist/types/components/DataTable/DataTableColumn.d.ts +12 -1
- package/dist/types/components/DataTable/DataTableContext.d.ts +2 -0
- package/dist/types/components/DataTable/DataTableFoot.d.ts +2 -1
- package/dist/types/components/DataTable/columnUtils.d.ts +5 -0
- package/dist/types/components/DataTable/sanitizeProps.d.ts +8 -0
- package/dist/types/components/Layer/Layer.d.ts +32 -0
- package/dist/types/components/Layer/LayerContext.d.ts +6 -0
- package/dist/types/components/Layer/index.d.ts +2 -0
- package/dist/types/components/Overlay/Overlay.d.ts +1 -1
- package/dist/types/components/Root/Root.d.ts +9 -4
- package/dist/types/components/Table/Table.d.ts +4 -4
- package/dist/types/components/Table/TableCell.d.ts +15 -0
- package/dist/types/components/Table/TableColumn.d.ts +1 -1
- package/dist/types/components/Table/TableContext.d.ts +9 -9
- package/dist/types/components/Table/TableHead.d.ts +2 -2
- package/dist/types/components/Table/columnUtils.d.ts +35 -0
- package/dist/types/components/Toast/ToastProvider.d.ts +2 -1
- package/dist/types/components/Toast/ToastViewport.d.ts +8 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +5 -5
- package/scss/components/CommandMenu/_CommandMenu-variables.scss +0 -1
- package/scss/components/CommandMenu/_CommandMenu.scss +0 -2
- package/scss/components/DataTable/_DataTable.scss +4 -3
- package/scss/components/Dialog/_Dialog-variables.scss +0 -1
- package/scss/components/Dialog/_Dialog.scss +0 -1
- package/scss/components/DropdownMenu/_DropdownMenu-variables.scss +0 -2
- package/scss/components/DropdownMenu/_DropdownMenu.scss +0 -1
- package/scss/components/Overlay/_Overlay-variables.scss +0 -1
- package/scss/components/Overlay/_Overlay.scss +0 -1
- package/scss/components/Table/_Table-variables.scss +2 -4
- package/scss/components/Table/_Table.scss +10 -8
- package/scss/components/Tabs/_Tabs-variables.scss +3 -3
- package/scss/components/Toast/_Toast.scss +26 -14
- package/scss/components/Tooltip/_Tooltip-variables.scss +0 -1
- package/scss/components/Tooltip/_Tooltip.scss +0 -2
- package/scss/scss/_base-variables.scss +0 -2
- package/scss/scss/placeholders/button/_button-variables.scss +1 -1
- package/scss/scss/placeholders/button/_button.scss +5 -2
- package/scss/scss/placeholders/control/_control-variables.scss +3 -5
- package/scss/scss/placeholders/popover/_popover-variables.scss +0 -1
- package/scss/scss/placeholders/popover/_popover.scss +0 -2
package/dist/ostack-ui.css
CHANGED
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
box-shadow: none;
|
|
229
229
|
}
|
|
230
230
|
.o-ui-icon-button:focus, .o-ui-button:focus {
|
|
231
|
-
z-index:
|
|
231
|
+
z-index: 1;
|
|
232
232
|
}
|
|
233
233
|
.o-ui-icon-button:focus-visible, .o-ui-button:focus-visible {
|
|
234
234
|
outline: 2px solid var(--o-ui-accent-8);
|
|
@@ -282,6 +282,9 @@
|
|
|
282
282
|
.o-ui-icon-button--ghost:is(:active, [data-active]):not(:disabled):not([data-disabled]), .o-ui-button--ghost:is(:active, [data-active]):not(:disabled):not([data-disabled]), [aria-haspopup][aria-expanded=true].o-ui-icon-button--ghost, [aria-haspopup][aria-expanded=true].o-ui-button--ghost {
|
|
283
283
|
--o-ui-button-background-color: var(--o-ui-accent-a4);
|
|
284
284
|
}
|
|
285
|
+
.o-ui-icon-button__keybinds, .o-ui-button__keybinds {
|
|
286
|
+
display: block;
|
|
287
|
+
}
|
|
285
288
|
.o-ui-icon-button__keybinds:not(:first-child), .o-ui-button__keybinds:not(:first-child) {
|
|
286
289
|
margin-top: var(--o-ui-space);
|
|
287
290
|
}
|
|
@@ -1011,7 +1014,7 @@
|
|
|
1011
1014
|
padding-left: calc(var(--o-ui-space) * 2.5);
|
|
1012
1015
|
padding-right: calc(var(--o-ui-space) * 2.5);
|
|
1013
1016
|
font-size: !important;
|
|
1014
|
-
z-index:
|
|
1017
|
+
z-index: 2;
|
|
1015
1018
|
}
|
|
1016
1019
|
.o-ui-radio-group__clear-button:focus:not(:focus-visible) {
|
|
1017
1020
|
box-shadow: none;
|
|
@@ -1319,9 +1322,6 @@ a > .o-ui-code {
|
|
|
1319
1322
|
background-color: var(--o-ui-background-color);
|
|
1320
1323
|
box-shadow: var(--o-ui-box-shadow-sm);
|
|
1321
1324
|
}
|
|
1322
|
-
.o-ui-command-menu__dialog {
|
|
1323
|
-
z-index: var(--o-ui-z-index-dialog);
|
|
1324
|
-
}
|
|
1325
1325
|
.o-ui-command-menu__dialog .o-ui-command-menu {
|
|
1326
1326
|
box-shadow: var(--o-ui-box-shadow-lg);
|
|
1327
1327
|
}
|
|
@@ -1516,7 +1516,7 @@ a > .o-ui-code {
|
|
|
1516
1516
|
text-shadow: var(--o-ui-control-addon-text-shadow);
|
|
1517
1517
|
}
|
|
1518
1518
|
.o-ui-control-addon:focus {
|
|
1519
|
-
z-index:
|
|
1519
|
+
z-index: 1;
|
|
1520
1520
|
}
|
|
1521
1521
|
.o-ui-control-addon:focus-visible {
|
|
1522
1522
|
outline: 2px solid var(--o-ui-control-addon-outline-color);
|
|
@@ -1696,7 +1696,7 @@ a > .o-ui-code {
|
|
|
1696
1696
|
.o-ui-data-table__filter-root {
|
|
1697
1697
|
max-width: 250px;
|
|
1698
1698
|
}
|
|
1699
|
-
.o-ui-data-table__rows-per-page, .o-ui-data-table__pagination {
|
|
1699
|
+
.o-ui-data-table__rows-per-page, .o-ui-data-table__pagination, .o-ui-data-table__pagination-label {
|
|
1700
1700
|
display: inline-flex;
|
|
1701
1701
|
align-items: center;
|
|
1702
1702
|
}
|
|
@@ -1708,9 +1708,9 @@ a > .o-ui-code {
|
|
|
1708
1708
|
width: auto !important;
|
|
1709
1709
|
}
|
|
1710
1710
|
.o-ui-data-table__pagination-label {
|
|
1711
|
-
display: flex;
|
|
1712
1711
|
flex-wrap: wrap;
|
|
1713
|
-
|
|
1712
|
+
margin-top: 0;
|
|
1713
|
+
margin-bottom: 0;
|
|
1714
1714
|
font-size: var(--o-ui-font-size-sm);
|
|
1715
1715
|
line-height: var(--o-ui-line-height-sm);
|
|
1716
1716
|
font-weight: 400;
|
|
@@ -1897,7 +1897,7 @@ a > .o-ui-code {
|
|
|
1897
1897
|
cursor: text;
|
|
1898
1898
|
}
|
|
1899
1899
|
.o-ui-input__container:is([data-focused], [data-state=open]), .o-ui-date-range-input__container:is([data-focused], [data-state=open]) {
|
|
1900
|
-
z-index:
|
|
1900
|
+
z-index: 1;
|
|
1901
1901
|
}
|
|
1902
1902
|
[data-disabled].o-ui-input__container, [data-disabled].o-ui-date-range-input__container {
|
|
1903
1903
|
border-color: color-mix(in srgb, var(--o-ui-control-border-color) 50%, transparent);
|
|
@@ -1960,12 +1960,12 @@ a > .o-ui-code {
|
|
|
1960
1960
|
}
|
|
1961
1961
|
.o-ui-input__clear-button, .o-ui-date-range-input__clear-button {
|
|
1962
1962
|
margin: 0 calc(var(--o-ui-control-padding-x) - 0.5em) 0 -0.5em;
|
|
1963
|
-
z-index:
|
|
1963
|
+
z-index: 2;
|
|
1964
1964
|
}
|
|
1965
1965
|
.o-ui-input__spinner, .o-ui-date-range-input__spinner {
|
|
1966
1966
|
margin-right: var(--o-ui-control-padding-x);
|
|
1967
1967
|
pointer-events: none;
|
|
1968
|
-
z-index:
|
|
1968
|
+
z-index: 2;
|
|
1969
1969
|
}
|
|
1970
1970
|
[data-disabled].o-ui-input__spinner, [data-disabled].o-ui-date-range-input__spinner {
|
|
1971
1971
|
opacity: 0.5;
|
|
@@ -2038,7 +2038,6 @@ a > .o-ui-code {
|
|
|
2038
2038
|
|
|
2039
2039
|
.o-ui-dialog {
|
|
2040
2040
|
box-shadow: var(--o-ui-box-shadow-lg);
|
|
2041
|
-
z-index: var(--o-ui-z-index-dialog);
|
|
2042
2041
|
--o-ui-animation-transform: translateY(-5px) scale(0.97);
|
|
2043
2042
|
}
|
|
2044
2043
|
.o-ui-dialog:focus {
|
|
@@ -2097,7 +2096,6 @@ a > .o-ui-code {
|
|
|
2097
2096
|
box-shadow: var(--o-ui-box-shadow-md);
|
|
2098
2097
|
overflow: auto;
|
|
2099
2098
|
scrollbar-width: thin;
|
|
2100
|
-
z-index: var(--o-ui-z-index-popover);
|
|
2101
2099
|
}
|
|
2102
2100
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
2103
2101
|
[data-state=open].o-ui-popover, [data-state=open].o-ui-dropdown-menu {
|
|
@@ -2126,7 +2124,6 @@ a > .o-ui-code {
|
|
|
2126
2124
|
.o-ui-dropdown-menu {
|
|
2127
2125
|
max-width: var(--radix-dropdown-menu-content-available-width);
|
|
2128
2126
|
max-height: var(--radix-dropdown-menu-content-available-height);
|
|
2129
|
-
z-index: var(--o-ui-z-index-dropdown);
|
|
2130
2127
|
}
|
|
2131
2128
|
:is(.o-ui-dropdown-menu__item, .o-ui-dropdown-menu__checkbox-item, .o-ui-dropdown-menu__radio-item) .o-ui-menu-list__item-action:not(a):not(:disabled, [data-disabled]) {
|
|
2132
2129
|
cursor: pointer;
|
|
@@ -2808,7 +2805,6 @@ a > .o-ui-code {
|
|
|
2808
2805
|
justify-content: center;
|
|
2809
2806
|
padding: calc(var(--o-ui-space) * 7) 2.5dvw;
|
|
2810
2807
|
overflow-y: auto;
|
|
2811
|
-
z-index: var(--o-ui-z-index-overlay);
|
|
2812
2808
|
background-color: var(--o-ui-neutral-a8);
|
|
2813
2809
|
}
|
|
2814
2810
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
@@ -3014,7 +3010,6 @@ a > .o-ui-code {
|
|
|
3014
3010
|
--o-ui-transition-timing-function: ease-in-out;
|
|
3015
3011
|
--o-ui-animation-fade-duration: 0.15s;
|
|
3016
3012
|
--o-ui-animation-fade-timing-function: linear;
|
|
3017
|
-
--o-ui-z-index-focused: 5;
|
|
3018
3013
|
--o-ui-z-index-docked: 10;
|
|
3019
3014
|
--o-ui-z-index-dropdown: 1000;
|
|
3020
3015
|
--o-ui-z-index-sticky: 1100;
|
|
@@ -3858,7 +3853,7 @@ a > .o-ui-code {
|
|
|
3858
3853
|
}
|
|
3859
3854
|
.o-ui-table__cell[data-sticky] {
|
|
3860
3855
|
position: sticky;
|
|
3861
|
-
z-index: var(--o-ui-z-index-docked);
|
|
3856
|
+
z-index: calc(var(--o-ui-z-index-docked) - 1);
|
|
3862
3857
|
}
|
|
3863
3858
|
.o-ui-table__cell[data-sticky][data-stuck]::before {
|
|
3864
3859
|
content: "";
|
|
@@ -3869,17 +3864,19 @@ a > .o-ui-code {
|
|
|
3869
3864
|
height: calc(100% + 1px);
|
|
3870
3865
|
}
|
|
3871
3866
|
.o-ui-table__cell[data-sticky=left] {
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3867
|
+
left: var(--o-ui-table-cell-sticky-offset, 0);
|
|
3868
|
+
}
|
|
3869
|
+
.o-ui-table__cell[data-sticky=left][data-stuck]:not([data-framed]) {
|
|
3870
|
+
box-shadow: 1px 0 0 0 var(--o-ui-table-cell-border-color);
|
|
3875
3871
|
}
|
|
3876
3872
|
.o-ui-table__cell[data-sticky=left][data-stuck]::before {
|
|
3877
3873
|
right: -8px;
|
|
3878
3874
|
background-image: linear-gradient(90deg, var(--o-ui-neutral-a3), transparent);
|
|
3879
3875
|
}
|
|
3880
3876
|
.o-ui-table__cell[data-sticky=right] {
|
|
3881
|
-
|
|
3882
|
-
|
|
3877
|
+
right: var(--o-ui-table-cell-sticky-offset, 0);
|
|
3878
|
+
}
|
|
3879
|
+
.o-ui-table__cell[data-sticky=right][data-stuck] {
|
|
3883
3880
|
box-shadow: -1px 0 0 0 var(--o-ui-table-cell-border-color);
|
|
3884
3881
|
}
|
|
3885
3882
|
.o-ui-table__cell[data-sticky=right][data-stuck]::before {
|
|
@@ -3891,7 +3888,7 @@ a > .o-ui-code {
|
|
|
3891
3888
|
}
|
|
3892
3889
|
.o-ui-table__head[data-sticky], .o-ui-table__foot[data-sticky] {
|
|
3893
3890
|
position: sticky;
|
|
3894
|
-
z-index:
|
|
3891
|
+
z-index: var(--o-ui-z-index-docked);
|
|
3895
3892
|
}
|
|
3896
3893
|
.o-ui-table__head[data-stuck]::before, .o-ui-table__foot[data-stuck]::before {
|
|
3897
3894
|
content: "";
|
|
@@ -4028,7 +4025,7 @@ a > .o-ui-code {
|
|
|
4028
4025
|
opacity: 0.5;
|
|
4029
4026
|
}
|
|
4030
4027
|
.o-ui-tabs__tab:focus {
|
|
4031
|
-
z-index:
|
|
4028
|
+
z-index: 1;
|
|
4032
4029
|
}
|
|
4033
4030
|
.o-ui-tabs__tab:not(:last-child) {
|
|
4034
4031
|
margin-right: var(--o-ui-tabs-tab-list-gap-x);
|
|
@@ -4170,7 +4167,7 @@ a > .o-ui-code {
|
|
|
4170
4167
|
width: 4px;
|
|
4171
4168
|
height: calc(100% + 4px);
|
|
4172
4169
|
top: -2px;
|
|
4173
|
-
z-index:
|
|
4170
|
+
z-index: var(--o-ui-z-index-docked);
|
|
4174
4171
|
}
|
|
4175
4172
|
.o-ui-tabs__scroll-button--left:not(:disabled)::after {
|
|
4176
4173
|
right: -4px;
|
|
@@ -4257,12 +4254,18 @@ a > .o-ui-code {
|
|
|
4257
4254
|
outline: 0;
|
|
4258
4255
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.075), 0 0 0 2px #1c2024;
|
|
4259
4256
|
}
|
|
4257
|
+
.o-ui-toast__root[data-swipe-direction=left] {
|
|
4258
|
+
--o-ui-toast-start-x: calc(-100% - var(--o-ui-toast-viewport-padding));
|
|
4259
|
+
}
|
|
4260
|
+
.o-ui-toast__root[data-swipe-direction=right] {
|
|
4261
|
+
--o-ui-toast-start-x: calc(100% + var(--o-ui-toast-viewport-padding));
|
|
4262
|
+
}
|
|
4260
4263
|
@keyframes o-ui-toast-open {
|
|
4261
4264
|
from {
|
|
4262
|
-
transform: translateX(
|
|
4265
|
+
transform: translateX(var(--o-ui-toast-start-x));
|
|
4263
4266
|
}
|
|
4264
4267
|
60% {
|
|
4265
|
-
transform: translateX(
|
|
4268
|
+
transform: translateX(var(--o-ui-toast-start-x));
|
|
4266
4269
|
}
|
|
4267
4270
|
to {
|
|
4268
4271
|
transform: translateX(0);
|
|
@@ -4304,10 +4307,10 @@ a > .o-ui-code {
|
|
|
4304
4307
|
transform: translateX(var(--radix-toast-swipe-end-x));
|
|
4305
4308
|
}
|
|
4306
4309
|
60% {
|
|
4307
|
-
transform: translateX(
|
|
4310
|
+
transform: translateX(var(--o-ui-toast-start-x));
|
|
4308
4311
|
}
|
|
4309
4312
|
to {
|
|
4310
|
-
transform: translateX(
|
|
4313
|
+
transform: translateX(var(--o-ui-toast-start-x));
|
|
4311
4314
|
}
|
|
4312
4315
|
}
|
|
4313
4316
|
.o-ui-toast__root + .o-ui-toast__root {
|
|
@@ -4351,7 +4354,14 @@ a > .o-ui-code {
|
|
|
4351
4354
|
.o-ui-toast__viewport {
|
|
4352
4355
|
position: fixed;
|
|
4353
4356
|
bottom: 0;
|
|
4357
|
+
}
|
|
4358
|
+
.o-ui-toast__viewport[data-position=left] {
|
|
4359
|
+
left: 0;
|
|
4360
|
+
}
|
|
4361
|
+
.o-ui-toast__viewport[data-position=right] {
|
|
4354
4362
|
right: 0;
|
|
4363
|
+
}
|
|
4364
|
+
.o-ui-toast__viewport {
|
|
4355
4365
|
display: flex;
|
|
4356
4366
|
flex-direction: column;
|
|
4357
4367
|
width: 420px;
|
|
@@ -4361,7 +4371,6 @@ a > .o-ui-code {
|
|
|
4361
4371
|
padding: var(--o-ui-toast-viewport-padding);
|
|
4362
4372
|
outline: none;
|
|
4363
4373
|
list-style: none;
|
|
4364
|
-
z-index: 1700;
|
|
4365
4374
|
}
|
|
4366
4375
|
.o-ui-toast--outlined {
|
|
4367
4376
|
background-color: var(--o-ui-background-color);
|
|
@@ -4378,7 +4387,6 @@ a > .o-ui-code {
|
|
|
4378
4387
|
background-color: var(--o-ui-neutral-12);
|
|
4379
4388
|
color: var(--o-ui-neutral-1);
|
|
4380
4389
|
box-shadow: var(--o-ui-box-shadow-sm);
|
|
4381
|
-
z-index: var(--o-ui-z-index-tooltip);
|
|
4382
4390
|
}
|
|
4383
4391
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
4384
4392
|
.o-ui-tooltip[data-state=delayed-open] {
|