@telus-uds/components-base 1.21.0 → 1.23.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 (42) hide show
  1. package/CHANGELOG.md +30 -2
  2. package/component-docs.json +470 -1
  3. package/lib/Button/ButtonGroup.js +9 -0
  4. package/lib/Checkbox/CheckboxGroup.js +2 -0
  5. package/lib/ExpandCollapse/Control.js +3 -1
  6. package/lib/Feedback/Feedback.js +5 -2
  7. package/lib/Fieldset/Fieldset.js +42 -13
  8. package/lib/Fieldset/FieldsetContainer.js +9 -3
  9. package/lib/List/PressableListItemBase.js +1 -0
  10. package/lib/QuickLinksFeature/QuickLinksFeature.js +91 -0
  11. package/lib/QuickLinksFeature/QuickLinksFeatureItem.js +157 -0
  12. package/lib/QuickLinksFeature/index.js +16 -0
  13. package/lib/Radio/RadioGroup.js +5 -1
  14. package/lib/RadioCard/RadioCardGroup.js +2 -0
  15. package/lib/index.js +9 -0
  16. package/lib-module/Button/ButtonGroup.js +9 -0
  17. package/lib-module/Checkbox/CheckboxGroup.js +2 -0
  18. package/lib-module/ExpandCollapse/Control.js +3 -1
  19. package/lib-module/Feedback/Feedback.js +5 -2
  20. package/lib-module/Fieldset/Fieldset.js +39 -12
  21. package/lib-module/Fieldset/FieldsetContainer.js +9 -3
  22. package/lib-module/List/PressableListItemBase.js +1 -0
  23. package/lib-module/QuickLinksFeature/QuickLinksFeature.js +69 -0
  24. package/lib-module/QuickLinksFeature/QuickLinksFeatureItem.js +130 -0
  25. package/lib-module/QuickLinksFeature/index.js +4 -0
  26. package/lib-module/Radio/RadioGroup.js +5 -1
  27. package/lib-module/RadioCard/RadioCardGroup.js +2 -0
  28. package/lib-module/index.js +1 -0
  29. package/package.json +2 -2
  30. package/src/Button/ButtonGroup.jsx +10 -0
  31. package/src/Checkbox/CheckboxGroup.jsx +2 -0
  32. package/src/ExpandCollapse/Control.jsx +3 -2
  33. package/src/Feedback/Feedback.jsx +11 -3
  34. package/src/Fieldset/Fieldset.jsx +45 -13
  35. package/src/Fieldset/FieldsetContainer.jsx +29 -12
  36. package/src/List/PressableListItemBase.jsx +1 -0
  37. package/src/QuickLinksFeature/QuickLinksFeature.jsx +65 -0
  38. package/src/QuickLinksFeature/QuickLinksFeatureItem.jsx +114 -0
  39. package/src/QuickLinksFeature/index.js +6 -0
  40. package/src/Radio/RadioGroup.jsx +5 -3
  41. package/src/RadioCard/RadioCardGroup.jsx +2 -0
  42. package/src/index.js +1 -0
package/CHANGELOG.md CHANGED
@@ -1,12 +1,40 @@
1
1
  # Change Log - @telus-uds/components-base
2
2
 
3
- This log was last generated on Wed, 23 Nov 2022 21:41:19 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 14 Dec 2022 01:42:49 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.23.0
8
+
9
+ Wed, 14 Dec 2022 01:42:49 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - undefined (mauricio.batresmontejo@telus.com)
14
+
15
+ ### Patches
16
+
17
+ - chore: new design to error feedback for radio group (mauricio.batresmontejo@telus.com)
18
+
19
+ ## 1.22.0
20
+
21
+ Wed, 07 Dec 2022 15:14:20 GMT
22
+
23
+ ### Minor changes
24
+
25
+ - QuickLinksFeature component implementation (tiagohldb@gmail.com)
26
+ - Adding iconPosition for ButtonGroup (tiagohldb@gmail.com)
27
+ - chore: new design for error feedback for radio card group (mauricio.batresmontejo@telus.com)
28
+ - feat: add inverse variant for StepTracker (ruslan.bredikhin@nearform.com)
29
+ - Bump @telus-uds/system-theme-tokens to v2.9.0
30
+
31
+ ### Patches
32
+
33
+ - fix expand collapse icon size (mauricio.batresmontejo@telus.com)
34
+
7
35
  ## 1.21.0
8
36
 
9
- Wed, 23 Nov 2022 21:41:19 GMT
37
+ Wed, 23 Nov 2022 21:42:51 GMT
10
38
 
11
39
  ### Minor changes
12
40
 
@@ -108,7 +108,9 @@
108
108
  "outerBorderColor": "color",
109
109
  "outerBorderWidth": "border",
110
110
  "outerBorderGap": "size",
111
- "outerBackgroundColor": "color"
111
+ "outerBackgroundColor": "color",
112
+ "iconSpace": "integer",
113
+ "iconSize": "size"
112
114
  },
113
115
  "Card": {
114
116
  "flex": "integer",
@@ -212,6 +214,7 @@
212
214
  "iconColor": "color",
213
215
  "iconSize": "size",
214
216
  "iconGap": "size",
217
+ "iconPaddingTop": "size",
215
218
  "iconPosition": "position",
216
219
  "verticalAlign": "verticalAlign",
217
220
  "justifyContent": "flexJustifyContent",
@@ -534,6 +537,22 @@
534
537
  "iconSize": "size",
535
538
  "iconSpace": "integer"
536
539
  },
540
+ "QuickLinksFeature": {
541
+ "stackSpace": "integer",
542
+ "stackGap": "integer",
543
+ "stackJustify": "flexJustifyContent"
544
+ },
545
+ "QuickLinksFeatureItem": {
546
+ "color": "color",
547
+ "textLine": "textLine",
548
+ "imageDimension": "size",
549
+ "contentMaxDimension": "size",
550
+ "contentDirection": "direction",
551
+ "contentSpace": "integer",
552
+ "contentAlignItems": "flexAlign",
553
+ "textAlign": "textAlign",
554
+ "outerBorderColor": "color"
555
+ },
537
556
  "Radio": {
538
557
  "checkedBackgroundColor": "color",
539
558
  "checkedSize": "size",
@@ -1997,6 +2016,247 @@
1997
2016
  ]
1998
2017
  }
1999
2018
  }
2019
+ },
2020
+ "tokens": {
2021
+ "size": {
2022
+ "default": 0,
2023
+ "type": "Number|String|null",
2024
+ "nullable": true,
2025
+ "values": {
2026
+ "none": null,
2027
+ "full": "100%",
2028
+ "twoThirds": "66.67%",
2029
+ "zero": 0,
2030
+ "viewportXs": 0,
2031
+ "viewportSm": 576,
2032
+ "viewportMd": 768,
2033
+ "viewportLg": 992,
2034
+ "viewportXl": 1200
2035
+ }
2036
+ },
2037
+ "border": {
2038
+ "default": 0,
2039
+ "nullable": false,
2040
+ "values": {
2041
+ "zero": 0
2042
+ }
2043
+ },
2044
+ "color": {
2045
+ "default": null,
2046
+ "nullable": true,
2047
+ "type": "String|null",
2048
+ "values": {
2049
+ "transparent": "transparent",
2050
+ "none": null
2051
+ }
2052
+ },
2053
+ "radius": {
2054
+ "default": 0,
2055
+ "nullable": true,
2056
+ "type": "undefined|null",
2057
+ "values": {
2058
+ "zero": 0,
2059
+ "round": 99999999999999
2060
+ }
2061
+ },
2062
+ "shadow": {
2063
+ "default": null,
2064
+ "nullable": true,
2065
+ "type": "null|{\"blur\": Number, \"color\": String, \"inset\": Boolean, \"offsetX\": Number, \"offsetY\": Number, \"spread\": Number}|null",
2066
+ "values": {
2067
+ "none": null
2068
+ }
2069
+ },
2070
+ "fontSize": {
2071
+ "default": 16,
2072
+ "nullable": false,
2073
+ "type": "Number"
2074
+ },
2075
+ "lineHeight": {
2076
+ "default": 1,
2077
+ "nullable": false,
2078
+ "type": "Number"
2079
+ },
2080
+ "flexJustifyContent": {
2081
+ "default": "flex-start",
2082
+ "type": "'center'|'flex-start'|'space-between'",
2083
+ "nullable": false,
2084
+ "values": {
2085
+ "center": "center",
2086
+ "flexStart": "flex-start",
2087
+ "spaceBetween": "space-between"
2088
+ }
2089
+ },
2090
+ "flexAlign": {
2091
+ "default": "flex-start",
2092
+ "type": "'center'|'flex-start'|'stretch'",
2093
+ "nullable": false,
2094
+ "values": {
2095
+ "center": "center",
2096
+ "flexStart": "flex-start",
2097
+ "stretch": "stretch"
2098
+ }
2099
+ },
2100
+ "fontName": {
2101
+ "default": null,
2102
+ "nullable": true,
2103
+ "type": "null|String|null"
2104
+ },
2105
+ "fontWeight": {
2106
+ "default": "400",
2107
+ "nullable": false,
2108
+ "type": "String"
2109
+ },
2110
+ "fontStyle": {
2111
+ "default": "normal",
2112
+ "nullable": false,
2113
+ "type": "'normal'|'italic'",
2114
+ "values": {
2115
+ "normal": "normal",
2116
+ "italic": "italic"
2117
+ }
2118
+ },
2119
+ "opacity": {
2120
+ "default": 1,
2121
+ "nullable": false,
2122
+ "type": "Number",
2123
+ "values": {
2124
+ "opaque": 1
2125
+ }
2126
+ },
2127
+ "integer": {
2128
+ "default": null,
2129
+ "nullable": true,
2130
+ "type": "Number|null",
2131
+ "values": {}
2132
+ },
2133
+ "icon": {
2134
+ "default": null,
2135
+ "nullable": true,
2136
+ "type": "String|ReactNativeSVGComponent|null",
2137
+ "values": {
2138
+ "none": null
2139
+ }
2140
+ },
2141
+ "textLine": {
2142
+ "default": "none",
2143
+ "nullable": false,
2144
+ "type": "'none'|'underline'|'strikethrough'",
2145
+ "values": {
2146
+ "none": "none",
2147
+ "underline": "underline",
2148
+ "strikethrough": "strikethrough"
2149
+ }
2150
+ },
2151
+ "textLineStyle": {
2152
+ "default": "solid",
2153
+ "nullable": false,
2154
+ "type": "'solid'",
2155
+ "values": {
2156
+ "solid": "solid"
2157
+ }
2158
+ },
2159
+ "position": {
2160
+ "default": null,
2161
+ "nullable": true,
2162
+ "type": "'bottom'|'left'|'right'|'top'|null",
2163
+ "values": {
2164
+ "bottom": "bottom",
2165
+ "left": "left",
2166
+ "right": "right",
2167
+ "top": "top"
2168
+ }
2169
+ },
2170
+ "direction": {
2171
+ "default": "column",
2172
+ "nullable": false,
2173
+ "type": "'column'|'row'",
2174
+ "values": {
2175
+ "column": "column",
2176
+ "row": "row"
2177
+ }
2178
+ },
2179
+ "show": {
2180
+ "default": true,
2181
+ "nullable": false,
2182
+ "type": "Boolean",
2183
+ "values": {
2184
+ "true": true,
2185
+ "false": false
2186
+ }
2187
+ },
2188
+ "borderStyle": {
2189
+ "default": "solid",
2190
+ "nullable": false,
2191
+ "type": "'none'|'solid'",
2192
+ "values": {
2193
+ "none": "none",
2194
+ "solid": "solid"
2195
+ }
2196
+ },
2197
+ "letterSpacing": {
2198
+ "default": 0,
2199
+ "nullable": false,
2200
+ "type": "Number",
2201
+ "values": {
2202
+ "none": 0
2203
+ }
2204
+ },
2205
+ "verticalAlign": {
2206
+ "default": "baseline",
2207
+ "nullable": false,
2208
+ "type": "'top'|'middle'|'baseline'",
2209
+ "values": {
2210
+ "top": "top",
2211
+ "middle": "middle",
2212
+ "baseline": "baseline"
2213
+ }
2214
+ },
2215
+ "duration": {
2216
+ "default": 0,
2217
+ "nullable": false,
2218
+ "type": "Number",
2219
+ "values": {
2220
+ "zero": 0
2221
+ }
2222
+ },
2223
+ "iconScale": {
2224
+ "default": 1,
2225
+ "nullable": false,
2226
+ "type": "Number",
2227
+ "values": {
2228
+ "scale1": 1,
2229
+ "scale1_10": 1.1,
2230
+ "scale1_25": 1.25
2231
+ }
2232
+ },
2233
+ "textAlign": {
2234
+ "default": "left",
2235
+ "nullable": false,
2236
+ "type": "'left'|'center'|'right'",
2237
+ "values": {
2238
+ "left": "left",
2239
+ "center": "center",
2240
+ "right": "right"
2241
+ }
2242
+ },
2243
+ "gradient": {
2244
+ "default": null,
2245
+ "nullable": true,
2246
+ "type": "{\"type\": [\"linear\"|\"radial\"], \"angle\": Number, \"stops\": Array<{\"stop\": Number, \"color\": String }>}|null",
2247
+ "values": {
2248
+ "none": null
2249
+ }
2250
+ },
2251
+ "textTransform": {
2252
+ "default": "none",
2253
+ "type": "'none'|'uppercase'",
2254
+ "nullable": false,
2255
+ "values": {
2256
+ "none": "none",
2257
+ "uppercase": "uppercase"
2258
+ }
2259
+ }
2000
2260
  }
2001
2261
  },
2002
2262
  "components": {
@@ -2246,6 +2506,7 @@
2246
2506
  "iconColor": "color",
2247
2507
  "iconSize": "size",
2248
2508
  "iconGap": "size",
2509
+ "iconPaddingTop": "size",
2249
2510
  "iconPosition": "position",
2250
2511
  "verticalAlign": "verticalAlign",
2251
2512
  "justifyContent": "flexJustifyContent",
@@ -3156,6 +3417,7 @@
3156
3417
  "iconColor": "color",
3157
3418
  "iconSize": "size",
3158
3419
  "iconGap": "size",
3420
+ "iconPaddingTop": "size",
3159
3421
  "iconPosition": "position",
3160
3422
  "verticalAlign": "verticalAlign",
3161
3423
  "justifyContent": "flexJustifyContent",
@@ -3190,6 +3452,17 @@
3190
3452
  "docs": {
3191
3453
  "description": "A feedback box commonly used with form fields.\n\n### Standalone usage\nWhile its primary use is to facilitate feedback states for other form components such as `TextInput`,\nyou may use it standalone.\n\n### Complex content\nYou may pass any React tree as the children of this component, bear in mind that a render function\nis better suited for styling children based on Feedback's variant.\n\n### Using a render function\nWhen a function is passed for rendering content, it will receive the feedback text styles and\nvariant as arguments.\n\n### Accessibility\nAll accessibility props set on this component will be applied to the outer container.",
3192
3454
  "props": {
3455
+ "showFeedbackIcon": {
3456
+ "defaultValue": {
3457
+ "value": "false",
3458
+ "computed": false
3459
+ },
3460
+ "type": {
3461
+ "name": "bool"
3462
+ },
3463
+ "required": false,
3464
+ "description": ""
3465
+ },
3193
3466
  "title": {
3194
3467
  "type": {
3195
3468
  "name": "string"
@@ -3333,6 +3606,28 @@
3333
3606
  "required": false,
3334
3607
  "description": "Position of the feedback block relative to the fieldset's content."
3335
3608
  },
3609
+ "showIcon": {
3610
+ "defaultValue": {
3611
+ "value": "false",
3612
+ "computed": false
3613
+ },
3614
+ "type": {
3615
+ "name": "bool"
3616
+ },
3617
+ "required": false,
3618
+ "description": "Use to show error or success icon in the feedback"
3619
+ },
3620
+ "showErrorBorder": {
3621
+ "defaultValue": {
3622
+ "value": "false",
3623
+ "computed": false
3624
+ },
3625
+ "type": {
3626
+ "name": "bool"
3627
+ },
3628
+ "required": false,
3629
+ "description": "Use to show border in case of error for a group of components"
3630
+ },
3336
3631
  "children": {
3337
3632
  "type": {
3338
3633
  "name": "union",
@@ -6519,6 +6814,159 @@
6519
6814
  }
6520
6815
  }
6521
6816
  },
6817
+ "QuickLinksFeature": {
6818
+ "docs": {
6819
+ "description": "QuickLinksFeature renders a list of interactive items.\n - This is the base component that is used as a wrapper and accepts a List of `QuickLinksFeature.Item`",
6820
+ "props": {
6821
+ "tag": {
6822
+ "defaultValue": {
6823
+ "value": "'ul'",
6824
+ "computed": false
6825
+ },
6826
+ "type": {
6827
+ "name": "string"
6828
+ },
6829
+ "required": false,
6830
+ "description": "Default wrapper tag, by default it's \"ul\""
6831
+ },
6832
+ "tokens": {
6833
+ "type": {
6834
+ "name": "custom",
6835
+ "raw": {
6836
+ "stackSpace": "integer",
6837
+ "stackGap": "integer",
6838
+ "stackJustify": "flexJustifyContent"
6839
+ }
6840
+ },
6841
+ "required": false,
6842
+ "description": ""
6843
+ },
6844
+ "variant": {
6845
+ "type": {
6846
+ "name": "objectOf",
6847
+ "value": {
6848
+ "name": "union",
6849
+ "value": [
6850
+ {
6851
+ "name": "string"
6852
+ },
6853
+ {
6854
+ "name": "number"
6855
+ },
6856
+ {
6857
+ "name": "bool"
6858
+ }
6859
+ ]
6860
+ }
6861
+ },
6862
+ "required": false,
6863
+ "description": ""
6864
+ },
6865
+ "children": {
6866
+ "type": {
6867
+ "name": "node"
6868
+ },
6869
+ "required": false,
6870
+ "description": "QuickLinksFeature.Item component"
6871
+ }
6872
+ },
6873
+ "attributes": {
6874
+ "acceptsRNA11yProps": false
6875
+ }
6876
+ },
6877
+ "Item": {
6878
+ "docs": {
6879
+ "description": "Component export along with QuickLinksFeature to be used as children\n\nIt will receive a image source and a accessibility label and will render a link accordingly with the theme tokens",
6880
+ "props": {
6881
+ "LinkRouter": {
6882
+ "type": {
6883
+ "name": "elementType"
6884
+ },
6885
+ "required": false,
6886
+ "description": ""
6887
+ },
6888
+ "linkRouterProps": {
6889
+ "type": {
6890
+ "name": "object"
6891
+ },
6892
+ "required": false,
6893
+ "description": ""
6894
+ },
6895
+ "tokens": {
6896
+ "type": {
6897
+ "name": "custom",
6898
+ "raw": {
6899
+ "color": "color",
6900
+ "textLine": "textLine",
6901
+ "imageDimension": "size",
6902
+ "contentMaxDimension": "size",
6903
+ "contentDirection": "direction",
6904
+ "contentSpace": "integer",
6905
+ "contentAlignItems": "flexAlign",
6906
+ "textAlign": "textAlign",
6907
+ "outerBorderColor": "color"
6908
+ }
6909
+ },
6910
+ "required": false,
6911
+ "description": ""
6912
+ },
6913
+ "variant": {
6914
+ "type": {
6915
+ "name": "objectOf",
6916
+ "value": {
6917
+ "name": "union",
6918
+ "value": [
6919
+ {
6920
+ "name": "string"
6921
+ },
6922
+ {
6923
+ "name": "number"
6924
+ },
6925
+ {
6926
+ "name": "bool"
6927
+ }
6928
+ ]
6929
+ }
6930
+ },
6931
+ "required": false,
6932
+ "description": ""
6933
+ },
6934
+ "children": {
6935
+ "type": {
6936
+ "name": "node"
6937
+ },
6938
+ "required": true,
6939
+ "description": "Text which will be rendered within the Link"
6940
+ },
6941
+ "imageAccessibilityLabel": {
6942
+ "type": {
6943
+ "name": "string"
6944
+ },
6945
+ "required": true,
6946
+ "description": "Image accessibility label"
6947
+ },
6948
+ "imageSource": {
6949
+ "type": {
6950
+ "name": "union",
6951
+ "value": [
6952
+ {
6953
+ "name": "string"
6954
+ },
6955
+ {
6956
+ "name": "node"
6957
+ }
6958
+ ]
6959
+ },
6960
+ "required": true,
6961
+ "description": "Image node or Image url"
6962
+ }
6963
+ },
6964
+ "attributes": {
6965
+ "acceptsRNA11yProps": false
6966
+ }
6967
+ }
6968
+ }
6969
+ },
6522
6970
  "Radio": {
6523
6971
  "docs": {
6524
6972
  "description": "Basic Radio component.\n\n## Component API\n\nUse `label` prop to provide a label for the radio button. For a disabled `Radio` set the `inactive` prop to `true`.\n\n### Controlled version\n\nIf the radio button is controlled from outside, it needs to receive `checked` and `onChange` props.\n\n### Uncontrolled version\n\nIn case of uncontrolled radio button you can use `defaultChecked` prop to provide the initial value.\nWhenever the radio button gets toggled, it calls the `onChange` callback with the new value (boolean).\n\n### Using within forms\n\nYou can pass `name` and `value` props if you need a particular radio button to be a part of a radio group\non a form.\n\n### Validation\n\nYou can mark a radio button as failing validation by setting the `error` prop to `true`.\n\n## A11y guidelines\n\nRadio component accepts all the common accessibility props, but also sets some defaults, including\naccessibility role `'radio'` and accessibility state that depends on the other props (`checked`, `inactive`)\nor the internal state in case of uncontrolled radio button.",
@@ -9776,6 +10224,23 @@
9776
10224
  "required": false,
9777
10225
  "description": "If `values` is not passed, making the ButtonGroup an \"uncontrolled\" component\nmanaging its own selected state, a default set of selections may be provided.\nChanging the `initialValues` does not change the user's selections."
9778
10226
  },
10227
+ "iconPosition": {
10228
+ "type": {
10229
+ "name": "enum",
10230
+ "value": [
10231
+ {
10232
+ "value": "'left'",
10233
+ "computed": false
10234
+ },
10235
+ {
10236
+ "value": "'right'",
10237
+ "computed": false
10238
+ }
10239
+ ]
10240
+ },
10241
+ "required": false,
10242
+ "description": "Defines if the icon will be displayed on the right or left side of the label."
10243
+ },
9779
10244
  "legend": {
9780
10245
  "type": {
9781
10246
  "name": "string"
@@ -11845,6 +12310,10 @@
11845
12310
  "name": "func",
11846
12311
  "required": false
11847
12312
  },
12313
+ "description": {
12314
+ "name": "string",
12315
+ "required": false
12316
+ },
11848
12317
  "ref": {
11849
12318
  "name": "custom",
11850
12319
  "raw": "ABBPropTypes.ref()",
@@ -56,6 +56,7 @@ const ButtonGroup = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
56
56
  feedback,
57
57
  name: inputGroupName,
58
58
  copy,
59
+ iconPosition,
59
60
  accessibilityRole = maxValues === 1 ? 'radiogroup' // radiogroup is cross-platform; only web aria has generic groups
60
61
  : _Platform.default.select({
61
62
  web: 'group',
@@ -138,6 +139,7 @@ const ButtonGroup = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
138
139
  toggleOneValue(id, event);
139
140
  };
140
141
 
142
+ const iconProp = itemRest.icon || undefined;
141
143
  const itemA11y = {
142
144
  accessibilityState: {
143
145
  checked: isSelected
@@ -155,9 +157,11 @@ const ButtonGroup = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
155
157
  tokens: getButtonTokens,
156
158
  selected: isSelected,
157
159
  inactive: inactive,
160
+ icon: iconProp,
158
161
  ...selectItemProps({ ...itemRest,
159
162
  ...itemA11y
160
163
  }),
164
+ iconPosition: iconPosition,
161
165
  children: label
162
166
  }, id);
163
167
  })
@@ -226,6 +230,11 @@ ButtonGroup.propTypes = { ...selectedSystemPropTypes,
226
230
  */
227
231
  initialValues: _propTypes.default.arrayOf(_propTypes.default.string),
228
232
 
233
+ /**
234
+ * Defines if the icon will be displayed on the right or left side of the label.
235
+ */
236
+ iconPosition: _propTypes.default.oneOf(['left', 'right']),
237
+
229
238
  /**
230
239
  * Main text used to describe this group, used in Fieldset's Legend element.
231
240
  */
@@ -162,6 +162,8 @@ const CheckboxGroup = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
162
162
  feedback: feedback,
163
163
  inactive: inactive,
164
164
  validation: validation,
165
+ showIcon: true,
166
+ showErrorBorder: true,
165
167
  ...selectProps(rest),
166
168
  children: (0, _StackView.getStackedContent)(checkboxes, {
167
169
  space,
@@ -59,11 +59,13 @@ function selectContainerStyles(_ref) {
59
59
  function selectIconContainerStyles(_ref2) {
60
60
  let {
61
61
  iconGap,
62
+ iconPaddingTop,
62
63
  iconPosition
63
64
  } = _ref2;
64
65
  const paddingSide = iconPosition === 'right' ? 'paddingLeft' : 'paddingRight';
65
66
  return {
66
- [paddingSide]: iconGap
67
+ [paddingSide]: iconGap,
68
+ paddingTop: iconPaddingTop
67
69
  };
68
70
  }
69
71
 
@@ -105,10 +105,12 @@ const Feedback = /*#__PURE__*/(0, _react.forwardRef)((_ref5, ref) => {
105
105
  validation,
106
106
  tokens,
107
107
  variant,
108
+ showFeedbackIcon = false,
108
109
  ...rest
109
110
  } = _ref5;
110
111
  const themeTokens = (0, _ThemeProvider.useThemeTokens)('Feedback', tokens, { ...variant,
111
- validation
112
+ validation,
113
+ icon: showFeedbackIcon
112
114
  });
113
115
  const {
114
116
  space
@@ -174,7 +176,8 @@ Feedback.propTypes = { ...selectedSystemPropTypes,
174
176
  /** @ignore */
175
177
  id: _propTypes.default.string,
176
178
  tokens: (0, _utils.getTokensPropType)('Feedback'),
177
- variant: _utils.variantProp.propType
179
+ variant: _utils.variantProp.propType,
180
+ showFeedbackIcon: _propTypes.default.bool
178
181
  };
179
182
  var _default = Feedback;
180
183
  exports.default = _default;