sit-onyx 1.6.0-dev-20260108104845 → 1.6.0-dev-20260111214528

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.
@@ -37,6 +37,7 @@ declare const __VLS_component: import('vue', { with: { "resolution-mode": "impor
37
37
  modal: boolean;
38
38
  nonDismissible: boolean;
39
39
  alignment: import('./types.js', { with: { "resolution-mode": "import" } }).DialogAlignment;
40
+ backdrop: "soft" | "medium";
40
41
  }, {}, {}, {}, string, import('vue', { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {
41
42
  dialogRef: HTMLDialogElement;
42
43
  contentRef: HTMLDivElement;
@@ -30,6 +30,11 @@ export type OnyxBasicDialogProps = DensityProp & {
30
30
  * How to align the dialog horizontally. If "left" or "right", the modal will also be made full height.
31
31
  */
32
32
  alignment?: DialogAlignment;
33
+ /**
34
+ * The intensity of the backdrop.
35
+ * @default "soft"
36
+ */
37
+ backdrop?: "soft" | "medium";
33
38
  };
34
39
  export declare const DIALOG_ALIGNMENTS: readonly ["left", "center", "right"];
35
40
  export type DialogAlignment = (typeof DIALOG_ALIGNMENTS)[number];
@@ -21,6 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue', { with: { "resolut
21
21
  readonly nonDismissible?: boolean | undefined;
22
22
  readonly alert?: boolean | undefined;
23
23
  readonly alignment?: import('../OnyxBasicDialog/types.js', { with: { "resolution-mode": "import" } }).DialogAlignment | undefined;
24
+ readonly backdrop?: "soft" | "medium" | undefined;
24
25
  readonly "onUpdate:open"?: ((open: boolean) => any) | undefined;
25
26
  } & import('vue', { with: { "resolution-mode": "import" } }).VNodeProps & import('vue', { with: { "resolution-mode": "import" } }).AllowedComponentProps & import('vue', { with: { "resolution-mode": "import" } }).ComponentCustomProps;
26
27
  $attrs: {
@@ -51,6 +52,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue', { with: { "resolut
51
52
  modal: boolean;
52
53
  nonDismissible: boolean;
53
54
  alignment: import('../OnyxBasicDialog/types.js', { with: { "resolution-mode": "import" } }).DialogAlignment;
55
+ backdrop: "soft" | "medium";
54
56
  }, {}, string, {}, import('vue', { with: { "resolution-mode": "import" } }).GlobalComponents, import('vue', { with: { "resolution-mode": "import" } }).GlobalDirectives, string, import('vue', { with: { "resolution-mode": "import" } }).ComponentProvideOptions> & {
55
57
  beforeCreate?: (() => void) | (() => void)[];
56
58
  created?: (() => void) | (() => void)[];
@@ -76,9 +78,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue', { with: { "resolut
76
78
  modal: boolean;
77
79
  nonDismissible: boolean;
78
80
  alignment: import('../OnyxBasicDialog/types.js', { with: { "resolution-mode": "import" } }).DialogAlignment;
81
+ backdrop: "soft" | "medium";
79
82
  }> & Omit<Readonly<import('../OnyxBasicDialog/types.js', { with: { "resolution-mode": "import" } }).OnyxBasicDialogProps> & Readonly<{
80
83
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
81
- }>, "dialog" | ("alert" | "modal" | "nonDismissible" | "alignment")> & import('vue', { with: { "resolution-mode": "import" } }).ShallowUnwrapRef<{
84
+ }>, "dialog" | ("alert" | "modal" | "nonDismissible" | "alignment" | "backdrop")> & import('vue', { with: { "resolution-mode": "import" } }).ShallowUnwrapRef<{
82
85
  dialog: Readonly<import('vue', { with: { "resolution-mode": "import" } }).ShallowRef<HTMLDialogElement | null>>;
83
86
  }> & {} & import('vue', { with: { "resolution-mode": "import" } }).ComponentCustomProperties & {} & {
84
87
  $slots: Readonly<{
@@ -47,6 +47,7 @@ declare function __VLS_template(): {
47
47
  readonly alert?: boolean | undefined;
48
48
  readonly open?: import('../../index.js', { with: { "resolution-mode": "import" } }).Nullable<boolean>;
49
49
  readonly nonDismissible?: boolean | undefined;
50
+ readonly backdrop?: "soft" | "medium" | undefined;
50
51
  readonly "onUpdate:open"?: ((open: boolean) => any) | undefined;
51
52
  } & import('vue', { with: { "resolution-mode": "import" } }).VNodeProps & import('vue', { with: { "resolution-mode": "import" } }).AllowedComponentProps & import('vue', { with: { "resolution-mode": "import" } }).ComponentCustomProps;
52
53
  $attrs: {
@@ -125,6 +126,7 @@ declare const __VLS_component: import('vue', { with: { "resolution-mode": "impor
125
126
  readonly alert?: boolean | undefined;
126
127
  readonly open?: import('../../index.js', { with: { "resolution-mode": "import" } }).Nullable<boolean>;
127
128
  readonly nonDismissible?: boolean | undefined;
129
+ readonly backdrop?: "soft" | "medium" | undefined;
128
130
  readonly "onUpdate:open"?: ((open: boolean) => any) | undefined;
129
131
  } & import('vue', { with: { "resolution-mode": "import" } }).VNodeProps & import('vue', { with: { "resolution-mode": "import" } }).AllowedComponentProps & import('vue', { with: { "resolution-mode": "import" } }).ComponentCustomProps;
130
132
  $attrs: {
@@ -32,7 +32,7 @@ export type OnyxSidebarProps = DensityProp & {
32
32
  };
33
33
  export declare const SIDEBAR_ALIGNMENT: readonly ["left", "right"];
34
34
  export type SidebarAlignment = (typeof SIDEBAR_ALIGNMENT)[number];
35
- export type TemporarySidebar = Pick<OnyxModalProps, "open" | "nonDismissible"> & {
35
+ export type TemporarySidebar = Pick<OnyxModalProps, "open" | "nonDismissible" | "backdrop"> & {
36
36
  /**
37
37
  * If `true`, the sidebar will have a small gap from the viewport and have rounded corners.
38
38
  */
@@ -494,7 +494,13 @@ function createElRef() {
494
494
  const elementRef = shallowRef();
495
495
  return computed({
496
496
  set: (element) => {
497
- elementRef.value = element != null && "$el" in element ? element.$el : element;
497
+ if (Array.isArray(element)) {
498
+ elementRef.value = element.at(0);
499
+ } else if (element != null && "$el" in element) {
500
+ elementRef.value = element.$el;
501
+ } else {
502
+ elementRef.value = element;
503
+ }
498
504
  },
499
505
  get: () => elementRef.value
500
506
  });
@@ -1887,7 +1893,8 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
1887
1893
  modal: { type: Boolean, required: false, default: false },
1888
1894
  nonDismissible: { type: Boolean, required: false, default: false },
1889
1895
  alert: { type: Boolean, required: false, default: false },
1890
- alignment: { type: null, required: false, default: "center" }
1896
+ alignment: { type: null, required: false, default: "center" },
1897
+ backdrop: { type: String, required: false, default: "soft" }
1891
1898
  },
1892
1899
  emits: ["update:open"],
1893
1900
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -1953,6 +1960,7 @@ function _sfc_render$1P(_ctx, _cache, $props, $setup, $data, $options) {
1953
1960
  $setup.densityClass,
1954
1961
  "onyx-truncation-multiline",
1955
1962
  "onyx-basic-dialog",
1963
+ { "onyx-basic-dialog__backdrop--medium": $setup.props.backdrop === "medium" },
1956
1964
  { [`onyx-basic-dialog--${$setup.props.alignment}`]: $setup.props.alignment !== "center" }
1957
1965
  ]),
1958
1966
  "aria-modal": $setup.props.modal,
@@ -10658,6 +10666,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
10658
10666
  open: { type: [Boolean, null], required: false, skipCheck: true },
10659
10667
  nonDismissible: { type: Boolean, required: false },
10660
10668
  alert: { type: Boolean, required: false },
10669
+ backdrop: { type: String, required: false },
10661
10670
  modelValue: { type: null, required: false },
10662
10671
  loading: { type: Boolean, required: false }
10663
10672
  },
@@ -11243,7 +11252,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11243
11252
  label: { type: String, required: true },
11244
11253
  open: { type: [Boolean, null], required: false, skipCheck: true },
11245
11254
  nonDismissible: { type: Boolean, required: false },
11246
- alert: { type: Boolean, required: false }
11255
+ alert: { type: Boolean, required: false },
11256
+ backdrop: { type: String, required: false }
11247
11257
  },
11248
11258
  emits: ["update:open"],
11249
11259
  setup(__props, { expose: __expose, emit: __emit }) {