@indico-data/design-system 2.30.0 → 2.30.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indico-data/design-system",
3
- "version": "2.30.0",
3
+ "version": "2.30.1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "lib/index.js",
@@ -1,11 +1,11 @@
1
- @import './variables.scss';
2
-
1
+ @import 'variables.scss';
3
2
  .floatui-container {
4
3
  z-index: 99;
5
4
  }
6
5
 
7
6
  .floatui-content {
8
7
  border-radius: var(--pf-floatui-border-radius);
9
- border: 1px solid var(--pf-floatui-border-color);
8
+ border: solid 1px;
9
+ border-color: var(--pf-floatui-border-color);
10
10
  background: var(--pf-floatui-background-color);
11
11
  }
@@ -1,3 +1,11 @@
1
1
  form {
2
2
  width: 100%;
3
3
  }
4
+ :root [data-theme='light'],
5
+ :root {
6
+ --pf-form-input-border-color: var(--pf-border-color);
7
+ }
8
+
9
+ :root [data-theme='dark'] {
10
+ --pf-form-input-border-color: var(--pf-border-color);
11
+ }
@@ -41,6 +41,7 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
41
41
  form,
42
42
  maxLength,
43
43
  autofocus,
44
+ defaultValue,
44
45
  ...rest
45
46
  },
46
47
  ref,
@@ -70,6 +71,8 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
70
71
  aria-invalid={hasErrors ? true : undefined}
71
72
  aria-describedby={hasErrors || helpText ? `${name}-helper` : undefined}
72
73
  aria-required={isRequired}
74
+ value={value}
75
+ defaultValue={defaultValue}
73
76
  {...rest}
74
77
  />
75
78
  </div>
@@ -6,6 +6,15 @@ const meta: Meta = {
6
6
  title: 'Components/Pill',
7
7
  component: Pill,
8
8
  argTypes: {
9
+ className: {
10
+ control: false,
11
+ table: {
12
+ category: 'Props',
13
+ type: {
14
+ summary: 'css class name',
15
+ },
16
+ },
17
+ },
9
18
  children: {
10
19
  control: 'text',
11
20
  description: 'The content displayed inside the pill',
@@ -16,7 +25,7 @@ const meta: Meta = {
16
25
  },
17
26
  },
18
27
  },
19
- status: {
28
+ color: {
20
29
  control: {
21
30
  type: 'select',
22
31
  options: ['success', 'warning', 'error', 'info', 'neutral', 'primary', 'secondary'],