@scaleflex/ui-tw 0.0.121 → 0.0.122

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleflex/ui-tw",
3
- "version": "0.0.121",
3
+ "version": "0.0.122",
4
4
  "author": "scaleflex",
5
5
  "repository": "github:scaleflex/ui",
6
6
  "homepage": "https://github.com/scaleflex/ui/blob/master/README.md",
@@ -20,6 +20,7 @@
20
20
  "@radix-ui/react-dropdown-menu": "^2.1.15",
21
21
  "@radix-ui/react-label": "^2.1.6",
22
22
  "@radix-ui/react-popover": "^1.0.2",
23
+ "@radix-ui/react-progress": "^1.1.8",
23
24
  "@radix-ui/react-radio-group": "^1.3.7",
24
25
  "@radix-ui/react-select": "^2.2.4",
25
26
  "@radix-ui/react-separator": "^1.1.6",
@@ -27,7 +28,7 @@
27
28
  "@radix-ui/react-switch": "^1.0.1",
28
29
  "@radix-ui/react-tabs": "^1.1.13",
29
30
  "@radix-ui/react-tooltip": "^1.2.6",
30
- "@scaleflex/icons-tw": "^0.0.121",
31
+ "@scaleflex/icons-tw": "^0.0.122",
31
32
  "@tanstack/react-table": "^8.21.3",
32
33
  "@types/lodash.merge": "^4.6.9",
33
34
  "class-variance-authority": "^0.7.1",
@@ -0,0 +1 @@
1
+ export { Progress, type ProgressProps } from './progress.component';
@@ -0,0 +1 @@
1
+ export { Progress } from './progress.component';
@@ -0,0 +1,5 @@
1
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
2
+ import React, { type ComponentProps } from 'react';
3
+ type ProgressProps = ComponentProps<typeof ProgressPrimitive.Root>;
4
+ declare const Progress: ({ className, value, ...props }: ProgressProps) => React.JSX.Element;
5
+ export { Progress, type ProgressProps };
@@ -0,0 +1,22 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["className", "value"];
4
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
5
+ import { cn } from '@scaleflex/ui-tw/utils/cn';
6
+ import React from 'react';
7
+ var Progress = function Progress(_ref) {
8
+ var className = _ref.className,
9
+ value = _ref.value,
10
+ props = _objectWithoutProperties(_ref, _excluded);
11
+ return /*#__PURE__*/React.createElement(ProgressPrimitive.Root, _extends({
12
+ "data-slot": "progress",
13
+ className: cn('bg-primary/20 relative h-2 w-full overflow-hidden rounded-full', className)
14
+ }, props), /*#__PURE__*/React.createElement(ProgressPrimitive.Indicator, {
15
+ "data-slot": "progress-indicator",
16
+ className: "bg-primary h-full w-full flex-1 transition-all",
17
+ style: {
18
+ transform: "translateX(-".concat(100 - (value || 0), "%)")
19
+ }
20
+ }));
21
+ };
22
+ export { Progress };