@skeletonlabs/skeleton-react 2.0.0-next.17 → 2.0.0-next.19

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 (133) hide show
  1. package/dist/components/pagination/anatomy/ellipsis.d.ts +2 -2
  2. package/dist/components/pagination/anatomy/item.d.ts +2 -2
  3. package/dist/components/pagination/anatomy/next-trigger.d.ts +2 -2
  4. package/dist/components/pagination/anatomy/prev-trigger.d.ts +2 -2
  5. package/dist/components/popover/anatomy/arrow-tip.d.ts +2 -2
  6. package/dist/components/popover/anatomy/arrow.d.ts +2 -2
  7. package/dist/components/popover/anatomy/root-provider.d.ts +2 -2
  8. package/dist/components/popover/anatomy/root.d.ts +2 -2
  9. package/dist/components/portal/anatomy/root.d.ts +2 -2
  10. package/dist/components/progress/anatomy/circle-range.d.ts +10 -0
  11. package/dist/components/progress/anatomy/circle-range.d.ts.map +1 -0
  12. package/dist/components/progress/anatomy/circle-range.js +20 -0
  13. package/dist/components/progress/anatomy/circle-range.js.map +1 -0
  14. package/dist/components/progress/anatomy/circle-track.d.ts +10 -0
  15. package/dist/components/progress/anatomy/circle-track.d.ts.map +1 -0
  16. package/dist/components/progress/anatomy/circle-track.js +17 -0
  17. package/dist/components/progress/anatomy/circle-track.js.map +1 -0
  18. package/dist/components/progress/anatomy/circle.d.ts +10 -0
  19. package/dist/components/progress/anatomy/circle.d.ts.map +1 -0
  20. package/dist/components/progress/anatomy/circle.js +26 -0
  21. package/dist/components/progress/anatomy/circle.js.map +1 -0
  22. package/dist/components/progress/anatomy/label.d.ts +10 -0
  23. package/dist/components/progress/anatomy/label.d.ts.map +1 -0
  24. package/dist/components/{progress-linear → progress}/anatomy/label.js +4 -4
  25. package/dist/components/progress/anatomy/label.js.map +1 -0
  26. package/dist/components/progress/anatomy/range.d.ts +10 -0
  27. package/dist/components/progress/anatomy/range.d.ts.map +1 -0
  28. package/dist/components/{progress-linear → progress}/anatomy/range.js +4 -4
  29. package/dist/components/progress/anatomy/range.js.map +1 -0
  30. package/dist/components/progress/anatomy/root-context.d.ts +11 -0
  31. package/dist/components/progress/anatomy/root-context.d.ts.map +1 -0
  32. package/dist/components/{progress-linear → progress}/anatomy/root-context.js +3 -3
  33. package/dist/components/progress/anatomy/root-context.js.map +1 -0
  34. package/dist/components/progress/anatomy/root-provider.d.ts +13 -0
  35. package/dist/components/progress/anatomy/root-provider.d.ts.map +1 -0
  36. package/dist/components/{progress-linear → progress}/anatomy/root-provider.js +5 -5
  37. package/dist/components/progress/anatomy/root-provider.js.map +1 -0
  38. package/dist/components/progress/anatomy/root.d.ts +11 -0
  39. package/dist/components/progress/anatomy/root.d.ts.map +1 -0
  40. package/dist/components/progress/anatomy/root.js +25 -0
  41. package/dist/components/progress/anatomy/root.js.map +1 -0
  42. package/dist/components/progress/anatomy/track.d.ts +10 -0
  43. package/dist/components/progress/anatomy/track.d.ts.map +1 -0
  44. package/dist/components/{progress-linear → progress}/anatomy/track.js +4 -4
  45. package/dist/components/progress/anatomy/track.js.map +1 -0
  46. package/dist/components/progress/anatomy/value-text.d.ts +10 -0
  47. package/dist/components/progress/anatomy/value-text.d.ts.map +1 -0
  48. package/dist/components/progress/anatomy/value-text.js +20 -0
  49. package/dist/components/progress/anatomy/value-text.js.map +1 -0
  50. package/dist/components/progress/modules/anatomy.d.ts +26 -0
  51. package/dist/components/progress/modules/anatomy.d.ts.map +1 -0
  52. package/dist/components/progress/modules/anatomy.js +27 -0
  53. package/dist/components/progress/modules/anatomy.js.map +1 -0
  54. package/dist/components/progress/modules/provider.d.ts +8 -0
  55. package/dist/components/progress/modules/provider.d.ts.map +1 -0
  56. package/dist/components/{progress-linear → progress}/modules/provider.js +3 -3
  57. package/dist/components/progress/modules/provider.js.map +1 -0
  58. package/dist/components/{progress-linear → progress}/modules/root-context.js +1 -1
  59. package/dist/components/progress/modules/root-context.js.map +1 -0
  60. package/dist/components/rating-group/anatomy/control.d.ts +2 -2
  61. package/dist/components/rating-group/anatomy/hidden-input.d.ts +2 -2
  62. package/dist/components/rating-group/anatomy/item.d.ts +2 -2
  63. package/dist/components/rating-group/anatomy/label.d.ts +2 -2
  64. package/dist/components/segmented-control/anatomy/control.d.ts +2 -2
  65. package/dist/components/segmented-control/anatomy/indicator.d.ts +2 -2
  66. package/dist/components/segmented-control/anatomy/item-hidden-input.d.ts +2 -2
  67. package/dist/components/segmented-control/anatomy/item-text.d.ts +2 -2
  68. package/dist/components/segmented-control/anatomy/label.d.ts +2 -2
  69. package/dist/components/slider/anatomy/control.d.ts +2 -2
  70. package/dist/components/slider/anatomy/hidden-input.d.ts +2 -2
  71. package/dist/components/slider/anatomy/label.d.ts +2 -2
  72. package/dist/components/slider/anatomy/marker-group.d.ts +2 -2
  73. package/dist/components/slider/anatomy/marker.d.ts +2 -2
  74. package/dist/components/slider/anatomy/range.d.ts +2 -2
  75. package/dist/components/slider/anatomy/track.d.ts +2 -2
  76. package/dist/components/slider/anatomy/value-text.d.ts +2 -2
  77. package/dist/components/switch/anatomy/control.d.ts +2 -2
  78. package/dist/components/switch/anatomy/hidden-input.d.ts +2 -2
  79. package/dist/components/switch/anatomy/label.d.ts +2 -2
  80. package/dist/components/switch/anatomy/thumb.d.ts +2 -2
  81. package/dist/components/tabs/anatomy/content.d.ts +2 -2
  82. package/dist/components/tabs/anatomy/indicator.d.ts +2 -2
  83. package/dist/components/tabs/anatomy/list.d.ts +2 -2
  84. package/dist/components/tabs/anatomy/trigger.d.ts +2 -2
  85. package/dist/components/tags-input/anatomy/clear-trigger.d.ts +2 -2
  86. package/dist/components/tags-input/anatomy/control.d.ts +2 -2
  87. package/dist/components/tags-input/anatomy/hidden-input.d.ts +2 -2
  88. package/dist/components/tags-input/anatomy/input.d.ts +2 -2
  89. package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts +2 -2
  90. package/dist/components/tags-input/anatomy/item-input.d.ts +2 -2
  91. package/dist/components/tags-input/anatomy/item-preview.d.ts +2 -2
  92. package/dist/components/tags-input/anatomy/item-text.d.ts +2 -2
  93. package/dist/components/tags-input/anatomy/label.d.ts +2 -2
  94. package/dist/components/toast/anatomy/action-trigger.d.ts +2 -2
  95. package/dist/components/toast/anatomy/action-trigger.d.ts.map +1 -1
  96. package/dist/components/toast/anatomy/close-trigger.d.ts +2 -2
  97. package/dist/components/toast/anatomy/description.d.ts +2 -2
  98. package/dist/components/toast/anatomy/message.d.ts +2 -2
  99. package/dist/components/toast/anatomy/title.d.ts +2 -2
  100. package/dist/components/tooltip/anatomy/arrow-tip.d.ts +2 -2
  101. package/dist/components/tooltip/anatomy/arrow.d.ts +2 -2
  102. package/dist/components/tooltip/anatomy/content.d.ts +2 -2
  103. package/dist/components/tooltip/anatomy/trigger.d.ts +2 -2
  104. package/dist/index.d.ts +13 -9
  105. package/dist/index.js +3 -3
  106. package/package.json +25 -25
  107. package/dist/components/progress-linear/anatomy/label.d.ts +0 -10
  108. package/dist/components/progress-linear/anatomy/label.d.ts.map +0 -1
  109. package/dist/components/progress-linear/anatomy/label.js.map +0 -1
  110. package/dist/components/progress-linear/anatomy/range.d.ts +0 -10
  111. package/dist/components/progress-linear/anatomy/range.d.ts.map +0 -1
  112. package/dist/components/progress-linear/anatomy/range.js.map +0 -1
  113. package/dist/components/progress-linear/anatomy/root-context.d.ts +0 -11
  114. package/dist/components/progress-linear/anatomy/root-context.d.ts.map +0 -1
  115. package/dist/components/progress-linear/anatomy/root-context.js.map +0 -1
  116. package/dist/components/progress-linear/anatomy/root-provider.d.ts +0 -13
  117. package/dist/components/progress-linear/anatomy/root-provider.d.ts.map +0 -1
  118. package/dist/components/progress-linear/anatomy/root-provider.js.map +0 -1
  119. package/dist/components/progress-linear/anatomy/root.d.ts +0 -11
  120. package/dist/components/progress-linear/anatomy/root.d.ts.map +0 -1
  121. package/dist/components/progress-linear/anatomy/root.js +0 -25
  122. package/dist/components/progress-linear/anatomy/root.js.map +0 -1
  123. package/dist/components/progress-linear/anatomy/track.d.ts +0 -10
  124. package/dist/components/progress-linear/anatomy/track.d.ts.map +0 -1
  125. package/dist/components/progress-linear/anatomy/track.js.map +0 -1
  126. package/dist/components/progress-linear/modules/anatomy.d.ts +0 -18
  127. package/dist/components/progress-linear/modules/anatomy.d.ts.map +0 -1
  128. package/dist/components/progress-linear/modules/anatomy.js +0 -19
  129. package/dist/components/progress-linear/modules/anatomy.js.map +0 -1
  130. package/dist/components/progress-linear/modules/provider.d.ts +0 -8
  131. package/dist/components/progress-linear/modules/provider.d.ts.map +0 -1
  132. package/dist/components/progress-linear/modules/provider.js.map +0 -1
  133. package/dist/components/progress-linear/modules/root-context.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react39 from "react";
3
+ import * as react42 from "react";
4
4
  import { EllipsisProps } from "@zag-js/pagination";
5
5
 
6
6
  //#region src/components/pagination/anatomy/ellipsis.d.ts
7
7
  interface PaginationEllipsisProps extends EllipsisProps, PropsWithElement<'span'>, HTMLAttributes<'span'> {}
8
- declare function Ellipsis(props: PaginationEllipsisProps): react39.JSX.Element;
8
+ declare function Ellipsis(props: PaginationEllipsisProps): react42.JSX.Element;
9
9
  //#endregion
10
10
  export { Ellipsis, PaginationEllipsisProps };
11
11
  //# sourceMappingURL=ellipsis.d.ts.map
@@ -1,11 +1,11 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react42 from "react";
3
+ import * as react41 from "react";
4
4
  import { ItemProps } from "@zag-js/pagination";
5
5
 
6
6
  //#region src/components/pagination/anatomy/item.d.ts
7
7
  interface PaginationItemProps extends ItemProps, PropsWithElement<'a'>, HTMLAttributes<'a', 'type'> {}
8
- declare function Item(props: PaginationItemProps): react42.JSX.Element;
8
+ declare function Item(props: PaginationItemProps): react41.JSX.Element;
9
9
  //#endregion
10
10
  export { Item, PaginationItemProps };
11
11
  //# sourceMappingURL=item.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react41 from "react";
3
+ import * as react40 from "react";
4
4
 
5
5
  //#region src/components/pagination/anatomy/next-trigger.d.ts
6
6
  interface PaginationNextTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
7
- declare function NextTrigger(props: PaginationNextTriggerProps): react41.JSX.Element;
7
+ declare function NextTrigger(props: PaginationNextTriggerProps): react40.JSX.Element;
8
8
  //#endregion
9
9
  export { NextTrigger, PaginationNextTriggerProps };
10
10
  //# sourceMappingURL=next-trigger.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react40 from "react";
3
+ import * as react39 from "react";
4
4
 
5
5
  //#region src/components/pagination/anatomy/prev-trigger.d.ts
6
6
  interface PaginationPrevTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
7
- declare function PrevTrigger(props: PaginationPrevTriggerProps): react40.JSX.Element;
7
+ declare function PrevTrigger(props: PaginationPrevTriggerProps): react39.JSX.Element;
8
8
  //#endregion
9
9
  export { PaginationPrevTriggerProps, PrevTrigger };
10
10
  //# sourceMappingURL=prev-trigger.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react94 from "react";
3
+ import * as react99 from "react";
4
4
 
5
5
  //#region src/components/popover/anatomy/arrow-tip.d.ts
6
6
  interface PopoverArrowTipProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function ArrowTip(props: PopoverArrowTipProps): react94.JSX.Element;
7
+ declare function ArrowTip(props: PopoverArrowTipProps): react99.JSX.Element;
8
8
  //#endregion
9
9
  export { ArrowTip };
10
10
  //# sourceMappingURL=arrow-tip.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react95 from "react";
3
+ import * as react98 from "react";
4
4
 
5
5
  //#region src/components/popover/anatomy/arrow.d.ts
6
6
  interface PopoverArrowProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Arrow(props: PopoverArrowProps): react95.JSX.Element;
7
+ declare function Arrow(props: PopoverArrowProps): react98.JSX.Element;
8
8
  //#endregion
9
9
  export { Arrow };
10
10
  //# sourceMappingURL=arrow.d.ts.map
@@ -1,12 +1,12 @@
1
1
  import { usePopover } from "../modules/provider.js";
2
2
  import { PropsWithChildren } from "react";
3
- import * as react_jsx_runtime18 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime17 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/popover/anatomy/root-provider.d.ts
6
6
  interface PopoverRootProviderProps extends PropsWithChildren {
7
7
  value: ReturnType<typeof usePopover>;
8
8
  }
9
- declare function RootProvider(props: PopoverRootProviderProps): react_jsx_runtime18.JSX.Element;
9
+ declare function RootProvider(props: PopoverRootProviderProps): react_jsx_runtime17.JSX.Element;
10
10
  //#endregion
11
11
  export { PopoverRootProviderProps, RootProvider };
12
12
  //# sourceMappingURL=root-provider.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { PropsWithChildren } from "react";
2
- import * as react_jsx_runtime17 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime16 from "react/jsx-runtime";
3
3
  import { Props } from "@zag-js/popover";
4
4
 
5
5
  //#region src/components/popover/anatomy/root.d.ts
6
6
  interface PopoverRootProps extends PropsWithChildren, Omit<Props, 'id'> {}
7
- declare function Root(props: PopoverRootProps): react_jsx_runtime17.JSX.Element;
7
+ declare function Root(props: PopoverRootProps): react_jsx_runtime16.JSX.Element;
8
8
  //#endregion
9
9
  export { PopoverRootProps, Root };
10
10
  //# sourceMappingURL=root.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { PropsWithChildren } from "react";
2
- import * as react_jsx_runtime16 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime18 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/portal/anatomy/root.d.ts
5
5
  interface PortalRootProps extends Required<PropsWithChildren> {
@@ -16,7 +16,7 @@ interface PortalRootProps extends Required<PropsWithChildren> {
16
16
  */
17
17
  target?: HTMLElement;
18
18
  }
19
- declare function Root(props: PortalRootProps): react_jsx_runtime16.JSX.Element;
19
+ declare function Root(props: PortalRootProps): react_jsx_runtime18.JSX.Element;
20
20
  //#endregion
21
21
  export { PortalRootProps, Root };
22
22
  //# sourceMappingURL=root.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
+ import { PropsWithElement } from "../../../internal/props-with-element.js";
3
+ import * as react54 from "react";
4
+
5
+ //#region src/components/progress/anatomy/circle-range.d.ts
6
+ interface ProgressCircleRangeProps extends PropsWithElement<'circle'>, HTMLAttributes<'circle', 'children'> {}
7
+ declare function CircleRange(props: ProgressCircleRangeProps): react54.JSX.Element;
8
+ //#endregion
9
+ export { CircleRange, ProgressCircleRangeProps };
10
+ //# sourceMappingURL=circle-range.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circle-range.d.ts","names":[],"sources":["../../../../src/components/progress/anatomy/circle-range.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,wBAAA,SAAiC,4BAA4B;iBAEtD,WAAA,QAAmB,2BAAwB,OAAA,CAAA,GAAA,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { RootContext } from "../modules/root-context.js";
2
+ import { use } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { classesProgress } from "@skeletonlabs/skeleton-common";
5
+ import { jsx } from "react/jsx-runtime";
6
+
7
+ //#region src/components/progress/anatomy/circle-range.tsx
8
+ function CircleRange(props) {
9
+ const progress = use(RootContext);
10
+ const { element,...rest } = props;
11
+ const attributes = mergeProps(progress.getCircleRangeProps(), {
12
+ className: classesProgress.circleRange,
13
+ strokeLinecap: "round"
14
+ }, rest);
15
+ return element ? element(attributes) : /* @__PURE__ */ jsx("circle", { ...attributes });
16
+ }
17
+
18
+ //#endregion
19
+ export { CircleRange as default };
20
+ //# sourceMappingURL=circle-range.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circle-range.js","names":[],"sources":["../../../../src/components/progress/anatomy/circle-range.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesProgress } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ProgressCircleRangeProps extends PropsWithElement<'circle'>, HTMLAttributes<'circle', 'children'> {}\n\nexport default function CircleRange(props: ProgressCircleRangeProps) {\n\tconst progress = use(RootContext);\n\n\tconst { element, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tprogress.getCircleRangeProps(),\n\t\t{\n\t\t\tclassName: classesProgress.circleRange,\n\t\t\tstrokeLinecap: 'round',\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <circle {...attributes} />;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,YAAY,OAAiC;CACpE,MAAM,WAAW,IAAI,YAAY;CAEjC,MAAM,EAAE,QAAS,GAAG,SAAS;CAE7B,MAAM,aAAa,WAClB,SAAS,qBAAqB,EAC9B;EACC,WAAW,gBAAgB;EAC3B,eAAe;EACf,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC,YAAO,GAAI,aAAc"}
@@ -0,0 +1,10 @@
1
+ import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
+ import { PropsWithElement } from "../../../internal/props-with-element.js";
3
+ import * as react55 from "react";
4
+
5
+ //#region src/components/progress/anatomy/circle-track.d.ts
6
+ interface ProgressCircleTrackProps extends PropsWithElement<'circle'>, HTMLAttributes<'circle', 'children'> {}
7
+ declare function CircleTrack(props: ProgressCircleTrackProps): react55.JSX.Element;
8
+ //#endregion
9
+ export { CircleTrack, ProgressCircleTrackProps };
10
+ //# sourceMappingURL=circle-track.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circle-track.d.ts","names":[],"sources":["../../../../src/components/progress/anatomy/circle-track.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,wBAAA,SAAiC,4BAA4B;iBAEtD,WAAA,QAAmB,2BAAwB,OAAA,CAAA,GAAA,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { RootContext } from "../modules/root-context.js";
2
+ import { use } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { classesProgress } from "@skeletonlabs/skeleton-common";
5
+ import { jsx } from "react/jsx-runtime";
6
+
7
+ //#region src/components/progress/anatomy/circle-track.tsx
8
+ function CircleTrack(props) {
9
+ const progress = use(RootContext);
10
+ const { element,...rest } = props;
11
+ const attributes = mergeProps(progress.getCircleTrackProps(), { className: classesProgress.circleTrack }, rest);
12
+ return element ? element(attributes) : /* @__PURE__ */ jsx("circle", { ...attributes });
13
+ }
14
+
15
+ //#endregion
16
+ export { CircleTrack as default };
17
+ //# sourceMappingURL=circle-track.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circle-track.js","names":[],"sources":["../../../../src/components/progress/anatomy/circle-track.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesProgress } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ProgressCircleTrackProps extends PropsWithElement<'circle'>, HTMLAttributes<'circle', 'children'> {}\n\nexport default function CircleTrack(props: ProgressCircleTrackProps) {\n\tconst progress = use(RootContext);\n\n\tconst { element, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tprogress.getCircleTrackProps(),\n\t\t{\n\t\t\tclassName: classesProgress.circleTrack,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <circle {...attributes} />;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,YAAY,OAAiC;CACpE,MAAM,WAAW,IAAI,YAAY;CAEjC,MAAM,EAAE,QAAS,GAAG,SAAS;CAE7B,MAAM,aAAa,WAClB,SAAS,qBAAqB,EAC9B,EACC,WAAW,gBAAgB,aAC3B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC,YAAO,GAAI,aAAc"}
@@ -0,0 +1,10 @@
1
+ import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
+ import { PropsWithElement } from "../../../internal/props-with-element.js";
3
+ import * as react53 from "react";
4
+
5
+ //#region src/components/progress/anatomy/circle.d.ts
6
+ interface ProgressCircleProps extends PropsWithElement<'svg'>, HTMLAttributes<'svg'> {}
7
+ declare function Circle(props: ProgressCircleProps): react53.JSX.Element;
8
+ //#endregion
9
+ export { Circle, ProgressCircleProps };
10
+ //# sourceMappingURL=circle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circle.d.ts","names":[],"sources":["../../../../src/components/progress/anatomy/circle.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,mBAAA,SAA4B,yBAAyB;iBAE9C,MAAA,QAAc,sBAAmB,OAAA,CAAA,GAAA,CAAA"}
@@ -0,0 +1,26 @@
1
+ import { RootContext } from "../modules/root-context.js";
2
+ import { use } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { classesProgress } from "@skeletonlabs/skeleton-common";
5
+ import { jsx } from "react/jsx-runtime";
6
+
7
+ //#region src/components/progress/anatomy/circle.tsx
8
+ function Circle(props) {
9
+ const progress = use(RootContext);
10
+ const { element, children,...rest } = props;
11
+ const attributes = mergeProps(progress.getCircleProps(), {
12
+ className: classesProgress.circle,
13
+ style: {
14
+ ["--size"]: "100px",
15
+ ["--thickness"]: "10px"
16
+ }
17
+ }, rest);
18
+ return element ? element(attributes) : /* @__PURE__ */ jsx("svg", {
19
+ ...attributes,
20
+ children
21
+ });
22
+ }
23
+
24
+ //#endregion
25
+ export { Circle as default };
26
+ //# sourceMappingURL=circle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circle.js","names":[],"sources":["../../../../src/components/progress/anatomy/circle.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesProgress } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ProgressCircleProps extends PropsWithElement<'svg'>, HTMLAttributes<'svg'> {}\n\nexport default function Circle(props: ProgressCircleProps) {\n\tconst progress = use(RootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tprogress.getCircleProps(),\n\t\t{\n\t\t\tclassName: classesProgress.circle,\n\t\t\tstyle: {\n\t\t\t\t['--size' as string]: '100px',\n\t\t\t\t['--thickness' as string]: '10px',\n\t\t\t},\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <svg {...attributes}>{children}</svg>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,OAAO,OAA4B;CAC1D,MAAM,WAAW,IAAI,YAAY;CAEjC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,SAAS,gBAAgB,EACzB;EACC,WAAW,gBAAgB;EAC3B,OAAO;IACL,WAAqB;IACrB,gBAA0B;GAC3B;EACD,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
@@ -0,0 +1,10 @@
1
+ import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
+ import { PropsWithElement } from "../../../internal/props-with-element.js";
3
+ import * as react49 from "react";
4
+
5
+ //#region src/components/progress/anatomy/label.d.ts
6
+ interface ProgressLabelProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
+ declare function Label(props: ProgressLabelProps): react49.JSX.Element;
8
+ //#endregion
9
+ export { Label, ProgressLabelProps };
10
+ //# sourceMappingURL=label.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label.d.ts","names":[],"sources":["../../../../src/components/progress/anatomy/label.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,kBAAA,SAA2B,yBAAyB;iBAE7C,KAAA,QAAa,qBAAkB,OAAA,CAAA,GAAA,CAAA"}
@@ -1,14 +1,14 @@
1
1
  import { RootContext } from "../modules/root-context.js";
2
2
  import { use } from "react";
3
3
  import { mergeProps } from "@zag-js/react";
4
- import { classesProgressLinear } from "@skeletonlabs/skeleton-common";
4
+ import { classesProgress } from "@skeletonlabs/skeleton-common";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
 
7
- //#region src/components/progress-linear/anatomy/label.tsx
7
+ //#region src/components/progress/anatomy/label.tsx
8
8
  function Label(props) {
9
- const progressLinear = use(RootContext);
9
+ const progress = use(RootContext);
10
10
  const { element, children,...rest } = props;
11
- const attributes = mergeProps(progressLinear.getLabelProps(), { className: classesProgressLinear.label }, rest);
11
+ const attributes = mergeProps(progress.getLabelProps(), { className: classesProgress.label }, rest);
12
12
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
13
13
  ...attributes,
14
14
  children
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label.js","names":[],"sources":["../../../../src/components/progress/anatomy/label.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesProgress } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ProgressLabelProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Label(props: ProgressLabelProps) {\n\tconst progress = use(RootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tprogress.getLabelProps(),\n\t\t{\n\t\t\tclassName: classesProgress.label,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,MAAM,OAA2B;CACxD,MAAM,WAAW,IAAI,YAAY;CAEjC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,SAAS,eAAe,EACxB,EACC,WAAW,gBAAgB,OAC3B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
@@ -0,0 +1,10 @@
1
+ import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
+ import { PropsWithElement } from "../../../internal/props-with-element.js";
3
+ import * as react50 from "react";
4
+
5
+ //#region src/components/progress/anatomy/range.d.ts
6
+ interface ProgressRangeProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}
7
+ declare function Range(props: ProgressRangeProps): react50.JSX.Element;
8
+ //#endregion
9
+ export { ProgressRangeProps, Range };
10
+ //# sourceMappingURL=range.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range.d.ts","names":[],"sources":["../../../../src/components/progress/anatomy/range.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,kBAAA,SAA2B,yBAAyB;iBAE7C,KAAA,QAAa,qBAAkB,OAAA,CAAA,GAAA,CAAA"}
@@ -1,14 +1,14 @@
1
1
  import { RootContext } from "../modules/root-context.js";
2
2
  import { use } from "react";
3
3
  import { mergeProps } from "@zag-js/react";
4
- import { classesProgressLinear } from "@skeletonlabs/skeleton-common";
4
+ import { classesProgress } from "@skeletonlabs/skeleton-common";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
 
7
- //#region src/components/progress-linear/anatomy/range.tsx
7
+ //#region src/components/progress/anatomy/range.tsx
8
8
  function Range(props) {
9
- const progressLinear = use(RootContext);
9
+ const progress = use(RootContext);
10
10
  const { element,...rest } = props;
11
- const attributes = mergeProps(progressLinear.getRangeProps(), { className: classesProgressLinear.range }, rest);
11
+ const attributes = mergeProps(progress.getRangeProps(), { className: classesProgress.range }, rest);
12
12
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
13
13
  }
14
14
 
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range.js","names":[],"sources":["../../../../src/components/progress/anatomy/range.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesProgress } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ProgressRangeProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}\n\nexport default function Range(props: ProgressRangeProps) {\n\tconst progress = use(RootContext);\n\n\tconst { element, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tprogress.getRangeProps(),\n\t\t{\n\t\t\tclassName: classesProgress.range,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <div {...attributes} />;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,MAAM,OAA2B;CACxD,MAAM,WAAW,IAAI,YAAY;CAEjC,MAAM,EAAE,QAAS,GAAG,SAAS;CAE7B,MAAM,aAAa,WAClB,SAAS,eAAe,EACxB,EACC,WAAW,gBAAgB,OAC3B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC,SAAI,GAAI,aAAc"}
@@ -0,0 +1,11 @@
1
+ import { useProgress } from "../modules/provider.js";
2
+ import { ReactNode } from "react";
3
+
4
+ //#region src/components/progress/anatomy/root-context.d.ts
5
+ interface ProgressRootContextProps {
6
+ children: (progress: ReturnType<typeof useProgress>) => ReactNode;
7
+ }
8
+ declare function RootContext(props: ProgressRootContextProps): ReactNode;
9
+ //#endregion
10
+ export { ProgressRootContextProps, RootContext };
11
+ //# sourceMappingURL=root-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root-context.d.ts","names":[],"sources":["../../../../src/components/progress/anatomy/root-context.tsx"],"sourcesContent":[],"mappings":";;;;UAKiB,wBAAA;uBACK,kBAAkB,iBAAiB;AADzD;AAAyC,iBAIjB,WAAA,CAJiB,KAAA,EAIE,wBAJF,CAAA,EAI0B,SAJ1B"}
@@ -1,11 +1,11 @@
1
1
  import { RootContext } from "../modules/root-context.js";
2
2
  import { use } from "react";
3
3
 
4
- //#region src/components/progress-linear/anatomy/root-context.tsx
4
+ //#region src/components/progress/anatomy/root-context.tsx
5
5
  function RootContext$1(props) {
6
- const progressLinear = use(RootContext);
6
+ const progress = use(RootContext);
7
7
  const { children } = props;
8
- return children(progressLinear);
8
+ return children(progress);
9
9
  }
10
10
 
11
11
  //#endregion
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root-context.js","names":["RootContext","RootContext_"],"sources":["../../../../src/components/progress/anatomy/root-context.tsx"],"sourcesContent":["import type { useProgress } from '../modules/provider';\nimport { RootContext as RootContext_ } from '../modules/root-context';\nimport { use } from 'react';\nimport type { ReactNode } from 'react';\n\nexport interface ProgressRootContextProps {\n\tchildren: (progress: ReturnType<typeof useProgress>) => ReactNode;\n}\n\nexport default function RootContext(props: ProgressRootContextProps) {\n\tconst progress = use(RootContext_);\n\n\tconst { children } = props;\n\n\treturn children(progress);\n}\n"],"mappings":";;;;AASA,SAAwBA,cAAY,OAAiC;CACpE,MAAM,WAAW,IAAIC,YAAa;CAElC,MAAM,EAAE,aAAa;AAErB,QAAO,SAAS,SAAS"}
@@ -0,0 +1,13 @@
1
+ import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
+ import { PropsWithElement } from "../../../internal/props-with-element.js";
3
+ import { useProgress } from "../modules/provider.js";
4
+ import * as react_jsx_runtime20 from "react/jsx-runtime";
5
+
6
+ //#region src/components/progress/anatomy/root-provider.d.ts
7
+ interface ProgressRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {
8
+ value: ReturnType<typeof useProgress>;
9
+ }
10
+ declare function RootProvider(props: ProgressRootProviderProps): react_jsx_runtime20.JSX.Element;
11
+ //#endregion
12
+ export { ProgressRootProviderProps, RootProvider };
13
+ //# sourceMappingURL=root-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/progress/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,yBAAA,SAAkC,yBAAyB;SACpE,kBAAkB;;AADT,iBAIO,YAAA,CAJmB,KAAA,EAIC,yBAJD,CAAA,EAI0B,mBAAA,CAAA,GAAA,CAAA,OAJ1B"}
@@ -1,14 +1,14 @@
1
1
  import { RootContext } from "../modules/root-context.js";
2
2
  import { mergeProps } from "@zag-js/react";
3
- import { classesProgressLinear } from "@skeletonlabs/skeleton-common";
3
+ import { classesProgress } from "@skeletonlabs/skeleton-common";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
6
- //#region src/components/progress-linear/anatomy/root-provider.tsx
6
+ //#region src/components/progress/anatomy/root-provider.tsx
7
7
  function RootProvider(props) {
8
- const { element, children, value: progressLinear,...rest } = props;
9
- const attributes = mergeProps(progressLinear.getRootProps(), { className: classesProgressLinear.root }, rest);
8
+ const { element, children, value: progress,...rest } = props;
9
+ const attributes = mergeProps(progress.getRootProps(), { className: classesProgress.root }, rest);
10
10
  return /* @__PURE__ */ jsx(RootContext.Provider, {
11
- value: progressLinear,
11
+ value: progress,
12
12
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
13
13
  ...attributes,
14
14
  children
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root-provider.js","names":[],"sources":["../../../../src/components/progress/anatomy/root-provider.tsx"],"sourcesContent":["import type { useProgress } from '../modules/provider';\nimport { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesProgress } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface ProgressRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {\n\tvalue: ReturnType<typeof useProgress>;\n}\n\nexport default function RootProvider(props: ProgressRootProviderProps) {\n\tconst { element, children, value: progress, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tprogress.getRootProps(),\n\t\t{\n\t\t\tclassName: classesProgress.root,\n\t\t},\n\t\trest,\n\t);\n\n\treturn (\n\t\t<RootContext.Provider value={progress}>{element ? element(attributes) : <div {...attributes}>{children}</div>}</RootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;AAWA,SAAwB,aAAa,OAAkC;CACtE,MAAM,EAAE,SAAS,UAAU,OAAO,SAAU,GAAG,SAAS;CAExD,MAAM,aAAa,WAClB,SAAS,cAAc,EACvB,EACC,WAAW,gBAAgB,MAC3B,EACD,KACA;AAED,QACC,oBAAC,YAAY;EAAS,OAAO;YAAW,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAAwB"}
@@ -0,0 +1,11 @@
1
+ import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
+ import { PropsWithElement } from "../../../internal/props-with-element.js";
3
+ import * as react_jsx_runtime19 from "react/jsx-runtime";
4
+ import { Props } from "@zag-js/progress";
5
+
6
+ //#region src/components/progress/anatomy/root.d.ts
7
+ interface ProgressRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
8
+ declare function Root(props: ProgressRootProps): react_jsx_runtime19.JSX.Element;
9
+ //#endregion
10
+ export { ProgressRootProps, Root };
11
+ //# sourceMappingURL=root.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/progress/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,iBAAA,SACR,KAAK,cACZ,yBACA;iBAEsB,IAAA,QAAY,oBAAiB,mBAAA,CAAA,GAAA,CAAA"}
@@ -0,0 +1,25 @@
1
+ import { RootContext } from "../modules/root-context.js";
2
+ import { useProgress } from "../modules/provider.js";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { classesProgress } from "@skeletonlabs/skeleton-common";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { splitProps } from "@zag-js/progress";
7
+
8
+ //#region src/components/progress/anatomy/root.tsx
9
+ function Root(props) {
10
+ const [progressProps, componentProps] = splitProps(props);
11
+ const { element, children,...rest } = componentProps;
12
+ const progress = useProgress(progressProps);
13
+ const attributes = mergeProps(progress.getRootProps(), { className: classesProgress.root }, rest);
14
+ return /* @__PURE__ */ jsx(RootContext.Provider, {
15
+ value: progress,
16
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
17
+ ...attributes,
18
+ children
19
+ })
20
+ });
21
+ }
22
+
23
+ //#endregion
24
+ export { Root as default };
25
+ //# sourceMappingURL=root.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/progress/anatomy/root.tsx"],"sourcesContent":["import { useProgress } from '../modules/provider';\nimport { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesProgress } from '@skeletonlabs/skeleton-common';\nimport { splitProps } from '@zag-js/progress';\nimport type { Props } from '@zag-js/progress';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface ProgressRootProps\n\textends Omit<Props, 'id'>,\n\t\tPropsWithElement<'div'>,\n\t\tHTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}\n\nexport default function Root(props: ProgressRootProps) {\n\tconst [progressProps, componentProps] = splitProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst progress = useProgress(progressProps);\n\n\tconst attributes = mergeProps(\n\t\tprogress.getRootProps(),\n\t\t{\n\t\t\tclassName: classesProgress.root,\n\t\t},\n\t\trest,\n\t);\n\n\treturn (\n\t\t<RootContext.Provider value={progress}>{element ? element(attributes) : <div {...attributes}>{children}</div>}</RootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;AAcA,SAAwB,KAAK,OAA0B;CACtD,MAAM,CAAC,eAAe,kBAAkB,WAAW,MAAM;CACzD,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,WAAW,YAAY,cAAc;CAE3C,MAAM,aAAa,WAClB,SAAS,cAAc,EACvB,EACC,WAAW,gBAAgB,MAC3B,EACD,KACA;AAED,QACC,oBAAC,YAAY;EAAS,OAAO;YAAW,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAAwB"}
@@ -0,0 +1,10 @@
1
+ import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
+ import { PropsWithElement } from "../../../internal/props-with-element.js";
3
+ import * as react51 from "react";
4
+
5
+ //#region src/components/progress/anatomy/track.d.ts
6
+ interface ProgressTrackProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
+ declare function Track(props: ProgressTrackProps): react51.JSX.Element;
8
+ //#endregion
9
+ export { ProgressTrackProps, Track };
10
+ //# sourceMappingURL=track.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"track.d.ts","names":[],"sources":["../../../../src/components/progress/anatomy/track.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,kBAAA,SAA2B,yBAAyB;iBAE7C,KAAA,QAAa,qBAAkB,OAAA,CAAA,GAAA,CAAA"}
@@ -1,14 +1,14 @@
1
1
  import { RootContext } from "../modules/root-context.js";
2
2
  import { use } from "react";
3
3
  import { mergeProps } from "@zag-js/react";
4
- import { classesProgressLinear } from "@skeletonlabs/skeleton-common";
4
+ import { classesProgress } from "@skeletonlabs/skeleton-common";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
 
7
- //#region src/components/progress-linear/anatomy/track.tsx
7
+ //#region src/components/progress/anatomy/track.tsx
8
8
  function Track(props) {
9
- const progressLinear = use(RootContext);
9
+ const progress = use(RootContext);
10
10
  const { element, children,...rest } = props;
11
- const attributes = mergeProps(progressLinear.getTrackProps(), { className: classesProgressLinear.track }, rest);
11
+ const attributes = mergeProps(progress.getTrackProps(), { className: classesProgress.track }, rest);
12
12
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
13
13
  ...attributes,
14
14
  children
@@ -0,0 +1 @@
1
+ {"version":3,"file":"track.js","names":[],"sources":["../../../../src/components/progress/anatomy/track.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesProgress } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ProgressTrackProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Track(props: ProgressTrackProps) {\n\tconst progress = use(RootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tprogress.getTrackProps(),\n\t\t{\n\t\t\tclassName: classesProgress.track,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,MAAM,OAA2B;CACxD,MAAM,WAAW,IAAI,YAAY;CAEjC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,SAAS,eAAe,EACxB,EACC,WAAW,gBAAgB,OAC3B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
@@ -0,0 +1,10 @@
1
+ import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
+ import { PropsWithElement } from "../../../internal/props-with-element.js";
3
+ import * as react52 from "react";
4
+
5
+ //#region src/components/progress/anatomy/value-text.d.ts
6
+ interface ProgressValueTextProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
7
+ declare function ValueText(props: ProgressValueTextProps): react52.JSX.Element;
8
+ //#endregion
9
+ export { ProgressValueTextProps, ValueText };
10
+ //# sourceMappingURL=value-text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"value-text.d.ts","names":[],"sources":["../../../../src/components/progress/anatomy/value-text.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,sBAAA,SAA+B,0BAA0B;iBAElD,SAAA,QAAiB,yBAAsB,OAAA,CAAA,GAAA,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { RootContext } from "../modules/root-context.js";
2
+ import { use } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { classesProgress } from "@skeletonlabs/skeleton-common";
5
+ import { jsx } from "react/jsx-runtime";
6
+
7
+ //#region src/components/progress/anatomy/value-text.tsx
8
+ function ValueText(props) {
9
+ const progress = use(RootContext);
10
+ const { element, children,...rest } = props;
11
+ const attributes = mergeProps(progress.getValueTextProps(), { className: classesProgress.valueText }, rest);
12
+ return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
13
+ ...attributes,
14
+ children: children ?? progress.percentAsString
15
+ });
16
+ }
17
+
18
+ //#endregion
19
+ export { ValueText as default };
20
+ //# sourceMappingURL=value-text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"value-text.js","names":[],"sources":["../../../../src/components/progress/anatomy/value-text.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesProgress } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ProgressValueTextProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function ValueText(props: ProgressValueTextProps) {\n\tconst progress = use(RootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tprogress.getValueTextProps(),\n\t\t{\n\t\t\tclassName: classesProgress.valueText,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <span {...attributes}>{children ?? progress.percentAsString}</span>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,UAAU,OAA+B;CAChE,MAAM,WAAW,IAAI,YAAY;CAEjC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,SAAS,mBAAmB,EAC5B,EACC,WAAW,gBAAgB,WAC3B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;YAAa,YAAY,SAAS;GAAuB"}
@@ -0,0 +1,26 @@
1
+ import { Label } from "../anatomy/label.js";
2
+ import { Range } from "../anatomy/range.js";
3
+ import { Root } from "../anatomy/root.js";
4
+ import { RootContext } from "../anatomy/root-context.js";
5
+ import { RootProvider } from "../anatomy/root-provider.js";
6
+ import { Track } from "../anatomy/track.js";
7
+ import { ValueText } from "../anatomy/value-text.js";
8
+ import { Circle } from "../anatomy/circle.js";
9
+ import { CircleRange } from "../anatomy/circle-range.js";
10
+ import { CircleTrack } from "../anatomy/circle-track.js";
11
+
12
+ //#region src/components/progress/modules/anatomy.d.ts
13
+ declare const Progress: typeof Root & {
14
+ Provider: typeof RootProvider;
15
+ Context: typeof RootContext;
16
+ Label: typeof Label;
17
+ ValueText: typeof ValueText;
18
+ Track: typeof Track;
19
+ Range: typeof Range;
20
+ Circle: typeof Circle;
21
+ CircleTrack: typeof CircleTrack;
22
+ CircleRange: typeof CircleRange;
23
+ };
24
+ //#endregion
25
+ export { Progress };
26
+ //# sourceMappingURL=anatomy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"anatomy.d.ts","names":[],"sources":["../../../../src/components/progress/modules/anatomy.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;cAWa,iBAAQ;;EAAR,OAAA,EAAA,kBAUX;EAAA,KAAA,EAAA,YAAA;WAVmB,EAAA,gBAAA"}