@ukic/docs 2.9.1 → 2.9.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.
Files changed (2) hide show
  1. package/docs.json +349 -1
  2. package/package.json +2 -2
package/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-01-22T11:57:10",
2
+ "timestamp": "2024-01-23T14:46:28",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.9.0",
@@ -1324,6 +1324,10 @@
1324
1324
  "name": "slot",
1325
1325
  "text": "right-icon - Content will be placed to the right of the button label."
1326
1326
  },
1327
+ {
1328
+ "name": "slot",
1329
+ "text": "top-icon - Content will be placed above the button label."
1330
+ },
1327
1331
  {
1328
1332
  "name": "slot",
1329
1333
  "text": "badge - Badge component overlaying the top right of the button."
@@ -2071,6 +2075,10 @@
2071
2075
  {
2072
2076
  "name": "right-icon",
2073
2077
  "docs": "Content will be placed to the right of the button label."
2078
+ },
2079
+ {
2080
+ "name": "top-icon",
2081
+ "docs": "Content will be placed above the button label."
2074
2082
  }
2075
2083
  ],
2076
2084
  "parts": [],
@@ -2089,6 +2097,7 @@
2089
2097
  "ic-select",
2090
2098
  "ic-side-navigation",
2091
2099
  "ic-toast",
2100
+ "ic-toggle-button",
2092
2101
  "ic-top-navigation"
2093
2102
  ],
2094
2103
  "dependencies": [
@@ -2148,6 +2157,9 @@
2148
2157
  "ic-toast": [
2149
2158
  "ic-button"
2150
2159
  ],
2160
+ "ic-toggle-button": [
2161
+ "ic-button"
2162
+ ],
2151
2163
  "ic-top-navigation": [
2152
2164
  "ic-button"
2153
2165
  ]
@@ -16686,6 +16698,342 @@
16686
16698
  "dependencies": [],
16687
16699
  "dependencyGraph": {}
16688
16700
  },
16701
+ {
16702
+ "filePath": "src/components/ic-toggle-button/ic-toggle-button.tsx",
16703
+ "encapsulation": "shadow",
16704
+ "tag": "ic-toggle-button",
16705
+ "readme": "# ic-toggle-button\n\n\n",
16706
+ "docs": "",
16707
+ "docsTags": [
16708
+ {
16709
+ "name": "slot",
16710
+ "text": "icon - Content will be displayed alongside the toggle button label."
16711
+ },
16712
+ {
16713
+ "name": "slot",
16714
+ "text": "badge - Badge component overlaying the top right of the toggle button."
16715
+ }
16716
+ ],
16717
+ "usage": {},
16718
+ "props": [
16719
+ {
16720
+ "name": "accessibleLabel",
16721
+ "type": "string",
16722
+ "complexType": {
16723
+ "original": "string",
16724
+ "resolved": "string",
16725
+ "references": {}
16726
+ },
16727
+ "mutable": false,
16728
+ "attr": "accessible-label",
16729
+ "reflectToAttr": false,
16730
+ "docs": "The accessible label that will be applied to the toggle button. This is required for the icon variant of toggle buttons.",
16731
+ "docsTags": [],
16732
+ "values": [
16733
+ {
16734
+ "type": "string"
16735
+ }
16736
+ ],
16737
+ "optional": true,
16738
+ "required": false
16739
+ },
16740
+ {
16741
+ "name": "appearance",
16742
+ "type": "\"dark\" | \"default\" | \"light\"",
16743
+ "complexType": {
16744
+ "original": "IcThemeForeground",
16745
+ "resolved": "\"dark\" | \"default\" | \"light\"",
16746
+ "references": {
16747
+ "IcThemeForeground": {
16748
+ "location": "import",
16749
+ "path": "../../utils/types",
16750
+ "id": "src/utils/types.ts::IcThemeForeground"
16751
+ }
16752
+ }
16753
+ },
16754
+ "mutable": false,
16755
+ "attr": "appearance",
16756
+ "reflectToAttr": false,
16757
+ "docs": "The appearance of the toggle button.",
16758
+ "docsTags": [],
16759
+ "default": "\"default\"",
16760
+ "values": [
16761
+ {
16762
+ "value": "dark",
16763
+ "type": "string"
16764
+ },
16765
+ {
16766
+ "value": "default",
16767
+ "type": "string"
16768
+ },
16769
+ {
16770
+ "value": "light",
16771
+ "type": "string"
16772
+ }
16773
+ ],
16774
+ "optional": true,
16775
+ "required": false
16776
+ },
16777
+ {
16778
+ "name": "disabled",
16779
+ "type": "boolean",
16780
+ "complexType": {
16781
+ "original": "boolean",
16782
+ "resolved": "boolean",
16783
+ "references": {}
16784
+ },
16785
+ "mutable": false,
16786
+ "attr": "disabled",
16787
+ "reflectToAttr": false,
16788
+ "docs": "If `true`, the toggle button will be in disabled state.",
16789
+ "docsTags": [],
16790
+ "default": "false",
16791
+ "values": [
16792
+ {
16793
+ "type": "boolean"
16794
+ }
16795
+ ],
16796
+ "optional": true,
16797
+ "required": false
16798
+ },
16799
+ {
16800
+ "name": "fullWidth",
16801
+ "type": "boolean",
16802
+ "complexType": {
16803
+ "original": "boolean",
16804
+ "resolved": "boolean",
16805
+ "references": {}
16806
+ },
16807
+ "mutable": false,
16808
+ "attr": "full-width",
16809
+ "reflectToAttr": false,
16810
+ "docs": "If `true`, the toggle button will fill the width of the container.",
16811
+ "docsTags": [],
16812
+ "default": "false",
16813
+ "values": [
16814
+ {
16815
+ "type": "boolean"
16816
+ }
16817
+ ],
16818
+ "optional": true,
16819
+ "required": false
16820
+ },
16821
+ {
16822
+ "name": "iconPlacement",
16823
+ "type": "\"left\" | \"right\" | \"top\"",
16824
+ "complexType": {
16825
+ "original": "\"left\" | \"right\" | \"top\"",
16826
+ "resolved": "\"left\" | \"right\" | \"top\"",
16827
+ "references": {}
16828
+ },
16829
+ "mutable": false,
16830
+ "attr": "icon-placement",
16831
+ "reflectToAttr": false,
16832
+ "docs": "The placement of the icon in relation to the toggle button label.",
16833
+ "docsTags": [],
16834
+ "values": [
16835
+ {
16836
+ "value": "left",
16837
+ "type": "string"
16838
+ },
16839
+ {
16840
+ "value": "right",
16841
+ "type": "string"
16842
+ },
16843
+ {
16844
+ "value": "top",
16845
+ "type": "string"
16846
+ }
16847
+ ],
16848
+ "optional": true,
16849
+ "required": false
16850
+ },
16851
+ {
16852
+ "name": "label",
16853
+ "type": "string",
16854
+ "complexType": {
16855
+ "original": "string",
16856
+ "resolved": "string",
16857
+ "references": {}
16858
+ },
16859
+ "mutable": false,
16860
+ "attr": "label",
16861
+ "reflectToAttr": false,
16862
+ "docs": "The label to display in the toggle button. This is required for the default variant of toggle buttons.",
16863
+ "docsTags": [],
16864
+ "values": [
16865
+ {
16866
+ "type": "string"
16867
+ }
16868
+ ],
16869
+ "optional": true,
16870
+ "required": false
16871
+ },
16872
+ {
16873
+ "name": "loading",
16874
+ "type": "boolean",
16875
+ "complexType": {
16876
+ "original": "boolean",
16877
+ "resolved": "boolean",
16878
+ "references": {}
16879
+ },
16880
+ "mutable": false,
16881
+ "attr": "loading",
16882
+ "reflectToAttr": false,
16883
+ "docs": "If `true`, the toggle button will be in loading state.",
16884
+ "docsTags": [],
16885
+ "default": "false",
16886
+ "values": [
16887
+ {
16888
+ "type": "boolean"
16889
+ }
16890
+ ],
16891
+ "optional": true,
16892
+ "required": false
16893
+ },
16894
+ {
16895
+ "name": "size",
16896
+ "type": "\"default\" | \"large\" | \"small\"",
16897
+ "complexType": {
16898
+ "original": "IcSizes",
16899
+ "resolved": "\"default\" | \"large\" | \"small\"",
16900
+ "references": {
16901
+ "IcSizes": {
16902
+ "location": "import",
16903
+ "path": "../../utils/types",
16904
+ "id": "src/utils/types.ts::IcSizes"
16905
+ }
16906
+ }
16907
+ },
16908
+ "mutable": false,
16909
+ "attr": "size",
16910
+ "reflectToAttr": false,
16911
+ "docs": "The size of the toggle button to be displayed.",
16912
+ "docsTags": [],
16913
+ "default": "\"default\"",
16914
+ "values": [
16915
+ {
16916
+ "value": "default",
16917
+ "type": "string"
16918
+ },
16919
+ {
16920
+ "value": "large",
16921
+ "type": "string"
16922
+ },
16923
+ {
16924
+ "value": "small",
16925
+ "type": "string"
16926
+ }
16927
+ ],
16928
+ "optional": true,
16929
+ "required": false
16930
+ },
16931
+ {
16932
+ "name": "toggleChecked",
16933
+ "type": "boolean",
16934
+ "complexType": {
16935
+ "original": "boolean",
16936
+ "resolved": "boolean",
16937
+ "references": {}
16938
+ },
16939
+ "mutable": true,
16940
+ "attr": "toggle-checked",
16941
+ "reflectToAttr": true,
16942
+ "docs": "If `true`, the toggle button will be in a checked state.",
16943
+ "docsTags": [],
16944
+ "default": "false",
16945
+ "values": [
16946
+ {
16947
+ "type": "boolean"
16948
+ }
16949
+ ],
16950
+ "optional": false,
16951
+ "required": false
16952
+ },
16953
+ {
16954
+ "name": "variant",
16955
+ "type": "\"default\" | \"icon\"",
16956
+ "complexType": {
16957
+ "original": "\"default\" | \"icon\"",
16958
+ "resolved": "\"default\" | \"icon\"",
16959
+ "references": {}
16960
+ },
16961
+ "mutable": false,
16962
+ "attr": "variant",
16963
+ "reflectToAttr": true,
16964
+ "docs": "The variant of the toggle button.",
16965
+ "docsTags": [],
16966
+ "default": "\"default\"",
16967
+ "values": [
16968
+ {
16969
+ "value": "default",
16970
+ "type": "string"
16971
+ },
16972
+ {
16973
+ "value": "icon",
16974
+ "type": "string"
16975
+ }
16976
+ ],
16977
+ "optional": false,
16978
+ "required": false
16979
+ }
16980
+ ],
16981
+ "methods": [],
16982
+ "events": [
16983
+ {
16984
+ "event": "icToggleChecked",
16985
+ "detail": "{ checked: boolean; }",
16986
+ "bubbles": true,
16987
+ "complexType": {
16988
+ "original": "{\n checked: boolean;\n }",
16989
+ "resolved": "{ checked: boolean; }",
16990
+ "references": {}
16991
+ },
16992
+ "cancelable": true,
16993
+ "composed": true,
16994
+ "docs": "Emitted when the user clicks a toggle button.",
16995
+ "docsTags": []
16996
+ }
16997
+ ],
16998
+ "listeners": [
16999
+ {
17000
+ "event": "click",
17001
+ "capture": true,
17002
+ "passive": false
17003
+ }
17004
+ ],
17005
+ "styles": [],
17006
+ "slots": [
17007
+ {
17008
+ "name": "badge",
17009
+ "docs": "Badge component overlaying the top right of the toggle button."
17010
+ },
17011
+ {
17012
+ "name": "icon",
17013
+ "docs": "Content will be displayed alongside the toggle button label."
17014
+ }
17015
+ ],
17016
+ "parts": [],
17017
+ "dependents": [],
17018
+ "dependencies": [
17019
+ "ic-button"
17020
+ ],
17021
+ "dependencyGraph": {
17022
+ "ic-toggle-button": [
17023
+ "ic-button"
17024
+ ],
17025
+ "ic-button": [
17026
+ "ic-loading-indicator",
17027
+ "ic-tooltip"
17028
+ ],
17029
+ "ic-loading-indicator": [
17030
+ "ic-typography"
17031
+ ],
17032
+ "ic-tooltip": [
17033
+ "ic-typography"
17034
+ ]
17035
+ }
17036
+ },
16689
17037
  {
16690
17038
  "filePath": "src/components/ic-tooltip/ic-tooltip.tsx",
16691
17039
  "encapsulation": "shadow",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "mi6",
3
3
  "name": "@ukic/docs",
4
- "version": "2.9.1",
4
+ "version": "2.9.2",
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": "d5a95835136923d7ccf2990b32bd5972535aef7d"
21
+ "gitHead": "6ac000067e82fa960a43cefa7762c21ab56f3be3"
22
22
  }