@midas-ds/components 16.2.5 → 16.3.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/CHANGELOG.md +16 -0
- package/accordion/index.js +1 -1
- package/assets/Select.css +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +1 -1
- package/character-counter/CharacterCounter.d.ts +1 -3
- package/character-counter/index.js +1 -1
- package/checkbox/Checkbox.d.ts +3 -2
- package/checkbox/CheckboxGroupItem.d.ts +1 -1
- package/checkbox/CheckboxInner.d.ts +1 -2
- package/checkbox/SingleCheckbox.d.ts +1 -1
- package/checkbox/index.js +2 -2
- package/checkbox/types.d.ts +0 -1
- package/chunks/{AccordionItem-BUUDZ7l6.js → AccordionItem-D6vWtoJN.js} +2 -2
- package/chunks/{Button-wBgWrXj3.js → Button-BYrLbzir.js} +1 -1
- package/chunks/CharacterCounter-R6vh7AE5.js +22 -0
- package/chunks/Checkbox-BTAfwDxU.js +130 -0
- package/chunks/{CheckboxGroup-A7UJMi5J.js → CheckboxGroup-C6LIpj_R.js} +4 -4
- package/chunks/{ColorSchemeSwitch-DugvPh6T.js → ColorSchemeSwitch-D-vCkxQo.js} +1 -1
- package/chunks/{ComboBox-yl5zHYPk.js → ComboBox-CzwpRxSH.js} +3 -3
- package/chunks/{DateField-BsT1K-bB.js → DateField-DPJrihTz.js} +2 -2
- package/chunks/{DateRangePicker-BsK7pMRv.js → DateRangePicker-DzgK_p0d.js} +3 -3
- package/chunks/{Dialog-DC0cGNj5.js → Dialog-DprWZBKT.js} +2 -2
- package/chunks/{FeedbackStatusIcon-COWuMusk.js → FeedbackStatusIcon-YJaUAfjp.js} +1 -1
- package/chunks/FieldError-Bra5aRT3.js +24 -0
- package/chunks/{InfoBanner-DLiVpNON.js → InfoBanner-BOKZ4lBE.js} +3 -3
- package/chunks/{Label-Dup4lWaR.js → Label-6SXmzRZE.js} +2 -2
- package/chunks/{Layout-DX3HUm5b.js → Layout-DveMXIKw.js} +3 -3
- package/chunks/{ListBoxLoadMoreItem-CB67meAb.js → ListBoxLoadMoreItem-CygpsU3W.js} +2 -2
- package/chunks/{Logo-InDSslpO.js → Logo-CsWcKqIg.js} +1 -1
- package/chunks/{ProgressBar-CbwvcHvk.js → ProgressBar-67lCngwJ.js} +1 -1
- package/chunks/{Radio-CSFYbin8.js → Radio-XQA8CylD.js} +2 -2
- package/chunks/{RangeCalendar-BF-6p7u2.js → RangeCalendar-Bt8q3FZi.js} +2 -2
- package/chunks/{SearchField-mBHZ9pFg.js → SearchField-CxoPi6Ql.js} +3 -3
- package/chunks/Select-BNCz_ox4.js +221 -0
- package/chunks/{Select-BjD5iQvX.js → Select-CyYUhMOg.js} +6 -6
- package/chunks/{Spinner-BORNnHph.js → Spinner-tvJ7rPiT.js} +1 -1
- package/chunks/{Table-t3rVzb31.js → Table-BgsgXhC_.js} +1 -1
- package/chunks/{Tag-DxBoeE_n.js → Tag-BKcduKRR.js} +1 -1
- package/chunks/TextArea-BM5wOL3b.js +137 -0
- package/chunks/{Toast-DTwUGSJ8.js → Toast-C-EV39pd.js} +2 -2
- package/chunks/useLocalizedStringFormatter-BHvsRxDk.js +25 -0
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.js +1 -1
- package/date-picker/index.js +1 -1
- package/field-error/FieldError.d.ts +1 -3
- package/field-error/index.js +1 -1
- package/index.d.ts +1 -0
- package/index.js +68 -66
- package/info-banner/index.js +1 -1
- package/label/index.js +1 -1
- package/layout/index.js +1 -1
- package/legacy-select/Select.d.ts +4 -2
- package/legacy-select/index.js +1 -1
- package/legacy-select/types.d.ts +1 -2
- package/list-box/index.js +1 -1
- package/logo/index.js +1 -1
- package/modal/index.js +1 -1
- package/package.json +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.js +1 -1
- package/select/MultiSelectValue.d.ts +4 -0
- package/select/SelectTrigger.d.ts +4 -2
- package/select/index.js +1 -1
- package/spinner/index.js +1 -1
- package/table/index.js +1 -1
- package/tag/index.js +1 -1
- package/textfield/Input.d.ts +1 -3
- package/textfield/PasswordField.d.ts +1 -1
- package/textfield/TextArea.d.ts +2 -5
- package/textfield/TextField.d.ts +2 -5
- package/textfield/TextFieldBase.d.ts +1 -1
- package/textfield/index.js +1 -1
- package/toast/index.js +1 -1
- package/chunks/CharacterCounter-_m-SgTMV.js +0 -20
- package/chunks/Checkbox-gsEu5wcB.js +0 -119
- package/chunks/FieldError-Bc0acYNs.js +0 -21
- package/chunks/Select-Df4333VV.js +0 -208
- package/chunks/TextArea-B2BePnZz.js +0 -136
- package/chunks/useLocalizedStringFormatter-ZgRJmvHC.js +0 -25
- package/select/SelectValueTag.d.ts +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## 16.3.1 (2026-01-13)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **table-styles:** add pagination component ([#978](https://github.com/migrationsverket/midas/pull/978))
|
|
6
|
+
|
|
7
|
+
## 16.3.0 (2026-01-13)
|
|
8
|
+
|
|
9
|
+
### 🚀 Features
|
|
10
|
+
|
|
11
|
+
- **components:** add displayName to forwardRef components" ([474d161db5](https://github.com/migrationsverket/midas/commit/474d161db5))
|
|
12
|
+
|
|
13
|
+
### 🔙 Rollback changes
|
|
14
|
+
|
|
15
|
+
- Revert "refactor: remove React.forwardRef" ([c4f26cd721](https://github.com/migrationsverket/midas/commit/c4f26cd721))
|
|
16
|
+
|
|
1
17
|
## 16.2.5 (2026-01-09)
|
|
2
18
|
|
|
3
19
|
### 🏭 Refactoring
|
package/accordion/index.js
CHANGED
package/assets/Select.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._select_vdvx3_1{display:flex;flex-direction:column;align-self:stretch}._triggerContainer_vdvx3_7{display:flex;flex-direction:column;position:relative}._trigger_vdvx3_7{align-items:center;background-color:var(--midas-field-01-base);border:none;border-bottom:1px solid var(--midas-border-color-primary);border-radius:0;color:var(--midas-text-primary);display:flex;font-size:var(--midas-typography-font-size-30);gap:var(--midas-spacing-20);justify-content:space-between;min-height:var(--midas-size-150);padding-left:var(--midas-size-70);padding-right:var(--midas-size-70);transition:all .1s ease-in}._trigger_vdvx3_7._medium_vdvx3_29{min-height:var(--midas-size-130)}._trigger_vdvx3_7:focus-visible{outline:none;box-shadow:var(--midas-state-focus);transition:all .1s ease-out}@media(forced-colors:active){._trigger_vdvx3_7:focus-visible{outline:3px solid highlight;outline-offset:2px}}._trigger_vdvx3_7:hover{background-color:var(--midas-field-01-hover);cursor:pointer}._trigger_vdvx3_7[data-disabled]{cursor:not-allowed;background:var(--midas-field-disabled);color:var(--midas-text-disabled);border-color:var(--midas-border-color-disabled)}._trigger_vdvx3_7[data-invalid]:not(:focus-visible){border:none;box-shadow:inset 0 0 0 2px var(--midas-support-border-warning)}@media(forced-colors:active){._trigger_vdvx3_7[data-invalid]:not(:focus-visible){border:5px solid Highlight!important}}._trigger_vdvx3_7[data-open] ._icon_vdvx3_66 svg{transform:rotate(180deg)}._selectValue_vdvx3_72{color:var(--midas-text-primary);font-family:var(--midas-typography-font-family);line-height:var(--midas-typography-line-height-30);max-width:calc(100% - var(--midas-spacing-90))}._selectValue_vdvx3_72 ._placeholder_vdvx3_78{display:flex}._selectValue_vdvx3_72[data-disabled]{color:var(--midas-text-disabled);cursor:not-allowed}._multiSelectValue_vdvx3_88{pointer-events:none;color:var(--midas-text-primary);font-family:var(--midas-typography-font-family);line-height:var(--midas-typography-line-height-30);position:absolute;top:50%;transform:translateY(-50%);max-width:calc(100% - var(--midas-spacing-90))}._multiSelectValue_vdvx3_88 ._placeholder_vdvx3_78{align-items:center;display:flex;justify-content:center;left:var(--midas-spacing-50);position:relative}._multiSelectValue_vdvx3_88[data-disabled]{color:var(--midas-text-disabled);cursor:not-allowed}._selectValueTag_vdvx3_112{align-items:center;background-color:var(--midas-button-background-primary-base);border-radius:1.25rem;color:var(--midas-text-on-color);display:flex;font-size:.875rem;justify-content:center;left:var(--midas-spacing-30);min-height:1.75rem;padding:0 .5rem;pointer-events:all;position:relative}._selectValueTag_vdvx3_112:has(._clearButton_vdvx3_126){padding-right:0}._selectValueTag_vdvx3_112[data-disabled]{background-color:var(--midas-field-disabled);border:1px solid var(--midas-border-color-disabled);color:var(--midas-text-disabled);pointer-events:none}._truncate_vdvx3_138{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._clearButton_vdvx3_126{background-color:var(--midas-button-background-primary-base);border:none;border-radius:100%;color:var(--midas-text-on-color);display:flex;margin-left:var(--midas-size-10);padding:var(--midas-size-30)}._clearButton_vdvx3_126:hover{background-color:var(--midas-button-background-primary-hover);cursor:pointer}._clearButton_vdvx3_126[data-disabled]{background-color:var(--midas-button-background-disabled);color:var(--midas-text-disabled);pointer-events:none}._clearButton_vdvx3_126:focus-visible{box-shadow:var(--midas-state-focus);outline:none}@media(forced-colors:active){._clearButton_vdvx3_126:focus-visible{outline:3px solid highlight;outline-offset:2px}}._popover_vdvx3_175{font-size:var(--midas-typography-font-size-30);padding:0}._popover_vdvx3_175 :focus{outline:none}._popover_vdvx3_175[data-trigger=Select]{min-width:var(--trigger-width);transition:transform .2s ease-in-out,opacity .2s ease-in-out;opacity:1}._popover_vdvx3_175[data-trigger=Select][data-entering],._popover_vdvx3_175[data-trigger=Select][data-exiting]{opacity:0}._popover_vdvx3_175 ._selectAll_vdvx3_201{width:100%;box-sizing:border-box;background-color:var(--midas-layer-01-base);color:var(--midas-text-primary);display:flex;font-family:var(--midas-typography-font-family);line-height:1;margin-bottom:2px!important;padding:var(--midas-size-80);transition:background-color 60ms}._popover_vdvx3_175 ._selectAll_vdvx3_201:hover:not([data-disabled]){background-color:var(--midas-layer-01-hover);cursor:pointer;transition-delay:60ms}._popover_vdvx3_175 ._selectAll_vdvx3_201:hover:not([data-disabled]) div{border-color:var(--midas-text-primary)}._popover_vdvx3_175 ._selectAll_vdvx3_201[data-disabled]{color:var(--midas-text-disabled);cursor:not-allowed}._popover_vdvx3_175 ._selectAll_vdvx3_201[data-selected]{background-color:var(--midas-layer-01-selected-hover)}._popover_vdvx3_175 ._selectAll_vdvx3_201[data-selected]:hover:not([data-disabled]){background-color:var(--midas-layer-01-selected-hover);transition-delay:60ms}._popover_vdvx3_175 ._selectAll_vdvx3_201[data-selected]:hover:not([data-disabled]) div{border-color:transparent}._popover_vdvx3_175 ._selectAll_vdvx3_201[data-focused]{outline:none;box-shadow:none}@media(forced-colors:active){._popover_vdvx3_175 ._selectAll_vdvx3_201[data-focused]{outline:var(--midas-state-focus-contrast-mode-outline) solid highlight!important;outline-offset:calc(var(--midas-state-focus-contrast-mode-outline) * -1)}}._popover_vdvx3_175 ._selectAll_vdvx3_201[data-focus-visible]{box-shadow:var(--midas-state-focus-inset);outline:none}._popover_vdvx3_175 ._selectAll_vdvx3_201[data-hovered] div{border-color:var(--midas-button-background-primary-hover)}._tagGroup_vdvx3_264{margin-top:var(--midas-size-40)}@media(prefers-reduced-motion){._trigger_vdvx3_7,._popover_vdvx3_175[data-trigger=Select],._selectAll_vdvx3_201{transition:none}}
|
package/button/index.js
CHANGED
package/calendar/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { Ref } from 'react';
|
|
2
1
|
import { InputProps } from 'react-aria-components';
|
|
3
2
|
export interface CharacterCounterProps extends InputProps {
|
|
4
3
|
isLonely?: boolean;
|
|
5
|
-
ref?: Ref<HTMLInputElement>;
|
|
6
4
|
}
|
|
7
|
-
export declare const CharacterCounter: (
|
|
5
|
+
export declare const CharacterCounter: import('react').ForwardRefExoticComponent<CharacterCounterProps & import('react').RefAttributes<HTMLInputElement>>;
|
package/checkbox/Checkbox.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const Checkbox: import('react').ForwardRefExoticComponent<import('react-aria').AriaCheckboxProps & import('react-aria-components').SlotProps & {
|
|
2
|
+
className?: string;
|
|
3
|
+
} & import('react').RefAttributes<HTMLLabelElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CheckboxGroupItemProps } from './types';
|
|
2
|
-
export declare const CheckBoxGroupItem: (
|
|
2
|
+
export declare const CheckBoxGroupItem: import('react').ForwardRefExoticComponent<CheckboxGroupItemProps & import('react').RefAttributes<HTMLLabelElement>>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const CheckboxInner: ({ ref, ...props }: CheckboxInnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare const CheckboxInner: import('react').ForwardRefExoticComponent<import('./types').CheckboxComponentProps & import('react-aria').CheckboxAria & import('react').RefAttributes<HTMLLabelElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CheckboxComponentProps } from './types';
|
|
2
|
-
export declare const SingleCheckbox: (
|
|
2
|
+
export declare const SingleCheckbox: import('react').ForwardRefExoticComponent<CheckboxComponentProps & import('react').RefAttributes<HTMLLabelElement>>;
|
package/checkbox/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e } from "../chunks/Checkbox-
|
|
2
|
-
import { C } from "../chunks/CheckboxGroup-
|
|
1
|
+
import { C as e } from "../chunks/Checkbox-BTAfwDxU.js";
|
|
2
|
+
import { C } from "../chunks/CheckboxGroup-C6LIpj_R.js";
|
|
3
3
|
export {
|
|
4
4
|
e as Checkbox,
|
|
5
5
|
C as CheckboxGroup
|
package/checkbox/types.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { SlotProps } from 'react-aria-components';
|
|
|
3
3
|
import { CheckboxGroupState } from 'react-stately';
|
|
4
4
|
export type CheckboxProps = AriaCheckboxProps & SlotProps & {
|
|
5
5
|
className?: string;
|
|
6
|
-
ref?: React.Ref<HTMLLabelElement>;
|
|
7
6
|
};
|
|
8
7
|
export interface CheckboxComponentProps extends CheckboxProps {
|
|
9
8
|
focusRingAria: FocusRingAria;
|
|
@@ -2,9 +2,9 @@ import { jsx as t, jsxs as u } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as _ } from "./clsx-AexbMWKp.js";
|
|
3
3
|
import { DisclosureGroup as v, Disclosure as x, DisclosurePanel as C } from "react-aria-components";
|
|
4
4
|
import { createContext as I, useContext as N, useEffect as B } from "react";
|
|
5
|
-
import { B as k } from "./Button-
|
|
5
|
+
import { B as k } from "./Button-BYrLbzir.js";
|
|
6
6
|
import { H as w } from "./Heading-D8tNNJkt.js";
|
|
7
|
-
import { F as A } from "./FeedbackStatusIcon-
|
|
7
|
+
import { F as A } from "./FeedbackStatusIcon-YJaUAfjp.js";
|
|
8
8
|
import { C as T } from "./chevron-down-DgT-uSF9.js";
|
|
9
9
|
import '../assets/AccordionItem.css';const D = "_root_17bdp_1", M = "_contained_17bdp_5", a = {
|
|
10
10
|
root: D,
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as c, Fragment as l } from "react/jsx-runtime";
|
|
|
2
2
|
import { B as r } from "./Button.module-Cm0H98vy.js";
|
|
3
3
|
import { Button as u } from "react-aria-components";
|
|
4
4
|
import { c as p } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import { S as g } from "./Spinner-
|
|
5
|
+
import { S as g } from "./Spinner-tvJ7rPiT.js";
|
|
6
6
|
const S = ({
|
|
7
7
|
variant: i = "primary",
|
|
8
8
|
fullwidth: o,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as i } from "react";
|
|
3
|
+
import { useContextProps as d, InputContext as h } from "react-aria-components";
|
|
4
|
+
import '../assets/CharacterCounter.css';const C = "_characterCounter_1f0mh_1", m = {
|
|
5
|
+
characterCounter: C
|
|
6
|
+
}, u = i((t, a) => {
|
|
7
|
+
[t] = d(t, a, h);
|
|
8
|
+
const { maxLength: e, value: n, isLonely: c } = t, { length: r } = n?.toString() ?? "", o = e !== void 0;
|
|
9
|
+
return /* @__PURE__ */ s(
|
|
10
|
+
"span",
|
|
11
|
+
{
|
|
12
|
+
className: m.characterCounter,
|
|
13
|
+
"data-exceeded": o && r > e || void 0,
|
|
14
|
+
"data-lonely": c || void 0,
|
|
15
|
+
children: o ? `${r} / ${e}` : r
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
});
|
|
19
|
+
u.displayName = "CharacterCounter";
|
|
20
|
+
export {
|
|
21
|
+
u as C
|
|
22
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { jsxs as C, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import f, { forwardRef as l, useContext as R, useRef as _ } from "react";
|
|
3
|
+
import { mergeProps as h, VisuallyHidden as I, useCheckboxGroupItem as y, useCheckbox as P, useHover as g, usePress as G, useFocusRing as N } from "react-aria";
|
|
4
|
+
import { useContextProps as z, CheckboxContext as B, useSlottedContext as S, FormContext as F } from "react-aria-components";
|
|
5
|
+
import { a as x } from "./clsx-AexbMWKp.js";
|
|
6
|
+
import { variables as m } from "@midas-ds/theme";
|
|
7
|
+
import { c as L } from "./createLucideIcon-D4r5Phnh.js";
|
|
8
|
+
import { C as D } from "./check-BxlvVsvD.js";
|
|
9
|
+
import { useToggleState as H } from "@react-stately/toggle";
|
|
10
|
+
import '../assets/Checkbox.css';const O = [["path", { d: "M5 12h14", key: "1ays0h" }]], j = L("minus", O), q = f.createContext(null), A = "_checkboxInner_tzrii_1", M = "_checkbox_tzrii_1", V = "_checkboxGroup_tzrii_143", w = "_checkboxList_tzrii_154", b = {
|
|
11
|
+
checkboxInner: A,
|
|
12
|
+
checkbox: M,
|
|
13
|
+
checkboxGroup: V,
|
|
14
|
+
checkboxList: w
|
|
15
|
+
}, u = l(
|
|
16
|
+
(e, o) => {
|
|
17
|
+
const { hoverProps: i, isHovered: c } = e.hoverResult, { pressProps: s, isPressed: n } = e.pressResult, { isFocused: a, isFocusVisible: r, focusProps: d } = e.focusRingAria;
|
|
18
|
+
return /* @__PURE__ */ C(
|
|
19
|
+
"label",
|
|
20
|
+
{
|
|
21
|
+
ref: o,
|
|
22
|
+
...h(i, s, e.labelProps),
|
|
23
|
+
slot: e.slot || void 0,
|
|
24
|
+
className: x(b.checkbox, e.className),
|
|
25
|
+
"data-hovered": c || void 0,
|
|
26
|
+
"data-selected": e.isSelected || void 0,
|
|
27
|
+
"data-indeterminate": e.isIndeterminate || void 0,
|
|
28
|
+
"data-pressed": n || void 0,
|
|
29
|
+
"data-disabled": e.isDisabled || void 0,
|
|
30
|
+
"data-readonly": e.isReadOnly || void 0,
|
|
31
|
+
"data-invalid": e.isInvalid || void 0,
|
|
32
|
+
"data-focused": a || void 0,
|
|
33
|
+
"data-focus-visible": r || void 0,
|
|
34
|
+
"data-required": e.isRequired || void 0,
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ t("div", { className: x(b.checkboxInner), children: e.isIndeterminate ? /* @__PURE__ */ t(
|
|
37
|
+
j,
|
|
38
|
+
{
|
|
39
|
+
size: 14,
|
|
40
|
+
color: m.iconOnColor
|
|
41
|
+
}
|
|
42
|
+
) : /* @__PURE__ */ t(
|
|
43
|
+
D,
|
|
44
|
+
{
|
|
45
|
+
size: 14,
|
|
46
|
+
color: m.iconOnColor
|
|
47
|
+
}
|
|
48
|
+
) }),
|
|
49
|
+
/* @__PURE__ */ t(I, { children: /* @__PURE__ */ t(
|
|
50
|
+
"input",
|
|
51
|
+
{
|
|
52
|
+
...h(e.inputProps, d),
|
|
53
|
+
ref: e.inputRef
|
|
54
|
+
}
|
|
55
|
+
) }),
|
|
56
|
+
e.children
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
u.displayName = "CheckboxInner";
|
|
63
|
+
const v = l((e, o) => {
|
|
64
|
+
const i = y(
|
|
65
|
+
{
|
|
66
|
+
...e,
|
|
67
|
+
value: e.value || ""
|
|
68
|
+
},
|
|
69
|
+
e.state,
|
|
70
|
+
e.inputRef
|
|
71
|
+
);
|
|
72
|
+
return /* @__PURE__ */ t(
|
|
73
|
+
u,
|
|
74
|
+
{
|
|
75
|
+
...e,
|
|
76
|
+
...i,
|
|
77
|
+
ref: o
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
});
|
|
81
|
+
v.displayName = "CheckBoxGroupItem";
|
|
82
|
+
const k = l((e, o) => {
|
|
83
|
+
const i = P(e, H(e), e.inputRef);
|
|
84
|
+
return /* @__PURE__ */ t(
|
|
85
|
+
u,
|
|
86
|
+
{
|
|
87
|
+
...e,
|
|
88
|
+
...i,
|
|
89
|
+
ref: o
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
});
|
|
93
|
+
k.displayName = "SingleCheckbox";
|
|
94
|
+
const T = l(
|
|
95
|
+
(e, o) => {
|
|
96
|
+
[e, o] = z(e, o, B);
|
|
97
|
+
const i = S(F), c = e.validationBehavior ?? i?.validationBehavior ?? "native", s = R(q), n = _(null), a = g(e), r = G({
|
|
98
|
+
ref: o,
|
|
99
|
+
isDisabled: e.isDisabled
|
|
100
|
+
}), d = N();
|
|
101
|
+
return s ? /* @__PURE__ */ t(
|
|
102
|
+
v,
|
|
103
|
+
{
|
|
104
|
+
...e,
|
|
105
|
+
state: s,
|
|
106
|
+
inputRef: n,
|
|
107
|
+
hoverResult: a,
|
|
108
|
+
pressResult: r,
|
|
109
|
+
focusRingAria: d,
|
|
110
|
+
validationBehavior: c
|
|
111
|
+
}
|
|
112
|
+
) : /* @__PURE__ */ t(
|
|
113
|
+
k,
|
|
114
|
+
{
|
|
115
|
+
...e,
|
|
116
|
+
inputRef: n,
|
|
117
|
+
hoverResult: a,
|
|
118
|
+
pressResult: r,
|
|
119
|
+
focusRingAria: d,
|
|
120
|
+
validationBehavior: c
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
);
|
|
125
|
+
T.displayName = "Checkbox";
|
|
126
|
+
export {
|
|
127
|
+
T as C,
|
|
128
|
+
q as a,
|
|
129
|
+
b as s
|
|
130
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as o, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import { useCheckboxGroup as C } from "react-aria";
|
|
3
3
|
import { useCheckboxGroupState as v } from "react-stately";
|
|
4
|
-
import { a as k, L as S } from "./Label-
|
|
4
|
+
import { a as k, L as S } from "./Label-6SXmzRZE.js";
|
|
5
5
|
import { T as y } from "./Text-TWzJxnto.js";
|
|
6
6
|
import * as r from "react";
|
|
7
|
-
import { C as d, s as u, a as g } from "./Checkbox-
|
|
7
|
+
import { C as d, s as u, a as g } from "./Checkbox-BTAfwDxU.js";
|
|
8
8
|
import { FieldErrorContext as A } from "react-aria-components";
|
|
9
|
-
import { F as P } from "./FieldError-
|
|
10
|
-
import { u as V } from "./useLocalizedStringFormatter-
|
|
9
|
+
import { F as P } from "./FieldError-Bra5aRT3.js";
|
|
10
|
+
import { u as V } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
11
11
|
const F = (e, { value: t }) => {
|
|
12
12
|
const a = r.Children.toArray(e).filter(
|
|
13
13
|
(l) => r.isValidElement(l) && l.type === d
|
|
@@ -3,7 +3,7 @@ import * as i from "react";
|
|
|
3
3
|
import { VisuallyHidden as a } from "react-aria";
|
|
4
4
|
import { a as y, T as r } from "./ToggleButtonGroup-CXKTrLbb.js";
|
|
5
5
|
import { c as d } from "./createLucideIcon-D4r5Phnh.js";
|
|
6
|
-
import { u } from "./useLocalizedStringFormatter-
|
|
6
|
+
import { u } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
7
7
|
import '../assets/ColorSchemeSwitch.css';const g = [
|
|
8
8
|
[
|
|
9
9
|
"path",
|
|
@@ -2,13 +2,13 @@ import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import g from "react";
|
|
3
3
|
import { ComboBox as y, Input as B, Button as F, Collection as w } from "react-aria-components";
|
|
4
4
|
import { c as s } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import { a as C, L as S } from "./Label-
|
|
5
|
+
import { a as C, L as S } from "./Label-6SXmzRZE.js";
|
|
6
6
|
import { T as u } from "./Text-TWzJxnto.js";
|
|
7
|
-
import { F as h } from "./FieldError-
|
|
7
|
+
import { F as h } from "./FieldError-Bra5aRT3.js";
|
|
8
8
|
import { L as v } from "./ListBox-D5BBeZWL.js";
|
|
9
9
|
import { a as R, L as N, b as E } from "./ListBoxSection-MZB_5DdD.js";
|
|
10
10
|
import { C as I } from "./chevron-down-DgT-uSF9.js";
|
|
11
|
-
import { u as T } from "./useLocalizedStringFormatter-
|
|
11
|
+
import { u as T } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
12
12
|
import '../assets/ComboBox.css';const j = "_combobox_47hgd_1", O = "_inputField_47hgd_6", U = "_medium_47hgd_28", z = "_wrap_47hgd_74", D = "_button_47hgd_80", M = "_icon_47hgd_116", V = "_emptyState_47hgd_122", t = {
|
|
13
13
|
combobox: j,
|
|
14
14
|
inputField: O,
|
|
@@ -2,8 +2,8 @@ import { jsxs as F, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { DateField as u } from "react-aria-components";
|
|
3
3
|
import { c as m } from "./clsx-AexbMWKp.js";
|
|
4
4
|
import { a as _, D as f } from "./DateInputDivider-CkTB5q5k.js";
|
|
5
|
-
import { F as s } from "./FieldError-
|
|
6
|
-
import { a as h, L as D } from "./Label-
|
|
5
|
+
import { F as s } from "./FieldError-Bra5aRT3.js";
|
|
6
|
+
import { a as h, L as D } from "./Label-6SXmzRZE.js";
|
|
7
7
|
import { T as b } from "./Text-TWzJxnto.js";
|
|
8
8
|
import '../assets/DateField.css';const x = "_dateField_y3sba_1", y = "_inputField_y3sba_7", L = "_medium_y3sba_37", i = {
|
|
9
9
|
dateField: x,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Group as P, Button as b, Popover as f, Dialog as v, DatePicker as x, DateRangePicker as F } from "react-aria-components";
|
|
3
3
|
import { a as m } from "./clsx-AexbMWKp.js";
|
|
4
|
-
import { C as M, R as N } from "./RangeCalendar-
|
|
4
|
+
import { C as M, R as N } from "./RangeCalendar-Bt8q3FZi.js";
|
|
5
5
|
import { a as p, D as k, b as B } from "./DateInputDivider-CkTB5q5k.js";
|
|
6
|
-
import { F as h } from "./FieldError-
|
|
7
|
-
import { a as u, L as y } from "./Label-
|
|
6
|
+
import { F as h } from "./FieldError-Bra5aRT3.js";
|
|
7
|
+
import { a as u, L as y } from "./Label-6SXmzRZE.js";
|
|
8
8
|
import { T as _ } from "./Text-TWzJxnto.js";
|
|
9
9
|
import { c as C } from "./createLucideIcon-D4r5Phnh.js";
|
|
10
10
|
import '../assets/DateRangePicker.css';const I = [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as o, jsxs as e } from "react/jsx-runtime";
|
|
2
2
|
import { ModalOverlay as n, Modal as c, Dialog as i } from "react-aria-components";
|
|
3
|
-
import { B as _ } from "./Button-
|
|
3
|
+
import { B as _ } from "./Button-BYrLbzir.js";
|
|
4
4
|
import { H as y } from "./Heading-D8tNNJkt.js";
|
|
5
5
|
import { c as v } from "./clsx-AexbMWKp.js";
|
|
6
6
|
import { X as x } from "./x-BXShoIAM.js";
|
|
7
|
-
import { u as f } from "./useLocalizedStringFormatter-
|
|
7
|
+
import { u as f } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
8
8
|
import '../assets/Dialog.css';const h = "_modal_nxs78_1", p = "_overlay_nxs78_24", g = "_modalHeader_nxs78_48", B = "_modalTitle_nxs78_59", H = "_modalBody_nxs78_65", a = {
|
|
9
9
|
modal: h,
|
|
10
10
|
overlay: p,
|
|
@@ -2,7 +2,7 @@ import { jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as n } from "./createLucideIcon-D4r5Phnh.js";
|
|
3
3
|
import { I as m } from "./info-kdfED7Wh.js";
|
|
4
4
|
import { C as c } from "./check-BxlvVsvD.js";
|
|
5
|
-
import { u as f } from "./useLocalizedStringFormatter-
|
|
5
|
+
import { u as f } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
6
6
|
const p = [
|
|
7
7
|
[
|
|
8
8
|
"path",
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as n, useContext as f } from "react";
|
|
3
|
+
import { FieldErrorContext as c, FieldError as d } from "react-aria-components";
|
|
4
|
+
import { c as a } from "./clsx-AexbMWKp.js";
|
|
5
|
+
import { T as m } from "./Text-TWzJxnto.js";
|
|
6
|
+
import '../assets/FieldError.css';const E = "_fieldError_u3cks_1", u = {
|
|
7
|
+
fieldError: E
|
|
8
|
+
}, x = n(
|
|
9
|
+
(r, s) => {
|
|
10
|
+
const { children: o, isInvalid: l } = r, e = a(u.fieldError, r.className), t = f(c);
|
|
11
|
+
return !t && l && typeof o != "function" ? /* @__PURE__ */ i(m, { className: e, children: o }) : t?.isInvalid ? /* @__PURE__ */ i(
|
|
12
|
+
d,
|
|
13
|
+
{
|
|
14
|
+
...r,
|
|
15
|
+
ref: s,
|
|
16
|
+
className: e
|
|
17
|
+
}
|
|
18
|
+
) : null;
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
x.displayName = "FieldError";
|
|
22
|
+
export {
|
|
23
|
+
x as F
|
|
24
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as e, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import * as h from "react";
|
|
3
3
|
import { c as j } from "./clsx-AexbMWKp.js";
|
|
4
|
-
import { B as x } from "./Button-
|
|
5
|
-
import { F as B } from "./FeedbackStatusIcon-
|
|
4
|
+
import { B as x } from "./Button-BYrLbzir.js";
|
|
5
|
+
import { F as B } from "./FeedbackStatusIcon-YJaUAfjp.js";
|
|
6
6
|
import { X as N } from "./x-BXShoIAM.js";
|
|
7
|
-
import { u as b } from "./useLocalizedStringFormatter-
|
|
7
|
+
import { u as b } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
8
8
|
import '../assets/InfoBanner.css';const v = "_infoBanner_1oj11_1", S = "_success_1oj11_11", w = "_info_1oj11_1", C = "_important_1oj11_21", F = "_warning_1oj11_26", I = "_content_1oj11_40", z = "_heading_1oj11_46", O = "_text_1oj11_51", k = "_icon_1oj11_57", y = "_dismissable_1oj11_66", s = {
|
|
9
9
|
infoBanner: v,
|
|
10
10
|
success: S,
|
|
@@ -4,9 +4,9 @@ import s from "react";
|
|
|
4
4
|
import { c as f } from "./clsx-AexbMWKp.js";
|
|
5
5
|
import { DialogTrigger as v, Label as d } from "react-aria-components";
|
|
6
6
|
import { P as g } from "./Popover-BcEtFiU1.js";
|
|
7
|
-
import { B as u } from "./Button-
|
|
7
|
+
import { B as u } from "./Button-BYrLbzir.js";
|
|
8
8
|
import { I as P } from "./info-kdfED7Wh.js";
|
|
9
|
-
import { u as _ } from "./useLocalizedStringFormatter-
|
|
9
|
+
import { u as _ } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
10
10
|
import '../assets/Label.css';const I = "_labelBase_f5wtf_1", x = {
|
|
11
11
|
labelBase: I
|
|
12
12
|
}, L = "_labelPopover_1iatl_1", T = "_labelPopoverTrigger_1iatl_7", m = {
|
|
@@ -4,13 +4,13 @@ import * as N from "react";
|
|
|
4
4
|
import { useState as G, useEffect as W } from "react";
|
|
5
5
|
import { c as u } from "./clsx-AexbMWKp.js";
|
|
6
6
|
import { Link as L, RouterProvider as O } from "react-aria-components";
|
|
7
|
-
import { B as M } from "./Button-
|
|
7
|
+
import { B as M } from "./Button-BYrLbzir.js";
|
|
8
8
|
import { a as j, T as D } from "./Tooltip-m032jGgF.js";
|
|
9
9
|
import { a as y, B as I } from "./BadgeContainer-CKVsfTlF.js";
|
|
10
10
|
import { c as E } from "./createLucideIcon-D4r5Phnh.js";
|
|
11
|
-
import { u as C } from "./useLocalizedStringFormatter-
|
|
11
|
+
import { u as C } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
12
12
|
import { variables as q } from "@midas-ds/theme";
|
|
13
|
-
import { L as g } from "./Logo-
|
|
13
|
+
import { L as g } from "./Logo-CsWcKqIg.js";
|
|
14
14
|
import { X as A } from "./x-BXShoIAM.js";
|
|
15
15
|
import '../assets/Layout.css';const R = [
|
|
16
16
|
["path", { d: "M4 12h16", key: "1lakjw" }],
|
|
@@ -2,8 +2,8 @@ import { jsx as o, jsxs as m, Fragment as d } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as e } from "./clsx-AexbMWKp.js";
|
|
3
3
|
import { s as a } from "./ListBox-D5BBeZWL.js";
|
|
4
4
|
import { ListBoxLoadMoreItem as l } from "react-aria-components";
|
|
5
|
-
import { S as c } from "./Spinner-
|
|
6
|
-
import { u as L } from "./useLocalizedStringFormatter-
|
|
5
|
+
import { S as c } from "./Spinner-tvJ7rPiT.js";
|
|
6
|
+
import { u as L } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
7
7
|
const S = ({ className: t, children: s, ...r }) => /* @__PURE__ */ o(
|
|
8
8
|
"button",
|
|
9
9
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c, jsxs as v } from "react/jsx-runtime";
|
|
2
2
|
import { c as o } from "./clsx-AexbMWKp.js";
|
|
3
|
-
import { u as i } from "./useLocalizedStringFormatter-
|
|
3
|
+
import { u as i } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
4
4
|
import '../assets/Logo.css';const m = "_container_191fy_1", p = "_noPadding_191fy_6", g = "_logo_191fy_10", f = "_primary_191fy_15", M = "_dark_191fy_23", Z = "_xSmall_191fy_31", _ = "_small_191fy_35", u = "_large_191fy_39", l = {
|
|
5
5
|
container: m,
|
|
6
6
|
noPadding: p,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s, jsxs as d, Fragment as _ } from "react/jsx-runtime";
|
|
2
2
|
import { ProgressBar as f } from "react-aria-components";
|
|
3
|
-
import { L as t } from "./Label-
|
|
3
|
+
import { L as t } from "./Label-6SXmzRZE.js";
|
|
4
4
|
import { c as l } from "./clsx-AexbMWKp.js";
|
|
5
5
|
import '../assets/ProgressBar.css';const N = "_progressBar_1a2ad_1", g = "_label_1a2ad_9", p = "_value_1a2ad_14", v = "_bar_1a2ad_19", h = "_fill_1a2ad_29", e = {
|
|
6
6
|
progressBar: N,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { Radio as u, RadioGroup as _, Group as f } from "react-aria-components";
|
|
3
3
|
import { c as p } from "./clsx-AexbMWKp.js";
|
|
4
|
-
import { a as G, L as R } from "./Label-
|
|
4
|
+
import { a as G, L as R } from "./Label-6SXmzRZE.js";
|
|
5
5
|
import { T as h } from "./Text-TWzJxnto.js";
|
|
6
|
-
import { F as t } from "./FieldError-
|
|
6
|
+
import { F as t } from "./FieldError-Bra5aRT3.js";
|
|
7
7
|
import '../assets/Radio.css';const x = "_radioGroup_1ls9z_1", w = "_wrap_1ls9z_12", z = "_radio_1ls9z_1", s = {
|
|
8
8
|
radioGroup: x,
|
|
9
9
|
wrap: w,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import { RangeCalendarContext as h, CalendarGrid as C, CalendarCell as g, Calendar as v, RangeCalendar as _ } from "react-aria-components";
|
|
3
3
|
import { c as p, a as l } from "./clsx-AexbMWKp.js";
|
|
4
|
-
import { F as c } from "./FieldError-
|
|
4
|
+
import { F as c } from "./FieldError-Bra5aRT3.js";
|
|
5
5
|
import * as y from "react";
|
|
6
|
-
import { B as i } from "./Button-
|
|
6
|
+
import { B as i } from "./Button-BYrLbzir.js";
|
|
7
7
|
import { H as f } from "./Heading-D8tNNJkt.js";
|
|
8
8
|
import { c as R } from "./createLucideIcon-D4r5Phnh.js";
|
|
9
9
|
import { C as x } from "./chevron-right-GpyqdYK4.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as u, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { s as N } from "./TextField.module-DZslrEPC.js";
|
|
3
|
-
import { B as _ } from "./Button-
|
|
3
|
+
import { B as _ } from "./Button-BYrLbzir.js";
|
|
4
4
|
import { c as l } from "./clsx-AexbMWKp.js";
|
|
5
5
|
import * as x from "react";
|
|
6
6
|
import { useSearchFieldState as j } from "react-stately";
|
|
7
7
|
import { useSearchField as C } from "react-aria";
|
|
8
|
-
import { F as f } from "./FieldError-
|
|
8
|
+
import { F as f } from "./FieldError-Bra5aRT3.js";
|
|
9
9
|
import { c as p } from "./createLucideIcon-D4r5Phnh.js";
|
|
10
10
|
import { X as B } from "./x-BXShoIAM.js";
|
|
11
|
-
import { u as D } from "./useLocalizedStringFormatter-
|
|
11
|
+
import { u as D } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
12
12
|
import '../assets/SearchField.css';const E = [
|
|
13
13
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
14
14
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|