@fluidattacks/design 11.7.1 → 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,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
  };
@@ -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,4 +1,4 @@
1
- import { IOAuthSelectorProps, IOptionRowProps, TOAuthProvider } from './types';
2
- declare const OAuthSelector: ({ align, buttonLabel, fallbackOptions, header, id, options, }: Readonly<IOAuthSelectorProps>) => JSX.Element;
1
+ import { IOAuthSelectorProps, IOptionRowProps, ISelectorNote, TOAuthProvider } from './types';
2
+ declare const OAuthSelector: ({ align, buttonLabel, fallbackOptions, header, id, note, options, }: Readonly<IOAuthSelectorProps>) => JSX.Element;
3
3
  export { OAuthSelector };
4
- export type { IOAuthSelectorProps, IOptionRowProps, TOAuthProvider };
4
+ export type { IOAuthSelectorProps, IOptionRowProps, ISelectorNote, TOAuthProvider, };
@@ -1,62 +1,65 @@
1
- import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
- import { useState as C, useRef as O, useId as I, useCallback as i, createElement as b, Fragment as D } from "react";
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import { useState as O, useRef as b, useId as z, useCallback as r, createElement as S, Fragment as D } from "react";
3
3
  import { useTheme as k } from "styled-components";
4
4
  import { OptionRow as R } from "./option-row/index.js";
5
- import { Button as S } from "../button/index.js";
6
- import { Container as h } from "../container/index.js";
7
- import { Divider as z } from "../divider/index.js";
5
+ import { SelectorNote as T } from "./styles.js";
6
+ import { Button as W } from "../button/index.js";
7
+ import { Container as d } from "../container/index.js";
8
+ import { Divider as j } from "../divider/index.js";
9
+ import { Icon as A } from "../icon/index.js";
8
10
  import "../typography/heading/index.js";
9
11
  import "../typography/span/index.js";
10
- import { Text as T } from "../typography/text/index.js";
11
- import { useClickOutside as j } from "../../hooks/use-click-outside.js";
12
- const M = ({
13
- align: u = "end",
12
+ import { Text as p } from "../typography/text/index.js";
13
+ import { useClickOutside as E } from "../../hooks/use-click-outside.js";
14
+ const V = ({
15
+ align: x = "end",
14
16
  buttonLabel: a = "Add Credential",
15
- fallbackOptions: p = [],
17
+ fallbackOptions: m = [],
16
18
  header: n,
17
- id: x,
18
- options: g
19
+ id: y,
20
+ note: l,
21
+ options: v
19
22
  }) => {
20
- const o = k(), [d, r] = C(!1), m = O(null), w = I(), c = x ?? w, s = i(() => {
21
- r(!1);
23
+ const o = k(), [f, s] = O(!1), h = b(null), w = z(), g = y ?? w, c = r(() => {
24
+ s(!1);
22
25
  }, []);
23
- j(m, s);
24
- const y = i(() => {
25
- r((e) => !e);
26
- }, []), v = i(
27
- (e) => {
28
- e.key === "Escape" && r(!1);
26
+ E(h, c);
27
+ const C = r(() => {
28
+ s((i) => !i);
29
+ }, []), I = r(
30
+ (i) => {
31
+ i.key === "Escape" && s(!1);
29
32
  },
30
33
  []
31
- ), f = i(
32
- (e) => /* @__PURE__ */ b(R, { ...e, key: e.id, onChoose: s }),
33
- [s]
34
+ ), u = r(
35
+ (i) => /* @__PURE__ */ S(R, { ...i, key: i.id, onChoose: c }),
36
+ [c]
34
37
  );
35
- return /* @__PURE__ */ l(
36
- h,
38
+ return /* @__PURE__ */ t(
39
+ d,
37
40
  {
38
- alignItems: u,
41
+ alignItems: x,
39
42
  display: "flex",
40
43
  flexDirection: "column",
41
- onKeyDown: v,
44
+ onKeyDown: I,
42
45
  position: "relative",
43
- ref: m,
46
+ ref: h,
44
47
  width: "max-content",
45
48
  zIndex: 10,
46
49
  children: [
47
- /* @__PURE__ */ t(
48
- S,
50
+ /* @__PURE__ */ e(
51
+ W,
49
52
  {
50
- "aria-controls": c,
51
- "aria-expanded": d,
53
+ "aria-controls": g,
54
+ "aria-expanded": f,
52
55
  icon: "plus",
53
- onClick: y,
56
+ onClick: C,
54
57
  variant: "primary",
55
58
  children: a
56
59
  }
57
60
  ),
58
- d ? /* @__PURE__ */ l(
59
- h,
61
+ f ? /* @__PURE__ */ t(
62
+ d,
60
63
  {
61
64
  "aria-label": n ?? a,
62
65
  bgColor: o.palette.white,
@@ -65,7 +68,7 @@ const M = ({
65
68
  display: "flex",
66
69
  flexDirection: "column",
67
70
  gap: 0.25,
68
- id: c,
71
+ id: g,
69
72
  minWidth: "380px",
70
73
  padding: [0.75, 0.75, 0.75, 0.75],
71
74
  position: "absolute",
@@ -74,8 +77,8 @@ const M = ({
74
77
  top: "44px",
75
78
  zIndex: 10,
76
79
  children: [
77
- n === void 0 ? void 0 : /* @__PURE__ */ t(
78
- T,
80
+ n === void 0 ? void 0 : /* @__PURE__ */ e(
81
+ p,
79
82
  {
80
83
  color: o.palette.gray[400],
81
84
  fontWeight: "bold",
@@ -84,10 +87,33 @@ const M = ({
84
87
  children: n
85
88
  }
86
89
  ),
87
- /* @__PURE__ */ t("span", { children: g.map(f) }),
88
- p.length === 0 ? void 0 : /* @__PURE__ */ l(D, { children: [
89
- /* @__PURE__ */ t(z, { mb: 0.25, mt: 0.25 }),
90
- p.map(f)
90
+ /* @__PURE__ */ e("span", { children: v.map(u) }),
91
+ l === void 0 ? void 0 : /* @__PURE__ */ t(T, { role: "note", children: [
92
+ /* @__PURE__ */ e(
93
+ A,
94
+ {
95
+ icon: "circle-info",
96
+ iconColor: o.palette.info[700],
97
+ iconSize: "lg",
98
+ iconType: "fa-light"
99
+ }
100
+ ),
101
+ /* @__PURE__ */ t(d, { children: [
102
+ /* @__PURE__ */ e(
103
+ p,
104
+ {
105
+ color: o.palette.info[700],
106
+ fontWeight: "bold",
107
+ size: "md",
108
+ children: l.title
109
+ }
110
+ ),
111
+ /* @__PURE__ */ e(p, { color: o.palette.info[700], size: "md", children: l.description })
112
+ ] })
113
+ ] }),
114
+ m.length === 0 ? void 0 : /* @__PURE__ */ t(D, { children: [
115
+ /* @__PURE__ */ e(j, { mb: 0.25, mt: 0.25 }),
116
+ m.map(u)
91
117
  ] })
92
118
  ]
93
119
  }
@@ -97,5 +123,5 @@ const M = ({
97
123
  );
98
124
  };
99
125
  export {
100
- M as OAuthSelector
126
+ V as OAuthSelector
101
127
  };
@@ -1,2 +1,3 @@
1
1
  declare const OptionButton: 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;
2
- export { OptionButton };
2
+ declare const SelectorNote: 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
+ export { OptionButton, SelectorNote };
@@ -1,21 +1,33 @@
1
- import { styled as r } from "styled-components";
2
- const t = r.button`
3
- ${({ theme: o }) => `
1
+ import { styled as o } from "styled-components";
2
+ const r = o.button`
3
+ ${({ theme: i }) => `
4
4
  align-items: center;
5
5
  background: none;
6
6
  border: none;
7
- border-radius: ${o.spacing[0.25]};
7
+ border-radius: ${i.spacing[0.25]};
8
8
  cursor: pointer;
9
9
  display: flex;
10
10
  gap: 9px;
11
- padding: ${o.spacing[0.5]};
11
+ padding: ${i.spacing[0.5]};
12
12
  text-align: left;
13
13
  width: 100%;
14
14
 
15
- &:hover { background-color: ${o.palette.gray[100]}; }
16
- &:focus-visible { outline: 1px solid ${o.palette.primary[400]}; }
15
+ &:hover { background-color: ${i.palette.gray[100]}; }
16
+ &:focus-visible { outline: 1px solid ${i.palette.primary[400]}; }
17
+ `}
18
+ `, a = o.div`
19
+ ${({ theme: i }) => `
20
+ align-items: center;
21
+ background: ${i.palette.info[50]};
22
+ border: 1px solid ${i.palette.info[500]};
23
+ border-radius: ${i.spacing[0.25]};
24
+ display: flex;
25
+ gap: ${i.spacing[0.5]};
26
+ margin-top: ${i.spacing[0.25]};
27
+ padding: ${i.spacing[0.75]};
17
28
  `}
18
29
  `;
19
30
  export {
20
- t as OptionButton
31
+ r as OptionButton,
32
+ a as SelectorNote
21
33
  };
@@ -32,6 +32,16 @@ interface IOptionRowProps {
32
32
  interface IOptionRowComponentProps extends IOptionRowProps {
33
33
  onChoose: VoidFunction;
34
34
  }
35
+ /**
36
+ * Info note shown inside the selector panel.
37
+ * @interface ISelectorNote
38
+ * @property {string} description - Regular line under the title.
39
+ * @property {string} title - Bold first line of the note.
40
+ */
41
+ interface ISelectorNote {
42
+ description: string;
43
+ title: string;
44
+ }
35
45
  /**
36
46
  * Oauth selector component props.
37
47
  * @interface IOAuthSelectorProps
@@ -40,6 +50,7 @@ interface IOptionRowComponentProps extends IOptionRowProps {
40
50
  * @property {IOptionRowProps[]} [fallbackOptions] - Options shown under a divider.
41
51
  * @property {string} [header] - Uppercase header shown above the options.
42
52
  * @property {string} [id] - Id to be used on the panel.
53
+ * @property {ISelectorNote} [note] - Info note shown between the options and the fallback options.
43
54
  * @property {IOptionRowProps[]} options - Ordered options the menu offers.
44
55
  */
45
56
  interface IOAuthSelectorProps {
@@ -48,6 +59,7 @@ interface IOAuthSelectorProps {
48
59
  fallbackOptions?: IOptionRowProps[];
49
60
  header?: string;
50
61
  id?: string;
62
+ note?: ISelectorNote;
51
63
  options: IOptionRowProps[];
52
64
  }
53
- export type { IOAuthSelectorProps, IOptionRowComponentProps, IOptionRowProps, TOAuthProvider, };
65
+ export type { IOAuthSelectorProps, IOptionRowComponentProps, IOptionRowProps, ISelectorNote, TOAuthProvider, };
@@ -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
  };
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.7.1"
138
+ "version": "11.9.0"
139
139
  }