sit-onyx 1.0.0-beta.280 → 1.0.0-beta.282
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/OnyxPageLayout/types.d.ts +1 -1
- package/dist/index.esm-bundler.js +68 -53
- package/dist/index.esm-bundler.js.map +1 -1
- package/dist/index.js +1111 -1098
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/styles/grid.ct.tsx +110 -46
- package/src/styles/grid.scss +90 -44
- package/src/styles/variables/density-compact.css +1 -1
- package/src/styles/variables/density-cozy.css +1 -1
- package/src/styles/variables/density-default.css +1 -1
- package/src/styles/variables/spacing.css +1 -1
- package/src/styles/variables/themes/onyx.css +1 -1
- package/src/styles/variables/themes/value.css +1 -1
|
@@ -8,7 +8,7 @@ export type OnyxPageLayoutProps = Partial<SkeletonProvidedProp> & {
|
|
|
8
8
|
footerAlignment?: "full" | "page";
|
|
9
9
|
/**
|
|
10
10
|
* If `true`, the default responsive page content padding will be removed.
|
|
11
|
-
* You can use the `onyx-grid-
|
|
11
|
+
* You can use the `onyx-grid-layout` CSS class on your own which is used internally for the padding.
|
|
12
12
|
* Useful when e.g. implementing a page with a full width hero image at the top, followed by content below.
|
|
13
13
|
*/
|
|
14
14
|
noPadding?: boolean;
|
|
@@ -1951,7 +1951,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
1951
1951
|
return __returned__;
|
|
1952
1952
|
}
|
|
1953
1953
|
});
|
|
1954
|
-
const _hoisted_1$Y = { class: "onyx-bottom-bar__content" };
|
|
1954
|
+
const _hoisted_1$Y = { class: "onyx-bottom-bar__content onyx-grid-container" };
|
|
1955
1955
|
const _hoisted_2$G = { class: "onyx-bottom-bar__content--left" };
|
|
1956
1956
|
const _hoisted_3$p = { class: "onyx-bottom-bar__content--right" };
|
|
1957
1957
|
function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -2147,6 +2147,7 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2147
2147
|
class: normalizeClass([
|
|
2148
2148
|
"onyx-component",
|
|
2149
2149
|
"onyx-breadcrumb",
|
|
2150
|
+
"onyx-grid-container",
|
|
2150
2151
|
$setup.densityClass,
|
|
2151
2152
|
$setup.props.container ? "onyx-breadcrumb--container" : ""
|
|
2152
2153
|
]),
|
|
@@ -2780,7 +2781,8 @@ const useAnchorPositionPolyfill = ({
|
|
|
2780
2781
|
});
|
|
2781
2782
|
const useragentSupportsAnchorApi = ref(true);
|
|
2782
2783
|
onBeforeMount(() => {
|
|
2783
|
-
|
|
2784
|
+
const isSafari = /Safari/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent);
|
|
2785
|
+
useragentSupportsAnchorApi.value = "CSS" in globalThis && typeof CSS !== "undefined" && CSS.supports("anchor-name: --test") && CSS.supports("position-area: top") && !isSafari;
|
|
2784
2786
|
});
|
|
2785
2787
|
return {
|
|
2786
2788
|
leftPosition,
|
|
@@ -2995,13 +2997,20 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
2995
2997
|
});
|
|
2996
2998
|
const id = useId();
|
|
2997
2999
|
const anchorName = computed(() => `--anchor-${id}`);
|
|
2998
|
-
const tooltipStyles = computed(() =>
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3000
|
+
const tooltipStyles = computed(() => {
|
|
3001
|
+
if (useragentSupportsAnchorApi.value) {
|
|
3002
|
+
return {
|
|
3003
|
+
width: tooltipWidth.value,
|
|
3004
|
+
"position-anchor": anchorName.value,
|
|
3005
|
+
"position-area": positionAndAlignment.value
|
|
3006
|
+
};
|
|
3007
|
+
}
|
|
3008
|
+
return {
|
|
3009
|
+
width: tooltipWidth.value,
|
|
3010
|
+
left: leftPosition.value,
|
|
3011
|
+
top: topPosition.value
|
|
3012
|
+
};
|
|
3013
|
+
});
|
|
3005
3014
|
const __returned__ = { props, densityClass, t, _isVisible, isVisible, tooltipOptions, toggletipOptions, type, toolTipPosition, alignment, positionAndAlignment, createPattern, ariaPattern, tooltip: tooltip2, trigger, alignsWithEdge, fitParent, tooltipWrapperRef, tooltipRef, openDirection, updateOpenDirection, openAlignment, updateOpenAlignment, leftPosition, topPosition, updateAnchorPositionPolyfill, useragentSupportsAnchorApi, updateDirections, handleOpening, tooltipClasses, width, tooltipWidth, id, anchorName, tooltipStyles, OnyxIcon };
|
|
3006
3015
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
3007
3016
|
return __returned__;
|
|
@@ -3615,7 +3624,7 @@ const _hoisted_2$z = ["id"];
|
|
|
3615
3624
|
const _hoisted_3$n = { class: "onyx-table-wrapper__actions" };
|
|
3616
3625
|
const _hoisted_4$i = ["tabindex"];
|
|
3617
3626
|
const _hoisted_5$d = ["aria-labelledby"];
|
|
3618
|
-
const _hoisted_6$
|
|
3627
|
+
const _hoisted_6$b = ["span"];
|
|
3619
3628
|
const _hoisted_7$4 = {
|
|
3620
3629
|
key: 0,
|
|
3621
3630
|
class: "onyx-table__header"
|
|
@@ -3668,7 +3677,7 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3668
3677
|
return openBlock(), createElementBlock("colgroup", {
|
|
3669
3678
|
key: group.key,
|
|
3670
3679
|
span: group.span
|
|
3671
|
-
}, null, 8, _hoisted_6$
|
|
3680
|
+
}, null, 8, _hoisted_6$b);
|
|
3672
3681
|
}),
|
|
3673
3682
|
128
|
|
3674
3683
|
/* KEYED_FRAGMENT */
|
|
@@ -3998,16 +4007,15 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
3998
4007
|
});
|
|
3999
4008
|
const disabled = computed(() => props.disabled);
|
|
4000
4009
|
const positionAndAlignment = computed(() => {
|
|
4001
|
-
let returnPosition = popoverPosition.value;
|
|
4002
4010
|
if (popoverPosition.value === "top" || popoverPosition.value === "bottom") {
|
|
4003
4011
|
if (popoverAlignment.value === "left") {
|
|
4004
|
-
|
|
4012
|
+
return popoverPosition.value + " span-right";
|
|
4005
4013
|
}
|
|
4006
4014
|
if (popoverAlignment.value === "right") {
|
|
4007
|
-
|
|
4015
|
+
return popoverPosition.value + " span-left";
|
|
4008
4016
|
}
|
|
4009
4017
|
}
|
|
4010
|
-
return
|
|
4018
|
+
return popoverPosition.value;
|
|
4011
4019
|
});
|
|
4012
4020
|
const popoverRef = useTemplateRef("popover");
|
|
4013
4021
|
const popoverWrapperRef = useTemplateRef("popoverWrapper");
|
|
@@ -4017,12 +4025,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
4017
4025
|
popoverRef,
|
|
4018
4026
|
"left"
|
|
4019
4027
|
);
|
|
4020
|
-
const {
|
|
4021
|
-
leftPosition,
|
|
4022
|
-
topPosition,
|
|
4023
|
-
updateAnchorPositionPolyfill,
|
|
4024
|
-
useragentSupportsAnchorApi: userAgentSupportsAnchorApi
|
|
4025
|
-
} = useAnchorPositionPolyfill({
|
|
4028
|
+
const { leftPosition, topPosition, updateAnchorPositionPolyfill, useragentSupportsAnchorApi } = useAnchorPositionPolyfill({
|
|
4026
4029
|
positionedRef: popoverRef,
|
|
4027
4030
|
targetRef: popoverWrapperRef,
|
|
4028
4031
|
positionArea: popoverPosition,
|
|
@@ -4032,9 +4035,6 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
4032
4035
|
offset: 8
|
|
4033
4036
|
});
|
|
4034
4037
|
const { width } = useResizeObserver(popoverWrapperRef);
|
|
4035
|
-
const popoverWidth = computed(
|
|
4036
|
-
() => props.fitParent && popoverWrapperRef.value ? `${width.value}px` : "max-content"
|
|
4037
|
-
);
|
|
4038
4038
|
const handleOpening = (open) => {
|
|
4039
4039
|
if (open) {
|
|
4040
4040
|
popoverRef.value?.showPopover?.();
|
|
@@ -4053,13 +4053,13 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
4053
4053
|
onMounted(() => {
|
|
4054
4054
|
handleOpening(isVisible.value);
|
|
4055
4055
|
updateDirections();
|
|
4056
|
-
if (!
|
|
4056
|
+
if (!useragentSupportsAnchorApi.value) updateAnchorPositionPolyfill();
|
|
4057
4057
|
});
|
|
4058
4058
|
watch(isVisible, async (newVal) => {
|
|
4059
4059
|
await nextTick();
|
|
4060
4060
|
handleOpening(newVal);
|
|
4061
4061
|
updateDirections();
|
|
4062
|
-
if (!
|
|
4062
|
+
if (!useragentSupportsAnchorApi.value) updateAnchorPositionPolyfill();
|
|
4063
4063
|
});
|
|
4064
4064
|
const toggle = () => {
|
|
4065
4065
|
_isVisible.value = !_isVisible.value;
|
|
@@ -4078,7 +4078,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
4078
4078
|
[`onyx-popover__dialog--alignment-${popoverAlignment.value}`]: true,
|
|
4079
4079
|
"onyx-popover__dialog--fitparent": props.fitParent,
|
|
4080
4080
|
"onyx-popover__dialog--disabled": disabled.value,
|
|
4081
|
-
"onyx-popover__dialog--dont-support-anchor": !
|
|
4081
|
+
"onyx-popover__dialog--dont-support-anchor": !useragentSupportsAnchorApi.value
|
|
4082
4082
|
};
|
|
4083
4083
|
});
|
|
4084
4084
|
watch(disabled, () => {
|
|
@@ -4086,21 +4086,29 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
4086
4086
|
_isVisible.value = false;
|
|
4087
4087
|
}
|
|
4088
4088
|
});
|
|
4089
|
-
watch([popoverPosition, popoverAlignment,
|
|
4090
|
-
if (!
|
|
4089
|
+
watch([popoverPosition, popoverAlignment, width], async () => {
|
|
4090
|
+
if (!useragentSupportsAnchorApi.value) {
|
|
4091
4091
|
await nextTick();
|
|
4092
4092
|
updateDirections();
|
|
4093
4093
|
updateAnchorPositionPolyfill();
|
|
4094
4094
|
}
|
|
4095
4095
|
});
|
|
4096
|
-
const popoverStyles = computed(() =>
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4096
|
+
const popoverStyles = computed(() => {
|
|
4097
|
+
const _width = props.fitParent ? `${width.value}px` : void 0;
|
|
4098
|
+
if (useragentSupportsAnchorApi.value) {
|
|
4099
|
+
return {
|
|
4100
|
+
width: _width,
|
|
4101
|
+
"position-anchor": anchorName.value,
|
|
4102
|
+
"position-area": positionAndAlignment.value
|
|
4103
|
+
};
|
|
4104
|
+
}
|
|
4105
|
+
return {
|
|
4106
|
+
width: _width,
|
|
4107
|
+
left: leftPosition.value,
|
|
4108
|
+
top: topPosition.value
|
|
4109
|
+
};
|
|
4110
|
+
});
|
|
4111
|
+
const __returned__ = { props, _isVisible, isVisible, popoverPosition, popoverAlignment, disabled, positionAndAlignment, popoverRef, popoverWrapperRef, openDirection, updateOpenDirection, openAlignment, updateOpenAlignment, leftPosition, topPosition, updateAnchorPositionPolyfill, useragentSupportsAnchorApi, width, handleOpening, updateDirections, toggle, trigger, id, anchorName, popoverClasses, popoverStyles };
|
|
4104
4112
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
4105
4113
|
return __returned__;
|
|
4106
4114
|
}
|
|
@@ -5518,7 +5526,7 @@ const _hoisted_5$c = {
|
|
|
5518
5526
|
role: "presentation",
|
|
5519
5527
|
class: "onyx-select__group-name onyx-text--small"
|
|
5520
5528
|
};
|
|
5521
|
-
const _hoisted_6$
|
|
5529
|
+
const _hoisted_6$a = {
|
|
5522
5530
|
key: 1,
|
|
5523
5531
|
class: "onyx-select__slot"
|
|
5524
5532
|
};
|
|
@@ -5697,7 +5705,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5697
5705
|
16
|
|
5698
5706
|
/* FULL_PROPS */
|
|
5699
5707
|
),
|
|
5700
|
-
$setup.props.lazyLoading?.loading ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
5708
|
+
$setup.props.lazyLoading?.loading ? (openBlock(), createElementBlock("div", _hoisted_6$a, [
|
|
5701
5709
|
createVNode($setup["OnyxLoadingIndicator"], { class: "onyx-select__loading" })
|
|
5702
5710
|
])) : createCommentVNode("v-if", true),
|
|
5703
5711
|
$setup.slots.optionsEnd ? (openBlock(), createElementBlock("div", _hoisted_7$3, [
|
|
@@ -7260,7 +7268,7 @@ const _hoisted_2$p = { class: "onyx-modal-dialog__headline" };
|
|
|
7260
7268
|
const _hoisted_3$h = { class: "onyx-modal-dialog__headline-content" };
|
|
7261
7269
|
const _hoisted_4$e = ["id"];
|
|
7262
7270
|
const _hoisted_5$b = { class: "onyx-modal-dialog__body" };
|
|
7263
|
-
const _hoisted_6$
|
|
7271
|
+
const _hoisted_6$9 = {
|
|
7264
7272
|
key: 0,
|
|
7265
7273
|
class: "onyx-modal-dialog__footer"
|
|
7266
7274
|
};
|
|
@@ -7309,7 +7317,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7309
7317
|
createElementVNode("div", _hoisted_5$b, [
|
|
7310
7318
|
renderSlot(_ctx.$slots, "default")
|
|
7311
7319
|
]),
|
|
7312
|
-
!!$setup.slots.footer ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
7320
|
+
!!$setup.slots.footer ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
|
|
7313
7321
|
renderSlot(_ctx.$slots, "footer")
|
|
7314
7322
|
])) : createCommentVNode("v-if", true)
|
|
7315
7323
|
]),
|
|
@@ -9151,7 +9159,7 @@ const _hoisted_5$9 = {
|
|
|
9151
9159
|
key: 0,
|
|
9152
9160
|
class: "onyx-user-menu__description onyx-text--small onyx-truncation-ellipsis"
|
|
9153
9161
|
};
|
|
9154
|
-
const _hoisted_6$
|
|
9162
|
+
const _hoisted_6$8 = { class: "onyx-user-menu__options" };
|
|
9155
9163
|
function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9156
9164
|
return openBlock(), createBlock($setup["UserMenuLayout"], {
|
|
9157
9165
|
"flyout-open": $setup.flyoutOpen,
|
|
@@ -9215,7 +9223,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9215
9223
|
])
|
|
9216
9224
|
]),
|
|
9217
9225
|
options: withCtx(() => [
|
|
9218
|
-
createElementVNode("div", _hoisted_6$
|
|
9226
|
+
createElementVNode("div", _hoisted_6$8, [
|
|
9219
9227
|
renderSlot(_ctx.$slots, "default")
|
|
9220
9228
|
])
|
|
9221
9229
|
]),
|
|
@@ -9305,7 +9313,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
9305
9313
|
return __returned__;
|
|
9306
9314
|
}
|
|
9307
9315
|
});
|
|
9308
|
-
const _hoisted_1$l = { class: "onyx-nav-bar__content" };
|
|
9316
|
+
const _hoisted_1$l = { class: "onyx-nav-bar__content onyx-grid-container" };
|
|
9309
9317
|
const _hoisted_2$f = {
|
|
9310
9318
|
key: 0,
|
|
9311
9319
|
class: "onyx-nav-bar__mobile-page onyx-truncation-ellipsis"
|
|
@@ -9316,7 +9324,7 @@ const _hoisted_5$8 = {
|
|
|
9316
9324
|
key: 0,
|
|
9317
9325
|
class: "onyx-nav-bar__mobile-context"
|
|
9318
9326
|
};
|
|
9319
|
-
const _hoisted_6$
|
|
9327
|
+
const _hoisted_6$7 = {
|
|
9320
9328
|
key: 0,
|
|
9321
9329
|
class: "onyx-nav-bar__mobile-global-context"
|
|
9322
9330
|
};
|
|
@@ -9449,7 +9457,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9449
9457
|
{ key: 4 },
|
|
9450
9458
|
[
|
|
9451
9459
|
$setup.actualIsMobile ? (openBlock(), createElementBlock("div", _hoisted_5$8, [
|
|
9452
|
-
$setup.slots.globalContextArea ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
9460
|
+
$setup.slots.globalContextArea ? (openBlock(), createElementBlock("div", _hoisted_6$7, [
|
|
9453
9461
|
renderSlot(_ctx.$slots, "globalContextArea")
|
|
9454
9462
|
])) : createCommentVNode("v-if", true),
|
|
9455
9463
|
$setup.slots.contextArea ? (openBlock(), createBlock($setup["OnyxMobileNavButton"], {
|
|
@@ -9571,7 +9579,7 @@ const _hoisted_2$e = {
|
|
|
9571
9579
|
const _hoisted_3$9 = { class: "onyx-notification-card__header" };
|
|
9572
9580
|
const _hoisted_4$8 = { class: "onyx-notification-card__header-container" };
|
|
9573
9581
|
const _hoisted_5$7 = { class: "onyx-notification-card__header-container" };
|
|
9574
|
-
const _hoisted_6$
|
|
9582
|
+
const _hoisted_6$6 = { class: "onyx-notification-card__created-at onyx-text--small" };
|
|
9575
9583
|
const _hoisted_7$1 = { class: "onyx-notification-card__description onyx-text onyx-truncation-multiline" };
|
|
9576
9584
|
const _hoisted_8$1 = {
|
|
9577
9585
|
key: 0,
|
|
@@ -9645,7 +9653,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9645
9653
|
}, 8, ["label"])) : createCommentVNode("v-if", true)
|
|
9646
9654
|
])
|
|
9647
9655
|
]),
|
|
9648
|
-
createElementVNode("div", _hoisted_6$
|
|
9656
|
+
createElementVNode("div", _hoisted_6$6, [
|
|
9649
9657
|
createElementVNode(
|
|
9650
9658
|
"span",
|
|
9651
9659
|
null,
|
|
@@ -9971,14 +9979,18 @@ const _hoisted_1$g = {
|
|
|
9971
9979
|
};
|
|
9972
9980
|
const _hoisted_2$c = { class: "onyx-page__main" };
|
|
9973
9981
|
const _hoisted_3$7 = {
|
|
9974
|
-
key:
|
|
9982
|
+
key: 0,
|
|
9975
9983
|
class: "onyx-grid-container"
|
|
9976
9984
|
};
|
|
9977
9985
|
const _hoisted_4$7 = {
|
|
9978
9986
|
key: 1,
|
|
9979
|
-
class: "onyx-
|
|
9987
|
+
class: "onyx-grid-layout"
|
|
9980
9988
|
};
|
|
9981
9989
|
const _hoisted_5$6 = {
|
|
9990
|
+
key: 1,
|
|
9991
|
+
class: "onyx-page__sidebar onyx-page__sidebar--right"
|
|
9992
|
+
};
|
|
9993
|
+
const _hoisted_6$5 = {
|
|
9982
9994
|
key: 2,
|
|
9983
9995
|
class: "onyx-page__footer"
|
|
9984
9996
|
};
|
|
@@ -9997,14 +10009,16 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9997
10009
|
renderSlot(_ctx.$slots, "sidebar")
|
|
9998
10010
|
])) : createCommentVNode("v-if", true),
|
|
9999
10011
|
createElementVNode("main", _hoisted_2$c, [
|
|
10000
|
-
$setup.props.noPadding ?
|
|
10012
|
+
$setup.props.noPadding ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
10013
|
+
renderSlot(_ctx.$slots, "default")
|
|
10014
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_4$7, [
|
|
10001
10015
|
renderSlot(_ctx.$slots, "default")
|
|
10002
10016
|
]))
|
|
10003
10017
|
]),
|
|
10004
|
-
$setup.slots.sidebarRight ? (openBlock(), createElementBlock("div",
|
|
10018
|
+
$setup.slots.sidebarRight ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
|
|
10005
10019
|
renderSlot(_ctx.$slots, "sidebarRight")
|
|
10006
10020
|
])) : createCommentVNode("v-if", true),
|
|
10007
|
-
$setup.slots.footer ? (openBlock(), createElementBlock("div",
|
|
10021
|
+
$setup.slots.footer ? (openBlock(), createElementBlock("div", _hoisted_6$5, [
|
|
10008
10022
|
renderSlot(_ctx.$slots, "footer")
|
|
10009
10023
|
])) : createCommentVNode("v-if", true)
|
|
10010
10024
|
],
|
|
@@ -10532,6 +10546,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10532
10546
|
class: normalizeClass([
|
|
10533
10547
|
"onyx-component",
|
|
10534
10548
|
"onyx-sidebar",
|
|
10549
|
+
"onyx-grid-container",
|
|
10535
10550
|
$setup.densityClass,
|
|
10536
10551
|
$setup.props.alignment === "right" ? "onyx-sidebar--right" : ""
|
|
10537
10552
|
]),
|