@a-type/ui 3.0.15 → 3.0.16
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/cjs/components/layouts/PageRoot.js +1 -1
- package/dist/cjs/components/layouts/PageRoot.js.map +1 -1
- package/dist/esm/components/layouts/PageRoot.js +1 -1
- package/dist/esm/components/layouts/PageRoot.js.map +1 -1
- package/package.json +18 -23
- package/src/components/layouts/PageRoot.tsx +1 -1
|
@@ -21,7 +21,7 @@ const clsx_1 = __importDefault(require("clsx"));
|
|
|
21
21
|
const hooks_js_1 = require("../../hooks.js");
|
|
22
22
|
function PageRoot(_a) {
|
|
23
23
|
var { className, children, disableTitleBarColor } = _a, rest = __rest(_a, ["className", "children", "disableTitleBarColor"]);
|
|
24
|
-
(0, hooks_js_1.useThemedTitleBar)('
|
|
24
|
+
(0, hooks_js_1.useThemedTitleBar)('high-contrast', 'wash', undefined, disableTitleBarColor);
|
|
25
25
|
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, clsx_1.default)('layer-components:flex-grow-1 layer-components:flex-shrink-1 layer-components:flex-basis-0 layer-components:min-h-100dvh layer-components:bg-wash', 'layer-components:grid layer-components:grid-areas-[content]-[nav] layer-components:grid-cols-[1fr] layer-components:grid-rows-[1fr_auto] layer-components:items-start layer-components:justify-center', 'md:layer-responsive:grid-areas-[gutter1_nav_content_gutter2] md:layer-responsive:grid-cols-[1fr_auto_20fr_1fr] md:layer-responsive:min-h-auto md:layer-responsive:h-auto md:layer-responsive:bg-wash', 'lg:layer-responsive:grid-cols-[1fr_auto_min(800px,70vw)_1fr]', className) }, rest, { children: children })));
|
|
26
26
|
}
|
|
27
27
|
//# sourceMappingURL=PageRoot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageRoot.js","sourceRoot":"","sources":["../../../../src/components/layouts/PageRoot.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAQA,4BAqBC;;AA7BD,gDAAwB;AAExB,6CAAmD;AAMnD,SAAgB,QAAQ,CAAC,EAKT;QALS,EACxB,SAAS,EACT,QAAQ,EACR,oBAAoB,OAEL,EADZ,IAAI,cAJiB,iDAKxB,CADO;IAEP,IAAA,4BAAiB,EAAC,
|
|
1
|
+
{"version":3,"file":"PageRoot.js","sourceRoot":"","sources":["../../../../src/components/layouts/PageRoot.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAQA,4BAqBC;;AA7BD,gDAAwB;AAExB,6CAAmD;AAMnD,SAAgB,QAAQ,CAAC,EAKT;QALS,EACxB,SAAS,EACT,QAAQ,EACR,oBAAoB,OAEL,EADZ,IAAI,cAJiB,iDAKxB,CADO;IAEP,IAAA,4BAAiB,EAAC,eAAe,EAAE,MAAM,EAAE,SAAS,EAAE,oBAAoB,CAAC,CAAC;IAC5E,OAAO,CACN,8CACC,SAAS,EAAE,IAAA,cAAI,EACd,gFAAgF,EAChF,oHAAoH,EACpH,wHAAwH,EACxH,gEAAgE,EAChE,SAAS,CACT,IACG,IAAI,cAEP,QAAQ,IACJ,CACN,CAAC;AACH,CAAC"}
|
|
@@ -15,7 +15,7 @@ import clsx from 'clsx';
|
|
|
15
15
|
import { useThemedTitleBar } from '../../hooks.js';
|
|
16
16
|
export function PageRoot(_a) {
|
|
17
17
|
var { className, children, disableTitleBarColor } = _a, rest = __rest(_a, ["className", "children", "disableTitleBarColor"]);
|
|
18
|
-
useThemedTitleBar('
|
|
18
|
+
useThemedTitleBar('high-contrast', 'wash', undefined, disableTitleBarColor);
|
|
19
19
|
return (_jsx("div", Object.assign({ className: clsx('layer-components:flex-grow-1 layer-components:flex-shrink-1 layer-components:flex-basis-0 layer-components:min-h-100dvh layer-components:bg-wash', 'layer-components:grid layer-components:grid-areas-[content]-[nav] layer-components:grid-cols-[1fr] layer-components:grid-rows-[1fr_auto] layer-components:items-start layer-components:justify-center', 'md:layer-responsive:grid-areas-[gutter1_nav_content_gutter2] md:layer-responsive:grid-cols-[1fr_auto_20fr_1fr] md:layer-responsive:min-h-auto md:layer-responsive:h-auto md:layer-responsive:bg-wash', 'lg:layer-responsive:grid-cols-[1fr_auto_min(800px,70vw)_1fr]', className) }, rest, { children: children })));
|
|
20
20
|
}
|
|
21
21
|
//# sourceMappingURL=PageRoot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageRoot.js","sourceRoot":"","sources":["../../../../src/components/layouts/PageRoot.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAMnD,MAAM,UAAU,QAAQ,CAAC,EAKT;QALS,EACxB,SAAS,EACT,QAAQ,EACR,oBAAoB,OAEL,EADZ,IAAI,cAJiB,iDAKxB,CADO;IAEP,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"PageRoot.js","sourceRoot":"","sources":["../../../../src/components/layouts/PageRoot.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAMnD,MAAM,UAAU,QAAQ,CAAC,EAKT;QALS,EACxB,SAAS,EACT,QAAQ,EACR,oBAAoB,OAEL,EADZ,IAAI,cAJiB,iDAKxB,CADO;IAEP,iBAAiB,CAAC,eAAe,EAAE,MAAM,EAAE,SAAS,EAAE,oBAAoB,CAAC,CAAC;IAC5E,OAAO,CACN,4BACC,SAAS,EAAE,IAAI,CACd,gFAAgF,EAChF,oHAAoH,EACpH,wHAAwH,EACxH,gEAAgE,EAChE,SAAS,CACT,IACG,IAAI,cAEP,QAAQ,IACJ,CACN,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a-type/ui",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.16",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"repository": {
|
|
6
|
+
"url": "https://github.com/a-type/ui"
|
|
7
|
+
},
|
|
5
8
|
"files": [
|
|
6
9
|
"/dist",
|
|
7
10
|
"/src"
|
|
@@ -30,20 +33,6 @@
|
|
|
30
33
|
"default": "./dist/css/main.css"
|
|
31
34
|
}
|
|
32
35
|
},
|
|
33
|
-
"scripts": {
|
|
34
|
-
"build:transpile": "tsc && tsc -P tsconfig-cjs.json",
|
|
35
|
-
"build:prefix": "node ./scripts/addUnoInclude.js",
|
|
36
|
-
"build:process": "unocss --write-transformed -o ./dist/css/main.css -m -c uno.config.js \"./dist/**/*.js\"",
|
|
37
|
-
"build": "pnpm run build:transpile && pnpm run build:prefix && pnpm run build:process",
|
|
38
|
-
"prepublish": "pnpm run build",
|
|
39
|
-
"icons": "node ./scripts/generateIcons.js",
|
|
40
|
-
"storybook": "storybook dev -p 6006",
|
|
41
|
-
"build-storybook": "storybook build",
|
|
42
|
-
"up-radix": "pnpm update \"@radix-ui/*\" --latest",
|
|
43
|
-
"bump": "pnpx bumpp",
|
|
44
|
-
"test": "vitest",
|
|
45
|
-
"test:browser": "vitest --config=vitest.browser.config.ts"
|
|
46
|
-
},
|
|
47
36
|
"peerDependencies": {
|
|
48
37
|
"react": "^19",
|
|
49
38
|
"react-dom": "^19",
|
|
@@ -123,12 +112,18 @@
|
|
|
123
112
|
"vitest": "^4.0.6",
|
|
124
113
|
"vitest-browser-react": "^2.0.2"
|
|
125
114
|
},
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
|
|
115
|
+
"scripts": {
|
|
116
|
+
"build:transpile": "tsc && tsc -P tsconfig-cjs.json",
|
|
117
|
+
"build:prefix": "node ./scripts/addUnoInclude.js",
|
|
118
|
+
"build:process": "unocss --write-transformed -o ./dist/css/main.css -m -c uno.config.js \"./dist/**/*.js\"",
|
|
119
|
+
"build": "pnpm run build:transpile && pnpm run build:prefix && pnpm run build:process",
|
|
120
|
+
"prepublish": "pnpm run build",
|
|
121
|
+
"icons": "node ./scripts/generateIcons.js",
|
|
122
|
+
"storybook": "storybook dev -p 6006",
|
|
123
|
+
"build-storybook": "storybook build",
|
|
124
|
+
"up-radix": "pnpm update \"@radix-ui/*\" --latest",
|
|
125
|
+
"bump": "pnpx bumpp",
|
|
126
|
+
"test": "vitest",
|
|
127
|
+
"test:browser": "vitest --config=vitest.browser.config.ts"
|
|
133
128
|
}
|
|
134
|
-
}
|
|
129
|
+
}
|
|
@@ -12,7 +12,7 @@ export function PageRoot({
|
|
|
12
12
|
disableTitleBarColor,
|
|
13
13
|
...rest
|
|
14
14
|
}: PageRootProps) {
|
|
15
|
-
useThemedTitleBar('
|
|
15
|
+
useThemedTitleBar('high-contrast', 'wash', undefined, disableTitleBarColor);
|
|
16
16
|
return (
|
|
17
17
|
<div
|
|
18
18
|
className={clsx(
|