@xjur-ui/react 2.2.0 → 2.2.2
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/CHANGELOG.md +16 -0
- package/dist/{chunk-DT44JTXB.js → chunk-4M3WR2KJ.js} +2 -2
- package/dist/{chunk-DT44JTXB.js.map → chunk-4M3WR2KJ.js.map} +1 -1
- package/dist/{chunk-7HG6Y3VV.js → chunk-BYXTOSM6.js} +2 -2
- package/dist/{chunk-7HG6Y3VV.js.map → chunk-BYXTOSM6.js.map} +1 -1
- package/dist/chunk-DTNZXDCY.js +2 -0
- package/dist/chunk-DTNZXDCY.js.map +1 -0
- package/dist/{chunk-4PTFZTVU.js → chunk-HLWHETF5.js} +2 -2
- package/dist/{chunk-4PTFZTVU.js.map → chunk-HLWHETF5.js.map} +1 -1
- package/dist/{chunk-G6NSC3FL.js → chunk-MTIWFWRN.js} +2 -2
- package/dist/{chunk-G6NSC3FL.js.map → chunk-MTIWFWRN.js.map} +1 -1
- package/dist/{chunk-ASZAHSU5.js → chunk-SLMHDBWO.js} +2 -2
- package/dist/{chunk-ASZAHSU5.js.map → chunk-SLMHDBWO.js.map} +1 -1
- package/dist/{chunk-3H75F4Y2.js → chunk-TQWBQ452.js} +2 -2
- package/dist/chunk-TQWBQ452.js.map +1 -0
- package/dist/{chunk-MQ7YTZBI.js → chunk-TTKENFBF.js} +2 -2
- package/dist/{chunk-MQ7YTZBI.js.map → chunk-TTKENFBF.js.map} +1 -1
- package/dist/components/accordion.d.ts +54 -0
- package/dist/components/accordion.js +2 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/controls/date-picker.d.ts +1 -1
- package/dist/components/controls/date-picker.js +1 -1
- package/dist/components/controls/date-picker.js.map +1 -1
- package/dist/components/controls/input.js +1 -1
- package/dist/components/controls/rating.d.ts +137 -0
- package/dist/components/controls/rating.js +2 -0
- package/dist/components/controls/rating.js.map +1 -0
- package/dist/components/controls/rich-editor.js +1 -1
- package/dist/components/controls/select.d.ts +1 -3
- package/dist/components/controls/select.js +1 -1
- package/dist/components/controls/slider.d.ts +172 -0
- package/dist/components/controls/slider.js +2 -0
- package/dist/components/controls/slider.js.map +1 -0
- package/dist/components/custom/pessoa/index.js +1 -1
- package/dist/components/drag-and-drop/index.js +1 -1
- package/dist/components/full-calendar/calendar-cell.js +1 -1
- package/dist/components/full-calendar/calendar-day-view.js +1 -1
- package/dist/components/full-calendar/calendar-month-view.js +1 -1
- package/dist/components/full-calendar/calendar-toggle-view.js +1 -1
- package/dist/components/full-calendar/calendar-view-renderer.js +1 -1
- package/dist/components/full-calendar/calendar-week-view.js +1 -1
- package/dist/components/full-calendar/index.js +1 -1
- package/dist/components/horizontal-scroll.js +1 -1
- package/dist/components/horizontal-scroll.js.map +1 -1
- package/dist/components/selection-bar.d.ts +1 -1
- package/dist/components/status.d.ts +1 -1
- package/dist/components/steps/index.js +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/components/toast.d.ts +27 -0
- package/dist/components/toast.js +2 -0
- package/dist/components/toast.js.map +1 -0
- package/dist/components/typography.d.ts +1 -1
- package/dist/components/upload.js +1 -1
- package/dist/components/upload.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +19 -13
- package/dist/chunk-2JU3PFV2.js +0 -2
- package/dist/chunk-2JU3PFV2.js.map +0 -1
- package/dist/chunk-3H75F4Y2.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{l as InputAction,k as InputCaption,c as InputContent,i as InputIcon,d as InputLabel,f as InputMask,h as InputNumber,m as InputNumericStepper,b as InputRoot,j as InputSlot,g as InputText,e as InputTrigger,a as input}from'../../chunk-
|
|
1
|
+
export{l as InputAction,k as InputCaption,c as InputContent,i as InputIcon,d as InputLabel,f as InputMask,h as InputNumber,m as InputNumericStepper,b as InputRoot,j as InputSlot,g as InputText,e as InputTrigger,a as input}from'../../chunk-TQWBQ452.js';import'../../chunk-PBR7SFWY.js';import'../../chunk-JGPHBUVM.js';import'../../chunk-2JQVYVAT.js';import'../../chunk-CBFC4QME.js';import'../../chunk-DVDHTP4C.js';//# sourceMappingURL=input.js.map
|
|
2
2
|
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
+
import { ComponentProps } from 'react';
|
|
4
|
+
import { FloatingLabel } from './floating-label.js';
|
|
5
|
+
|
|
6
|
+
declare const rating: tailwind_variants.TVReturnType<{
|
|
7
|
+
state: {
|
|
8
|
+
normal: {
|
|
9
|
+
star: string;
|
|
10
|
+
};
|
|
11
|
+
error: {
|
|
12
|
+
star: string;
|
|
13
|
+
caption: string;
|
|
14
|
+
};
|
|
15
|
+
disabled: {
|
|
16
|
+
star: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
size: {
|
|
20
|
+
sm: {
|
|
21
|
+
star: string;
|
|
22
|
+
};
|
|
23
|
+
md: {
|
|
24
|
+
star: string;
|
|
25
|
+
};
|
|
26
|
+
lg: {
|
|
27
|
+
star: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
wrapper: string;
|
|
32
|
+
root: string;
|
|
33
|
+
star: string;
|
|
34
|
+
caption: string;
|
|
35
|
+
}, undefined, {
|
|
36
|
+
state: {
|
|
37
|
+
normal: {
|
|
38
|
+
star: string;
|
|
39
|
+
};
|
|
40
|
+
error: {
|
|
41
|
+
star: string;
|
|
42
|
+
caption: string;
|
|
43
|
+
};
|
|
44
|
+
disabled: {
|
|
45
|
+
star: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
size: {
|
|
49
|
+
sm: {
|
|
50
|
+
star: string;
|
|
51
|
+
};
|
|
52
|
+
md: {
|
|
53
|
+
star: string;
|
|
54
|
+
};
|
|
55
|
+
lg: {
|
|
56
|
+
star: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
}, {
|
|
60
|
+
wrapper: string;
|
|
61
|
+
root: string;
|
|
62
|
+
star: string;
|
|
63
|
+
caption: string;
|
|
64
|
+
}, tailwind_variants.TVReturnType<{
|
|
65
|
+
state: {
|
|
66
|
+
normal: {
|
|
67
|
+
star: string;
|
|
68
|
+
};
|
|
69
|
+
error: {
|
|
70
|
+
star: string;
|
|
71
|
+
caption: string;
|
|
72
|
+
};
|
|
73
|
+
disabled: {
|
|
74
|
+
star: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
size: {
|
|
78
|
+
sm: {
|
|
79
|
+
star: string;
|
|
80
|
+
};
|
|
81
|
+
md: {
|
|
82
|
+
star: string;
|
|
83
|
+
};
|
|
84
|
+
lg: {
|
|
85
|
+
star: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}, {
|
|
89
|
+
wrapper: string;
|
|
90
|
+
root: string;
|
|
91
|
+
star: string;
|
|
92
|
+
caption: string;
|
|
93
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
94
|
+
interface RatingRootProps {
|
|
95
|
+
value?: number;
|
|
96
|
+
defaultValue?: number;
|
|
97
|
+
onValueChange?: (value: number) => void;
|
|
98
|
+
max?: number;
|
|
99
|
+
state?: 'normal' | 'error' | 'disabled';
|
|
100
|
+
size?: 'sm' | 'md' | 'lg';
|
|
101
|
+
disabled?: boolean;
|
|
102
|
+
className?: string;
|
|
103
|
+
id?: string;
|
|
104
|
+
children: React.ReactNode;
|
|
105
|
+
}
|
|
106
|
+
declare function RatingRoot({ value: controlledValue, defaultValue, onValueChange: handleValueChange, max, state, size, disabled, className, id, children, ...props }: RatingRootProps): react_jsx_runtime.JSX.Element;
|
|
107
|
+
interface RatingTrackProps {
|
|
108
|
+
className?: string;
|
|
109
|
+
}
|
|
110
|
+
declare function RatingTrack({ className }: RatingTrackProps): react_jsx_runtime.JSX.Element;
|
|
111
|
+
interface RatingStarProps {
|
|
112
|
+
value: number;
|
|
113
|
+
className?: string;
|
|
114
|
+
}
|
|
115
|
+
declare function RatingStar({ value, className }: RatingStarProps): react_jsx_runtime.JSX.Element;
|
|
116
|
+
type RatingLabelProps = ComponentProps<typeof FloatingLabel>;
|
|
117
|
+
declare function RatingLabel(props: RatingLabelProps): react_jsx_runtime.JSX.Element;
|
|
118
|
+
interface RatingCaptionProps extends ComponentProps<'p'> {
|
|
119
|
+
className?: string;
|
|
120
|
+
}
|
|
121
|
+
declare function RatingCaption({ className, ...props }: RatingCaptionProps): react_jsx_runtime.JSX.Element;
|
|
122
|
+
interface RatingProps {
|
|
123
|
+
value?: number;
|
|
124
|
+
defaultValue?: number;
|
|
125
|
+
onValueChange?: (value: number) => void;
|
|
126
|
+
max?: number;
|
|
127
|
+
state?: 'normal' | 'error' | 'disabled';
|
|
128
|
+
size?: 'sm' | 'md' | 'lg';
|
|
129
|
+
label?: string;
|
|
130
|
+
caption?: string;
|
|
131
|
+
className?: string;
|
|
132
|
+
disabled?: boolean;
|
|
133
|
+
id?: string;
|
|
134
|
+
}
|
|
135
|
+
declare function Rating({ value, defaultValue, onValueChange: handleValueChange, max, state, size, label, caption, className, disabled, id, ...props }: RatingProps): react_jsx_runtime.JSX.Element;
|
|
136
|
+
|
|
137
|
+
export { Rating, RatingCaption, type RatingCaptionProps, RatingLabel, type RatingLabelProps, type RatingProps, RatingRoot, type RatingRootProps, RatingStar, type RatingStarProps, RatingTrack, type RatingTrackProps, rating };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$1}from'../../chunk-JGPHBUVM.js';import {b,a}from'../../chunk-2JQVYVAT.js';import {b as b$1}from'../../chunk-DVDHTP4C.js';import {tv}from'@xjur-ui/util';import {createContext,useState,useContext}from'react';import {jsx,jsxs}from'react/jsx-runtime';var F=tv({slots:{wrapper:"group flex w-full flex-col gap-small-2x",root:"relative flex w-full items-center gap-small-1x",star:"cursor-pointer transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-orange-500 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",caption:"!text-size-body-sm font-normal"},variants:{state:{normal:{star:"text-neutral-border hover:text-orange-400 focus-visible:ring-orange-500"},error:{star:"text-danger-idle hover:text-danger-idle focus-visible:ring-danger-idle",caption:"text-danger-label-idle"},disabled:{star:"text-neutral-border opacity-50"}},size:{sm:{star:"text-size-body-sm"},md:{star:"text-size-body-lg"},lg:{star:"text-size-heading-sm"}}}}),{wrapper:L,root:k,star:T,caption:$}=F(),P=createContext(null);function c(){let e=useContext(P);if(!e)throw new Error("Rating components must be used within a RatingRoot");return e}function A({value:e,defaultValue:a$1=0,onValueChange:n,max:i=5,state:s="normal",size:o="md",disabled:r=false,className:l,id:d,children:u,...g}){let[m,p]=useState(a$1),h=e??m,V=f=>{e===void 0&&p(f),n?.(f);},y=b(),b$1=r?"disabled":y?.state??s;return jsx(a.Provider,{value:{state:b$1},children:jsx(P.Provider,{value:{value:h,max:i,onValueChange:V,state:b$1,size:o,disabled:r},children:jsx("div",{className:L({className:l}),id:d,...g,children:u})})})}function E({className:e}){let{max:a,state:n,size:i}=c();return jsx("div",{className:k({state:n,size:i,className:e}),children:Array.from({length:a},(s,o)=>jsx(I,{value:o+1},o))})}function I({value:e,className:a}){let{value:n,onValueChange:i,state:s,size:o,disabled:r}=c(),l=e<=n;return jsx("button",{"aria-label":`Rate ${e} star${e>1?"s":""}`,className:T({state:s,size:o,className:a}),disabled:r,type:"button",onClick:()=>!r&&i(e),children:jsx(b$1,{filled:l,name:"star"})})}function U(e){return jsx(a$1,{...e})}function _({className:e,...a}){let{state:n}=c();return jsx("p",{className:$({state:n,className:e}),...a})}function K({value:e,defaultValue:a=0,onValueChange:n,max:i=5,state:s="normal",size:o="md",label:r,caption:l,className:d,disabled:u,id:g,...m}){return jsxs(A,{className:d,defaultValue:a,disabled:u,id:g,max:i,size:o,state:u?"disabled":s,value:e,onValueChange:n,...m,children:[r&&jsx(U,{children:r}),jsx(E,{}),l&&jsx(_,{children:l})]})}export{K as Rating,_ as RatingCaption,U as RatingLabel,A as RatingRoot,I as RatingStar,E as RatingTrack,F as rating};//# sourceMappingURL=rating.js.map
|
|
2
|
+
//# sourceMappingURL=rating.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/controls/rating.tsx"],"names":["rating","tv","wrapper","root","star","caption","RatingContext","createContext","useRatingContext","context","useContext","RatingRoot","controlledValue","defaultValue","handleValueChange","max","state","size","disabled","className","id","children","props","uncontrolledValue","setUncontrolledValue","useState","value","onValueChange","newValue","fieldState","useFieldContext","ratingState","jsx","FieldContext","RatingTrack","_","index","RatingStar","currentValue","isFilled","Icon","RatingLabel","FloatingLabel","RatingCaption","Rating","label","jsxs"],"mappings":"sQAOO,IAAMA,CAAAA,CAASC,EAAAA,CAAG,CACvB,KAAA,CAAO,CACL,OAAA,CAAS,yCAAA,CACT,IAAA,CAAM,gDAAA,CACN,IAAA,CAAM,2MACN,OAAA,CAAS,gCACX,CAAA,CACA,QAAA,CAAU,CACR,KAAA,CAAO,CACL,MAAA,CAAQ,CACN,IAAA,CAAM,yEACR,CAAA,CACA,KAAA,CAAO,CACL,KAAM,wEAAA,CACN,OAAA,CAAS,wBACX,CAAA,CACA,QAAA,CAAU,CACR,IAAA,CAAM,gCACR,CACF,CAAA,CACA,IAAA,CAAM,CACJ,EAAA,CAAI,CACF,KAAM,mBACR,CAAA,CACA,EAAA,CAAI,CACF,IAAA,CAAM,mBACR,EACA,EAAA,CAAI,CACF,IAAA,CAAM,sBACR,CACF,CACF,CACF,CAAC,CAAA,CAEK,CAAE,OAAA,CAAAC,CAAAA,CAAS,IAAA,CAAAC,CAAAA,CAAM,IAAA,CAAAC,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAA,CAAIL,CAAAA,EAAO,CAW1CM,EAAgBC,aAAAA,CAAyC,IAAI,EAEnE,SAASC,CAAAA,EAAmB,CAC1B,IAA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,CAAKL,CAAAA,CACL,IAAA,CAAME,CAAAA,CACN,KAAA,CAVgBC,EAAW,UAAA,CAAaF,CAAAA,CAWxC,KAAA,CAAOU,CAAAA,CACP,aAAA,CAAeZ,CAAAA,CACd,GAAGQ,CAAAA,CAEH,QAAA,CAAA,CAAAuB,CAAAA,EAASb,GAAAA,CAACS,CAAAA,CAAA,CAAa,QAAA,CAAAI,EAAM,CAAA,CAC9Bb,GAAAA,CAACE,CAAAA,CAAA,EAAY,CAAA,CACZ7B,CAAAA,EAAW2B,GAAAA,CAACW,CAAAA,CAAA,CAAe,QAAA,CAAAtC,CAAAA,CAAQ,CAAA,CAAA,CACtC,CAEJ","file":"rating.js","sourcesContent":["import { tv } from '@xjur-ui/util'\nimport type { ComponentProps } from 'react'\nimport { createContext, useContext, useState } from 'react'\nimport { Icon } from '../icon'\nimport { FieldContext, useFieldContext } from './context/field.context'\nimport { FloatingLabel } from './floating-label'\n\nexport const rating = tv({\n slots: {\n wrapper: 'group flex w-full flex-col gap-small-2x',\n root: 'relative flex w-full items-center gap-small-1x',\n star: 'cursor-pointer transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-orange-500 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',\n caption: '!text-size-body-sm font-normal'\n },\n variants: {\n state: {\n normal: {\n star: 'text-neutral-border hover:text-orange-400 focus-visible:ring-orange-500'\n },\n error: {\n star: 'text-danger-idle hover:text-danger-idle focus-visible:ring-danger-idle',\n caption: 'text-danger-label-idle'\n },\n disabled: {\n star: 'text-neutral-border opacity-50'\n }\n },\n size: {\n sm: {\n star: 'text-size-body-sm'\n },\n md: {\n star: 'text-size-body-lg'\n },\n lg: {\n star: 'text-size-heading-sm'\n }\n }\n }\n})\n\nconst { wrapper, root, star, caption } = rating()\n\ninterface RatingContextValue {\n value: number\n max: number\n onValueChange: (value: number) => void\n state: 'normal' | 'error' | 'disabled'\n size: 'sm' | 'md' | 'lg'\n disabled: boolean\n}\n\nconst RatingContext = createContext<RatingContextValue | null>(null)\n\nfunction useRatingContext() {\n const context = useContext(RatingContext)\n if (!context) {\n throw new Error('Rating components must be used within a RatingRoot')\n }\n return context\n}\n\nexport interface RatingRootProps {\n value?: number\n defaultValue?: number\n onValueChange?: (value: number) => void\n max?: number\n state?: 'normal' | 'error' | 'disabled'\n size?: 'sm' | 'md' | 'lg'\n disabled?: boolean\n className?: string\n id?: string\n children: React.ReactNode\n}\n\nexport function RatingRoot({\n value: controlledValue,\n defaultValue = 0,\n onValueChange: handleValueChange,\n max = 5,\n state = 'normal',\n size = 'md',\n disabled = false,\n className,\n id,\n children,\n ...props\n}: RatingRootProps) {\n const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue)\n const value = controlledValue ?? uncontrolledValue\n\n const onValueChange = (newValue: number) => {\n if (controlledValue === undefined) {\n setUncontrolledValue(newValue)\n }\n handleValueChange?.(newValue)\n }\n\n const fieldState = useFieldContext()\n const ratingState = disabled ? 'disabled' : (fieldState?.state ?? state)\n\n return (\n <FieldContext.Provider value={{ state: ratingState }}>\n <RatingContext.Provider\n value={{\n value,\n max,\n onValueChange,\n state: ratingState,\n size,\n disabled\n }}\n >\n <div className={wrapper({ className })} id={id} {...props}>\n {children}\n </div>\n </RatingContext.Provider>\n </FieldContext.Provider>\n )\n}\n\nexport interface RatingTrackProps {\n className?: string\n}\n\nexport function RatingTrack({ className }: RatingTrackProps) {\n const { max, state, size } = useRatingContext()\n\n return (\n <div className={root({ state, size, className })}>\n {Array.from({ length: max }, (_, index) => (\n <RatingStar key={index} value={index + 1} />\n ))}\n </div>\n )\n}\n\nexport interface RatingStarProps {\n value: number\n className?: string\n}\n\nexport function RatingStar({ value, className }: RatingStarProps) {\n const {\n value: currentValue,\n onValueChange,\n state,\n size,\n disabled\n } = useRatingContext()\n const isFilled = value <= currentValue\n\n return (\n <button\n aria-label={`Rate ${value} star${value > 1 ? 's' : ''}`}\n className={star({ state, size, className })}\n disabled={disabled}\n type=\"button\"\n onClick={() => !disabled && onValueChange(value)}\n >\n <Icon filled={isFilled} name=\"star\" />\n </button>\n )\n}\n\nexport type RatingLabelProps = ComponentProps<typeof FloatingLabel>\n\nexport function RatingLabel(props: RatingLabelProps) {\n return <FloatingLabel {...props} />\n}\n\nexport interface RatingCaptionProps extends ComponentProps<'p'> {\n className?: string\n}\n\nexport function RatingCaption({ className, ...props }: RatingCaptionProps) {\n const { state } = useRatingContext()\n return <p className={caption({ state, className })} {...props} />\n}\n\nexport interface RatingProps {\n value?: number\n defaultValue?: number\n onValueChange?: (value: number) => void\n max?: number\n state?: 'normal' | 'error' | 'disabled'\n size?: 'sm' | 'md' | 'lg'\n label?: string\n caption?: string\n className?: string\n disabled?: boolean\n id?: string\n}\n\nexport function Rating({\n value,\n defaultValue = 0,\n onValueChange: handleValueChange,\n max = 5,\n state = 'normal',\n size = 'md',\n label,\n caption,\n className,\n disabled,\n id,\n ...props\n}: RatingProps) {\n const ratingState = disabled ? 'disabled' : state\n\n return (\n <RatingRoot\n className={className}\n defaultValue={defaultValue}\n disabled={disabled}\n id={id}\n max={max}\n size={size}\n state={ratingState}\n value={value}\n onValueChange={handleValueChange}\n {...props}\n >\n {label && <RatingLabel>{label}</RatingLabel>}\n <RatingTrack />\n {caption && <RatingCaption>{caption}</RatingCaption>}\n </RatingRoot>\n )\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {b as b$1,c as c$1,d}from'../../chunk-NELCN6E2.js';import {a
|
|
1
|
+
import {a}from'../../chunk-KS6WGBHQ.js';import {b as b$1,c as c$1,d}from'../../chunk-NELCN6E2.js';import {a as a$2,c as c$2,d as d$1,e,h,i}from'../../chunk-6PHXO2YA.js';import'../../chunk-CBFC4QME.js';import'../../chunk-YOLTIAFT.js';import {b}from'../../chunk-M6ZI7M3R.js';import {b as b$2}from'../../chunk-DVDHTP4C.js';import {a as a$1}from'../../chunk-EIG6CBTQ.js';import {cx}from'@xjur-ui/util';import {useMemo,useCallback,useState}from'react';import {useEditor,EditorContext,useCurrentEditor,EditorContent,useEditorState}from'@tiptap/react';export{useCurrentEditor as useRichTextEditor,useEditorState as useRichTextEditorState}from'@tiptap/react';import {StarterKit}from'@tiptap/starter-kit';import {Heading}from'@tiptap/extension-heading';import {Placeholder}from'@tiptap/extension-placeholder';import {jsx,jsxs}from'react/jsx-runtime';var c={1:"text-size-body-md",2:"text-size-title-lg",3:"text-size-headline-lg"};function X({className:t,editorOptions:n,...r}){let i=useEditor({...n,extensions:[StarterKit.configure({bulletList:{HTMLAttributes:{class:"list-disc list-outside pl-large-1x"}},orderedList:{HTMLAttributes:{class:"list-decimal list-outside pl-large-1x"}},heading:false}),Placeholder.configure({placeholder:({node:o,editor:s})=>o.type.name==="paragraph"&&s.isEmpty?"Digite aqui\u2026":"",showOnlyWhenEditable:true,includeChildren:false,emptyNodeClass:"before:content-[attr(data-placeholder)] before:absolute before:top-0 before:left-0 before:text-neutral-placeholder first:before:float-left first:before:content-[attr(data-placeholder)] first:before:pointer-events-none"}),Heading.configure({levels:[1,2,3]}).extend({renderHTML({node:o,HTMLAttributes:s}){let u=o.attrs.level??1;return ["h",{...s,class:c[u]},0]}}),...n?.extensions??[]]}),a=useMemo(()=>({editor:i}),[i]);return jsx(EditorContext.Provider,{value:a,children:jsx("div",{className:cx("gap-small flex w-full flex-col",t),"data-slot":"text-area-root",...r})})}function j({className:t,...n}){return jsx("div",{className:cx("bg-layer-2-hover py-small_1x-alt px-small rounded-small-1x min-h-[116px] w-full border border-transparent","hover:border-border-layer-2 transition-colors duration-200","[&_ul_ul]:list-[circle]","[&_ul_ul_ul]:list-[square]","[&_ol_ol]:list-[lower-alpha]","[&_ol_ol_ol]:list-[lower-roman]","gap-small flex flex-col overflow-x-hidden overflow-y-auto",t),"data-slot":"text-area-content",...n})}function ee({className:t,...n}){return jsx("p",{...n,className:cx("text-size-body-sm text-neutral-dark font-normal",t),"data-slot":"text-area-caption"})}function te({className:t,...n}){let{editor:r}=useCurrentEditor();return jsx(EditorContent,{className:cx("text-size-body-md text-neutral-dark max-h-[116px] *:h-full *:w-full *:outline-0",t),editor:r,...n})}function oe({className:t,...n}){return jsx("div",{className:cx("h-large-4x gap-small-1x h-large-6px scrollbar-hide flex flex-nowrap items-center overflow-x-auto overflow-y-hidden",t),"data-slot":"text-area-toolbar",...n})}function $({appearance:t="ghost",variant:n="secondary",onMouseDown:r,onPointerDown:i,...a}){return jsx(b,{appearance:t,size:"icon_md",tabIndex:-1,type:"button",variant:n,onMouseDown:o=>{o.preventDefault(),r?.(o);},onPointerDown:o=>{o.preventDefault(),i?.(o);},...a})}function re({name:t,...n}){let{editor:r}=useCurrentEditor(),{shortcut:i}=a(),a$2=useEditorState({editor:r,selector:d=>d.editor?.isActive(t)??false}),o=useMemo(()=>new Map([["bold","format_bold"],["italic","format_italic"],["underline","format_underlined"],["strike","format_strikethrough"],["bulletList","format_list_bulleted"],["orderedList","format_list_numbered"],["undo","undo"],["redo","redo"]]).get(t),[t]),s=useMemo(()=>new Map([["bold",`Negrito (${i} + B)`],["italic",`It\xE1lico (${i} + I)`],["underline",`Sublinhado (${i} + U)`],["strike",`Tachado (${i} + S)`],["bulletList",`Lista (${i} + Shift + 7)`],["orderedList",`Lista numerada (${i} + Shift + 8)`],["undo",`Desfazer (${i} + Z)`],["redo",`Refazer (${i} + Y)`]]).get(t),[t,i]),u=useCallback(()=>{if(!r)throw new Error("Editor not found");new Map([["bold",()=>r.chain().focus().toggleBold().run()],["italic",()=>r.chain().focus().toggleItalic().run()],["underline",()=>r.chain().focus().toggleUnderline().run()],["strike",()=>r.chain().focus().toggleStrike().run()],["bulletList",()=>r.chain().focus().toggleBulletList().run()],["orderedList",()=>r.chain().focus().toggleOrderedList().run()],["undo",()=>r.chain().focus().undo().run()],["redo",()=>r.chain().focus().redo().run()]]).get(t)?.();},[r,t]);return jsxs(b$1,{children:[jsx(c$1,{asChild:true,children:jsx($,{onClick:u,...a$2&&{appearance:"solid"},...n,children:o&&jsx(b$2,{className:"text-icon-neutral-3",name:o})})}),jsx(d,{children:s&&jsx(a$1,{size:"sm",children:s})})]})}function ne({appearance:t="ghost",variant:n="secondary",...r}){let[i$1,a]=useState(false),{editor:o}=useCurrentEditor(),s=useEditorState({editor:o,selector:l=>l.editor?.isActive("heading")??false}),u=useCallback(l=>{if(!o)throw new Error("Editor not found");return o.isActive("heading",{level:l})},[o]),d$2=useCallback(l=>{if(!o)throw new Error("Editor not found");a(false),setTimeout(()=>{o.chain().focus().toggleHeading({level:l}).run();},0);},[o]),P=[{level:1,label:"Normal",className:c[1]},{level:2,label:"Grande",className:c[2]},{level:3,label:"Enorme",className:c[3]}];return jsxs(a$2,{open:i$1,onOpenChange:l=>a(l),children:[jsx(c$2,{asChild:true,children:jsx(b,{appearance:s?"solid":t,size:"icon_md",tabIndex:-1,type:"button",variant:n,...r,children:jsxs(b$1,{children:[jsx(c$1,{asChild:true,children:jsx(b$2,{className:"text-icon-neutral-3",name:"format_size"})}),jsx(d,{children:jsx(a$1,{size:"sm",children:"Tamanho"})})]})})}),jsx(d$1,{children:jsx(e,{children:P.map(l=>jsx(h,{isActive:u(l.level),onPointerDown:()=>d$2(l.level),children:jsx(i,{className:l.className,children:l.label})},l.level))})})]})}export{ne as HeadingButton,te as RichEditorAreaText,ee as RichEditorCaption,j as RichEditorContent,X as RichEditorRoot,oe as RichEditorToolbar,re as ToggleButton,$ as ToolbarButton};//# sourceMappingURL=rich-editor.js.map
|
|
2
2
|
//# sourceMappingURL=rich-editor.js.map
|
|
@@ -6,7 +6,6 @@ import { I as IconType } from '../../icons-C-hGI45d.js';
|
|
|
6
6
|
import { Typography } from '../typography.js';
|
|
7
7
|
import { ListContent, ListItem, ListHeader, ListHeaderTitle } from '../list.js';
|
|
8
8
|
import { FieldContextValue } from './context/field.context.js';
|
|
9
|
-
import { FloatingLabel } from './floating-label.js';
|
|
10
9
|
import 'class-variance-authority/types';
|
|
11
10
|
import '@xjur-ui/util';
|
|
12
11
|
import '@react-input/mask';
|
|
@@ -78,7 +77,6 @@ declare function SelectTrigger({ className, ...props }: ComponentProps<typeof Ra
|
|
|
78
77
|
declare function SelectIcon({ className, name, ...props }: ComponentProps<'div'> & {
|
|
79
78
|
name: IconType;
|
|
80
79
|
}): react_jsx_runtime.JSX.Element;
|
|
81
|
-
declare function SelectLabel(props: ComponentProps<typeof FloatingLabel>): react_jsx_runtime.JSX.Element;
|
|
82
80
|
declare function SelectValue({ className, displayValue, value, placeholder, ...props }: ComponentProps<'input'> & {
|
|
83
81
|
displayValue?: string;
|
|
84
82
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -92,4 +90,4 @@ declare function SelectOptionText(props: ComponentProps<typeof Typography>): rea
|
|
|
92
90
|
declare function SelectHeader(props: ComponentProps<typeof ListHeader>): react_jsx_runtime.JSX.Element;
|
|
93
91
|
declare function SelectHeaderTitle(props: ComponentProps<typeof ListHeaderTitle>): react_jsx_runtime.JSX.Element;
|
|
94
92
|
|
|
95
|
-
export { SelectCaption, SelectContent, SelectHeader, SelectHeaderTitle, SelectIcon,
|
|
93
|
+
export { SelectCaption, SelectContent, SelectHeader, SelectHeaderTitle, SelectIcon, SelectMultiValue, SelectOption, SelectOptionText, SelectOptions, SelectRoot, SelectSlot, SelectTrigger, SelectValue, select };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{h as SelectCaption,g as SelectContent,m as SelectHeader,n as SelectHeaderTitle,d as SelectIcon,f as SelectMultiValue,k as SelectOption,l as SelectOptionText,j as SelectOptions,b as SelectRoot,i as SelectSlot,c as SelectTrigger,e as SelectValue,a as select}from'../../chunk-DTNZXDCY.js';import'../../chunk-JGPHBUVM.js';import'../../chunk-2JQVYVAT.js';import'../../chunk-YOLTIAFT.js';import'../../chunk-DVDHTP4C.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=select.js.map
|
|
2
2
|
//# sourceMappingURL=select.js.map
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
4
|
+
import { ComponentProps } from 'react';
|
|
5
|
+
import { FloatingLabel } from './floating-label.js';
|
|
6
|
+
|
|
7
|
+
declare const slider: tailwind_variants.TVReturnType<{
|
|
8
|
+
orientation: {
|
|
9
|
+
horizontal: {
|
|
10
|
+
root: string;
|
|
11
|
+
track: string;
|
|
12
|
+
range: string;
|
|
13
|
+
thumb: string;
|
|
14
|
+
};
|
|
15
|
+
vertical: {
|
|
16
|
+
root: string;
|
|
17
|
+
track: string;
|
|
18
|
+
range: string;
|
|
19
|
+
thumb: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
state: {
|
|
23
|
+
normal: {
|
|
24
|
+
track: string;
|
|
25
|
+
range: string;
|
|
26
|
+
thumb: string;
|
|
27
|
+
};
|
|
28
|
+
error: {
|
|
29
|
+
track: string;
|
|
30
|
+
range: string;
|
|
31
|
+
thumb: string;
|
|
32
|
+
caption: string;
|
|
33
|
+
};
|
|
34
|
+
disabled: {
|
|
35
|
+
track: string;
|
|
36
|
+
range: string;
|
|
37
|
+
thumb: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}, {
|
|
41
|
+
wrapper: string;
|
|
42
|
+
root: string;
|
|
43
|
+
track: string;
|
|
44
|
+
range: string;
|
|
45
|
+
thumb: string;
|
|
46
|
+
input: string;
|
|
47
|
+
caption: string;
|
|
48
|
+
}, undefined, {
|
|
49
|
+
orientation: {
|
|
50
|
+
horizontal: {
|
|
51
|
+
root: string;
|
|
52
|
+
track: string;
|
|
53
|
+
range: string;
|
|
54
|
+
thumb: string;
|
|
55
|
+
};
|
|
56
|
+
vertical: {
|
|
57
|
+
root: string;
|
|
58
|
+
track: string;
|
|
59
|
+
range: string;
|
|
60
|
+
thumb: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
state: {
|
|
64
|
+
normal: {
|
|
65
|
+
track: string;
|
|
66
|
+
range: string;
|
|
67
|
+
thumb: string;
|
|
68
|
+
};
|
|
69
|
+
error: {
|
|
70
|
+
track: string;
|
|
71
|
+
range: string;
|
|
72
|
+
thumb: string;
|
|
73
|
+
caption: string;
|
|
74
|
+
};
|
|
75
|
+
disabled: {
|
|
76
|
+
track: string;
|
|
77
|
+
range: string;
|
|
78
|
+
thumb: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
}, {
|
|
82
|
+
wrapper: string;
|
|
83
|
+
root: string;
|
|
84
|
+
track: string;
|
|
85
|
+
range: string;
|
|
86
|
+
thumb: string;
|
|
87
|
+
input: string;
|
|
88
|
+
caption: string;
|
|
89
|
+
}, tailwind_variants.TVReturnType<{
|
|
90
|
+
orientation: {
|
|
91
|
+
horizontal: {
|
|
92
|
+
root: string;
|
|
93
|
+
track: string;
|
|
94
|
+
range: string;
|
|
95
|
+
thumb: string;
|
|
96
|
+
};
|
|
97
|
+
vertical: {
|
|
98
|
+
root: string;
|
|
99
|
+
track: string;
|
|
100
|
+
range: string;
|
|
101
|
+
thumb: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
state: {
|
|
105
|
+
normal: {
|
|
106
|
+
track: string;
|
|
107
|
+
range: string;
|
|
108
|
+
thumb: string;
|
|
109
|
+
};
|
|
110
|
+
error: {
|
|
111
|
+
track: string;
|
|
112
|
+
range: string;
|
|
113
|
+
thumb: string;
|
|
114
|
+
caption: string;
|
|
115
|
+
};
|
|
116
|
+
disabled: {
|
|
117
|
+
track: string;
|
|
118
|
+
range: string;
|
|
119
|
+
thumb: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
}, {
|
|
123
|
+
wrapper: string;
|
|
124
|
+
root: string;
|
|
125
|
+
track: string;
|
|
126
|
+
range: string;
|
|
127
|
+
thumb: string;
|
|
128
|
+
input: string;
|
|
129
|
+
caption: string;
|
|
130
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
131
|
+
interface SliderRootProps extends ComponentProps<typeof SliderPrimitive.Root> {
|
|
132
|
+
state?: 'normal' | 'error' | 'disabled';
|
|
133
|
+
orientation?: 'horizontal' | 'vertical';
|
|
134
|
+
className?: string;
|
|
135
|
+
}
|
|
136
|
+
declare function SliderRoot({ className, state, orientation, ...props }: SliderRootProps): react_jsx_runtime.JSX.Element;
|
|
137
|
+
interface SliderTrackProps extends ComponentProps<typeof SliderPrimitive.Track> {
|
|
138
|
+
className?: string;
|
|
139
|
+
}
|
|
140
|
+
declare function SliderTrack({ className, ...props }: SliderTrackProps): react_jsx_runtime.JSX.Element;
|
|
141
|
+
interface SliderRangeProps extends ComponentProps<typeof SliderPrimitive.Range> {
|
|
142
|
+
className?: string;
|
|
143
|
+
}
|
|
144
|
+
declare function SliderRange({ className, ...props }: SliderRangeProps): react_jsx_runtime.JSX.Element;
|
|
145
|
+
interface SliderThumbProps extends ComponentProps<typeof SliderPrimitive.Thumb> {
|
|
146
|
+
className?: string;
|
|
147
|
+
}
|
|
148
|
+
declare function SliderThumb({ className, ...props }: SliderThumbProps): react_jsx_runtime.JSX.Element;
|
|
149
|
+
type SliderLabelProps = ComponentProps<typeof FloatingLabel>;
|
|
150
|
+
declare function SliderLabel(props: SliderLabelProps): react_jsx_runtime.JSX.Element;
|
|
151
|
+
interface SliderCaptionProps extends ComponentProps<'p'> {
|
|
152
|
+
className?: string;
|
|
153
|
+
}
|
|
154
|
+
declare function SliderCaption({ className, ...props }: SliderCaptionProps): react_jsx_runtime.JSX.Element;
|
|
155
|
+
interface SliderProps {
|
|
156
|
+
value?: number[];
|
|
157
|
+
defaultValue?: number[];
|
|
158
|
+
onValueChange?: (value: number[]) => void;
|
|
159
|
+
min?: number;
|
|
160
|
+
max?: number;
|
|
161
|
+
step?: number;
|
|
162
|
+
orientation?: 'horizontal' | 'vertical';
|
|
163
|
+
state?: 'normal' | 'error' | 'disabled';
|
|
164
|
+
label?: string;
|
|
165
|
+
caption?: string;
|
|
166
|
+
className?: string;
|
|
167
|
+
disabled?: boolean;
|
|
168
|
+
id?: string;
|
|
169
|
+
}
|
|
170
|
+
declare function Slider({ value, defaultValue, onValueChange: handleValueChange, min, max, step, orientation, state, label, caption, className, disabled, id, ...props }: SliderProps): react_jsx_runtime.JSX.Element;
|
|
171
|
+
|
|
172
|
+
export { Slider, SliderCaption, type SliderCaptionProps, SliderLabel, type SliderLabelProps, type SliderProps, SliderRange, type SliderRangeProps, SliderRoot, type SliderRootProps, SliderThumb, type SliderThumbProps, SliderTrack, type SliderTrackProps, slider };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$1}from'../../chunk-JGPHBUVM.js';import {a,b}from'../../chunk-2JQVYVAT.js';import*as i from'@radix-ui/react-slider';import {tv}from'@xjur-ui/util';import {jsx,jsxs}from'react/jsx-runtime';var x=tv({slots:{wrapper:"group flex w-full flex-col gap-small-2x",root:"relative flex w-full touch-none select-none items-center",track:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",range:"absolute h-full bg-orange-500",thumb:"block h-5 w-5 rounded-full border-2 border-orange-500 bg-white shadow-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-orange-500 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",input:"sr-only",caption:"!text-size-body-sm font-normal"},variants:{orientation:{horizontal:{root:"flex-row",track:"h-2 w-full",range:"h-full",thumb:"h-5 w-5"},vertical:{root:"flex-col h-64 w-6",track:"w-2 h-full",range:"w-full",thumb:"h-5 w-5"}},state:{normal:{track:"bg-gray-200",range:"bg-orange-500",thumb:"border-orange-500 bg-white focus-visible:ring-orange-500"},error:{track:"bg-danger-idle",range:"bg-danger-idle",thumb:"border-danger-idle bg-white focus-visible:ring-danger-idle",caption:"text-danger-label-idle"},disabled:{track:"bg-gray-200 opacity-50",range:"bg-orange-500 opacity-50",thumb:"border-orange-500 bg-white opacity-50"}}}}),{wrapper:P,root:w,track:C,range:y,thumb:k,caption:N}=x();function R({className:e,state:r="normal",orientation:t="horizontal",...a$1}){return jsx(a.Provider,{value:{state:r},children:jsx("div",{className:P({className:e}),children:jsx(i.Root,{className:w({orientation:t,state:r,className:e}),disabled:r==="disabled",orientation:t,...a$1})})})}function T({className:e,...r}){let{state:t}=b();return jsx(i.Track,{className:C({state:t,className:e}),...r})}function z({className:e,...r}){let{state:t}=b();return jsx(i.Range,{className:y({state:t,className:e}),...r})}function L({className:e,...r}){let{state:t}=b();return jsx(i.Thumb,{className:k({state:t,className:e}),...r})}function F(e){return jsx(a$1,{...e})}function V({className:e,...r}){let{state:t}=b();return jsx("p",{className:N({state:t,className:e}),...r})}function G({value:e,defaultValue:r=[0],onValueChange:t,min:a=0,max:m=100,step:c=1,orientation:u="horizontal",state:g="normal",label:l,caption:s,className:b,disabled:f,id:h,...S}){return jsxs(R,{className:b,defaultValue:r,id:h,max:m,min:a,orientation:u,state:f?"disabled":g,step:c,value:e,onValueChange:t,...S,children:[l&&jsx(F,{children:l}),jsx(T,{children:jsx(z,{})}),jsx(L,{}),s&&jsx(V,{children:s})]})}export{G as Slider,V as SliderCaption,F as SliderLabel,z as SliderRange,R as SliderRoot,L as SliderThumb,T as SliderTrack,x as slider};//# sourceMappingURL=slider.js.map
|
|
2
|
+
//# sourceMappingURL=slider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/controls/slider.tsx"],"names":["slider","tv","wrapper","root","track","range","thumb","caption","SliderRoot","className","state","orientation","props","jsx","FieldContext","SliderTrack","useFieldContext","SliderRange","SliderThumb","SliderLabel","FloatingLabel","SliderCaption","Slider","value","defaultValue","handleValueChange","min","max","step","label","disabled","id","jsxs"],"mappings":"0MAMO,IAAMA,CAAAA,CAASC,GAAG,CACvB,KAAA,CAAO,CACL,OAAA,CAAS,yCAAA,CACT,IAAA,CAAM,0DAAA,CACN,KAAA,CAAO,mEAAA,CACP,MAAO,+BAAA,CACP,KAAA,CACE,wPACF,KAAA,CAAO,SAAA,CACP,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cesContent":["import * as SliderPrimitive from '@radix-ui/react-slider'\nimport { tv } from '@xjur-ui/util'\nimport type { ComponentProps } from 'react'\nimport { FieldContext, useFieldContext } from './context/field.context'\nimport { FloatingLabel } from './floating-label'\n\nexport const slider = tv({\n slots: {\n wrapper: 'group flex w-full flex-col gap-small-2x',\n root: 'relative flex w-full touch-none select-none items-center',\n track: 'relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200',\n range: 'absolute h-full bg-orange-500',\n thumb:\n 'block h-5 w-5 rounded-full border-2 border-orange-500 bg-white shadow-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-orange-500 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',\n input: 'sr-only',\n caption: '!text-size-body-sm font-normal'\n },\n variants: {\n orientation: {\n horizontal: {\n root: 'flex-row',\n track: 'h-2 w-full',\n range: 'h-full',\n thumb: 'h-5 w-5'\n },\n vertical: {\n root: 'flex-col h-64 w-6',\n track: 'w-2 h-full',\n range: 'w-full',\n thumb: 'h-5 w-5'\n }\n },\n state: {\n normal: {\n track: 'bg-gray-200',\n range: 'bg-orange-500',\n thumb: 'border-orange-500 bg-white focus-visible:ring-orange-500'\n },\n error: {\n track: 'bg-danger-idle',\n range: 'bg-danger-idle',\n thumb: 'border-danger-idle bg-white focus-visible:ring-danger-idle',\n caption: 'text-danger-label-idle'\n },\n disabled: {\n track: 'bg-gray-200 opacity-50',\n range: 'bg-orange-500 opacity-50',\n thumb: 'border-orange-500 bg-white opacity-50'\n }\n }\n }\n})\n\nconst { wrapper, root, track, range, thumb, caption } = slider()\n\nexport interface SliderRootProps\n extends ComponentProps<typeof SliderPrimitive.Root> {\n state?: 'normal' | 'error' | 'disabled'\n orientation?: 'horizontal' | 'vertical'\n className?: string\n}\n\nexport function SliderRoot({\n className,\n state = 'normal',\n orientation = 'horizontal',\n ...props\n}: SliderRootProps) {\n return (\n <FieldContext.Provider value={{ state }}>\n <div className={wrapper({ className })}>\n <SliderPrimitive.Root\n className={root({ orientation, state, className })}\n disabled={state === 'disabled'}\n orientation={orientation}\n {...props}\n />\n </div>\n </FieldContext.Provider>\n )\n}\n\nexport interface SliderTrackProps\n extends ComponentProps<typeof SliderPrimitive.Track> {\n className?: string\n}\n\nexport function SliderTrack({ className, ...props }: SliderTrackProps) {\n const { state } = useFieldContext()\n return (\n <SliderPrimitive.Track className={track({ state, className })} {...props} />\n )\n}\n\nexport interface SliderRangeProps\n extends ComponentProps<typeof SliderPrimitive.Range> {\n className?: string\n}\n\nexport function SliderRange({ className, ...props }: SliderRangeProps) {\n const { state } = useFieldContext()\n return (\n <SliderPrimitive.Range className={range({ state, className })} {...props} />\n )\n}\n\nexport interface SliderThumbProps\n extends ComponentProps<typeof SliderPrimitive.Thumb> {\n className?: string\n}\n\nexport function SliderThumb({ className, ...props }: SliderThumbProps) {\n const { state } = useFieldContext()\n return (\n <SliderPrimitive.Thumb className={thumb({ state, className })} {...props} />\n )\n}\n\nexport type SliderLabelProps = ComponentProps<typeof FloatingLabel>\n\nexport function SliderLabel(props: SliderLabelProps) {\n return <FloatingLabel {...props} />\n}\n\nexport interface SliderCaptionProps extends ComponentProps<'p'> {\n className?: string\n}\n\nexport function SliderCaption({ className, ...props }: SliderCaptionProps) {\n const { state } = useFieldContext()\n return <p className={caption({ state, className })} {...props} />\n}\n\nexport interface SliderProps {\n value?: number[]\n defaultValue?: number[]\n onValueChange?: (value: number[]) => void\n min?: number\n max?: number\n step?: number\n orientation?: 'horizontal' | 'vertical'\n state?: 'normal' | 'error' | 'disabled'\n label?: string\n caption?: string\n className?: string\n disabled?: boolean\n id?: string\n}\n\nexport function Slider({\n value,\n defaultValue = [0],\n onValueChange: handleValueChange,\n min = 0,\n max = 100,\n step = 1,\n orientation = 'horizontal',\n state = 'normal',\n label,\n caption,\n className,\n disabled,\n id,\n ...props\n}: SliderProps) {\n const sliderState = disabled ? 'disabled' : state\n\n return (\n <SliderRoot\n className={className}\n defaultValue={defaultValue}\n id={id}\n max={max}\n min={min}\n orientation={orientation}\n state={sliderState}\n step={step}\n value={value}\n onValueChange={handleValueChange}\n {...props}\n >\n {label && <SliderLabel>{label}</SliderLabel>}\n <SliderTrack>\n <SliderRange />\n </SliderTrack>\n <SliderThumb />\n {caption && <SliderCaption>{caption}</SliderCaption>}\n </SliderRoot>\n )\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as
|
|
1
|
+
export{a as PessoaRoot}from'../../../chunk-SSTXFHNX.js';export{a as PessoaAddButton}from'../../../chunk-OLWYBKQR.js';export{a as PessoaBody}from'../../../chunk-TORICLEW.js';export{a as PessoaCloseButton}from'../../../chunk-JF7JKJES.js';export{a as PessoaContent}from'../../../chunk-VCNKCHFF.js';export{a as PessoaFooter}from'../../../chunk-DOC3XTYC.js';export{a as PessoaHeader}from'../../../chunk-4BGAERSD.js';export{a as PessoaTrigger}from'../../../chunk-7QGN6XFA.js';export{a as PessoaContext,b as PessoaProvider,c as usePessoaContext}from'../../../chunk-WEGFAS5P.js';import'../../../chunk-43DUEHUA.js';import'../../../chunk-M6ZI7M3R.js';import'../../../chunk-DVDHTP4C.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as
|
|
1
|
+
export{a as DragListItem}from'../../chunk-BZDGWC5O.js';export{b as DragHandle}from'../../chunk-F5ZLEQGN.js';export{a as DragList}from'../../chunk-DFXHNK5D.js';export{a as DragRoot}from'../../chunk-WEBAXQID.js';export{arrayMove,useSortable}from'@dnd-kit/sortable';export{DragOverlay,closestCenter,closestCorners,getClientRect,getFirstCollision,pointerWithin,useDndContext,useDndMonitor,useDraggable,useDroppable,useSensor,useSensors}from'@dnd-kit/core';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as CalendarCell}from'../../chunk-
|
|
1
|
+
export{a as CalendarCell}from'../../chunk-TTKENFBF.js';import'../../chunk-OKSGVAQQ.js';import'../../chunk-EXC2XOL6.js';import'../../chunk-SXGSWVMZ.js';import'../../chunk-6PHXO2YA.js';import'../../chunk-CBFC4QME.js';import'../../chunk-YOLTIAFT.js';import'../../chunk-M6ZI7M3R.js';import'../../chunk-DVDHTP4C.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=calendar-cell.js.map
|
|
2
2
|
//# sourceMappingURL=calendar-cell.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as CalendarDayView}from'../../chunk-
|
|
1
|
+
export{a as CalendarDayView}from'../../chunk-SLMHDBWO.js';import'../../chunk-ZVVPUP7V.js';import'../../chunk-MZSV4LNY.js';import'../../chunk-TTKENFBF.js';import'../../chunk-OKSGVAQQ.js';import'../../chunk-EXC2XOL6.js';import'../../chunk-SXGSWVMZ.js';import'../../chunk-6PHXO2YA.js';import'../../chunk-CBFC4QME.js';import'../../chunk-YOLTIAFT.js';import'../../chunk-M6ZI7M3R.js';import'../../chunk-DVDHTP4C.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=calendar-day-view.js.map
|
|
2
2
|
//# sourceMappingURL=calendar-day-view.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as CalendarMonthView}from'../../chunk-
|
|
1
|
+
export{a as CalendarMonthView}from'../../chunk-BYXTOSM6.js';import'../../chunk-TTKENFBF.js';import'../../chunk-OKSGVAQQ.js';import'../../chunk-EXC2XOL6.js';import'../../chunk-SXGSWVMZ.js';import'../../chunk-6PHXO2YA.js';import'../../chunk-CBFC4QME.js';import'../../chunk-YOLTIAFT.js';import'../../chunk-M6ZI7M3R.js';import'../../chunk-DVDHTP4C.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=calendar-month-view.js.map
|
|
2
2
|
//# sourceMappingURL=calendar-month-view.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as CalendarToggleView}from'../../chunk-
|
|
1
|
+
export{a as CalendarToggleView}from'../../chunk-MTIWFWRN.js';import'../../chunk-SXGSWVMZ.js';import'../../chunk-DTNZXDCY.js';import'../../chunk-JGPHBUVM.js';import'../../chunk-2JQVYVAT.js';import'../../chunk-YOLTIAFT.js';import'../../chunk-DVDHTP4C.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=calendar-toggle-view.js.map
|
|
2
2
|
//# sourceMappingURL=calendar-toggle-view.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as CalendarViewRenderer}from'../../chunk-
|
|
1
|
+
export{a as CalendarViewRenderer}from'../../chunk-HLWHETF5.js';import'../../chunk-4M3WR2KJ.js';import'../../chunk-SLMHDBWO.js';import'../../chunk-ZVVPUP7V.js';import'../../chunk-MZSV4LNY.js';import'../../chunk-BYXTOSM6.js';import'../../chunk-TTKENFBF.js';import'../../chunk-OKSGVAQQ.js';import'../../chunk-EXC2XOL6.js';import'../../chunk-SXGSWVMZ.js';import'../../chunk-6PHXO2YA.js';import'../../chunk-CBFC4QME.js';import'../../chunk-YOLTIAFT.js';import'../../chunk-M6ZI7M3R.js';import'../../chunk-DVDHTP4C.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=calendar-view-renderer.js.map
|
|
2
2
|
//# sourceMappingURL=calendar-view-renderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as CalendarWeekView}from'../../chunk-
|
|
1
|
+
export{a as CalendarWeekView}from'../../chunk-4M3WR2KJ.js';import'../../chunk-ZVVPUP7V.js';import'../../chunk-MZSV4LNY.js';import'../../chunk-TTKENFBF.js';import'../../chunk-OKSGVAQQ.js';import'../../chunk-EXC2XOL6.js';import'../../chunk-SXGSWVMZ.js';import'../../chunk-6PHXO2YA.js';import'../../chunk-CBFC4QME.js';import'../../chunk-YOLTIAFT.js';import'../../chunk-M6ZI7M3R.js';import'../../chunk-DVDHTP4C.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=calendar-week-view.js.map
|
|
2
2
|
//# sourceMappingURL=calendar-week-view.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as
|
|
1
|
+
export{a as CalendarTodayButton}from'../../chunk-GKILN5HI.js';export{a as CalendarToggleView}from'../../chunk-MTIWFWRN.js';export{a as CalendarViewRenderer}from'../../chunk-HLWHETF5.js';export{a as CalendarWeekView}from'../../chunk-4M3WR2KJ.js';import'../../chunk-SLMHDBWO.js';import'../../chunk-ZVVPUP7V.js';import'../../chunk-MZSV4LNY.js';export{a as CalendarEvent,c as CalendarEventDescription,d as CalendarEventStatus,b as CalendarEventTitle}from'../../chunk-F4DYKYWJ.js';export{a as CalendarHeader}from'../../chunk-4BGTC333.js';export{a as CalendarMonthView}from'../../chunk-BYXTOSM6.js';import'../../chunk-TTKENFBF.js';import'../../chunk-OKSGVAQQ.js';export{a as CalendarNavigator}from'../../chunk-RGKXZJJS.js';import'../../chunk-EXC2XOL6.js';export{a as CalendarRoot,b as useFullCalendar}from'../../chunk-SXGSWVMZ.js';export{a as CalendarBody}from'../../chunk-J4X5RQTR.js';import'../../chunk-DTNZXDCY.js';import'../../chunk-SLAAEXWI.js';import'../../chunk-JGPHBUVM.js';import'../../chunk-2JQVYVAT.js';import'../../chunk-NELCN6E2.js';import'../../chunk-6PHXO2YA.js';import'../../chunk-CBFC4QME.js';import'../../chunk-YOLTIAFT.js';import'../../chunk-M6ZI7M3R.js';import'../../chunk-DVDHTP4C.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {b}from'../chunk-M6ZI7M3R.js';import {b as b$1}from'../chunk-DVDHTP4C.js';import {useRef,useState,useCallback,useEffect}from'react';import {cx}from'@xjur-ui/util';import {jsxs,jsx}from'react/jsx-runtime';function P({children:h,className:u,gap:g="small",scrollAmount:s=200,...b$2}){let l=useRef(null),[S,z]=useState(false),[w,
|
|
1
|
+
import {b}from'../chunk-M6ZI7M3R.js';import {b as b$1}from'../chunk-DVDHTP4C.js';import {useRef,useState,useCallback,useEffect}from'react';import {cx}from'@xjur-ui/util';import {jsxs,jsx}from'react/jsx-runtime';function P({children:h,className:u,gap:g="small",scrollAmount:s=200,...b$2}){let l=useRef(null),[S,z]=useState(false),[w,y]=useState(false),[p,a]=useState(false),o=useCallback(()=>{let e=l.current;if(!e)return;let{scrollLeft:n,scrollWidth:i,clientWidth:r}=e;z(n>0),y(n<i-r-1);},[]),L=useCallback(()=>{let e=l.current;e&&(a(true),e.scrollTo({left:e.scrollLeft-s,behavior:"smooth"}),setTimeout(()=>a(false),300));},[s]),R=useCallback(()=>{let e=l.current;e&&(a(true),e.scrollTo({left:e.scrollLeft+s,behavior:"smooth"}),setTimeout(()=>a(false),300));},[s]);useEffect(()=>{let e=l.current;if(!e)return;let n=()=>{o();},i=()=>{o();};o(),e.addEventListener("scroll",n,{passive:true}),window.addEventListener("resize",i);let r=null;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(()=>{o();}),r.observe(e)),()=>{e.removeEventListener("scroll",n),window.removeEventListener("resize",i),r&&r.disconnect();}},[o]);let x={small:"gap-small",medium:"gap-medium",large:"gap-large"}[g];return jsxs("div",{className:cx("relative isolate",u),...b$2,children:[S&&jsx("div",{className:"absolute top-1/2 left-0 z-[3] flex h-full w-[80px] -translate-y-1/2 items-center",style:{background:"linear-gradient(to right, white 40%, transparent)"},children:jsx(b,{appearance:"ghost","aria-label":"Scroll left",className:"ml-0",disabled:p,size:"icon_md",variant:"secondary",onClick:L,children:jsx(b$1,{name:"chevron_left"})})}),w&&jsx("div",{className:"absolute top-1/2 right-0 z-[2] flex h-full w-[80px] -translate-y-1/2 items-center justify-end",style:{background:"linear-gradient(to left, white 40%, transparent)"},children:jsx(b,{appearance:"ghost","aria-label":"Scroll right",className:"mr-0",disabled:p,size:"icon_md",variant:"secondary",onClick:R,children:jsx(b$1,{name:"chevron_right"})})}),jsx("div",{className:cx("scrollbar-hide py-small relative z-1 flex overflow-x-auto overflow-y-visible","min-w-0 [&>*]:flex-none [&>*]:whitespace-nowrap",x,u),ref:l,children:h})]})}export{P as HorizontalScroll};//# sourceMappingURL=horizontal-scroll.js.map
|
|
2
2
|
//# sourceMappingURL=horizontal-scroll.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/horizontal-scroll.tsx"],"names":["HorizontalScroll","children","className","gap","scrollAmount","props","scrollContainerRef","useRef","canScrollLeft","setCanScrollLeft","useState","canScrollRight","setCanScrollRight","isScrolling","setIsScrolling","checkScrollable","useCallback","container","scrollLeft","scrollWidth","clientWidth","handleScrollLeft","handleScrollRight","useEffect","handleScroll","handleResize","resizeObserver","gapClass","jsxs","cx","jsx","Button","Icon"],"mappings":"mNAYO,SAASA,CAAAA,CAAiB,CAC/B,SAAAC,CAAAA,CACA,SAAA,CAAAC,EACA,GAAA,CAAAC,CAAAA,CAAM,QACN,YAAA,CAAAC,CAAAA,CAAe,IACf,GAAGC,GACL,EAA0B,CACxB,IAAMC,EAAqBC,MAAAA,CAAuB,IAAI,EAChD,CAACC,CAAAA,CAAeC,CAAgB,CAAA,CAAIC,SAAS,KAAK,CAAA,CAClD,CAACC,CAAAA,CAAgBC,CAAiB,EAAIF,QAAAA,CAAS,KAAK,EACpD,CAACG,CAAAA,CAAaC,CAAc,CAAA,CAAIJ,QAAAA,CAAS,KAAK,CAAA,CAE9CK,CAAAA,CAAkBC,YAAY,IAAM,CACxC,IAAMC,CAAAA,CAAYX,EAAmB,OAAA,CACrC,GAAI,CAACW,CAAAA,CAAW,OAEhB,GAAM,CAAE,UAAA,CAAAC,EAAY,WAAA,CAAAC,CAAAA,CAAa,YAAAC,CAAY,CAAA,CAAIH,EACjDR,CAAAA,CAAiBS,CAAAA,CAAa,CAAC,CAAA,CAC/BN,CAAAA,CAAkBM,CAAAA,CAAaC,CAAAA,CAAcC,EAAc,CAAC,EAC9D,EAAG,E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AUO,CAAY,CAAA,CACpD,MAAA,CAAO,oBAAoB,QAAA,CAAUC,CAAY,EAC7CC,CAAAA,EACFA,CAAAA,CAAe,aAEnB,CACF,EAAG,CAACX,CAAe,CAAC,CAAA,CAEpB,IAAMY,CAAAA,CAAW,CACf,MAAO,WAAA,CACP,MAAA,CAAQ,aACR,KAAA,CAAO,WACT,EAAExB,CAAG,CAAA,CAEL,OACEyB,IAAAA,CAAC,KAAA,CAAA,CAAI,UAAWC,EAAAA,CAAG,kBAAA,CAAoB3B,CAAS,CAAA,CAAI,GAAGG,GAAAA,CAEpD,QAAA,CAAA,CAAAG,GACCsB,GAAAA,CAAC,KAAA,CAAA,CACC,UAAU,kFAAA,CACV,KAAA,CAAO,CACL,UAAA,CAAY,mDACd,EAEA,QAAA,CAAAA,GAAAA,CAACC,EAAA,CACC,UAAA,CAAW,QACX,YAAA,CAAW,aAAA,CACX,UAAU,MAAA,CACV,QAAA,CAAUlB,CAAAA,CACV,IAAA,CAAK,UACL,OAAA,CAAQ,WAAA,CACR,QAASQ,CAAAA,CAET,QAAA,CAAAS,IAACE,GAAAA,CAAA,CAAK,KAAK,cAAA,CAAe,CAAA,CAC5B,EACF,CAAA,CAIDrB,CAAAA,EACCmB,IAAC,KAAA,CAAA,CACC,SAAA,CAAU,gGACV,KAAA,CAAO,CACL,UAAA,CAAY,kDACd,EAEA,QAAA,CAAAA,GAAAA,CAACC,EAAA,CACC,UAAA,CAAW,QACX,YAAA,CAAW,cAAA,CACX,UAAU,MAAA,CACV,QAAA,CAAUlB,EACV,IAAA,CAAK,SAAA,CACL,QAAQ,WAAA,CACR,OAAA,CAASS,EAET,QAAA,CAAAQ,GAAAA,CAACE,GAAAA,CAAA,CAAK,KAAK,eAAA,CAAgB,CAAA,CAC7B,EACF,CAAA,CAIFF,GAAAA,CAAC,OACC,SAAA,CAAWD,EAAAA,CACT,
|
|
1
|
+
{"version":3,"sources":["../../src/components/horizontal-scroll.tsx"],"names":["HorizontalScroll","children","className","gap","scrollAmount","props","scrollContainerRef","useRef","canScrollLeft","setCanScrollLeft","useState","canScrollRight","setCanScrollRight","isScrolling","setIsScrolling","checkScrollable","useCallback","container","scrollLeft","scrollWidth","clientWidth","handleScrollLeft","handleScrollRight","useEffect","handleScroll","handleResize","resizeObserver","gapClass","jsxs","cx","jsx","Button","Icon"],"mappings":"mNAYO,SAASA,CAAAA,CAAiB,CAC/B,SAAAC,CAAAA,CACA,SAAA,CAAAC,EACA,GAAA,CAAAC,CAAAA,CAAM,QACN,YAAA,CAAAC,CAAAA,CAAe,IACf,GAAGC,GACL,EAA0B,CACxB,IAAMC,EAAqBC,MAAAA,CAAuB,IAAI,EAChD,CAACC,CAAAA,CAAeC,CAAgB,CAAA,CAAIC,SAAS,KAAK,CAAA,CAClD,CAACC,CAAAA,CAAgBC,CAAiB,EAAIF,QAAAA,CAAS,KAAK,EACpD,CAACG,CAAAA,CAAaC,CAAc,CAAA,CAAIJ,QAAAA,CAAS,KAAK,CAAA,CAE9CK,CAAAA,CAAkBC,YAAY,IAAM,CACxC,IAAMC,CAAAA,CAAYX,EAAmB,OAAA,CACrC,GAAI,CAACW,CAAAA,CAAW,OAEhB,GAAM,CAAE,UAAA,CAAAC,EAAY,WAAA,CAAAC,CAAAA,CAAa,YAAAC,CAAY,CAAA,CAAIH,EACjDR,CAAAA,CAAiBS,CAAAA,CAAa,CAAC,CAAA,CAC/BN,CAAAA,CAAkBM,CAAAA,CAAaC,CAAAA,CAAcC,EAAc,CAAC,EAC9D,EAAG,EAAE,EAECC,CAAAA,CAAmBL,WAAAA,CAAY,IAAM,CACzC,IAAMC,CAAAA,CAAYX,CAAAA,CAAmB,QAChCW,CAAAA,GAELH,CAAAA,CAAe,IAAI,CAAA,CACnBG,CAAAA,CAAU,QAAA,CAAS,CACjB,KAAMA,CAAAA,CAAU,UAAA,CAAab,EAC7B,QAAA,CAAU,QACZ,CAAC,CAAA,CAED,UAAA,CAAW,IAAMU,CAAAA,CAAe,KAAK,EAAG,GAAG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AAAA,CAAG,kBAAA,CAAoB3B,CAAS,CAAA,CAAI,GAAGG,GAAAA,CAEpD,QAAA,CAAA,CAAAG,GACCsB,GAAAA,CAAC,KAAA,CAAA,CACC,UAAU,kFAAA,CACV,KAAA,CAAO,CACL,UAAA,CAAY,mDACd,EAEA,QAAA,CAAAA,GAAAA,CAACC,EAAA,CACC,UAAA,CAAW,QACX,YAAA,CAAW,aAAA,CACX,UAAU,MAAA,CACV,QAAA,CAAUlB,CAAAA,CACV,IAAA,CAAK,UACL,OAAA,CAAQ,WAAA,CACR,QAASQ,CAAAA,CAET,QAAA,CAAAS,IAACE,GAAAA,CAAA,CAAK,KAAK,cAAA,CAAe,CAAA,CAC5B,EACF,CAAA,CAIDrB,CAAAA,EACCmB,IAAC,KAAA,CAAA,CACC,SAAA,CAAU,gGACV,KAAA,CAAO,CACL,UAAA,CAAY,kDACd,EAEA,QAAA,CAAAA,GAAAA,CAACC,EAAA,CACC,UAAA,CAAW,QACX,YAAA,CAAW,cAAA,CACX,UAAU,MAAA,CACV,QAAA,CAAUlB,EACV,IAAA,CAAK,SAAA,CACL,QAAQ,WAAA,CACR,OAAA,CAASS,EAET,QAAA,CAAAQ,GAAAA,CAACE,GAAAA,CAAA,CAAK,KAAK,eAAA,CAAgB,CAAA,CAC7B,EACF,CAAA,CAIFF,GAAAA,CAAC,OACC,SAAA,CAAWD,EAAAA,CACT,+EACA,iDAAA,CACAF,CAAAA,CACAzB,CACF,CAAA,CACA,GAAA,CAAKI,EAEJ,QAAA,CAAAL,CAAAA,CACH,GACF,CAEJ","file":"horizontal-scroll.js","sourcesContent":["import type { ComponentProps, ReactNode } from 'react'\nimport { useCallback, useEffect, useRef, useState } from 'react'\nimport { cx } from '@xjur-ui/util'\nimport { Button } from './controls/button'\nimport { Icon } from './icon'\n\nexport interface HorizontalScrollProps extends ComponentProps<'div'> {\n children: ReactNode\n gap?: 'small' | 'medium' | 'large'\n scrollAmount?: number\n}\n\nexport function HorizontalScroll({\n children,\n className,\n gap = 'small',\n scrollAmount = 200,\n ...props\n}: HorizontalScrollProps) {\n const scrollContainerRef = useRef<HTMLDivElement>(null)\n const [canScrollLeft, setCanScrollLeft] = useState(false)\n const [canScrollRight, setCanScrollRight] = useState(false)\n const [isScrolling, setIsScrolling] = useState(false)\n\n const checkScrollable = useCallback(() => {\n const container = scrollContainerRef.current\n if (!container) return\n\n const { scrollLeft, scrollWidth, clientWidth } = container\n setCanScrollLeft(scrollLeft > 0)\n setCanScrollRight(scrollLeft < scrollWidth - clientWidth - 1)\n }, [])\n\n const handleScrollLeft = useCallback(() => {\n const container = scrollContainerRef.current\n if (!container) return\n\n setIsScrolling(true)\n container.scrollTo({\n left: container.scrollLeft - scrollAmount,\n behavior: 'smooth'\n })\n\n setTimeout(() => setIsScrolling(false), 300)\n }, [scrollAmount])\n\n const handleScrollRight = useCallback(() => {\n const container = scrollContainerRef.current\n if (!container) return\n\n setIsScrolling(true)\n container.scrollTo({\n left: container.scrollLeft + scrollAmount,\n behavior: 'smooth'\n })\n\n setTimeout(() => setIsScrolling(false), 300)\n }, [scrollAmount])\n\n useEffect(() => {\n const container = scrollContainerRef.current\n if (!container) return\n\n const handleScroll = () => {\n checkScrollable()\n }\n\n const handleResize = () => {\n checkScrollable()\n }\n\n checkScrollable()\n container.addEventListener('scroll', handleScroll, { passive: true })\n window.addEventListener('resize', handleResize)\n\n let resizeObserver: ResizeObserver | null = null\n if (typeof ResizeObserver !== 'undefined') {\n resizeObserver = new ResizeObserver(() => {\n checkScrollable()\n })\n resizeObserver.observe(container)\n }\n\n return () => {\n container.removeEventListener('scroll', handleScroll)\n window.removeEventListener('resize', handleResize)\n if (resizeObserver) {\n resizeObserver.disconnect()\n }\n }\n }, [checkScrollable])\n\n const gapClass = {\n small: 'gap-small',\n medium: 'gap-medium',\n large: 'gap-large'\n }[gap]\n\n return (\n <div className={cx('relative isolate', className)} {...props}>\n {/* Left Arrow */}\n {canScrollLeft && (\n <div\n className=\"absolute top-1/2 left-0 z-[3] flex h-full w-[80px] -translate-y-1/2 items-center\"\n style={{\n background: `linear-gradient(to right, white 40%, transparent)`\n }}\n >\n <Button\n appearance=\"ghost\"\n aria-label=\"Scroll left\"\n className=\"ml-0\"\n disabled={isScrolling}\n size=\"icon_md\"\n variant=\"secondary\"\n onClick={handleScrollLeft}\n >\n <Icon name=\"chevron_left\" />\n </Button>\n </div>\n )}\n\n {/* Right Arrow */}\n {canScrollRight && (\n <div\n className=\"absolute top-1/2 right-0 z-[2] flex h-full w-[80px] -translate-y-1/2 items-center justify-end\"\n style={{\n background: `linear-gradient(to left, white 40%, transparent)`\n }}\n >\n <Button\n appearance=\"ghost\"\n aria-label=\"Scroll right\"\n className=\"mr-0\"\n disabled={isScrolling}\n size=\"icon_md\"\n variant=\"secondary\"\n onClick={handleScrollRight}\n >\n <Icon name=\"chevron_right\" />\n </Button>\n </div>\n )}\n\n {/* Scrollable Content */}\n <div\n className={cx(\n 'scrollbar-hide py-small relative z-1 flex overflow-x-auto overflow-y-visible',\n 'min-w-0 [&>*]:flex-none [&>*]:whitespace-nowrap',\n gapClass,\n className\n )}\n ref={scrollContainerRef}\n >\n {children}\n </div>\n </div>\n )\n}\n"]}
|
|
@@ -6,7 +6,7 @@ import { I as IconType } from '../icons-C-hGI45d.js';
|
|
|
6
6
|
|
|
7
7
|
declare const selectionBarVariants: (props?: ({
|
|
8
8
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
9
|
-
variant?: "
|
|
9
|
+
variant?: "warning" | "primary" | "secondary" | "neutral" | "success" | "destructive" | "outline" | null | undefined;
|
|
10
10
|
position?: "fixed" | "absolute" | "relative" | "sticky" | null | undefined;
|
|
11
11
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
12
12
|
interface SelectionAction {
|
|
@@ -4,7 +4,7 @@ import { ComponentProps } from 'react';
|
|
|
4
4
|
import { ClassVariantProps } from '@xjur-ui/util';
|
|
5
5
|
|
|
6
6
|
declare const statusVariants: (props?: ({
|
|
7
|
-
variant?: "
|
|
7
|
+
variant?: "warning" | "neutral" | "success" | "danger" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
interface StatusProps extends ComponentProps<'div'>, ClassVariantProps<typeof statusVariants> {
|
|
10
10
|
text?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as
|
|
1
|
+
export{a as NextStep,b as PreviousStep}from'../../chunk-TYWCS7GS.js';export{a as Steps}from'../../chunk-X6SOSTUN.js';export{a as StepsNavigation}from'../../chunk-ZPQPJJQJ.js';export{a as StepsRoot}from'../../chunk-F7ANJ4HD.js';export{a as Step}from'../../chunk-FQTUN47L.js';export{a as StepsContext,b as StepsProvider,c as useSteps}from'../../chunk-O3JK6QF6.js';import'../../chunk-M6ZI7M3R.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|