@jamsrui/linear-progress 0.0.8 → 0.0.10
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/chunk-EQ52ZKE6.mjs +1 -0
- package/dist/chunk-ESBQSJGC.mjs +1 -0
- package/dist/chunk-IBFPH44X.mjs +1 -0
- package/dist/chunk-PTGMKNAY.mjs +1 -0
- package/dist/chunk-Y27WIICB.mjs +1 -0
- package/dist/chunk-YBE2OS2L.mjs +1 -0
- package/dist/index.d.mts +0 -1
- package/dist/index.mjs +1 -1
- package/dist/linear-progress-bar.mjs +1 -1
- package/dist/linear-progress-config.d.mts +0 -1
- package/dist/linear-progress-config.mjs +1 -1
- package/dist/linear-progress-context.d.mts +0 -1
- package/dist/linear-progress-context.mjs +1 -1
- package/dist/linear-progress-track.mjs +1 -1
- package/dist/linear-progress.d.mts +0 -1
- package/dist/linear-progress.mjs +1 -1
- package/dist/styles.d.mts +4 -5
- package/dist/styles.mjs +1 -1
- package/dist/use-linear-progress.d.mts +0 -1
- package/dist/use-linear-progress.mjs +1 -1
- package/package.json +5 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createConfigContext as r}from"@jamsrui/utils";var[e,s]=r({displayName:"LinearProgressConfig"});export{e as a,s as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as o}from"./chunk-PTGMKNAY.mjs";import{motion as t}from"motion/react";import{jsx as s}from"react/jsx-runtime";var a=r=>{let{getBarProps:e}=o();return s(t.div,{...e(r),...r})};export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n}from"./chunk-ESBQSJGC.mjs";import{b as t}from"./chunk-EQ52ZKE6.mjs";import{a as s}from"./chunk-PTGMKNAY.mjs";import{a as i}from"./chunk-Y27WIICB.mjs";import{useRenderElement as c}from"@jamsrui/hooks";import{mergeConfigProps as f}from"@jamsrui/utils";import{Fragment as L,jsx as r}from"react/jsx-runtime";var v=p=>{let e=t(),m=f(e,e,p),o=i(m),{getRootProps:g}=o,P=r(L,{children:r(n,{})}),a=c("div",{props:[g({}),{children:P}]});return r(s,{value:o,children:a})};export{v as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createContext as r,use as s}from"react";var t=r(null),n=()=>{let e=s(t);if(!e)throw new Error("useLinearProgressContext must be used within a LinearProgress");return e};export{t as a,n as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./chunk-YBE2OS2L.mjs";import{useCallback as P,useMemo as N}from"react";import{cn as l,dataAttrDev as c,mapPropsVariants as d}from"@jamsrui/utils";var y=g=>{let[L,i]=d(g,t.variantKeys),s=t(i),{progress:n=0,classNames:e,...r}=L,a=i.isIntermediate??!0,o=a?n||50:Math.min(n,100),p=P(()=>({"data-slot":c("root"),...r,className:s.track({className:l(e?.track,r.className)})}),[e?.track,r,s]),m=P(()=>({"data-slot":c("bar"),className:s.bar({className:l(e?.bar,r.className)}),initial:{width:a?`${o}%`:0},animate:{width:`${o}%`}}),[e?.bar,r.className,a,o,s]);return N(()=>({getRootProps:p,getBarProps:m}),[m,p])};export{y as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{tv as r}from"@jamsrui/utils";var e=r({slots:{track:"w-full relative overflow-hidden rounded-full",bar:"rounded-full absolute"},variants:{color:{primary:{bar:"bg-primary",track:"bg-primary/10"},error:{bar:"bg-danger",track:"bg-danger/10"},success:{bar:"bg-success",track:"bg-success/10"},secondary:{bar:"bg-secondary",track:"bg-secondary/10"},warning:{bar:"bg-warning",track:"bg-warning/10"}},size:{sm:{track:"h-[3px]",bar:"h-[3px]"},md:{track:"h-1.5",bar:"h-1.5 "},lg:{track:"h-2",bar:"h-2 "}},isIntermediate:{true:{bar:"animate-progress"}}},defaultVariants:{size:"sm",color:"primary",isIntermediate:!0}});export{e as a};
|
package/dist/index.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{
|
|
1
|
+
"use client";import{a as o}from"./chunk-IBFPH44X.mjs";import"./chunk-ESBQSJGC.mjs";import{a as r,b as e}from"./chunk-EQ52ZKE6.mjs";import"./chunk-PTGMKNAY.mjs";import"./chunk-Y27WIICB.mjs";import"./chunk-YBE2OS2L.mjs";export{o as LinearProgress,r as LinearProgressConfig,e as useLinearProgressConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a}from"./chunk-ESBQSJGC.mjs";import"./chunk-PTGMKNAY.mjs";export{a as LinearProgressBar};
|
|
@@ -5,7 +5,6 @@ import '@jamsrui/utils';
|
|
|
5
5
|
import './linear-progress-bar.mjs';
|
|
6
6
|
import 'motion/react';
|
|
7
7
|
import './styles.mjs';
|
|
8
|
-
import 'tailwind-variants';
|
|
9
8
|
|
|
10
9
|
declare const useLinearProgressConfig: () => LinearProgressConfig.Props;
|
|
11
10
|
declare const LinearProgressConfig: (props: Omit<Partial<LinearProgressConfig.Props>, "children"> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a,b}from"./chunk-EQ52ZKE6.mjs";export{a as LinearProgressConfig,b as useLinearProgressConfig};
|
|
@@ -5,7 +5,6 @@ import '@jamsrui/utils';
|
|
|
5
5
|
import './linear-progress-bar.mjs';
|
|
6
6
|
import 'motion/react';
|
|
7
7
|
import './styles.mjs';
|
|
8
|
-
import 'tailwind-variants';
|
|
9
8
|
|
|
10
9
|
declare const useLinearProgressContext: () => LinearProgressContext.Props;
|
|
11
10
|
declare const LinearProgressContext: react.Context<LinearProgressContext.Props | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a,b}from"./chunk-PTGMKNAY.mjs";export{a as LinearProgressContext,b as useLinearProgressContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRenderElement as e}from"@jamsrui/hooks";
|
|
1
|
+
import{useRenderElement as e}from"@jamsrui/hooks";var n=r=>e("div",{props:r});export{n as LinearProgressTrack};
|
package/dist/linear-progress.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a}from"./chunk-IBFPH44X.mjs";import"./chunk-ESBQSJGC.mjs";import"./chunk-EQ52ZKE6.mjs";import"./chunk-PTGMKNAY.mjs";import"./chunk-Y27WIICB.mjs";import"./chunk-YBE2OS2L.mjs";export{a as LinearProgress};
|
package/dist/styles.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _jamsrui_utils from '@jamsrui/utils';
|
|
2
2
|
import { VariantProps } from '@jamsrui/utils';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
5
|
-
declare const linearProgressVariants: tailwind_variants.TVReturnType<{
|
|
4
|
+
declare const linearProgressVariants: _jamsrui_utils.TVReturnType<{
|
|
6
5
|
color: {
|
|
7
6
|
primary: {
|
|
8
7
|
bar: string;
|
|
@@ -92,7 +91,7 @@ declare const linearProgressVariants: tailwind_variants.TVReturnType<{
|
|
|
92
91
|
}, {
|
|
93
92
|
track: string;
|
|
94
93
|
bar: string;
|
|
95
|
-
},
|
|
94
|
+
}, _jamsrui_utils.TVReturnType<{
|
|
96
95
|
color: {
|
|
97
96
|
primary: {
|
|
98
97
|
bar: string;
|
|
@@ -141,4 +140,4 @@ declare const linearProgressVariants: tailwind_variants.TVReturnType<{
|
|
|
141
140
|
type LinearProgressVariantProps = VariantProps<typeof linearProgressVariants>;
|
|
142
141
|
type LinearProgressSlots = keyof ReturnType<typeof linearProgressVariants>;
|
|
143
142
|
|
|
144
|
-
export { type LinearProgressSlots, type LinearProgressVariantProps, linearProgressVariants
|
|
143
|
+
export { type LinearProgressSlots, type LinearProgressVariantProps, linearProgressVariants };
|
package/dist/styles.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a}from"./chunk-YBE2OS2L.mjs";export{a as linearProgressVariants};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a}from"./chunk-Y27WIICB.mjs";import"./chunk-YBE2OS2L.mjs";export{a as useLinearProgress};
|
package/package.json
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/linear-progress",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"motion": ">=12",
|
|
6
6
|
"react": ">=19"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@jamsrui/hooks": "^0.0.
|
|
10
|
-
"@jamsrui/core": "^0.0.
|
|
11
|
-
"@jamsrui/utils": "^0.0.
|
|
9
|
+
"@jamsrui/hooks": "^0.0.10",
|
|
10
|
+
"@jamsrui/core": "^0.0.9",
|
|
11
|
+
"@jamsrui/utils": "^0.0.10"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
|
-
"import": "./dist/index.mjs"
|
|
17
|
-
"require": "./dist/index.js"
|
|
16
|
+
"import": "./dist/index.mjs"
|
|
18
17
|
}
|
|
19
18
|
},
|
|
20
19
|
"description": "A modern and beautiful Next.js UI components library.",
|