@noya-app/noya-designsystem 0.1.20 → 0.1.21

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@noya-app/noya-designsystem",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -46,7 +46,8 @@ const ChipElement = styled.span<{
46
46
  userSelect: "none",
47
47
  display: "inline-flex",
48
48
  alignItems: "center",
49
- lineHeight: "1.4",
49
+ // lineHeight: "1.4",
50
+ lineHeight: "15px",
50
51
  whiteSpace: "pre",
51
52
  ...($size === "medium"
52
53
  ? {
@@ -56,7 +57,6 @@ const ChipElement = styled.span<{
56
57
  : {
57
58
  fontSize: "9px",
58
59
  padding: "0px 4px",
59
- lineHeight: "15px",
60
60
  }),
61
61
  ...($monospace && {
62
62
  fontFamily: theme.fonts.monospace,
@@ -322,7 +322,11 @@ export const InputElement = styled(TextInput)<{
322
322
 
323
323
  const InputFieldInput = forwardRef(function InputFieldInput(
324
324
  // onFocusChange should only be passed from the root, never directly
325
- props: TextInputProps & {
325
+ {
326
+ textAlign,
327
+ variant,
328
+ ...rest
329
+ }: TextInputProps & {
326
330
  textAlign?: Property.TextAlign;
327
331
  variant?: "bare";
328
332
  },
@@ -357,8 +361,10 @@ const InputFieldInput = forwardRef(function InputFieldInput(
357
361
  $hasLabel={hasLabel}
358
362
  $hasDropdown={hasDropdown}
359
363
  $size={size}
364
+ $variant={variant}
365
+ $textAlign={textAlign}
360
366
  onFocusChange={handleFocusChange}
361
- {...props}
367
+ {...rest}
362
368
  />
363
369
  );
364
370
  });
@@ -162,7 +162,8 @@ export const textStyles = {
162
162
  fontFamily: fonts.normal,
163
163
  fontSize: `${typeScale[6]}rem`,
164
164
  fontWeight: 400,
165
- lineHeight: "1.4",
165
+ lineHeight: "19px",
166
+ // lineHeight: "1.4",
166
167
  } as CSSObject,
167
168
  button: {
168
169
  fontFamily: fonts.normal,