@ukic/docs 2.9.4 → 2.10.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.
Files changed (2) hide show
  1. package/docs.json +440 -31
  2. package/package.json +2 -2
package/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-02-28T15:28:24",
2
+ "timestamp": "2024-03-18T10:40:36",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.10.0",
@@ -207,6 +207,28 @@
207
207
  "docsTags": [],
208
208
  "usage": {},
209
209
  "props": [
210
+ {
211
+ "name": "accessibleButtonLabel",
212
+ "type": "string",
213
+ "complexType": {
214
+ "original": "string",
215
+ "resolved": "string",
216
+ "references": {}
217
+ },
218
+ "mutable": false,
219
+ "attr": "accessible-button-label",
220
+ "reflectToAttr": false,
221
+ "docs": "The accessible button label to provide more context to the 'See all/Hide all' button for screen reader users.",
222
+ "docsTags": [],
223
+ "default": "\"accordions\"",
224
+ "values": [
225
+ {
226
+ "type": "string"
227
+ }
228
+ ],
229
+ "optional": false,
230
+ "required": false
231
+ },
210
232
  {
211
233
  "name": "appearance",
212
234
  "type": "\"dark\" | \"default\" | \"light\"",
@@ -1331,6 +1353,10 @@
1331
1353
  {
1332
1354
  "name": "slot",
1333
1355
  "text": "badge - Badge component overlaying the top right of the button."
1356
+ },
1357
+ {
1358
+ "name": "slot",
1359
+ "text": "router-item - Handle routing by nesting your routes in this slot. Setting loading to true will have no impact on this slot."
1334
1360
  }
1335
1361
  ],
1336
1362
  "usage": {},
@@ -2208,6 +2234,10 @@
2208
2234
  "name": "right-icon",
2209
2235
  "docs": "Content will be placed to the right of the button label."
2210
2236
  },
2237
+ {
2238
+ "name": "router-item",
2239
+ "docs": "Handle routing by nesting your routes in this slot. Setting loading to true will have no impact on this slot."
2240
+ },
2211
2241
  {
2212
2242
  "name": "top-icon",
2213
2243
  "docs": "Content will be placed above the button label."
@@ -2217,7 +2247,6 @@
2217
2247
  "dependents": [
2218
2248
  "ic-accordion-group",
2219
2249
  "ic-alert",
2220
- "ic-card",
2221
2250
  "ic-dialog",
2222
2251
  "ic-horizontal-scroll",
2223
2252
  "ic-menu",
@@ -2253,9 +2282,6 @@
2253
2282
  "ic-alert": [
2254
2283
  "ic-button"
2255
2284
  ],
2256
- "ic-card": [
2257
- "ic-button"
2258
- ],
2259
2285
  "ic-dialog": [
2260
2286
  "ic-button"
2261
2287
  ],
@@ -2736,20 +2762,13 @@
2736
2762
  "dependents": [],
2737
2763
  "dependencies": [
2738
2764
  "ic-typography",
2739
- "ic-button"
2765
+ "ic-tooltip"
2740
2766
  ],
2741
2767
  "dependencyGraph": {
2742
2768
  "ic-card": [
2743
2769
  "ic-typography",
2744
- "ic-button"
2745
- ],
2746
- "ic-button": [
2747
- "ic-loading-indicator",
2748
2770
  "ic-tooltip"
2749
2771
  ],
2750
- "ic-loading-indicator": [
2751
- "ic-typography"
2752
- ],
2753
2772
  "ic-tooltip": [
2754
2773
  "ic-typography"
2755
2774
  ]
@@ -6275,15 +6294,15 @@
6275
6294
  },
6276
6295
  {
6277
6296
  "name": "size",
6278
- "type": "\"default\" | \"small\"",
6297
+ "type": "\"default\" | \"large\" | \"small\"",
6279
6298
  "complexType": {
6280
- "original": "IcSizesNoLarge",
6281
- "resolved": "\"default\" | \"small\"",
6299
+ "original": "IcSizes",
6300
+ "resolved": "\"default\" | \"large\" | \"small\"",
6282
6301
  "references": {
6283
- "IcSizesNoLarge": {
6302
+ "IcSizes": {
6284
6303
  "location": "import",
6285
6304
  "path": "../../utils/types",
6286
- "id": "src/utils/types.ts::IcSizesNoLarge"
6305
+ "id": "src/utils/types.ts::IcSizes"
6287
6306
  }
6288
6307
  }
6289
6308
  },
@@ -6298,6 +6317,10 @@
6298
6317
  "value": "default",
6299
6318
  "type": "string"
6300
6319
  },
6320
+ {
6321
+ "value": "large",
6322
+ "type": "string"
6323
+ },
6301
6324
  {
6302
6325
  "value": "small",
6303
6326
  "type": "string"
@@ -7817,15 +7840,15 @@
7817
7840
  },
7818
7841
  {
7819
7842
  "name": "size",
7820
- "type": "\"default\" | \"small\"",
7843
+ "type": "\"default\" | \"large\" | \"small\"",
7821
7844
  "complexType": {
7822
- "original": "IcSizesNoLarge",
7823
- "resolved": "\"default\" | \"small\"",
7845
+ "original": "IcSizes",
7846
+ "resolved": "\"default\" | \"large\" | \"small\"",
7824
7847
  "references": {
7825
- "IcSizesNoLarge": {
7848
+ "IcSizes": {
7826
7849
  "location": "import",
7827
7850
  "path": "../../utils/types",
7828
- "id": "src/utils/types.ts::IcSizesNoLarge"
7851
+ "id": "src/utils/types.ts::IcSizes"
7829
7852
  }
7830
7853
  }
7831
7854
  },
@@ -7840,6 +7863,10 @@
7840
7863
  "value": "default",
7841
7864
  "type": "string"
7842
7865
  },
7866
+ {
7867
+ "value": "large",
7868
+ "type": "string"
7869
+ },
7843
7870
  {
7844
7871
  "value": "small",
7845
7872
  "type": "string"
@@ -10280,7 +10307,6 @@
10280
10307
  },
10281
10308
  {
10282
10309
  "event": "keydown",
10283
- "target": "document",
10284
10310
  "capture": false,
10285
10311
  "passive": false
10286
10312
  }
@@ -11717,7 +11743,7 @@
11717
11743
  "mutable": true,
11718
11744
  "attr": "loading",
11719
11745
  "reflectToAttr": false,
11720
- "docs": "Trigger loading state when fetching options asyncronously",
11746
+ "docs": "Trigger loading state when fetching options asynchronously",
11721
11747
  "docsTags": [],
11722
11748
  "default": "false",
11723
11749
  "values": [
@@ -12872,7 +12898,7 @@
12872
12898
  "mutable": true,
12873
12899
  "attr": "loading",
12874
12900
  "reflectToAttr": false,
12875
- "docs": "If `true`, the loading state will be triggered when fetching options asyncronously.",
12901
+ "docs": "If `true`, the loading state will be triggered when fetching options asynchronously.",
12876
12902
  "docsTags": [],
12877
12903
  "default": "false",
12878
12904
  "values": [
@@ -13143,15 +13169,15 @@
13143
13169
  },
13144
13170
  {
13145
13171
  "name": "size",
13146
- "type": "\"default\" | \"small\"",
13172
+ "type": "\"default\" | \"large\" | \"small\"",
13147
13173
  "complexType": {
13148
- "original": "IcSizesNoLarge",
13149
- "resolved": "\"default\" | \"small\"",
13174
+ "original": "IcSizes",
13175
+ "resolved": "\"default\" | \"large\" | \"small\"",
13150
13176
  "references": {
13151
- "IcSizesNoLarge": {
13177
+ "IcSizes": {
13152
13178
  "location": "import",
13153
13179
  "path": "../../utils/types",
13154
- "id": "src/utils/types.ts::IcSizesNoLarge"
13180
+ "id": "src/utils/types.ts::IcSizes"
13155
13181
  }
13156
13182
  }
13157
13183
  },
@@ -13166,6 +13192,10 @@
13166
13192
  "value": "default",
13167
13193
  "type": "string"
13168
13194
  },
13195
+ {
13196
+ "value": "large",
13197
+ "type": "string"
13198
+ },
13169
13199
  {
13170
13200
  "value": "small",
13171
13201
  "type": "string"
@@ -13380,6 +13410,20 @@
13380
13410
  "docs": "Emitted when the clear button is clicked.",
13381
13411
  "docsTags": []
13382
13412
  },
13413
+ {
13414
+ "event": "icClose",
13415
+ "detail": "void",
13416
+ "bubbles": true,
13417
+ "complexType": {
13418
+ "original": "void",
13419
+ "resolved": "void",
13420
+ "references": {}
13421
+ },
13422
+ "cancelable": true,
13423
+ "composed": true,
13424
+ "docs": "Emitted when the select options menu is closed.",
13425
+ "docsTags": []
13426
+ },
13383
13427
  {
13384
13428
  "event": "icFocus",
13385
13429
  "detail": "void",
@@ -13414,6 +13458,20 @@
13414
13458
  "docs": "Emitted when a keyboard input occurred.",
13415
13459
  "docsTags": []
13416
13460
  },
13461
+ {
13462
+ "event": "icOpen",
13463
+ "detail": "void",
13464
+ "bubbles": true,
13465
+ "complexType": {
13466
+ "original": "void",
13467
+ "resolved": "void",
13468
+ "references": {}
13469
+ },
13470
+ "cancelable": true,
13471
+ "composed": true,
13472
+ "docs": "Emitted when the select options menu is opened.",
13473
+ "docsTags": []
13474
+ },
13417
13475
  {
13418
13476
  "event": "icOptionSelect",
13419
13477
  "detail": "IcOptionSelectEventDetail",
@@ -17232,6 +17290,338 @@
17232
17290
  ]
17233
17291
  }
17234
17292
  },
17293
+ {
17294
+ "filePath": "src/components/ic-toggle-button-group/ic-toggle-button-group.tsx",
17295
+ "encapsulation": "shadow",
17296
+ "tag": "ic-toggle-button-group",
17297
+ "readme": "# ic-toggle-button-group\n\n\n",
17298
+ "docs": "",
17299
+ "docsTags": [],
17300
+ "usage": {},
17301
+ "props": [
17302
+ {
17303
+ "name": "accessibleLabel",
17304
+ "type": "string",
17305
+ "complexType": {
17306
+ "original": "string",
17307
+ "resolved": "string",
17308
+ "references": {}
17309
+ },
17310
+ "mutable": false,
17311
+ "attr": "accessible-label",
17312
+ "reflectToAttr": false,
17313
+ "docs": "The accessible label of the toggle button group component to provide context for screen reader users.",
17314
+ "docsTags": [],
17315
+ "default": "\"Toggle button group\"",
17316
+ "values": [
17317
+ {
17318
+ "type": "string"
17319
+ }
17320
+ ],
17321
+ "optional": true,
17322
+ "required": false
17323
+ },
17324
+ {
17325
+ "name": "appearance",
17326
+ "type": "\"dark\" | \"default\" | \"light\"",
17327
+ "complexType": {
17328
+ "original": "IcThemeForeground",
17329
+ "resolved": "\"dark\" | \"default\" | \"light\"",
17330
+ "references": {
17331
+ "IcThemeForeground": {
17332
+ "location": "import",
17333
+ "path": "../../utils/types",
17334
+ "id": "src/utils/types.ts::IcThemeForeground"
17335
+ }
17336
+ }
17337
+ },
17338
+ "mutable": false,
17339
+ "attr": "appearance",
17340
+ "reflectToAttr": false,
17341
+ "docs": "The appearance of the toggle button group, e.g dark, or light.",
17342
+ "docsTags": [],
17343
+ "default": "\"default\"",
17344
+ "values": [
17345
+ {
17346
+ "value": "dark",
17347
+ "type": "string"
17348
+ },
17349
+ {
17350
+ "value": "default",
17351
+ "type": "string"
17352
+ },
17353
+ {
17354
+ "value": "light",
17355
+ "type": "string"
17356
+ }
17357
+ ],
17358
+ "optional": false,
17359
+ "required": false
17360
+ },
17361
+ {
17362
+ "name": "disabled",
17363
+ "type": "boolean",
17364
+ "complexType": {
17365
+ "original": "boolean",
17366
+ "resolved": "boolean",
17367
+ "references": {}
17368
+ },
17369
+ "mutable": false,
17370
+ "attr": "disabled",
17371
+ "reflectToAttr": false,
17372
+ "docs": "If `true`, the toggle button group will be set to the disabled state.",
17373
+ "docsTags": [],
17374
+ "default": "false",
17375
+ "values": [
17376
+ {
17377
+ "type": "boolean"
17378
+ }
17379
+ ],
17380
+ "optional": false,
17381
+ "required": false
17382
+ },
17383
+ {
17384
+ "name": "fullWidth",
17385
+ "type": "boolean",
17386
+ "complexType": {
17387
+ "original": "boolean",
17388
+ "resolved": "boolean",
17389
+ "references": {}
17390
+ },
17391
+ "mutable": false,
17392
+ "attr": "full-width",
17393
+ "reflectToAttr": false,
17394
+ "docs": "If `true`, the toggle button group will fill the width of the container.",
17395
+ "docsTags": [],
17396
+ "default": "false",
17397
+ "values": [
17398
+ {
17399
+ "type": "boolean"
17400
+ }
17401
+ ],
17402
+ "optional": true,
17403
+ "required": false
17404
+ },
17405
+ {
17406
+ "name": "iconPlacement",
17407
+ "type": "\"left\" | \"right\" | \"top\"",
17408
+ "complexType": {
17409
+ "original": "\"left\" | \"right\" | \"top\"",
17410
+ "resolved": "\"left\" | \"right\" | \"top\"",
17411
+ "references": {}
17412
+ },
17413
+ "mutable": false,
17414
+ "attr": "icon-placement",
17415
+ "reflectToAttr": false,
17416
+ "docs": "The placement of the icons in relation to the toggle button labels.",
17417
+ "docsTags": [],
17418
+ "values": [
17419
+ {
17420
+ "value": "left",
17421
+ "type": "string"
17422
+ },
17423
+ {
17424
+ "value": "right",
17425
+ "type": "string"
17426
+ },
17427
+ {
17428
+ "value": "top",
17429
+ "type": "string"
17430
+ }
17431
+ ],
17432
+ "optional": true,
17433
+ "required": false
17434
+ },
17435
+ {
17436
+ "name": "loading",
17437
+ "type": "boolean",
17438
+ "complexType": {
17439
+ "original": "boolean",
17440
+ "resolved": "boolean",
17441
+ "references": {}
17442
+ },
17443
+ "mutable": false,
17444
+ "attr": "loading",
17445
+ "reflectToAttr": false,
17446
+ "docs": "If `true`, the toggle button group will be in loading state.",
17447
+ "docsTags": [],
17448
+ "default": "false",
17449
+ "values": [
17450
+ {
17451
+ "type": "boolean"
17452
+ }
17453
+ ],
17454
+ "optional": true,
17455
+ "required": false
17456
+ },
17457
+ {
17458
+ "name": "selectMethod",
17459
+ "type": "\"auto\" | \"manual\"",
17460
+ "complexType": {
17461
+ "original": "IcSelectMethodTypes",
17462
+ "resolved": "\"auto\" | \"manual\"",
17463
+ "references": {
17464
+ "IcSelectMethodTypes": {
17465
+ "location": "import",
17466
+ "path": "../../utils/types",
17467
+ "id": "src/utils/types.ts::IcSelectMethodTypes"
17468
+ }
17469
+ }
17470
+ },
17471
+ "mutable": true,
17472
+ "attr": "select-method",
17473
+ "reflectToAttr": false,
17474
+ "docs": "If `auto`, controls are toggled automatically when navigated to. If `manual`, the controls must be actioned to change their toggled state. The value of this prop is ignored if `selectType` is set to`multi`.",
17475
+ "docsTags": [],
17476
+ "default": "\"manual\"",
17477
+ "values": [
17478
+ {
17479
+ "value": "auto",
17480
+ "type": "string"
17481
+ },
17482
+ {
17483
+ "value": "manual",
17484
+ "type": "string"
17485
+ }
17486
+ ],
17487
+ "optional": true,
17488
+ "required": false
17489
+ },
17490
+ {
17491
+ "name": "selectType",
17492
+ "type": "\"multi\" | \"single\"",
17493
+ "complexType": {
17494
+ "original": "IcSelectTypes",
17495
+ "resolved": "\"multi\" | \"single\"",
17496
+ "references": {
17497
+ "IcSelectTypes": {
17498
+ "location": "import",
17499
+ "path": "../../utils/types",
17500
+ "id": "src/utils/types.ts::IcSelectTypes"
17501
+ }
17502
+ }
17503
+ },
17504
+ "mutable": false,
17505
+ "attr": "select-type",
17506
+ "reflectToAttr": false,
17507
+ "docs": "Sets whether single or multiple options can be toggled. If `multi`, then the `selectMethod` is always `manual`.",
17508
+ "docsTags": [],
17509
+ "default": "\"single\"",
17510
+ "values": [
17511
+ {
17512
+ "value": "multi",
17513
+ "type": "string"
17514
+ },
17515
+ {
17516
+ "value": "single",
17517
+ "type": "string"
17518
+ }
17519
+ ],
17520
+ "optional": true,
17521
+ "required": false
17522
+ },
17523
+ {
17524
+ "name": "size",
17525
+ "type": "\"default\" | \"large\" | \"small\"",
17526
+ "complexType": {
17527
+ "original": "IcSizes",
17528
+ "resolved": "\"default\" | \"large\" | \"small\"",
17529
+ "references": {
17530
+ "IcSizes": {
17531
+ "location": "import",
17532
+ "path": "../../utils/types",
17533
+ "id": "src/utils/types.ts::IcSizes"
17534
+ }
17535
+ }
17536
+ },
17537
+ "mutable": false,
17538
+ "attr": "size",
17539
+ "reflectToAttr": false,
17540
+ "docs": "The size of the toggle buttons to be displayed. This does not affect the font size of the accessible label.",
17541
+ "docsTags": [],
17542
+ "default": "\"default\"",
17543
+ "values": [
17544
+ {
17545
+ "value": "default",
17546
+ "type": "string"
17547
+ },
17548
+ {
17549
+ "value": "large",
17550
+ "type": "string"
17551
+ },
17552
+ {
17553
+ "value": "small",
17554
+ "type": "string"
17555
+ }
17556
+ ],
17557
+ "optional": true,
17558
+ "required": false
17559
+ },
17560
+ {
17561
+ "name": "variant",
17562
+ "type": "\"default\" | \"icon\"",
17563
+ "complexType": {
17564
+ "original": "\"default\" | \"icon\"",
17565
+ "resolved": "\"default\" | \"icon\"",
17566
+ "references": {}
17567
+ },
17568
+ "mutable": false,
17569
+ "attr": "variant",
17570
+ "reflectToAttr": true,
17571
+ "docs": "The variant of the toggle button.",
17572
+ "docsTags": [],
17573
+ "default": "\"default\"",
17574
+ "values": [
17575
+ {
17576
+ "value": "default",
17577
+ "type": "string"
17578
+ },
17579
+ {
17580
+ "value": "icon",
17581
+ "type": "string"
17582
+ }
17583
+ ],
17584
+ "optional": false,
17585
+ "required": false
17586
+ }
17587
+ ],
17588
+ "methods": [],
17589
+ "events": [
17590
+ {
17591
+ "event": "icChange",
17592
+ "detail": "IcChangeEventDetail",
17593
+ "bubbles": true,
17594
+ "complexType": {
17595
+ "original": "IcChangeEventDetail",
17596
+ "resolved": "IcChangeEventDetail",
17597
+ "references": {
17598
+ "IcChangeEventDetail": {
17599
+ "location": "import",
17600
+ "path": "./ic-toggle-button-group.types",
17601
+ "id": "src/components/ic-toggle-button-group/ic-toggle-button-group.types.ts::IcChangeEventDetail"
17602
+ }
17603
+ }
17604
+ },
17605
+ "cancelable": true,
17606
+ "composed": true,
17607
+ "docs": "Emitted when a toggle button is selected.",
17608
+ "docsTags": []
17609
+ }
17610
+ ],
17611
+ "listeners": [
17612
+ {
17613
+ "event": "icToggleChecked",
17614
+ "capture": false,
17615
+ "passive": false
17616
+ }
17617
+ ],
17618
+ "styles": [],
17619
+ "slots": [],
17620
+ "parts": [],
17621
+ "dependents": [],
17622
+ "dependencies": [],
17623
+ "dependencyGraph": {}
17624
+ },
17235
17625
  {
17236
17626
  "filePath": "src/components/ic-tooltip/ic-tooltip.tsx",
17237
17627
  "encapsulation": "shadow",
@@ -17468,6 +17858,7 @@
17468
17858
  "parts": [],
17469
17859
  "dependents": [
17470
17860
  "ic-button",
17861
+ "ic-card",
17471
17862
  "ic-chip",
17472
17863
  "ic-navigation-item"
17473
17864
  ],
@@ -17481,6 +17872,9 @@
17481
17872
  "ic-button": [
17482
17873
  "ic-tooltip"
17483
17874
  ],
17875
+ "ic-card": [
17876
+ "ic-tooltip"
17877
+ ],
17484
17878
  "ic-chip": [
17485
17879
  "ic-tooltip"
17486
17880
  ],
@@ -18502,6 +18896,21 @@
18502
18896
  "declaration": "{\n mode: IcThemeForeground;\n color: IcColorRGB;\n}",
18503
18897
  "docstring": "",
18504
18898
  "path": "src/utils/types.ts"
18899
+ },
18900
+ "src/utils/types.ts::IcSelectMethodTypes": {
18901
+ "declaration": "export type IcSelectMethodTypes = \"auto\" | \"manual\";",
18902
+ "docstring": "",
18903
+ "path": "src/utils/types.ts"
18904
+ },
18905
+ "src/utils/types.ts::IcSelectTypes": {
18906
+ "declaration": "export type IcSelectTypes = \"single\" | \"multi\";",
18907
+ "docstring": "",
18908
+ "path": "src/utils/types.ts"
18909
+ },
18910
+ "src/components/ic-toggle-button-group/ic-toggle-button-group.types.ts::IcChangeEventDetail": {
18911
+ "declaration": "export interface IcChangeEventDetail {\n toggleChecked: boolean[] | boolean;\n toggledOptions?: {\n toggleButton: HTMLIcToggleButtonElement;\n }[];\n selectedOption: HTMLIcToggleButtonElement;\n}",
18912
+ "docstring": "",
18913
+ "path": "src/components/ic-toggle-button-group/ic-toggle-button-group.types.ts"
18505
18914
  }
18506
18915
  }
18507
18916
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "mi6",
3
3
  "name": "@ukic/docs",
4
- "version": "2.9.4",
4
+ "version": "2.10.0",
5
5
  "description": "API documentation for @ukic components",
6
6
  "main": "docs.json",
7
7
  "types": "docs.d.ts",
@@ -18,5 +18,5 @@
18
18
  "email": "icds@gchq.gov.uk"
19
19
  },
20
20
  "license": "MIT",
21
- "gitHead": "851d7863c504a1890a0d1a09f4bc8dbd5c94a4ba"
21
+ "gitHead": "58d6040e80a2fe1ca1feeca8e203130e2c59ff29"
22
22
  }