@skeletonlabs/skeleton-react 5.0.0-next.4 → 5.0.0-next.5

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.
Files changed (2) hide show
  1. package/dist/index.mjs +9 -18
  2. package/package.json +30 -30
package/dist/index.mjs CHANGED
@@ -2160,11 +2160,10 @@ const RootContext$28 = createContext$1();
2160
2160
  //#region src/components/navigation/anatomy/content.tsx
2161
2161
  function NavigationContent(props) {
2162
2162
  const { element, children, ...rest } = props;
2163
- const navigation = use(RootContext$28);
2164
2163
  const attributes = mergeProps({
2165
2164
  "data-scope": "navigation",
2166
2165
  "data-part": "content",
2167
- "data-layout": navigation.layout
2166
+ "data-layout": use(RootContext$28).layout
2168
2167
  }, rest);
2169
2168
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2170
2169
  ...attributes,
@@ -2175,11 +2174,10 @@ function NavigationContent(props) {
2175
2174
  //#region src/components/navigation/anatomy/footer.tsx
2176
2175
  function NavigationFooter(props) {
2177
2176
  const { element, children, ...rest } = props;
2178
- const navigation = use(RootContext$28);
2179
2177
  const attributes = mergeProps({
2180
2178
  "data-scope": "navigation",
2181
2179
  "data-part": "footer",
2182
- "data-layout": navigation.layout
2180
+ "data-layout": use(RootContext$28).layout
2183
2181
  }, rest);
2184
2182
  return element ? element(attributes) : /* @__PURE__ */ jsx("footer", {
2185
2183
  ...attributes,
@@ -2190,11 +2188,10 @@ function NavigationFooter(props) {
2190
2188
  //#region src/components/navigation/anatomy/group.tsx
2191
2189
  function NavigationGroup(props) {
2192
2190
  const { element, children, ...rest } = props;
2193
- const navigation = use(RootContext$28);
2194
2191
  const attributes = mergeProps({
2195
2192
  "data-scope": "navigation",
2196
2193
  "data-part": "group",
2197
- "data-layout": navigation.layout
2194
+ "data-layout": use(RootContext$28).layout
2198
2195
  }, rest);
2199
2196
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2200
2197
  ...attributes,
@@ -2205,11 +2202,10 @@ function NavigationGroup(props) {
2205
2202
  //#region src/components/navigation/anatomy/header.tsx
2206
2203
  function NavigationHeader(props) {
2207
2204
  const { element, children, ...rest } = props;
2208
- const navigation = use(RootContext$28);
2209
2205
  const attributes = mergeProps({
2210
2206
  "data-scope": "navigation",
2211
2207
  "data-part": "header",
2212
- "data-layout": navigation.layout
2208
+ "data-layout": use(RootContext$28).layout
2213
2209
  }, rest);
2214
2210
  return element ? element(attributes) : /* @__PURE__ */ jsx("header", {
2215
2211
  ...attributes,
@@ -2220,11 +2216,10 @@ function NavigationHeader(props) {
2220
2216
  //#region src/components/navigation/anatomy/label.tsx
2221
2217
  function NavigationLabel(props) {
2222
2218
  const { element, children, ...rest } = props;
2223
- const navigation = use(RootContext$28);
2224
2219
  const attributes = mergeProps({
2225
2220
  "data-scope": "navigation",
2226
2221
  "data-part": "label",
2227
- "data-layout": navigation.layout
2222
+ "data-layout": use(RootContext$28).layout
2228
2223
  }, rest);
2229
2224
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2230
2225
  ...attributes,
@@ -2235,11 +2230,10 @@ function NavigationLabel(props) {
2235
2230
  //#region src/components/navigation/anatomy/menu.tsx
2236
2231
  function NavigationMenu(props) {
2237
2232
  const { element, children, ...rest } = props;
2238
- const navigation = use(RootContext$28);
2239
2233
  const attributes = mergeProps({
2240
2234
  "data-scope": "navigation",
2241
2235
  "data-part": "menu",
2242
- "data-layout": navigation.layout
2236
+ "data-layout": use(RootContext$28).layout
2243
2237
  }, rest);
2244
2238
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2245
2239
  ...attributes,
@@ -2250,11 +2244,10 @@ function NavigationMenu(props) {
2250
2244
  //#region src/components/navigation/anatomy/trigger.tsx
2251
2245
  function NavigationTrigger(props) {
2252
2246
  const { element, children, ...rest } = props;
2253
- const navigation = use(RootContext$28);
2254
2247
  const attributes = mergeProps({
2255
2248
  "data-scope": "navigation",
2256
2249
  "data-part": "trigger",
2257
- "data-layout": navigation.layout,
2250
+ "data-layout": use(RootContext$28).layout,
2258
2251
  type: "button"
2259
2252
  }, rest);
2260
2253
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -2266,11 +2259,10 @@ function NavigationTrigger(props) {
2266
2259
  //#region src/components/navigation/anatomy/trigger-anchor.tsx
2267
2260
  function NavigationTriggerAnchor(props) {
2268
2261
  const { element, children, ...rest } = props;
2269
- const navigation = use(RootContext$28);
2270
2262
  const attributes = mergeProps({
2271
2263
  "data-scope": "navigation",
2272
2264
  "data-part": "trigger-anchor",
2273
- "data-layout": navigation.layout
2265
+ "data-layout": use(RootContext$28).layout
2274
2266
  }, rest);
2275
2267
  return element ? element(attributes) : /* @__PURE__ */ jsx("a", {
2276
2268
  ...attributes,
@@ -2281,11 +2273,10 @@ function NavigationTriggerAnchor(props) {
2281
2273
  //#region src/components/navigation/anatomy/trigger-text.tsx
2282
2274
  function NavigationTriggerText(props) {
2283
2275
  const { element, children, ...rest } = props;
2284
- const navigation = use(RootContext$28);
2285
2276
  const attributes = mergeProps({
2286
2277
  "data-scope": "navigation",
2287
2278
  "data-part": "trigger-text",
2288
- "data-layout": navigation.layout
2279
+ "data-layout": use(RootContext$28).layout
2289
2280
  }, rest);
2290
2281
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
2291
2282
  ...attributes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton-react",
3
- "version": "5.0.0-next.4",
3
+ "version": "5.0.0-next.5",
4
4
  "description": "The React package for Skeleton.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {
@@ -20,35 +20,35 @@
20
20
  ],
21
21
  "sideEffects": false,
22
22
  "dependencies": {
23
- "@internationalized/date": "3.12.0",
24
- "@zag-js/accordion": "1.39.1",
25
- "@zag-js/avatar": "1.39.1",
26
- "@zag-js/carousel": "1.39.1",
27
- "@zag-js/collapsible": "1.39.1",
28
- "@zag-js/collection": "1.39.1",
29
- "@zag-js/combobox": "1.39.1",
30
- "@zag-js/date-picker": "1.39.1",
31
- "@zag-js/dialog": "1.39.1",
32
- "@zag-js/file-upload": "1.39.1",
33
- "@zag-js/floating-panel": "1.39.1",
34
- "@zag-js/listbox": "1.39.1",
35
- "@zag-js/menu": "1.39.1",
36
- "@zag-js/pagination": "1.39.1",
37
- "@zag-js/popover": "1.39.1",
38
- "@zag-js/progress": "1.39.1",
39
- "@zag-js/radio-group": "1.39.1",
40
- "@zag-js/rating-group": "1.39.1",
41
- "@zag-js/react": "1.39.1",
42
- "@zag-js/slider": "1.39.1",
43
- "@zag-js/steps": "1.39.1",
44
- "@zag-js/switch": "1.39.1",
45
- "@zag-js/tabs": "1.39.1",
46
- "@zag-js/tags-input": "1.39.1",
47
- "@zag-js/toast": "1.39.1",
48
- "@zag-js/toggle-group": "1.39.1",
49
- "@zag-js/tooltip": "1.39.1",
50
- "@zag-js/tree-view": "1.39.1",
51
- "@skeletonlabs/skeleton-common": "5.0.0-next.4"
23
+ "@internationalized/date": "3.12.1",
24
+ "@zag-js/accordion": "1.40.0",
25
+ "@zag-js/avatar": "1.40.0",
26
+ "@zag-js/carousel": "1.40.0",
27
+ "@zag-js/collapsible": "1.40.0",
28
+ "@zag-js/collection": "1.40.0",
29
+ "@zag-js/combobox": "1.40.0",
30
+ "@zag-js/date-picker": "1.40.0",
31
+ "@zag-js/dialog": "1.40.0",
32
+ "@zag-js/file-upload": "1.40.0",
33
+ "@zag-js/floating-panel": "1.40.0",
34
+ "@zag-js/listbox": "1.40.0",
35
+ "@zag-js/menu": "1.40.0",
36
+ "@zag-js/pagination": "1.40.0",
37
+ "@zag-js/popover": "1.40.0",
38
+ "@zag-js/progress": "1.40.0",
39
+ "@zag-js/radio-group": "1.40.0",
40
+ "@zag-js/rating-group": "1.40.0",
41
+ "@zag-js/react": "1.40.0",
42
+ "@zag-js/slider": "1.40.0",
43
+ "@zag-js/steps": "1.40.0",
44
+ "@zag-js/switch": "1.40.0",
45
+ "@zag-js/tabs": "1.40.0",
46
+ "@zag-js/tags-input": "1.40.0",
47
+ "@zag-js/toast": "1.40.0",
48
+ "@zag-js/toggle-group": "1.40.0",
49
+ "@zag-js/tooltip": "1.40.0",
50
+ "@zag-js/tree-view": "1.40.0",
51
+ "@skeletonlabs/skeleton-common": "5.0.0-next.5"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react": "^18.0.0 || ^19.0.0",