@oicl/openbridge-webcomponents-svelte 2.0.0-next.35 → 2.0.0-next.37

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.
@@ -1,9 +1,9 @@
1
1
 
2
2
  <script lang="ts">
3
- export type {TagColor} from '@oicl/openbridge-webcomponents/dist/components/tag/tag.js';
3
+ export type {TagColor, TagSize} from '@oicl/openbridge-webcomponents/dist/components/tag/tag.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/components/tag/tag.js';
5
5
  import { setProperties } from "../../util.js";
6
- import type {TagColor} from '@oicl/openbridge-webcomponents/dist/components/tag/tag.js';
6
+ import type {TagColor, TagSize} from '@oicl/openbridge-webcomponents/dist/components/tag/tag.js';
7
7
  import type { Snippet } from 'svelte';
8
8
 
9
9
  export interface Props {
@@ -11,6 +11,7 @@
11
11
  style?: string;
12
12
  label?: string;
13
13
  color?: TagColor;
14
+ size?: TagSize;
14
15
  hasIcon?: boolean
15
16
  }
16
17
  export interface Events {
@@ -1,11 +1,12 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/components/tag/tag.js';
2
- import type { TagColor } from '@oicl/openbridge-webcomponents/dist/components/tag/tag.js';
2
+ import type { TagColor, TagSize } from '@oicl/openbridge-webcomponents/dist/components/tag/tag.js';
3
3
  import type { Snippet } from 'svelte';
4
4
  export interface Props {
5
5
  class?: string;
6
6
  style?: string;
7
7
  label?: string;
8
8
  color?: TagColor;
9
+ size?: TagSize;
9
10
  hasIcon?: boolean;
10
11
  }
11
12
  export interface Events {
@@ -16,6 +17,7 @@ export interface Slots {
16
17
  type $$ComponentProps = Props & Events & Slots;
17
18
  declare const ObcTag: import("svelte").Component<$$ComponentProps, {
18
19
  TagColor: typeof TagColor;
20
+ TagSize: typeof TagSize;
19
21
  }, "">;
20
22
  type ObcTag = ReturnType<typeof ObcTag>;
21
23
  export default ObcTag;
@@ -3,15 +3,15 @@
3
3
  export type {ReadoutSourceType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-source.js';
4
4
  export type {ReadoutVariant, ReadoutAlertState, ReadoutInputInteraction, ReadoutDirection, ReadoutStackVerticalAlignment} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
5
5
  export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
6
+ export type {ReadoutInputSize, ReadoutInputFormat} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
6
7
  export type {ReadoutAdviceFormat, ReadoutAdviceState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
7
- export type {ReadoutInputFormat} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
8
8
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
9
9
  import { setProperties } from "../../util.js";
10
10
  import type {ReadoutSourceType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-source.js';
11
11
  import type {ReadoutVariant, ReadoutAlertState, ReadoutInputInteraction, ReadoutDirection, ReadoutStackVerticalAlignment} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
12
12
  import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
13
+ import type {ReadoutInputSize, ReadoutInputFormat} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
13
14
  import type {ReadoutAdviceFormat, ReadoutAdviceState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
14
- import type {ReadoutInputFormat} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
15
15
  import type { Snippet } from 'svelte';
16
16
 
17
17
  export interface Props {
@@ -22,6 +22,18 @@ import type {ReadoutInputFormat} from '@oicl/openbridge-webcomponents/dist/navig
22
22
  alertState?: ReadoutAlertState;
23
23
  inputInteraction?: ReadoutInputInteraction;
24
24
  direction?: ReadoutDirection;
25
+ /** Override the size of the input segment (when `hasInput` is true).
26
+
27
+ - In `alwaysVisible` and `popUp` interaction modes: any size value applies.
28
+ - In `flipFlop` mode: the override is honored only when strictly smaller
29
+ than the variant's base size (medium for `regular`, large for
30
+ `enhanced`/`stack`). Larger overrides are ignored, falling back to the
31
+ default secondary size to preserve the flip-flop visual effect and
32
+ prevent input/value overlap.
33
+
34
+ When unset, the input size is derived from `variant` (and adjusted for
35
+ multi-line formats). */
36
+ inputSize?: ReadoutInputSize | undefined;
25
37
  alignment?: ReadoutStackVerticalAlignment;
26
38
  hug?: boolean;
27
39
  hasAdvice?: boolean;
@@ -2,8 +2,8 @@ import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/reado
2
2
  import type { ReadoutSourceType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-source.js';
3
3
  import type { ReadoutVariant, ReadoutAlertState, ReadoutInputInteraction, ReadoutDirection, ReadoutStackVerticalAlignment } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
4
4
  import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
5
+ import type { ReadoutInputSize, ReadoutInputFormat } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
5
6
  import type { ReadoutAdviceFormat, ReadoutAdviceState } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
6
- import type { ReadoutInputFormat } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
7
7
  import type { Snippet } from 'svelte';
8
8
  export interface Props {
9
9
  class?: string;
@@ -13,6 +13,18 @@ export interface Props {
13
13
  alertState?: ReadoutAlertState;
14
14
  inputInteraction?: ReadoutInputInteraction;
15
15
  direction?: ReadoutDirection;
16
+ /** Override the size of the input segment (when `hasInput` is true).
17
+
18
+ - In `alwaysVisible` and `popUp` interaction modes: any size value applies.
19
+ - In `flipFlop` mode: the override is honored only when strictly smaller
20
+ than the variant's base size (medium for `regular`, large for
21
+ `enhanced`/`stack`). Larger overrides are ignored, falling back to the
22
+ default secondary size to preserve the flip-flop visual effect and
23
+ prevent input/value overlap.
24
+
25
+ When unset, the input size is derived from `variant` (and adjusted for
26
+ multi-line formats). */
27
+ inputSize?: ReadoutInputSize | undefined;
16
28
  alignment?: ReadoutStackVerticalAlignment;
17
29
  hug?: boolean;
18
30
  hasAdvice?: boolean;
@@ -91,9 +103,10 @@ declare const ObcReadout: import("svelte").Component<$$ComponentProps, {
91
103
  ReadoutDirection: typeof ReadoutDirection;
92
104
  ReadoutStackVerticalAlignment: typeof ReadoutStackVerticalAlignment;
93
105
  Priority: typeof Priority;
106
+ ReadoutInputSize: typeof ReadoutInputSize;
107
+ ReadoutInputFormat: typeof ReadoutInputFormat;
94
108
  ReadoutAdviceFormat: typeof ReadoutAdviceFormat;
95
109
  ReadoutAdviceState: typeof ReadoutAdviceState;
96
- ReadoutInputFormat: typeof ReadoutInputFormat;
97
110
  }, "">;
98
111
  type ObcReadout = ReturnType<typeof ObcReadout>;
99
112
  export default ObcReadout;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.0.0-next.35",
3
+ "version": "2.0.0-next.37",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@oicl/openbridge-webcomponents": "^2.0.0-next.34"
34
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.36"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "svelte": "^5.0.0"