@tallyui/components 3.7.0 → 3.8.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/dist/index.js CHANGED
@@ -1490,11 +1490,15 @@ var Slider = React32.forwardRef(function Slider2({ className, ...props }, ref) {
1490
1490
  SliderPrimitive.Root,
1491
1491
  {
1492
1492
  ref,
1493
- className: cn33("relative flex w-full touch-none select-none items-center", className),
1493
+ className: cn33(
1494
+ "relative flex h-5 w-full touch-none select-none items-center",
1495
+ props.disabled && "web:cursor-not-allowed opacity-50",
1496
+ className
1497
+ ),
1494
1498
  ...props,
1495
1499
  children: [
1496
1500
  /* @__PURE__ */ jsx36(SliderPrimitive.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ jsx36(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
1497
- /* @__PURE__ */ jsx36(SliderPrimitive.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background web:ring-offset-background web:transition-colors web:focus-visible:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2" })
1501
+ /* @__PURE__ */ jsx36(SliderPrimitive.Thumb, { className: "absolute top-0 -ml-2.5 block h-5 w-5 rounded-full border-2 border-primary bg-background web:ring-offset-background web:transition-colors web:focus-visible:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2" })
1498
1502
  ]
1499
1503
  }
1500
1504
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tallyui/components",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "type": "module",
5
5
  "description": "Universal POS UI components for Tally UI",
6
6
  "main": "./dist/index.js",
@@ -27,22 +27,22 @@
27
27
  "directory": "packages/components"
28
28
  },
29
29
  "peerDependencies": {
30
- "@tallyui/core": "^3.7.0",
31
- "@tallyui/primitives": "^3.7.0",
32
- "@tallyui/theme": "^3.7.0",
30
+ "@tallyui/core": "^3.8.0",
31
+ "@tallyui/primitives": "^3.8.0",
32
+ "@tallyui/theme": "^3.8.0",
33
33
  "react": ">=18",
34
34
  "react-native": ">=0.74",
35
35
  "react-native-svg": ">=15"
36
36
  },
37
37
  "dependencies": {
38
38
  "class-variance-authority": "^0.7.1",
39
- "@tallyui/pos": "3.7.0"
39
+ "@tallyui/pos": "3.8.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@tallyui/connector-medusa": "3.7.0",
43
- "@tallyui/connector-vendure": "3.7.0",
44
- "@tallyui/connector-woocommerce": "3.7.0",
45
- "@tallyui/mock-api": "3.7.0",
42
+ "@tallyui/connector-medusa": "3.8.0",
43
+ "@tallyui/connector-vendure": "3.8.0",
44
+ "@tallyui/connector-woocommerce": "3.8.0",
45
+ "@tallyui/mock-api": "3.8.0",
46
46
  "@types/react": ">=18",
47
47
  "react": "^19.2.4",
48
48
  "react-native-svg": "15.12.1",
@@ -12,13 +12,17 @@ const Slider = React.forwardRef<
12
12
  return (
13
13
  <SliderPrimitive.Root
14
14
  ref={ref}
15
- className={cn('relative flex w-full touch-none select-none items-center', className)}
15
+ className={cn(
16
+ 'relative flex h-5 w-full touch-none select-none items-center',
17
+ props.disabled && 'web:cursor-not-allowed opacity-50',
18
+ className
19
+ )}
16
20
  {...props}
17
21
  >
18
22
  <SliderPrimitive.Track className="relative h-2 w-full grow overflow-hidden rounded-full bg-secondary">
19
23
  <SliderPrimitive.Range className="absolute h-full bg-primary" />
20
24
  </SliderPrimitive.Track>
21
- <SliderPrimitive.Thumb className="block h-5 w-5 rounded-full border-2 border-primary bg-background web:ring-offset-background web:transition-colors web:focus-visible:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2" />
25
+ <SliderPrimitive.Thumb className="absolute top-0 -ml-2.5 block h-5 w-5 rounded-full border-2 border-primary bg-background web:ring-offset-background web:transition-colors web:focus-visible:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2" />
22
26
  </SliderPrimitive.Root>
23
27
  );
24
28
  });