@ensi-platform/admin-ui 0.8.5 → 0.10.0

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.
Files changed (103) hide show
  1. package/dist/{Component-ZIAMtMpP.js → Component-BMol_xnR.js} +2 -2
  2. package/dist/{Component-ZIAMtMpP.js.map → Component-BMol_xnR.js.map} +1 -1
  3. package/dist/{Component-BnSNDZFt.js → Component-BO5LvfoO.js} +2 -2
  4. package/dist/{Component-BnSNDZFt.js.map → Component-BO5LvfoO.js.map} +1 -1
  5. package/dist/{Component-C6mp0LOp.js → Component-BjITARbg.js} +3 -3
  6. package/dist/{Component-C6mp0LOp.js.map → Component-BjITARbg.js.map} +1 -1
  7. package/dist/{Component-CBWeJZfB.js → Component-C24OpTxW.js} +2 -2
  8. package/dist/{Component-CBWeJZfB.js.map → Component-C24OpTxW.js.map} +1 -1
  9. package/dist/{Component-qJGssCB4.js → Component-CD81ynoG.js} +5 -5
  10. package/dist/{Component-qJGssCB4.js.map → Component-CD81ynoG.js.map} +1 -1
  11. package/dist/{Component-CIxKpL6s.js → Component-Cxk1CLsH.js} +2 -2
  12. package/dist/{Component-CIxKpL6s.js.map → Component-Cxk1CLsH.js.map} +1 -1
  13. package/dist/{Component-uHkw3SDR.js → Component-CzwTENBM.js} +2 -2
  14. package/dist/{Component-uHkw3SDR.js.map → Component-CzwTENBM.js.map} +1 -1
  15. package/dist/{Component-D310jlAj.js → Component-D9cY4WmP.js} +2 -2
  16. package/dist/{Component-D310jlAj.js.map → Component-D9cY4WmP.js.map} +1 -1
  17. package/dist/{Component-BPN5FgKq.js → Component-DSAL6avh.js} +2 -2
  18. package/dist/{Component-BPN5FgKq.js.map → Component-DSAL6avh.js.map} +1 -1
  19. package/dist/{Component-DU3MeOen.js → Component-DcSDEfYC.js} +2 -2
  20. package/dist/{Component-DU3MeOen.js.map → Component-DcSDEfYC.js.map} +1 -1
  21. package/dist/{Component-BRHoDRtF.js → Component-DxkpQKZ9.js} +2 -2
  22. package/dist/{Component-BRHoDRtF.js.map → Component-DxkpQKZ9.js.map} +1 -1
  23. package/dist/{Component-B1piMJHv.js → Component-MSGhHMYk.js} +2 -2
  24. package/dist/{Component-B1piMJHv.js.map → Component-MSGhHMYk.js.map} +1 -1
  25. package/dist/{Component-B73be-FU.js → Component-c2va6Tzq.js} +2 -2
  26. package/dist/{Component-B73be-FU.js.map → Component-c2va6Tzq.js.map} +1 -1
  27. package/dist/Component-uzbYiLD9.js +58 -0
  28. package/dist/Component-uzbYiLD9.js.map +1 -0
  29. package/dist/action-popup/index.js +2 -2
  30. package/dist/arrangement-settings/index.js +3 -3
  31. package/dist/assets/Component10.css +1 -1
  32. package/dist/assets/Component11.css +1 -1
  33. package/dist/assets/Component12.css +1 -1
  34. package/dist/assets/Component13.css +1 -1
  35. package/dist/assets/Component14.css +1 -1
  36. package/dist/assets/Component15.css +1 -1
  37. package/dist/assets/Component3.css +1 -1
  38. package/dist/assets/Component4.css +1 -1
  39. package/dist/assets/Component5.css +1 -1
  40. package/dist/assets/Component6.css +1 -1
  41. package/dist/assets/Component7.css +1 -1
  42. package/dist/assets/Component8.css +1 -1
  43. package/dist/assets/Component9.css +1 -1
  44. package/dist/assets/index16.css +1 -1
  45. package/dist/assets/index17.css +1 -1
  46. package/dist/assets/index18.css +1 -1
  47. package/dist/assets/index19.css +1 -1
  48. package/dist/assets/index20.css +1 -1
  49. package/dist/assets/index22.css +1 -1
  50. package/dist/assets/index30.css +1 -1
  51. package/dist/assets/index4.css +1 -1
  52. package/dist/assets/index9.css +1 -1
  53. package/dist/assets/theme2.css +1 -0
  54. package/dist/autocomplete/index.js +2 -2
  55. package/dist/autocomplete-async/index.js +2 -2
  56. package/dist/button/index.js +1 -1
  57. package/dist/cascade-menu/index.js +2 -2
  58. package/dist/checkbox/index.js +2 -2
  59. package/dist/checkbox-group/index.js +1 -1
  60. package/dist/context-menu/index.js +1 -1
  61. package/dist/copy-button/index.js +1 -1
  62. package/dist/data-table/index.js +1 -1
  63. package/dist/date-picker/index.js +1 -1
  64. package/dist/date-range-picker/Component.d.ts.map +1 -1
  65. package/dist/date-range-picker/index.js +207 -179
  66. package/dist/date-range-picker/index.js.map +1 -1
  67. package/dist/date-range-picker/utils.d.ts +24 -0
  68. package/dist/date-range-picker/utils.d.ts.map +1 -0
  69. package/dist/drawer/index.js +1 -1
  70. package/dist/field/index.js +1 -1
  71. package/dist/grid-layout/index.js +1 -1
  72. package/dist/input/index.js +2 -2
  73. package/dist/menu-list/index.js +1 -1
  74. package/dist/modal/index.js +1 -1
  75. package/dist/multi-autocomplete/index.js +2 -2
  76. package/dist/multi-autocomplete-async/index.js +2 -2
  77. package/dist/multi-select/index.js +2 -2
  78. package/dist/number-input/index.js +2 -2
  79. package/dist/number-range/index.js +2 -2
  80. package/dist/select/index.js +2 -2
  81. package/dist/slider/Component.d.ts.map +1 -1
  82. package/dist/slider/index.js +110 -107
  83. package/dist/slider/index.js.map +1 -1
  84. package/dist/suggest-checklist/Component.d.ts.map +1 -1
  85. package/dist/suggest-checklist/index.js +78 -67
  86. package/dist/suggest-checklist/index.js.map +1 -1
  87. package/dist/switch/index.js +1 -1
  88. package/dist/table/index.js +1 -1
  89. package/dist/test/axe.d.ts +16 -0
  90. package/dist/test/axe.d.ts.map +1 -0
  91. package/dist/textarea/index.js +2 -2
  92. package/dist/theme-C-N1qQjF.js +35 -0
  93. package/dist/theme-C-N1qQjF.js.map +1 -0
  94. package/dist/time-field/Component.d.ts.map +1 -1
  95. package/dist/time-field/index.js +122 -107
  96. package/dist/time-field/index.js.map +1 -1
  97. package/dist/tooltip/index.js +1 -1
  98. package/package.json +1 -1
  99. package/src/date-range-picker/docs/Description.md +2 -0
  100. package/src/time-field/docs/Description.md +2 -0
  101. package/dist/Component-u6K-ylDb.js +0 -85
  102. package/dist/Component-u6K-ylDb.js.map +0 -1
  103. package/dist/assets/Component16.css +0 -1
@@ -1,38 +1,38 @@
1
- import { jsx as l, jsxs as k } from "react/jsx-runtime";
2
- import { useState as L } from "react";
3
- import y from "classnames";
4
- import { TimeField as j, Group as x, DateInput as E, DateSegment as G, Button as w } from "react-aria-components";
5
- import { s as S } from "../index-h8z54aFR.js";
6
- import { C as A } from "../Clear-DcxADxz6.js";
7
- import { u as M } from "../hooks-BlX5Y4Zt.js";
8
- import { cva as O } from "class-variance-authority";
9
- import { typographyStyles as C } from "../typography/index.js";
10
- import { F as _, u as R } from "../Component-BPN5FgKq.js";
11
- import { u as U, g as $ } from "../useFieldHook-Bt9nST7g.js";
12
- import '../assets/index14.css';const q = "aub_styles-module_root_184e6", J = "aub_styles-module_block_45f0f", K = "aub_styles-module_group_9f460", Q = "aub_styles-module_sm_f51c2", W = "aub_styles-module_md_be9a9", X = "aub_styles-module_lg_8553c", Y = "aub_styles-module_primary_43afd", Z = "aub_styles-module_input_f5120", ee = "aub_styles-module_segment_b8349", le = "aub_styles-module_clear_04e5c", oe = "aub_styles-module_icon_2d638", e = {
13
- root: q,
14
- block: J,
15
- group: K,
16
- sm: Q,
17
- md: W,
18
- lg: X,
19
- primary: Y,
20
- input: Z,
21
- segment: ee,
22
- clear: le,
23
- icon: oe
24
- }, re = O(e.group, {
1
+ import { jsx as r, jsxs as H } from "react/jsx-runtime";
2
+ import { useState as j, useRef as G } from "react";
3
+ import F from "classnames";
4
+ import { TimeField as M, Group as q, DateInput as w, DateSegment as x, Button as O } from "react-aria-components";
5
+ import { s as L } from "../index-h8z54aFR.js";
6
+ import { C as U } from "../Clear-DcxADxz6.js";
7
+ import { u as $ } from "../hooks-BlX5Y4Zt.js";
8
+ import { cva as J } from "class-variance-authority";
9
+ import { typographyStyles as k } from "../typography/index.js";
10
+ import { F as h, u as K } from "../Component-DSAL6avh.js";
11
+ import { u as Q, g as W } from "../useFieldHook-Bt9nST7g.js";
12
+ import '../assets/index14.css';const X = "aub_styles-module_root_184e6", Y = "aub_styles-module_block_45f0f", Z = "aub_styles-module_group_9f460", ee = "aub_styles-module_sm_f51c2", le = "aub_styles-module_md_be9a9", re = "aub_styles-module_lg_8553c", oe = "aub_styles-module_primary_43afd", te = "aub_styles-module_input_f5120", se = "aub_styles-module_segment_b8349", ae = "aub_styles-module_clear_04e5c", ne = "aub_styles-module_icon_2d638", l = {
13
+ root: X,
14
+ block: Y,
15
+ group: Z,
16
+ sm: ee,
17
+ md: le,
18
+ lg: re,
19
+ primary: oe,
20
+ input: te,
21
+ segment: se,
22
+ clear: ae,
23
+ icon: ne
24
+ }, ie = J(l.group, {
25
25
  variants: {
26
26
  size: {
27
- sm: y(e.sm, C.bodyS),
28
- md: y(e.md, C.bodyS),
29
- lg: y(e.lg, C.bodyM)
27
+ sm: F(l.sm, k.bodyS),
28
+ md: F(l.md, k.bodyS),
29
+ lg: F(l.lg, k.bodyM)
30
30
  },
31
31
  variant: {
32
- primary: e.primary
32
+ primary: l.primary
33
33
  },
34
34
  block: {
35
- true: e.block,
35
+ true: l.block,
36
36
  false: null
37
37
  }
38
38
  },
@@ -41,61 +41,76 @@ import '../assets/index14.css';const q = "aub_styles-module_root_184e6", J = "au
41
41
  variant: "primary",
42
42
  block: !0
43
43
  }
44
- }), se = (o) => o != null, B = S(
44
+ }), ue = (o) => o != null, P = L(
45
45
  ({
46
46
  ref: o,
47
- size: a = "md",
48
- variant: t = "primary",
49
- block: i = !0,
50
- invalid: r = !1,
47
+ size: n = "md",
48
+ variant: i = "primary",
49
+ block: u = !0,
50
+ invalid: t = !1,
51
51
  disabled: s = !1,
52
52
  clear: m = !1,
53
- value: n,
53
+ value: c,
54
54
  defaultValue: d,
55
- onChange: u,
56
- onBlur: f,
57
- className: g,
58
- dataTestId: F,
59
- "aria-label": h,
60
- "aria-labelledby": c,
61
- "aria-describedby": v,
62
- ...p
55
+ onChange: a,
56
+ onBlur: b,
57
+ className: T,
58
+ dataTestId: C,
59
+ "aria-label": v,
60
+ "aria-labelledby": f,
61
+ "aria-describedby": N,
62
+ ...y
63
63
  }) => {
64
- const { clear: P } = M(), T = n !== void 0, [z, H] = L(() => d ?? null), N = T ? n : z, I = m && !s && se(N), V = (b) => {
65
- T || H(b), u?.(b);
64
+ const { clear: A } = $(), _ = c !== void 0, [E, S] = j(() => d ?? null), p = _ ? c : E, I = m && !s && ue(p), g = G(p ?? null), R = (e) => {
65
+ g.current = e, _ || S(e), a?.(e);
66
66
  };
67
- return /* @__PURE__ */ l(
68
- j,
67
+ return /* @__PURE__ */ r(
68
+ M,
69
69
  {
70
- ...p,
71
- value: N,
72
- onChange: V,
70
+ ...y,
71
+ value: p,
72
+ onChange: (e) => {
73
+ _ || S(e), a?.(e);
74
+ },
73
75
  isDisabled: s,
74
- isInvalid: r,
75
- onBlur: f,
76
- "aria-label": h,
77
- "aria-labelledby": c,
78
- "aria-describedby": v,
79
- className: y(e.root, i && e.block, g),
80
- "data-test-id": F,
81
- children: /* @__PURE__ */ k(
82
- x,
76
+ isInvalid: t,
77
+ onFocus: () => {
78
+ g.current = p ?? null;
79
+ },
80
+ onBlur: (e) => {
81
+ if (![...(e.currentTarget instanceof HTMLElement ? e.currentTarget : null)?.querySelectorAll('[role="spinbutton"]') ?? []].some((D) => {
82
+ const V = D.getAttribute("data-type");
83
+ return V !== "hour" && V !== "minute" && V !== "second" ? !1 : !/\d/.test(D.textContent ?? "");
84
+ })) {
85
+ g.current = p ?? null, b?.(e);
86
+ return;
87
+ }
88
+ const B = g.current;
89
+ _ || S(B), a?.(B), b?.(e);
90
+ },
91
+ "aria-label": v,
92
+ "aria-labelledby": f,
93
+ "aria-describedby": N,
94
+ className: F(l.root, u && l.block, T),
95
+ "data-test-id": C,
96
+ children: /* @__PURE__ */ H(
97
+ q,
83
98
  {
84
99
  ref: o,
85
- className: re({ size: a, variant: t, block: i }),
86
- "data-invalid": r || void 0,
100
+ className: ie({ size: n, variant: i, block: u }),
101
+ "data-invalid": t || void 0,
87
102
  "data-disabled": s || void 0,
88
103
  children: [
89
- /* @__PURE__ */ l(E, { className: e.input, children: (b) => /* @__PURE__ */ l(G, { segment: b, className: e.segment }) }),
90
- I ? /* @__PURE__ */ l(
91
- w,
104
+ /* @__PURE__ */ r(w, { className: l.input, children: (e) => /* @__PURE__ */ r(x, { segment: e, className: l.segment }) }),
105
+ I ? /* @__PURE__ */ r(
106
+ O,
92
107
  {
93
108
  slot: null,
94
- className: e.clear,
95
- "aria-label": P,
109
+ className: l.clear,
110
+ "aria-label": A,
96
111
  excludeFromTabOrder: !0,
97
- onPress: () => V(null),
98
- children: /* @__PURE__ */ l(A, { className: e.icon })
112
+ onPress: () => R(null),
113
+ children: /* @__PURE__ */ r(U, { className: l.icon })
99
114
  }
100
115
  ) : null
101
116
  ]
@@ -105,70 +120,70 @@ import '../assets/index14.css';const q = "aub_styles-module_root_184e6", J = "au
105
120
  );
106
121
  }
107
122
  );
108
- B.displayName = "TimeField";
109
- const D = S(({ ref: o, value: a, onChange: t, onBlur: i, ...r }) => {
110
- const { controlProps: s, size: m, invalid: n, disabled: d } = R();
111
- return /* @__PURE__ */ l(
112
- B,
123
+ P.displayName = "TimeField";
124
+ const z = L(({ ref: o, value: n, onChange: i, onBlur: u, ...t }) => {
125
+ const { controlProps: s, size: m, invalid: c, disabled: d } = K();
126
+ return /* @__PURE__ */ r(
127
+ P,
113
128
  {
114
129
  ...s,
115
- ...r,
130
+ ...t,
116
131
  ref: o,
117
132
  size: m,
118
- invalid: n,
133
+ invalid: c,
119
134
  disabled: d,
120
- value: a,
121
- onChange: t,
122
- onBlur: i
135
+ value: n,
136
+ onChange: i,
137
+ onBlur: u
123
138
  }
124
139
  );
125
140
  });
126
- D.displayName = "FormTimeFieldControl";
127
- const ae = ({
141
+ z.displayName = "FormTimeFieldControl";
142
+ const ce = ({
128
143
  name: o,
129
- label: a,
130
- hint: t,
131
- size: i = "md",
132
- block: r = !0,
144
+ label: n,
145
+ hint: i,
146
+ size: u = "md",
147
+ block: t = !0,
133
148
  disabled: s,
134
149
  className: m,
135
- dataTestId: n,
150
+ dataTestId: c,
136
151
  ...d
137
152
  }) => {
138
- const { field: u, fieldState: f, inputProps: g, onChange: F, onBlurHandler: h } = U({ name: o }), c = $(f.error)?.message, v = s ?? g.disabled;
139
- return /* @__PURE__ */ k(
140
- _,
153
+ const { field: a, fieldState: b, inputProps: T, onChange: C, onBlurHandler: v } = Q({ name: o }), f = W(b.error)?.message, N = s ?? T.disabled;
154
+ return /* @__PURE__ */ H(
155
+ h,
141
156
  {
142
- invalid: !!c,
143
- disabled: v,
144
- size: i,
145
- block: r,
157
+ invalid: !!f,
158
+ disabled: N,
159
+ size: u,
160
+ block: t,
146
161
  className: m,
147
- dataTestId: n,
162
+ dataTestId: c,
148
163
  children: [
149
- a ? /* @__PURE__ */ l(_.Label, { children: a }) : null,
150
- /* @__PURE__ */ l(
151
- D,
164
+ n ? /* @__PURE__ */ r(h.Label, { children: n }) : null,
165
+ /* @__PURE__ */ r(
166
+ z,
152
167
  {
153
168
  ...d,
154
- block: r,
155
- ref: u.ref,
156
- value: u.value ?? null,
157
- onChange: (p) => {
158
- u.onChange(p), F(o, p);
169
+ block: t,
170
+ ref: a.ref,
171
+ value: a.value ?? null,
172
+ onChange: (y) => {
173
+ a.onChange(y), C(o, y);
159
174
  },
160
- onBlur: () => h()
175
+ onBlur: () => v()
161
176
  }
162
177
  ),
163
- t ? /* @__PURE__ */ l(_.Hint, { children: t }) : null,
164
- /* @__PURE__ */ l(_.Error, { children: c })
178
+ i ? /* @__PURE__ */ r(h.Hint, { children: i }) : null,
179
+ /* @__PURE__ */ r(h.Error, { children: f })
165
180
  ]
166
181
  }
167
182
  );
168
183
  };
169
- ae.displayName = "FormTimeField";
184
+ ce.displayName = "FormTimeField";
170
185
  export {
171
- ae as FormTimeField,
172
- B as TimeField
186
+ ce as FormTimeField,
187
+ P as TimeField
173
188
  };
174
189
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/time-field/theme.ts","../../src/time-field/Component.tsx","../../src/time-field/FormTimeField.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport cn from 'classnames';\n\nimport { typographyStyles } from '@ds/typography';\n\nimport styles from './styles.module.css';\n\nexport const timeFieldGroupVariants = cva(styles.group, {\n variants: {\n size: {\n sm: cn(styles.sm, typographyStyles.bodyS),\n md: cn(styles.md, typographyStyles.bodyS),\n lg: cn(styles.lg, typographyStyles.bodyM),\n },\n variant: {\n primary: styles.primary,\n },\n block: {\n true: styles.block,\n false: null,\n },\n },\n defaultVariants: {\n size: 'md',\n variant: 'primary',\n block: true,\n },\n});\n","import { useState } from 'react';\n\nimport cn from 'classnames';\nimport {\n Button as RacButton,\n DateInput,\n DateSegment,\n Group,\n TimeField as RacTimeField,\n type TimeValue,\n} from 'react-aria-components';\n\nimport { supportRef } from '@ds/common/support-ref';\n\nimport { Clear } from '@/icons';\nimport { useAuiLabels } from '@/provider';\n\nimport { timeFieldGroupVariants } from './theme';\nimport { type ITimeFieldProps } from './types';\n\nimport styles from './styles.module.css';\n\nconst hasTimeValue = (value: TimeValue | null | undefined) => value != null;\n\nexport const TimeField = supportRef(\n ({\n ref,\n size = 'md',\n variant = 'primary',\n block = true,\n invalid = false,\n disabled = false,\n clear = false,\n value,\n defaultValue,\n onChange,\n onBlur,\n className,\n dataTestId,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n ...props\n }: ITimeFieldProps) => {\n const { clear: clearLabel } = useAuiLabels();\n const isControlled = value !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState<TimeValue | null>(() => defaultValue ?? null);\n const currentValue = isControlled ? value : uncontrolledValue;\n const showClear = clear && !disabled && hasTimeValue(currentValue);\n\n const setValue = (next: TimeValue | null) => {\n if (!isControlled) {\n setUncontrolledValue(next);\n }\n onChange?.(next);\n };\n\n return (\n <RacTimeField\n {...props}\n value={currentValue}\n onChange={setValue}\n isDisabled={disabled}\n isInvalid={invalid}\n onBlur={onBlur}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n aria-describedby={ariaDescribedby}\n className={cn(styles.root, block && styles.block, className)}\n data-test-id={dataTestId}\n >\n <Group\n ref={ref}\n className={timeFieldGroupVariants({ size, variant, block })}\n data-invalid={invalid || undefined}\n data-disabled={disabled || undefined}\n >\n <DateInput className={styles.input}>\n {segment => <DateSegment segment={segment} className={styles.segment} />}\n </DateInput>\n {showClear ? (\n <RacButton\n slot={null}\n className={styles.clear}\n aria-label={clearLabel}\n excludeFromTabOrder\n onPress={() => setValue(null)}\n >\n <Clear className={styles.icon} />\n </RacButton>\n ) : null}\n </Group>\n </RacTimeField>\n );\n }\n);\n\nTimeField.displayName = 'TimeField';\n","import { type Ref } from 'react';\n\nimport { type TimeValue } from 'react-aria-components';\n\nimport { supportRef } from '@ds/common/support-ref';\n\nimport { Field, useField } from '@/field';\nimport { useFieldHook } from '@/form/hooks/useFieldHook';\nimport { getError } from '@/form/utils';\n\nimport { TimeField } from './Component';\nimport { type IFormTimeFieldProps, type ITimeFieldProps } from './types';\n\ntype TFormTimeFieldControlProps = Omit<ITimeFieldProps, 'size' | 'invalid' | 'disabled' | 'value' | 'onChange'> & {\n value: TimeValue | null;\n onChange: (value: TimeValue | null) => void;\n ref?: Ref<HTMLDivElement>;\n};\n\nconst FormTimeFieldControl = supportRef(({ ref, value, onChange, onBlur, ...props }: TFormTimeFieldControlProps) => {\n const { controlProps, size, invalid, disabled } = useField();\n\n return (\n <TimeField\n {...controlProps}\n {...props}\n ref={ref}\n size={size}\n invalid={invalid}\n disabled={disabled}\n value={value}\n onChange={onChange}\n onBlur={onBlur}\n />\n );\n});\n\nFormTimeFieldControl.displayName = 'FormTimeFieldControl';\n\nexport const FormTimeField = ({\n name,\n label,\n hint,\n size = 'md',\n block = true,\n disabled,\n className,\n dataTestId,\n ...inputProps\n}: IFormTimeFieldProps) => {\n const { field, fieldState, inputProps: rhfInputProps, onChange, onBlurHandler } = useFieldHook({ name });\n const error = getError(fieldState.error)?.message;\n const isDisabled = disabled ?? rhfInputProps.disabled;\n\n return (\n <Field\n invalid={Boolean(error)}\n disabled={isDisabled}\n size={size}\n block={block}\n className={className}\n dataTestId={dataTestId}\n >\n {label ? <Field.Label>{label}</Field.Label> : null}\n <FormTimeFieldControl\n {...inputProps}\n block={block}\n ref={field.ref}\n value={field.value ?? null}\n onChange={next => {\n field.onChange(next);\n onChange(name, next as never);\n }}\n onBlur={() => onBlurHandler()}\n />\n {hint ? <Field.Hint>{hint}</Field.Hint> : null}\n <Field.Error>{error}</Field.Error>\n </Field>\n );\n};\n\nFormTimeField.displayName = 'FormTimeField';\n"],"names":["timeFieldGroupVariants","cva","styles","cn","typographyStyles","hasTimeValue","value","TimeField","supportRef","ref","size","variant","block","invalid","disabled","clear","defaultValue","onChange","onBlur","className","dataTestId","ariaLabel","ariaLabelledby","ariaDescribedby","props","clearLabel","useAuiLabels","isControlled","uncontrolledValue","setUncontrolledValue","useState","currentValue","showClear","setValue","next","jsx","RacTimeField","jsxs","Group","DateInput","segment","DateSegment","RacButton","Clear","FormTimeFieldControl","controlProps","useField","FormTimeField","name","label","hint","inputProps","field","fieldState","rhfInputProps","onBlurHandler","useFieldHook","error","getError","isDisabled","Field"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;GAOaA,KAAyBC,EAAIC,EAAO,OAAO;AAAA,EACpD,UAAU;AAAA,IACN,MAAM;AAAA,MACF,IAAIC,EAAGD,EAAO,IAAIE,EAAiB,KAAK;AAAA,MACxC,IAAID,EAAGD,EAAO,IAAIE,EAAiB,KAAK;AAAA,MACxC,IAAID,EAAGD,EAAO,IAAIE,EAAiB,KAAK;AAAA,IAAA;AAAA,IAE5C,SAAS;AAAA,MACL,SAASF,EAAO;AAAA,IAAA;AAAA,IAEpB,OAAO;AAAA,MACH,MAAMA,EAAO;AAAA,MACb,OAAO;AAAA,IAAA;AAAA,EACX;AAAA,EAEJ,iBAAiB;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,OAAO;AAAA,EAAA;AAEf,CAAC,GCLKG,KAAe,CAACC,MAAwC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P,MAA2B;AACvB,QAAM,EAAE,OAAAC,GAAO,YAAAC,GAAY,YAAYC,GAAe,UAAArC,GAAU,eAAAsC,MAAkBC,EAAa,EAAE,MAAAR,GAAM,GACjGS,IAAQC,EAASL,EAAW,KAAK,GAAG,SACpCM,IAAa7C,KAAYwC,EAAc;AAE7C,SACI,gBAAAjB;AAAA,IAACuB;AAAA,IAAA;AAAA,MACG,SAAS,EAAQH;AAAA,MACjB,UAAUE;AAAA,MACV,MAAAjD;AAAA,MACA,OAAAE;AAAA,MACA,WAAAO;AAAA,MACA,YAAAC;AAAA,MAEC,UAAA;AAAA,QAAA6B,IAAQ,gBAAAd,EAACyB,EAAM,OAAN,EAAa,aAAM,IAAiB;AAAA,QAC9C,gBAAAzB;AAAA,UAACS;AAAA,UAAA;AAAA,YACI,GAAGO;AAAA,YACJ,OAAAvC;AAAA,YACA,KAAKwC,EAAM;AAAA,YACX,OAAOA,EAAM,SAAS;AAAA,YACtB,UAAU,CAAAlB,MAAQ;AACd,cAAAkB,EAAM,SAASlB,CAAI,GACnBjB,EAAS+B,GAAMd,CAAa;AAAA,YAChC;AAAA,YACA,QAAQ,MAAMqB,EAAA;AAAA,UAAc;AAAA,QAAA;AAAA,QAE/BL,IAAO,gBAAAf,EAACyB,EAAM,MAAN,EAAY,aAAK,IAAgB;AAAA,QAC1C,gBAAAzB,EAACyB,EAAM,OAAN,EAAa,UAAAH,EAAA,CAAM;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGhC;AAEAV,GAAc,cAAc;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/time-field/theme.ts","../../src/time-field/Component.tsx","../../src/time-field/FormTimeField.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport cn from 'classnames';\n\nimport { typographyStyles } from '@ds/typography';\n\nimport styles from './styles.module.css';\n\nexport const timeFieldGroupVariants = cva(styles.group, {\n variants: {\n size: {\n sm: cn(styles.sm, typographyStyles.bodyS),\n md: cn(styles.md, typographyStyles.bodyS),\n lg: cn(styles.lg, typographyStyles.bodyM),\n },\n variant: {\n primary: styles.primary,\n },\n block: {\n true: styles.block,\n false: null,\n },\n },\n defaultVariants: {\n size: 'md',\n variant: 'primary',\n block: true,\n },\n});\n","import { useRef, useState } from 'react';\n\nimport cn from 'classnames';\nimport {\n Button as RacButton,\n DateInput,\n DateSegment,\n Group,\n TimeField as RacTimeField,\n type TimeValue,\n} from 'react-aria-components';\n\nimport { supportRef } from '@ds/common/support-ref';\n\nimport { Clear } from '@/icons';\nimport { useAuiLabels } from '@/provider';\n\nimport { timeFieldGroupVariants } from './theme';\nimport { type ITimeFieldProps } from './types';\n\nimport styles from './styles.module.css';\n\nconst hasTimeValue = (value: TimeValue | null | undefined) => value != null;\n\nexport const TimeField = supportRef(\n ({\n ref,\n size = 'md',\n variant = 'primary',\n block = true,\n invalid = false,\n disabled = false,\n clear = false,\n value,\n defaultValue,\n onChange,\n onBlur,\n className,\n dataTestId,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n ...props\n }: ITimeFieldProps) => {\n const { clear: clearLabel } = useAuiLabels();\n const isControlled = value !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState<TimeValue | null>(() => defaultValue ?? null);\n const currentValue = isControlled ? value : uncontrolledValue;\n const showClear = clear && !disabled && hasTimeValue(currentValue);\n const committedRef = useRef<TimeValue | null>(currentValue ?? null);\n\n const setValue = (next: TimeValue | null) => {\n committedRef.current = next;\n if (!isControlled) {\n setUncontrolledValue(next);\n }\n onChange?.(next);\n };\n\n const handleChange = (next: TimeValue | null) => {\n if (!isControlled) {\n setUncontrolledValue(next);\n }\n onChange?.(next);\n };\n\n const handleFocus: NonNullable<ITimeFieldProps['onFocus']> = () => {\n committedRef.current = currentValue ?? null;\n };\n\n const handleBlur: NonNullable<ITimeFieldProps['onBlur']> = event => {\n const root = event.currentTarget instanceof HTMLElement ? event.currentTarget : null;\n const incomplete = [...(root?.querySelectorAll('[role=\"spinbutton\"]') ?? [])].some(node => {\n const type = node.getAttribute('data-type');\n if (type !== 'hour' && type !== 'minute' && type !== 'second') {\n return false;\n }\n\n return !/\\d/.test(node.textContent ?? '');\n });\n\n if (!incomplete) {\n committedRef.current = currentValue ?? null;\n onBlur?.(event);\n return;\n }\n\n const restored = committedRef.current;\n if (!isControlled) {\n setUncontrolledValue(restored);\n }\n onChange?.(restored);\n onBlur?.(event);\n };\n\n return (\n <RacTimeField\n {...props}\n value={currentValue}\n onChange={handleChange}\n isDisabled={disabled}\n isInvalid={invalid}\n onFocus={handleFocus}\n onBlur={handleBlur}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n aria-describedby={ariaDescribedby}\n className={cn(styles.root, block && styles.block, className)}\n data-test-id={dataTestId}\n >\n <Group\n ref={ref}\n className={timeFieldGroupVariants({ size, variant, block })}\n data-invalid={invalid || undefined}\n data-disabled={disabled || undefined}\n >\n <DateInput className={styles.input}>\n {segment => <DateSegment segment={segment} className={styles.segment} />}\n </DateInput>\n {showClear ? (\n <RacButton\n slot={null}\n className={styles.clear}\n aria-label={clearLabel}\n excludeFromTabOrder\n onPress={() => setValue(null)}\n >\n <Clear className={styles.icon} />\n </RacButton>\n ) : null}\n </Group>\n </RacTimeField>\n );\n }\n);\n\nTimeField.displayName = 'TimeField';\n","import { type Ref } from 'react';\n\nimport { type TimeValue } from 'react-aria-components';\n\nimport { supportRef } from '@ds/common/support-ref';\n\nimport { Field, useField } from '@/field';\nimport { useFieldHook } from '@/form/hooks/useFieldHook';\nimport { getError } from '@/form/utils';\n\nimport { TimeField } from './Component';\nimport { type IFormTimeFieldProps, type ITimeFieldProps } from './types';\n\ntype TFormTimeFieldControlProps = Omit<ITimeFieldProps, 'size' | 'invalid' | 'disabled' | 'value' | 'onChange'> & {\n value: TimeValue | null;\n onChange: (value: TimeValue | null) => void;\n ref?: Ref<HTMLDivElement>;\n};\n\nconst FormTimeFieldControl = supportRef(({ ref, value, onChange, onBlur, ...props }: TFormTimeFieldControlProps) => {\n const { controlProps, size, invalid, disabled } = useField();\n\n return (\n <TimeField\n {...controlProps}\n {...props}\n ref={ref}\n size={size}\n invalid={invalid}\n disabled={disabled}\n value={value}\n onChange={onChange}\n onBlur={onBlur}\n />\n );\n});\n\nFormTimeFieldControl.displayName = 'FormTimeFieldControl';\n\nexport const FormTimeField = ({\n name,\n label,\n hint,\n size = 'md',\n block = true,\n disabled,\n className,\n dataTestId,\n ...inputProps\n}: IFormTimeFieldProps) => {\n const { field, fieldState, inputProps: rhfInputProps, onChange, onBlurHandler } = useFieldHook({ name });\n const error = getError(fieldState.error)?.message;\n const isDisabled = disabled ?? rhfInputProps.disabled;\n\n return (\n <Field\n invalid={Boolean(error)}\n disabled={isDisabled}\n size={size}\n block={block}\n className={className}\n dataTestId={dataTestId}\n >\n {label ? <Field.Label>{label}</Field.Label> : null}\n <FormTimeFieldControl\n {...inputProps}\n block={block}\n ref={field.ref}\n value={field.value ?? null}\n onChange={next => {\n field.onChange(next);\n onChange(name, next as never);\n }}\n onBlur={() => onBlurHandler()}\n />\n {hint ? <Field.Hint>{hint}</Field.Hint> : null}\n <Field.Error>{error}</Field.Error>\n </Field>\n );\n};\n\nFormTimeField.displayName = 'FormTimeField';\n"],"names":["timeFieldGroupVariants","cva","styles","cn","typographyStyles","hasTimeValue","value","TimeField","supportRef","ref","size","variant","block","invalid","disabled","clear","defaultValue","onChange","onBlur","className","dataTestId","ariaLabel","ariaLabelledby","ariaDescribedby","props","clearLabel","useAuiLabels","isControlled","uncontrolledValue","setUncontrolledValue","useState","currentValue","showClear","committedRef","useRef","setValue","next","jsx","RacTimeField","event","node","type","restored","jsxs","Group","DateInput","segment","DateSegment","RacButton","Clear","FormTimeFieldControl","controlProps","useField","FormTimeField","name","label","hint","inputProps","field","fieldState","rhfInputProps","onBlurHandler","useFieldHook","error","getError","isDisabled","Field"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;GAOaA,KAAyBC,EAAIC,EAAO,OAAO;AA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C,GAAY,YAAYC,GAAe,UAAA3C,GAAU,eAAA4C,MAAkBC,EAAa,EAAE,MAAAR,GAAM,GACjGS,IAAQC,EAASL,EAAW,KAAK,GAAG,SACpCM,IAAanD,KAAY8C,EAAc;AAE7C,SACI,gBAAAjB;AAAA,IAACuB;AAAA,IAAA;AAAA,MACG,SAAS,EAAQH;AAAA,MACjB,UAAUE;AAAA,MACV,MAAAvD;AAAA,MACA,OAAAE;AAAA,MACA,WAAAO;AAAA,MACA,YAAAC;AAAA,MAEC,UAAA;AAAA,QAAAmC,IAAQ,gBAAAlB,EAAC6B,EAAM,OAAN,EAAa,aAAM,IAAiB;AAAA,QAC9C,gBAAA7B;AAAA,UAACa;AAAA,UAAA;AAAA,YACI,GAAGO;AAAA,YACJ,OAAA7C;AAAA,YACA,KAAK8C,EAAM;AAAA,YACX,OAAOA,EAAM,SAAS;AAAA,YACtB,UAAU,CAAAtB,MAAQ;AACd,cAAAsB,EAAM,SAAStB,CAAI,GACnBnB,EAASqC,GAAMlB,CAAa;AAAA,YAChC;AAAA,YACA,QAAQ,MAAMyB,EAAA;AAAA,UAAc;AAAA,QAAA;AAAA,QAE/BL,IAAO,gBAAAnB,EAAC6B,EAAM,MAAN,EAAY,aAAK,IAAgB;AAAA,QAC1C,gBAAA7B,EAAC6B,EAAM,OAAN,EAAa,UAAAH,EAAA,CAAM;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGhC;AAEAV,GAAc,cAAc;"}
@@ -1,4 +1,4 @@
1
- import { T as r } from "../Component-uHkw3SDR.js";
1
+ import { T as r } from "../Component-CzwTENBM.js";
2
2
  export {
3
3
  r as Tooltip
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ensi-platform/admin-ui",
3
- "version": "0.8.5",
3
+ "version": "0.10.0",
4
4
  "description": "Admin UI for Ensi admin panel",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -26,6 +26,8 @@ import { DateRangePicker, FormDateRangePicker } from '@ensi-platform/admin-ui/da
26
26
  | `block` | `boolean` | `true` | full width |
27
27
  | `dataTestId` | `string` | — | `data-test-id` for tests |
28
28
 
29
+ If the end date is before the start date, the dates swap on blur, Enter, or when the calendar closes. A partial range and a date outside `minValue` / `maxValue` roll back to the last valid range. A reversed range is not passed to `onChange`.
30
+
29
31
  ### FormDateRangePicker
30
32
 
31
33
  | Prop | Values | Default | Description |
@@ -27,6 +27,8 @@ import { TimeField, FormTimeField } from '@ensi-platform/admin-ui/time-field';
27
27
  | `block` | `boolean` | `true` | full width |
28
28
  | `dataTestId` | `string` | — | `data-test-id` for tests |
29
29
 
30
+ If the hour or minutes are cleared to a placeholder, blur restores the time from when the field was focused. The clear button sets `null`.
31
+
30
32
  ### FormTimeField
31
33
 
32
34
  | Prop | Values | Default | Description |
@@ -1,85 +0,0 @@
1
- import { jsx as s, jsxs as m } from "react/jsx-runtime";
2
- import a from "classnames";
3
- import { CheckboxField as h, CheckboxButton as C } from "react-aria-components";
4
- import { s as N } from "./index-h8z54aFR.js";
5
- import { C as g } from "./Check-deng4Zns.js";
6
- import { cva as k } from "class-variance-authority";
7
- import { typographyStyles as o } from "./typography/index.js";
8
- import './assets/Component3.css';const v = "aub_styles-module_field_b20b6", S = "aub_styles-module_root_e58e8", j = "aub_styles-module_label_d93e2", z = "aub_styles-module_box_c637b", I = "aub_styles-module_icon_6dc84", V = "aub_styles-module_indeterminate_ff5bc", B = "aub_styles-module_sm_03831", D = "aub_styles-module_md_32e3c", F = "aub_styles-module_lg_3c597", M = "aub_styles-module_primary_20c9d", e = {
9
- field: v,
10
- root: S,
11
- label: j,
12
- box: z,
13
- icon: I,
14
- indeterminate: V,
15
- sm: B,
16
- md: D,
17
- lg: F,
18
- primary: M
19
- }, R = k(e.root, {
20
- variants: {
21
- size: {
22
- sm: a(e.sm, o.bodyS),
23
- md: a(e.md, o.bodyS),
24
- lg: a(e.lg, o.bodyM)
25
- },
26
- variant: {
27
- primary: e.primary
28
- }
29
- },
30
- defaultVariants: {
31
- size: "md",
32
- variant: "primary"
33
- }
34
- }), q = N(
35
- ({
36
- ref: i,
37
- size: r = "md",
38
- variant: d = "primary",
39
- checked: n,
40
- defaultChecked: c,
41
- onChange: b,
42
- indeterminate: _ = !1,
43
- value: u,
44
- children: t,
45
- invalid: l = !1,
46
- disabled: y = !1,
47
- className: p,
48
- dataTestId: f,
49
- ...x
50
- }) => /* @__PURE__ */ s(
51
- h,
52
- {
53
- ...x,
54
- value: u,
55
- isSelected: n,
56
- defaultSelected: c,
57
- onChange: b,
58
- isIndeterminate: _,
59
- isDisabled: y,
60
- isInvalid: l,
61
- className: e.field,
62
- children: /* @__PURE__ */ m(
63
- C,
64
- {
65
- ref: i,
66
- "data-invalid": l || void 0,
67
- "data-test-id": f,
68
- className: a(R({ size: r, variant: d }), p),
69
- children: [
70
- /* @__PURE__ */ m("span", { className: e.box, "aria-hidden": !0, children: [
71
- /* @__PURE__ */ s(g, { className: e.icon }),
72
- /* @__PURE__ */ s("span", { className: e.indeterminate })
73
- ] }),
74
- t != null ? /* @__PURE__ */ s("span", { className: e.label, children: t }) : null
75
- ]
76
- }
77
- )
78
- }
79
- )
80
- );
81
- q.displayName = "Checkbox";
82
- export {
83
- q as C
84
- };
85
- //# sourceMappingURL=Component-u6K-ylDb.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Component-u6K-ylDb.js","sources":["../src/checkbox/theme.ts","../src/checkbox/Component.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport cn from 'classnames';\n\nimport { typographyStyles } from '@ds/typography';\n\nimport styles from './styles.module.css';\n\nexport const checkboxVariants = cva(styles.root, {\n variants: {\n size: {\n sm: cn(styles.sm, typographyStyles.bodyS),\n md: cn(styles.md, typographyStyles.bodyS),\n lg: cn(styles.lg, typographyStyles.bodyM),\n },\n variant: {\n primary: styles.primary,\n },\n },\n defaultVariants: {\n size: 'md',\n variant: 'primary',\n },\n});\n","import cn from 'classnames';\nimport { CheckboxButton, CheckboxField } from 'react-aria-components';\n\nimport { supportRef } from '@ds/common/support-ref';\n\nimport { Check } from '@/icons';\n\nimport { checkboxVariants } from './theme';\nimport { type ICheckboxProps } from './types';\n\nimport styles from './styles.module.css';\n\nexport const Checkbox = supportRef(\n ({\n ref,\n size = 'md',\n variant = 'primary',\n checked,\n defaultChecked,\n onChange,\n indeterminate = false,\n value,\n children,\n invalid = false,\n disabled = false,\n className,\n dataTestId,\n ...props\n }: ICheckboxProps) => (\n <CheckboxField\n {...props}\n value={value}\n isSelected={checked}\n defaultSelected={defaultChecked}\n onChange={onChange}\n isIndeterminate={indeterminate}\n isDisabled={disabled}\n isInvalid={invalid}\n className={styles.field}\n >\n <CheckboxButton\n ref={ref}\n data-invalid={invalid || undefined}\n data-test-id={dataTestId}\n className={cn(checkboxVariants({ size, variant }), className)}\n >\n <span className={styles.box} aria-hidden>\n <Check className={styles.icon} />\n <span className={styles.indeterminate} />\n </span>\n {children != null ? <span className={styles.label}>{children}</span> : null}\n </CheckboxButton>\n </CheckboxField>\n )\n);\n\nCheckbox.displayName = 'Checkbox';\n"],"names":["checkboxVariants","cva","styles","cn","typographyStyles","Checkbox","supportRef","ref","size","variant","checked","defaultChecked","onChange","indeterminate","value","children","invalid","disabled","className","dataTestId","props","jsx","CheckboxField","jsxs","CheckboxButton","Check"],"mappings":";;;;;;;;;;;;;;;;;;GAOaA,IAAmBC,EAAIC,EAAO,MAAM;AAAA,EAC7C,UAAU;AAAA,IACN,MAAM;AAAA,MACF,IAAIC,EAAGD,EAAO,IAAIE,EAAiB,KAAK;AAAA,MACxC,IAAID,EAAGD,EAAO,IAAIE,EAAiB,KAAK;AAAA,MACxC,IAAID,EAAGD,EAAO,IAAIE,EAAiB,KAAK;AAAA,IAAA;AAAA,IAE5C,SAAS;AAAA,MACL,SAASF,EAAO;AAAA,IAAA;AAAA,EACpB;AAAA,EAEJ,iBAAiB;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEjB,CAAC,GCV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align-items:center;gap:var(--aui-table-action-gap);padding:var(--aui-table-pad-y-utility) var(--aui-table-pad-x-utility)}.aub_styles-module_menu_6e4e6{display:flex;flex-direction:column;gap:var(--aui-table-action-gap);min-width:10rem;padding:var(--aui-table-pad-y-sm) var(--aui-table-pad-x-sm)}.aub_styles-module_menuItem_f71c0{justify-content:flex-start;width:100%;padding:var(--aui-table-pad-y-sm) var(--aui-table-pad-x-md)}.aub_styles-module_overflowTrigger_7c588{min-width:unset;padding-left:var(--aui-spacing-8);padding-right:var(--aui-spacing-8)}.aub_styles-module_visuallyHidden_0e593{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.aub_styles-module_root_9238b{padding:var(--aui-table-pad-y) var(--aui-table-pad-x);vertical-align:middle;text-align:start;box-sizing:border-box}.aub_styles-module_numeric_cb295{text-align:end;font-variant-numeric:tabular-nums}.aub_styles-module_alignStart_1287f{text-align:start}.aub_styles-module_alignEnd_8f2d8{text-align:end}.aub_styles-module_alignCenter_c83e7{text-align:center}.aub_styles-module_noWrap_80a17{white-space:nowrap}.aub_styles-module_utility_f2ad7{width:1%;white-space:nowrap;padding:var(--aui-table-pad-y-utility) var(--aui-table-pad-x-utility)}.aub_styles-module_utility_f2ad7:has([data-row-actions]){height:1px;padding:0}.aub_styles-module_root_e0d29{box-sizing:border-box;width:var(--aui-table-checkbox-w);min-width:var(--aui-table-checkbox-w);max-width:var(--aui-table-checkbox-w);text-align:center;vertical-align:middle;line-height:0}.aub_styles-module_root_0f9dc{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--aui-table-footer-gap);flex-shrink:0;padding:var(--aui-table-footer-pad-y) var(--aui-table-footer-pad-x);color:var(--aui-table-fg-muted);background:var(--aui-table-bg-footer)}.aub_styles-module_root_d320c,.aub_styles-module_sticky_3efca{background:var(--aui-table-bg-header)}.aub_styles-module_trigger_e351e{display:inline-flex;align-items:center;gap:var(--aui-table-sort-gap);width:100%;max-width:100%;margin:0;padding:0;border:none;background:transparent;color:inherit;font:inherit;cursor:pointer;position:relative;z-index:1}.aub_styles-module_trigger_e351e[data-open]{background:var(--aui-table-bg-selected);z-index:var(--aui-table-z-sticky)}.aub_styles-module_trigger_e351e:focus-visible{outline:2px solid var(--aui-table-border-focus);outline-offset:-2px}.aub_styles-module_triggerLabel_e57b8{color:var(--aui-table-fg-primary)}.aub_styles-module_sortIcon_0a409,.aub_styles-module_filterIcon_ad45e,.aub_styles-module_sortMark_e22c1,.aub_styles-module_chevron_8c778{flex-shrink:0;width:1em;height:1em;color:var(--aui-table-fg-muted)}.aub_styles-module_filterIcon_ad45e[data-active],.aub_styles-module_sortMark_e22c1{color:var(--aui-table-fg-danger)}.aub_styles-module_panel_b14cb.aub_styles-module_panel_b14cb{width:var(--aui-table-filter-min-w);min-width:0;max-width:var(--aui-table-filter-min-w);overflow:visible}.aub_styles-module_sortList_f8a4a{display:flex;flex-direction:column;gap:var(--aui-table-action-gap)}.aub_styles-module_sortItem_60ebf{display:flex;align-items:center;justify-content:space-between;gap:var(--aui-table-sort-gap);width:100%;margin:0;padding:var(--aui-table-action-gap) var(--aui-table-pad-x-sm);border:none;border-radius:var(--aui-table-radius-md);background:transparent;color:var(--aui-table-fg-primary);font:inherit;text-align:start;cursor:pointer;position:relative;transition:background-color var(--aui-table-duration-fast) var(--aui-table-ease-out)}.aub_styles-module_sortItem_60ebf:hover{background:var(--aui-table-sort-bg-hover)}.aub_styles-module_sortItem_60ebf:active{background:var(--aui-table-sort-bg-active)}.aub_styles-module_sortItem_60ebf:focus-visible{outline:none}.aub_styles-module_divider_a4798{height:1px;margin:var(--aui-table-filter-sort-gap) 0;background:var(--aui-table-border-primary)}@media(prefers-reduced-motion:reduce){.aub_styles-module_sortItem_60ebf{transition:none}}.aub_styles-module_root_25792{display:inline-flex;align-items:center;gap:var(--aui-table-sort-gap);margin:0;padding:0;border:none;background:transparent;color:inherit;font:inherit;cursor:pointer;border-radius:var(--aui-table-radius-md);width:100%;max-width:100%;text-align:inherit;justify-content:start;position:relative}.aub_styles-module_root_25792:focus-visible{outline:none}.aub_styles-module_label_d7503{color:var(--aui-table-fg-primary)}.aub_styles-module_icon_a73d0{flex-shrink:0;width:1em;height:1em;color:var(--aui-table-fg-muted);opacity:.55;transition:color var(--aui-table-duration-fast) var(--aui-table-ease-out),opacity var(--aui-table-duration-fast) var(--aui-table-ease-out),transform var(--aui-table-duration-fast) var(--aui-table-ease-out)}@media(prefers-reduced-motion:reduce){.aub_styles-module_icon_a73d0{transition:none}}.aub_styles-module_root_25792:hover .aub_styles-module_icon_a73d0{opacity:1;color:var(--aui-table-fg-primary)}.aub_styles-module_root_25792[data-sorted] .aub_styles-module_label_d7503{font-weight:var(--aui-table-font-weight-sorted)}.aub_styles-module_root_25792[data-sorted] .aub_styles-module_icon_a73d0{color:var(--aui-table-accent-active);opacity:1;transform:scale(1.15)}.aub_styles-module_root_25792[data-sorted]:hover .aub_styles-module_icon_a73d0{color:var(--aui-table-accent-active)}.aub_styles-module_root_25792[data-sorted] .aub_styles-module_asc_29781{transform:rotate(180deg) scale(1.15)}.aub_styles-module_root_ab198{padding:var(--aui-table-pad-y) var(--aui-table-pad-x);vertical-align:middle;text-align:start;font-weight:var(--aui-table-font-weight-header);color:var(--aui-table-fg-header);box-sizing:border-box;transition:background-color var(--aui-table-duration-fast) var(--aui-table-ease-out)}@media(prefers-reduced-motion:reduce){.aub_styles-module_root_ab198{transition:none}}.aub_styles-module_root_ab198[data-sortable]:not([data-filter]),.aub_styles-module_root_ab198[data-filter]{position:relative;padding:0}.aub_styles-module_root_ab198[data-sortable]:focus-within,.aub_styles-module_root_ab198[data-filter]:focus-within{z-index:2}.aub_styles-module_sticky_5f518{position:sticky;top:0;z-index:var(--aui-table-z-sticky);background:var(--aui-table-bg-header)}.aub_styles-module_sticky_5f518[data-sortable]:not([data-filter]),.aub_styles-module_sticky_5f518[data-filter]{position:sticky}.aub_styles-module_sticky_5f518[data-sortable]:focus-within,.aub_styles-module_sticky_5f518[data-filter]:focus-within{z-index:calc(var(--aui-table-z-sticky) + 1)}.aub_styles-module_root_ab198[data-sortable]:not([data-filter]):hover,.aub_styles-module_root_ab198[data-filter]:hover{background:var(--aui-table-bg-hover)}.aub_styles-module_numeric_c623f{text-align:end;font-variant-numeric:tabular-nums}.aub_styles-module_alignStart_874f7{text-align:start}.aub_styles-module_alignEnd_b80f1{text-align:end}.aub_styles-module_alignCenter_0eb45{text-align:center}.aub_styles-module_noWrap_b3b77{white-space:nowrap}.aub_styles-module_utility_d7a98{width:1%;white-space:nowrap;padding-left:var(--aui-table-pad-x-utility);padding-right:var(--aui-table-pad-x-utility)}.aub_styles-module_utility_d7a98[data-sortable]:not([data-filter]),.aub_styles-module_utility_d7a98[data-filter]{padding:0}.aub_styles-module_content_cfe0e{display:inline-flex;align-items:center;gap:var(--aui-table-sort-gap);max-width:100%}.aub_styles-module_root_ab198[data-sortable]:not([data-filter]) .aub_styles-module_content_cfe0e,.aub_styles-module_root_ab198[data-filter] .aub_styles-module_content_cfe0e{display:flex;width:100%;height:100%}.aub_styles-module_root_ab198[data-sortable]:not([data-filter]) .aub_styles-module_content_cfe0e>*,.aub_styles-module_root_ab198[data-filter] .aub_styles-module_content_cfe0e>*{width:100%;box-sizing:border-box;padding:var(--aui-table-pad-y) var(--aui-table-pad-x)}.aub_styles-module_utility_d7a98[data-sortable]:not([data-filter]) .aub_styles-module_content_cfe0e>*,.aub_styles-module_utility_d7a98[data-filter] .aub_styles-module_content_cfe0e>*{padding-left:var(--aui-table-pad-x-utility);padding-right:var(--aui-table-pad-x-utility)}.aub_styles-module_numeric_c623f[data-sortable]:not([data-filter]) .aub_styles-module_content_cfe0e>*,.aub_styles-module_alignEnd_b80f1[data-sortable]:not([data-filter]) .aub_styles-module_content_cfe0e>*,.aub_styles-module_numeric_c623f[data-filter] .aub_styles-module_content_cfe0e>*,.aub_styles-module_alignEnd_b80f1[data-filter] .aub_styles-module_content_cfe0e>*{justify-content:end}.aub_styles-module_alignCenter_0eb45[data-sortable]:not([data-filter]) .aub_styles-module_content_cfe0e>*,.aub_styles-module_alignCenter_0eb45[data-filter] .aub_styles-module_content_cfe0e>*{justify-content:center}.aub_styles-module_alignStart_874f7[data-sortable]:not([data-filter]) .aub_styles-module_content_cfe0e>*,.aub_styles-module_alignStart_874f7[data-filter] .aub_styles-module_content_cfe0e>*{justify-content:start}.aub_styles-module_root_78429{box-sizing:border-box;width:var(--aui-table-checkbox-w);min-width:var(--aui-table-checkbox-w);max-width:var(--aui-table-checkbox-w);text-align:center;vertical-align:middle;line-height:0}.aub_styles-module_root_6aae8{display:inline-flex;align-items:center;gap:var(--aui-table-page-size-gap);flex-shrink:0}.aub_styles-module_label_2bcb7{color:var(--aui-table-fg-muted);white-space:nowrap}.aub_styles-module_select_a3d31{width:auto;min-width:var(--aui-spacing-64)}.aub_styles-module_root_b4bb7{display:flex;align-items:center;gap:var(--aui-table-pagination-gap);margin-inline-start:auto}.aub_styles-module_range_def38{color:var(--aui-table-fg-muted);white-space:nowrap;line-height:1}.aub_styles-module_list_dd1ba{display:flex;align-items:center;gap:var(--aui-table-pagination-gap);margin:0;padding:0;list-style:none}.aub_styles-module_item_817c3{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:var(--aui-table-pagination-item-size);min-height:var(--aui-table-pagination-item-size);padding:0 var(--aui-table-pagination-item-pad-x);margin:0;border:none;background:transparent;color:var(--aui-table-fg-primary);font:inherit;line-height:1;cursor:pointer}.aub_styles-module_item_817c3:hover:not(:disabled):not([aria-current=page]){background:var(--aui-table-bg-hover);border-radius:50%}.aub_styles-module_item_817c3:focus-visible{outline:2px solid var(--aui-table-border-focus);outline-offset:2px;border-radius:50%}.aub_styles-module_item_817c3[aria-current=page]{background:var(--aui-table-pagination-current-bg);color:var(--aui-table-fg-primary);border-radius:50%;cursor:default}.aub_styles-module_item_817c3:disabled{color:var(--aui-table-fg-disabled);cursor:not-allowed}.aub_styles-module_ellipsis_45def{display:inline-flex;align-items:center;justify-content:center;min-width:var(--aui-table-pagination-item-size);min-height:var(--aui-table-pagination-item-size);color:var(--aui-table-fg-muted);-webkit-user-select:none;user-select:none}.aub_styles-module_control_216a4{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:var(--aui-table-pagination-item-size);min-height:var(--aui-table-pagination-item-size);padding:0;margin:0;border:none;border-radius:50%;background:transparent;color:var(--aui-table-fg-primary);font:inherit;line-height:1;cursor:pointer}.aub_styles-module_control_216a4:hover:not(:disabled){background:var(--aui-table-bg-hover)}.aub_styles-module_control_216a4:focus-visible{outline:2px solid var(--aui-table-border-focus);outline-offset:2px}.aub_styles-module_control_216a4:disabled{color:var(--aui-table-fg-disabled);cursor:not-allowed}.aub_styles-module_chevron_903a0{flex-shrink:0;width:var(--aui-table-pagination-chevron-size);height:var(--aui-table-pagination-chevron-size)}.aub_styles-module_root_880a9{position:relative;transition:background-color var(--aui-table-duration-fast) var(--aui-table-ease-out),box-shadow var(--aui-table-duration-fast) var(--aui-table-ease-out)}@media(prefers-reduced-motion:reduce){.aub_styles-module_root_880a9{transition:none}}.aub_styles-module_root_880a9[data-clickable],tbody .aub_styles-module_root_880a9:has(input[type=checkbox]){cursor:pointer}tbody .aub_styles-module_root_880a9:not([data-disabled]):not([data-checked]):hover>td{background:var(--aui-table-bg-hover)}.aub_styles-module_root_880a9[data-checked]>td{background:var(--aui-table-bg-selected)}.aub_styles-module_root_880a9[data-disabled]{color:var(--aui-table-fg-disabled);opacity:.56;pointer-events:none;cursor:default}.aub_styles-module_root_880a9[data-disabled]:hover{background:transparent}.aub_styles-module_root_880a9[data-disabled][data-checked]{background:var(--aui-table-bg-selected)}.aub_styles-module_root_880a9:focus-visible{outline:none}.aub_styles-module_root_4a623{display:flex;flex-direction:column;min-height:0;color:var(--aui-table-fg-primary);background:var(--aui-table-bg-primary)}.aub_styles-module_scroll_fd039{flex:1 1 auto;min-height:0;min-width:0;overflow:auto}.aub_styles-module_block_5507d{width:100%}.aub_styles-module_table_4f242{width:100%;border-collapse:separate;border-spacing:0;table-layout:auto}.aub_styles-module_hasChecked_5267f{--aui-table-checkbox-slot: var(--aui-table-checkbox-w)}.aub_styles-module_zebra_6672f tbody tr:nth-child(odd):not([data-checked]):not(:hover)>td{background:var(--aui-table-bg-zebra)}.aub_styles-module_sm_8a2a2{--aui-table-pad-x: var(--aui-table-pad-x-sm);--aui-table-pad-y: var(--aui-table-pad-y-sm)}.aub_styles-module_md_72133{--aui-table-pad-x: var(--aui-table-pad-x-md);--aui-table-pad-y: var(--aui-table-pad-y-md)}.aub_styles-module_lg_df04a{--aui-table-pad-x: var(--aui-table-pad-x-lg);--aui-table-pad-y: var(--aui-table-pad-y-lg)}