@raspberrypifoundation/design-system-react 2.7.2 → 2.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.
Files changed (65) hide show
  1. package/README.md +16 -7
  2. package/dist/design-system-react.css +1 -1
  3. package/dist/design-system-react.js +3313 -889
  4. package/dist/design-system-react.umd.cjs +16 -13
  5. package/dist/scss/components/switch.scss +179 -0
  6. package/dist/scss/design-system-core.scss +3 -2
  7. package/dist/scss/properties/colors/_greys.scss +1 -0
  8. package/dist/scss/utility/_visually-hidden.scss +11 -0
  9. package/dist/types/lib/main.d.ts +10 -0
  10. package/dist/types/lib/main.d.ts.map +1 -1
  11. package/dist/types/src/components/Button/index.d.ts.map +1 -1
  12. package/dist/types/src/components/Form/CheckboxInput/CheckboxInput.types.d.ts +1 -11
  13. package/dist/types/src/components/Form/CheckboxInput/CheckboxInput.types.d.ts.map +1 -1
  14. package/dist/types/src/components/Form/CheckboxInput/index.d.ts +1 -1
  15. package/dist/types/src/components/Form/CheckboxInput/index.d.ts.map +1 -1
  16. package/dist/types/src/components/Form/RadioInput/RadioInput.types.d.ts +3 -11
  17. package/dist/types/src/components/Form/RadioInput/RadioInput.types.d.ts.map +1 -1
  18. package/dist/types/src/components/Form/RadioInput/index.d.ts +1 -1
  19. package/dist/types/src/components/Form/RadioInput/index.d.ts.map +1 -1
  20. package/dist/types/src/components/Form/SelectInput/SelectInput.types.d.ts +1 -7
  21. package/dist/types/src/components/Form/SelectInput/SelectInput.types.d.ts.map +1 -1
  22. package/dist/types/src/components/Form/SelectInput/index.d.ts +1 -1
  23. package/dist/types/src/components/Form/SelectInput/index.d.ts.map +1 -1
  24. package/dist/types/src/components/Form/Switch/Switch.spec.d.ts +2 -0
  25. package/dist/types/src/components/Form/Switch/Switch.spec.d.ts.map +1 -0
  26. package/dist/types/src/components/Form/Switch/Switch.types.d.ts +24 -0
  27. package/dist/types/src/components/Form/Switch/Switch.types.d.ts.map +1 -0
  28. package/dist/types/src/components/Form/Switch/index.d.ts +16 -0
  29. package/dist/types/src/components/Form/Switch/index.d.ts.map +1 -0
  30. package/dist/types/src/components/Form/TextInput/TextInput.types.d.ts +1 -7
  31. package/dist/types/src/components/Form/TextInput/TextInput.types.d.ts.map +1 -1
  32. package/dist/types/src/components/Form/TextInput/index.d.ts +1 -1
  33. package/dist/types/src/components/Form/TextInput/index.d.ts.map +1 -1
  34. package/dist/types/src/components/Menu/Menu.types.d.ts +6 -0
  35. package/dist/types/src/components/Menu/Menu.types.d.ts.map +1 -0
  36. package/dist/types/src/components/Menu/MenuButton/MenuButton.types.d.ts +7 -0
  37. package/dist/types/src/components/Menu/MenuButton/MenuButton.types.d.ts.map +1 -0
  38. package/dist/types/src/components/Menu/MenuButton/index.d.ts +4 -0
  39. package/dist/types/src/components/Menu/MenuButton/index.d.ts.map +1 -0
  40. package/dist/types/src/components/Menu/MenuItem/MenuItem.types.d.ts +11 -0
  41. package/dist/types/src/components/Menu/MenuItem/MenuItem.types.d.ts.map +1 -0
  42. package/dist/types/src/components/Menu/MenuItem/index.d.ts +6 -0
  43. package/dist/types/src/components/Menu/MenuItem/index.d.ts.map +1 -0
  44. package/dist/types/src/components/Menu/MenuTitle/MenuTitle.types.d.ts +4 -0
  45. package/dist/types/src/components/Menu/MenuTitle/MenuTitle.types.d.ts.map +1 -0
  46. package/dist/types/src/components/Menu/MenuTitle/index.d.ts +5 -0
  47. package/dist/types/src/components/Menu/MenuTitle/index.d.ts.map +1 -0
  48. package/dist/types/src/components/Menu/index.d.ts +5 -0
  49. package/dist/types/src/components/Menu/index.d.ts.map +1 -0
  50. package/dist/types/src/stories/Menu/Menu.stories.d.ts +8 -0
  51. package/dist/types/src/stories/Menu/Menu.stories.d.ts.map +1 -0
  52. package/dist/types/src/stories/Menu/MenuButton.stories.d.ts +7 -0
  53. package/dist/types/src/stories/Menu/MenuButton.stories.d.ts.map +1 -0
  54. package/dist/types/src/stories/Menu/MenuItem.stories.d.ts +9 -0
  55. package/dist/types/src/stories/Menu/MenuItem.stories.d.ts.map +1 -0
  56. package/dist/types/src/stories/Menu/MenuTitle.stories.d.ts +7 -0
  57. package/dist/types/src/stories/Menu/MenuTitle.stories.d.ts.map +1 -0
  58. package/dist/types/src/stories/forms/RadioInput.stories.d.ts +4 -0
  59. package/dist/types/src/stories/forms/RadioInput.stories.d.ts.map +1 -1
  60. package/dist/types/src/stories/forms/Switch.stories.d.ts +54 -0
  61. package/dist/types/src/stories/forms/Switch.stories.d.ts.map +1 -0
  62. package/dist/types/src/stories/forms/TextInput.stories.d.ts +4 -0
  63. package/dist/types/src/stories/forms/TextInput.stories.d.ts.map +1 -1
  64. package/package.json +18 -13
  65. package/CHANGELOG.md +0 -328
@@ -12,19 +12,18 @@
12
12
  @use 'properties/colors/_text';
13
13
  @use 'properties/colors/_utilities';
14
14
 
15
-
16
15
  @use 'components/alert';
17
16
  @use 'components/accordion';
18
17
  @use 'components/button';
19
18
  @use 'components/progress-bar';
20
19
  @use 'components/squiggle';
21
20
  @use 'components/tag';
21
+ @use 'components/switch';
22
22
  @use 'components/menu';
23
23
  @use 'components/link';
24
24
  @use 'components/burger-menu';
25
25
  @use 'components/modal';
26
26
 
27
-
28
27
  @use 'components/forms/error-message';
29
28
  @use 'components/forms/fieldset';
30
29
  @use 'components/forms/inputs';
@@ -39,3 +38,5 @@
39
38
 
40
39
  @use 'components/table/table';
41
40
  @use 'components/table/table-cell';
41
+
42
+ @use 'utility/visually-hidden';
@@ -1,6 +1,7 @@
1
1
  :root, :host {
2
2
  --rpf-white: hsla(0, 0%, 100%, 1);
3
3
  --rpf-off-white: hsla(225, 25%, 97%, 1);
4
+ --rpf-off-white-warm: hsla(36, 38.5%, 97.5%, 1);
4
5
  --rpf-grey-50: hsla(210, 8%, 95%, 1);
5
6
  --rpf-grey-100: hsla(228, 10%, 90%, 1);
6
7
  --rpf-grey-150: hsla(223, 9%, 85%, 1);
@@ -0,0 +1,11 @@
1
+ .rpf-visually-hidden {
2
+ // https://www.a11y-collective.com/blog/visually-hidden/
3
+ border: 0;
4
+ clip-path: inset(50%);
5
+ inline-size: 1px;
6
+ block-size: 1px;
7
+ margin: 0;
8
+ overflow: hidden;
9
+ position: absolute;
10
+ white-space: nowrap;
11
+ }
@@ -17,12 +17,22 @@ export { default as SearchInput } from "../src/components/Form/SearchInput";
17
17
  export type { SearchInputProps } from "../src/components/Form/SearchInput/SearchInput.types";
18
18
  export { default as SelectInput } from "../src/components/Form/SelectInput";
19
19
  export type { SelectInputProps } from "../src/components/Form/SelectInput/SelectInput.types";
20
+ export { default as Switch } from "../src/components/Form/Switch";
21
+ export type { SwitchProps } from "../src/components/Form/Switch/Switch.types";
20
22
  export { default as TextareaInput } from "../src/components/Form/TextareaInput";
21
23
  export type { TextareaInputProps } from "../src/components/Form/TextareaInput/TextareaInput.types";
22
24
  export { default as TextInput } from "../src/components/Form/TextInput";
23
25
  export type { TextInputProps } from "../src/components/Form/TextInput/TextInput.types";
24
26
  export { default as Modal } from "../src/components/Modal";
25
27
  export type { ModalProps } from "../src/components/Modal/Modal.types";
28
+ export { default as Menu } from "../src/components/Menu";
29
+ export type { MenuProps } from "../src/components/Menu/Menu.types";
30
+ export { default as MenuButton } from "../src/components/Menu/MenuButton";
31
+ export type { MenuButtonProps } from "../src/components/Menu/MenuButton/MenuButton.types";
32
+ export { default as MenuItem } from "../src/components/Menu/MenuItem";
33
+ export type { MenuItemProps } from "../src/components/Menu/MenuItem/MenuItem.types";
34
+ export { default as MenuTitle } from "../src/components/Menu/MenuTitle";
35
+ export type { MenuTitleProps } from "../src/components/Menu/MenuTitle/MenuTitle.types";
26
36
  export { default as ProgressBar } from "../src/components/ProgressBar";
27
37
  export type { ProgressBarProps } from "../src/components/ProgressBar/ProgressBar.types";
28
38
  export { default as TableBodyCell } from "../src/components/Table/BodyCell";
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../lib/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OA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E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC1E,YAAY,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACtE,YAAY,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,kCAAkC,CAAC;AACxE,YAAY,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACvE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAChF,YAAY,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACjE,YAAY,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACvD,YAAY,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,eAAO,MAAM,MAAM,GAAI,4JAgBpB,WAAW,4CAgFb,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,eAAO,MAAM,MAAM,GAAI,4JAgBpB,WAAW,4CA6Eb,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -4,21 +4,11 @@ export type CheckboxInputProps = {
4
4
  id: string;
5
5
  /** Name attribute for the checkbox input */
6
6
  name: string;
7
- /** Whether the checkbox is disabled */
8
- disabled?: boolean;
9
7
  /** Error message to display */
10
8
  error?: string;
11
9
  /** Label text or `ReactNode` for the checkbox */
12
10
  label: string | ReactNode;
13
11
  /** Whether the checkbox is checked (controlled) */
14
12
  isChecked?: boolean;
15
- /** Value attribute for the checkbox */
16
- value?: string;
17
- /** Additional CSS class name */
18
- className?: string;
19
- /** Whether the checkbox is checked (uncontrolled) */
20
- checked?: boolean;
21
- /** Callback function when checkbox state changes */
22
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
23
- };
13
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "id" | "name">;
24
14
  //# sourceMappingURL=CheckboxInput.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/CheckboxInput/CheckboxInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,mDAAmD;IACnD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CACjE,CAAC"}
1
+ {"version":3,"file":"CheckboxInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/CheckboxInput/CheckboxInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,mDAAmD;IACnD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import "@/components/MaterialSymbols";
2
2
  import "./CheckboxInput.scss";
3
3
  import type { CheckboxInputProps } from "./CheckboxInput.types";
4
- export declare const CheckboxInput: ({ id, label, name, checked, disabled, error, onChange, value, className, }: CheckboxInputProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const CheckboxInput: ({ label, id, name, error, ...props }: CheckboxInputProps) => import("react/jsx-runtime").JSX.Element;
5
5
  export default CheckboxInput;
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/CheckboxInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,eAAO,MAAM,aAAa,GAAI,4EAU3B,kBAAkB,4CA4BpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/CheckboxInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,eAAO,MAAM,aAAa,GAAI,sCAM3B,kBAAkB,4CAwBpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,19 +1,11 @@
1
1
  export type RadioInputProps = {
2
- /** Whether the radio input is checked or not */
3
- checked?: boolean;
4
- /** Whether the input is disabled */
5
- disabled?: boolean;
6
2
  /** Whether the radio input is full width */
7
3
  fullWidth?: boolean;
8
- /** The radio input id */
9
- id: string;
10
4
  /** The label text for the radio input */
11
5
  label: string;
6
+ /** The radio input id */
7
+ id: string;
12
8
  /** Name attribute for the radio input */
13
9
  name: string;
14
- /** On change handler */
15
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
16
- /** Value attribute for the radio input */
17
- value?: string;
18
- };
10
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "id" | "name">;
19
11
  //# sourceMappingURL=RadioInput.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/RadioInput/RadioInput.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,gDAAgD;IAChD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yBAAyB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,wBAAwB;IACxB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAChE,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"RadioInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/RadioInput/RadioInput.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,4CAA4C;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import "./RadioInput.scss";
2
2
  import type { RadioInputProps } from "./RadioInput.types";
3
- export declare const RadioInput: ({ id, label, name, checked, disabled, fullWidth, onChange, value, }: RadioInputProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const RadioInput: ({ label, id, name, fullWidth, ...props }: RadioInputProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default RadioInput;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/RadioInput/index.tsx"],"names":[],"mappings":"AAEA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,eAAO,MAAM,UAAU,GAAI,qEASxB,eAAe,4CAkBjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/RadioInput/index.tsx"],"names":[],"mappings":"AAEA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,eAAO,MAAM,UAAU,GAAI,0CAMxB,eAAe,4CAUjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,6 +1,4 @@
1
1
  export type SelectInputProps = {
2
- /** Whether the select input is disabled */
3
- disabled?: boolean;
4
2
  /** Error message to display */
5
3
  error?: string;
6
4
  /** Hint text to be displayed below the title */
@@ -13,15 +11,11 @@ export type SelectInputProps = {
13
11
  fullWidth?: boolean;
14
12
  /** Name attribute for the select input */
15
13
  name: string;
16
- /** Callback function when input state changes */
17
- onChange?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
18
14
  /** Options to populate the select input dropdown menu */
19
15
  options: Array<SelectOption>;
20
16
  /** Optional placeholder string to display when no input chosen */
21
17
  placeholder?: string;
22
- /** Value attribute for the select input */
23
- value?: string;
24
- };
18
+ } & Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "id" | "name">;
25
19
  type SelectOption = {
26
20
  key: string;
27
21
  value: string;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/SelectInput/SelectInput.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,6CAA6C;IAC7C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC7D,0DAA0D;IAC1D,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC7B,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
1
+ {"version":3,"file":"SelectInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/SelectInput/SelectInput.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,6CAA6C;IAC7C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,0DAA0D;IAC1D,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC7B,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC;AAEvE,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import "@/components/MaterialSymbols";
2
2
  import "./SelectInput.scss";
3
3
  import type { SelectInputProps } from "./SelectInput.types";
4
- export declare const SelectInput: ({ id, label, name, options, disabled, error, fullWidth, hint, onChange, placeholder, value, }: SelectInputProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const SelectInput: ({ id, label, name, options, disabled, error, fullWidth, hint, onChange, placeholder, value, ...props }: SelectInputProps) => import("react/jsx-runtime").JSX.Element;
5
5
  export default SelectInput;
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/SelectInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAItC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,eAAO,MAAM,WAAW,GAAI,+FAYzB,gBAAgB,4CA+BlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/SelectInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAItC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,eAAO,MAAM,WAAW,GAAI,wGAazB,gBAAgB,4CAgClB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Switch.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/Switch/Switch.spec.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import type { ReactNode } from "react";
2
+ export type SwitchProps = {
3
+ /** Unique identifier for the switch input */
4
+ id: string;
5
+ /** Name attribute for the switch input */
6
+ name: string;
7
+ /** Label text or `ReactNode` for the switch */
8
+ label: string | ReactNode;
9
+ /** Error message to display */
10
+ error?: string;
11
+ /** Stretch the switch across the available width */
12
+ fullWidth?: boolean;
13
+ /** Place the label before the track */
14
+ reverse?: boolean;
15
+ /** Hint text shown below the label */
16
+ hint?: string;
17
+ /** Align switch content to the start of the cross axis */
18
+ alignStart?: boolean;
19
+ /** Visually hide the label while keeping it accessible to screen readers */
20
+ hideLabel?: boolean;
21
+ /** Show on/off icons in the handle */
22
+ icon?: boolean;
23
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "id" | "name">;
24
+ //# sourceMappingURL=Switch.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/Switch/Switch.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,WAAW,GAAG;IACxB,6CAA6C;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0DAA0D;IAC1D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sCAAsC;IACtC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import "@/components/MaterialSymbols";
2
+ import "./Switch.scss";
3
+ export declare const Switch: import("react").ForwardRefExoticComponent<{
4
+ id: string;
5
+ name: string;
6
+ label: string | import("react").ReactNode;
7
+ error?: string;
8
+ fullWidth?: boolean;
9
+ reverse?: boolean;
10
+ hint?: string;
11
+ alignStart?: boolean;
12
+ hideLabel?: boolean;
13
+ icon?: boolean;
14
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "id" | "type" | "name"> & import("react").RefAttributes<HTMLInputElement>>;
15
+ export default Switch;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/Switch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAItC,OAAO,eAAe,CAAC;AAGvB,eAAO,MAAM,MAAM;;;;;;;;;;;0IA4ElB,CAAC;AAIF,eAAe,MAAM,CAAC"}
@@ -1,6 +1,4 @@
1
1
  export type TextInputProps = {
2
- /** Whether the input is disabled */
3
- disabled?: boolean;
4
2
  /** Error message to display */
5
3
  error?: string;
6
4
  /** Whether the input is full width */
@@ -13,9 +11,5 @@ export type TextInputProps = {
13
11
  id: string;
14
12
  /** Name attribute for the text input */
15
13
  name: string;
16
- /** Callback function when text input state changes */
17
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
18
- /** Value attribute for the text input */
19
- value: string;
20
- };
14
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "id" | "name">;
21
15
  //# sourceMappingURL=TextInput.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/TextInput/TextInput.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,sDAAsD;IACtD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAChE,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
1
+ {"version":3,"file":"TextInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/TextInput/TextInput.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import "@/components/MaterialSymbols";
2
2
  import "./TextInput.scss";
3
3
  import type { TextInputProps } from "./TextInput.types";
4
- export declare const TextInput: ({ id, label, name, value, disabled, error, fullWidth, hint, onChange, }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const TextInput: ({ id, name, label, error, fullWidth, hint, type, ...props }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
5
5
  export default TextInput;
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/TextInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAItC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,SAAS,GAAI,yEAUvB,cAAc,4CAqBhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/TextInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAItC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,SAAS,GAAI,6DASvB,cAAc,4CAmBhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from "react";
2
+ export type MenuProps = {
3
+ className?: string;
4
+ children?: ReactNode;
5
+ };
6
+ //# sourceMappingURL=Menu.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Menu.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menu/Menu.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { ReactNode } from "react";
2
+ export type MenuButtonProps = {
3
+ className?: string;
4
+ children?: ReactNode;
5
+ buttonText?: string;
6
+ };
7
+ //# sourceMappingURL=MenuButton.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuButton.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Menu/MenuButton/MenuButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { MenuButtonProps } from "./MenuButton.types";
2
+ export declare const MenuButton: ({ className, children, buttonText, }: MenuButtonProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default MenuButton;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Menu/MenuButton/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAkD1D,eAAO,MAAM,UAAU,GAAI,sCAIxB,eAAe,4CAQjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { MouseEventHandler } from "react";
2
+ export type MenuItemProps = {
3
+ text: string;
4
+ href?: string;
5
+ danger?: boolean;
6
+ icon?: string;
7
+ iconPosition?: "left" | "right";
8
+ className?: string;
9
+ onClick?: MouseEventHandler<HTMLButtonElement>;
10
+ };
11
+ //# sourceMappingURL=MenuItem.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuItem.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Menu/MenuItem/MenuItem.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CAChD,CAAC"}
@@ -0,0 +1,6 @@
1
+ import "@/components/MaterialSymbols";
2
+ import "./MenuItem.scss";
3
+ import type { MenuItemProps } from "./MenuItem.types";
4
+ export declare const MenuItem: ({ text, href, icon, iconPosition, danger, className, onClick, }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default MenuItem;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Menu/MenuItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAItC,OAAO,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAmBtD,eAAO,MAAM,QAAQ,GAAI,iEAQtB,aAAa,4CAoBf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,4 @@
1
+ export type MenuTitleProps = {
2
+ text: string;
3
+ };
4
+ //# sourceMappingURL=MenuTitle.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuTitle.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Menu/MenuTitle/MenuTitle.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -0,0 +1,5 @@
1
+ import "./MenuTitle.scss";
2
+ import type { MenuTitleProps } from "./MenuTitle.types";
3
+ export declare const MenuTitle: ({ text }: MenuTitleProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default MenuTitle;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Menu/MenuTitle/index.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,SAAS,GAAI,UAAU,cAAc,4CAIjD,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,5 @@
1
+ import "./Menu.scss";
2
+ import type { MenuProps } from "./Menu.types";
3
+ export declare const Menu: ({ className, children }: MenuProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default Menu;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menu/index.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,eAAO,MAAM,IAAI,GAAI,yBAAyB,SAAS,4CAItD,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Menu } from "../../components/Menu";
3
+ declare const meta: Meta<typeof Menu>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Menu>;
6
+ export declare const Default: Story;
7
+ export declare const WithTitleAndIcons: Story;
8
+ //# sourceMappingURL=Menu.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Menu.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/Menu/Menu.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAI7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAO3B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAe/B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { MenuButton } from "../../components/Menu/MenuButton";
3
+ declare const meta: Meta<typeof MenuButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MenuButton>;
6
+ export declare const Default: Story;
7
+ //# sourceMappingURL=MenuButton.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuButton.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/Menu/MenuButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAG9D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CA2CjC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { MenuItem } from "../../components/Menu/MenuItem";
3
+ declare const meta: Meta<typeof MenuItem>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MenuItem>;
6
+ export declare const Default: Story;
7
+ export declare const Link: Story;
8
+ export declare const Icon: Story;
9
+ //# sourceMappingURL=MenuItem.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuItem.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/Menu/MenuItem.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAqB/B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEvC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,IAAI,EAAE,KAIlB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAIlB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { MenuTitle } from "../../components/Menu/MenuTitle";
3
+ declare const meta: Meta<typeof MenuTitle>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MenuTitle>;
6
+ export declare const Default: Story;
7
+ //# sourceMappingURL=MenuTitle.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuTitle.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/Menu/MenuTitle.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAOhC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -26,4 +26,8 @@ export declare const Checked: Story;
26
26
  * disabled and fullWidth makes the input greyed out and stretch across the available space
27
27
  */
28
28
  export declare const DisabledAndFullWidth: Story;
29
+ /**
30
+ * Input field attributes can be used in the RadioInput component, for example `required`
31
+ */
32
+ export declare const Required: Story;
29
33
  //# sourceMappingURL=RadioInput.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioInput.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/forms/RadioInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAGnF,UAAU,mBAAoB,SAAQ,eAAe;IACnD,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,mBAAmB,CAsBnC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAKlC,CAAC"}
1
+ {"version":3,"file":"RadioInput.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/forms/RadioInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAInF,UAAU,mBAAoB,SAAQ,eAAe;IACnD,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,mBAAmB,CAsBnC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAKlC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KA8BtB,CAAC"}
@@ -0,0 +1,54 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Switch } from "../../components/Form/Switch";
3
+ declare const meta: Meta<typeof Switch>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Switch>;
6
+ /**
7
+ * Switches allow users to change a setting between two states.
8
+ */
9
+ export declare const Default: Story;
10
+ /**
11
+ * Checked switch state.
12
+ */
13
+ export declare const Checked: Story;
14
+ /**
15
+ * Disabled switch state.
16
+ */
17
+ export declare const Disabled: Story;
18
+ /**
19
+ * Disabled and checked switch state.
20
+ */
21
+ export declare const DisabledChecked: Story;
22
+ /**
23
+ * Switch with on/off icons in the handle.
24
+ */
25
+ export declare const WithIcon: Story;
26
+ /**
27
+ * Full width switch layout.
28
+ */
29
+ export declare const FullWidth: Story;
30
+ /**
31
+ * Label appears before the track.
32
+ */
33
+ export declare const Reverse: Story;
34
+ /**
35
+ * Full width switch with reversed label placement.
36
+ */
37
+ export declare const FullWidthAndReverse: Story;
38
+ /**
39
+ * Switch with hint text below the label.
40
+ */
41
+ export declare const WithHint: Story;
42
+ /**
43
+ * Align switch content to the start when the label wraps over multiple lines.
44
+ */
45
+ export declare const AlignStart: Story;
46
+ /**
47
+ * Visually hidden label; the name remains available to screen readers.
48
+ */
49
+ export declare const HiddenLabel: Story;
50
+ /**
51
+ * Providing an error string highlights an issue with the field.
52
+ */
53
+ export declare const Error: Story;
54
+ //# sourceMappingURL=Switch.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/forms/Switch.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AA6FtD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAuC7B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAA0B,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAY7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAwD,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAGvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAA8D,CAAC;AAErF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAGjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAGtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KASxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KAAkE,CAAC;AAE7F;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,KAcnB,CAAC"}
@@ -15,4 +15,8 @@ export declare const Error: Story;
15
15
  * fullWidth makes the input stretch across the available space
16
16
  */
17
17
  export declare const FullWidth: Story;
18
+ /**
19
+ * Input field attributes can be used in the TextInput component, for example `type=` and `required`
20
+ */
21
+ export declare const EmailInput: Story;
18
22
  //# sourceMappingURL=TextInput.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/forms/TextInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAchC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC"}
1
+ {"version":3,"file":"TextInput.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/forms/TextInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAchC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KA6BxB,CAAC"}