prime-ui-kit 0.5.1 → 0.6.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/README.md +11 -2
- package/dist/components/index.css +24 -9
- package/dist/components/index.css.map +3 -3
- package/dist/components/index.js +3 -19
- package/dist/components/index.js.map +3 -3
- package/dist/index.css +24 -9
- package/dist/index.css.map +3 -3
- package/dist/index.js +3 -19
- package/dist/index.js.map +3 -3
- package/dist/layout/app-shell/AppShell.d.ts +0 -8
- package/dist/layout/app-shell/AppShell.d.ts.map +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.d.ts.map +1 -1
- package/dist/layout/sidebar/examples/01-app-shell-nav.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/page-content/COMPONENT.md +9 -5
- package/src/layout/app-shell/COMPONENT.md +77 -27
- package/src/layout/sidebar/COMPONENT.md +1 -1
- package/src/layout/sidebar/examples/01-app-shell-nav.tsx +11 -13
- package/src/layout/sidebar/examples/examples.module.css +0 -10
package/dist/components/index.js
CHANGED
|
@@ -120,8 +120,7 @@ function mergeRefs(...refs) {
|
|
|
120
120
|
var AppShell_default = {
|
|
121
121
|
layoutRoot: "AppShell_layoutRoot2",
|
|
122
122
|
layoutMain: "AppShell_layoutMain2",
|
|
123
|
-
layoutNav: "AppShell_layoutNav2"
|
|
124
|
-
layoutMainInset: "AppShell_layoutMainInset2"
|
|
123
|
+
layoutNav: "AppShell_layoutNav2"
|
|
125
124
|
};
|
|
126
125
|
|
|
127
126
|
// src/layout/app-shell/AppShell.tsx
|
|
@@ -153,27 +152,13 @@ var AppShellMain = React4.forwardRef(function AppShellMain2({ className, childre
|
|
|
153
152
|
overscrollBehavior: "contain",
|
|
154
153
|
className: cx(AppShell_default.layoutMain, className),
|
|
155
154
|
"data-layout-region": "main",
|
|
155
|
+
"data-app-shell-main-padded": "",
|
|
156
156
|
...rest,
|
|
157
157
|
children
|
|
158
158
|
}
|
|
159
159
|
);
|
|
160
160
|
});
|
|
161
161
|
AppShellMain.displayName = "AppShell.Main";
|
|
162
|
-
var AppShellMainInset = React4.forwardRef(
|
|
163
|
-
function AppShellMainInset2({ className, children, ...rest }, forwardedRef) {
|
|
164
|
-
return /* @__PURE__ */ jsx4(
|
|
165
|
-
"div",
|
|
166
|
-
{
|
|
167
|
-
ref: forwardedRef,
|
|
168
|
-
className: cx(AppShell_default.layoutMainInset, className),
|
|
169
|
-
"data-app-shell-main-inset": "",
|
|
170
|
-
...rest,
|
|
171
|
-
children
|
|
172
|
-
}
|
|
173
|
-
);
|
|
174
|
-
}
|
|
175
|
-
);
|
|
176
|
-
AppShellMainInset.displayName = "AppShell.MainInset";
|
|
177
162
|
function AppShellMainRouteScrollReset({
|
|
178
163
|
mainRef
|
|
179
164
|
}) {
|
|
@@ -198,7 +183,7 @@ var AppShellTemplate = React4.forwardRef(
|
|
|
198
183
|
children: [
|
|
199
184
|
/* @__PURE__ */ jsx4(AppShellNav, { ...navProps, children: nav }),
|
|
200
185
|
/* @__PURE__ */ jsxs(AppShellMain, { ref: setMainRef, ...mainProps, children: [
|
|
201
|
-
|
|
186
|
+
children,
|
|
202
187
|
inRouter ? /* @__PURE__ */ jsx4(AppShellMainRouteScrollReset, { mainRef: mainElementRef }) : null
|
|
203
188
|
] })
|
|
204
189
|
]
|
|
@@ -211,7 +196,6 @@ var AppShell = {
|
|
|
211
196
|
Root: AppShellRoot,
|
|
212
197
|
Nav: AppShellNav,
|
|
213
198
|
Main: AppShellMain,
|
|
214
|
-
MainInset: AppShellMainInset,
|
|
215
199
|
Template: AppShellTemplate
|
|
216
200
|
};
|
|
217
201
|
|