@ssa-ui-kit/core 0.0.9-alpha → 0.0.10-alpha

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": "@ssa-ui-kit/core",
3
- "version": "0.0.9-alpha",
3
+ "version": "0.0.10-alpha",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "private": false,
@@ -13,12 +13,7 @@ export const Accordion = ({
13
13
  onClick,
14
14
  ...rest
15
15
  }: AccordionViewProps) => (
16
- <CardBase
17
- role="region"
18
- tabIndex={0}
19
- title={title}
20
- css={wrapperStyles[size]}
21
- {...rest}>
16
+ <CardBase role="region" tabIndex={0} css={wrapperStyles[size]} {...rest}>
22
17
  {renderTitle({ id, isOpened, title, size, ariaControls, onClick })}
23
18
  {renderContent({
24
19
  id: `${ariaControls}`,
@@ -35,6 +35,7 @@ export const Basic: StoryObj<typeof Textarea> = (args: Args) => {
35
35
 
36
36
  Basic.args = {
37
37
  placeholder: 'Textarea',
38
+ title: 'Textarea title',
38
39
  name: 'textarea',
39
40
  validationSchema: {
40
41
  required: 'Required',
@@ -12,6 +12,7 @@ const Textarea = ({
12
12
  rows = 10,
13
13
  setCountChar,
14
14
  maxLength,
15
+ title,
15
16
  }: TextareaProps) => {
16
17
  if (!register) {
17
18
  throw new Error('Input component must be used within a Form component');
@@ -27,6 +28,7 @@ const Textarea = ({
27
28
  rows={rows}
28
29
  maxLength={maxLength}
29
30
  onChange={callAll(setCountChar, onChange)}
31
+ title={title}
30
32
  {...options}
31
33
  />
32
34
  );
@@ -11,5 +11,6 @@ export interface TextareaProps
11
11
  maxLength?: number;
12
12
  as?: React.ElementType;
13
13
  className?: string;
14
+ title?: string;
14
15
  setCountChar?: ReactEventHandler;
15
16
  }