@bluealba/pae-ui-react-core 4.6.0-integration-css.403 → 4.7.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.
- package/dist/index.cjs.js +38 -41
- package/dist/index.css +1 -0
- package/dist/index.esm.js +1972 -2042
- package/dist/index.systemjs.js +48 -50
- package/dist/index.umd.js +46 -48
- package/dist/src/components/index.d.ts +0 -2
- package/dist/src/hooks/customizations/useDynamicStyleSheet.d.ts +0 -12
- package/dist/src/index.d.ts +1 -1
- package/package.json +3 -2
- package/src/global.css +32 -0
- package/dist/src/components/PortalContainerContext.d.ts +0 -12
- package/dist/src/styles/StyleRegistry.d.ts +0 -41
|
@@ -8,5 +8,3 @@ export { default as ThemeToggle } from './ThemeToggle/ThemeToggle';
|
|
|
8
8
|
export { useTheme } from './ThemeToggle/useTheme';
|
|
9
9
|
export { default as FragmentSlot } from './FragmentSlot';
|
|
10
10
|
export type { FragmentSlotProps } from './FragmentSlot';
|
|
11
|
-
export { PortalContainerProvider, usePortalContainer } from './PortalContainerContext';
|
|
12
|
-
export type { PortalContainerProviderProps } from './PortalContainerContext';
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Applies a tenant customization stylesheet.
|
|
3
|
-
*
|
|
4
|
-
* The stylesheet is wrapped in `@layer pae.customization`, the highest layer
|
|
5
|
-
* of the platform cascade contract (declared first in the document by the
|
|
6
|
-
* gateway). That makes the override deterministic: it always wins over
|
|
7
|
-
* `pae.tokens`/`pae.base` regardless of when it loads — no artificial delay
|
|
8
|
-
* needed (this used to wait 1s to win by source order).
|
|
9
|
-
*
|
|
10
|
-
* Styles go through the StyleRegistry, so they reach both the document and
|
|
11
|
-
* the shell shadow root (tokens are inherited custom properties either way).
|
|
12
|
-
*/
|
|
13
1
|
export declare const useDynamicStyleSheet: (styleSheet?: string) => void;
|
package/dist/src/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluealba/pae-ui-react-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
7
7
|
"types": "./dist/src/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
|
-
"dist"
|
|
9
|
+
"dist",
|
|
10
|
+
"src/global.css"
|
|
10
11
|
],
|
|
11
12
|
"description": "React utilities for PAE",
|
|
12
13
|
"scripts": {
|
package/src/global.css
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Input */
|
|
3
|
+
--platform-label-color: var(--platform-text-secondary-color);
|
|
4
|
+
--platform-input-border-color: var(--platform-lines);
|
|
5
|
+
--platform-input-background-color: var(--platform-background-secondary-color);
|
|
6
|
+
--platform-input-color: var(--platform-text-primary-color);
|
|
7
|
+
--platform-input-focus-border-color: var(--platform-color-primary);
|
|
8
|
+
|
|
9
|
+
/* Button */
|
|
10
|
+
--platform-button-base-padding: 4px 16px;
|
|
11
|
+
--platform-button-base-border-radius: 6px;
|
|
12
|
+
--platform-button-base-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
13
|
+
--platform-button-base-font-size: 1em;
|
|
14
|
+
--platform-button-base-line-height: 16px;
|
|
15
|
+
--platform-button-base-height: calc(2 * var(--platform-button-base-font-size));
|
|
16
|
+
/* Contained Primary variant */
|
|
17
|
+
--platform-button-contained-primary-background-color: var(--platform-color-primary);
|
|
18
|
+
--platform-button-contained-primary-color: #ffffff;
|
|
19
|
+
/* Outlined Primary variant */
|
|
20
|
+
--platform-button-outlined-primary-color: var(--platform-color-primary);
|
|
21
|
+
/* Text Primary variant */
|
|
22
|
+
--platform-button-text-primary-color: var(--platform-text-primary-color);
|
|
23
|
+
|
|
24
|
+
/* Contained danger variant */
|
|
25
|
+
--platform-button-contained-danger-background-color: var(--platform-color-danger);
|
|
26
|
+
--platform-button-contained-danger-color: #ffffff;
|
|
27
|
+
/* Outlined danger variant */
|
|
28
|
+
--platform-button-outlined-danger-color: var(--platform-color-danger);
|
|
29
|
+
/* Text danger variant */
|
|
30
|
+
--platform-button-text-danger-color: var(--platform-color-danger);
|
|
31
|
+
|
|
32
|
+
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface PortalContainerProviderProps {
|
|
4
|
-
container: HTMLElement | null;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare const PortalContainerProvider: FC<PortalContainerProviderProps>;
|
|
8
|
-
/**
|
|
9
|
-
* Returns the portal container to use, or undefined to let Radix default to
|
|
10
|
-
* document.body.
|
|
11
|
-
*/
|
|
12
|
-
export declare const usePortalContainer: () => HTMLElement | undefined;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* StyleRegistry — single distribution point for pae-ui-react-core styles.
|
|
3
|
-
*
|
|
4
|
-
* pae-ui-react-core is loaded once (shared via the platform import map) but
|
|
5
|
-
* its components render in two different style scopes:
|
|
6
|
-
* - the document (micro-frontends mounted in the light DOM)
|
|
7
|
-
* - the shell shadow root (<pae-shell-host>)
|
|
8
|
-
*
|
|
9
|
-
* Every stylesheet registered here is applied to the document AND to every
|
|
10
|
-
* shadow root adopted via adoptInto(). Uses constructable stylesheets
|
|
11
|
-
* (adoptedStyleSheets) when available, falling back to <style> elements
|
|
12
|
-
* (jsdom, older browsers).
|
|
13
|
-
*/
|
|
14
|
-
declare class StyleRegistryImpl {
|
|
15
|
-
private styles;
|
|
16
|
-
private shadowRoots;
|
|
17
|
-
/**
|
|
18
|
-
* Registers a stylesheet and applies it to the document and to every
|
|
19
|
-
* adopted shadow root. Returns an unregister function.
|
|
20
|
-
*/
|
|
21
|
-
register(cssText: string): () => void;
|
|
22
|
-
/**
|
|
23
|
-
* Applies every registered stylesheet to the given shadow root and keeps
|
|
24
|
-
* it in sync with future registrations. Used by the shell host.
|
|
25
|
-
*/
|
|
26
|
-
adoptInto(root: ShadowRoot): void;
|
|
27
|
-
/**
|
|
28
|
-
* Stops syncing styles into the given shadow root (e.g. when the shell
|
|
29
|
-
* host disconnects). Already-adopted sheets are removed.
|
|
30
|
-
*/
|
|
31
|
-
releaseRoot(root: ShadowRoot): void;
|
|
32
|
-
private unregister;
|
|
33
|
-
private appendStyleElement;
|
|
34
|
-
}
|
|
35
|
-
export declare const StyleRegistry: StyleRegistryImpl;
|
|
36
|
-
/**
|
|
37
|
-
* Drains CSS bundled at build time (the build prepends the package CSS to
|
|
38
|
-
* the bundle as globalThis.__PAE_UI_CORE_CSS__) into the registry.
|
|
39
|
-
*/
|
|
40
|
-
export declare const registerBundledCss: () => void;
|
|
41
|
-
export {};
|