@aurea-uds/contracts 0.42.0 → 0.44.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/api-surface.json CHANGED
@@ -5,9 +5,9 @@
5
5
  "totals": {
6
6
  "modulos": 40,
7
7
  "componentes": 145,
8
- "hooks": 9,
9
- "aliasesLiterais": 112,
10
- "propsDistintas": 381
8
+ "hooks": 10,
9
+ "aliasesLiterais": 114,
10
+ "propsDistintas": 387
11
11
  },
12
12
  "aliases": {
13
13
  "ButtonVariant": {
@@ -366,7 +366,7 @@
366
366
  },
367
367
  "DataStateProps": {
368
368
  "module": "feedback-client",
369
- "raw": "HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement> & { state?: DataStateValue; message?: ReactNode; skeleton?: ReactNode; emptyTitle?: ReactNode; emptyIcon?: IconName; action?: ReactNode; children: ReactNode | (() => ReactNode); /** A barreira de erro (MNT-25): o que quebrar ao desenhar o conteúdo vira a cara de erro, com \"Tentar de novo\". */ catchErrors?: boolean; /** Recebe o erro que a barreira pegou — para o app registrar. */ onCatch?: (error: unknown, info: React.ErrorInfo) => void; }",
369
+ "raw": "Omit<HTMLAttributes<HTMLDivElement>, \"children\"> & RefAttributes<HTMLDivElement> & { state?: DataStateValue; message?: ReactNode; skeleton?: ReactNode; emptyTitle?: ReactNode; emptyIcon?: IconName; action?: ReactNode; children: ReactNode | (() => ReactNode); catchErrors?: boolean; onCatch?: (error: unknown, info: React.ErrorInfo) => void; }",
370
370
  "union": null
371
371
  },
372
372
  "UploadFn": {
@@ -2473,6 +2473,11 @@
2473
2473
  "compact"
2474
2474
  ]
2475
2475
  },
2476
+ "SidebarEntry": {
2477
+ "module": "navigation-client",
2478
+ "raw": "SidebarItem | \"separator\"",
2479
+ "union": null
2480
+ },
2476
2481
  "SidebarVariant": {
2477
2482
  "module": "navigation-client",
2478
2483
  "raw": "\"floating\" | \"flush\" | \"plain\"",
@@ -2498,6 +2503,26 @@
2498
2503
  "right"
2499
2504
  ]
2500
2505
  },
2506
+ "SidebarCollapsible": {
2507
+ "module": "navigation-client",
2508
+ "raw": "\"icon\" | \"capsule\" | \"offcanvas\"",
2509
+ "union": [
2510
+ "icon",
2511
+ "capsule",
2512
+ "offcanvas"
2513
+ ]
2514
+ },
2515
+ "SidebarIndicator": {
2516
+ "module": "navigation-client",
2517
+ "raw": "\"brand\" | \"segment\" | \"segment-dot\" | \"segment-line\" | \"subtle\"",
2518
+ "union": [
2519
+ "brand",
2520
+ "segment",
2521
+ "segment-dot",
2522
+ "segment-line",
2523
+ "subtle"
2524
+ ]
2525
+ },
2501
2526
  "BottomNavVariant": {
2502
2527
  "module": "navigation-client",
2503
2528
  "raw": "\"floating\" | \"edge\"",
@@ -4249,7 +4274,7 @@
4249
4274
  "props": [
4250
4275
  {
4251
4276
  "name": "children",
4252
- "optional": false,
4277
+ "optional": true,
4253
4278
  "type": "string",
4254
4279
  "values": null
4255
4280
  },
@@ -4283,6 +4308,12 @@
4283
4308
  "type": "CodeHighlighter",
4284
4309
  "values": null
4285
4310
  },
4311
+ {
4312
+ "name": "tabs",
4313
+ "optional": true,
4314
+ "type": "CodeBlockTab[]",
4315
+ "values": null
4316
+ },
4286
4317
  {
4287
4318
  "name": "className",
4288
4319
  "optional": true,
@@ -6937,7 +6968,7 @@
6937
6968
  {
6938
6969
  "name": "items",
6939
6970
  "optional": false,
6940
- "type": "Array<{ value: string; label: ReactNode; }>",
6971
+ "type": "Array<{ value: string; label: ReactNode; href?: string; }>",
6941
6972
  "values": null
6942
6973
  },
6943
6974
  {
@@ -6948,7 +6979,7 @@
6948
6979
  },
6949
6980
  {
6950
6981
  "name": "onChange",
6951
- "optional": false,
6982
+ "optional": true,
6952
6983
  "type": "(v: string) => void",
6953
6984
  "values": null
6954
6985
  },
@@ -6963,6 +6994,15 @@
6963
6994
  "optional": true,
6964
6995
  "type": "boolean",
6965
6996
  "values": null
6997
+ },
6998
+ {
6999
+ "name": "size",
7000
+ "optional": true,
7001
+ "type": "\"sm\" | \"md\"",
7002
+ "values": [
7003
+ "sm",
7004
+ "md"
7005
+ ]
6966
7006
  }
6967
7007
  ]
6968
7008
  },
@@ -7325,7 +7365,7 @@
7325
7365
  {
7326
7366
  "name": "navItems",
7327
7367
  "optional": true,
7328
- "type": "SidebarItem[]",
7368
+ "type": "SidebarEntry[]",
7329
7369
  "values": null
7330
7370
  },
7331
7371
  {
@@ -7405,6 +7445,12 @@
7405
7445
  "type": "string",
7406
7446
  "values": null
7407
7447
  },
7448
+ {
7449
+ "name": "topbarTabsEnd",
7450
+ "optional": true,
7451
+ "type": "ReactNode",
7452
+ "values": null
7453
+ },
7408
7454
  {
7409
7455
  "name": "sidebarScrollbar",
7410
7456
  "optional": true,
@@ -7445,9 +7491,45 @@
7445
7491
  {
7446
7492
  "name": "sidebarCollapsible",
7447
7493
  "optional": true,
7494
+ "type": "boolean | SidebarCollapsible",
7495
+ "values": null
7496
+ },
7497
+ {
7498
+ "name": "sidebarToggle",
7499
+ "optional": true,
7500
+ "type": "\"edge\" | \"none\"",
7501
+ "values": [
7502
+ "edge",
7503
+ "none"
7504
+ ]
7505
+ },
7506
+ {
7507
+ "name": "sidebarShortcut",
7508
+ "optional": true,
7448
7509
  "type": "boolean",
7449
7510
  "values": null
7450
7511
  },
7512
+ {
7513
+ "name": "sidebarIndicator",
7514
+ "optional": true,
7515
+ "type": "SidebarIndicator",
7516
+ "values": [
7517
+ "brand",
7518
+ "segment",
7519
+ "segment-dot",
7520
+ "segment-line",
7521
+ "subtle"
7522
+ ]
7523
+ },
7524
+ {
7525
+ "name": "sidebarPanel",
7526
+ "optional": true,
7527
+ "type": "\"docked\" | \"overlay\"",
7528
+ "values": [
7529
+ "docked",
7530
+ "overlay"
7531
+ ]
7532
+ },
7451
7533
  {
7452
7534
  "name": "defaultSidebarCollapsed",
7453
7535
  "optional": true,
@@ -8367,6 +8449,12 @@
8367
8449
  "optional": true,
8368
8450
  "type": "string",
8369
8451
  "values": null
8452
+ },
8453
+ {
8454
+ "name": "tabsEnd",
8455
+ "optional": true,
8456
+ "type": "ReactNode",
8457
+ "values": null
8370
8458
  }
8371
8459
  ]
8372
8460
  },
@@ -9327,6 +9415,12 @@
9327
9415
  "optional": true,
9328
9416
  "type": "string",
9329
9417
  "values": null
9418
+ },
9419
+ {
9420
+ "name": "tabsEnd",
9421
+ "optional": true,
9422
+ "type": "ReactNode",
9423
+ "values": null
9330
9424
  }
9331
9425
  ]
9332
9426
  }
@@ -9581,7 +9675,7 @@
9581
9675
  {
9582
9676
  "name": "items",
9583
9677
  "optional": false,
9584
- "type": "SidebarItem[]",
9678
+ "type": "SidebarEntry[]",
9585
9679
  "values": null
9586
9680
  },
9587
9681
  {
@@ -9827,7 +9921,7 @@
9827
9921
  {
9828
9922
  "name": "items",
9829
9923
  "optional": true,
9830
- "type": "SidebarItem[]",
9924
+ "type": "SidebarEntry[]",
9831
9925
  "values": null
9832
9926
  },
9833
9927
  {
@@ -9876,6 +9970,37 @@
9876
9970
  "type": "string",
9877
9971
  "values": null
9878
9972
  },
9973
+ {
9974
+ "name": "collapsible",
9975
+ "optional": true,
9976
+ "type": "SidebarCollapsible",
9977
+ "values": [
9978
+ "icon",
9979
+ "capsule",
9980
+ "offcanvas"
9981
+ ]
9982
+ },
9983
+ {
9984
+ "name": "indicator",
9985
+ "optional": true,
9986
+ "type": "SidebarIndicator",
9987
+ "values": [
9988
+ "brand",
9989
+ "segment",
9990
+ "segment-dot",
9991
+ "segment-line",
9992
+ "subtle"
9993
+ ]
9994
+ },
9995
+ {
9996
+ "name": "panel",
9997
+ "optional": true,
9998
+ "type": "\"docked\" | \"overlay\"",
9999
+ "values": [
10000
+ "docked",
10001
+ "overlay"
10002
+ ]
10003
+ },
9879
10004
  {
9880
10005
  "name": "header",
9881
10006
  "optional": true,
@@ -10060,7 +10185,9 @@
10060
10185
  ]
10061
10186
  }
10062
10187
  ],
10063
- "hooks": [],
10188
+ "hooks": [
10189
+ "useSidebar"
10190
+ ],
10064
10191
  "clientDirective": false
10065
10192
  },
10066
10193
  "navigation": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "Aurea — Universal Design System",
3
- "version": "0.42.0",
3
+ "version": "0.44.0",
4
4
  "status": "organized-source-of-truth",
5
5
  "language": "pt-BR",
6
6
  "fonts": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurea-uds/contracts",
3
- "version": "0.42.0",
3
+ "version": "0.44.0",
4
4
  "description": "O contrato do projeto Aurea UDS, em JSON legível por máquina.",
5
5
  "keywords": [
6
6
  "aurea",