opus-toolkit-components 1.2.6 → 1.2.7

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.
@@ -801,7 +801,8 @@ const Accordion = _ref => {
801
801
  index,
802
802
  isPreview,
803
803
  onExitPreview = () => {},
804
- children,
804
+ content,
805
+ preview,
805
806
  isPill = false,
806
807
  pillText,
807
808
  pillStatus,
@@ -859,9 +860,9 @@ const Accordion = _ref => {
859
860
  className: "w-4 h-4 text-[--color-text-strong] transition-transform transform ".concat(isActive ? 'rotate-180' : 'rotate-0')
860
861
  }))))), isActive && /*#__PURE__*/external_react_default().createElement("div", {
861
862
  className: "accordion-body rounded-b-lg text-[--color-text-weak] bg-[--color-accordion-body] border-0 border-t-2 border-solid border-[--color-stroke] p-3"
862
- }, children.content), isPreview && activeIndex !== index && /*#__PURE__*/external_react_default().createElement("div", {
863
+ }, content), isPreview && activeIndex !== index && /*#__PURE__*/external_react_default().createElement("div", {
863
864
  className: "accordion-body rounded-b-lg bg-[--color-accordion-body] text-[--color-text-weak] border-0 border-t-2 border-solid border-[--color-stroke] p-3"
864
- }, children.preview));
865
+ }, preview));
865
866
  };
866
867
  /* harmony default export */ const Accordions_Accordion = (Accordion);
867
868
  // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
@@ -3737,11 +3738,11 @@ function Button(_ref) {
3737
3738
  } = _ref;
3738
3739
  // Define styles for button ranks
3739
3740
  const rankStyles = {
3740
- primary: 'bg-[--color-primary-btn] hover:bg-[--color-primary-btn-hover] text-[--color-primary-btn-txt]',
3741
+ primary: 'bg-[--color-primary-btn] hover:bg-[--color-primary-btn-hover] text-[--color-primary-btn-txt] border-solid border-2 border-[--color-primary-btn] hover:border-[--color-primary-btn-hover]',
3741
3742
  secondary: 'bg-transparent border-2 border-[--color-primary-btn] hover:border-[--color-secondary-btn-hover] hover:text-[--color-secondary-btn-hover] text-[--color-primary-btn]',
3742
3743
  tertiary: 'bg-transparent underline text-[--color-text-strong]',
3743
3744
  outline: 'bg-[--color-input-bg] border-solid border-2 border-[--color-outline-btn] hover:border-[--color-outline-btn-hover] text-[--color-text-strong]',
3744
- destructive: 'bg-[--color-destructive-btn] hover:bg-[--color-destructive-btn-hover] text-[--color-destructive-btn-txt]'
3745
+ destructive: 'bg-[--color-destructive-btn] hover:bg-[--color-destructive-btn-hover] text-[--color-destructive-btn-txt] border-solid border-2 border-[--color-destructive-btn] hover:border-[--color-destructive-btn-hover]'
3745
3746
  };
3746
3747
 
3747
3748
  // Disabled styles for button
@@ -3922,7 +3923,6 @@ const Input = /*#__PURE__*/(0,external_react_.forwardRef)((_ref, ref) => {
3922
3923
  value: value,
3923
3924
  title: title,
3924
3925
  tabIndex: tabIndex,
3925
- "aria-label": title,
3926
3926
  required: required,
3927
3927
  disabled: disabled,
3928
3928
  "data-cy": getDataCy({
@@ -4081,7 +4081,6 @@ function DatePicker(_ref) {
4081
4081
  ref: inputRef,
4082
4082
  value: selectedDate,
4083
4083
  title: title,
4084
- "aria-label": title,
4085
4084
  onChange: handleDateChange,
4086
4085
  required: required,
4087
4086
  disabled: disabled,
@@ -4173,7 +4172,6 @@ const RadioButton = _ref => {
4173
4172
  type: "radio",
4174
4173
  tabIndex: tabIndex,
4175
4174
  title: title,
4176
- "aria-label": title,
4177
4175
  name: name,
4178
4176
  value: option.value,
4179
4177
  checked: selectedValue === option.value,
@@ -4213,6 +4211,7 @@ function Checkbox(_ref) {
4213
4211
  dataCy
4214
4212
  } = _ref;
4215
4213
  const id = "checkbox-".concat(name);
4214
+ const errorId = "".concat(id, "-error");
4216
4215
  return /*#__PURE__*/external_react_default().createElement("div", {
4217
4216
  className: "flex flex-col mb-4"
4218
4217
  }, /*#__PURE__*/external_react_default().createElement("div", {
@@ -4228,12 +4227,19 @@ function Checkbox(_ref) {
4228
4227
  name,
4229
4228
  dataCy
4230
4229
  }),
4231
- className: "mr-2 rounded-sm ".concat(disabled ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer')
4230
+ "aria-invalid": !isValid,
4231
+ "aria-describedby": !isValid && errorMessage ? errorId : undefined,
4232
+ "aria-disabled": disabled,
4233
+ style: {
4234
+ accentColor: 'var(--color-primary-btn)'
4235
+ },
4236
+ className: "\n mr-2 \n rounded-sm\n ".concat(disabled ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer')
4232
4237
  }), /*#__PURE__*/external_react_default().createElement(Text, {
4233
4238
  variant: "label",
4234
4239
  as: "label",
4235
4240
  htmlFor: id
4236
4241
  }, label)), !isValid && errorMessage && /*#__PURE__*/external_react_default().createElement(Text, {
4242
+ id: errorId,
4237
4243
  variant: "small",
4238
4244
  as: "span",
4239
4245
  className: "text-[--color-util-red] mt-1"
@@ -12865,7 +12871,6 @@ function Dropdown(_ref) {
12865
12871
  id: name,
12866
12872
  name: name,
12867
12873
  title: title,
12868
- "aria-label": title,
12869
12874
  "aria-invalid": !isValid,
12870
12875
  "aria-describedby": !isValid ? "".concat(name, "-error") : undefined,
12871
12876
  tabIndex: tabIndex,