@koobiq/react-components 0.7.0 → 0.7.1

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.
@@ -1,4 +1,4 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
1
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { isNotNil, clsx } from "@koobiq/react-core";
4
4
  import { Label } from "@koobiq/react-primitives";
@@ -12,8 +12,10 @@ const FieldLabel = forwardRef(
12
12
  ref,
13
13
  children: [
14
14
  children,
15
- " ",
16
- isRequired && /* @__PURE__ */ jsx("sup", { className: s.sup, children: "*" })
15
+ isRequired && /* @__PURE__ */ jsxs(Fragment, { children: [
16
+ " ",
17
+ /* @__PURE__ */ jsx("sup", { className: s.sup, children: "*" })
18
+ ] })
17
19
  ]
18
20
  }
19
21
  ) : null
@@ -4,8 +4,9 @@ export declare const Textarea: import("react").ForwardRefExoticComponent<Omit<{
4
4
  required?: boolean;
5
5
  hiddenLabel?: boolean;
6
6
  readonly?: boolean;
7
- } & Omit<import("@koobiq/react-primitives").TextFieldProps<HTMLTextAreaElement>, "children" | "style" | "className" | "validationState" | "validationBehavior" | "validate" | "description" | "inputElementType">, "caption" | "className" | "cols" | "rows" | "variant" | "slotProps" | "fullWidth" | "data-testid" | "errorMessage" | "isLabelHidden" | "expand"> & {
7
+ } & Omit<import("@koobiq/react-primitives").TextFieldProps<HTMLTextAreaElement>, "children" | "style" | "className" | "validationState" | "validationBehavior" | "validate" | "description" | "inputElementType">, "caption" | "style" | "className" | "cols" | "rows" | "variant" | "slotProps" | "fullWidth" | "data-testid" | "errorMessage" | "isLabelHidden" | "expand"> & {
8
8
  className?: string;
9
+ style?: import("react").CSSProperties;
9
10
  variant?: import("./types").TextareaPropVariant;
10
11
  errorMessage?: import("react").ReactNode;
11
12
  fullWidth?: boolean;
@@ -1,4 +1,4 @@
1
- import type { ComponentRef, ReactNode } from 'react';
1
+ import type { ComponentRef, CSSProperties, ReactNode } from 'react';
2
2
  import type { ExtendableProps } from '@koobiq/react-core';
3
3
  import type { TextFieldProps } from '@koobiq/react-primitives';
4
4
  import { type FieldCaptionProps, type FieldContentGroupPropVariant, type FieldErrorProps, type FieldInputProps, type FieldLabelProps } from '../FieldComponents';
@@ -46,6 +46,8 @@ type TextareaDeprecatedProps = {
46
46
  export type TextareaProps = ExtendableProps<{
47
47
  /** Additional CSS-classes. */
48
48
  className?: string;
49
+ /** Inline styles. */
50
+ style?: CSSProperties;
49
51
  /**
50
52
  * The variant to use.
51
53
  * @default 'filled'
package/dist/style.css CHANGED
@@ -1943,7 +1943,7 @@
1943
1943
  font-feature-settings: var(--kbq-typography-text-normal-font-feature-settings);
1944
1944
  letter-spacing: var(--kbq-typography-text-normal-letter-spacing);
1945
1945
  text-underline-offset: calc(( var(--kbq-typography-text-normal-line-height) - var(--kbq-typography-text-normal-font-size)) / 2);
1946
- color: var(--kbq-foreground-contrast-secondary);
1946
+ color: var(--kbq-foreground-contrast);
1947
1947
  margin-block-end: var(--kbq-size-xs);
1948
1948
  }
1949
1949
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koobiq/react-components",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -28,10 +28,10 @@
28
28
  "@koobiq/design-tokens": "^3.14.0",
29
29
  "@types/react-transition-group": "^4.4.12",
30
30
  "react-transition-group": "^4.4.5",
31
- "@koobiq/react-core": "0.7.0",
32
- "@koobiq/react-icons": "0.7.0",
33
- "@koobiq/logger": "0.7.0",
34
- "@koobiq/react-primitives": "0.7.0"
31
+ "@koobiq/logger": "0.7.1",
32
+ "@koobiq/react-core": "0.7.1",
33
+ "@koobiq/react-primitives": "0.7.1",
34
+ "@koobiq/react-icons": "0.7.1"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@koobiq/design-tokens": "^3.14.0",