@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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +7 -0
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/Chip.tsx +2 -2
- package/src/components/InputField.tsx +8 -2
- package/src/theme/light.ts +2 -1
package/package.json
CHANGED
package/src/components/Chip.tsx
CHANGED
|
@@ -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
|
-
|
|
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
|
-
{...
|
|
367
|
+
{...rest}
|
|
362
368
|
/>
|
|
363
369
|
);
|
|
364
370
|
});
|
package/src/theme/light.ts
CHANGED
|
@@ -162,7 +162,8 @@ export const textStyles = {
|
|
|
162
162
|
fontFamily: fonts.normal,
|
|
163
163
|
fontSize: `${typeScale[6]}rem`,
|
|
164
164
|
fontWeight: 400,
|
|
165
|
-
lineHeight: "
|
|
165
|
+
lineHeight: "19px",
|
|
166
|
+
// lineHeight: "1.4",
|
|
166
167
|
} as CSSObject,
|
|
167
168
|
button: {
|
|
168
169
|
fontFamily: fonts.normal,
|