lawgic-dev-kit 0.20.8 → 0.21.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/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/atoms/SidebarButton/SidebarButton.js +7 -7
- package/dist/lawgic-dev-kit.umd.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/package.json +1 -1
package/dist/_virtual/index6.js
CHANGED
package/dist/_virtual/index7.js
CHANGED
|
@@ -8,8 +8,8 @@ const j = ({
|
|
|
8
8
|
icon: l,
|
|
9
9
|
label: n,
|
|
10
10
|
onClick: s,
|
|
11
|
-
expanded:
|
|
12
|
-
disabled:
|
|
11
|
+
expanded: r,
|
|
12
|
+
disabled: e = !1,
|
|
13
13
|
color: i
|
|
14
14
|
}) => {
|
|
15
15
|
const { defaultColorScheme: c } = h(), m = i || c, {
|
|
@@ -21,11 +21,11 @@ const j = ({
|
|
|
21
21
|
return /* @__PURE__ */ t.jsxs(
|
|
22
22
|
"div",
|
|
23
23
|
{
|
|
24
|
-
onClick: () => !
|
|
24
|
+
onClick: () => !e && s(),
|
|
25
25
|
className: `
|
|
26
26
|
flex items-center rounded-full text-gray transition-all duration-150 h-[40px] w-full px-[12.3px]
|
|
27
|
-
${!
|
|
28
|
-
${
|
|
27
|
+
${!r && "w-fit"}
|
|
28
|
+
${e ? "cursor-not-allowed opacity-50" : `cursor-pointer ${x}`}
|
|
29
29
|
${o ? `${a} ${p}` : "bg-transparent"}`,
|
|
30
30
|
children: [
|
|
31
31
|
/* @__PURE__ */ t.jsx(
|
|
@@ -48,9 +48,9 @@ const j = ({
|
|
|
48
48
|
w-[0px]
|
|
49
49
|
text-nowrap
|
|
50
50
|
transition-all duration-100 ease-in-out
|
|
51
|
-
text-gray-500
|
|
51
|
+
${!o && "text-gray-500"}
|
|
52
52
|
opacity-0 capitalize
|
|
53
|
-
${
|
|
53
|
+
${r && "translate-x-0 opacity-100 !w-full !h-auto ml-8"}
|
|
54
54
|
${o && a}`,
|
|
55
55
|
children: n
|
|
56
56
|
}
|
|
@@ -757,7 +757,7 @@ attempted value: ${a}
|
|
|
757
757
|
w-[0px]
|
|
758
758
|
text-nowrap
|
|
759
759
|
transition-all duration-100 ease-in-out
|
|
760
|
-
text-gray-500
|
|
760
|
+
${!e&&"text-gray-500"}
|
|
761
761
|
opacity-0 capitalize
|
|
762
762
|
${i&&"translate-x-0 opacity-100 !w-full !h-auto ml-8"}
|
|
763
763
|
${e&&f}`,children:n})]})},gL="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",yL={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},vL={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},xL=(e="underline",t=!1)=>Vn(gL,yL[e],vL[String(t)]),F2=({label:e,icon:t,isSelected:n,onClick:r,variant:i="default",direction:o="row",labelClassName:a=""})=>y.jsxs("button",{className:`${xL(i,n)} w-full cursor-pointer transition-all duration-200 ${o==="row"&&"flex-row!"}`,onClick:r,children:[t&&y.jsx(Pe,{icon:t,className:`${n?"text-blue-500":"text-gray-500"} w-20 h-20`}),y.jsx("span",{className:Vn("text-lg font-500",a),children:e})]}),bL="transition-colors ease-in-out duration-200 flex items-center justify-center text-body-m rounded-full w-fit font-600 leading-normal disabled:cursor-not-allowed disabled:text-gray-300",wL={blue:"text-blue-500 hover:text-blue-600 active:text-blue-700",aqua:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700",red:"text-red-500 hover:text-red-600 active:text-red-700",gray:"text-gray-500 hover:text-gray-600 active:text-gray-700"},SL=(e="blue")=>Vn(bL,wL[e]),V2=({color:e,children:t,className:n,...r})=>{const{defaultColorScheme:i}=Ue(),o=e||i;return y.jsx("button",{type:"button",className:SL(o)+" "+n,...r,children:t})},TL=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a,rightSide:c,translateKey:u="",size:f="base",...h})=>{const{field:{value:m="",onChange:p,ref:v,onBlur:S},fieldState:{error:x}}=hr.useController({name:n,control:t}),{t:T}=Ue(),C={sm:{container:"p-8",text:"text-body-s",label:"text-xs",error:"text-xs",gap:"gap-6"},base:{container:"p-16",text:"text-body-m",label:"text-label",error:"text-label",gap:"gap-8"}}[f],E=T(n),$=T(u);return y.jsxs("label",{className:`flex flex-col group select-none ${C.gap} ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${x&&"text-red-500!"} ${C.label} ${o&&"text-gray-300"}`,children:e}),y.jsxs("label",{htmlFor:n,className:`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as e } from "../../../../_virtual/
|
|
1
|
+
import { __module as e } from "../../../../_virtual/index6.js";
|
|
2
2
|
import { __require as o } from "./cjs/react-is.production.min.js";
|
|
3
3
|
import { __require as t } from "./cjs/react-is.development.js";
|
|
4
4
|
var r;
|