@fluidattacks/design 11.8.0 → 11.9.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.
@@ -1,20 +1,19 @@
1
1
  import { jsxs as u, jsx as o } from "react/jsx-runtime";
2
2
  import { useCallback as p } from "react";
3
- import { CarouselContainer as m, CarouselWrapper as C, CarouselSlide as d, NavContainer as v, NavButton as h } from "./styles.js";
3
+ import { CarouselContainer as C, CarouselWrapper as m, CarouselSlide as d, NavContainer as v, NavButton as h } from "./styles.js";
4
4
  import { useCarousel as k } from "../../hooks/use-carousel.js";
5
- import "../../_virtual/lodash.js";
6
- const g = ({
5
+ const N = ({
7
6
  slides: a,
8
7
  interval: c = 300
9
8
  }) => {
10
- const { cycle: l, setCycle: i, setProgress: n } = k(c, a.length), s = p(
9
+ const { cycle: l, setCycle: n, setProgress: i } = k(c, a.length), s = p(
11
10
  (e) => () => {
12
- i(e), n(0);
11
+ n(e), i(0);
13
12
  },
14
- [i, n]
13
+ [n, i]
15
14
  );
16
- return /* @__PURE__ */ u(m, { "aria-roledescription": "carousel", children: [
17
- /* @__PURE__ */ o(C, { $currentIndex: l, children: a.map((e, r) => {
15
+ return /* @__PURE__ */ u(C, { "aria-roledescription": "carousel", children: [
16
+ /* @__PURE__ */ o(m, { $currentIndex: l, children: a.map((e, r) => {
18
17
  const t = `slide-${r}`;
19
18
  return /* @__PURE__ */ o(
20
19
  d,
@@ -42,5 +41,5 @@ const g = ({
42
41
  ] });
43
42
  };
44
43
  export {
45
- g as Carousel
44
+ N as Carousel
46
45
  };
@@ -1,66 +1,59 @@
1
- import { jsxs as a, jsx as f } from "react/jsx-runtime";
2
- import { forwardRef as l, useRef as k, useImperativeHandle as g, useEffect as C } from "react";
3
- import { InputContainer as I } from "./styles.js";
1
+ import { jsxs as s, jsx as c } from "react/jsx-runtime";
2
+ import { forwardRef as h, useRef as k, useImperativeHandle as b, useEffect as g } from "react";
3
+ import { InputContainer as C, LabelText as I } from "./styles.js";
4
4
  import { Icon as R } from "../icon/index.js";
5
- import { Tooltip as b } from "../tooltip/index.js";
6
- const H = l(function({
7
- checked: s,
8
- disabled: r = !1,
5
+ import { Tooltip as j } from "../tooltip/index.js";
6
+ const H = h(function({
7
+ checked: a,
8
+ disabled: o = !1,
9
9
  indeterminate: i = !1,
10
- label: c,
11
- name: t,
10
+ label: t,
11
+ name: n,
12
12
  onChange: p,
13
- onClick: m,
14
- onFocus: u,
15
- onKeyDown: d,
16
- tooltip: n,
17
- value: e,
18
- ...x
19
- }, h) {
20
- const o = k(null);
21
- return g(h, () => o.current, []), C(() => {
22
- o.current !== null && (o.current.indeterminate = i);
23
- }, [i]), /* @__PURE__ */ a("div", { className: "gap-1 inline-flex items-start parent-checkbox", children: [
24
- /* @__PURE__ */ a(I, { "aria-disabled": r, children: [
25
- /* @__PURE__ */ f(
13
+ onClick: d,
14
+ onFocus: l,
15
+ onKeyDown: m,
16
+ tooltip: f,
17
+ value: r,
18
+ ...u
19
+ }, x) {
20
+ const e = k(null);
21
+ return b(x, () => e.current, []), g(() => {
22
+ e.current !== null && (e.current.indeterminate = i);
23
+ }, [i]), /* @__PURE__ */ s("div", { className: "gap-1 inline-flex items-start parent-checkbox", children: [
24
+ /* @__PURE__ */ s(C, { "aria-disabled": o, children: [
25
+ /* @__PURE__ */ c(
26
26
  "input",
27
27
  {
28
- "aria-checked": i ? "mixed" : s,
29
- "aria-disabled": r,
28
+ "aria-checked": i ? "mixed" : a,
29
+ "aria-disabled": o,
30
30
  "aria-hidden": !1,
31
- "aria-label": t,
32
- checked: s,
33
- "data-testid": typeof c == "string" ? c ?? e : e,
34
- disabled: r,
35
- id: t,
36
- name: t,
31
+ "aria-label": n,
32
+ checked: a,
33
+ "data-testid": typeof t == "string" ? t ?? r : r,
34
+ disabled: o,
35
+ id: n,
36
+ name: n,
37
37
  onChange: p,
38
- onClick: m,
39
- onFocus: u,
40
- onKeyDown: d,
41
- ref: o,
38
+ onClick: d,
39
+ onFocus: l,
40
+ onKeyDown: m,
41
+ ref: e,
42
42
  type: "checkbox",
43
- value: e,
44
- ...x
43
+ value: r,
44
+ ...u
45
45
  }
46
46
  ),
47
- /* @__PURE__ */ f(
48
- R,
49
- {
50
- disabled: r,
51
- icon: i ? "minus" : "check",
52
- iconSize: "xl"
53
- }
54
- ),
55
- c ?? e
47
+ /* @__PURE__ */ c(R, { icon: i ? "minus" : "check", iconSize: "xl" }),
48
+ /* @__PURE__ */ c(I, { children: t ?? r })
56
49
  ] }),
57
- n === void 0 ? void 0 : /* @__PURE__ */ f(
58
- b,
50
+ f === void 0 ? void 0 : /* @__PURE__ */ c(
51
+ j,
59
52
  {
60
53
  icon: "circle-info",
61
- id: n,
54
+ id: f,
62
55
  place: "right",
63
- tip: n
56
+ tip: f
64
57
  }
65
58
  )
66
59
  ] });
@@ -2,7 +2,10 @@ import { Meta } from '@storybook/react-vite';
2
2
  import { ICheckboxProps } from './types';
3
3
  declare const config: Meta;
4
4
  declare const Default: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ICheckboxProps>;
5
+ declare const Checked: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ICheckboxProps>;
5
6
  declare const Disabled: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ICheckboxProps>;
6
7
  declare const Indeterminate: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ICheckboxProps>;
7
- export { Default, Disabled, Indeterminate };
8
+ declare const DisabledUnchecked: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ICheckboxProps>;
9
+ declare const DisabledIndeterminate: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ICheckboxProps>;
10
+ export { Checked, Default, Disabled, DisabledIndeterminate, DisabledUnchecked, Indeterminate, };
8
11
  export default config;
@@ -1,2 +1,3 @@
1
+ declare const LabelText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>> & string;
1
2
  declare const InputContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>>> & string;
2
- export { InputContainer };
3
+ export { InputContainer, LabelText };
@@ -1,20 +1,22 @@
1
- import { styled as i } from "styled-components";
2
- const t = i.label`
3
- ${({ theme: a }) => `
1
+ import { styled as a } from "styled-components";
2
+ const t = a.span`
3
+ flex: 1;
4
+ min-width: 0;
5
+ `, n = a.label`
6
+ ${({ theme: i }) => `
4
7
  align-items: center;
5
- color: ${a.palette.gray[600]};
8
+ color: ${i.palette.gray[600]};
6
9
  display: flex;
7
10
  cursor: pointer;
8
- font-family: ${a.typography.type.primary};
9
- font-size: ${a.typography.text.md};
10
- font-weight: ${a.typography.weight.regular};
11
- line-height: ${a.spacing[1.25]};
11
+ font-family: ${i.typography.type.primary};
12
+ font-size: ${i.typography.text.md};
13
+ font-weight: ${i.typography.weight.regular};
14
+ line-height: ${i.spacing[1.25]};
12
15
  letter-spacing: 0;
13
16
  position: relative;
14
17
  text-align: left;
15
18
 
16
19
  &[aria-disabled="true"] {
17
- color: ${a.palette.gray[400]};
18
20
  cursor: not-allowed;
19
21
  }
20
22
 
@@ -24,59 +26,41 @@ const t = i.label`
24
26
  cursor: pointer;
25
27
  }
26
28
 
27
- input ~ span > svg {
28
- background-color: ${a.palette.white};
29
- border-radius: ${a.spacing[0.25]};
30
- border: 1px solid ${a.palette.gray[600]};
29
+ input + span > svg {
30
+ background-color: ${i.palette.white};
31
+ border-radius: ${i.spacing[0.25]};
32
+ border: 1px solid ${i.palette.gray[700]};
31
33
  top: 0;
32
34
  left: 0;
33
- height: ${a.spacing[0.5]};
34
- margin-right: ${a.spacing[0.5]};
35
- width: ${a.spacing[0.5]};
36
- padding: ${a.spacing[0.25]};
35
+ height: ${i.spacing[0.5]};
36
+ margin-right: ${i.spacing[0.5]};
37
+ width: ${i.spacing[0.5]};
38
+ padding: ${i.spacing[0.25]};
37
39
  }
38
40
 
39
- input ~ span > svg > path {
40
- fill: ${a.palette.white};
41
+ input + span > svg > path {
42
+ fill: ${i.palette.white};
41
43
  }
42
44
 
43
- input:checked ~ span > svg,
44
- input:indeterminate ~ span > svg {
45
- background-color: ${a.palette.primary[500]};
46
- border: 1px solid ${a.palette.primary[500]};
45
+ input:checked + span > svg,
46
+ input:indeterminate + span > svg {
47
+ background-color: ${i.palette.gray[700]};
47
48
  }
48
49
 
49
- input:disabled ~ span > svg {
50
- border: 1px solid ${a.palette.gray[300]};
51
- cursor: not-allowed;
52
- }
53
-
54
- input:not(:disabled):hover ~ span > svg {
55
- box-shadow: 0 0 0 4px ${a.palette.gray[100]};
56
- }
57
-
58
- input:checked:disabled ~ span > svg,
59
- input:indeterminate:disabled ~ span > svg {
60
- background-color: ${a.palette.gray[300]};
61
- border: 1px solid ${a.palette.gray[300]};
62
- }
63
-
64
- input:not(:disabled):hover:checked ~ span > svg,
65
- input:not(:disabled):hover:indeterminate ~ span > svg {
66
- box-shadow: 0 0 0 4px ${a.palette.primary[50]};
50
+ input:not(:disabled):hover + span > svg {
51
+ box-shadow: 0 0 0 4px ${i.palette.gray[200]};
67
52
  }
68
53
 
69
- input:checked ~ span > svg > path,
70
- input:indeterminate ~ span > svg > path {
71
- fill: ${a.palette.white};
54
+ input:disabled + span {
55
+ opacity: 0.4;
72
56
  }
73
57
 
74
- input:checked:disabled ~ span > svg > path,
75
- input:indeterminate:disabled ~ span > svg > path {
76
- fill: ${a.palette.white};
58
+ input:disabled ~ ${t} {
59
+ opacity: 0.5;
77
60
  }
78
61
  `}
79
62
  `;
80
63
  export {
81
- t as InputContainer
64
+ n as InputContainer,
65
+ t as LabelText
82
66
  };
@@ -1,9 +1,8 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import { AdvancedImage as l, lazyload as g, placeholder as c } from "../../node_modules/@cloudinary/react/dist/index.js";
3
- import p from "react";
4
- import { useCloudinaryImage as f } from "../../hooks/use-cloudinary-image.js";
5
- import "../../_virtual/lodash.js";
6
- const n = ({
3
+ import f from "react";
4
+ import { useCloudinaryImage as n } from "../../hooks/use-cloudinary-image.js";
5
+ const p = ({
7
6
  alt: e = "img",
8
7
  height: a = "",
9
8
  width: r = "",
@@ -11,7 +10,7 @@ const n = ({
11
10
  plugins: d = [g(), c()],
12
11
  publicId: t
13
12
  }) => {
14
- const o = f({ publicId: t });
13
+ const o = n({ publicId: t });
15
14
  return m && o.addTransformation(m), /* @__PURE__ */ i(
16
15
  l,
17
16
  {
@@ -22,7 +21,7 @@ const n = ({
22
21
  width: r
23
22
  }
24
23
  );
25
- }, y = p.memo(n);
24
+ }, x = f.memo(p);
26
25
  export {
27
- y as CloudImage
26
+ x as CloudImage
28
27
  };
@@ -3,27 +3,26 @@ import { useState as k, useRef as j, useCallback as r, useMemo as D } from "reac
3
3
  import { Checkbox as M } from "../checkbox/index.js";
4
4
  import { Container as O } from "../container/index.js";
5
5
  import { Modal as y } from "../modal/index.js";
6
- import "../../_virtual/lodash.js";
7
6
  import { useModal as v } from "../../hooks/use-modal.js";
8
7
  import { ModalConfirm as R } from "../modal/modal-confirm/index.js";
9
8
  const S = ({
10
9
  children: a,
11
- conditions: n,
10
+ conditions: t,
12
11
  id: c,
13
12
  modalRef: s,
14
13
  onConfirm: m,
15
14
  title: d
16
15
  }) => {
17
- const [t, i] = k(n), f = r(() => {
18
- i({ ...n });
19
- }, [n]), u = r((o) => () => {
16
+ const [n, i] = k(t), f = r(() => {
17
+ i({ ...t });
18
+ }, [t]), u = r((o) => () => {
20
19
  i((e) => ({
21
20
  ...e,
22
21
  [o]: { ...e[o], state: !e[o].state }
23
22
  }));
24
- }, []), l = !Object.values(t).every(
23
+ }, []), l = !Object.values(n).every(
25
24
  ({ state: o }) => o
26
- ), p = Object.entries(t).map(
25
+ ), p = Object.entries(n).map(
27
26
  ([o, { state: e, label: C }]) => /* @__PURE__ */ h(
28
27
  M,
29
28
  {
@@ -51,12 +50,12 @@ const S = ({
51
50
  ]
52
51
  }
53
52
  );
54
- }, F = (a, n, c) => {
55
- const { close: s, isOpen: m, name: d, open: t, setIsOpen: i, toggle: f } = v(
53
+ }, E = (a, t, c) => {
54
+ const { close: s, isOpen: m, name: d, open: n, setIsOpen: i, toggle: f } = v(
56
55
  "confirm-dialog-modal"
57
- ), [u] = k(c), l = j(null), p = r(async () => (t(), new Promise((g) => {
56
+ ), [u] = k(c), l = j(null), p = r(async () => (n(), new Promise((g) => {
58
57
  l.current = g;
59
- })), [t]), o = r(() => {
58
+ })), [n]), o = r(() => {
60
59
  s(), l.current?.(!0);
61
60
  }, [s]), e = r(() => {
62
61
  s(), l.current?.(!1);
@@ -65,11 +64,11 @@ const S = ({
65
64
  close: e,
66
65
  isOpen: m,
67
66
  name: d,
68
- open: t,
67
+ open: n,
69
68
  setIsOpen: i,
70
69
  toggle: f
71
70
  }),
72
- [e, m, d, t, i, f]
71
+ [e, m, d, n, i, f]
73
72
  ), b = r(
74
73
  ({ children: g }) => /* @__PURE__ */ h(
75
74
  S,
@@ -78,14 +77,14 @@ const S = ({
78
77
  id: a,
79
78
  modalRef: C,
80
79
  onConfirm: o,
81
- title: n,
80
+ title: t,
82
81
  children: g
83
82
  }
84
83
  ),
85
- [o, a, u, C, n]
84
+ [o, a, u, C, t]
86
85
  );
87
86
  return [p, b];
88
87
  };
89
88
  export {
90
- F as useConditionsDialog
89
+ E as useConditionsDialog
91
90
  };
@@ -1,24 +1,23 @@
1
1
  import { jsxs as f } from "react/jsx-runtime";
2
2
  import { useState as u, useRef as C, useCallback as l } from "react";
3
3
  import { Modal as p } from "../modal/index.js";
4
- import "../../_virtual/lodash.js";
5
4
  import { useModal as g } from "../../hooks/use-modal.js";
6
- const k = () => {
7
- const [o, n] = u(), r = C(null), c = g("confirm-dialog-modal"), { close: e, open: s } = c, a = l(
5
+ const M = () => {
6
+ const [o, n] = u(), r = C(null), c = g("confirm-dialog-modal"), { close: e, open: s } = c, m = l(
8
7
  async (i) => (n(i), s(), new Promise((t) => {
9
8
  r.current = t;
10
9
  })),
11
10
  [s]
12
11
  ), d = l(() => {
13
12
  e(), n(void 0), r.current?.(!0);
14
- }, [e]), m = l(() => {
13
+ }, [e]), a = l(() => {
15
14
  e(), n(void 0), r.current?.(!1);
16
15
  }, [e]);
17
16
  return { ConfirmDialog: ({ id: i = "confirm-dialog-modal", children: t }) => /* @__PURE__ */ f(
18
17
  p,
19
18
  {
20
19
  cancelButton: o?.showCancel === !0 || o?.showCancel === void 0 ? {
21
- onClick: m,
20
+ onClick: a,
22
21
  text: o?.cancelText ?? "Cancel"
23
22
  } : void 0,
24
23
  confirmButton: o?.showConfirm === !0 || o?.showConfirm === void 0 ? {
@@ -28,7 +27,7 @@ const k = () => {
28
27
  } : void 0,
29
28
  description: o?.message,
30
29
  id: i,
31
- modalRef: { ...c, close: m },
30
+ modalRef: { ...c, close: a },
32
31
  size: o?.modalSize ?? "sm",
33
32
  title: o?.title,
34
33
  children: [
@@ -36,8 +35,8 @@ const k = () => {
36
35
  t
37
36
  ]
38
37
  }
39
- ), confirm: a };
38
+ ), confirm: m };
40
39
  };
41
40
  export {
42
- k as useConfirmDialog
41
+ M as useConfirmDialog
43
42
  };
@@ -2,10 +2,11 @@
2
2
  interface IMonthPanelProps {
3
3
  maxValue?: string;
4
4
  minValue?: string;
5
+ onClose: () => void;
5
6
  onSelect: (period: string) => void;
6
7
  value: string;
7
8
  }
8
- /** The year bar and the month grid of a month picker. */
9
- declare const MonthPanel: ({ maxValue, minValue, onSelect, value, }: Readonly<IMonthPanelProps>) => JSX.Element;
9
+ /** The year bar, the month grid and the Today and Cancel actions of a month picker. */
10
+ declare const MonthPanel: ({ maxValue, minValue, onClose, onSelect, value, }: Readonly<IMonthPanelProps>) => JSX.Element;
10
11
  export { MonthPanel };
11
12
  export type { IMonthPanelProps };
@@ -1,4 +1,5 @@
1
1
  declare const YearBar: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
2
2
  declare const MonthGrid: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
3
3
  declare const MonthItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>> & string;
4
- export { MonthGrid, MonthItem, YearBar };
4
+ declare const Footer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
5
+ export { Footer, MonthGrid, MonthItem, YearBar };
@@ -1,22 +1,21 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import { useRef as f, useState as p } from "react";
2
+ import { useRef as f, useState as c } from "react";
3
3
  import { trapTabKey as o } from "./utils.js";
4
- import { ModalWrapper as c } from "../styles.js";
5
- import "../../../_virtual/lodash.js";
4
+ import { ModalWrapper as p } from "../styles.js";
6
5
  import { useMountEffect as s } from "../../../hooks/use-mount-effect.js";
7
- const b = ({
6
+ const w = ({
8
7
  children: n = void 0,
9
8
  id: a = void 0,
10
9
  label: i
11
10
  }) => {
12
- const r = f(null), [t] = p(() => document.activeElement);
11
+ const r = f(null), [t] = c(() => document.activeElement);
13
12
  return s(() => {
14
13
  const e = r.current;
15
14
  return e?.contains(document.activeElement) !== !0 && e?.focus(), e?.addEventListener("keydown", o), () => {
16
15
  e?.removeEventListener("keydown", o), t instanceof HTMLElement && t.focus();
17
16
  };
18
17
  }), /* @__PURE__ */ m(
19
- c,
18
+ p,
20
19
  {
21
20
  "aria-label": i,
22
21
  "aria-modal": "true",
@@ -29,5 +28,5 @@ const b = ({
29
28
  );
30
29
  };
31
30
  export {
32
- b as Dialog
31
+ w as Dialog
33
32
  };
@@ -1,46 +1,46 @@
1
- import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as l } from "react";
3
- import { LabelContainer as s, CheckMark as c } from "./styles.js";
4
- const j = l(function({
5
- checked: i,
6
- disabled: r = !1,
7
- label: o,
8
- name: a,
9
- onChange: n,
10
- onClick: e,
11
- value: f,
12
- ...p
13
- }, u) {
14
- return /* @__PURE__ */ d(
1
+ import { jsxs as u, jsx as a } from "react/jsx-runtime";
2
+ import { forwardRef as c } from "react";
3
+ import { LabelContainer as s, CheckMark as l, LabelText as m } from "./styles.js";
4
+ const k = c(function({
5
+ checked: t,
6
+ disabled: o = !1,
7
+ label: r,
8
+ name: i,
9
+ onChange: e,
10
+ onClick: d,
11
+ value: n,
12
+ ...f
13
+ }, p) {
14
+ return /* @__PURE__ */ u(
15
15
  s,
16
16
  {
17
- "aria-disabled": r,
18
- "aria-label": o ?? a,
17
+ "aria-disabled": o,
18
+ "aria-label": r ?? i,
19
19
  role: "radiogroup",
20
20
  children: [
21
- /* @__PURE__ */ t(
21
+ /* @__PURE__ */ a(
22
22
  "input",
23
23
  {
24
- "aria-checked": i,
25
- "aria-disabled": r,
26
- "aria-label": o ?? a,
27
- checked: i,
28
- disabled: r,
29
- name: a,
30
- onChange: n,
31
- onClick: e,
32
- ref: u,
24
+ "aria-checked": t,
25
+ "aria-disabled": o,
26
+ "aria-label": r ?? i,
27
+ checked: t,
28
+ disabled: o,
29
+ name: i,
30
+ onChange: e,
31
+ onClick: d,
32
+ ref: p,
33
33
  type: "radio",
34
- value: f,
35
- ...p
34
+ value: n,
35
+ ...f
36
36
  }
37
37
  ),
38
- /* @__PURE__ */ t(c, {}),
39
- o ?? null
38
+ /* @__PURE__ */ a(l, {}),
39
+ r === void 0 ? void 0 : /* @__PURE__ */ a(m, { children: r })
40
40
  ]
41
41
  }
42
42
  );
43
43
  });
44
44
  export {
45
- j as RadioButton
45
+ k as RadioButton
46
46
  };
@@ -1,7 +1,8 @@
1
+ declare const LabelText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>> & string;
1
2
  declare const LabelContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>>> & string;
2
3
  declare const CheckMark: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | "ref" | keyof import('react').HTMLAttributes<HTMLSpanElement>> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
3
4
  ref?: ((instance: HTMLSpanElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLSpanElement> | null | undefined;
4
5
  }, "className"> & Partial<Pick<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | "ref" | keyof import('react').HTMLAttributes<HTMLSpanElement>> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
5
6
  ref?: ((instance: HTMLSpanElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLSpanElement> | null | undefined;
6
7
  }, "className">>> & string;
7
- export { CheckMark, LabelContainer };
8
+ export { CheckMark, LabelContainer, LabelText };
@@ -1,20 +1,19 @@
1
- import { styled as r } from "styled-components";
2
- const t = r.label`
3
- ${({ theme: a }) => `
1
+ import { styled as a } from "styled-components";
2
+ const o = a.span``, r = a.label`
3
+ ${({ theme: t }) => `
4
4
  align-items: center;
5
5
  display: flex;
6
- color: ${a.palette.gray[600]};
6
+ color: ${t.palette.gray[600]};
7
7
  cursor: pointer;
8
- font-family: ${a.typography.type.primary};
9
- font-size: ${a.typography.text.md};
10
- font-weight: ${a.typography.weight.regular};
11
- gap: ${a.spacing[0.5]};
12
- line-height: ${a.spacing[1.25]};
8
+ font-family: ${t.typography.type.primary};
9
+ font-size: ${t.typography.text.md};
10
+ font-weight: ${t.typography.weight.regular};
11
+ gap: ${t.spacing[0.5]};
12
+ line-height: ${t.spacing[1.25]};
13
13
  text-align: left;
14
14
  position: relative;
15
15
 
16
16
  &[aria-disabled="true"] {
17
- color: ${a.palette.gray[400]};
18
17
  cursor: not-allowed;
19
18
  }
20
19
 
@@ -31,30 +30,21 @@ const t = r.label`
31
30
  left: 0;
32
31
  height: 16px;
33
32
  width: 16px;
34
- background-color: ${a.palette.white};
33
+ background-color: ${t.palette.white};
35
34
  border-radius: 50%;
36
- border: 1px solid ${a.palette.gray[600]};
35
+ border: 1px solid ${t.palette.gray[700]};
37
36
  }
38
37
 
39
- input:disabled ~ .checkmark {
40
- border: 1px solid ${a.palette.gray[300]};
41
- background-color: ${a.palette.white};
42
- cursor: not-allowed;
43
- }
44
-
45
- input:not(:disabled):checked ~ .checkmark {
46
- background-color: ${a.palette.white};
47
- border: 1px solid ${a.palette.primary[500]};
38
+ input:not(:disabled):hover ~ .checkmark {
39
+ box-shadow: 0 0 0 4px ${t.palette.gray[200]};
48
40
  }
49
41
 
50
- input:not(:disabled):hover ~ .checkmark {
51
- background-color: ${a.palette.white};
52
- box-shadow: 0 0 0 4px ${a.palette.gray[100]};
42
+ input:disabled ~ .checkmark {
43
+ opacity: 0.4;
53
44
  }
54
45
 
55
- input:not(:disabled):hover:checked ~ .checkmark {
56
- background-color: ${a.palette.white};
57
- box-shadow: 0 0 0 4px ${a.palette.primary[50]};
46
+ input:disabled ~ ${o} {
47
+ opacity: 0.5;
58
48
  }
59
49
 
60
50
  .checkmark::after {
@@ -66,20 +56,17 @@ const t = r.label`
66
56
  width: 8px;
67
57
  height: 8px;
68
58
  border-radius: 50%;
69
- background: ${a.palette.primary[500]};
59
+ background: ${t.palette.gray[700]};
70
60
  }
71
61
 
72
62
  input:checked ~ .checkmark::after {
73
63
  display: block;
74
64
  }
75
65
 
76
- input:disabled:checked ~ .checkmark::after {
77
- background-color: ${a.palette.gray[300]};
78
- }
79
-
80
66
  `}
81
- `, e = r.span.attrs({ className: "checkmark" })``;
67
+ `, e = a.span.attrs({ className: "checkmark" })``;
82
68
  export {
83
69
  e as CheckMark,
84
- t as LabelContainer
70
+ r as LabelContainer,
71
+ o as LabelText
85
72
  };
@@ -2,12 +2,11 @@ import { jsx as a } from "react/jsx-runtime";
2
2
  import { useRef as l, useState as x, useCallback as m } from "react";
3
3
  import { TableContext as z } from "../context/index.js";
4
4
  import { TableContainer as y } from "../styles.js";
5
- import "../../../_virtual/lodash.js";
6
5
  import { useMountEffect as u } from "../../../hooks/use-mount-effect.js";
7
6
  const C = 160, f = (t) => Number.parseFloat(t) || 0, E = (t) => {
8
7
  const { paddingLeft: e, paddingRight: n } = getComputedStyle(t);
9
8
  return t.clientWidth - f(e) - f(n);
10
- }, P = ({
9
+ }, M = ({
11
10
  children: t,
12
11
  table: e
13
12
  }) => {
@@ -63,5 +62,5 @@ const C = 160, f = (t) => Number.parseFloat(t) || 0, E = (t) => {
63
62
  );
64
63
  };
65
64
  export {
66
- P as Table
65
+ M as Table
67
66
  };
package/package.json CHANGED
@@ -57,7 +57,7 @@
57
57
  "eslint-plugin-react-hooks": "7.1.1",
58
58
  "eslint-plugin-storybook": "10.6.2",
59
59
  "jsdom": "27.4.0",
60
- "next": "16.4.1",
60
+ "next": "16.4.5",
61
61
  "playwright": "1.60.0",
62
62
  "postcss-styled-syntax": "0.7.1",
63
63
  "prettier": "3.9.6",
@@ -135,5 +135,5 @@
135
135
  "./dist/index.js"
136
136
  ],
137
137
  "typings": "./dist/index.d.ts",
138
- "version": "11.8.0"
138
+ "version": "11.9.0"
139
139
  }