@skeletonlabs/skeleton-react 4.11.0 → 4.12.1

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 (3) hide show
  1. package/dist/index.d.mts +199 -194
  2. package/dist/index.mjs +14 -11
  3. package/package.json +30 -30
package/dist/index.mjs CHANGED
@@ -1114,11 +1114,11 @@ function TableCellTrigger(props) {
1114
1114
  const viewProps = use(ViewContext);
1115
1115
  const tableCellProps = use(TableCellContext);
1116
1116
  const { element, children, ...rest } = props;
1117
- function getTableCellTriggerProps(tableCellProps$1) {
1117
+ function getTableCellTriggerProps(tableCellProps) {
1118
1118
  switch (viewProps.view) {
1119
- case "day": return datePicker.getDayTableCellTriggerProps(tableCellProps$1);
1120
- case "month": return datePicker.getMonthTableCellTriggerProps(tableCellProps$1);
1121
- case "year": return datePicker.getYearTableCellTriggerProps(tableCellProps$1);
1119
+ case "day": return datePicker.getDayTableCellTriggerProps(tableCellProps);
1120
+ case "month": return datePicker.getMonthTableCellTriggerProps(tableCellProps);
1121
+ case "year": return datePicker.getYearTableCellTriggerProps(tableCellProps);
1122
1122
  }
1123
1123
  }
1124
1124
  const attributes = mergeProps(getTableCellTriggerProps(tableCellProps), rest);
@@ -1135,11 +1135,11 @@ function TableCell(props) {
1135
1135
  const viewProps = use(ViewContext);
1136
1136
  const [tableCellProps, componentProps] = splitTableCellProps(props);
1137
1137
  const { element, children, ...rest } = componentProps;
1138
- function getTableCellProps(tableCellProps$1) {
1138
+ function getTableCellProps(tableCellProps) {
1139
1139
  switch (viewProps.view) {
1140
- case "day": return datePicker.getDayTableCellProps(tableCellProps$1);
1141
- case "month": return datePicker.getMonthTableCellProps(tableCellProps$1);
1142
- case "year": return datePicker.getYearTableCellProps(tableCellProps$1);
1140
+ case "day": return datePicker.getDayTableCellProps(tableCellProps);
1141
+ case "month": return datePicker.getMonthTableCellProps(tableCellProps);
1142
+ case "year": return datePicker.getYearTableCellProps(tableCellProps);
1143
1143
  }
1144
1144
  }
1145
1145
  const attributes = mergeProps(getTableCellProps(tableCellProps), rest);
@@ -4153,7 +4153,10 @@ function Group(props) {
4153
4153
  value: service,
4154
4154
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
4155
4155
  ...attributes,
4156
- children: api.getToasts().map((toast) => children?.(toast))
4156
+ children: api.getToasts().map((toast, index) => children?.({
4157
+ ...toast,
4158
+ index
4159
+ }))
4157
4160
  })
4158
4161
  });
4159
4162
  }
@@ -4183,11 +4186,11 @@ function RootContext$6(props) {
4183
4186
  //#endregion
4184
4187
  //#region src/components/toast/anatomy/root.tsx
4185
4188
  function Root$2(props) {
4186
- const group$1 = use(GroupContext);
4189
+ const group = use(GroupContext);
4187
4190
  const { element, children, toast: toastProps, ...rest } = props;
4188
4191
  const toast = connect$21(useMachine(machine$21, {
4189
4192
  ...toastProps,
4190
- parent: group$1
4193
+ parent: group
4191
4194
  }), normalizeProps);
4192
4195
  const attributes = mergeProps(toast.getRootProps(), rest);
4193
4196
  return /* @__PURE__ */ jsx(RootContext$7.Provider, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton-react",
3
- "version": "4.11.0",
3
+ "version": "4.12.1",
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.10.1",
24
- "@zag-js/accordion": "1.32.0",
25
- "@zag-js/avatar": "1.32.0",
26
- "@zag-js/carousel": "1.32.0",
27
- "@zag-js/collapsible": "1.32.0",
28
- "@zag-js/collection": "1.32.0",
29
- "@zag-js/combobox": "1.32.0",
30
- "@zag-js/date-picker": "1.32.0",
31
- "@zag-js/dialog": "1.32.0",
32
- "@zag-js/file-upload": "1.32.0",
33
- "@zag-js/floating-panel": "1.32.0",
34
- "@zag-js/listbox": "1.32.0",
35
- "@zag-js/menu": "1.32.0",
36
- "@zag-js/pagination": "1.32.0",
37
- "@zag-js/popover": "1.32.0",
38
- "@zag-js/progress": "1.32.0",
39
- "@zag-js/radio-group": "1.32.0",
40
- "@zag-js/rating-group": "1.32.0",
41
- "@zag-js/react": "1.32.0",
42
- "@zag-js/slider": "1.32.0",
43
- "@zag-js/steps": "1.32.0",
44
- "@zag-js/switch": "1.32.0",
45
- "@zag-js/tabs": "1.32.0",
46
- "@zag-js/tags-input": "1.32.0",
47
- "@zag-js/toast": "1.32.0",
48
- "@zag-js/toggle-group": "1.32.0",
49
- "@zag-js/tooltip": "1.32.0",
50
- "@zag-js/tree-view": "1.32.0",
51
- "@skeletonlabs/skeleton-common": "4.11.0"
23
+ "@internationalized/date": "3.11.0",
24
+ "@zag-js/accordion": "1.34.1",
25
+ "@zag-js/avatar": "1.34.1",
26
+ "@zag-js/carousel": "1.34.1",
27
+ "@zag-js/collapsible": "1.34.1",
28
+ "@zag-js/collection": "1.34.1",
29
+ "@zag-js/combobox": "1.34.1",
30
+ "@zag-js/date-picker": "1.34.1",
31
+ "@zag-js/dialog": "1.34.1",
32
+ "@zag-js/file-upload": "1.34.1",
33
+ "@zag-js/floating-panel": "1.34.1",
34
+ "@zag-js/listbox": "1.34.1",
35
+ "@zag-js/menu": "1.34.1",
36
+ "@zag-js/pagination": "1.34.1",
37
+ "@zag-js/popover": "1.34.1",
38
+ "@zag-js/progress": "1.34.1",
39
+ "@zag-js/radio-group": "1.34.1",
40
+ "@zag-js/rating-group": "1.34.1",
41
+ "@zag-js/react": "1.34.1",
42
+ "@zag-js/slider": "1.34.1",
43
+ "@zag-js/steps": "1.34.1",
44
+ "@zag-js/switch": "1.34.1",
45
+ "@zag-js/tabs": "1.34.1",
46
+ "@zag-js/tags-input": "1.34.1",
47
+ "@zag-js/toast": "1.34.1",
48
+ "@zag-js/toggle-group": "1.34.1",
49
+ "@zag-js/tooltip": "1.34.1",
50
+ "@zag-js/tree-view": "1.34.1",
51
+ "@skeletonlabs/skeleton-common": "4.12.1"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react": "^18.0.0 || ^19.0.0",