@xqmsg/ui-core 0.22.2 → 0.22.3

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.22.2",
2
+ "version": "0.22.3",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -65,8 +65,8 @@
65
65
  "@storybook/react": "^6.5.10",
66
66
  "@svgr/rollup": "^8.0.1",
67
67
  "@svgr/webpack": "^8.0.1",
68
- "@types/react": "^18.2.1",
69
- "@types/react-dom": "^18.2.2",
68
+ "@types/react": "^18.2.12",
69
+ "@types/react-dom": "^18.2.5",
70
70
  "@typescript-eslint/eslint-plugin": "^5.59.5",
71
71
  "@typescript-eslint/parser": "^5.59.5",
72
72
  "babel-loader": "8.1.0",
@@ -42,7 +42,7 @@ export const Banner: React.FC<BannerProps> = ({
42
42
  }, [variant]);
43
43
 
44
44
  return (
45
- <Alert variant={variant}>
45
+ <Alert variant={variant} borderRadius="4px">
46
46
  <AlertDescription>
47
47
  <Flex
48
48
  flexDirection={type === 'condensed' ? 'row' : 'column'}
@@ -13,8 +13,7 @@ const StackedSwitch = React.forwardRef<HTMLInputElement, StackedSwitchProps>(
13
13
 
14
14
  return (
15
15
  <Switch
16
- h="26px"
17
- mx="4px"
16
+ h="21px"
18
17
  _focus={{
19
18
  border: '2px solid',
20
19
  borderColor: colors.border.focus,
@@ -18,7 +18,7 @@ export const Label: React.FC<LabelProps> = ({
18
18
  label,
19
19
  }) => {
20
20
  return (
21
- <FormLabel display="flex">
21
+ <FormLabel display="flex" ml="0">
22
22
  {label}
23
23
  {isRequired && (
24
24
  <Box ml={1} color={colors.label.error}>
@@ -251,7 +251,11 @@ export function Input<T extends FieldValues>({
251
251
  id={name}
252
252
  isInvalid={isInvalid}
253
253
  position="relative"
254
- py={label || helperText || isInvalid ? 5 : 0}
254
+ py={
255
+ (inputType !== 'checkbox' && label) || helperText || isInvalid
256
+ ? 5
257
+ : 0
258
+ }
255
259
  >
256
260
  {label && inputType !== 'checkbox' && (
257
261
  <Label