@shape-digital-env/shape-ui 0.0.1 → 0.0.3
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.
- package/README.md +24 -85
- package/components/Accordion/Accordion.d.ts +32 -7
- package/components/Accordion/Accordion.d.ts.map +1 -1
- package/components/Accordion/Accordion.stories.d.ts +49 -6
- package/components/Accordion/Accordion.stories.d.ts.map +1 -1
- package/components/AccountAvatar/AccountAvatar.d.ts +2 -0
- package/components/AccountAvatar/AccountAvatar.d.ts.map +1 -1
- package/components/AccountAvatar/AccountAvatar.stories.d.ts +20 -7
- package/components/AccountAvatar/AccountAvatar.stories.d.ts.map +1 -1
- package/components/AppLogos/AppLogos.stories.d.ts +4 -6
- package/components/AppLogos/AppLogos.stories.d.ts.map +1 -1
- package/components/AppLogos/AuraLogo.d.ts +2 -0
- package/components/AppLogos/AuraLogo.d.ts.map +1 -1
- package/components/AppLogos/AuraLogoWithName.d.ts +2 -0
- package/components/AppLogos/AuraLogoWithName.d.ts.map +1 -1
- package/components/AppLogos/LighthouseLockup.d.ts +3 -0
- package/components/AppLogos/LighthouseLockup.d.ts.map +1 -1
- package/components/AppLogos/LighthouseLogo.d.ts +2 -0
- package/components/AppLogos/LighthouseLogo.d.ts.map +1 -1
- package/components/AppLogos/LighthouseLogoWithName.d.ts +2 -0
- package/components/AppLogos/LighthouseLogoWithName.d.ts.map +1 -1
- package/components/AppLogos/LumenLogo.d.ts +2 -0
- package/components/AppLogos/LumenLogo.d.ts.map +1 -1
- package/components/AppLogos/LumenLogoWithName.d.ts +2 -0
- package/components/AppLogos/LumenLogoWithName.d.ts.map +1 -1
- package/components/AppLogos/ReefLogo.d.ts +2 -0
- package/components/AppLogos/ReefLogo.d.ts.map +1 -1
- package/components/AppLogos/ReefLogoWithName.d.ts +2 -0
- package/components/AppLogos/ReefLogoWithName.d.ts.map +1 -1
- package/components/Button/Button.d.ts +13 -0
- package/components/Button/Button.d.ts.map +1 -1
- package/components/Button/Button.stories.d.ts +38 -4
- package/components/Button/Button.stories.d.ts.map +1 -1
- package/components/Card/Card.d.ts +1 -0
- package/components/Card/Card.d.ts.map +1 -1
- package/components/Card/Card.stories.d.ts +23 -4
- package/components/Card/Card.stories.d.ts.map +1 -1
- package/components/CellStyled/CellStyled.d.ts +5 -0
- package/components/CellStyled/CellStyled.d.ts.map +1 -1
- package/components/CellStyled/CellStyled.stories.d.ts +28 -4
- package/components/CellStyled/CellStyled.stories.d.ts.map +1 -1
- package/components/ChartWrapper/ChartWrapper.d.ts +4 -4
- package/components/ChartWrapper/ChartWrapper.d.ts.map +1 -1
- package/components/ChartWrapper/ChartWrapper.stories.d.ts +22 -5
- package/components/ChartWrapper/ChartWrapper.stories.d.ts.map +1 -1
- package/components/Checkbox/Checkbox.d.ts +4 -1
- package/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/components/Checkbox/Checkbox.stories.d.ts +25 -7
- package/components/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/components/ClearFilters/ClearFilters.d.ts +5 -0
- package/components/ClearFilters/ClearFilters.d.ts.map +1 -1
- package/components/ClearFilters/ClearFilters.stories.d.ts +26 -5
- package/components/ClearFilters/ClearFilters.stories.d.ts.map +1 -1
- package/components/DateRangePicker/DateRangePicker.d.ts +17 -0
- package/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/components/DateRangePicker/DateRangePicker.stories.d.ts +55 -7
- package/components/DateRangePicker/DateRangePicker.stories.d.ts.map +1 -1
- package/components/Divider/Divider.d.ts +4 -4
- package/components/Divider/Divider.d.ts.map +1 -1
- package/components/Divider/Divider.stories.d.ts +27 -6
- package/components/Divider/Divider.stories.d.ts.map +1 -1
- package/components/DropdownMenu/DropdownMenu.d.ts +3 -0
- package/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/components/DropdownMenu/DropdownMenu.stories.d.ts +37 -3
- package/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
- package/components/ErrorFallback/ErrorFallback.d.ts +12 -0
- package/components/ErrorFallback/ErrorFallback.d.ts.map +1 -1
- package/components/ErrorFallback/ErrorFallback.stories.d.ts +291 -4
- package/components/ErrorFallback/ErrorFallback.stories.d.ts.map +1 -1
- package/components/ErrorOnLoadData/ErrorOnLoadData.d.ts +6 -0
- package/components/ErrorOnLoadData/ErrorOnLoadData.d.ts.map +1 -1
- package/components/ErrorOnLoadData/ErrorOnLoadData.stories.d.ts +1 -0
- package/components/ErrorOnLoadData/ErrorOnLoadData.stories.d.ts.map +1 -1
- package/components/Field/Field.stories.d.ts +19 -4
- package/components/Field/Field.stories.d.ts.map +1 -1
- package/components/Field/Field.types.d.ts +30 -0
- package/components/Field/Field.types.d.ts.map +1 -1
- package/components/Icon/Icon.d.ts +8 -4
- package/components/Icon/Icon.d.ts.map +1 -1
- package/components/Icon/Icon.stories.d.ts +36 -4
- package/components/Icon/Icon.stories.d.ts.map +1 -1
- package/components/Input/Input.d.ts +4 -0
- package/components/Input/Input.d.ts.map +1 -1
- package/components/Input/Input.stories.d.ts +328 -9
- package/components/Input/Input.stories.d.ts.map +1 -1
- package/components/LegendIcon/LegendIcon.d.ts +5 -2
- package/components/LegendIcon/LegendIcon.d.ts.map +1 -1
- package/components/LegendIcon/LegendIcon.stories.d.ts +3 -5
- package/components/LegendIcon/LegendIcon.stories.d.ts.map +1 -1
- package/components/LoginScreen/LoginScreen.d.ts +33 -5
- package/components/LoginScreen/LoginScreen.d.ts.map +1 -1
- package/components/LoginScreen/LoginScreen.stories.d.ts +6 -0
- package/components/LoginScreen/LoginScreen.stories.d.ts.map +1 -1
- package/components/Logo/Logo.d.ts +5 -0
- package/components/Logo/Logo.d.ts.map +1 -1
- package/components/Logo/Logo.stories.d.ts +27 -6
- package/components/Logo/Logo.stories.d.ts.map +1 -1
- package/components/MetricCard/MetricCard.d.ts +13 -1
- package/components/MetricCard/MetricCard.d.ts.map +1 -1
- package/components/MetricCard/MetricCard.stories.d.ts.map +1 -1
- package/components/Modal/Modal.d.ts +27 -16
- package/components/Modal/Modal.d.ts.map +1 -1
- package/components/Modal/Modal.stories.d.ts +41 -6
- package/components/Modal/Modal.stories.d.ts.map +1 -1
- package/components/MultiSelect/MultiSelect.d.ts +10 -0
- package/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/components/MultiSelect/MultiSelect.stories.d.ts +66 -5
- package/components/MultiSelect/MultiSelect.stories.d.ts.map +1 -1
- package/components/PageHeader/PageHeader.d.ts +2 -0
- package/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/components/PageHeader/PageHeader.stories.d.ts +28 -6
- package/components/PageHeader/PageHeader.stories.d.ts.map +1 -1
- package/components/Pagination/Pagination.d.ts +9 -0
- package/components/Pagination/Pagination.d.ts.map +1 -1
- package/components/Pagination/Pagination.stories.d.ts +60 -4
- package/components/Pagination/Pagination.stories.d.ts.map +1 -1
- package/components/RadioGroup/RadioGroup.d.ts +2 -0
- package/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/components/RadioGroup/RadioGroup.stories.d.ts +44 -5
- package/components/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
- package/components/Select/Select.d.ts +47 -14
- package/components/Select/Select.d.ts.map +1 -1
- package/components/Select/Select.stories.d.ts +105 -10
- package/components/Select/Select.stories.d.ts.map +1 -1
- package/components/ShapeLogo/ShapeLogo.d.ts +4 -1
- package/components/ShapeLogo/ShapeLogo.d.ts.map +1 -1
- package/components/ShapeLogo/ShapeLogo.stories.d.ts +29 -4
- package/components/ShapeLogo/ShapeLogo.stories.d.ts.map +1 -1
- package/components/SortableTableSection/SortableTableSection.d.ts +20 -4
- package/components/SortableTableSection/SortableTableSection.d.ts.map +1 -1
- package/components/SortableTableSection/SortableTableSection.stories.d.ts +44 -5
- package/components/SortableTableSection/SortableTableSection.stories.d.ts.map +1 -1
- package/components/Spinner/Spinner.d.ts +12 -2
- package/components/Spinner/Spinner.d.ts.map +1 -1
- package/components/Spinner/Spinner.stories.d.ts +26 -4
- package/components/Spinner/Spinner.stories.d.ts.map +1 -1
- package/components/Stepper/Stepper.d.ts +9 -1
- package/components/Stepper/Stepper.d.ts.map +1 -1
- package/components/Stepper/Stepper.stories.d.ts +308 -6
- package/components/Stepper/Stepper.stories.d.ts.map +1 -1
- package/components/Switch/Switch.stories.d.ts +24 -7
- package/components/Switch/Switch.stories.d.ts.map +1 -1
- package/components/Table/DataTable/DataTable.d.ts +1 -1
- package/components/Table/DataTable/DataTable.d.ts.map +1 -1
- package/components/Table/DataTable/DataTable.stories.d.ts +96 -9
- package/components/Table/DataTable/DataTable.stories.d.ts.map +1 -1
- package/components/Table/DataTable/DataTable.types.d.ts +61 -0
- package/components/Table/DataTable/DataTable.types.d.ts.map +1 -1
- package/components/Table/DataTable/components/DataTableBody.d.ts +2 -1
- package/components/Table/DataTable/components/DataTableBody.d.ts.map +1 -1
- package/components/Table/DataTable/components/DataTableCell/DataTableCell.d.ts +5 -0
- package/components/Table/DataTable/components/DataTableCell/DataTableCell.d.ts.map +1 -1
- package/components/Table/DataTable/components/DataTableCell/DataTableCell.utils.d.ts.map +1 -1
- package/components/Table/DataTable/components/DataTableHeader.d.ts.map +1 -1
- package/components/Table/DataTable/hooks/useDataTableColumns.d.ts.map +1 -1
- package/components/Table/Table.d.ts +12 -2
- package/components/Table/Table.d.ts.map +1 -1
- package/components/Table/Table.stories.d.ts +22 -7
- package/components/Table/Table.stories.d.ts.map +1 -1
- package/components/Tabs/Tabs.d.ts +12 -0
- package/components/Tabs/Tabs.d.ts.map +1 -1
- package/components/Tabs/Tabs.stories.d.ts +38 -5
- package/components/Tabs/Tabs.stories.d.ts.map +1 -1
- package/components/Textarea/Textarea.d.ts +4 -0
- package/components/Textarea/Textarea.d.ts.map +1 -1
- package/components/Textarea/Textarea.stories.d.ts +311 -7
- package/components/Textarea/Textarea.stories.d.ts.map +1 -1
- package/components/Title/Title.d.ts +1 -0
- package/components/Title/Title.d.ts.map +1 -1
- package/components/Title/Title.stories.d.ts +18 -4
- package/components/Title/Title.stories.d.ts.map +1 -1
- package/components/Toast/Toast.d.ts +18 -2
- package/components/Toast/Toast.d.ts.map +1 -1
- package/components/Toast/Toast.stories.d.ts +40 -5
- package/components/Toast/Toast.stories.d.ts.map +1 -1
- package/components/Tooltip/Tooltip.d.ts +13 -0
- package/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/components/Tooltip/Tooltip.stories.d.ts +338 -3
- package/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/index.js +9144 -9221
- package/lib/i18n.d.ts +8 -0
- package/lib/i18n.d.ts.map +1 -0
- package/lib/useSvgId.d.ts +8 -0
- package/lib/useSvgId.d.ts.map +1 -0
- package/locales/en/common.i18n.d.ts +19 -0
- package/locales/en/common.i18n.d.ts.map +1 -0
- package/locales/en/index.d.ts +19 -0
- package/locales/en/index.d.ts.map +1 -1
- package/locales/en/table.i18n.d.ts +1 -0
- package/locales/en/table.i18n.d.ts.map +1 -1
- package/locales/es/common.i18n.d.ts +19 -0
- package/locales/es/common.i18n.d.ts.map +1 -0
- package/locales/es/index.d.ts +19 -0
- package/locales/es/index.d.ts.map +1 -1
- package/locales/es/table.i18n.d.ts +1 -0
- package/locales/es/table.i18n.d.ts.map +1 -1
- package/locales/pt-br/common.i18n.d.ts +19 -0
- package/locales/pt-br/common.i18n.d.ts.map +1 -0
- package/locales/pt-br/index.d.ts +19 -0
- package/locales/pt-br/index.d.ts.map +1 -1
- package/locales/pt-br/table.i18n.d.ts +1 -0
- package/locales/pt-br/table.i18n.d.ts.map +1 -1
- package/package.json +4 -1
- package/styles.css +46 -1638
- package/components/Tabs/Tabs.figma.d.ts +0 -8
- package/components/Tabs/Tabs.figma.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetricCard.d.ts","sourceRoot":"","sources":["../../../src/components/MetricCard/MetricCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAWvC,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QACvB,IAAI,EAAE,SAAS,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,SAAS,UACb,MAAM,SACN,OAAO,GAAG,OAAO,GAAG,MAAM,KAChC,MAMF,CAAC;AAEF,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"MetricCard.d.ts","sourceRoot":"","sources":["../../../src/components/MetricCard/MetricCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAWvC,MAAM,MAAM,eAAe,GAAG;IAC5B,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kCAAkC;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2BAA2B;IAC3B,MAAM,EAAE;QACN,gEAAgE;QAChE,KAAK,EAAE,MAAM,CAAC;QACd,8DAA8D;QAC9D,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QACvB,4BAA4B;QAC5B,IAAI,EAAE,SAAS,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,SAAS,UACb,MAAM,SACN,OAAO,GAAG,OAAO,GAAG,MAAM,KAChC,MAMF,CAAC;AAEF,eAAO,MAAM,UAAU,2FAgEtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetricCard.stories.d.ts","sourceRoot":"","sources":["../../../src/components/MetricCard/MetricCard.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAOjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAStB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KASzB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"MetricCard.stories.d.ts","sourceRoot":"","sources":["../../../src/components/MetricCard/MetricCard.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAOjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAStB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KASzB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAM7B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAavB,CAAC"}
|
|
@@ -1,41 +1,52 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
/** Width preset of the dialog panel. `full` spans the whole viewport width. */
|
|
2
3
|
export type ModalSize = "sm" | "md" | "lg" | "xl" | "full";
|
|
3
4
|
export interface ModalProps {
|
|
4
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Whether the dialog is shown. The modal never closes itself: keep this in state and set it
|
|
7
|
+
* to `false` from `onClose`.
|
|
8
|
+
* @default true
|
|
9
|
+
*/
|
|
5
10
|
open?: boolean;
|
|
6
|
-
/** Content rendered as the dialog title. */
|
|
11
|
+
/** Content rendered as the dialog title. It is also the dialog's accessible name. */
|
|
7
12
|
title: React.ReactNode;
|
|
8
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Called when the dialog requests to be closed (X button, Escape key, overlay click). Set
|
|
15
|
+
* `open` to `false` in response.
|
|
16
|
+
*/
|
|
9
17
|
onClose: () => void;
|
|
10
|
-
/** Called when the user clicks the Cancel button. */
|
|
18
|
+
/** Called when the user clicks the Cancel button. The button only renders when this is set. */
|
|
11
19
|
onCancel?: () => void;
|
|
12
|
-
/** Called when the user clicks the Confirm button. */
|
|
20
|
+
/** Called when the user clicks the Confirm button. The button only renders when this is set. */
|
|
13
21
|
onConfirm?: () => void;
|
|
14
|
-
/** Content rendered inside the body slot. */
|
|
22
|
+
/** Content rendered inside the body slot, which scrolls when it is taller than the viewport. */
|
|
15
23
|
children: React.ReactNode;
|
|
16
|
-
/** Controls the width of the dialog.
|
|
24
|
+
/** Controls the width of the dialog. @default "md" */
|
|
17
25
|
size?: ModalSize;
|
|
18
|
-
/** Extra classes forwarded to the dialog panel. */
|
|
26
|
+
/** Extra classes forwarded to the dialog panel. Applied after `contentClassName`. */
|
|
19
27
|
className?: string;
|
|
20
|
-
/** Extra classes forwarded to the dialog panel. */
|
|
28
|
+
/** Extra classes forwarded to the dialog panel. Same element as `className`, applied before it. */
|
|
21
29
|
contentClassName?: string;
|
|
22
30
|
/** Extra classes forwarded to the scrollable body container. */
|
|
23
31
|
bodyClassName?: string;
|
|
24
|
-
/** Label for the Cancel button.
|
|
32
|
+
/** Label for the Cancel button, translated through `shape_ui` by default. @default "Cancel" */
|
|
25
33
|
cancelLabel?: string;
|
|
26
|
-
/** Label for the Confirm button.
|
|
34
|
+
/** Label for the Confirm button, translated through `shape_ui` by default. @default "Confirm" */
|
|
27
35
|
confirmLabel?: string;
|
|
28
36
|
/**
|
|
29
37
|
* Whether this dialog traps focus and blocks outside interaction. Set to `false` when this
|
|
30
38
|
* dialog is expected to host another dialog on top of it (e.g. a confirmation modal opened
|
|
31
39
|
* from within this one) — otherwise the two focus traps fight over `document.activeElement`
|
|
32
|
-
* and the nested dialog becomes unusable.
|
|
40
|
+
* and the nested dialog becomes unusable.
|
|
41
|
+
* @default true
|
|
33
42
|
*/
|
|
34
43
|
modal?: boolean;
|
|
35
44
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Dialog with a title, a close button, a scrollable body and an optional Cancel / Confirm footer.
|
|
47
|
+
*
|
|
48
|
+
* `ref` points at the dialog panel (`DialogPrimitive.Content`), which renders in a portal.
|
|
49
|
+
*/
|
|
50
|
+
declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
40
51
|
export { Modal };
|
|
41
52
|
//# sourceMappingURL=Modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,+EAA+E;AAC/E,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAU3D,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,qFAAqF;IACrF,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;;OAGG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,+FAA+F;IAC/F,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,gGAAgG;IAChG,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,gGAAgG;IAChG,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,sDAAsD;IACtD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mGAAmG;IACnG,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gEAAgE;IAChE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+FAA+F;IAC/F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iGAAiG;IACjG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;GAIG;AACH,QAAA,MAAM,KAAK,mFAsHV,CAAC;AAIF,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,9 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ModalProps, ModalSize } from './Modal';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
docs: {
|
|
10
|
+
story: {
|
|
11
|
+
inline: boolean;
|
|
12
|
+
height: string;
|
|
13
|
+
};
|
|
14
|
+
description: {
|
|
15
|
+
component: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
argTypes: {
|
|
20
|
+
size: {
|
|
21
|
+
control: "select";
|
|
22
|
+
options: ModalSize[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
args: {
|
|
26
|
+
open: true;
|
|
27
|
+
title: string;
|
|
28
|
+
children: import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
onClose: import('storybook/test').Mock<(...args: any[]) => any>;
|
|
30
|
+
onCancel: import('storybook/test').Mock<(...args: any[]) => any>;
|
|
31
|
+
onConfirm: import('storybook/test').Mock<(...args: any[]) => any>;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
4
34
|
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof
|
|
35
|
+
type Story = StoryObj<typeof meta>;
|
|
6
36
|
export declare const Default: Story;
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
37
|
+
export declare const CancelAndConfirm: Story;
|
|
38
|
+
export declare const CustomLabels: Story;
|
|
39
|
+
export declare const WithoutFooter: Story;
|
|
40
|
+
export declare const Controlled: Story;
|
|
41
|
+
export declare const Sizes: Story;
|
|
42
|
+
export declare const LongContent: Story;
|
|
43
|
+
export declare const NonModal: Story;
|
|
9
44
|
//# sourceMappingURL=Modal.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Modal.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAS,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAWjE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBoB,CAAC;AAE/B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAKnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,gBAAgB,EAAE,KAc9B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAW1B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAY3B,CAAC;AAuBF,eAAO,MAAM,UAAU,EAAE,KA4BxB,CAAC;AAiCF,eAAO,MAAM,KAAK,EAAE,KASnB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAezB,CAAC;AA+BF,eAAO,MAAM,QAAQ,EAAE,KAmBtB,CAAC"}
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3
3
|
export interface MultiSelectTriggerProps extends React.ComponentPropsWithoutRef<"button"> {
|
|
4
|
+
/** Shown in the trigger while nothing is selected (no `children`). */
|
|
4
5
|
placeholder?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Open state, when the consumer controls it. Radix already reports the
|
|
8
|
+
* trigger's state, so this is only needed to override it.
|
|
9
|
+
*/
|
|
5
10
|
isOpen?: boolean;
|
|
6
11
|
}
|
|
7
12
|
export interface MultiSelectItemProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
13
|
+
/**
|
|
14
|
+
* Whether the option is selected. The item keeps no state: toggle it from
|
|
15
|
+
* `onClick` and `onKeyDown`.
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
8
18
|
checked?: boolean;
|
|
9
19
|
}
|
|
10
20
|
export declare const MultiSelect: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultiSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultiSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AA8B5D,MAAM,WAAW,uBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC;IAChD,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AA2GD,MAAM,WAAW,oBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IAC7C;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AA8CD,eAAO,MAAM,WAAW;YAxLf,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC;;;;;;CA4LnE,CAAC"}
|
|
@@ -1,9 +1,70 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
3
|
import { MultiSelect } from './MultiSelect';
|
|
3
|
-
|
|
4
|
+
interface MultiSelectOption {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
type MultiSelectStoryArgs = ComponentProps<typeof MultiSelect> & {
|
|
9
|
+
options: MultiSelectOption[];
|
|
10
|
+
value: string[];
|
|
11
|
+
onValueChange: (value: string[]) => void;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
"aria-label"?: string;
|
|
15
|
+
};
|
|
16
|
+
declare const meta: {
|
|
17
|
+
title: string;
|
|
18
|
+
component: {
|
|
19
|
+
(props: React.ComponentPropsWithoutRef<import('react').FC<import('@radix-ui/react-popover').PopoverProps>>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
} & {
|
|
22
|
+
Trigger: import('react').ForwardRefExoticComponent<import('./MultiSelect').MultiSelectTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
Content: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-popover').PopoverContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
24
|
+
Item: import('react').ForwardRefExoticComponent<import('./MultiSelect').MultiSelectItemProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
25
|
+
};
|
|
26
|
+
subcomponents: {
|
|
27
|
+
"MultiSelect.Trigger": import('react').ForwardRefExoticComponent<import('./MultiSelect').MultiSelectTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
28
|
+
"MultiSelect.Item": import('react').ForwardRefExoticComponent<import('./MultiSelect').MultiSelectItemProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
29
|
+
};
|
|
30
|
+
parameters: {
|
|
31
|
+
layout: string;
|
|
32
|
+
docs: {
|
|
33
|
+
description: {
|
|
34
|
+
component: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
39
|
+
children?: import('react').ReactNode;
|
|
40
|
+
open?: boolean | undefined;
|
|
41
|
+
defaultOpen?: boolean | undefined;
|
|
42
|
+
onOpenChange?: ((open: boolean) => void) | undefined;
|
|
43
|
+
modal?: boolean | undefined;
|
|
44
|
+
options: MultiSelectOption[];
|
|
45
|
+
value: string[];
|
|
46
|
+
onValueChange: (value: string[]) => void;
|
|
47
|
+
placeholder?: string | undefined;
|
|
48
|
+
disabled?: boolean | undefined;
|
|
49
|
+
"aria-label"?: string | undefined;
|
|
50
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
51
|
+
args: {
|
|
52
|
+
options: MultiSelectOption[];
|
|
53
|
+
value: never[];
|
|
54
|
+
placeholder: string;
|
|
55
|
+
disabled: false;
|
|
56
|
+
"aria-label": string;
|
|
57
|
+
onValueChange: import('storybook/test').Mock<(...args: any[]) => any>;
|
|
58
|
+
onOpenChange: import('storybook/test').Mock<(...args: any[]) => any>;
|
|
59
|
+
};
|
|
60
|
+
render: (args: MultiSelectStoryArgs) => import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
};
|
|
4
62
|
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof
|
|
63
|
+
type Story = StoryObj<typeof meta>;
|
|
6
64
|
export declare const Default: Story;
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
65
|
+
export declare const States: Story;
|
|
66
|
+
export declare const LongContent: Story;
|
|
67
|
+
export declare const Empty: Story;
|
|
68
|
+
export declare const Controlled: Story;
|
|
69
|
+
export declare const InsideField: Story;
|
|
9
70
|
//# sourceMappingURL=MultiSelect.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelect.stories.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultiSelect.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"MultiSelect.stories.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultiSelect.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,UAAU,iBAAiB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AASD,KAAK,oBAAoB,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,GAAG;IAC/D,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AA4DF,QAAA,MAAM,IAAI;;;gBAhEyB,MAAM,wBACpB;;;;;;;;;;;;;;;;;;;;;;;;;iBAHV,iBAAiB,EAAE;eACrB,MAAM,EAAE;uBACA,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI;sBAC1B,MAAM;mBACT,OAAO;uBACH,MAAM;;;;;;;;;;;;CA8Fe,CAAC;AAEvC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KA0BrB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAiBpB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAQzB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAsBF,eAAO,MAAM,UAAU,EAAE,KAGxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAkBzB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
export interface PageHeaderProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
/** Text of the back button. The button is rendered only when this is set. */
|
|
3
4
|
backText?: string;
|
|
5
|
+
/** Called when the back button is clicked. */
|
|
4
6
|
onBack?: () => void;
|
|
5
7
|
}
|
|
6
8
|
declare const PageHeader: React.ForwardRefExoticComponent<PageHeaderProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,UAAU,qFAwBf,CAAC;AAGF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACxE,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,UAAU,qFAwBf,CAAC;AAGF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,9 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').ForwardRefExoticComponent<import('./PageHeader').PageHeaderProps & import('react').RefAttributes<HTMLElement>>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
argTypes: {
|
|
14
|
+
children: {
|
|
15
|
+
control: false;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
args: {
|
|
19
|
+
backText: string;
|
|
20
|
+
onBack: import('storybook/test').Mock<(...args: any[]) => any>;
|
|
21
|
+
children: import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
4
24
|
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
25
|
+
type Story = StoryObj<typeof meta>;
|
|
26
|
+
export declare const Default: Story;
|
|
27
|
+
export declare const ActionsOnly: Story;
|
|
8
28
|
export declare const BackButtonOnly: Story;
|
|
29
|
+
export declare const LongContent: Story;
|
|
30
|
+
export declare const GoesBack: Story;
|
|
9
31
|
//# sourceMappingURL=PageHeader.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeader.stories.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"PageHeader.stories.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAK5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;CA2ByB,CAAC;AAEpC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAE5B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAezB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC"}
|
|
@@ -4,14 +4,23 @@ declare const Pagination: React.ForwardRefExoticComponent<Omit<React.DetailedHTM
|
|
|
4
4
|
declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
5
5
|
declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
6
6
|
interface PaginationLinkProps extends React.ComponentProps<typeof Button> {
|
|
7
|
+
/** Marks the current page: highlighted and announced with `aria-current="page"`. @default false */
|
|
7
8
|
isActive?: boolean;
|
|
8
9
|
}
|
|
9
10
|
declare const PaginationLink: React.ForwardRefExoticComponent<Omit<PaginationLinkProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
11
|
interface PaginationPreviousProps extends Omit<PaginationLinkProps, "children"> {
|
|
12
|
+
/**
|
|
13
|
+
* Visible text next to the arrow. When omitted, only the arrow shows and
|
|
14
|
+
* "Previous" (translated through `shape_ui`) is kept as screen-reader text.
|
|
15
|
+
*/
|
|
11
16
|
prevText?: string;
|
|
12
17
|
}
|
|
13
18
|
declare const PaginationPrevious: React.ForwardRefExoticComponent<Omit<PaginationPreviousProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
14
19
|
interface PaginationNextProps extends Omit<PaginationLinkProps, "children"> {
|
|
20
|
+
/**
|
|
21
|
+
* Visible text next to the arrow. When omitted, only the arrow shows and
|
|
22
|
+
* "Next" (translated through `shape_ui`) is kept as screen-reader text.
|
|
23
|
+
*/
|
|
15
24
|
nextText?: string;
|
|
16
25
|
}
|
|
17
26
|
declare const PaginationNext: React.ForwardRefExoticComponent<Omit<PaginationNextProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAKnC,QAAA,MAAM,UAAU,0JAYf,CAAC;AAGF,QAAA,MAAM,iBAAiB,yKASrB,CAAC;AAGH,QAAA,MAAM,cAAc,kKAGiC,CAAC;AAGtD,UAAU,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC;IACvE,mGAAmG;IACnG,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,cAAc,4GAmBnB,CAAC;AAGF,UAAU,uBACR,SAAQ,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC;IAC7C;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,QAAA,MAAM,kBAAkB,gHAmBtB,CAAC;AAGH,UAAU,mBAAoB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC;IACzE;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,QAAA,MAAM,cAAc,4GAkBnB,CAAC;AAGF,QAAA,MAAM,kBAAkB,sKAetB,CAAC;AAGH,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,GACnB,CAAC;AACF,YAAY,EACV,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,GACpB,CAAC"}
|
|
@@ -1,11 +1,67 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
2
3
|
import { Pagination } from './Pagination';
|
|
3
|
-
|
|
4
|
+
interface PaginationStoryArgs extends ComponentProps<typeof Pagination> {
|
|
5
|
+
/** Story-only: current page, 1-based. */
|
|
6
|
+
page: number;
|
|
7
|
+
/** Story-only: number of pages. */
|
|
8
|
+
totalPages: number;
|
|
9
|
+
/** Story-only: pages shown on each side of the current one. */
|
|
10
|
+
siblingCount: number;
|
|
11
|
+
/** Visible text of the previous button (`PaginationPrevious`). */
|
|
12
|
+
prevText?: string;
|
|
13
|
+
/** Visible text of the next button (`PaginationNext`). */
|
|
14
|
+
nextText?: string;
|
|
15
|
+
/** Story-only: called with the page the user asks for. */
|
|
16
|
+
onPageChange: (page: number) => void;
|
|
17
|
+
}
|
|
18
|
+
declare const meta: {
|
|
19
|
+
title: string;
|
|
20
|
+
component: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
21
|
+
parameters: {
|
|
22
|
+
layout: string;
|
|
23
|
+
docs: {
|
|
24
|
+
description: {
|
|
25
|
+
component: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
argTypes: {
|
|
30
|
+
page: {
|
|
31
|
+
control: {
|
|
32
|
+
type: "number";
|
|
33
|
+
min: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
totalPages: {
|
|
37
|
+
control: {
|
|
38
|
+
type: "number";
|
|
39
|
+
min: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
siblingCount: {
|
|
43
|
+
control: {
|
|
44
|
+
type: "number";
|
|
45
|
+
min: number;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
args: {
|
|
50
|
+
page: number;
|
|
51
|
+
totalPages: number;
|
|
52
|
+
siblingCount: number;
|
|
53
|
+
onPageChange: import('storybook/test').Mock<(...args: any[]) => any>;
|
|
54
|
+
};
|
|
55
|
+
render: (args: PaginationStoryArgs) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
};
|
|
4
57
|
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof
|
|
58
|
+
type Story = StoryObj<typeof meta>;
|
|
6
59
|
export declare const Default: Story;
|
|
7
60
|
export declare const WithEllipsis: Story;
|
|
8
|
-
export declare const Interactive: Story;
|
|
9
61
|
export declare const WithText: Story;
|
|
62
|
+
export declare const LongContent: Story;
|
|
63
|
+
export declare const SinglePage: Story;
|
|
10
64
|
export declare const States: Story;
|
|
65
|
+
export declare const Controlled: Story;
|
|
66
|
+
export declare const EdgesAreDisabled: Story;
|
|
11
67
|
//# sourceMappingURL=Pagination.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Pagination.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EACL,UAAU,EAOX,MAAM,cAAc,CAAC;AAEtB,UAAU,mBAAoB,SAAQ,cAAc,CAAC,OAAO,UAAU,CAAC;IACrE,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,+DAA+D;IAC/D,YAAY,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0DAA0D;IAC1D,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAqFD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KA8BpB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAmBxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAY9B,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
3
3
|
export interface RadioGroupItemProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> {
|
|
4
|
+
/** Text beside the radio; clicking it selects the item and names it for screen readers. */
|
|
4
5
|
label?: React.ReactNode;
|
|
5
6
|
}
|
|
6
7
|
export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
|
+
/** Lays the items out in a row instead of a column. @default false */
|
|
7
9
|
row?: boolean;
|
|
8
10
|
} & React.RefAttributes<HTMLDivElement>> & {
|
|
9
11
|
Item: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AA+CnE,MAAM,WAAW,mBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC;IACvE,2FAA2F;IAC3F,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB;AAiCD,eAAO,MAAM,UAAU;IA1EnB,sEAAsE;UAChE,OAAO;;;CA2Ef,CAAC"}
|
|
@@ -1,9 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
3
|
import { RadioGroup } from './RadioGroup';
|
|
3
|
-
|
|
4
|
+
interface RadioOption {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
type RadioGroupStoryArgs = ComponentProps<typeof RadioGroup> & {
|
|
10
|
+
options: RadioOption[];
|
|
11
|
+
};
|
|
12
|
+
declare const meta: {
|
|
13
|
+
title: string;
|
|
14
|
+
component: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-radio-group').RadioGroupProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
|
+
row?: boolean;
|
|
16
|
+
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
17
|
+
Item: import('react').ForwardRefExoticComponent<import('./RadioGroup').RadioGroupItemProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
};
|
|
19
|
+
subcomponents: {
|
|
20
|
+
"RadioGroup.Item": import('react').ForwardRefExoticComponent<import('./RadioGroup').RadioGroupItemProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
21
|
+
};
|
|
22
|
+
parameters: {
|
|
23
|
+
layout: string;
|
|
24
|
+
docs: {
|
|
25
|
+
description: {
|
|
26
|
+
component: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
args: {
|
|
31
|
+
options: RadioOption[];
|
|
32
|
+
defaultValue: string;
|
|
33
|
+
row: false;
|
|
34
|
+
disabled: false;
|
|
35
|
+
"aria-label": string;
|
|
36
|
+
onValueChange: import('storybook/test').Mock<(...args: any[]) => any>;
|
|
37
|
+
};
|
|
38
|
+
render: (args: RadioGroupStoryArgs) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
};
|
|
4
40
|
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof
|
|
41
|
+
type Story = StoryObj<typeof meta>;
|
|
6
42
|
export declare const Default: Story;
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
43
|
+
export declare const Row: Story;
|
|
44
|
+
export declare const States: Story;
|
|
45
|
+
export declare const LongContent: Story;
|
|
46
|
+
export declare const Controlled: Story;
|
|
47
|
+
export declare const InsideField: Story;
|
|
9
48
|
//# sourceMappingURL=RadioGroup.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.stories.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"RadioGroup.stories.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,UAAU,WAAW;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAQD,KAAK,mBAAmB,GAAG,cAAc,CAAC,OAAO,UAAU,CAAC,GAAG;IAC7D,OAAO,EAAE,WAAW,EAAE,CAAC;CACxB,CAAC;AAiBF,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsB2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,KAEjB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAepB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAsBzB,CAAC;AAsBF,eAAO,MAAM,UAAU,EAAE,KAGxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAkBzB,CAAC"}
|
|
@@ -5,38 +5,59 @@ declare const SelectRoot: React.FC<SelectPrimitive.SelectProps>;
|
|
|
5
5
|
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
7
7
|
export type SelectTriggerProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> & {
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Look of the trigger: `ghost` is large text with a chevron, `outlined` a
|
|
10
|
+
* bordered form control, `icon` a square icon-only button (no chevron, no
|
|
11
|
+
* value text) that renders only its `children`.
|
|
12
|
+
* @default "ghost"
|
|
13
|
+
*/
|
|
9
14
|
variant?: "ghost" | "outlined" | "icon";
|
|
10
15
|
/** Leading icon from `@shape/shape-ui/icons/<name>`. outlined only. */
|
|
11
16
|
leadingIcon?: IconDefinition;
|
|
12
|
-
/**
|
|
17
|
+
/** Shows the severity bars before the value text. outlined only. @default false */
|
|
13
18
|
severity?: boolean;
|
|
14
19
|
/** Trailing icon from `@shape/shape-ui/icons/<name>`. outlined only. */
|
|
15
20
|
trailingIcon?: IconDefinition;
|
|
16
|
-
/**
|
|
21
|
+
/** Hides the chevron, so `trailingIcon` takes its place. outlined only. @default false */
|
|
17
22
|
replaceChevron?: boolean;
|
|
18
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Paints the red border. outlined only. Inside a `Field` it defaults to the
|
|
25
|
+
* field's invalid state; pass it to override that.
|
|
26
|
+
*/
|
|
19
27
|
error?: boolean;
|
|
20
28
|
};
|
|
21
29
|
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
22
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Look of the trigger: `ghost` is large text with a chevron, `outlined` a
|
|
32
|
+
* bordered form control, `icon` a square icon-only button (no chevron, no
|
|
33
|
+
* value text) that renders only its `children`.
|
|
34
|
+
* @default "ghost"
|
|
35
|
+
*/
|
|
23
36
|
variant?: "ghost" | "outlined" | "icon";
|
|
24
37
|
/** Leading icon from `@shape/shape-ui/icons/<name>`. outlined only. */
|
|
25
38
|
leadingIcon?: IconDefinition;
|
|
26
|
-
/**
|
|
39
|
+
/** Shows the severity bars before the value text. outlined only. @default false */
|
|
27
40
|
severity?: boolean;
|
|
28
41
|
/** Trailing icon from `@shape/shape-ui/icons/<name>`. outlined only. */
|
|
29
42
|
trailingIcon?: IconDefinition;
|
|
30
|
-
/**
|
|
43
|
+
/** Hides the chevron, so `trailingIcon` takes its place. outlined only. @default false */
|
|
31
44
|
replaceChevron?: boolean;
|
|
32
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* Paints the red border. outlined only. Inside a `Field` it defaults to the
|
|
47
|
+
* field's invalid state; pass it to override that.
|
|
48
|
+
*/
|
|
33
49
|
error?: boolean;
|
|
34
50
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
35
51
|
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
36
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* z-index applied to the Radix popper wrapper
|
|
54
|
+
* (`data-radix-popper-content-wrapper`), for a list opened above a modal or
|
|
55
|
+
* another layer. Only with `position="popper"`, the default here.
|
|
56
|
+
*/
|
|
37
57
|
wrapperZIndex?: number | string;
|
|
38
58
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
39
59
|
export interface SelectItemProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> {
|
|
60
|
+
/** Content after the label (a badge, a count). Not copied into the trigger. */
|
|
40
61
|
suffix?: React.ReactNode;
|
|
41
62
|
}
|
|
42
63
|
declare const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -47,21 +68,33 @@ declare const Select: ((props: React.ComponentPropsWithoutRef<typeof SelectPrimi
|
|
|
47
68
|
Group: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
48
69
|
Value: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
49
70
|
Trigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
50
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* Look of the trigger: `ghost` is large text with a chevron, `outlined` a
|
|
73
|
+
* bordered form control, `icon` a square icon-only button (no chevron, no
|
|
74
|
+
* value text) that renders only its `children`.
|
|
75
|
+
* @default "ghost"
|
|
76
|
+
*/
|
|
51
77
|
variant?: "ghost" | "outlined" | "icon";
|
|
52
78
|
/** Leading icon from `@shape/shape-ui/icons/<name>`. outlined only. */
|
|
53
79
|
leadingIcon?: IconDefinition;
|
|
54
|
-
/**
|
|
80
|
+
/** Shows the severity bars before the value text. outlined only. @default false */
|
|
55
81
|
severity?: boolean;
|
|
56
82
|
/** Trailing icon from `@shape/shape-ui/icons/<name>`. outlined only. */
|
|
57
83
|
trailingIcon?: IconDefinition;
|
|
58
|
-
/**
|
|
84
|
+
/** Hides the chevron, so `trailingIcon` takes its place. outlined only. @default false */
|
|
59
85
|
replaceChevron?: boolean;
|
|
60
|
-
/**
|
|
86
|
+
/**
|
|
87
|
+
* Paints the red border. outlined only. Inside a `Field` it defaults to the
|
|
88
|
+
* field's invalid state; pass it to override that.
|
|
89
|
+
*/
|
|
61
90
|
error?: boolean;
|
|
62
91
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
63
92
|
Content: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
64
|
-
/**
|
|
93
|
+
/**
|
|
94
|
+
* z-index applied to the Radix popper wrapper
|
|
95
|
+
* (`data-radix-popper-content-wrapper`), for a list opened above a modal or
|
|
96
|
+
* another layer. Only with `position="popper"`, the default here.
|
|
97
|
+
*/
|
|
65
98
|
wrapperZIndex?: number | string;
|
|
66
99
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
67
100
|
Item: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
|