@pontive/pontkit-core 1.40.0 → 1.41.0

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,7 +1,11 @@
1
1
  import { PropertyDeclarations, PropertyValues } from 'lit';
2
2
  import { HostElement } from '../../core/host-element';
3
+ import { AccountClient } from './account-client';
3
4
  import { AuthState } from './contexts';
4
5
  import { AppSdkConfig, ProviderSdk } from './sdk';
6
+ export * from './account-client';
7
+ export * from './account-controller';
8
+ export * from './account-user';
5
9
  export * from './contexts';
6
10
  export * from './coexistence';
7
11
  export * from './redirect';
@@ -54,6 +58,9 @@ export interface RedirectDetail {
54
58
  * - **loads the widgets' own text** (`/auth/v1/widget-messages`, one request
55
59
  * per language per page, I-2) and the published **theme**
56
60
  * (`/auth/v1/theme.css`; `theme="none"` opts out);
61
+ * - **provides the account widgets' client** (`pont2:account-client`, W-12):
62
+ * `accountClient` when the app gives one, else one built from the SDK and
63
+ * `api-base-url` (`createAccountClient`) once the SDK is configured;
57
64
  * - **reads the branding entitlements** from `/auth/v1/runtime-config`, the
58
65
  * server's answer from the workspace's plan. There is deliberately no
59
66
  * property for them: an app cannot switch the watermark off, and anything
@@ -65,7 +72,8 @@ export interface RedirectDetail {
65
72
  * @tag pont2-provider
66
73
  * @prop sdk - the auth SDK (`Auth` from `@pontive/oidc-client`), injected
67
74
  * @prop config - the app's own SDK options and callbacks (`onFlowStateChange`, `onAuthenticated`), chained after the provider's
68
- * @prop headers - extra request headers for the SDK
75
+ * @prop headers - extra request headers for the SDK (and the account client's management requests)
76
+ * @prop accountClient - the app's own `AccountClient` for the account widgets (default: one built from `sdk` and `api-base-url`)
69
77
  * @prop auth - `AuthState` (read-only): `{ isAuthenticated, resolved }`
70
78
  * @attr app-id - the app's id
71
79
  * @attr domain - where the auth endpoints answer: a hostname, `/path` on this origin, or a base URL
@@ -77,12 +85,13 @@ export interface RedirectDetail {
77
85
  * @attr continue-here-url - where "Continue here instead" goes (default: `signin-redirect-url`)
78
86
  * @attr scope - OAuth scopes every flow asks for (space-separated; replaces the server's default)
79
87
  * @attr organization-id - the organization a sign-in starts in
80
- * @attr api-base-url - the management gateway, for the account widgets (held for them; not an SDK option)
88
+ * @attr api-base-url - the management gateway (`https://api.us.pontive.com`), which the account client calls (not an SDK option)
81
89
  * @attr login-hint - the identifier to pre-fill (default: the URL's `login_hint`)
82
90
  * @attr auto-redirect - `"false"` turns the post-sign-in redirect off (default on)
83
91
  * @attr theme - `"none"` opts out of linking the published theme (default: link it)
84
92
  * @fires pont2-auth-changed - `AuthState` (a copy), whenever it changes
85
93
  * @fires pont2-locale-changed - `{ locales }`, whenever the configured locales change
94
+ * @fires pont2-session-changed - `{ reason, source, isAuthenticated, organizationId }`, on every SDK session change, here or in another tab (no tokens)
86
95
  * @fires pont2-redirect - `{ url }`, cancelable, before a post-sign-in navigation
87
96
  */
88
97
  export declare class Provider extends HostElement {
@@ -93,6 +102,8 @@ export declare class Provider extends HostElement {
93
102
  sdk: ProviderSdk | undefined;
94
103
  config: AppSdkConfig;
95
104
  headers: Record<string, string> | undefined;
105
+ /** The app's own account client; wins over the default one. */
106
+ accountClient: AccountClient | undefined;
96
107
  appId: string;
97
108
  domain: string;
98
109
  locales: string;
@@ -113,10 +124,16 @@ export declare class Provider extends HostElement {
113
124
  private clientProvider;
114
125
  private brandingProvider;
115
126
  private hintProvider;
127
+ private accountProvider;
128
+ /** The default account client, built once the SDK is configured (undefined before, or without account methods). */
129
+ private defaultAccountClient;
130
+ private accountInputs;
116
131
  /** The SDK the auth state was last resolved for: a new one resolves again. */
117
132
  private resolvedFor;
118
133
  /** The locales of the last configuration (`undefined`: not configured yet). */
119
134
  private configuredLocales;
135
+ /** Ends the SDK session subscription, while there is one. */
136
+ private unsubscribeSession;
120
137
  /** The auth base the branding entitlements were last asked for. */
121
138
  private brandingBase;
122
139
  /** Bumped per resolution, so only the latest answer is published. */
@@ -125,10 +142,10 @@ export declare class Provider extends HostElement {
125
142
  /** Changes the language: reconfigures the SDK and restarts the flow widgets it provides for. */
126
143
  setLocale(locales: string): void;
127
144
  /**
128
- * Reads the auth state from the SDK again (a local check). The SDK has no
129
- * auth-state subscription (W-14): call this after `Auth.signOut()`,
130
- * `Auth.switchOrganization()` or anything else that changes the session
131
- * outside a flow.
145
+ * Reads the auth state from the SDK again (a local check). With
146
+ * `@pontive/oidc-client` 1.7.0 or later the provider follows every session
147
+ * change by itself (`onSessionChange`, W-14), so this is only needed with an
148
+ * SDK that can't tell it.
132
149
  */
133
150
  refresh(): void;
134
151
  /** The base the auth endpoints hang off, or `null` while `domain` is unset or invalid. */
@@ -138,6 +155,14 @@ export declare class Provider extends HostElement {
138
155
  protected willUpdate(changed: PropertyValues): void;
139
156
  protected updated(changed: PropertyValues): void;
140
157
  private inputs;
158
+ /** The account client the widgets get: the app's, else the default one over the configured SDK. */
159
+ get effectiveAccountClient(): AccountClient | undefined;
160
+ /**
161
+ * Builds the default account client (W-12) once the SDK is configured, and again when the
162
+ * SDK, `api-base-url`, `app-id` or `headers` change. Before configuration it stays undefined,
163
+ * so no widget asks an unconfigured SDK who is signed in.
164
+ */
165
+ private provideAccountClient;
141
166
  private configureSdk;
142
167
  /** Every flow widget inside that runs on the provided client (an explicit `client` is the app's). */
143
168
  private restartWidgets;
@@ -156,9 +181,18 @@ export declare class Provider extends HostElement {
156
181
  private resolveAuth;
157
182
  private publishAuth;
158
183
  /**
159
- * The SDK can't say when a session ends elsewhere (W-14). When the tab comes
160
- * back and the local answer has turned to "signed out", ask the server again
161
- * (a refresh cookie may still hold) before publishing it.
184
+ * Follows the SDK's session changes (W-14): a sign-in, refresh, organization
185
+ * switch, sign-out or expiry, here or in another tab of the app, republishes
186
+ * the auth state and is re-announced as `pont2-session-changed` (with the
187
+ * SDK's `reason`, `source` and `organizationId`; no tokens), so the app can,
188
+ * for example, reload its data after an organization switch made elsewhere.
189
+ */
190
+ private subscribeToSession;
191
+ /**
192
+ * The fallback for an SDK without `onSessionChange` (before
193
+ * `@pontive/oidc-client` 1.7.0): when the tab comes back and the local answer
194
+ * has turned to "signed out", ask the server again (a refresh cookie may
195
+ * still hold) before publishing it.
162
196
  */
163
197
  private onVisible;
164
198
  private redirectIfDone;
@@ -17,6 +17,20 @@ export interface ProviderSdk extends WidgetClient {
17
17
  isAuthenticated(): boolean;
18
18
  /** Drops the stored session without reloading or tearing the flow machinery down. */
19
19
  invalidateSession(): void;
20
+ /**
21
+ * Tells the listener about every session change, in this tab or another
22
+ * (`@pontive/oidc-client` 1.7.0); returns the unsubscribe. Optional, so an
23
+ * older SDK or a fake without it still works: the provider then falls back
24
+ * to re-checking when the tab becomes visible (W-14).
25
+ */
26
+ onSessionChange?(listener: (event: SessionChange) => void): () => void;
27
+ }
28
+ /** The part of the SDK's `SessionChangeEvent` the provider reads and re-announces. */
29
+ export interface SessionChange {
30
+ reason: "signed-in" | "restored" | "refreshed" | "organization-changed" | "signed-out" | "expired";
31
+ source: "local" | "other-tab";
32
+ isAuthenticated: boolean;
33
+ organizationId: string | null;
20
34
  }
21
35
  /** The parts of the SDK's `ConfigOptions` the provider writes. */
22
36
  export interface ProviderSdkConfig {
@@ -7791,3 +7791,485 @@
7791
7791
  font-weight: var(--pont2-sem-font-weight-normal);
7792
7792
  }
7793
7793
  }
7794
+
7795
+ /* ../kit/account-menu/account-menu.css */
7796
+ /*
7797
+ * <pont2-account-menu>: shadcn's "nav user" (sidebar-07). The trigger is a ghost Button,
7798
+ * the menu the Dropdown Menu primitive, the pictures Avatars (their recipes style them).
7799
+ * Here: the user snippet (avatar, then name over email, truncated) in the trigger and the
7800
+ * menu header, as shadcn's "grid flex-1 text-left text-sm leading-tight".
7801
+ */
7802
+ @layer pont2.kit {
7803
+ [data-pont2-account-menu-trigger] {
7804
+ max-inline-size: 100%;
7805
+ }
7806
+
7807
+ [data-pont2-account-menu-user] {
7808
+ display: flex;
7809
+ align-items: center;
7810
+ gap: 0.5rem;
7811
+ min-inline-size: 0;
7812
+ flex: 1 1 auto;
7813
+ text-align: start;
7814
+ }
7815
+
7816
+ [data-pont2-account-menu-text] {
7817
+ display: grid;
7818
+ flex: 1 1 auto;
7819
+ min-inline-size: 0;
7820
+ font-size: var(--pont2-sem-text-sm);
7821
+ line-height: 1.25;
7822
+ }
7823
+
7824
+ [data-pont2-account-menu-name] {
7825
+ overflow: hidden;
7826
+ text-overflow: ellipsis;
7827
+ white-space: nowrap;
7828
+ font-weight: var(--pont2-sem-font-weight-medium);
7829
+ }
7830
+
7831
+ [data-pont2-account-menu-email] {
7832
+ overflow: hidden;
7833
+ text-overflow: ellipsis;
7834
+ white-space: nowrap;
7835
+ font-size: var(--pont2-sem-text-xs);
7836
+ font-weight: var(--pont2-sem-font-weight-normal);
7837
+ color: var(--pont2-sem-color-muted-foreground);
7838
+ }
7839
+
7840
+ /* The header is a group label: give it the snippet's normal weight and colour. */
7841
+ [data-pont2-account-menu-header] {
7842
+ font-weight: var(--pont2-sem-font-weight-normal);
7843
+ color: inherit;
7844
+ }
7845
+
7846
+ [data-pont2-account-menu-content] {
7847
+ min-inline-size: 14rem;
7848
+ }
7849
+ }
7850
+
7851
+ /* ../kit/organization-switcher/organization-switcher.css */
7852
+ /*
7853
+ * <pont2-organization-switcher>: an outline Button with the current organization (a small
7854
+ * Avatar of its initials and its name, truncated), opening a Dropdown Menu of radio items.
7855
+ * The recipes style the button, menu and avatar; here: truncation, the "Switching…" note
7856
+ * and the refusal under the list.
7857
+ */
7858
+ @layer pont2.kit {
7859
+ [data-pont2-organization-switcher-current] {
7860
+ overflow: hidden;
7861
+ text-overflow: ellipsis;
7862
+ white-space: nowrap;
7863
+ max-inline-size: 12rem;
7864
+ }
7865
+
7866
+ [data-pont2-organization-switcher-content] {
7867
+ min-inline-size: 14rem;
7868
+ }
7869
+
7870
+ [data-pont2-organization-switcher-switching] {
7871
+ margin-inline-start: auto;
7872
+ font-size: var(--pont2-sem-text-xs);
7873
+ color: var(--pont2-sem-color-muted-foreground);
7874
+ }
7875
+
7876
+ [data-pont2-organization-switcher-error] {
7877
+ padding: 0.375rem 0.5rem;
7878
+ font-size: var(--pont2-sem-text-xs);
7879
+ color: var(--pont2-sem-color-destructive);
7880
+ }
7881
+ }
7882
+
7883
+ /* ../kit/account-settings/account-settings.css */
7884
+ /*
7885
+ * <pont2-account-settings>: the profile and security tabs, as cards. The recipes style the
7886
+ * tabs, cards, inputs, selects, buttons, alerts and the dialog; here: the layout (tabs beside or
7887
+ * above the cards, narrowing to one column), and the label / value rows, whose labels keep a gap
7888
+ * from the value and wrap instead of running into it (carry-over §4).
7889
+ */
7890
+ @layer pont2.kit {
7891
+ pont2-account-settings {
7892
+ display: block;
7893
+ container: pont2-account-settings / inline-size;
7894
+ }
7895
+
7896
+ [data-pont2-account-settings-page] {
7897
+ display: flex;
7898
+ flex-direction: column;
7899
+ gap: 1.5rem;
7900
+ inline-size: 100%;
7901
+ }
7902
+
7903
+ [data-pont2-account-settings-title] {
7904
+ margin: 0;
7905
+ font-size: var(--pont2-sem-text-xl);
7906
+ font-weight: var(--pont2-sem-font-weight-semibold);
7907
+ line-height: 1.3;
7908
+ }
7909
+
7910
+ /* The dialog is wider than a form dialog: the cards need room for a label column. */
7911
+ [data-pont2-account-settings-dialog] {
7912
+ max-inline-size: min(56rem, calc(100% - 2rem));
7913
+ inline-size: 100%;
7914
+ max-block-size: calc(100% - 2rem);
7915
+ overflow-y: auto;
7916
+ container: pont2-account-settings / inline-size;
7917
+ }
7918
+
7919
+ [data-pont2-account-settings-tabs] {
7920
+ gap: 1.5rem;
7921
+ }
7922
+
7923
+ [data-pont2-account-settings-tabs][data-orientation="vertical"] [data-pont2-account-settings-sidebar] {
7924
+ flex: 0 0 11rem;
7925
+ align-self: flex-start;
7926
+ }
7927
+
7928
+ [data-pont2-account-settings-panel] {
7929
+ display: flex;
7930
+ flex-direction: column;
7931
+ gap: 1.5rem;
7932
+ min-inline-size: 0;
7933
+ flex: 1 1 auto;
7934
+ }
7935
+
7936
+ [data-pont2-account-settings-panel][data-hidden] {
7937
+ display: none;
7938
+ }
7939
+
7940
+ [data-pont2-account-settings-card-title] {
7941
+ display: flex;
7942
+ align-items: center;
7943
+ gap: 0.5rem;
7944
+ }
7945
+
7946
+ /* Label / value rows: a label column that keeps its gap and wraps (carry-over §4). */
7947
+ [data-pont2-account-settings-rows] {
7948
+ display: grid;
7949
+ gap: 1rem;
7950
+ margin: 0;
7951
+ }
7952
+
7953
+ [data-pont2-account-settings-row] {
7954
+ display: grid;
7955
+ grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
7956
+ column-gap: 1.5rem;
7957
+ row-gap: 0.375rem;
7958
+ align-items: baseline;
7959
+ }
7960
+
7961
+ [data-pont2-account-settings-rows][data-layout="column"] [data-pont2-account-settings-row] {
7962
+ grid-template-columns: minmax(0, 1fr);
7963
+ }
7964
+
7965
+ [data-pont2-account-settings-label] {
7966
+ margin: 0;
7967
+ font-size: var(--pont2-sem-text-sm);
7968
+ font-weight: var(--pont2-sem-font-weight-medium);
7969
+ color: var(--pont2-sem-color-muted-foreground);
7970
+ overflow-wrap: anywhere;
7971
+ hyphens: auto;
7972
+ }
7973
+
7974
+ [data-pont2-account-settings-value] {
7975
+ margin: 0;
7976
+ min-inline-size: 0;
7977
+ font-size: var(--pont2-sem-text-sm);
7978
+ overflow-wrap: anywhere;
7979
+ display: grid;
7980
+ gap: 0.375rem;
7981
+ }
7982
+
7983
+ [data-pont2-account-settings-row][data-field="profile"] [data-pont2-account-settings-value] {
7984
+ white-space: pre-line;
7985
+ }
7986
+
7987
+ [data-pont2-account-settings-empty] {
7988
+ color: var(--pont2-sem-color-muted-foreground);
7989
+ }
7990
+
7991
+ [data-pont2-account-settings-photo] {
7992
+ display: flex;
7993
+ flex-wrap: wrap;
7994
+ align-items: center;
7995
+ gap: 1rem;
7996
+ }
7997
+
7998
+ [data-pont2-account-settings-photo-form] {
7999
+ display: grid;
8000
+ gap: 0.5rem;
8001
+ flex: 1 1 14rem;
8002
+ min-inline-size: 0;
8003
+ }
8004
+
8005
+ [data-pont2-account-settings-form] {
8006
+ display: grid;
8007
+ gap: 1rem;
8008
+ }
8009
+
8010
+ [data-pont2-account-settings-actions] {
8011
+ display: flex;
8012
+ flex-wrap: wrap;
8013
+ justify-content: flex-end;
8014
+ gap: 0.5rem;
8015
+ }
8016
+
8017
+ [data-pont2-account-settings-problem] {
8018
+ display: flex;
8019
+ flex-direction: column;
8020
+ align-items: flex-start;
8021
+ gap: 1rem;
8022
+ }
8023
+
8024
+ [data-pont2-account-settings-loading] {
8025
+ display: grid;
8026
+ gap: 1rem;
8027
+ }
8028
+
8029
+ [data-pont2-account-settings-loading] [data-part="tab"] {
8030
+ block-size: 2.25rem;
8031
+ inline-size: 11rem;
8032
+ }
8033
+
8034
+ [data-pont2-account-settings-loading] [data-part="card"] {
8035
+ block-size: 10rem;
8036
+ }
8037
+
8038
+ [data-pont2-account-settings-sr] {
8039
+ position: absolute;
8040
+ inline-size: 1px;
8041
+ block-size: 1px;
8042
+ overflow: hidden;
8043
+ clip-path: inset(50%);
8044
+ white-space: nowrap;
8045
+ }
8046
+
8047
+ [data-pont2-account-settings-footer] {
8048
+ display: flex;
8049
+ justify-content: flex-end;
8050
+ padding-block-start: 0.5rem;
8051
+ }
8052
+
8053
+ /* Narrow: the tabs go above the cards, and each label above its value. */
8054
+ @container pont2-account-settings (max-width: 40rem) {
8055
+ [data-pont2-account-settings-tabs][data-orientation="vertical"] {
8056
+ flex-direction: column;
8057
+ }
8058
+
8059
+ [data-pont2-account-settings-tabs][data-orientation="vertical"] [data-pont2-account-settings-sidebar] {
8060
+ flex: 0 0 auto;
8061
+ flex-direction: row;
8062
+ inline-size: 100%;
8063
+ overflow-x: auto;
8064
+ }
8065
+ }
8066
+
8067
+ @container pont2-account-settings (max-width: 30rem) {
8068
+ [data-pont2-account-settings-row] {
8069
+ grid-template-columns: minmax(0, 1fr);
8070
+ }
8071
+ }
8072
+ }
8073
+
8074
+ /* ../kit/member-management/member-management.css */
8075
+ /*
8076
+ * <pont2-member-management>: a header, the Members / Invitations tabs (each a toolbar, a Data
8077
+ * Table and a pager) and its dialogs. The recipes style the tabs, table, inputs, buttons, badges,
8078
+ * alerts and dialogs; here: the layout, the person cell, the two-line dates, and the pager row.
8079
+ */
8080
+ @layer pont2.kit {
8081
+ pont2-member-management {
8082
+ display: block;
8083
+ }
8084
+
8085
+ [data-pont2-member-management-page] {
8086
+ display: flex;
8087
+ flex-direction: column;
8088
+ gap: 1.5rem;
8089
+ inline-size: 100%;
8090
+ }
8091
+
8092
+ [data-pont2-member-management-dialog] {
8093
+ max-inline-size: min(64rem, calc(100% - 2rem));
8094
+ inline-size: 100%;
8095
+ }
8096
+
8097
+ [data-pont2-member-management-header] {
8098
+ display: grid;
8099
+ gap: 0.25rem;
8100
+ }
8101
+
8102
+ [data-pont2-member-management-title] {
8103
+ margin: 0;
8104
+ font-size: var(--pont2-sem-text-xl);
8105
+ font-weight: var(--pont2-sem-font-weight-semibold);
8106
+ line-height: 1.3;
8107
+ }
8108
+
8109
+ [data-pont2-member-management-subtitle] {
8110
+ margin: 0;
8111
+ font-size: var(--pont2-sem-text-sm);
8112
+ color: var(--pont2-sem-color-muted-foreground);
8113
+ }
8114
+
8115
+ [data-pont2-member-management-tabs] {
8116
+ gap: 1rem;
8117
+ }
8118
+
8119
+ [data-pont2-member-management-bar] {
8120
+ display: flex;
8121
+ flex-wrap: wrap-reverse;
8122
+ align-items: center;
8123
+ justify-content: space-between;
8124
+ gap: 0.75rem;
8125
+ }
8126
+
8127
+ [data-pont2-member-management-panel] {
8128
+ display: flex;
8129
+ flex-direction: column;
8130
+ gap: 1rem;
8131
+ min-inline-size: 0;
8132
+ }
8133
+
8134
+ [data-pont2-member-management-panel][data-hidden] {
8135
+ display: none;
8136
+ }
8137
+
8138
+ [data-pont2-member-management-toolbar] {
8139
+ display: flex;
8140
+ flex-wrap: wrap;
8141
+ align-items: center;
8142
+ gap: 0.5rem;
8143
+ }
8144
+
8145
+ [data-pont2-member-management-search] {
8146
+ flex: 1 1 14rem;
8147
+ max-inline-size: 22rem;
8148
+ }
8149
+
8150
+ [data-pont2-member-management-person] {
8151
+ display: flex;
8152
+ align-items: center;
8153
+ gap: 0.625rem;
8154
+ min-inline-size: 0;
8155
+ }
8156
+
8157
+ [data-pont2-member-management-person-text] {
8158
+ display: grid;
8159
+ min-inline-size: 0;
8160
+ line-height: 1.25;
8161
+ }
8162
+
8163
+ [data-pont2-member-management-person-name] {
8164
+ overflow: hidden;
8165
+ text-overflow: ellipsis;
8166
+ white-space: nowrap;
8167
+ font-weight: var(--pont2-sem-font-weight-medium);
8168
+ }
8169
+
8170
+ [data-pont2-member-management-person-email] {
8171
+ overflow: hidden;
8172
+ text-overflow: ellipsis;
8173
+ white-space: nowrap;
8174
+ font-size: var(--pont2-sem-text-xs);
8175
+ color: var(--pont2-sem-color-muted-foreground);
8176
+ }
8177
+
8178
+ [data-pont2-member-management-roles] {
8179
+ display: flex;
8180
+ flex-wrap: wrap;
8181
+ gap: 0.25rem;
8182
+ }
8183
+
8184
+ [data-pont2-member-management-date] {
8185
+ display: grid;
8186
+ line-height: 1.25;
8187
+ }
8188
+
8189
+ [data-pont2-member-management-time] {
8190
+ font-size: var(--pont2-sem-text-xs);
8191
+ color: var(--pont2-sem-color-muted-foreground);
8192
+ }
8193
+
8194
+ [data-pont2-member-management-pager] {
8195
+ display: flex;
8196
+ flex-wrap: wrap;
8197
+ align-items: center;
8198
+ justify-content: space-between;
8199
+ gap: 0.75rem 1.5rem;
8200
+ font-size: var(--pont2-sem-text-sm);
8201
+ }
8202
+
8203
+ [data-pont2-member-management-range] {
8204
+ color: var(--pont2-sem-color-muted-foreground);
8205
+ font-variant-numeric: tabular-nums;
8206
+ }
8207
+
8208
+ [data-pont2-member-management-size] {
8209
+ display: inline-flex;
8210
+ align-items: center;
8211
+ gap: 0.5rem;
8212
+ color: var(--pont2-sem-color-muted-foreground);
8213
+ }
8214
+
8215
+ [data-pont2-member-management-pager] > :is(pont2-pagination, [data-pont2-pagination]) {
8216
+ margin-inline: 0;
8217
+ inline-size: auto;
8218
+ }
8219
+
8220
+ [data-pont2-member-management-problem] {
8221
+ display: flex;
8222
+ flex-direction: column;
8223
+ align-items: flex-start;
8224
+ gap: 1rem;
8225
+ }
8226
+
8227
+ [data-pont2-member-management-loading] {
8228
+ display: flex;
8229
+ justify-content: center;
8230
+ padding-block: 2.5rem;
8231
+ }
8232
+
8233
+ [data-pont2-member-management-loading] > :is(pont2-prim-spinner, [data-pont2-spinner]) {
8234
+ inline-size: 1.5rem;
8235
+ block-size: 1.5rem;
8236
+ }
8237
+
8238
+ [data-pont2-member-management-form] {
8239
+ display: grid;
8240
+ gap: 1.25rem;
8241
+ }
8242
+
8243
+ [data-pont2-member-management-who] {
8244
+ display: grid;
8245
+ gap: 0.25rem;
8246
+ margin: 0;
8247
+ }
8248
+
8249
+ [data-pont2-member-management-who] dt {
8250
+ font-size: var(--pont2-sem-text-sm);
8251
+ font-weight: var(--pont2-sem-font-weight-medium);
8252
+ }
8253
+
8254
+ [data-pont2-member-management-who] dd {
8255
+ margin: 0;
8256
+ color: var(--pont2-sem-color-muted-foreground);
8257
+ overflow-wrap: anywhere;
8258
+ }
8259
+
8260
+ [data-pont2-member-management-subject] {
8261
+ display: block;
8262
+ margin-block: 0.5rem;
8263
+ color: var(--pont2-sem-color-foreground);
8264
+ overflow-wrap: anywhere;
8265
+ }
8266
+
8267
+ [data-pont2-member-management-warning] {
8268
+ display: block;
8269
+ }
8270
+
8271
+ [data-pont2-member-management-footer] {
8272
+ display: flex;
8273
+ justify-content: flex-end;
8274
+ }
8275
+ }