@danxbot/ui 15.19.0 → 15.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.
@@ -118,6 +118,16 @@ interface AlertDialogBaseProps {
118
118
  cancelLabel?: string;
119
119
  loading?: boolean;
120
120
  onConfirm?: () => void;
121
+ /**
122
+ * Type-to-confirm (DX-3809). When set, the body shows a labelled text field
123
+ * and the confirm button stays disabled until the typed value equals this
124
+ * string EXACTLY — case-sensitive, no trimming. For the irreversible action
125
+ * where a stray click on a red button is not enough friction ("type the
126
+ * team's name to delete it"). Enter in the field confirms only on a match.
127
+ * Cancel keeps the initial focus. The field starts empty on every open. An
128
+ * empty string is a programming error and throws.
129
+ */
130
+ confirmText?: string;
121
131
  className?: string;
122
132
  ref?: Ref<HTMLDivElement>;
123
133
  }
@@ -148,5 +158,5 @@ export type AlertDialogProps = AlertDialogBaseProps & ({
148
158
  * the pointer travelling in from the panel's content reaches the safe option
149
159
  * before the destructive one, and keyboard focus lands on cancel by default.
150
160
  */
151
- export declare function AlertDialog({ trigger, open, onOpenChange, title, description, confirmLabel, cancelLabel, destructive, tone, loading, onConfirm, className, ref, }: AlertDialogProps): import("react").JSX.Element;
161
+ export declare function AlertDialog({ trigger, open, onOpenChange, title, description, confirmLabel, cancelLabel, destructive, tone, loading, onConfirm, confirmText, className, ref, }: AlertDialogProps): import("react").JSX.Element;
152
162
  export {};
@@ -1,6 +1,7 @@
1
1
  export declare const code: import("tailwind-variants").TVReturnType<{
2
2
  [key: string]: {
3
3
  [key: string]: import("tailwind-variants").ClassValue | {
4
+ layers?: import("tailwind-variants").ClassValue;
4
5
  textarea?: import("tailwind-variants").ClassValue;
5
6
  pre?: import("tailwind-variants").ClassValue;
6
7
  caption?: import("tailwind-variants").ClassValue;
@@ -10,7 +11,6 @@ export declare const code: import("tailwind-variants").TVReturnType<{
10
11
  hint?: import("tailwind-variants").ClassValue;
11
12
  root?: import("tailwind-variants").ClassValue;
12
13
  rendered?: import("tailwind-variants").ClassValue;
13
- layers?: import("tailwind-variants").ClassValue;
14
14
  gutter?: import("tailwind-variants").ClassValue;
15
15
  fade?: import("tailwind-variants").ClassValue;
16
16
  control?: import("tailwind-variants").ClassValue;
@@ -21,6 +21,7 @@ export declare const code: import("tailwind-variants").TVReturnType<{
21
21
  } | {
22
22
  [x: string]: {
23
23
  [x: string]: import("tailwind-variants").ClassValue | {
24
+ layers?: import("tailwind-variants").ClassValue;
24
25
  textarea?: import("tailwind-variants").ClassValue;
25
26
  pre?: import("tailwind-variants").ClassValue;
26
27
  caption?: import("tailwind-variants").ClassValue;
@@ -30,7 +31,6 @@ export declare const code: import("tailwind-variants").TVReturnType<{
30
31
  hint?: import("tailwind-variants").ClassValue;
31
32
  root?: import("tailwind-variants").ClassValue;
32
33
  rendered?: import("tailwind-variants").ClassValue;
33
- layers?: import("tailwind-variants").ClassValue;
34
34
  gutter?: import("tailwind-variants").ClassValue;
35
35
  fade?: import("tailwind-variants").ClassValue;
36
36
  control?: import("tailwind-variants").ClassValue;
@@ -57,6 +57,7 @@ export declare const code: import("tailwind-variants").TVReturnType<{
57
57
  }, undefined, {
58
58
  [key: string]: {
59
59
  [key: string]: import("tailwind-variants").ClassValue | {
60
+ layers?: import("tailwind-variants").ClassValue;
60
61
  textarea?: import("tailwind-variants").ClassValue;
61
62
  pre?: import("tailwind-variants").ClassValue;
62
63
  caption?: import("tailwind-variants").ClassValue;
@@ -66,7 +67,6 @@ export declare const code: import("tailwind-variants").TVReturnType<{
66
67
  hint?: import("tailwind-variants").ClassValue;
67
68
  root?: import("tailwind-variants").ClassValue;
68
69
  rendered?: import("tailwind-variants").ClassValue;
69
- layers?: import("tailwind-variants").ClassValue;
70
70
  gutter?: import("tailwind-variants").ClassValue;
71
71
  fade?: import("tailwind-variants").ClassValue;
72
72
  control?: import("tailwind-variants").ClassValue;
@@ -1214,6 +1214,166 @@ export declare const coreIcons: {
1214
1214
  }], readonly ["path", {
1215
1215
  readonly d: "m22 7-8.5 8.5-5-5L2 17";
1216
1216
  }]];
1217
+ readonly "alarm-clock": readonly [readonly ["circle", {
1218
+ readonly cx: "12";
1219
+ readonly cy: "13";
1220
+ readonly r: "8";
1221
+ }], readonly ["path", {
1222
+ readonly d: "M12 9v4l2 2";
1223
+ }], readonly ["path", {
1224
+ readonly d: "M5 3 2 6";
1225
+ }], readonly ["path", {
1226
+ readonly d: "m22 6-3-3";
1227
+ }], readonly ["path", {
1228
+ readonly d: "M6.38 18.7 4 21";
1229
+ }], readonly ["path", {
1230
+ readonly d: "M17.64 18.67 20 21";
1231
+ }]];
1232
+ readonly "badge-check": readonly [readonly ["path", {
1233
+ readonly d: "M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z";
1234
+ }], readonly ["path", {
1235
+ readonly d: "m9 12 2 2 4-4";
1236
+ }]];
1237
+ readonly "circle-minus": readonly [readonly ["circle", {
1238
+ readonly cx: "12";
1239
+ readonly cy: "12";
1240
+ readonly r: "10";
1241
+ }], readonly ["path", {
1242
+ readonly d: "M8 12h8";
1243
+ }]];
1244
+ readonly "clipboard-check": readonly [readonly ["rect", {
1245
+ readonly width: "8";
1246
+ readonly height: "4";
1247
+ readonly x: "8";
1248
+ readonly y: "2";
1249
+ readonly rx: "1";
1250
+ readonly ry: "1";
1251
+ }], readonly ["path", {
1252
+ readonly d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2";
1253
+ }], readonly ["path", {
1254
+ readonly d: "m9 14 2 2 4-4";
1255
+ }]];
1256
+ readonly coins: readonly [readonly ["circle", {
1257
+ readonly cx: "8";
1258
+ readonly cy: "8";
1259
+ readonly r: "6";
1260
+ }], readonly ["path", {
1261
+ readonly d: "M18.09 10.37A6 6 0 1 1 10.34 18";
1262
+ }], readonly ["path", {
1263
+ readonly d: "M7 6h1v4";
1264
+ }], readonly ["path", {
1265
+ readonly d: "m16.71 13.88.7.71-2.82 2.82";
1266
+ }]];
1267
+ readonly "corner-left-up": readonly [readonly ["path", {
1268
+ readonly d: "M14 9 9 4 4 9";
1269
+ }], readonly ["path", {
1270
+ readonly d: "M20 20h-7a4 4 0 0 1-4-4V4";
1271
+ }]];
1272
+ readonly "file-code": readonly [readonly ["path", {
1273
+ readonly d: "M10 12.5 8 15l2 2.5";
1274
+ }], readonly ["path", {
1275
+ readonly d: "m14 12.5 2 2.5-2 2.5";
1276
+ }], readonly ["path", {
1277
+ readonly d: "M14 2v4a2 2 0 0 0 2 2h4";
1278
+ }], readonly ["path", {
1279
+ readonly d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z";
1280
+ }]];
1281
+ readonly flame: readonly [readonly ["path", {
1282
+ readonly d: "M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4";
1283
+ }]];
1284
+ readonly hand: readonly [readonly ["path", {
1285
+ readonly d: "M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2";
1286
+ }], readonly ["path", {
1287
+ readonly d: "M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2";
1288
+ }], readonly ["path", {
1289
+ readonly d: "M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8";
1290
+ }], readonly ["path", {
1291
+ readonly d: "M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15";
1292
+ }]];
1293
+ readonly hourglass: readonly [readonly ["path", {
1294
+ readonly d: "M5 22h14";
1295
+ }], readonly ["path", {
1296
+ readonly d: "M5 2h14";
1297
+ }], readonly ["path", {
1298
+ readonly d: "M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22";
1299
+ }], readonly ["path", {
1300
+ readonly d: "M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2";
1301
+ }]];
1302
+ readonly layers: readonly [readonly ["path", {
1303
+ readonly d: "M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z";
1304
+ }], readonly ["path", {
1305
+ readonly d: "M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12";
1306
+ }], readonly ["path", {
1307
+ readonly d: "M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17";
1308
+ }]];
1309
+ readonly "octagon-x": readonly [readonly ["path", {
1310
+ readonly d: "m15 9-6 6";
1311
+ }], readonly ["path", {
1312
+ readonly d: "M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z";
1313
+ }], readonly ["path", {
1314
+ readonly d: "m9 9 6 6";
1315
+ }]];
1316
+ readonly "scroll-text": readonly [readonly ["path", {
1317
+ readonly d: "M15 12h-5";
1318
+ }], readonly ["path", {
1319
+ readonly d: "M15 8h-5";
1320
+ }], readonly ["path", {
1321
+ readonly d: "M19 17V5a2 2 0 0 0-2-2H4";
1322
+ }], readonly ["path", {
1323
+ readonly d: "M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3";
1324
+ }]];
1325
+ readonly "search-check": readonly [readonly ["path", {
1326
+ readonly d: "m8 11 2 2 4-4";
1327
+ }], readonly ["circle", {
1328
+ readonly cx: "11";
1329
+ readonly cy: "11";
1330
+ readonly r: "8";
1331
+ }], readonly ["path", {
1332
+ readonly d: "m21 21-4.3-4.3";
1333
+ }]];
1334
+ readonly "skip-forward": readonly [readonly ["path", {
1335
+ readonly d: "M21 4v16";
1336
+ }], readonly ["path", {
1337
+ readonly d: "M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z";
1338
+ }]];
1339
+ readonly swords: readonly [readonly ["polyline", {
1340
+ readonly points: "14.5 17.5 3 6 3 3 6 3 17.5 14.5";
1341
+ }], readonly ["line", {
1342
+ readonly x1: "13";
1343
+ readonly x2: "19";
1344
+ readonly y1: "19";
1345
+ readonly y2: "13";
1346
+ }], readonly ["line", {
1347
+ readonly x1: "16";
1348
+ readonly x2: "20";
1349
+ readonly y1: "16";
1350
+ readonly y2: "20";
1351
+ }], readonly ["line", {
1352
+ readonly x1: "19";
1353
+ readonly x2: "21";
1354
+ readonly y1: "21";
1355
+ readonly y2: "19";
1356
+ }], readonly ["polyline", {
1357
+ readonly points: "14.5 6.5 18 3 21 3 21 6 17.5 9.5";
1358
+ }], readonly ["line", {
1359
+ readonly x1: "5";
1360
+ readonly x2: "9";
1361
+ readonly y1: "14";
1362
+ readonly y2: "18";
1363
+ }], readonly ["line", {
1364
+ readonly x1: "7";
1365
+ readonly x2: "4";
1366
+ readonly y1: "17";
1367
+ readonly y2: "20";
1368
+ }], readonly ["line", {
1369
+ readonly x1: "3";
1370
+ readonly x2: "5";
1371
+ readonly y1: "19";
1372
+ readonly y2: "21";
1373
+ }]];
1374
+ readonly wrench: readonly [readonly ["path", {
1375
+ readonly d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z";
1376
+ }]];
1217
1377
  readonly "align-center": readonly [readonly ["path", {
1218
1378
  readonly d: "M21 5H3";
1219
1379
  }], readonly ["path", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/ui",
3
- "version": "15.19.0",
3
+ "version": "15.21.0",
4
4
  "type": "module",
5
5
  "description": "Danxbot — a domain-agnostic React design system with motion as a first-class primitive.",
6
6
  "license": "MIT",