@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/lib/index.css CHANGED
@@ -1452,6 +1452,15 @@ form {
1452
1452
  width: 100%;
1453
1453
  }
1454
1454
 
1455
+ :root [data-theme=light],
1456
+ :root {
1457
+ --pf-form-input-border-color: var(--pf-border-color);
1458
+ }
1459
+
1460
+ :root [data-theme=dark] {
1461
+ --pf-form-input-border-color: var(--pf-border-color);
1462
+ }
1463
+
1455
1464
  :root,
1456
1465
  :root [data-theme=light] {
1457
1466
  --pf-select-background-color: var(--pf-white-color);
@@ -1765,7 +1774,8 @@ form {
1765
1774
 
1766
1775
  .floatui-content {
1767
1776
  border-radius: var(--pf-floatui-border-radius);
1768
- border: 1px solid var(--pf-floatui-border-color);
1777
+ border: solid 1px;
1778
+ border-color: var(--pf-floatui-border-color);
1769
1779
  background: var(--pf-floatui-background-color);
1770
1780
  }
1771
1781
 
package/lib/index.esm.css CHANGED
@@ -1452,6 +1452,15 @@ form {
1452
1452
  width: 100%;
1453
1453
  }
1454
1454
 
1455
+ :root [data-theme=light],
1456
+ :root {
1457
+ --pf-form-input-border-color: var(--pf-border-color);
1458
+ }
1459
+
1460
+ :root [data-theme=dark] {
1461
+ --pf-form-input-border-color: var(--pf-border-color);
1462
+ }
1463
+
1455
1464
  :root,
1456
1465
  :root [data-theme=light] {
1457
1466
  --pf-select-background-color: var(--pf-white-color);
@@ -1765,7 +1774,8 @@ form {
1765
1774
 
1766
1775
  .floatui-content {
1767
1776
  border-radius: var(--pf-floatui-border-radius);
1768
- border: 1px solid var(--pf-floatui-border-color);
1777
+ border: solid 1px;
1778
+ border-color: var(--pf-floatui-border-color);
1769
1779
  background: var(--pf-floatui-background-color);
1770
1780
  }
1771
1781
 
package/lib/index.esm.js CHANGED
@@ -20992,10 +20992,10 @@ const Toggle$1 = e__default.forwardRef((_a, ref) => {
20992
20992
  });
20993
20993
 
20994
20994
  const Textarea = e__default.forwardRef((_a, ref) => {
20995
- var { label, name, placeholder, value, onChange, isRequired, isDisabled, errorMessage, helpText, hasHiddenLabel, rows, cols, readonly, wrap, form, maxLength, autofocus } = _a, rest = __rest$1(_a, ["label", "name", "placeholder", "value", "onChange", "isRequired", "isDisabled", "errorMessage", "helpText", "hasHiddenLabel", "rows", "cols", "readonly", "wrap", "form", "maxLength", "autofocus"]);
20995
+ var { label, name, placeholder, value, onChange, isRequired, isDisabled, errorMessage, helpText, hasHiddenLabel, rows, cols, readonly, wrap, form, maxLength, autofocus, defaultValue } = _a, rest = __rest$1(_a, ["label", "name", "placeholder", "value", "onChange", "isRequired", "isDisabled", "errorMessage", "helpText", "hasHiddenLabel", "rows", "cols", "readonly", "wrap", "form", "maxLength", "autofocus", "defaultValue"]);
20996
20996
  const hasErrors = errorMessage && errorMessage.length > 0;
20997
20997
  const textareaClasses = classNames('textarea', { error: hasErrors });
20998
- return (jsxs(Fragment, { children: [jsx("div", { className: "textarea-wrapper", children: jsx("textarea", Object.assign({ ref: ref, rows: rows, cols: cols, autoFocus: autofocus, wrap: wrap, form: form, maxLength: maxLength, readOnly: readonly, "data-testid": `form-textarea-${name}`, name: name, disabled: isDisabled, placeholder: placeholder, onChange: onChange, className: textareaClasses, "aria-invalid": hasErrors ? true : undefined, "aria-describedby": hasErrors || helpText ? `${name}-helper` : undefined, "aria-required": isRequired }, rest)) }), hasErrors && jsx(DisplayFormError, { message: errorMessage }), helpText && (jsx("div", { "data-testid": `${name}-help-text`, className: "help-text", id: `${name}-helper`, children: helpText }))] }));
20998
+ return (jsxs(Fragment, { children: [jsx("div", { className: "textarea-wrapper", children: jsx("textarea", Object.assign({ ref: ref, rows: rows, cols: cols, autoFocus: autofocus, wrap: wrap, form: form, maxLength: maxLength, readOnly: readonly, "data-testid": `form-textarea-${name}`, name: name, disabled: isDisabled, placeholder: placeholder, onChange: onChange, className: textareaClasses, "aria-invalid": hasErrors ? true : undefined, "aria-describedby": hasErrors || helpText ? `${name}-helper` : undefined, "aria-required": isRequired, value: value, defaultValue: defaultValue }, rest)) }), hasErrors && jsx(DisplayFormError, { message: errorMessage }), helpText && (jsx("div", { "data-testid": `${name}-help-text`, className: "help-text", id: `${name}-helper`, children: helpText }))] }));
20999
20999
  });
21000
21000
  const LabeledTextarea = withLabel(Textarea);
21001
21001