@clubmed/trident-ui 1.3.0-beta.4 → 1.3.0-beta.5

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 (83) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/assets/style.css +1 -1
  3. package/chunks/plugin.js +53 -0
  4. package/chunks/plugin.js.map +1 -0
  5. package/molecules/Arrows/Arrows.d.ts +16 -0
  6. package/molecules/Arrows/Arrows.js +66 -0
  7. package/molecules/Arrows/Arrows.js.map +1 -0
  8. package/molecules/Arrows/ArrowsLabels.d.js +2 -0
  9. package/molecules/Arrows/ArrowsLabels.d.js.map +1 -0
  10. package/molecules/Arrows.d.ts +1 -50
  11. package/molecules/Arrows.js +2 -56
  12. package/molecules/Arrows.js.map +1 -1
  13. package/molecules/Buttons/ArrowButton.d.ts +7 -0
  14. package/molecules/Buttons/ArrowButton.js +14 -0
  15. package/molecules/Buttons/ArrowButton.js.map +1 -0
  16. package/molecules/Buttons/Button.d.ts +13 -34
  17. package/molecules/Buttons/Button.js +50 -42
  18. package/molecules/Buttons/Button.js.map +1 -1
  19. package/molecules/Buttons/ButtonAnchor.d.ts +2 -3
  20. package/molecules/Buttons/ButtonAnchor.js +14 -36
  21. package/molecules/Buttons/ButtonAnchor.js.map +1 -1
  22. package/molecules/Buttons/ButtonContent.d.ts +11 -3
  23. package/molecules/Buttons/ButtonContent.js +13 -6
  24. package/molecules/Buttons/ButtonContent.js.map +1 -1
  25. package/molecules/Buttons/InertButton.d.ts +4 -0
  26. package/molecules/Buttons/InertButton.js +14 -31
  27. package/molecules/Buttons/InertButton.js.map +1 -1
  28. package/molecules/Buttons/v2/Button.d.ts +10 -0
  29. package/molecules/Buttons/v2/Button.js +32 -0
  30. package/molecules/Buttons/v2/Button.js.map +1 -0
  31. package/molecules/Buttons/v2/Button.type.d.ts +54 -0
  32. package/molecules/Buttons/v2/Button.type.js +42 -0
  33. package/molecules/Buttons/v2/Button.type.js.map +1 -0
  34. package/molecules/Buttons/v2/ButtonAnchor.d.ts +12 -0
  35. package/molecules/Buttons/v2/ButtonAnchor.js +32 -0
  36. package/molecules/Buttons/v2/ButtonAnchor.js.map +1 -0
  37. package/molecules/Buttons/v2/FakeButton.d.ts +7 -0
  38. package/molecules/Buttons/v2/FakeButton.js +27 -0
  39. package/molecules/Buttons/v2/FakeButton.js.map +1 -0
  40. package/molecules/Forms/NumberField.d.ts +15 -15
  41. package/molecules/Forms/NumberField.js +68 -68
  42. package/molecules/Forms/NumberField.js.map +1 -1
  43. package/molecules/Pagination.d.ts +2 -1
  44. package/molecules/Pagination.js +68 -46
  45. package/molecules/Pagination.js.map +1 -1
  46. package/molecules/Popin.js +16 -16
  47. package/molecules/Popin.js.map +1 -1
  48. package/package.json +11 -11
  49. package/styles/globals.css +12 -15
  50. package/tailwind/colors.d.ts +38 -0
  51. package/tailwind/colors.js +44 -0
  52. package/tailwind/colors.js.map +1 -0
  53. package/tailwind/plugins/animationDelay.d.ts +4 -0
  54. package/tailwind/plugins/animationDelay.js +15 -0
  55. package/tailwind/plugins/animationDelay.js.map +1 -0
  56. package/tailwind/plugins/hocus.d.ts +4 -0
  57. package/tailwind/plugins/hocus.js +11 -0
  58. package/tailwind/plugins/hocus.js.map +1 -0
  59. package/tailwind/plugins/lineClampFix.d.ts +4 -0
  60. package/tailwind/plugins/lineClampFix.js +13 -0
  61. package/tailwind/plugins/lineClampFix.js.map +1 -0
  62. package/tailwind/plugins/popover.d.ts +4 -0
  63. package/tailwind/plugins/popover.js +8 -0
  64. package/tailwind/plugins/popover.js.map +1 -0
  65. package/tailwind/plugins/startingStyle.d.ts +4 -0
  66. package/tailwind/plugins/startingStyle.js +8 -0
  67. package/tailwind/plugins/startingStyle.js.map +1 -0
  68. package/tailwind/plugins/transitionBehavior.d.ts +4 -0
  69. package/tailwind/plugins/transitionBehavior.js +11 -0
  70. package/tailwind/plugins/transitionBehavior.js.map +1 -0
  71. package/tailwind/tailwind.preset.d.ts +730 -510
  72. package/tailwind/tailwind.preset.js +705 -631
  73. package/tailwind/tailwind.preset.js.map +1 -1
  74. package/types/Colors.d.js +2 -0
  75. package/types/Colors.d.js.map +1 -0
  76. package/types/ScrollerLabels.d.js +2 -0
  77. package/types/ScrollerLabels.d.js.map +1 -0
  78. package/molecules/Buttons/Button.helpers.d.ts +0 -8
  79. package/molecules/Buttons/Button.helpers.js +0 -12
  80. package/molecules/Buttons/Button.helpers.js.map +0 -1
  81. package/molecules/Buttons/Button.themes.d.ts +0 -1
  82. package/molecules/Buttons/Button.themes.js +0 -25
  83. package/molecules/Buttons/Button.themes.js.map +0 -1
@@ -1,40 +1,18 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { c as C } from "../../chunks/index.js";
3
- /* empty css */
4
- import "react";
5
- import { variants as y, rootClassName as B } from "./Button.helpers.js";
6
- import { themes as w } from "./Button.themes.js";
7
- import { ButtonContent as A } from "./ButtonContent.js";
8
- const D = ({
9
- theme: s = "yellow",
10
- component: r = "a",
11
- backgroundOverride: e,
12
- variant: t = "text",
13
- className: n,
14
- label: o,
15
- children: a,
16
- title: c,
17
- icon: p,
18
- dataTestId: i,
19
- href: l,
20
- groupName: f = "",
21
- ...h
22
- }) => {
23
- const u = t === "text", d = y[t], x = w(s, e, f);
24
- return /* @__PURE__ */ m(
25
- r,
26
- {
27
- "data-name": "ButtonAnchor",
28
- "data-testid": i,
29
- className: C(B, x, d, t, n),
30
- title: c || o,
31
- href: l,
32
- ...h,
33
- children: /* @__PURE__ */ m(A, { showLabel: u, label: o, icon: p, children: a })
34
- }
35
- );
1
+ import { jsxs as n } from "react/jsx-runtime";
2
+ import { ButtonAnchor as r } from "./v2/ButtonAnchor.js";
3
+ import { BUTTON_THEME_LEGACY as c, BUTTON_VARIANT_LEGACY as e } from "./Button.js";
4
+ const i = (t) => {
5
+ const o = {
6
+ ...t,
7
+ ...c[t.theme] || {},
8
+ ...e[t.variant] || {}
9
+ };
10
+ return /* @__PURE__ */ n(r, { ...o, children: [
11
+ o.label,
12
+ t.children
13
+ ] });
36
14
  };
37
15
  export {
38
- D as ButtonAnchor
16
+ i as ButtonAnchor
39
17
  };
40
18
  //# sourceMappingURL=ButtonAnchor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonAnchor.js","sources":["../../../lib/molecules/Buttons/ButtonAnchor.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport type { AnchorHTMLAttributes, FunctionComponent, PropsWithChildren } from 'react';\nimport './button.css';\nimport { type CommonButtonProps } from './Button';\nimport { rootClassName, variants } from './Button.helpers';\nimport { themes } from './Button.themes';\nimport { ButtonContent } from './ButtonContent';\n\ninterface ButtonAnchorProps extends CommonButtonProps, AnchorHTMLAttributes<HTMLAnchorElement> {\n component?: FunctionComponent<PropsWithChildren<any>> | string;\n}\n\nexport const ButtonAnchor: FunctionComponent<ButtonAnchorProps> = ({\n theme = 'yellow',\n component = 'a',\n backgroundOverride,\n variant = 'text',\n className,\n label,\n children,\n title,\n icon,\n dataTestId,\n href,\n groupName = '',\n ...rest\n}) => {\n const showLabel = variant === 'text';\n const layout = variants[variant];\n const style = themes(theme, backgroundOverride, groupName);\n const Cmp = component as FunctionComponent<PropsWithChildren<ButtonAnchorProps>>;\n\n return (\n <Cmp\n data-name=\"ButtonAnchor\"\n data-testid={dataTestId}\n className={classNames(rootClassName, style, layout, variant, className)}\n title={title || label}\n href={href}\n {...rest}\n >\n <ButtonContent showLabel={showLabel} label={label} icon={icon}>\n {children}\n </ButtonContent>\n </Cmp>\n );\n};\n"],"names":["ButtonAnchor","theme","component","backgroundOverride","variant","className","label","children","title","icon","dataTestId","href","groupName","rest","showLabel","layout","variants","style","themes","jsx","classNames","rootClassName","ButtonContent"],"mappings":";;;;;;;AAYO,MAAMA,IAAqD,CAAC;AAAA,EACjE,OAAAC,IAAQ;AAAA,EACR,WAAAC,IAAY;AAAA,EACZ,oBAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,MAAAC;AAAA,EACA,YAAAC;AAAA,EACA,MAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,GAAGC;AACL,MAAM;AACJ,QAAMC,IAAYV,MAAY,QACxBW,IAASC,EAASZ,CAAO,GACzBa,IAAQC,EAAOjB,GAAOE,GAAoBS,CAAS;AAIvD,SAAA,gBAAAO;AAAA,IAHUjB;AAAA,IAGT;AAAA,MACC,aAAU;AAAA,MACV,eAAaQ;AAAA,MACb,WAAWU,EAAWC,GAAeJ,GAAOF,GAAQX,GAASC,CAAS;AAAA,MACtE,OAAOG,KAASF;AAAA,MAChB,MAAAK;AAAA,MACC,GAAGE;AAAA,MAEJ,UAAC,gBAAAM,EAAAG,GAAA,EAAc,WAAAR,GAAsB,OAAAR,GAAc,MAAAG,GAChD,UAAAF,GACH;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"ButtonAnchor.js","sources":["../../../lib/molecules/Buttons/ButtonAnchor.tsx"],"sourcesContent":["import type { AnchorHTMLAttributes, FunctionComponent, PropsWithChildren } from 'react';\nimport { ButtonAnchor as ButtonAnchorV2 } from './v2/ButtonAnchor';\nimport { BUTTON_THEME_LEGACY, BUTTON_VARIANT_LEGACY, type CommonButtonProps } from './Button';\n\ntype ButtonAnchorProps = CommonButtonProps & {\n component?: FunctionComponent<PropsWithChildren<any>> | string;\n} & AnchorHTMLAttributes<HTMLAnchorElement>;\n\nexport const ButtonAnchor: FunctionComponent<ButtonAnchorProps> = (props) => {\n const opts = {\n ...props,\n ...(BUTTON_THEME_LEGACY[props.theme!] || {}),\n ...(BUTTON_VARIANT_LEGACY[props.variant!] || {}),\n };\n\n return (\n <ButtonAnchorV2 {...opts}>\n {opts.label}\n {props.children}\n </ButtonAnchorV2>\n );\n};\n"],"names":["ButtonAnchor","props","opts","BUTTON_THEME_LEGACY","BUTTON_VARIANT_LEGACY","jsxs","ButtonAnchorV2"],"mappings":";;;AAQa,MAAAA,IAAqD,CAACC,MAAU;AAC3E,QAAMC,IAAO;AAAA,IACX,GAAGD;AAAA,IACH,GAAIE,EAAoBF,EAAM,KAAM,KAAK,CAAC;AAAA,IAC1C,GAAIG,EAAsBH,EAAM,OAAQ,KAAK,CAAC;AAAA,EAAA;AAI9C,SAAA,gBAAAI,EAACC,GAAgB,EAAA,GAAGJ,GACjB,UAAA;AAAA,IAAKA,EAAA;AAAA,IACLD,EAAM;AAAA,EACT,EAAA,CAAA;AAEJ;"}
@@ -1,9 +1,17 @@
1
1
  import type { FunctionComponent, ReactNode } from 'react';
2
2
  import { type IconicNames, type IconicTypes } from '../../atoms/Icons';
3
- export declare const ButtonContent: FunctionComponent<{
4
- showLabel: boolean;
3
+ export type ButtonContentProps = {
4
+ /**
5
+ * @deprecated
6
+ */
7
+ showLabel?: boolean;
8
+ /**
9
+ * @deprecated
10
+ */
5
11
  label?: string;
6
12
  children?: ReactNode;
7
13
  icon?: IconicNames;
8
14
  iconType?: IconicTypes;
9
- }>;
15
+ iconWidth?: string;
16
+ };
17
+ export declare const ButtonContent: FunctionComponent<ButtonContentProps>;
@@ -1,12 +1,19 @@
1
- import { jsxs as m, jsx as n } from "react/jsx-runtime";
2
- import { Icon as p } from "../../atoms/Icons/Icon.js";
1
+ import { jsxs as p, jsx as n } from "react/jsx-runtime";
2
+ import { Icon as c } from "../../atoms/Icons/Icon.js";
3
3
  import "@clubmed/trident-icons";
4
- const l = ({ showLabel: r, label: t, children: s, icon: e, iconType: o }) => /* @__PURE__ */ m("span", { className: "flex items-center justify-center gap-x-8 w-full", children: [
5
- r ? t : /* @__PURE__ */ n("span", { className: "sr-only", children: t }),
4
+ const f = ({
5
+ showLabel: r,
6
+ label: t,
7
+ children: s,
8
+ icon: e,
9
+ iconType: o,
10
+ iconWidth: m
11
+ }) => /* @__PURE__ */ p("span", { className: "flex items-center justify-center gap-x-8 w-full", children: [
12
+ r ? t : t && /* @__PURE__ */ n("span", { className: "sr-only", children: t }),
6
13
  s,
7
- e && /* @__PURE__ */ n(p, { width: "24px", name: e, type: o })
14
+ e && /* @__PURE__ */ n(c, { name: e, width: m ?? "24px", type: o })
8
15
  ] });
9
16
  export {
10
- l as ButtonContent
17
+ f as ButtonContent
11
18
  };
12
19
  //# sourceMappingURL=ButtonContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonContent.js","sources":["../../../lib/molecules/Buttons/ButtonContent.tsx"],"sourcesContent":["import type { FunctionComponent, ReactNode } from 'react';\n\nimport { Icon, type IconicNames, type IconicTypes } from '@/atoms/Icons';\n\nexport const ButtonContent: FunctionComponent<{\n showLabel: boolean;\n label?: string;\n children?: ReactNode;\n icon?: IconicNames;\n iconType?: IconicTypes;\n}> = ({ showLabel, label, children, icon, iconType }) => {\n return (\n <span className=\"flex items-center justify-center gap-x-8 w-full\">\n {showLabel ? label : <span className=\"sr-only\">{label}</span>}\n {children}\n {icon && <Icon width=\"24px\" name={icon} type={iconType} />}\n </span>\n );\n};\n"],"names":["ButtonContent","showLabel","label","children","icon","iconType","jsxs","jsx","Icon"],"mappings":";;;AAIa,MAAAA,IAMR,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,UAAAC,GAAU,MAAAC,GAAM,UAAAC,QAEtC,gBAAAC,EAAC,QAAK,EAAA,WAAU,mDACb,UAAA;AAAA,EAAAL,IAAYC,IAAQ,gBAAAK,EAAC,QAAK,EAAA,WAAU,WAAW,UAAML,GAAA;AAAA,EACrDC;AAAA,EACAC,uBAASI,GAAK,EAAA,OAAM,QAAO,MAAMJ,GAAM,MAAMC,GAAU;AAC1D,EAAA,CAAA;"}
1
+ {"version":3,"file":"ButtonContent.js","sources":["../../../lib/molecules/Buttons/ButtonContent.tsx"],"sourcesContent":["import type { FunctionComponent, ReactNode } from 'react';\n\nimport { Icon, type IconicNames, type IconicTypes } from '@/atoms/Icons';\n\nexport type ButtonContentProps = {\n /**\n * @deprecated\n */\n showLabel?: boolean;\n /**\n * @deprecated\n */\n label?: string;\n children?: ReactNode;\n icon?: IconicNames;\n iconType?: IconicTypes;\n iconWidth?: string;\n};\n\nexport const ButtonContent: FunctionComponent<ButtonContentProps> = ({\n showLabel,\n label,\n children,\n icon,\n iconType,\n iconWidth,\n}) => {\n return (\n <span className=\"flex items-center justify-center gap-x-8 w-full\">\n {showLabel ? label : label && <span className=\"sr-only\">{label}</span>}\n {children}\n {icon && <Icon name={icon} width={iconWidth ?? '24px'} type={iconType} />}\n </span>\n );\n};\n"],"names":["ButtonContent","showLabel","label","children","icon","iconType","iconWidth","jsxs","jsx","Icon"],"mappings":";;;AAmBO,MAAMA,IAAuD,CAAC;AAAA,EACnE,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AACF,MAEI,gBAAAC,EAAC,QAAK,EAAA,WAAU,mDACb,UAAA;AAAA,EAAAN,IAAYC,IAAQA,KAAS,gBAAAM,EAAC,QAAK,EAAA,WAAU,WAAW,UAAMN,GAAA;AAAA,EAC9DC;AAAA,EACAC,uBAASK,GAAK,EAAA,MAAML,GAAM,OAAOE,KAAa,QAAQ,MAAMD,EAAU,CAAA;AACzE,EAAA,CAAA;"}
@@ -1,3 +1,7 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { type CommonButtonProps } from './Button';
3
+ /**
4
+ * @deprecated Use `FakeButton` instead.
5
+ * @param props
6
+ */
3
7
  export declare const InertButton: FunctionComponent<CommonButtonProps>;
@@ -1,35 +1,18 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { c as d } from "../../chunks/index.js";
3
- import "react";
4
- /* empty css */
5
- import { variants as x, rootClassName as h } from "./Button.helpers.js";
6
- import { themes as y } from "./Button.themes.js";
7
- import { ButtonContent as B } from "./ButtonContent.js";
8
- const g = ({
9
- theme: e = "yellow",
10
- backgroundOverride: r,
11
- variant: t = "text",
12
- className: m,
13
- label: o,
14
- children: n,
15
- title: a,
16
- icon: i,
17
- dataTestId: p,
18
- groupName: c = ""
19
- }) => {
20
- const l = t === "text", f = x[t], u = y(e, r, c);
21
- return /* @__PURE__ */ s(
22
- "span",
23
- {
24
- "data-name": "InertButton",
25
- "data-testid": p,
26
- className: d(h, u, f, t, m),
27
- title: a || o,
28
- children: /* @__PURE__ */ s(B, { showLabel: l, label: o, icon: i, children: n })
29
- }
30
- );
1
+ import { jsxs as e } from "react/jsx-runtime";
2
+ import { BUTTON_THEME_LEGACY as n, BUTTON_VARIANT_LEGACY as o } from "./Button.js";
3
+ import { FakeButton as m } from "./v2/FakeButton.js";
4
+ const c = (t) => {
5
+ const r = {
6
+ ...t,
7
+ ...n[t.theme] || {},
8
+ ...o[t.variant] || {}
9
+ };
10
+ return /* @__PURE__ */ e(m, { ...r, children: [
11
+ r.label,
12
+ t.children
13
+ ] });
31
14
  };
32
15
  export {
33
- g as InertButton
16
+ c as InertButton
34
17
  };
35
18
  //# sourceMappingURL=InertButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InertButton.js","sources":["../../../lib/molecules/Buttons/InertButton.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport type { FunctionComponent } from 'react';\n\nimport { type CommonButtonProps } from './Button';\nimport { rootClassName, variants } from './Button.helpers';\nimport { themes } from './Button.themes';\nimport { ButtonContent } from './ButtonContent';\n\nexport const InertButton: FunctionComponent<CommonButtonProps> = ({\n theme = 'yellow',\n backgroundOverride,\n variant = 'text',\n className,\n label,\n children,\n title,\n icon,\n dataTestId,\n groupName = '',\n}) => {\n const showLabel = variant === 'text';\n const layout = variants[variant];\n const style = themes(theme, backgroundOverride, groupName);\n\n return (\n <span\n data-name=\"InertButton\"\n data-testid={dataTestId}\n className={classNames(rootClassName, style, layout, variant, className)}\n title={title || label}\n >\n <ButtonContent showLabel={showLabel} label={label} icon={icon}>\n {children}\n </ButtonContent>\n </span>\n );\n};\n"],"names":["InertButton","theme","backgroundOverride","variant","className","label","children","title","icon","dataTestId","groupName","showLabel","layout","variants","style","themes","jsx","classNames","rootClassName","ButtonContent"],"mappings":";;;;;;;AAQO,MAAMA,IAAoD,CAAC;AAAA,EAChE,OAAAC,IAAQ;AAAA,EACR,oBAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,MAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC,IAAY;AACd,MAAM;AACJ,QAAMC,IAAYR,MAAY,QACxBS,IAASC,EAASV,CAAO,GACzBW,IAAQC,EAAOd,GAAOC,GAAoBQ,CAAS;AAGvD,SAAA,gBAAAM;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,eAAaP;AAAA,MACb,WAAWQ,EAAWC,GAAeJ,GAAOF,GAAQT,GAASC,CAAS;AAAA,MACtE,OAAOG,KAASF;AAAA,MAEhB,UAAC,gBAAAW,EAAAG,GAAA,EAAc,WAAAR,GAAsB,OAAAN,GAAc,MAAAG,GAChD,UAAAF,GACH;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"InertButton.js","sources":["../../../lib/molecules/Buttons/InertButton.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\n\nimport { BUTTON_THEME_LEGACY, BUTTON_VARIANT_LEGACY, type CommonButtonProps } from './Button';\nimport { FakeButton } from '@/molecules/Buttons/v2/FakeButton';\n\n/**\n * @deprecated Use `FakeButton` instead.\n * @param props\n */\nexport const InertButton: FunctionComponent<CommonButtonProps> = (props) => {\n const opts = {\n ...props,\n ...(BUTTON_THEME_LEGACY[props.theme!] || {}),\n ...(BUTTON_VARIANT_LEGACY[props.variant!] || {}),\n };\n\n return (\n <FakeButton {...opts}>\n {opts.label}\n {props.children}\n </FakeButton>\n );\n};\n"],"names":["InertButton","props","opts","BUTTON_THEME_LEGACY","BUTTON_VARIANT_LEGACY","jsxs","FakeButton"],"mappings":";;;AASa,MAAAA,IAAoD,CAACC,MAAU;AAC1E,QAAMC,IAAO;AAAA,IACX,GAAGD;AAAA,IACH,GAAIE,EAAoBF,EAAM,KAAM,KAAK,CAAC;AAAA,IAC1C,GAAIG,EAAsBH,EAAM,OAAQ,KAAK,CAAC;AAAA,EAAA;AAI9C,SAAA,gBAAAI,EAACC,GAAY,EAAA,GAAGJ,GACb,UAAA;AAAA,IAAKA,EAAA;AAAA,IACLD,EAAM;AAAA,EACT,EAAA,CAAA;AAEJ;"}
@@ -0,0 +1,10 @@
1
+ import type { ComponentPropsWithoutRef, FunctionComponent } from 'react';
2
+ import { type ButtonProps as Btn } from './Button.type';
3
+ import './Button.css';
4
+ export interface ButtonProps extends Btn, Omit<ComponentPropsWithoutRef<'button'>, 'color'> {
5
+ /**
6
+ * @deprecated use `data-testid` instead
7
+ */
8
+ dataTestId?: string;
9
+ }
10
+ export declare const Button: FunctionComponent<ButtonProps>;
@@ -0,0 +1,32 @@
1
+ "use client";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { c as p } from "../../../chunks/index.js";
4
+ import { getButtonClasses as c } from "./Button.type.js";
5
+ import { ButtonContent as d } from "../ButtonContent.js";
6
+ /* empty css */
7
+ const g = ({
8
+ className: o,
9
+ children: n,
10
+ color: s = "saffron",
11
+ icon: e,
12
+ iconWidth: m,
13
+ size: r = "medium",
14
+ theme: a = "solid",
15
+ variant: i = "pill",
16
+ dataTestId: u,
17
+ ...l
18
+ }) => /* @__PURE__ */ t(
19
+ "button",
20
+ {
21
+ type: "button",
22
+ "data-testid": u,
23
+ ...l,
24
+ className: p(c({ color: s, size: r, theme: a, variant: i }), o),
25
+ "data-name": "Button",
26
+ children: /* @__PURE__ */ t(d, { icon: e, iconWidth: m, children: n })
27
+ }
28
+ );
29
+ export {
30
+ g as Button
31
+ };
32
+ //# sourceMappingURL=Button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.js","sources":["../../../../lib/molecules/Buttons/v2/Button.tsx"],"sourcesContent":["'use client';\nimport classnames from 'classnames';\nimport type { ComponentPropsWithoutRef, FunctionComponent } from 'react';\n\nimport { getButtonClasses, type ButtonProps as Btn } from './Button.type';\nimport { ButtonContent } from '../ButtonContent';\n\nimport './Button.css';\n\nexport interface ButtonProps extends Btn, Omit<ComponentPropsWithoutRef<'button'>, 'color'> {\n /**\n * @deprecated use `data-testid` instead\n */\n dataTestId?: string;\n}\n\nexport const Button: FunctionComponent<ButtonProps> = ({\n className,\n children,\n color = 'saffron',\n icon,\n iconWidth,\n size = 'medium',\n theme = 'solid',\n variant = 'pill',\n dataTestId,\n ...attrs\n}) => {\n return (\n <button\n type=\"button\"\n data-testid={dataTestId}\n {...attrs}\n className={classnames(getButtonClasses({ color, size, theme, variant }), className)}\n data-name=\"Button\"\n >\n <ButtonContent icon={icon} iconWidth={iconWidth}>\n {children}\n </ButtonContent>\n </button>\n );\n};\n"],"names":["Button","className","children","color","icon","iconWidth","size","theme","variant","dataTestId","attrs","jsx","classnames","getButtonClasses","ButtonContent"],"mappings":";;;;;;AAgBO,MAAMA,IAAyC,CAAC;AAAA,EACrD,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,MAAAC;AAAA,EACA,WAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,OAAAC,IAAQ;AAAA,EACR,SAAAC,IAAU;AAAA,EACV,YAAAC;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,MAAK;AAAA,IACL,eAAaF;AAAA,IACZ,GAAGC;AAAA,IACJ,WAAWE,EAAWC,EAAiB,EAAE,OAAAV,GAAO,MAAAG,GAAM,OAAAC,GAAO,SAAAC,GAAS,GAAGP,CAAS;AAAA,IAClF,aAAU;AAAA,IAEV,UAAC,gBAAAU,EAAAG,GAAA,EAAc,MAAAV,GAAY,WAAAC,GACxB,UAAAH,GACH;AAAA,EAAA;AAAA;"}
@@ -0,0 +1,54 @@
1
+ import type { Colors } from '../../../types/Colors';
2
+ import type { IconicNames, IconicTypes } from '../../../atoms/Icons';
3
+ export interface ButtonProps {
4
+ color?: Colors;
5
+ /**
6
+ * Optional icon name
7
+ */
8
+ icon?: IconicNames;
9
+ /**
10
+ * Force the icon type to be svg, font or default
11
+ */
12
+ iconType?: IconicTypes;
13
+ iconWidth?: string;
14
+ size?: 'small' | 'medium' | 'large';
15
+ theme?: 'outline' | 'solid';
16
+ variant?: 'circle' | 'pill';
17
+ }
18
+ type Params = {
19
+ color: ButtonProps['color'];
20
+ size: ButtonProps['size'];
21
+ theme: ButtonProps['theme'];
22
+ variant: ButtonProps['variant'];
23
+ };
24
+ export declare const BUTTON_COLORS: {
25
+ readonly black: "button-black";
26
+ readonly green: "button-green";
27
+ readonly lavender: "button-lavender";
28
+ readonly lightSand: "button-lightSand";
29
+ readonly marygold: "button-marygold";
30
+ readonly orange: "button-orange";
31
+ readonly red: "button-red";
32
+ readonly saffron: "button-saffron";
33
+ readonly sand: "button-sand";
34
+ readonly sienna: "button-sienna";
35
+ readonly ultramarine: "button-ultramarine";
36
+ readonly verdigris: "button-verdigris";
37
+ readonly wave: "button-wave";
38
+ readonly white: "button-white";
39
+ };
40
+ export declare const BUTTON_THEMES: {
41
+ readonly outline: "button-outline";
42
+ readonly solid: "button-solid";
43
+ };
44
+ export declare const BUTTON_VARIANTS: {
45
+ readonly circle: "button-circle";
46
+ readonly pill: "button-pill";
47
+ };
48
+ export declare const BUTTON_SIZES: {
49
+ readonly small: "button-small";
50
+ readonly medium: "button-medium";
51
+ readonly large: "button-large";
52
+ };
53
+ export declare const getButtonClasses: ({ color, size, theme, variant }: Params) => string;
54
+ export {};
@@ -0,0 +1,42 @@
1
+ import { c as r } from "../../../chunks/index.js";
2
+ const u = {
3
+ black: "button-black",
4
+ green: "button-green",
5
+ lavender: "button-lavender",
6
+ lightSand: "button-lightSand",
7
+ marygold: "button-marygold",
8
+ orange: "button-orange",
9
+ red: "button-red",
10
+ saffron: "button-saffron",
11
+ sand: "button-sand",
12
+ sienna: "button-sienna",
13
+ ultramarine: "button-ultramarine",
14
+ verdigris: "button-verdigris",
15
+ wave: "button-wave",
16
+ white: "button-white"
17
+ }, a = (t) => u[t || "saffron"], l = {
18
+ outline: "button-outline",
19
+ solid: "button-solid"
20
+ }, s = (t) => l[t || "solid"], i = {
21
+ circle: "button-circle",
22
+ pill: "button-pill"
23
+ }, b = (t) => i[t || "pill"], d = {
24
+ small: "button-small",
25
+ medium: "button-medium",
26
+ large: "button-large"
27
+ }, c = (t) => d[t || "medium"], m = ({ color: t, size: n, theme: o, variant: e }) => r(
28
+ "flex",
29
+ "button",
30
+ s(o),
31
+ a(t),
32
+ b(e),
33
+ c(n)
34
+ );
35
+ export {
36
+ u as BUTTON_COLORS,
37
+ d as BUTTON_SIZES,
38
+ l as BUTTON_THEMES,
39
+ i as BUTTON_VARIANTS,
40
+ m as getButtonClasses
41
+ };
42
+ //# sourceMappingURL=Button.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.type.js","sources":["../../../../lib/molecules/Buttons/v2/Button.type.ts"],"sourcesContent":["import classnames from 'classnames';\n\nimport type { Colors } from '@/types/Colors';\nimport type { IconicNames, IconicTypes } from '@/atoms/Icons';\n\nexport interface ButtonProps {\n color?: Colors;\n /**\n * Optional icon name\n */\n icon?: IconicNames;\n /**\n * Force the icon type to be svg, font or default\n */\n iconType?: IconicTypes;\n iconWidth?: string;\n size?: 'small' | 'medium' | 'large';\n theme?: 'outline' | 'solid';\n variant?: 'circle' | 'pill';\n}\n\ntype Params = {\n color: ButtonProps['color'];\n size: ButtonProps['size'];\n theme: ButtonProps['theme'];\n variant: ButtonProps['variant'];\n};\n\nexport const BUTTON_COLORS = {\n black: 'button-black',\n green: 'button-green',\n lavender: 'button-lavender',\n lightSand: 'button-lightSand',\n marygold: 'button-marygold',\n orange: 'button-orange',\n red: 'button-red',\n saffron: 'button-saffron',\n sand: 'button-sand',\n sienna: 'button-sienna',\n ultramarine: 'button-ultramarine',\n verdigris: 'button-verdigris',\n wave: 'button-wave',\n white: 'button-white',\n} as const satisfies Record<string, `button-${string}`>;\n\nconst getButtonColor = (color: ButtonProps['color']) => {\n return BUTTON_COLORS[color || 'saffron'];\n};\n\nexport const BUTTON_THEMES = {\n outline: 'button-outline',\n solid: 'button-solid',\n} as const satisfies Record<string, `button-${string}`>;\n\nconst getButtonTheme = (theme: ButtonProps['theme']) => {\n return BUTTON_THEMES[theme || 'solid'];\n};\n\nexport const BUTTON_VARIANTS = {\n circle: 'button-circle',\n pill: 'button-pill',\n} as const satisfies Record<string, `button-${string}`>;\n\nconst getButtonVariant = (variant: ButtonProps['variant']) => {\n return BUTTON_VARIANTS[variant || 'pill'];\n};\n\nexport const BUTTON_SIZES = {\n small: 'button-small',\n medium: 'button-medium',\n large: 'button-large',\n} as const satisfies Record<string, `button-${string}`>;\n\nconst getButtonSize = (size: ButtonProps['size']) => {\n return BUTTON_SIZES[size || 'medium'];\n};\n\nexport const getButtonClasses = ({ color, size, theme, variant }: Params) => {\n /* keep the \"flex\" class outside of \"button-*\" so that it can be overridden in responsive */\n return classnames(\n 'flex',\n 'button',\n getButtonTheme(theme),\n getButtonColor(color),\n getButtonVariant(variant),\n getButtonSize(size),\n );\n};\n"],"names":["BUTTON_COLORS","getButtonColor","color","BUTTON_THEMES","getButtonTheme","theme","BUTTON_VARIANTS","getButtonVariant","variant","BUTTON_SIZES","getButtonSize","size","getButtonClasses","classnames"],"mappings":";AA4BO,MAAMA,IAAgB;AAAA,EAC3B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,UAAU;AAAA,EACV,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,KAAK;AAAA,EACL,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,WAAW;AAAA,EACX,MAAM;AAAA,EACN,OAAO;AACT,GAEMC,IAAiB,CAACC,MACfF,EAAcE,KAAS,SAAS,GAG5BC,IAAgB;AAAA,EAC3B,SAAS;AAAA,EACT,OAAO;AACT,GAEMC,IAAiB,CAACC,MACfF,EAAcE,KAAS,OAAO,GAG1BC,IAAkB;AAAA,EAC7B,QAAQ;AAAA,EACR,MAAM;AACR,GAEMC,IAAmB,CAACC,MACjBF,EAAgBE,KAAW,MAAM,GAG7BC,IAAe;AAAA,EAC1B,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AACT,GAEMC,IAAgB,CAACC,MACdF,EAAaE,KAAQ,QAAQ,GAGzBC,IAAmB,CAAC,EAAE,OAAAV,GAAO,MAAAS,GAAM,OAAAN,GAAO,SAAAG,QAE9CK;AAAA,EACL;AAAA,EACA;AAAA,EACAT,EAAeC,CAAK;AAAA,EACpBJ,EAAeC,CAAK;AAAA,EACpBK,EAAiBC,CAAO;AAAA,EACxBE,EAAcC,CAAI;AAAA;"}
@@ -0,0 +1,12 @@
1
+ import type { ComponentPropsWithoutRef, FunctionComponent, PropsWithChildren } from 'react';
2
+ import { type ButtonProps } from './Button.type';
3
+ import './Button.css';
4
+ export interface ButtonAnchorProps extends ButtonProps, Omit<ComponentPropsWithoutRef<'a'>, 'color'> {
5
+ href: string;
6
+ /**
7
+ * @deprecated use `data-testid` instead
8
+ */
9
+ dataTestId?: string;
10
+ component?: FunctionComponent<PropsWithChildren<any>> | string;
11
+ }
12
+ export declare const ButtonAnchor: FunctionComponent<ButtonAnchorProps>;
@@ -0,0 +1,32 @@
1
+ "use client";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { c as u } from "../../../chunks/index.js";
4
+ import { getButtonClasses as d } from "./Button.type.js";
5
+ import { ButtonContent as f } from "../ButtonContent.js";
6
+ /* empty css */
7
+ const j = ({
8
+ className: o,
9
+ children: m,
10
+ color: n = "saffron",
11
+ icon: r,
12
+ iconWidth: s,
13
+ size: a = "medium",
14
+ theme: e = "solid",
15
+ variant: i = "pill",
16
+ component: c = "a",
17
+ dataTestId: p,
18
+ ...l
19
+ }) => /* @__PURE__ */ t(
20
+ c,
21
+ {
22
+ "data-testid": p,
23
+ ...l,
24
+ className: u(d({ color: n, size: a, theme: e, variant: i }), o),
25
+ "data-name": "ButtonAnchor",
26
+ children: /* @__PURE__ */ t(f, { icon: r, iconWidth: s, children: m })
27
+ }
28
+ );
29
+ export {
30
+ j as ButtonAnchor
31
+ };
32
+ //# sourceMappingURL=ButtonAnchor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonAnchor.js","sources":["../../../../lib/molecules/Buttons/v2/ButtonAnchor.tsx"],"sourcesContent":["'use client';\n\nimport classnames from 'classnames';\nimport type { ComponentPropsWithoutRef, FunctionComponent, PropsWithChildren } from 'react';\n\nimport { getButtonClasses, type ButtonProps } from './Button.type';\nimport { ButtonContent } from '../ButtonContent';\n\nimport './Button.css';\n\nexport interface ButtonAnchorProps\n extends ButtonProps,\n Omit<ComponentPropsWithoutRef<'a'>, 'color'> {\n href: string;\n /**\n * @deprecated use `data-testid` instead\n */\n dataTestId?: string;\n\n component?: FunctionComponent<PropsWithChildren<any>> | string;\n}\n\nexport const ButtonAnchor: FunctionComponent<ButtonAnchorProps> = ({\n className,\n children,\n color = 'saffron',\n icon,\n iconWidth,\n size = 'medium',\n theme = 'solid',\n variant = 'pill',\n component = 'a',\n dataTestId,\n ...attrs\n}) => {\n const Cmp = component as FunctionComponent<PropsWithChildren<ButtonAnchorProps>>;\n return (\n <Cmp\n data-testid={dataTestId}\n {...attrs}\n className={classnames(getButtonClasses({ color, size, theme, variant }), className)}\n data-name=\"ButtonAnchor\"\n >\n <ButtonContent icon={icon} iconWidth={iconWidth}>\n {children}\n </ButtonContent>\n </Cmp>\n );\n};\n"],"names":["ButtonAnchor","className","children","color","icon","iconWidth","size","theme","variant","component","dataTestId","attrs","jsx","classnames","getButtonClasses","ButtonContent"],"mappings":";;;;;;AAsBO,MAAMA,IAAqD,CAAC;AAAA,EACjE,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,MAAAC;AAAA,EACA,WAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,OAAAC,IAAQ;AAAA,EACR,SAAAC,IAAU;AAAA,EACV,WAAAC,IAAY;AAAA,EACZ,YAAAC;AAAA,EACA,GAAGC;AACL,MAGI,gBAAAC;AAAA,EAFUH;AAAA,EAET;AAAA,IACC,eAAaC;AAAA,IACZ,GAAGC;AAAA,IACJ,WAAWE,EAAWC,EAAiB,EAAE,OAAAX,GAAO,MAAAG,GAAM,OAAAC,GAAO,SAAAC,GAAS,GAAGP,CAAS;AAAA,IAClF,aAAU;AAAA,IAEV,UAAC,gBAAAW,EAAAG,GAAA,EAAc,MAAAX,GAAY,WAAAC,GACxB,UAAAH,GACH;AAAA,EAAA;AAAA;"}
@@ -0,0 +1,7 @@
1
+ import type { ComponentPropsWithoutRef, FunctionComponent } from 'react';
2
+ import { type ButtonProps } from './Button.type';
3
+ import './Button.css';
4
+ interface Props extends ButtonProps, Omit<ComponentPropsWithoutRef<'span'>, 'color'> {
5
+ }
6
+ export declare const FakeButton: FunctionComponent<Props>;
7
+ export {};
@@ -0,0 +1,27 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { c as l } from "../../../chunks/index.js";
3
+ import { getButtonClasses as f } from "./Button.type.js";
4
+ import { ButtonContent as c } from "../ButtonContent.js";
5
+ /* empty css */
6
+ const g = ({
7
+ className: t,
8
+ children: r,
9
+ color: s = "saffron",
10
+ icon: m,
11
+ iconWidth: n,
12
+ size: e = "medium",
13
+ theme: a = "solid",
14
+ variant: i = "pill",
15
+ ...p
16
+ }) => /* @__PURE__ */ o(
17
+ "span",
18
+ {
19
+ ...p,
20
+ className: l(f({ color: s, size: e, theme: a, variant: i }), t),
21
+ children: /* @__PURE__ */ o(c, { icon: m, iconWidth: n, children: r })
22
+ }
23
+ );
24
+ export {
25
+ g as FakeButton
26
+ };
27
+ //# sourceMappingURL=FakeButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FakeButton.js","sources":["../../../../lib/molecules/Buttons/v2/FakeButton.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport type { ComponentPropsWithoutRef, FunctionComponent } from 'react';\n\nimport { getButtonClasses, type ButtonProps } from './Button.type';\n\nimport { ButtonContent } from '../ButtonContent';\n\nimport './Button.css';\n\ninterface Props extends ButtonProps, Omit<ComponentPropsWithoutRef<'span'>, 'color'> {}\n\nexport const FakeButton: FunctionComponent<Props> = ({\n className,\n children,\n color = 'saffron',\n icon,\n iconWidth,\n size = 'medium',\n theme = 'solid',\n variant = 'pill',\n ...attrs\n}) => {\n return (\n <span\n {...attrs}\n className={classnames(getButtonClasses({ color, size, theme, variant }), className)}\n >\n <ButtonContent icon={icon} iconWidth={iconWidth}>\n {children}\n </ButtonContent>\n </span>\n );\n};\n"],"names":["FakeButton","className","children","color","icon","iconWidth","size","theme","variant","attrs","jsx","classnames","getButtonClasses","ButtonContent"],"mappings":";;;;;AAWO,MAAMA,IAAuC,CAAC;AAAA,EACnD,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,MAAAC;AAAA,EACA,WAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,OAAAC,IAAQ;AAAA,EACR,SAAAC,IAAU;AAAA,EACV,GAAGC;AACL,MAEI,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACE,GAAGD;AAAA,IACJ,WAAWE,EAAWC,EAAiB,EAAE,OAAAT,GAAO,MAAAG,GAAM,OAAAC,GAAO,SAAAC,GAAS,GAAGP,CAAS;AAAA,IAElF,UAAC,gBAAAS,EAAAG,GAAA,EAAc,MAAAT,GAAY,WAAAC,GACxB,UAAAH,GACH;AAAA,EAAA;AAAA;"}
@@ -21,13 +21,16 @@ export declare function useNumberField(props: NumberFieldProps): {
21
21
  errorMessage?: string | undefined;
22
22
  children?: import("react").ReactNode;
23
23
  defaultValue?: string | number | readonly string[] | undefined;
24
+ color?: string | undefined;
25
+ size?: number | undefined;
24
26
  className?: string | undefined;
25
27
  width?: string | number | undefined;
26
28
  type?: import("react").HTMLInputTypeAttribute | undefined;
27
- onClick?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLLabelElement>) | undefined;
28
- tabIndex?: number | undefined;
29
- title?: string | undefined;
30
29
  form?: string | undefined;
30
+ slot?: string | undefined;
31
+ style?: import("react").CSSProperties | undefined;
32
+ title?: string | undefined;
33
+ pattern?: string | undefined;
31
34
  formAction?: string | undefined;
32
35
  formEncType?: string | undefined;
33
36
  formMethod?: string | undefined;
@@ -45,9 +48,8 @@ export declare function useNumberField(props: NumberFieldProps): {
45
48
  hidden?: boolean | undefined;
46
49
  lang?: string | undefined;
47
50
  nonce?: string | undefined;
48
- slot?: string | undefined;
49
51
  spellCheck?: (boolean | "true" | "false") | undefined;
50
- style?: import("react").CSSProperties | undefined;
52
+ tabIndex?: number | undefined;
51
53
  translate?: "yes" | "no" | undefined;
52
54
  radioGroup?: string | undefined;
53
55
  role?: import("react").AriaRole | undefined;
@@ -65,7 +67,6 @@ export declare function useNumberField(props: NumberFieldProps): {
65
67
  autoCapitalize?: string | undefined;
66
68
  autoCorrect?: string | undefined;
67
69
  autoSave?: string | undefined;
68
- color?: string | undefined;
69
70
  itemProp?: string | undefined;
70
71
  itemScope?: boolean | undefined;
71
72
  itemType?: string | undefined;
@@ -78,7 +79,7 @@ export declare function useNumberField(props: NumberFieldProps): {
78
79
  is?: string | undefined;
79
80
  "aria-activedescendant"?: string | undefined;
80
81
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
81
- "aria-autocomplete"?: "none" | "list" | "both" | "inline" | undefined;
82
+ "aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
82
83
  "aria-braillelabel"?: string | undefined;
83
84
  "aria-brailleroledescription"?: string | undefined;
84
85
  "aria-busy"?: (boolean | "true" | "false") | undefined;
@@ -88,17 +89,17 @@ export declare function useNumberField(props: NumberFieldProps): {
88
89
  "aria-colindextext"?: string | undefined;
89
90
  "aria-colspan"?: number | undefined;
90
91
  "aria-controls"?: string | undefined;
91
- "aria-current"?: boolean | "true" | "false" | "time" | "page" | "step" | "location" | "date" | undefined;
92
+ "aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
92
93
  "aria-describedby"?: string | undefined;
93
94
  "aria-description"?: string | undefined;
94
95
  "aria-details"?: string | undefined;
95
96
  "aria-disabled"?: (boolean | "true" | "false") | undefined;
96
- "aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
97
+ "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
97
98
  "aria-errormessage"?: string | undefined;
98
99
  "aria-expanded"?: (boolean | "true" | "false") | undefined;
99
100
  "aria-flowto"?: string | undefined;
100
101
  "aria-grabbed"?: (boolean | "true" | "false") | undefined;
101
- "aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
102
+ "aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
102
103
  "aria-hidden"?: (boolean | "true" | "false") | undefined;
103
104
  "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
104
105
  "aria-keyshortcuts"?: string | undefined;
@@ -115,7 +116,7 @@ export declare function useNumberField(props: NumberFieldProps): {
115
116
  "aria-posinset"?: number | undefined;
116
117
  "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
117
118
  "aria-readonly"?: (boolean | "true" | "false") | undefined;
118
- "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
119
+ "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
119
120
  "aria-required"?: (boolean | "true" | "false") | undefined;
120
121
  "aria-roledescription"?: string | undefined;
121
122
  "aria-rowcount"?: number | undefined;
@@ -217,6 +218,7 @@ export declare function useNumberField(props: NumberFieldProps): {
217
218
  onWaitingCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLLabelElement>) | undefined;
218
219
  onAuxClick?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLLabelElement>) | undefined;
219
220
  onAuxClickCapture?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLLabelElement>) | undefined;
221
+ onClick?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLLabelElement>) | undefined;
220
222
  onClickCapture?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLLabelElement>) | undefined;
221
223
  onContextMenu?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLLabelElement>) | undefined;
222
224
  onContextMenuCapture?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLLabelElement>) | undefined;
@@ -293,25 +295,23 @@ export declare function useNumberField(props: NumberFieldProps): {
293
295
  onTransitionEnd?: (import("react").TransitionEventHandler<HTMLInputElement> & import("react").TransitionEventHandler<HTMLLabelElement>) | undefined;
294
296
  onTransitionEndCapture?: (import("react").TransitionEventHandler<HTMLInputElement> & import("react").TransitionEventHandler<HTMLLabelElement>) | undefined;
295
297
  list?: string | undefined;
296
- pattern?: string | undefined;
298
+ step?: string | number | undefined;
297
299
  alt?: string | undefined;
298
300
  src?: string | undefined;
299
301
  height?: string | number | undefined;
300
302
  layout?: "horizontal" | "vertical" | undefined;
301
- size?: number | undefined;
302
303
  multiple?: boolean | undefined;
303
304
  htmlFor?: string | undefined;
304
305
  autoComplete?: import("react").HTMLInputAutoCompleteAttribute | undefined;
305
306
  accept?: string | undefined;
306
307
  capture?: boolean | "user" | "environment" | undefined;
307
308
  checked?: boolean | undefined;
308
- enterKeyHint?: "search" | "next" | "enter" | "previous" | "done" | "go" | "send" | undefined;
309
+ enterKeyHint?: "search" | "next" | "previous" | "enter" | "done" | "go" | "send" | undefined;
309
310
  maxLength?: number | undefined;
310
311
  minLength?: number | undefined;
311
312
  placeholder?: string | undefined;
312
313
  readOnly?: boolean | undefined;
313
314
  required?: boolean | undefined;
314
- step?: string | number | undefined;
315
315
  description?: string | undefined;
316
316
  hideRequiredStar?: boolean | undefined;
317
317
  };