@oicl/openbridge-webcomponents 2.0.0-next.154 → 2.0.0-next.155

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.
@@ -87091,7 +87091,7 @@
87091
87091
  "declarations": [
87092
87092
  {
87093
87093
  "kind": "class",
87094
- "description": "`obc-user-button` – A compact, circular button for representing a user via icon or initials.\n\nDisplays either a user icon or user initials inside a circular button, with optional label text. Commonly used for user profile access, account switching, or avatar actions in toolbars and navigation. The button supports multiple visual styles and can be rendered as a static (non-interactive) element.\n\nAppears as a button by default, but switches to a non-interactive div when the `static` property is set.\n\n## Features\n- **Variants:**\n - `icon`: Shows a user icon (default, fallback if initials are invalid or missing).\n - `initials`: Shows up to two uppercase initials (falls back to icon if input is empty or longer than two characters).\n- **Style Types:**\n - `flat`: Minimal, flat appearance (default).\n - `normal`: Outlined with background and border.\n - `selected`: Highlighted to indicate selection or active state.\n- **Static Mode:**\n - Set `static` to render as a non-interactive element for use in read-only or decorative contexts.\n- **Disabled State:**\n - Set `disabled` to visually and functionally disable the button.\n- **Custom Icon Slot:**\n - Provide a custom icon via the `icon` slot when using the `icon` variant.\n- **Label Support:**\n - Optional `label` property displays text next to the button (not shown in static mode).\n\n## Usage Guidelines\nUse `obc-user-button` to represent a user in navigation bars, toolbars, or menus where a compact, recognizable user indicator is needed. Ideal for profile menus, account switching, or user-related quick actions.\n- Use the `icon` variant for generic user representation, or when no initials are available.\n- Use the `initials` variant to personalize the button with user initials (max two characters).\n- Use `styleType=\"selected\"` to indicate the current user or active selection.\n- Use `static` for non-interactive displays, such as in lists or summaries.\n- Avoid using for critical actions or as a replacement for full user profile cards.\n\n**TODO(designer):** Confirm if there are recommended scenarios for when to use `flat`, `normal`, or `selected` style types, and if there are accessibility guidelines for initials fallback.\n\n## Slots\n\n| Slot Name | Renders When... | Purpose |\n|-----------|-----------------|---------|\n| `icon` | `variant=\"icon\"` | Custom icon to display instead of the default user icon. |\n\n## Best Practices & Constraints\n- Initials longer than two characters are truncated and a warning is logged.\n- If `initials` is empty or invalid, the button falls back to the user icon.\n- The `label` is only visible when the button is interactive (not static).\n- For accessibility, the button uses `aria-label` based on initials or a default.\n- Only use the `static` property for non-interactive contexts; otherwise, the button is clickable.\n\n## Example:\n```html\n<obc-user-button variant=\"initials\" initials=\"JD\" styleType=\"normal\" label=\"John Doe\"></obc-user-button>\n<obc-user-button variant=\"icon\" styleType=\"flat\">\n <obi-placeholder slot=\"icon\"></obi-placeholder>\n</obc-user-button>\n```",
87094
+ "description": "`obc-user-button` – A compact, circular button for representing a user via icon or initials.\n\nDisplays either a user icon or user initials inside a circular button, with optional label text. Commonly used for user profile access, account switching, or avatar actions in toolbars and navigation. The button supports multiple visual styles and can be rendered as a static (non-interactive) element.\n\nAppears as a button by default, but switches to a non-interactive div when the `static` property is set.\n\n## Features\n- **Variants:**\n - `icon`: Shows a user icon (default, fallback if initials are invalid or missing).\n - `initials`: Shows up to two uppercase initials (falls back to icon if input is empty or longer than two characters).\n- **Style Types:**\n - `flat`: Minimal, flat appearance (default).\n - `normal`: Outlined with background and border.\n - `selected`: Highlighted to indicate selection or active state.\n- **Static Mode:**\n - Set `static` to render as a non-interactive element for use in read-only or decorative contexts.\n- **Disabled State:**\n - Set `disabled` to visually and functionally disable the button.\n- **Custom Icon Slot:**\n - Provide a custom icon via the `icon` slot when using the `icon` variant.\n- **Label Support:**\n - Optional `label` property displays text next to the button (not shown in static mode).\n - Optional `sublabel` adds a second, lighter line under the label, for a\n secondary detail such as the user's role.\n\n## Usage Guidelines\nUse `obc-user-button` to represent a user in navigation bars, toolbars, or menus where a compact, recognizable user indicator is needed. Ideal for profile menus, account switching, or user-related quick actions.\n- Use the `icon` variant for generic user representation, or when no initials are available.\n- Use the `initials` variant to personalize the button with user initials (max two characters).\n- Use `styleType=\"selected\"` to indicate the current user or active selection.\n- Use `static` for non-interactive displays, such as in lists or summaries.\n- Avoid using for critical actions or as a replacement for full user profile cards.\n\n**TODO(designer):** Confirm if there are recommended scenarios for when to use `flat`, `normal`, or `selected` style types, and if there are accessibility guidelines for initials fallback.\n\n## Slots\n\n| Slot Name | Renders When... | Purpose |\n|-----------|-----------------|---------|\n| `icon` | `variant=\"icon\"` | Custom icon to display instead of the default user icon. |\n\n## Best Practices & Constraints\n- Initials longer than two characters are truncated and a warning is logged.\n- If `initials` is empty or invalid, the button falls back to the user icon.\n- The `label` is only visible when the button is interactive (not static).\n- For accessibility, the button is named after its visible text — `label` and\n `sublabel` falling back to the initials when it shows no text.\n- Only use the `static` property for non-interactive contexts; otherwise, the button is clickable.\n\n## Example:\n```html\n<obc-user-button variant=\"initials\" initials=\"JD\" styleType=\"normal\" label=\"John Doe\"></obc-user-button>\n<obc-user-button variant=\"icon\" styleType=\"flat\">\n <obi-placeholder slot=\"icon\"></obi-placeholder>\n</obc-user-button>\n```",
87095
87095
  "name": "ObcUserButton",
87096
87096
  "slots": [
87097
87097
  {
@@ -87175,6 +87175,20 @@
87175
87175
  "truthy": false
87176
87176
  }
87177
87177
  },
87178
+ {
87179
+ "kind": "field",
87180
+ "name": "sublabel",
87181
+ "type": {
87182
+ "text": "string | undefined"
87183
+ },
87184
+ "description": "Optional second line under the label, for a secondary detail such as a role (not shown in static mode).\n\nAvailable when `static==false`.",
87185
+ "attribute": "sublabel",
87186
+ "availableWhen": "static==false",
87187
+ "availableWhenIf": {
87188
+ "arg": "static",
87189
+ "truthy": false
87190
+ }
87191
+ },
87178
87192
  {
87179
87193
  "kind": "field",
87180
87194
  "name": "formattedInitials",
@@ -87246,6 +87260,14 @@
87246
87260
  },
87247
87261
  "description": "Optional label text to display next to the button (not shown in static mode).\n\nAvailable when `static==false`.",
87248
87262
  "fieldName": "label"
87263
+ },
87264
+ {
87265
+ "name": "sublabel",
87266
+ "type": {
87267
+ "text": "string | undefined"
87268
+ },
87269
+ "description": "Optional second line under the label, for a secondary detail such as a role (not shown in static mode).\n\nAvailable when `static==false`.",
87270
+ "fieldName": "sublabel"
87249
87271
  }
87250
87272
  ],
87251
87273
  "superclass": {
@@ -87281,7 +87303,7 @@
87281
87303
  "declarations": [
87282
87304
  {
87283
87305
  "kind": "class",
87284
- "description": "`<obc-user-menu>` – A user menu component with sign-in and signed-in layouts.\n\nProvides multiple layouts for authentication and account access states, including\nsign-in forms, user-specific sign-in, loading states, and signed-in navigation.\n\n### Features\n- **Multiple States:** Supports sign-in, user sign-in, loading, and signed-in layouts.\n- **Size Options:** Regular and small sizes for compact layouts.\n- **Recent Users:** Optional \"Recently signed in\" section for quick access.\n- **Navigation Actions:** Signed-in state lists the actions it is given.\n\n### Variants\n- `type`: `sign-in`, `user-sign-in`, `loading-sign-in`, `signed-in`\n- `size`: `regular`, `small`\n\n### Usage Guidelines\nUse `obc-user-menu` in authentication or account panels where quick access to\nsign-in, profile, or account actions is needed. The `user-sign-in` type is\nbest for fast re-auth flows; `loading-sign-in` is for pending auth states.\n\n### Properties and Configuration\n- `type` (`ObcUserMenuType`): Controls the layout state. Defaults to `sign-in`.\n- `size` (`ObcUserMenuSize`): Controls the overall size. Defaults to `regular`.\n- `hasRecentlySignedIn` (`boolean`): Toggles the recent users section.\n Defaults to `false`.\n- `showUsername` (`boolean`): Toggles the username field. Defaults to `true`.\n- `showPassword` (`boolean`): Toggles the password field. Defaults to `true`.\n- `username` (`string`): Current username value for sign-in layouts.\n- `password` (`string`): Current password value for sign-in layouts.\n- `usernameError` (`string`): Error message for the username field.\n- `passwordError` (`string`): Error message for the password field.\n- `userInitials` (`string`): Initials for the primary user profile.\n- `userLabel` (`string`): Label for the primary user profile.\n- `recentUsers` (`ObcUserMenuUser[]`): List of recent users shown in the\n \"Recently signed in\" section. Empty renders no section.\n- `signedInActions` (`ObcUserMenuSignedInAction[]`): Actions shown in the\n signed-in navigation list. Empty renders no actions.\n- `primaryActionId` (`string`): Id of the action promoted to a button in the\n small signed-in layout.\n\n### Events\n- `sign-in-click` – Fired when a sign-in button is clicked.\n- `sign-out-click` – Fired when the sign-out button is clicked.\n- `signed-in-action-click` – Fired when a signed-in action is clicked.\n- `recent-user-click` – Fired when a recent user button is clicked.\n\n### Slots\n- `signed-in-action-icon-{id}`: Optional icon for a signed-in action. The\n `{id}` is the normalized action id.\n\n### Example\n```html\n<obc-user-menu\n type=\"user-sign-in\"\n size=\"small\"\n hasRecentlySignedIn=\"false\"\n userInitials=\"JD\"\n userLabel=\"John Doe\"\n></obc-user-menu>\n```",
87306
+ "description": "`<obc-user-menu>` – A user menu component with sign-in and signed-in layouts.\n\nProvides multiple layouts for authentication and account access states, including\nsign-in forms, user-specific sign-in, loading states, and signed-in navigation.\n\n### Features\n- **Multiple States:** Supports sign-in, user sign-in, loading, and signed-in layouts.\n- **Size Options:** Regular and small sizes for compact layouts.\n- **Recent Users:** Optional \"Recently signed in\" section for quick access.\n- **Navigation Actions:** Signed-in state lists the actions it is given.\n\n### Variants\n- `type`: `sign-in`, `user-sign-in`, `loading-sign-in`, `signed-in`\n- `size`: `regular`, `small`\n\n### Usage Guidelines\nUse `obc-user-menu` in authentication or account panels where quick access to\nsign-in, profile, or account actions is needed. The `user-sign-in` type is\nbest for fast re-auth flows; `loading-sign-in` is for pending auth states.\n\n### Properties and Configuration\n- `type` (`ObcUserMenuType`): Controls the layout state. Defaults to `sign-in`.\n- `size` (`ObcUserMenuSize`): Controls the overall size. Defaults to `regular`.\n- `hasRecentlySignedIn` (`boolean`): Toggles the recent users section.\n Defaults to `false`.\n- `showUsername` (`boolean`): Toggles the username field. Defaults to `true`.\n- `showPassword` (`boolean`): Toggles the password field. Defaults to `true`.\n- `username` (`string`): Current username value for sign-in layouts.\n- `password` (`string`): Current password value for sign-in layouts.\n- `usernameError` (`string`): Error message for the username field.\n- `passwordError` (`string`): Error message for the password field.\n- `userInitials` (`string`): Initials for the primary user profile.\n- `userLabel` (`string`): Label for the primary user profile.\n- `userRole` (`string`): Role shown under the primary user's label. Omit it\n to show no role; only the regular size draws one.\n- `recentUsers` (`ObcUserMenuUser[]`): List of recent users shown in the\n \"Recently signed in\" section. Empty renders no section. Each user may\n carry its own `role`.\n- `showUseAnotherAccount` (`boolean`): Toggles the \"Use another account\"\n button in the `user-sign-in` layouts, both sizes. Defaults to `true`.\n- `signedInActions` (`ObcUserMenuSignedInAction[]`): Actions shown in the\n signed-in navigation list. Empty renders no actions.\n- `primaryActionId` (`string`): Id of the action promoted to a button in the\n small signed-in layout.\n\n### Events\n- `sign-in-click` – Fired when a sign-in button is clicked.\n- `sign-out-click` – Fired when the sign-out button is clicked.\n- `use-another-account-click` – Fired when the \"Use another account\" button\n is clicked. The menu does not change its own type; set it to `sign-in` in\n the handler to show the full form.\n- `signed-in-action-click` – Fired when a signed-in action is clicked.\n- `recent-user-click` – Fired when a recent user button is clicked.\n\n### Slots\n- `signed-in-action-icon-{id}`: Optional icon for a signed-in action. The\n `{id}` is the normalized action id.\n\n### Example\n```html\n<obc-user-menu\n type=\"user-sign-in\"\n size=\"small\"\n hasRecentlySignedIn=\"false\"\n userInitials=\"JD\"\n userLabel=\"John Doe\"\n></obc-user-menu>\n```",
87285
87307
  "name": "ObcUserMenu",
87286
87308
  "slots": [
87287
87309
  {
@@ -87419,6 +87441,16 @@
87419
87441
  "neq": "sign-in"
87420
87442
  }
87421
87443
  },
87444
+ {
87445
+ "kind": "field",
87446
+ "name": "userRole",
87447
+ "type": {
87448
+ "text": "string | undefined"
87449
+ },
87450
+ "description": "Role shown under the primary user's label; omit it to show no role.\n\nAvailable when `type!=signIn && size==regular`.",
87451
+ "attribute": "userRole",
87452
+ "availableWhen": "type!=signIn && size==regular"
87453
+ },
87422
87454
  {
87423
87455
  "kind": "field",
87424
87456
  "name": "recentUsers",
@@ -87452,6 +87484,20 @@
87452
87484
  "attribute": "primaryActionId",
87453
87485
  "availableWhen": "type==signedIn && size==small"
87454
87486
  },
87487
+ {
87488
+ "kind": "field",
87489
+ "name": "showUseAnotherAccount",
87490
+ "type": {
87491
+ "text": "boolean"
87492
+ },
87493
+ "default": "true",
87494
+ "description": "Controls the visibility of the \"Use another account\" button.\n\nAvailable when `type==userSignIn`.",
87495
+ "availableWhen": "type==userSignIn",
87496
+ "availableWhenIf": {
87497
+ "arg": "type",
87498
+ "eq": "user-sign-in"
87499
+ }
87500
+ },
87455
87501
  {
87456
87502
  "kind": "field",
87457
87503
  "name": "showRecentUsers",
@@ -87624,6 +87670,11 @@
87624
87670
  "name": "handleSignOutClick",
87625
87671
  "privacy": "private"
87626
87672
  },
87673
+ {
87674
+ "kind": "method",
87675
+ "name": "handleUseAnotherAccountClick",
87676
+ "privacy": "private"
87677
+ },
87627
87678
  {
87628
87679
  "kind": "method",
87629
87680
  "name": "renderSignIn",
@@ -87676,9 +87727,9 @@
87676
87727
  {
87677
87728
  "name": "recent-user-click",
87678
87729
  "type": {
87679
- "text": "CustomEvent<{initials: string, label: string}>"
87730
+ "text": "ObcUserMenuRecentUserClickEvent"
87680
87731
  },
87681
- "description": "Fired when a recent user button is clicked."
87732
+ "description": "Fired when a recent user button is clicked, carrying that user's entry."
87682
87733
  },
87683
87734
  {
87684
87735
  "name": "sign-in-click",
@@ -87693,6 +87744,13 @@
87693
87744
  "text": "CustomEvent<void>"
87694
87745
  },
87695
87746
  "description": "Fired when the sign-out button is clicked."
87747
+ },
87748
+ {
87749
+ "name": "use-another-account-click",
87750
+ "type": {
87751
+ "text": "CustomEvent<void>"
87752
+ },
87753
+ "description": "Fired when the \"Use another account\" button is clicked."
87696
87754
  }
87697
87755
  ],
87698
87756
  "attributes": [
@@ -87773,6 +87831,14 @@
87773
87831
  "description": "Label for the primary user profile.\n\nAvailable when `type!=signIn`.",
87774
87832
  "fieldName": "userLabel"
87775
87833
  },
87834
+ {
87835
+ "name": "userRole",
87836
+ "type": {
87837
+ "text": "string | undefined"
87838
+ },
87839
+ "description": "Role shown under the primary user's label; omit it to show no role.\n\nAvailable when `type!=signIn && size==regular`.",
87840
+ "fieldName": "userRole"
87841
+ },
87776
87842
  {
87777
87843
  "name": "primaryActionId",
87778
87844
  "type": {
@@ -58,6 +58,39 @@ const compentStyle = css`* {
58
58
  "ss04" on;
59
59
  }
60
60
 
61
+ .wrapper.size-large .user-label {
62
+ font-family: var(--global-typography-font-family);
63
+ font-weight: var(--global-typography-ui-body-font-weight);
64
+ font-size: var(--global-typography-ui-body-font-size);
65
+ line-height: var(--global-typography-ui-body-line-height);
66
+ font-feature-settings:
67
+ "liga" off,
68
+ "clig" off,
69
+ "ss04" on;
70
+ }
71
+
72
+ .wrapper.size-large .user-sublabel {
73
+ font-family: var(--global-typography-font-family);
74
+ font-weight: var(--global-typography-ui-body-font-weight);
75
+ font-size: var(--global-typography-ui-body-font-size);
76
+ line-height: var(--global-typography-ui-body-line-height);
77
+ font-feature-settings:
78
+ "liga" off,
79
+ "clig" off,
80
+ "ss04" on;
81
+ }
82
+
83
+ .wrapper.size-large.has-sublabel .user-label {
84
+ font-family: var(--global-typography-font-family);
85
+ font-weight: var(--global-typography-ui-body-active-font-weight);
86
+ font-size: var(--global-typography-ui-body-active-font-size);
87
+ line-height: var(--global-typography-ui-body-active-line-height);
88
+ font-feature-settings:
89
+ "liga" off,
90
+ "clig" off,
91
+ "ss04" on;
92
+ }
93
+
61
94
  .wrapper.size-large.style-selected .user-initials {
62
95
  font-family: var(--global-typography-font-family);
63
96
  font-weight: var(--font-weight-bold);
@@ -70,6 +103,17 @@ const compentStyle = css`* {
70
103
  "ss04" on;
71
104
  }
72
105
 
106
+ .wrapper.size-large.style-selected .user-label {
107
+ font-family: var(--global-typography-font-family);
108
+ font-weight: var(--global-typography-ui-body-active-font-weight);
109
+ font-size: var(--global-typography-ui-body-active-font-size);
110
+ line-height: var(--global-typography-ui-body-active-line-height);
111
+ font-feature-settings:
112
+ "liga" off,
113
+ "clig" off,
114
+ "ss04" on;
115
+ }
116
+
73
117
  .wrapper.size-large.state-static {
74
118
  width: var(--ui-components-user-button-visual-size-enhanced);
75
119
  height: var(--ui-components-user-button-visual-size-enhanced);
@@ -91,7 +135,30 @@ const compentStyle = css`* {
91
135
  color: var(--element-active-color);
92
136
  }
93
137
 
94
- .wrapper:disabled .user-label {
138
+ .wrapper .user-sublabel {
139
+ font-family: var(--global-typography-font-family);
140
+ font-weight: var(--global-typography-ui-label-font-weight);
141
+ font-size: var(--global-typography-ui-label-font-size);
142
+ line-height: var(--global-typography-ui-label-line-height);
143
+ font-feature-settings:
144
+ "liga" off,
145
+ "clig" off,
146
+ "ss04" on;
147
+ color: var(--element-active-color);
148
+ }
149
+
150
+ .wrapper.has-sublabel .user-label {
151
+ font-family: var(--global-typography-font-family);
152
+ font-weight: var(--global-typography-ui-label-active-font-weight);
153
+ font-size: var(--global-typography-ui-label-active-font-size);
154
+ line-height: var(--global-typography-ui-label-active-line-height);
155
+ font-feature-settings:
156
+ "liga" off,
157
+ "clig" off,
158
+ "ss04" on;
159
+ }
160
+
161
+ .wrapper:disabled .user-label,.wrapper:disabled .user-sublabel {
95
162
  color: var(--element-disabled-color);
96
163
  }
97
164
 
@@ -1 +1 @@
1
- {"version":3,"file":"user-button.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"user-button.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -41,6 +41,8 @@ export declare enum Variant {
41
41
  * - Provide a custom icon via the `icon` slot when using the `icon` variant.
42
42
  * - **Label Support:**
43
43
  * - Optional `label` property displays text next to the button (not shown in static mode).
44
+ * - Optional `sublabel` adds a second, lighter line under the label, for a
45
+ * secondary detail such as the user's role.
44
46
  *
45
47
  * ## Usage Guidelines
46
48
  * Use `obc-user-button` to represent a user in navigation bars, toolbars, or menus where a compact, recognizable user indicator is needed. Ideal for profile menus, account switching, or user-related quick actions.
@@ -62,7 +64,8 @@ export declare enum Variant {
62
64
  * - Initials longer than two characters are truncated and a warning is logged.
63
65
  * - If `initials` is empty or invalid, the button falls back to the user icon.
64
66
  * - The `label` is only visible when the button is interactive (not static).
65
- * - For accessibility, the button uses `aria-label` based on initials or a default.
67
+ * - For accessibility, the button is named after its visible text `label` and
68
+ * `sublabel` — falling back to the initials when it shows no text.
66
69
  * - Only use the `static` property for non-interactive contexts; otherwise, the button is clickable.
67
70
  *
68
71
  * ## Example:
@@ -79,6 +82,8 @@ export declare enum Variant {
79
82
  * @availableWhen disabled static==false
80
83
  * @property label - Optional label text to display next to the button (not shown in static mode).
81
84
  * @availableWhen label static==false
85
+ * @property sublabel - Optional second line under the label, for a secondary detail such as a role (not shown in static mode).
86
+ * @availableWhen sublabel static==false
82
87
  * @slot icon - Custom icon for the user button (used only in `icon` variant; defaults to <obi-user> if not provided)
83
88
  * @stable
84
89
  */
@@ -117,6 +122,12 @@ export declare class ObcUserButton extends LitElement {
117
122
  * Available when `static==false`.
118
123
  */
119
124
  label?: string;
125
+ /**
126
+ * Optional second line under the label, for a secondary detail such as a role (not shown in static mode).
127
+ *
128
+ * Available when `static==false`.
129
+ */
130
+ sublabel?: string;
120
131
  private get formattedInitials();
121
132
  private get shouldShowIcon();
122
133
  render(): import('lit-html').TemplateResult;
@@ -1 +1 @@
1
- {"version":3,"file":"user-button.d.ts","sourceRoot":"","sources":["../../../src/components/user-button/user-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAqB,MAAM,KAAK,CAAC;AAInD,OAAO,0BAA0B,CAAC;AAIlC,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,oBAAY,IAAI;IACd,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED;;;;GAIG;AACH,oBAAY,OAAO;IACjB,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,qBACa,aAAc,SAAQ,UAAU;IAC3C;;;;OAIG;IACuB,OAAO,EAAE,OAAO,CAAgB;IAChC,IAAI,EAAE,IAAI,CAAgB;IAEpD;;;;;OAKG;IACuB,SAAS,EAAE,SAAS,CAAkB;IAErC,MAAM,EAAE,OAAO,CAAS;IAExB,QAAQ,EAAE,OAAO,CAAS;IAErD;;;;OAIG;IACuB,QAAQ,EAAE,MAAM,CAAM;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEzC,OAAO,KAAK,iBAAiB,GAgB5B;IAED,OAAO,KAAK,cAAc,GAEzB;IAEQ,MAAM;IAsDf,OAAgB,MAAM,0BAA2B;CAClD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,aAAa,CAAC;KAClC;CACF"}
1
+ {"version":3,"file":"user-button.d.ts","sourceRoot":"","sources":["../../../src/components/user-button/user-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAqB,MAAM,KAAK,CAAC;AAInD,OAAO,0BAA0B,CAAC;AAIlC,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,oBAAY,IAAI;IACd,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED;;;;GAIG;AACH,oBAAY,OAAO;IACjB,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,qBACa,aAAc,SAAQ,UAAU;IAC3C;;;;OAIG;IACuB,OAAO,EAAE,OAAO,CAAgB;IAChC,IAAI,EAAE,IAAI,CAAgB;IAEpD;;;;;OAKG;IACuB,SAAS,EAAE,SAAS,CAAkB;IAErC,MAAM,EAAE,OAAO,CAAS;IAExB,QAAQ,EAAE,OAAO,CAAS;IAErD;;;;OAIG;IACuB,QAAQ,EAAE,MAAM,CAAM;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAE5C,OAAO,KAAK,iBAAiB,GAgB5B;IAED,OAAO,KAAK,cAAc,GAEzB;IAEQ,MAAM;IAkEf,OAAgB,MAAM,0BAA2B;CAClD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,aAAa,CAAC;KAClC;CACF"}
@@ -65,15 +65,21 @@ let ObcUserButton = class extends LitElement {
65
65
  "mode-icon": this.shouldShowIcon,
66
66
  "mode-initials": !this.shouldShowIcon,
67
67
  "state-static": this.static,
68
- [`size-${this.size}`]: true
68
+ [`size-${this.size}`]: true,
69
+ "has-sublabel": Boolean(this.sublabel) && !this.static
69
70
  };
70
71
  const tag = this.static ? literal`div` : literal`button`;
72
+ const visibleText = [this.label, this.sublabel].filter(Boolean).join(", ");
73
+ const accessibleName = !this.static && visibleText || this.initials || "User button";
71
74
  const label = this.label && !this.static ? html`<span class="user-label" part="label">${this.label}</span>` : nothing;
75
+ const sublabel = this.sublabel && !this.static ? html`<span class="user-sublabel" part="sublabel">
76
+ ${this.sublabel}
77
+ </span>` : nothing;
72
78
  return html`
73
79
  <${tag}
74
80
  class=${classMap(wrapperClasses)}
75
81
  ?disabled=${this.disabled}
76
- aria-label=${this.initials || "User button"}
82
+ aria-label=${accessibleName}
77
83
  >
78
84
  <div class="content-container" part="content-container">
79
85
  <div class="user-button-circle">
@@ -90,7 +96,7 @@ let ObcUserButton = class extends LitElement {
90
96
  </span>
91
97
  `}
92
98
  </div>
93
- ${label}
99
+ ${label} ${sublabel}
94
100
  </div>
95
101
  </${tag}>
96
102
  `;
@@ -118,6 +124,9 @@ __decorateClass([
118
124
  __decorateClass([
119
125
  property({ type: String })
120
126
  ], ObcUserButton.prototype, "label", 2);
127
+ __decorateClass([
128
+ property({ type: String })
129
+ ], ObcUserButton.prototype, "sublabel", 2);
121
130
  ObcUserButton = __decorateClass([
122
131
  customElement("obc-user-button")
123
132
  ], ObcUserButton);
@@ -1 +1 @@
1
- {"version":3,"file":"user-button.js","sources":["../../../src/components/user-button/user-button.ts"],"sourcesContent":["import {LitElement, nothing, unsafeCSS} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\nimport compentStyle from './user-button.css?inline';\nimport '../../icons/icon-user.js';\nimport {html, literal} from 'lit/static-html.js';\nimport {customElement} from '../../decorator.js';\n\nexport enum StyleType {\n flat = 'flat',\n normal = 'normal',\n selected = 'selected',\n}\n\nexport enum Size {\n regular = 'regular',\n large = 'large',\n}\n\n/**\n * Defines the visual content of the user button.\n * - `icon`: Shows a user icon (default).\n * - `initials`: Shows up to two uppercase initials.\n */\nexport enum Variant {\n icon = 'icon',\n initials = 'initials',\n}\n\n/**\n * `obc-user-button` – A compact, circular button for representing a user via icon or initials.\n *\n * Displays either a user icon or user initials inside a circular button, with optional label text. Commonly used for user profile access, account switching, or avatar actions in toolbars and navigation. The button supports multiple visual styles and can be rendered as a static (non-interactive) element.\n *\n * Appears as a button by default, but switches to a non-interactive div when the `static` property is set.\n *\n * ## Features\n * - **Variants:**\n * - `icon`: Shows a user icon (default, fallback if initials are invalid or missing).\n * - `initials`: Shows up to two uppercase initials (falls back to icon if input is empty or longer than two characters).\n * - **Style Types:**\n * - `flat`: Minimal, flat appearance (default).\n * - `normal`: Outlined with background and border.\n * - `selected`: Highlighted to indicate selection or active state.\n * - **Static Mode:**\n * - Set `static` to render as a non-interactive element for use in read-only or decorative contexts.\n * - **Disabled State:**\n * - Set `disabled` to visually and functionally disable the button.\n * - **Custom Icon Slot:**\n * - Provide a custom icon via the `icon` slot when using the `icon` variant.\n * - **Label Support:**\n * - Optional `label` property displays text next to the button (not shown in static mode).\n *\n * ## Usage Guidelines\n * Use `obc-user-button` to represent a user in navigation bars, toolbars, or menus where a compact, recognizable user indicator is needed. Ideal for profile menus, account switching, or user-related quick actions.\n * - Use the `icon` variant for generic user representation, or when no initials are available.\n * - Use the `initials` variant to personalize the button with user initials (max two characters).\n * - Use `styleType=\"selected\"` to indicate the current user or active selection.\n * - Use `static` for non-interactive displays, such as in lists or summaries.\n * - Avoid using for critical actions or as a replacement for full user profile cards.\n *\n * **TODO(designer):** Confirm if there are recommended scenarios for when to use `flat`, `normal`, or `selected` style types, and if there are accessibility guidelines for initials fallback.\n *\n * ## Slots\n *\n * | Slot Name | Renders When... | Purpose |\n * |-----------|-----------------|---------|\n * | `icon` | `variant=\"icon\"` | Custom icon to display instead of the default user icon. |\n *\n * ## Best Practices & Constraints\n * - Initials longer than two characters are truncated and a warning is logged.\n * - If `initials` is empty or invalid, the button falls back to the user icon.\n * - The `label` is only visible when the button is interactive (not static).\n * - For accessibility, the button uses `aria-label` based on initials or a default.\n * - Only use the `static` property for non-interactive contexts; otherwise, the button is clickable.\n *\n * ## Example:\n * ```html\n * <obc-user-button variant=\"initials\" initials=\"JD\" styleType=\"normal\" label=\"John Doe\"></obc-user-button>\n * <obc-user-button variant=\"icon\" styleType=\"flat\">\n * <obi-placeholder slot=\"icon\"></obi-placeholder>\n * </obc-user-button>\n * ```\n *\n * @property static - If true, renders the button as a static (non-interactive) element using a `<div>`.\n * Use for decorative or read-only contexts where user interaction is not required.\n * @property disabled - Disables the button, preventing user interaction and applying a disabled style.\n * @availableWhen disabled static==false\n * @property label - Optional label text to display next to the button (not shown in static mode).\n * @availableWhen label static==false\n * @slot icon - Custom icon for the user button (used only in `icon` variant; defaults to <obi-user> if not provided)\n * @stable\n */\n@customElement('obc-user-button')\nexport class ObcUserButton extends LitElement {\n /**\n * Controls whether the button displays a user icon (`icon`) or user initials (`initials`).\n * - `icon`: Shows a user icon (default, or if initials are invalid).\n * - `initials`: Shows up to two uppercase initials (falls back to icon if empty or longer than two characters).\n */\n @property({type: String}) variant: Variant = Variant.icon;\n @property({type: String}) size: Size = Size.regular;\n\n /**\n * Sets the visual style of the button.\n * - `flat`: Minimal, flat appearance (default).\n * - `normal`: Outlined with background and border.\n * - `selected`: Highlighted to indicate selection or active state.\n */\n @property({type: String}) styleType: StyleType = StyleType.flat;\n\n @property({type: Boolean}) static: boolean = false;\n\n @property({type: Boolean}) disabled: boolean = false;\n\n /**\n * The initials to display when `variant=\"initials\"`.\n * - Only the first two non-whitespace characters are used and converted to uppercase.\n * - If empty or longer than two characters, falls back to the user icon.\n */\n @property({type: String}) initials: string = '';\n\n @property({type: String}) label?: string;\n\n private get formattedInitials() {\n if (!this.initials) return '';\n\n // Remove whitespace and convert to uppercase\n const clean = this.initials.replace(/\\s+/g, '').toUpperCase();\n\n // If longer than 2 characters, truncate to first 2\n const maxInitialsLength = this.size === Size.large ? 3 : 2;\n if (clean.length > maxInitialsLength) {\n console.warn(\n `Initials \"${this.initials}\" are longer than ${maxInitialsLength} characters.`\n );\n return clean.slice(0, maxInitialsLength);\n }\n\n return clean;\n }\n\n private get shouldShowIcon() {\n return this.variant === Variant.icon;\n }\n\n override render() {\n const styleType =\n this.size === Size.large && this.styleType === StyleType.flat\n ? StyleType.normal\n : this.styleType;\n const wrapperClasses = {\n wrapper: true,\n 'wrapper-static': this.static,\n [`style-${styleType}`]: true,\n 'mode-icon': this.shouldShowIcon,\n 'mode-initials': !this.shouldShowIcon,\n 'state-static': this.static,\n [`size-${this.size}`]: true,\n };\n\n // Use button element when clickable, div when static\n const tag = this.static ? literal`div` : literal`button`;\n\n const label =\n this.label && !this.static\n ? html`<span class=\"user-label\" part=\"label\">${this.label}</span>`\n : nothing;\n\n return html`\n <${tag}\n class=${classMap(wrapperClasses)}\n ?disabled=${this.disabled}\n aria-label=${this.initials || 'User button'}\n >\n <div class=\"content-container\" part=\"content-container\">\n <div class=\"user-button-circle\">\n ${\n this.shouldShowIcon\n ? html`\n <div class=\"icon-container\">\n <slot name=\"icon\">\n <!-- Fallback to default icon if no slot content -->\n <obi-user></obi-user>\n </slot>\n </div>\n `\n : html`\n <span class=\"user-initials\">\n ${this.formattedInitials}\n </span>\n `\n }\n </div>\n ${label}\n </div>\n </${tag}>\n `;\n }\n\n static override styles = unsafeCSS(compentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-user-button': ObcUserButton;\n }\n}\n"],"names":["StyleType","Size","Variant"],"mappings":";;;;;;;;;;;;;;;;;AAQO,IAAK,8BAAAA,eAAL;AACLA,aAAA,MAAA,IAAO;AACPA,aAAA,QAAA,IAAS;AACTA,aAAA,UAAA,IAAW;AAHD,SAAAA;AAAA,GAAA,aAAA,CAAA,CAAA;AAML,IAAK,yBAAAC,UAAL;AACLA,QAAA,SAAA,I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ChB,6CAA6C,KAAK,KAAK,YACvD;AAEN,WAAO;AAAA,WACA,GAAG;AAAA,kBACI,SAAS,cAAc,CAAC;AAAA,sBACpB,KAAK,QAAQ;AAAA,uBACZ,KAAK,YAAY,aAAa;AAAA;AAAA;AAAA;AAAA,cAKvC,KAAK,iBACD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAQA;AAAA;AAAA,wBAEM,KAAK,iBAAiB;AAAA;AAAA,mBAGlC;AAAA;AAAA,YAEA,KAAK;AAAA;AAAA,YAEL,GAAG;AAAA;AAAA,EAEb;AAGF;AA3Ga,cA0GK,SAAS,UAAU,YAAY;AApGrB,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GANb,cAMe,WAAA,WAAA,CAAA;AACA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAPb,cAOe,WAAA,QAAA,CAAA;AAQA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAfb,cAee,WAAA,aAAA,CAAA;AAEC,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,QAAA,CAAQ;AAAA,GAjBd,cAiBgB,WAAA,UAAA,CAAA;AAEA,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,QAAA,CAAQ;AAAA,GAnBd,cAmBgB,WAAA,YAAA,CAAA;AAOD,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GA1Bb,cA0Be,WAAA,YAAA,CAAA;AAEA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GA5Bb,cA4Be,WAAA,SAAA,CAAA;AA5Bf,gBAAN,gBAAA;AAAA,EADN,cAAc,iBAAiB;AAAA,GACnB,aAAA;"}
1
+ {"version":3,"file":"user-button.js","sources":["../../../src/components/user-button/user-button.ts"],"sourcesContent":["import {LitElement, nothing, unsafeCSS} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\nimport compentStyle from './user-button.css?inline';\nimport '../../icons/icon-user.js';\nimport {html, literal} from 'lit/static-html.js';\nimport {customElement} from '../../decorator.js';\n\nexport enum StyleType {\n flat = 'flat',\n normal = 'normal',\n selected = 'selected',\n}\n\nexport enum Size {\n regular = 'regular',\n large = 'large',\n}\n\n/**\n * Defines the visual content of the user button.\n * - `icon`: Shows a user icon (default).\n * - `initials`: Shows up to two uppercase initials.\n */\nexport enum Variant {\n icon = 'icon',\n initials = 'initials',\n}\n\n/**\n * `obc-user-button` – A compact, circular button for representing a user via icon or initials.\n *\n * Displays either a user icon or user initials inside a circular button, with optional label text. Commonly used for user profile access, account switching, or avatar actions in toolbars and navigation. The button supports multiple visual styles and can be rendered as a static (non-interactive) element.\n *\n * Appears as a button by default, but switches to a non-interactive div when the `static` property is set.\n *\n * ## Features\n * - **Variants:**\n * - `icon`: Shows a user icon (default, fallback if initials are invalid or missing).\n * - `initials`: Shows up to two uppercase initials (falls back to icon if input is empty or longer than two characters).\n * - **Style Types:**\n * - `flat`: Minimal, flat appearance (default).\n * - `normal`: Outlined with background and border.\n * - `selected`: Highlighted to indicate selection or active state.\n * - **Static Mode:**\n * - Set `static` to render as a non-interactive element for use in read-only or decorative contexts.\n * - **Disabled State:**\n * - Set `disabled` to visually and functionally disable the button.\n * - **Custom Icon Slot:**\n * - Provide a custom icon via the `icon` slot when using the `icon` variant.\n * - **Label Support:**\n * - Optional `label` property displays text next to the button (not shown in static mode).\n * - Optional `sublabel` adds a second, lighter line under the label, for a\n * secondary detail such as the user's role.\n *\n * ## Usage Guidelines\n * Use `obc-user-button` to represent a user in navigation bars, toolbars, or menus where a compact, recognizable user indicator is needed. Ideal for profile menus, account switching, or user-related quick actions.\n * - Use the `icon` variant for generic user representation, or when no initials are available.\n * - Use the `initials` variant to personalize the button with user initials (max two characters).\n * - Use `styleType=\"selected\"` to indicate the current user or active selection.\n * - Use `static` for non-interactive displays, such as in lists or summaries.\n * - Avoid using for critical actions or as a replacement for full user profile cards.\n *\n * **TODO(designer):** Confirm if there are recommended scenarios for when to use `flat`, `normal`, or `selected` style types, and if there are accessibility guidelines for initials fallback.\n *\n * ## Slots\n *\n * | Slot Name | Renders When... | Purpose |\n * |-----------|-----------------|---------|\n * | `icon` | `variant=\"icon\"` | Custom icon to display instead of the default user icon. |\n *\n * ## Best Practices & Constraints\n * - Initials longer than two characters are truncated and a warning is logged.\n * - If `initials` is empty or invalid, the button falls back to the user icon.\n * - The `label` is only visible when the button is interactive (not static).\n * - For accessibility, the button is named after its visible text — `label` and\n * `sublabel` — falling back to the initials when it shows no text.\n * - Only use the `static` property for non-interactive contexts; otherwise, the button is clickable.\n *\n * ## Example:\n * ```html\n * <obc-user-button variant=\"initials\" initials=\"JD\" styleType=\"normal\" label=\"John Doe\"></obc-user-button>\n * <obc-user-button variant=\"icon\" styleType=\"flat\">\n * <obi-placeholder slot=\"icon\"></obi-placeholder>\n * </obc-user-button>\n * ```\n *\n * @property static - If true, renders the button as a static (non-interactive) element using a `<div>`.\n * Use for decorative or read-only contexts where user interaction is not required.\n * @property disabled - Disables the button, preventing user interaction and applying a disabled style.\n * @availableWhen disabled static==false\n * @property label - Optional label text to display next to the button (not shown in static mode).\n * @availableWhen label static==false\n * @property sublabel - Optional second line under the label, for a secondary detail such as a role (not shown in static mode).\n * @availableWhen sublabel static==false\n * @slot icon - Custom icon for the user button (used only in `icon` variant; defaults to <obi-user> if not provided)\n * @stable\n */\n@customElement('obc-user-button')\nexport class ObcUserButton extends LitElement {\n /**\n * Controls whether the button displays a user icon (`icon`) or user initials (`initials`).\n * - `icon`: Shows a user icon (default, or if initials are invalid).\n * - `initials`: Shows up to two uppercase initials (falls back to icon if empty or longer than two characters).\n */\n @property({type: String}) variant: Variant = Variant.icon;\n @property({type: String}) size: Size = Size.regular;\n\n /**\n * Sets the visual style of the button.\n * - `flat`: Minimal, flat appearance (default).\n * - `normal`: Outlined with background and border.\n * - `selected`: Highlighted to indicate selection or active state.\n */\n @property({type: String}) styleType: StyleType = StyleType.flat;\n\n @property({type: Boolean}) static: boolean = false;\n\n @property({type: Boolean}) disabled: boolean = false;\n\n /**\n * The initials to display when `variant=\"initials\"`.\n * - Only the first two non-whitespace characters are used and converted to uppercase.\n * - If empty or longer than two characters, falls back to the user icon.\n */\n @property({type: String}) initials: string = '';\n\n @property({type: String}) label?: string;\n\n @property({type: String}) sublabel?: string;\n\n private get formattedInitials() {\n if (!this.initials) return '';\n\n // Remove whitespace and convert to uppercase\n const clean = this.initials.replace(/\\s+/g, '').toUpperCase();\n\n // If longer than 2 characters, truncate to first 2\n const maxInitialsLength = this.size === Size.large ? 3 : 2;\n if (clean.length > maxInitialsLength) {\n console.warn(\n `Initials \"${this.initials}\" are longer than ${maxInitialsLength} characters.`\n );\n return clean.slice(0, maxInitialsLength);\n }\n\n return clean;\n }\n\n private get shouldShowIcon() {\n return this.variant === Variant.icon;\n }\n\n override render() {\n const styleType =\n this.size === Size.large && this.styleType === StyleType.flat\n ? StyleType.normal\n : this.styleType;\n const wrapperClasses = {\n wrapper: true,\n 'wrapper-static': this.static,\n [`style-${styleType}`]: true,\n 'mode-icon': this.shouldShowIcon,\n 'mode-initials': !this.shouldShowIcon,\n 'state-static': this.static,\n [`size-${this.size}`]: true,\n 'has-sublabel': Boolean(this.sublabel) && !this.static,\n };\n\n // Use button element when clickable, div when static\n const tag = this.static ? literal`div` : literal`button`;\n\n const visibleText = [this.label, this.sublabel].filter(Boolean).join(', ');\n const accessibleName =\n (!this.static && visibleText) || this.initials || 'User button';\n\n const label =\n this.label && !this.static\n ? html`<span class=\"user-label\" part=\"label\">${this.label}</span>`\n : nothing;\n\n const sublabel =\n this.sublabel && !this.static\n ? html`<span class=\"user-sublabel\" part=\"sublabel\">\n ${this.sublabel}\n </span>`\n : nothing;\n\n return html`\n <${tag}\n class=${classMap(wrapperClasses)}\n ?disabled=${this.disabled}\n aria-label=${accessibleName}\n >\n <div class=\"content-container\" part=\"content-container\">\n <div class=\"user-button-circle\">\n ${\n this.shouldShowIcon\n ? html`\n <div class=\"icon-container\">\n <slot name=\"icon\">\n <!-- Fallback to default icon if no slot content -->\n <obi-user></obi-user>\n </slot>\n </div>\n `\n : html`\n <span class=\"user-initials\">\n ${this.formattedInitials}\n </span>\n `\n }\n </div>\n ${label} ${sublabel}\n </div>\n </${tag}>\n `;\n }\n\n static override styles = unsafeCSS(compentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-user-button': ObcUserButton;\n }\n}\n"],"names":["StyleType","Size","Variant"],"mappings":";;;;;;;;;;;;;;;;;AAQO,IAAK,8BAAAA,eAAL;AACLA,aAAA,MAAA,IAAO;AACPA,aAAA,QAAA,IAAS;AACTA,aAAA,UAAA,IAAW;AAHD,SAAAA;AAAA,GAAA,aAAA,CAAA,CAAA;AAML,IAAK,yBAAAC,UAAL;AACLA,QAAA,SAAA,IAAU;AACVA,QAAA,OAAA,IAAQ;AAFE,SAAAA;AAAA,GAAA,QAAA,CAAA,CAAA;AAUL,IAAK,4BAAAC,aAAL;AACLA,WAAA,MAAA,IAAO;AACPA,WAAA,UAAA,IAAW;AAFD,SAAAA;AAAA,GAAA,WAAA,CAAA,CAAA;AA2EL,IAAM,gBAAN,cAA4B,WAAW;AAAA,EAAvC,cAAA;AAAA,UAAA,GAAA,SAAA;AAMqB,SAAA,UAAmB;AACnB,SAAA,OAAa;AAQb,SAAA,YAAuB;AAEtB,SAAA,SAAkB;AAElB,SAAA,WAAoB;AAOrB,SAAA,WAAmB;AAAA,EAAA;AAAA,EAM7C,IAAY,oBAAoB;AAC9B,QAAI,CAAC,KAAK,SAAU,QAAO;AAG3B,UAAM,QAAQ,KAAK,SAAS,QAAQ,QAAQ,EAAE,EAAE,YAAA;AAGhD,UAAM,oBAAoB,KAAK,SAAS,UAAa,IAAI;AACzD,QAAI,MAAM,SAAS,mBAAmB;AACpC,cAAQ;AAAA,QACN,aAAa,KAAK,QAAQ,qB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GF;AAzHa,cAwHK,SAAS,UAAU,YAAY;AAlHrB,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GANb,cAMe,WAAA,WAAA,CAAA;AACA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAPb,cAOe,WAAA,QAAA,CAAA;AAQA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAfb,cAee,WAAA,aAAA,CAAA;AAEC,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,QAAA,CAAQ;AAAA,GAjBd,cAiBgB,WAAA,UAAA,CAAA;AAEA,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,QAAA,CAAQ;AAAA,GAnBd,cAmBgB,WAAA,YAAA,CAAA;AAOD,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GA1Bb,cA0Be,WAAA,YAAA,CAAA;AAEA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GA5Bb,cA4Be,WAAA,SAAA,CAAA;AAEA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GA9Bb,cA8Be,WAAA,YAAA,CAAA;AA9Bf,gBAAN,gBAAA;AAAA,EADN,cAAc,iBAAiB;AAAA,GACnB,aAAA;"}
@@ -167,6 +167,21 @@ const componentStyle = css`* {
167
167
  color: var(--element-neutral-color);
168
168
  }
169
169
 
170
+ :is(.card .user-profile) obc-user-button:not(.has-role)::part(label) {
171
+ font-weight: var(--font-weight-regular);
172
+ }
173
+
174
+ :is(.card .user-profile) obc-user-button::part(sublabel) {
175
+ font-family: var(--global-typography-font-family);
176
+ font-weight: var(--global-typography-ui-body-font-weight);
177
+ font-size: var(--global-typography-ui-body-font-size);
178
+ line-height: var(--global-typography-ui-body-line-height);
179
+ font-feature-settings:
180
+ "liga" off,
181
+ "clig" off,
182
+ "ss04" on;
183
+ }
184
+
170
185
  .card .user-primary {
171
186
  padding: 0;
172
187
  }
@@ -1 +1 @@
1
- {"version":3,"file":"user-menu.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"user-menu.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -21,7 +21,9 @@ export declare enum ObcUserMenuSize {
21
21
  export type ObcUserMenuUser = {
22
22
  initials: string;
23
23
  label: string;
24
+ role?: string;
24
25
  };
26
+ export type ObcUserMenuRecentUserClickEvent = CustomEvent<ObcUserMenuUser>;
25
27
  export type ObcUserMenuSignedInAction = {
26
28
  id: string;
27
29
  label: string;
@@ -60,8 +62,13 @@ export type ObcUserMenuSignedInAction = {
60
62
  * - `passwordError` (`string`): Error message for the password field.
61
63
  * - `userInitials` (`string`): Initials for the primary user profile.
62
64
  * - `userLabel` (`string`): Label for the primary user profile.
65
+ * - `userRole` (`string`): Role shown under the primary user's label. Omit it
66
+ * to show no role; only the regular size draws one.
63
67
  * - `recentUsers` (`ObcUserMenuUser[]`): List of recent users shown in the
64
- * "Recently signed in" section. Empty renders no section.
68
+ * "Recently signed in" section. Empty renders no section. Each user may
69
+ * carry its own `role`.
70
+ * - `showUseAnotherAccount` (`boolean`): Toggles the "Use another account"
71
+ * button in the `user-sign-in` layouts, both sizes. Defaults to `true`.
65
72
  * - `signedInActions` (`ObcUserMenuSignedInAction[]`): Actions shown in the
66
73
  * signed-in navigation list. Empty renders no actions.
67
74
  * - `primaryActionId` (`string`): Id of the action promoted to a button in the
@@ -70,6 +77,9 @@ export type ObcUserMenuSignedInAction = {
70
77
  * ### Events
71
78
  * - `sign-in-click` – Fired when a sign-in button is clicked.
72
79
  * - `sign-out-click` – Fired when the sign-out button is clicked.
80
+ * - `use-another-account-click` – Fired when the "Use another account" button
81
+ * is clicked. The menu does not change its own type; set it to `sign-in` in
82
+ * the handler to show the full form.
73
83
  * - `signed-in-action-click` – Fired when a signed-in action is clicked.
74
84
  * - `recent-user-click` – Fired when a recent user button is clicked.
75
85
  *
@@ -104,6 +114,8 @@ export type ObcUserMenuSignedInAction = {
104
114
  * @availableWhen userInitials type!=signIn
105
115
  * @property userLabel - Label for the primary user profile.
106
116
  * @availableWhen userLabel type!=signIn
117
+ * @property userRole - Role shown under the primary user's label; omit it to show no role.
118
+ * @availableWhen userRole type!=signIn && size==regular
107
119
  * @property recentUsers - Recent users for the "Recently signed in" section.
108
120
  * @property signedInActions - Actions shown in the signed-in navigation list.
109
121
  * @availableWhen signedInActions type==signedIn
@@ -113,11 +125,14 @@ export type ObcUserMenuSignedInAction = {
113
125
  * @availableWhen showPassword type in [signIn, userSignIn]
114
126
  * @property primaryActionId - Id of the action promoted to a button in the small signed-in layout.
115
127
  * @availableWhen primaryActionId type==signedIn && size==small
128
+ * @property showUseAnotherAccount - Controls the visibility of the "Use another account" button.
129
+ * @availableWhen showUseAnotherAccount type==userSignIn
116
130
  * @slot signed-in-action-icon-<id> - Optional icon for a signed-in action, one per action; `<id>` is the normalized action id (shown in the `signed-in` type).
117
131
  * @fires {CustomEvent<{username?: string, password?: string}>} sign-in-click - Fired when a sign-in button is clicked.
118
132
  * @fires {CustomEvent<void>} sign-out-click - Fired when the sign-out button is clicked.
133
+ * @fires {CustomEvent<void>} use-another-account-click - Fired when the "Use another account" button is clicked.
119
134
  * @fires {CustomEvent<{id: string, label: string}>} signed-in-action-click - Fired when a signed-in action is clicked.
120
- * @fires {CustomEvent<{initials: string, label: string}>} recent-user-click - Fired when a recent user button is clicked.
135
+ * @fires {ObcUserMenuRecentUserClickEvent} recent-user-click - Fired when a recent user button is clicked, carrying that user's entry.
121
136
  * @stable
122
137
  */
123
138
  export declare class ObcUserMenu extends LitElement {
@@ -179,6 +194,12 @@ export declare class ObcUserMenu extends LitElement {
179
194
  * Available when `type!=signIn`.
180
195
  */
181
196
  userLabel?: string;
197
+ /**
198
+ * Role shown under the primary user's label; omit it to show no role.
199
+ *
200
+ * Available when `type!=signIn && size==regular`.
201
+ */
202
+ userRole?: string;
182
203
  /** Recent users for the "Recently signed in" section. */
183
204
  recentUsers: ObcUserMenuUser[];
184
205
  /**
@@ -193,6 +214,12 @@ export declare class ObcUserMenu extends LitElement {
193
214
  * Available when `type==signedIn && size==small`.
194
215
  */
195
216
  primaryActionId?: string;
217
+ /**
218
+ * Controls the visibility of the "Use another account" button.
219
+ *
220
+ * Available when `type==userSignIn`.
221
+ */
222
+ showUseAnotherAccount: boolean;
196
223
  private get showRecentUsers();
197
224
  private renderTextInput;
198
225
  private renderUserButtons;
@@ -206,6 +233,7 @@ export declare class ObcUserMenu extends LitElement {
206
233
  private validateSignIn;
207
234
  private handleSignInClick;
208
235
  private handleSignOutClick;
236
+ private handleUseAnotherAccountClick;
209
237
  private renderSignIn;
210
238
  private renderSignInSmall;
211
239
  private renderUserSignIn;
@@ -1 +1 @@
1
- {"version":3,"file":"user-menu.d.ts","sourceRoot":"","sources":["../../../src/components/user-menu/user-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,cAAc,EAA2B,MAAM,KAAK,CAAC;AAKzE,OAAO,yCAAyC,CAAC;AACjD,OAAO,qBAAqB,CAAC;AAC7B,OAAO,+BAA+B,CAAC;AACvC,OAA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