@midas-ds/components 16.4.0 → 16.4.1

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 (47) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/accordion/Accordion.stories.d.ts +24 -0
  3. package/badge/Badge.stories.d.ts +17 -0
  4. package/breadcrumbs/Breadcrumbs.stories.d.ts +16 -0
  5. package/button/Button.stories.d.ts +25 -0
  6. package/button/ButtonGroup.stories.d.ts +15 -0
  7. package/calendar/Calendar.stories.d.ts +15 -0
  8. package/calendar/RangeCalendar.stories.d.ts +13 -0
  9. package/card/Card.stories.d.ts +12 -0
  10. package/checkbox/Checkbox.stories.d.ts +30 -0
  11. package/checkbox/CheckboxGroup.stories.d.ts +29 -0
  12. package/color-scheme-switch/ColorSchemeSwitch.stories.d.ts +6 -0
  13. package/combobox/ComboBox.stories.d.ts +44 -0
  14. package/date-field/DateField.stories.d.ts +13 -0
  15. package/date-picker/DatePicker.stories.d.ts +14 -0
  16. package/date-picker/DateRangePicker.stories.d.ts +38 -0
  17. package/file-upload/DropZone.stories.d.ts +6 -0
  18. package/file-upload/FileUpload.stories.d.ts +11 -0
  19. package/grid/Grid.stories.d.ts +30 -0
  20. package/heading/Heading.stories.d.ts +30 -0
  21. package/info-banner/InfoBanner.stories.d.ts +16 -0
  22. package/label/Label.stories.d.ts +10 -0
  23. package/layout/Layout.stories.d.ts +9 -0
  24. package/legacy-select/LegacySelect.stories.d.ts +27 -0
  25. package/link/Link.stories.d.ts +14 -0
  26. package/link-button/LinkButton.stories.d.ts +12 -0
  27. package/logo/Logo.stories.d.ts +7 -0
  28. package/menu/Menu.stories.d.ts +34 -0
  29. package/modal/Dialog.stories.d.ts +15 -0
  30. package/package.json +1 -1
  31. package/popover/Popover.stories.d.ts +18 -0
  32. package/progress-bar/ProgressBar.stories.d.ts +15 -0
  33. package/radio/Radio.stories.d.ts +53 -0
  34. package/search-field/SearchField.stories.d.ts +22 -0
  35. package/select/Select.stories.d.ts +45 -0
  36. package/skeleton/Skeleton.Form.stories.d.ts +20 -0
  37. package/skeleton/Skeleton.stories.d.ts +10 -0
  38. package/spinner/Spinner.stories.d.ts +20 -0
  39. package/table/Table.stories.d.ts +31 -0
  40. package/tabs/Tabs.stories.d.ts +22 -0
  41. package/tag/Tag.stories.d.ts +8 -0
  42. package/text/Text.stories.d.ts +12 -0
  43. package/textfield/TextArea.stories.d.ts +367 -0
  44. package/textfield/TextField.stories.d.ts +34 -0
  45. package/toast/Toast.stories.d.ts +22 -0
  46. package/tooltip/Tooltip.stories.d.ts +26 -0
  47. package/utils/tests.d.ts +17 -0
@@ -0,0 +1,34 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { TextField } from './TextField';
3
+ type Story = StoryObj<typeof TextField>;
4
+ declare const _default: {
5
+ title: string;
6
+ component: import('react').ForwardRefExoticComponent<import('./TextFieldBase').TextFieldBaseProps & import('../utils/types').Complement<import('./TextFieldBase').TextFieldBaseProps, import('./Input').InputProps> & import('react').RefAttributes<HTMLInputElement>>;
7
+ argTypes: {
8
+ type: {
9
+ options: string[];
10
+ control: {
11
+ type: "select";
12
+ };
13
+ };
14
+ };
15
+ args: {
16
+ label: string;
17
+ description: string;
18
+ errorPosition: "top";
19
+ size: "large";
20
+ };
21
+ };
22
+ export default _default;
23
+ export declare const Primary: Story;
24
+ export declare const Password: Story;
25
+ export declare const Invalid: Story;
26
+ export declare const Required: Story;
27
+ export declare const CustomValidation: Story;
28
+ export declare const Number: Story;
29
+ export declare const Disabled: Story;
30
+ export declare const ReadOnly: Story;
31
+ export declare const ShowCounter: Story;
32
+ export declare const MaxLengthAndShowCounter: Story;
33
+ export declare const DS1243: Story;
34
+ export declare const WithHelpPopover: Story;
@@ -0,0 +1,22 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { MidasToast } from './Toast';
3
+ type Story = StoryObj<MidasToast>;
4
+ declare const _default: {
5
+ title: string;
6
+ tags: string[];
7
+ argTypes: {
8
+ type: {
9
+ control: "select";
10
+ description: string;
11
+ options: string[];
12
+ table: {
13
+ defaultValue: {
14
+ summary: string;
15
+ };
16
+ };
17
+ };
18
+ };
19
+ };
20
+ export default _default;
21
+ export declare const Global: Story;
22
+ export declare const Local: Story;
@@ -0,0 +1,26 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { MidasTooltipProps, Tooltip } from './Tooltip';
3
+ type Story = StoryObj<typeof Tooltip>;
4
+ declare const _default: {
5
+ component: typeof Tooltip;
6
+ subcomponents: {
7
+ TooltipTrigger: React.ComponentType<unknown>;
8
+ };
9
+ title: string;
10
+ tags: string[];
11
+ parameters: {
12
+ layout: string;
13
+ a11y: {
14
+ test: string;
15
+ };
16
+ };
17
+ args: {
18
+ children: string;
19
+ };
20
+ render: (args: MidasTooltipProps) => import("react/jsx-runtime").JSX.Element;
21
+ };
22
+ export default _default;
23
+ export declare const Primary: Story;
24
+ export declare const Open: Story;
25
+ export declare const Placement: Story;
26
+ export declare const PlacementStartRTL: Story;
@@ -0,0 +1,17 @@
1
+ export declare const options: {
2
+ name: string;
3
+ id: string;
4
+ }[];
5
+ export declare const mockedNow: import('@internationalized/date').CalendarDate;
6
+ export declare function generateMockOptions(count: number): {
7
+ id: number;
8
+ name: string;
9
+ }[];
10
+ export declare const optionsWithSections: {
11
+ name: string;
12
+ id: number;
13
+ children: {
14
+ name: string;
15
+ id: number;
16
+ }[];
17
+ }[];