@dilipod/ui 0.4.0 → 0.4.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/dist/components/select.d.ts.map +1 -1
- package/dist/index.js +37 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -29
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/dialog.tsx +1 -1
- package/src/components/scenarios-manager.tsx +9 -9
- package/src/components/select.tsx +25 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/components/select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/components/select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAChF,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,QAAA,MAAM,MAAM,uFA6BX,CAAA;AAGD,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1315,24 +1315,33 @@ var Textarea = React28__namespace.forwardRef(
|
|
|
1315
1315
|
Textarea.displayName = "Textarea";
|
|
1316
1316
|
var Select = React28__namespace.forwardRef(
|
|
1317
1317
|
({ className, error, children, ...props }, ref) => {
|
|
1318
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1318
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
1319
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1320
|
+
"select",
|
|
1321
|
+
{
|
|
1322
|
+
ref,
|
|
1323
|
+
className: cn(
|
|
1324
|
+
"h-10 w-full rounded-sm border bg-white px-3 py-2 text-base text-[var(--black)] ring-offset-background",
|
|
1325
|
+
"placeholder:text-gray-500",
|
|
1326
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
1327
|
+
"disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition-colors",
|
|
1328
|
+
"appearance-none pr-10",
|
|
1329
|
+
error ? "border-red-500 focus-visible:ring-red-500" : "border-gray-300 focus-visible:ring-[var(--cyan)]",
|
|
1330
|
+
className
|
|
1331
|
+
),
|
|
1332
|
+
"aria-invalid": error ? "true" : void 0,
|
|
1333
|
+
...props,
|
|
1334
|
+
children
|
|
1335
|
+
}
|
|
1336
|
+
),
|
|
1337
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1338
|
+
react_star.CaretDown,
|
|
1339
|
+
{
|
|
1340
|
+
size: 16,
|
|
1341
|
+
className: "absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 pointer-events-none"
|
|
1342
|
+
}
|
|
1343
|
+
)
|
|
1344
|
+
] });
|
|
1336
1345
|
}
|
|
1337
1346
|
);
|
|
1338
1347
|
Select.displayName = "Select";
|
|
@@ -2372,7 +2381,7 @@ var DialogContent = React28__namespace.forwardRef(({ className, children, ...pro
|
|
|
2372
2381
|
{
|
|
2373
2382
|
ref,
|
|
2374
2383
|
className: cn(
|
|
2375
|
-
"fixed left-
|
|
2384
|
+
"fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg gap-4 border border-border bg-white p-6 shadow-lg rounded-sm -translate-x-1/2 -translate-y-1/2",
|
|
2376
2385
|
className
|
|
2377
2386
|
),
|
|
2378
2387
|
...props,
|
|
@@ -3837,32 +3846,32 @@ var SettingsNavLink = React28__namespace.forwardRef(
|
|
|
3837
3846
|
SettingsNavLink.displayName = "SettingsNavLink";
|
|
3838
3847
|
var typeConfig = {
|
|
3839
3848
|
escalation: {
|
|
3840
|
-
label: "
|
|
3849
|
+
label: "Ask me first",
|
|
3841
3850
|
icon: react_star.Warning,
|
|
3842
3851
|
color: "text-amber-600",
|
|
3843
3852
|
bgColor: "bg-amber-50",
|
|
3844
|
-
description: "
|
|
3853
|
+
description: "Stop and check with me before proceeding"
|
|
3845
3854
|
},
|
|
3846
3855
|
default_behavior: {
|
|
3847
|
-
label: "
|
|
3856
|
+
label: "Handle it",
|
|
3848
3857
|
icon: react_star.CheckCircle,
|
|
3849
3858
|
color: "text-blue-600",
|
|
3850
3859
|
bgColor: "bg-blue-50",
|
|
3851
|
-
description: "
|
|
3860
|
+
description: "Proceed automatically using this rule"
|
|
3852
3861
|
},
|
|
3853
3862
|
quality_check: {
|
|
3854
|
-
label: "
|
|
3863
|
+
label: "Must be correct",
|
|
3855
3864
|
icon: react_star.CheckCircle,
|
|
3856
3865
|
color: "text-emerald-600",
|
|
3857
3866
|
bgColor: "bg-emerald-50",
|
|
3858
|
-
description: '
|
|
3867
|
+
description: 'This is what "done right" looks like'
|
|
3859
3868
|
},
|
|
3860
3869
|
edge_case: {
|
|
3861
|
-
label: "
|
|
3870
|
+
label: "Watch out",
|
|
3862
3871
|
icon: react_star.Question,
|
|
3863
3872
|
color: "text-purple-600",
|
|
3864
3873
|
bgColor: "bg-purple-50",
|
|
3865
|
-
description: "
|
|
3874
|
+
description: "Common mistakes or tricky situations"
|
|
3866
3875
|
}
|
|
3867
3876
|
};
|
|
3868
3877
|
function ScenarioCard({
|
|
@@ -3965,7 +3974,7 @@ function ScenarioDialog({
|
|
|
3965
3974
|
}
|
|
3966
3975
|
};
|
|
3967
3976
|
const isValid = situation.trim() && action.trim();
|
|
3968
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(DialogContent, { className: "sm:max-w-md",
|
|
3977
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(DialogContent, { className: "sm:max-w-md", children: [
|
|
3969
3978
|
/* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { children: [
|
|
3970
3979
|
/* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { children: scenario ? "Edit scenario" : "Add scenario" }),
|
|
3971
3980
|
/* @__PURE__ */ jsxRuntime.jsx(DialogDescription, { children: "Define when something happens and what action to take." })
|