@equinor/eds-core-react 1.1.0 → 2.0.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.
- package/README.md +11 -2
- package/dist/eds-core-react.cjs +272 -150
- package/dist/esm/components/Accordion/Accordion.js +4 -3
- package/dist/esm/components/Autocomplete/Autocomplete.js +88 -21
- package/dist/esm/components/Datepicker/fields/FieldWrapper.js +8 -2
- package/dist/esm/components/Icon/Icon.js +2 -3
- package/dist/esm/components/InputWrapper/useInputField.js +61 -0
- package/dist/esm/components/SideBar/SideBarAccordion/index.js +4 -3
- package/dist/esm/components/Slider/Slider.js +8 -5
- package/dist/esm/components/Tabs/Tabs.js +4 -3
- package/dist/esm/components/TextField/TextField.js +23 -56
- package/dist/esm/components/Textarea/Textarea.js +64 -33
- package/dist/esm/components/Typography/Typography.js +1 -15
- package/dist/esm/index.js +2 -0
- package/dist/types/components/InputWrapper/index.d.ts +5 -0
- package/dist/types/components/InputWrapper/types.d.ts +21 -0
- package/dist/types/components/InputWrapper/useInputField.d.ts +31 -0
- package/dist/types/components/TextField/TextField.d.ts +11 -0
- package/dist/types/components/Textarea/Textarea.d.ts +9 -0
- package/dist/types/{src/components → components}/Typography/Typography.d.ts +0 -13
- package/dist/types/{src/components → components}/Typography/Typography.new.d.ts +2 -6
- package/dist/types/{src/components → components}/Typography/Typography.new.types.d.ts +2 -2
- package/dist/types/{src/components → components}/Typography/Typography.stories.shared.d.ts +1 -22
- package/dist/types/{src/index.d.ts → index.d.ts} +1 -0
- package/package.json +6 -7
- package/dist/style.css +0 -81
- package/dist/style.js +0 -3
- package/dist/types/playwright.config.d.ts +0 -6
- package/dist/types/src/components/InputWrapper/index.d.ts +0 -2
- package/dist/types/src/components/TextField/TextField.d.ts +0 -31
- package/dist/types/src/components/Textarea/Textarea.d.ts +0 -30
- /package/dist/types/{src/components → components}/Accordion/Accordion.d.ts +0 -0
- /package/dist/types/{src/components → components}/Accordion/Accordion.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Accordion/Accordion.types.d.ts +0 -0
- /package/dist/types/{src/components → components}/Accordion/AccordionHeader.d.ts +0 -0
- /package/dist/types/{src/components → components}/Accordion/AccordionHeaderActions.d.ts +0 -0
- /package/dist/types/{src/components → components}/Accordion/AccordionHeaderTitle.d.ts +0 -0
- /package/dist/types/{src/components → components}/Accordion/AccordionItem.d.ts +0 -0
- /package/dist/types/{src/components → components}/Accordion/AccordionPanel.d.ts +0 -0
- /package/dist/types/{src/components → components}/Accordion/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Autocomplete/AddNewOption.d.ts +0 -0
- /package/dist/types/{src/components → components}/Autocomplete/Autocomplete.d.ts +0 -0
- /package/dist/types/{src/components → components}/Autocomplete/Autocomplete.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Autocomplete/Option.d.ts +0 -0
- /package/dist/types/{src/components → components}/Autocomplete/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Avatar/Avatar.d.ts +0 -0
- /package/dist/types/{src/components → components}/Avatar/Avatar.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Avatar/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Banner/Banner.d.ts +0 -0
- /package/dist/types/{src/components → components}/Banner/Banner.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Banner/BannerActions.d.ts +0 -0
- /package/dist/types/{src/components → components}/Banner/BannerIcon.d.ts +0 -0
- /package/dist/types/{src/components → components}/Banner/BannerMessage.d.ts +0 -0
- /package/dist/types/{src/components → components}/Banner/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Breadcrumbs/Breadcrumb.d.ts +0 -0
- /package/dist/types/{src/components → components}/Breadcrumbs/Breadcrumbs.d.ts +0 -0
- /package/dist/types/{src/components → components}/Breadcrumbs/Breadcrumbs.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Breadcrumbs/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Button/Button.d.ts +0 -0
- /package/dist/types/{src/components → components}/Button/Button.types.d.ts +0 -0
- /package/dist/types/{src/components → components}/Button/ButtonGroup/ButtonGroup.d.ts +0 -0
- /package/dist/types/{src/components → components}/Button/ButtonGroup/ButtonGroup.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Button/ButtonGroup/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Button/InnerFullWidth.d.ts +0 -0
- /package/dist/types/{src/components → components}/Button/ToggleButton/ToggleButton.d.ts +0 -0
- /package/dist/types/{src/components → components}/Button/ToggleButton/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Button/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Button/tokens/button.d.ts +0 -0
- /package/dist/types/{src/components → components}/Button/tokens/contained.d.ts +0 -0
- /package/dist/types/{src/components → components}/Button/tokens/contained_icon.d.ts +0 -0
- /package/dist/types/{src/components → components}/Button/tokens/ghost.d.ts +0 -0
- /package/dist/types/{src/components → components}/Button/tokens/icon.d.ts +0 -0
- /package/dist/types/{src/components → components}/Button/tokens/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Button/tokens/outlined.d.ts +0 -0
- /package/dist/types/{src/components → components}/Card/Card.d.ts +0 -0
- /package/dist/types/{src/components → components}/Card/Card.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Card/CardActions.d.ts +0 -0
- /package/dist/types/{src/components → components}/Card/CardContent.d.ts +0 -0
- /package/dist/types/{src/components → components}/Card/CardHeader.d.ts +0 -0
- /package/dist/types/{src/components → components}/Card/CardHeaderTitle.d.ts +0 -0
- /package/dist/types/{src/components → components}/Card/CardMedia.d.ts +0 -0
- /package/dist/types/{src/components → components}/Card/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Checkbox/Checkbox.d.ts +0 -0
- /package/dist/types/{src/components → components}/Checkbox/Checkbox.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Checkbox/Input.d.ts +0 -0
- /package/dist/types/{src/components → components}/Checkbox/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Chip/Chip.d.ts +0 -0
- /package/dist/types/{src/components → components}/Chip/Chip.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Chip/Icon.d.ts +0 -0
- /package/dist/types/{src/components → components}/Chip/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/DatePicker.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/DateRangePicker.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/calendars/Calendar.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/calendars/CalendarCell.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/calendars/CalendarGrid.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/calendars/CalendarHeader.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/calendars/CalendarWrapper.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/calendars/RangeCalendar.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/calendars/YearGrid.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/fields/DateField.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/fields/DateFieldSegments.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/fields/DateRangeField.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/fields/DateSegment.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/fields/FieldWrapper.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/fields/Toggle.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/props.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/utils/context.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/utils/get-calendar-date.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/utils/getPageYears.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/utils/types.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/utils/useConvertedValidationFunctions.d.ts +0 -0
- /package/dist/types/{src/components → components}/Datepicker/utils/useGetLocale.d.ts +0 -0
- /package/dist/types/{src/components → components}/Dialog/Dialog.d.ts +0 -0
- /package/dist/types/{src/components → components}/Dialog/Dialog.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Dialog/DialogActions.d.ts +0 -0
- /package/dist/types/{src/components → components}/Dialog/DialogContent.d.ts +0 -0
- /package/dist/types/{src/components → components}/Dialog/DialogHeader.d.ts +0 -0
- /package/dist/types/{src/components → components}/Dialog/DialogTitle.d.ts +0 -0
- /package/dist/types/{src/components → components}/Dialog/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Divider/Divider.d.ts +0 -0
- /package/dist/types/{src/components → components}/Divider/Divider.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Divider/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/EdsProvider/eds.context.d.ts +0 -0
- /package/dist/types/{src/components → components}/EdsProvider/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Icon/Icon.d.ts +0 -0
- /package/dist/types/{src/components → components}/Icon/Icon.types.d.ts +0 -0
- /package/dist/types/{src/components → components}/Icon/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Icon/library.d.ts +0 -0
- /package/dist/types/{src/components → components}/Input/Input.d.ts +0 -0
- /package/dist/types/{src/components → components}/Input/Input.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Input/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/InputWrapper/HelperText/HelperText.d.ts +0 -0
- /package/dist/types/{src/components → components}/InputWrapper/HelperText/HelperText.token.d.ts +0 -0
- /package/dist/types/{src/components → components}/InputWrapper/HelperText/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/InputWrapper/InputWrapper.d.ts +0 -0
- /package/dist/types/{src/components → components}/InputWrapper/InputWrapper.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Label/Label.d.ts +0 -0
- /package/dist/types/{src/components → components}/Label/Label.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Label/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/List/List.d.ts +0 -0
- /package/dist/types/{src/components → components}/List/List.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/List/ListItem.d.ts +0 -0
- /package/dist/types/{src/components → components}/List/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Menu/Menu.context.d.ts +0 -0
- /package/dist/types/{src/components → components}/Menu/Menu.d.ts +0 -0
- /package/dist/types/{src/components → components}/Menu/Menu.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Menu/Menu.types.d.ts +0 -0
- /package/dist/types/{src/components → components}/Menu/MenuItem.d.ts +0 -0
- /package/dist/types/{src/components → components}/Menu/MenuList.d.ts +0 -0
- /package/dist/types/{src/components → components}/Menu/MenuSection.d.ts +0 -0
- /package/dist/types/{src/components → components}/Menu/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Pagination/Pagination.d.ts +0 -0
- /package/dist/types/{src/components → components}/Pagination/Pagination.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Pagination/PaginationItem.d.ts +0 -0
- /package/dist/types/{src/components → components}/Pagination/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Pagination/paginationControl.d.ts +0 -0
- /package/dist/types/{src/components → components}/Paper/Paper.d.ts +0 -0
- /package/dist/types/{src/components → components}/Paper/Paper.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Paper/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Popover/Popover.d.ts +0 -0
- /package/dist/types/{src/components → components}/Popover/Popover.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Popover/PopoverActions.d.ts +0 -0
- /package/dist/types/{src/components → components}/Popover/PopoverContent.d.ts +0 -0
- /package/dist/types/{src/components → components}/Popover/PopoverHeader.d.ts +0 -0
- /package/dist/types/{src/components → components}/Popover/PopoverTitle.d.ts +0 -0
- /package/dist/types/{src/components → components}/Popover/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Progress/Circular/CircularProgress.d.ts +0 -0
- /package/dist/types/{src/components → components}/Progress/Circular/CircularProgress.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Progress/Dots/DotProgress.d.ts +0 -0
- /package/dist/types/{src/components → components}/Progress/Dots/DotProgress.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Progress/Linear/LinearProgress.d.ts +0 -0
- /package/dist/types/{src/components → components}/Progress/Linear/LinearProgress.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Progress/Star/StarProgress.d.ts +0 -0
- /package/dist/types/{src/components → components}/Progress/Star/StarProgress.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Progress/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Radio/Radio.d.ts +0 -0
- /package/dist/types/{src/components → components}/Radio/Radio.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Radio/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Scrim/Scrim.d.ts +0 -0
- /package/dist/types/{src/components → components}/Scrim/Scrim.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Scrim/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Search/Search.d.ts +0 -0
- /package/dist/types/{src/components → components}/Search/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Select/NativeSelect.d.ts +0 -0
- /package/dist/types/{src/components → components}/Select/NativeSelect.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Select/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/SideBar/SideBar.context.d.ts +0 -0
- /package/dist/types/{src/components → components}/SideBar/SideBar.d.ts +0 -0
- /package/dist/types/{src/components → components}/SideBar/SideBar.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/SideBar/SideBarAccordion/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/SideBar/SideBarAccordionItem/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/SideBar/SideBarButton/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/SideBar/SideBarContent.d.ts +0 -0
- /package/dist/types/{src/components → components}/SideBar/SideBarFooter.d.ts +0 -0
- /package/dist/types/{src/components → components}/SideBar/SideBarToggle.d.ts +0 -0
- /package/dist/types/{src/components → components}/SideBar/SidebarLink/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/SideBar/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/SideSheet/SideSheet.d.ts +0 -0
- /package/dist/types/{src/components → components}/SideSheet/SideSheet.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/SideSheet/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Slider/MinMax.d.ts +0 -0
- /package/dist/types/{src/components → components}/Slider/Output.d.ts +0 -0
- /package/dist/types/{src/components → components}/Slider/Slider.d.ts +0 -0
- /package/dist/types/{src/components → components}/Slider/Slider.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Slider/SliderInput.d.ts +0 -0
- /package/dist/types/{src/components → components}/Slider/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Snackbar/Snackbar.d.ts +0 -0
- /package/dist/types/{src/components → components}/Snackbar/Snackbar.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Snackbar/SnackbarAction.d.ts +0 -0
- /package/dist/types/{src/components → components}/Snackbar/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Switch/Switch.d.ts +0 -0
- /package/dist/types/{src/components → components}/Switch/Switch.styles.d.ts +0 -0
- /package/dist/types/{src/components → components}/Switch/Switch.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Switch/SwitchDefault.d.ts +0 -0
- /package/dist/types/{src/components → components}/Switch/SwitchSmall.d.ts +0 -0
- /package/dist/types/{src/components → components}/Switch/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/Body.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/Caption.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/Cell.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/DataCell/DataCell.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/DataCell/DataCell.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/DataCell/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/Foot/Foot.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/Foot/Foot.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/Foot/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/FooterCell/FooterCell.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/FooterCell/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/Head/Head.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/Head/Head.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/Head/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/HeaderCell/HeaderCell.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/HeaderCell/HeaderCell.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/HeaderCell/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/Inner.context.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/Row/Row.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/Row/Row.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/Row/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/Table.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/Table.types.d.ts +0 -0
- /package/dist/types/{src/components → components}/Table/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/TableOfContents/LinkItem.d.ts +0 -0
- /package/dist/types/{src/components → components}/TableOfContents/TableOfContents.d.ts +0 -0
- /package/dist/types/{src/components → components}/TableOfContents/TableOfContents.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/TableOfContents/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Tabs/Tab.d.ts +0 -0
- /package/dist/types/{src/components → components}/Tabs/TabList.d.ts +0 -0
- /package/dist/types/{src/components → components}/Tabs/TabPanel.d.ts +0 -0
- /package/dist/types/{src/components → components}/Tabs/TabPanels.d.ts +0 -0
- /package/dist/types/{src/components → components}/Tabs/Tabs.context.d.ts +0 -0
- /package/dist/types/{src/components → components}/Tabs/Tabs.d.ts +0 -0
- /package/dist/types/{src/components → components}/Tabs/Tabs.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Tabs/Tabs.types.d.ts +0 -0
- /package/dist/types/{src/components → components}/Tabs/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/TextField/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Textarea/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Tooltip/Tooltip.d.ts +0 -0
- /package/dist/types/{src/components → components}/Tooltip/Tooltip.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Tooltip/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/TopBar/Actions.d.ts +0 -0
- /package/dist/types/{src/components → components}/TopBar/CustomContent.d.ts +0 -0
- /package/dist/types/{src/components → components}/TopBar/Header.d.ts +0 -0
- /package/dist/types/{src/components → components}/TopBar/TopBar.d.ts +0 -0
- /package/dist/types/{src/components → components}/TopBar/TopBar.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/TopBar/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Typography/Heading.d.ts +0 -0
- /package/dist/types/{src/components → components}/Typography/Heading.types.d.ts +0 -0
- /package/dist/types/{src/components → components}/Typography/Paragraph.d.ts +0 -0
- /package/dist/types/{src/components → components}/Typography/Paragraph.types.d.ts +0 -0
- /package/dist/types/{src/components → components}/Typography/Typography.tokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/Typography/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/Typography/types.d.ts +0 -0
- /package/dist/types/{src/components → components}/Typography/utils.d.ts +0 -0
- /package/dist/types/{src/components → components}/types.d.ts +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { InputWrapper } from './InputWrapper';
|
|
2
|
+
export type { InputWrapperProps } from './InputWrapper';
|
|
3
|
+
export { useInputField } from './useInputField';
|
|
4
|
+
export type { InputFieldConfig, UseInputFieldReturn } from './useInputField';
|
|
5
|
+
export type { BaseInputFieldProps } from './types';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import type { Variants } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Base props shared by all input field components (TextField, Textarea, etc.)
|
|
5
|
+
*/
|
|
6
|
+
export type BaseInputFieldProps = {
|
|
7
|
+
/** Variants */
|
|
8
|
+
variant?: Variants;
|
|
9
|
+
/** Input unique id. If this is not provided, one will be generated */
|
|
10
|
+
id?: string;
|
|
11
|
+
/** Label text */
|
|
12
|
+
label?: ReactNode;
|
|
13
|
+
/** Meta text */
|
|
14
|
+
meta?: ReactNode;
|
|
15
|
+
/** Helper text */
|
|
16
|
+
helperText?: string;
|
|
17
|
+
/** InputIcon */
|
|
18
|
+
inputIcon?: ReactNode;
|
|
19
|
+
/** HelperIcon */
|
|
20
|
+
helperIcon?: ReactNode;
|
|
21
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { LabelProps } from '../Label/Label';
|
|
2
|
+
import type { HelperTextProps } from './HelperText/HelperText';
|
|
3
|
+
import type { BaseInputFieldProps } from './types';
|
|
4
|
+
import type { Variants } from '../types';
|
|
5
|
+
export type InputFieldConfig = BaseInputFieldProps & {
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
};
|
|
11
|
+
export type UseInputFieldReturn = {
|
|
12
|
+
fieldId: string;
|
|
13
|
+
helperTextId: string | null;
|
|
14
|
+
containerProps: {
|
|
15
|
+
className?: string;
|
|
16
|
+
style: React.CSSProperties;
|
|
17
|
+
color?: Variants;
|
|
18
|
+
};
|
|
19
|
+
labelProps: LabelProps;
|
|
20
|
+
helperProps: HelperTextProps;
|
|
21
|
+
ariaProps: {
|
|
22
|
+
id: string;
|
|
23
|
+
'aria-invalid'?: boolean;
|
|
24
|
+
'aria-describedby'?: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Shared hook for TextField and Textarea that handles common logic
|
|
29
|
+
* for IDs, labels, helper text, and ARIA attributes
|
|
30
|
+
*/
|
|
31
|
+
export declare const useInputField: ({ id, label, meta, helperText, helperIcon, variant, disabled, className, style, }: InputFieldConfig) => UseInputFieldReturn;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InputHTMLAttributes, ForwardedRef } from 'react';
|
|
2
|
+
import { BaseInputFieldProps } from '../InputWrapper';
|
|
3
|
+
type TextFieldSpecificProps = {
|
|
4
|
+
/** Unit text */
|
|
5
|
+
unit?: string;
|
|
6
|
+
/** Input ref */
|
|
7
|
+
inputRef?: ForwardedRef<HTMLInputElement>;
|
|
8
|
+
};
|
|
9
|
+
export type TextFieldProps = BaseInputFieldProps & TextFieldSpecificProps & InputHTMLAttributes<HTMLInputElement>;
|
|
10
|
+
export declare const TextField: import("react").ForwardRefExoticComponent<BaseInputFieldProps & TextFieldSpecificProps & InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
2
|
+
import { BaseInputFieldProps } from '../InputWrapper';
|
|
3
|
+
type TextareaSpecificProps = {
|
|
4
|
+
/** Specifies max rows for multiline */
|
|
5
|
+
rowsMax?: number;
|
|
6
|
+
};
|
|
7
|
+
export type TextareaProps = BaseInputFieldProps & TextareaSpecificProps & TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
8
|
+
export declare const Textarea: import("react").ForwardRefExoticComponent<BaseInputFieldProps & TextareaSpecificProps & TextareaHTMLAttributes<HTMLTextAreaElement> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
9
|
+
export {};
|
|
@@ -20,17 +20,4 @@ export type TypographyProps = {
|
|
|
20
20
|
/** Number of lines. */
|
|
21
21
|
lines?: number;
|
|
22
22
|
} & (HTMLAttributes<HTMLElement> | AnchorHTMLAttributes<HTMLAnchorElement>);
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated Typography component is deprecated and will be removed in a future version.
|
|
25
|
-
* Please use the new Typography, Heading, or Paragraph components instead.
|
|
26
|
-
*
|
|
27
|
-
* Migration guide:
|
|
28
|
-
* - For headings: Use `<Heading as="h1|h2|h3|h4|h5|h6">` instead of `<Typography variant="h1|h2|h3|h4|h5|h6">`
|
|
29
|
-
* - For paragraphs: Use `<Paragraph>` instead of `<Typography variant="body_short|body_long">`
|
|
30
|
-
* - For inline text: Use `<Typography>` for more flexible text styling
|
|
31
|
-
*
|
|
32
|
-
* @see {@link TypographyNext}
|
|
33
|
-
* @see {@link Heading}
|
|
34
|
-
* @see {@link Paragraph}
|
|
35
|
-
*/
|
|
36
23
|
export declare const Typography: OverridableComponent<TypographyProps, HTMLElement>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TypographyNextProps } from './Typography.new.types';
|
|
1
2
|
/**
|
|
2
3
|
* TypographyNext component for flexible typography with baseline grid support.
|
|
3
4
|
*
|
|
@@ -35,9 +36,4 @@
|
|
|
35
36
|
* </Typography>
|
|
36
37
|
* ```
|
|
37
38
|
*/
|
|
38
|
-
export declare const TypographyNext: import("react").ForwardRefExoticComponent<
|
|
39
|
-
family: import("./types").FontFamily;
|
|
40
|
-
size: import("./types").FontSize;
|
|
41
|
-
baseline: import("./types").BaselineAlignment;
|
|
42
|
-
as?: import("react").ElementType;
|
|
43
|
-
} & import("./Typography.new.types").BaseTypographyProps & import("react").HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLElement>>;
|
|
39
|
+
export declare const TypographyNext: import("react").ForwardRefExoticComponent<TypographyNextProps & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes, ElementType } from 'react';
|
|
1
|
+
import { HTMLAttributes, AnchorHTMLAttributes, ElementType } from 'react';
|
|
2
2
|
import { FontFamily, FontSize, LineHeight, BaselineAlignment, FontWeight, Tracking } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Base typography props shared across typography components.
|
|
@@ -25,4 +25,4 @@ export type TypographyNextProps = {
|
|
|
25
25
|
baseline: BaselineAlignment;
|
|
26
26
|
/** Semantic HTML element to render. Defaults to 'span' */
|
|
27
27
|
as?: ElementType;
|
|
28
|
-
} & BaseTypographyProps & HTMLAttributes<HTMLElement
|
|
28
|
+
} & BaseTypographyProps & (HTMLAttributes<HTMLElement> | AnchorHTMLAttributes<HTMLAnchorElement>);
|
|
@@ -9,22 +9,7 @@ export declare const LINE_HEIGHTS: readonly ["default", "squished"];
|
|
|
9
9
|
export declare const HEADING_LEVELS: readonly ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
10
10
|
export declare const ComparisonGrid: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
11
|
export declare const ComparisonRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
-
export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<{
|
|
13
|
-
family: import("./types").FontFamily;
|
|
14
|
-
size: import("./types").FontSize;
|
|
15
|
-
baseline: import("./types").BaselineAlignment;
|
|
16
|
-
as?: import("react").ElementType;
|
|
17
|
-
} & import("./Typography.new.types").BaseTypographyProps & import("react").HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLElement>, {
|
|
18
|
-
family: import("./types").FontFamily;
|
|
19
|
-
size: import("./types").FontSize;
|
|
20
|
-
baseline: import("./types").BaselineAlignment;
|
|
21
|
-
as?: import("react").ElementType;
|
|
22
|
-
} & import("./Typography.new.types").BaseTypographyProps & import("react").HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLElement>>, Partial<TypographyNextProps>>, Partial<TypographyNextProps>>> & string & Omit<import("react").ForwardRefExoticComponent<{
|
|
23
|
-
family: import("./types").FontFamily;
|
|
24
|
-
size: import("./types").FontSize;
|
|
25
|
-
baseline: import("./types").BaselineAlignment;
|
|
26
|
-
as?: import("react").ElementType;
|
|
27
|
-
} & import("./Typography.new.types").BaseTypographyProps & import("react").HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
12
|
+
export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<(TypographyNextProps & import("react").RefAttributes<HTMLElement>) & import("styled-components/dist/types").BaseObject, TypographyNextProps & import("react").RefAttributes<HTMLElement>>, Partial<TypographyNextProps>>, Partial<TypographyNextProps>>> & string & Omit<import("react").ForwardRefExoticComponent<TypographyNextProps & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
28
13
|
export declare const GridBackground: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
29
14
|
export declare const RealWorldGrid: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
30
15
|
export declare const IntroductionGrid: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
@@ -66,12 +51,6 @@ export declare const SizeComparison: ({ component: Component, text, ...component
|
|
|
66
51
|
export declare const LineHeightComparison: ({ text, }: {
|
|
67
52
|
text?: string;
|
|
68
53
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
69
|
-
export declare const IconTextRow: ({ label, size, text, iconName, }: {
|
|
70
|
-
label: string;
|
|
71
|
-
size: (typeof SIZES)[number];
|
|
72
|
-
text?: string;
|
|
73
|
-
iconName?: string;
|
|
74
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
75
54
|
export declare const ButtonRow: ({ label, size, children, ...extraProps }: {
|
|
76
55
|
label: string;
|
|
77
56
|
size: string;
|
|
@@ -3,6 +3,7 @@ export * from './components/Typography';
|
|
|
3
3
|
export * from './components/Table';
|
|
4
4
|
export * from './components/Divider';
|
|
5
5
|
export * from './components/TextField';
|
|
6
|
+
export * from './components/Textarea';
|
|
6
7
|
export * from './components/Icon';
|
|
7
8
|
export * from './components/List';
|
|
8
9
|
export * from './components/Accordion';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/eds-core-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "The React implementation of the Equinor Design System",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/*.css"
|
|
@@ -30,9 +30,7 @@
|
|
|
30
30
|
"types": "./dist/types/index.d.ts",
|
|
31
31
|
"import": "./dist/esm/index.js",
|
|
32
32
|
"require": "./dist/eds-core-react.cjs"
|
|
33
|
-
}
|
|
34
|
-
"./style": "./dist/style.css",
|
|
35
|
-
"./style.css": "./dist/style.css"
|
|
33
|
+
}
|
|
36
34
|
},
|
|
37
35
|
"keywords": [
|
|
38
36
|
"eds",
|
|
@@ -84,7 +82,8 @@
|
|
|
84
82
|
"peerDependencies": {
|
|
85
83
|
"react": "^19",
|
|
86
84
|
"react-dom": "^19",
|
|
87
|
-
"styled-components": "^6"
|
|
85
|
+
"styled-components": "^6",
|
|
86
|
+
"@equinor/eds-tokens": "^2.0.1"
|
|
88
87
|
},
|
|
89
88
|
"dependencies": {
|
|
90
89
|
"@babel/runtime": "^7.28.4",
|
|
@@ -98,8 +97,8 @@
|
|
|
98
97
|
"downshift": "9.0.10",
|
|
99
98
|
"react-aria": "^3.44.0",
|
|
100
99
|
"@equinor/eds-icons": "^1.0.1",
|
|
101
|
-
"@equinor/eds-tokens": "^
|
|
102
|
-
"@equinor/eds-utils": "^
|
|
100
|
+
"@equinor/eds-tokens": "^2.0.1",
|
|
101
|
+
"@equinor/eds-utils": "^2.0.0"
|
|
103
102
|
},
|
|
104
103
|
"scripts": {
|
|
105
104
|
"build": "rollup -c && tsc -p tsconfig.build.json",
|
package/dist/style.css
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
@property --font-size{inherits:true;initial-value:16px;syntax:"<length>"}.font-heading,.font-ui,[data-font-family]{display:block;margin:0}.font-ui,[data-font-family=ui]{font-family:var(--eds-typography-ui-body-font-family),sans-serif}.font-heading,[data-font-family=header]{font-family:var(--eds-typography-header-font-family),sans-serif}:is(.font-ui,.font-heading),[data-font-family]{&.text-xs,&[data-text-size=xs]{--font-size:var(--_font-size-xs);font-size:var(--font-size)}&.text-sm,&[data-text-size=sm]{--font-size:var(--_font-size-sm);font-size:var(--font-size)}&.text-md,&[data-text-size=md]{--font-size:var(--_font-size-md);font-size:var(--font-size)}&.text-lg,&[data-text-size=lg]{--font-size:var(--_font-size-lg);font-size:var(--font-size)}&.text-xl,&[data-text-size=xl]{--font-size:var(--_font-size-xl);font-size:var(--font-size)}&.text-2xl,&[data-text-size="2xl"]{--font-size:var(--_font-size-2xl);font-size:var(--font-size)}&.text-3xl,&[data-text-size="3xl"]{--font-size:var(--_font-size-3xl);font-size:var(--font-size)}&.text-4xl,&[data-text-size="4xl"]{--font-size:var(--_font-size-4xl);font-size:var(--font-size)}&.text-5xl,&[data-text-size="5xl"]{--font-size:var(--_font-size-5xl);font-size:var(--font-size)}&.text-6xl,&[data-text-size="6xl"]{--font-size:var(--_font-size-6xl);font-size:var(--font-size)}&.line-height-default,&[data-line-height=default]{line-height:var(--_line-height-default)}&.line-height-squished,&[data-line-height=squished]{line-height:var(--_line-height-squished)}&.font-lighter,&[data-font-weight=lighter]{font-weight:var(--_font-weight-lighter)}&.font-normal,&[data-font-weight=normal]{font-weight:var(--_font-weight-normal)}&.font-bolder,&[data-font-weight=bolder]{font-weight:var(--_font-weight-bolder)}&.tracking-tight,&[data-tracking=tight]{letter-spacing:var(--_tracking-tight)}&.tracking-normal,&[data-tracking=normal]{letter-spacing:var(--_tracking-normal)}&.tracking-wide,&[data-tracking=wide]{letter-spacing:var(--_tracking-wide)}}.font-ui,[data-font-family=ui]{&.text-xs,&[data-text-size=xs]{--_font-size-xs:var(--eds-typography-ui-body-xs-font-size);--_line-height-default:var(--eds-typography-ui-body-xs-lineheight-default);--_line-height-squished:var(
|
|
2
|
-
--eds-typography-ui-body-xs-lineheight-squished
|
|
3
|
-
);--_font-weight-lighter:var(
|
|
4
|
-
--eds-typography-ui-body-xs-font-weight-lighter
|
|
5
|
-
);--_font-weight-normal:var(--eds-typography-ui-body-xs-font-weight-normal);--_font-weight-bolder:var(--eds-typography-ui-body-xs-font-weight-bolder);--_tracking-tight:var(--eds-typography-ui-body-xs-tracking-tight);--_tracking-normal:var(--eds-typography-ui-body-xs-tracking-normal);--_tracking-wide:var(--eds-typography-ui-body-xs-tracking-wide)}&.text-sm,&[data-text-size=sm]{--_font-size-sm:var(--eds-typography-ui-body-sm-font-size);--_line-height-default:var(--eds-typography-ui-body-sm-lineheight-default);--_line-height-squished:var(
|
|
6
|
-
--eds-typography-ui-body-sm-lineheight-squished
|
|
7
|
-
);--_font-weight-lighter:var(
|
|
8
|
-
--eds-typography-ui-body-sm-font-weight-lighter
|
|
9
|
-
);--_font-weight-normal:var(--eds-typography-ui-body-sm-font-weight-normal);--_font-weight-bolder:var(--eds-typography-ui-body-sm-font-weight-bolder);--_tracking-tight:var(--eds-typography-ui-body-sm-tracking-tight);--_tracking-normal:var(--eds-typography-ui-body-sm-tracking-normal);--_tracking-wide:var(--eds-typography-ui-body-sm-tracking-wide)}&.text-md,&[data-text-size=md]{--_font-size-md:var(--eds-typography-ui-body-md-font-size);--_line-height-default:var(--eds-typography-ui-body-md-lineheight-default);--_line-height-squished:var(
|
|
10
|
-
--eds-typography-ui-body-md-lineheight-squished
|
|
11
|
-
);--_font-weight-lighter:var(
|
|
12
|
-
--eds-typography-ui-body-md-font-weight-lighter
|
|
13
|
-
);--_font-weight-normal:var(--eds-typography-ui-body-md-font-weight-normal);--_font-weight-bolder:var(--eds-typography-ui-body-md-font-weight-bolder);--_tracking-tight:var(--eds-typography-ui-body-md-tracking-tight);--_tracking-normal:var(--eds-typography-ui-body-md-tracking-normal);--_tracking-wide:var(--eds-typography-ui-body-md-tracking-wide)}&.text-lg,&[data-text-size=lg]{--_font-size-lg:var(--eds-typography-ui-body-lg-font-size);--_line-height-default:var(--eds-typography-ui-body-lg-lineheight-default);--_line-height-squished:var(
|
|
14
|
-
--eds-typography-ui-body-lg-lineheight-squished
|
|
15
|
-
);--_font-weight-lighter:var(
|
|
16
|
-
--eds-typography-ui-body-lg-font-weight-lighter
|
|
17
|
-
);--_font-weight-normal:var(--eds-typography-ui-body-lg-font-weight-normal);--_font-weight-bolder:var(--eds-typography-ui-body-lg-font-weight-bolder);--_tracking-tight:var(--eds-typography-ui-body-lg-tracking-tight);--_tracking-normal:var(--eds-typography-ui-body-lg-tracking-normal);--_tracking-wide:var(--eds-typography-ui-body-lg-tracking-wide)}&.text-xl,&[data-text-size=xl]{--_font-size-xl:var(--eds-typography-ui-body-xl-font-size);--_line-height-default:var(--eds-typography-ui-body-xl-lineheight-default);--_line-height-squished:var(
|
|
18
|
-
--eds-typography-ui-body-xl-lineheight-squished
|
|
19
|
-
);--_font-weight-lighter:var(
|
|
20
|
-
--eds-typography-ui-body-xl-font-weight-lighter
|
|
21
|
-
);--_font-weight-normal:var(--eds-typography-ui-body-xl-font-weight-normal);--_font-weight-bolder:var(--eds-typography-ui-body-xl-font-weight-bolder);--_tracking-tight:var(--eds-typography-ui-body-xl-tracking-tight);--_tracking-normal:var(--eds-typography-ui-body-xl-tracking-normal);--_tracking-wide:var(--eds-typography-ui-body-xl-tracking-wide)}&.text-2xl,&[data-text-size="2xl"]{--_font-size-2xl:var(--eds-typography-ui-body-2xl-font-size);--_line-height-default:var(
|
|
22
|
-
--eds-typography-ui-body-2xl-lineheight-default
|
|
23
|
-
);--_line-height-squished:var(
|
|
24
|
-
--eds-typography-ui-body-2xl-lineheight-squished
|
|
25
|
-
);--_font-weight-lighter:var(
|
|
26
|
-
--eds-typography-ui-body-2xl-font-weight-lighter
|
|
27
|
-
);--_font-weight-normal:var(--eds-typography-ui-body-2xl-font-weight-normal);--_font-weight-bolder:var(--eds-typography-ui-body-2xl-font-weight-bolder);--_tracking-tight:var(--eds-typography-ui-body-2xl-tracking-tight);--_tracking-normal:var(--eds-typography-ui-body-2xl-tracking-normal);--_tracking-wide:var(--eds-typography-ui-body-2xl-tracking-wide)}&.text-3xl,&[data-text-size="3xl"]{--_font-size-3xl:var(--eds-typography-ui-body-3xl-font-size);--_line-height-default:var(
|
|
28
|
-
--eds-typography-ui-body-3xl-lineheight-default
|
|
29
|
-
);--_line-height-squished:var(
|
|
30
|
-
--eds-typography-ui-body-3xl-lineheight-squished
|
|
31
|
-
);--_font-weight-lighter:var(
|
|
32
|
-
--eds-typography-ui-body-3xl-font-weight-lighter
|
|
33
|
-
);--_font-weight-normal:var(--eds-typography-ui-body-3xl-font-weight-normal);--_font-weight-bolder:var(--eds-typography-ui-body-3xl-font-weight-bolder);--_tracking-tight:var(--eds-typography-ui-body-3xl-tracking-tight);--_tracking-normal:var(--eds-typography-ui-body-3xl-tracking-normal);--_tracking-wide:var(--eds-typography-ui-body-3xl-tracking-wide)}&.text-4xl,&[data-text-size="4xl"]{--_font-size-4xl:var(--eds-typography-ui-body-4xl-font-size);--_line-height-default:var(
|
|
34
|
-
--eds-typography-ui-body-4xl-lineheight-default
|
|
35
|
-
);--_line-height-squished:var(
|
|
36
|
-
--eds-typography-ui-body-4xl-lineheight-squished
|
|
37
|
-
);--_font-weight-lighter:var(
|
|
38
|
-
--eds-typography-ui-body-4xl-font-weight-lighter
|
|
39
|
-
);--_font-weight-normal:var(--eds-typography-ui-body-4xl-font-weight-normal);--_font-weight-bolder:var(--eds-typography-ui-body-4xl-font-weight-bolder);--_tracking-tight:var(--eds-typography-ui-body-4xl-tracking-tight);--_tracking-normal:var(--eds-typography-ui-body-4xl-tracking-normal);--_tracking-wide:var(--eds-typography-ui-body-4xl-tracking-wide)}&.text-5xl,&[data-text-size="5xl"]{--_font-size-5xl:var(--eds-typography-ui-body-5xl-font-size);--_line-height-default:var(
|
|
40
|
-
--eds-typography-ui-body-5xl-lineheight-default
|
|
41
|
-
);--_line-height-squished:var(
|
|
42
|
-
--eds-typography-ui-body-5xl-lineheight-squished
|
|
43
|
-
);--_font-weight-lighter:var(
|
|
44
|
-
--eds-typography-ui-body-5xl-font-weight-lighter
|
|
45
|
-
);--_font-weight-normal:var(--eds-typography-ui-body-5xl-font-weight-normal);--_font-weight-bolder:var(--eds-typography-ui-body-5xl-font-weight-bolder);--_tracking-tight:var(--eds-typography-ui-body-5xl-tracking-tight);--_tracking-normal:var(--eds-typography-ui-body-5xl-tracking-normal);--_tracking-wide:var(--eds-typography-ui-body-5xl-tracking-wide)}&.text-6xl,&[data-text-size="6xl"]{--_font-size-6xl:var(--eds-typography-ui-body-6xl-font-size);--_line-height-default:var(
|
|
46
|
-
--eds-typography-ui-body-6xl-lineheight-default
|
|
47
|
-
);--_line-height-squished:var(
|
|
48
|
-
--eds-typography-ui-body-6xl-lineheight-squished
|
|
49
|
-
);--_font-weight-lighter:var(
|
|
50
|
-
--eds-typography-ui-body-6xl-font-weight-lighter
|
|
51
|
-
);--_font-weight-normal:var(--eds-typography-ui-body-6xl-font-weight-normal);--_font-weight-bolder:var(--eds-typography-ui-body-6xl-font-weight-bolder);--_tracking-tight:var(--eds-typography-ui-body-6xl-tracking-tight);--_tracking-normal:var(--eds-typography-ui-body-6xl-tracking-normal);--_tracking-wide:var(--eds-typography-ui-body-6xl-tracking-wide)}}.font-heading,[data-font-family=header]{&.text-xs,&[data-text-size=xs]{--_font-size-xs:var(--eds-typography-header-xs-font-size);--_line-height-default:var(--eds-typography-header-xs-lineheight-default);--_line-height-squished:var(
|
|
52
|
-
--eds-typography-header-xs-lineheight-squished
|
|
53
|
-
);--_font-weight-lighter:var(--eds-typography-header-xs-font-weight-lighter);--_font-weight-normal:var(--eds-typography-header-xs-font-weight-normal);--_font-weight-bolder:var(--eds-typography-header-xs-font-weight-bolder);--_tracking-tight:var(--eds-typography-header-xs-tracking-tight);--_tracking-normal:var(--eds-typography-header-xs-tracking-normal);--_tracking-wide:var(--eds-typography-header-xs-tracking-wide)}&.text-sm,&[data-text-size=sm]{--_font-size-sm:var(--eds-typography-header-sm-font-size);--_line-height-default:var(--eds-typography-header-sm-lineheight-default);--_line-height-squished:var(
|
|
54
|
-
--eds-typography-header-sm-lineheight-squished
|
|
55
|
-
);--_font-weight-lighter:var(--eds-typography-header-sm-font-weight-lighter);--_font-weight-normal:var(--eds-typography-header-sm-font-weight-normal);--_font-weight-bolder:var(--eds-typography-header-sm-font-weight-bolder);--_tracking-tight:var(--eds-typography-header-sm-tracking-tight);--_tracking-normal:var(--eds-typography-header-sm-tracking-normal);--_tracking-wide:var(--eds-typography-header-sm-tracking-wide)}&.text-md,&[data-text-size=md]{--_font-size-md:var(--eds-typography-header-md-font-size);--_line-height-default:var(--eds-typography-header-md-lineheight-default);--_line-height-squished:var(
|
|
56
|
-
--eds-typography-header-md-lineheight-squished
|
|
57
|
-
);--_font-weight-lighter:var(--eds-typography-header-md-font-weight-lighter);--_font-weight-normal:var(--eds-typography-header-md-font-weight-normal);--_font-weight-bolder:var(--eds-typography-header-md-font-weight-bolder);--_tracking-tight:var(--eds-typography-header-md-tracking-tight);--_tracking-normal:var(--eds-typography-header-md-tracking-normal);--_tracking-wide:var(--eds-typography-header-md-tracking-wide)}&.text-lg,&[data-text-size=lg]{--_font-size-lg:var(--eds-typography-header-lg-font-size);--_line-height-default:var(--eds-typography-header-lg-lineheight-default);--_line-height-squished:var(
|
|
58
|
-
--eds-typography-header-lg-lineheight-squished
|
|
59
|
-
);--_font-weight-lighter:var(--eds-typography-header-lg-font-weight-lighter);--_font-weight-normal:var(--eds-typography-header-lg-font-weight-normal);--_font-weight-bolder:var(--eds-typography-header-lg-font-weight-bolder);--_tracking-tight:var(--eds-typography-header-lg-tracking-tight);--_tracking-normal:var(--eds-typography-header-lg-tracking-normal);--_tracking-wide:var(--eds-typography-header-lg-tracking-wide)}&.text-xl,&[data-text-size=xl]{--_font-size-xl:var(--eds-typography-header-xl-font-size);--_line-height-default:var(--eds-typography-header-xl-lineheight-default);--_line-height-squished:var(
|
|
60
|
-
--eds-typography-header-xl-lineheight-squished
|
|
61
|
-
);--_font-weight-lighter:var(--eds-typography-header-xl-font-weight-lighter);--_font-weight-normal:var(--eds-typography-header-xl-font-weight-normal);--_font-weight-bolder:var(--eds-typography-header-xl-font-weight-bolder);--_tracking-tight:var(--eds-typography-header-xl-tracking-tight);--_tracking-normal:var(--eds-typography-header-xl-tracking-normal);--_tracking-wide:var(--eds-typography-header-xl-tracking-wide)}&.text-2xl,&[data-text-size="2xl"]{--_font-size-2xl:var(--eds-typography-header-2xl-font-size);--_line-height-default:var(--eds-typography-header-2xl-lineheight-default);--_line-height-squished:var(
|
|
62
|
-
--eds-typography-header-2xl-lineheight-squished
|
|
63
|
-
);--_font-weight-lighter:var(
|
|
64
|
-
--eds-typography-header-2xl-font-weight-lighter
|
|
65
|
-
);--_font-weight-normal:var(--eds-typography-header-2xl-font-weight-normal);--_font-weight-bolder:var(--eds-typography-header-2xl-font-weight-bolder);--_tracking-tight:var(--eds-typography-header-2xl-tracking-tight);--_tracking-normal:var(--eds-typography-header-2xl-tracking-normal);--_tracking-wide:var(--eds-typography-header-2xl-tracking-wide)}&.text-3xl,&[data-text-size="3xl"]{--_font-size-3xl:var(--eds-typography-header-3xl-font-size);--_line-height-default:var(--eds-typography-header-3xl-lineheight-default);--_line-height-squished:var(
|
|
66
|
-
--eds-typography-header-3xl-lineheight-squished
|
|
67
|
-
);--_font-weight-lighter:var(
|
|
68
|
-
--eds-typography-header-3xl-font-weight-lighter
|
|
69
|
-
);--_font-weight-normal:var(--eds-typography-header-3xl-font-weight-normal);--_font-weight-bolder:var(--eds-typography-header-3xl-font-weight-bolder);--_tracking-tight:var(--eds-typography-header-3xl-tracking-tight);--_tracking-normal:var(--eds-typography-header-3xl-tracking-normal);--_tracking-wide:var(--eds-typography-header-3xl-tracking-wide)}&.text-4xl,&[data-text-size="4xl"]{--_font-size-4xl:var(--eds-typography-header-4xl-font-size);--_line-height-default:var(--eds-typography-header-4xl-lineheight-default);--_line-height-squished:var(
|
|
70
|
-
--eds-typography-header-4xl-lineheight-squished
|
|
71
|
-
);--_font-weight-lighter:var(
|
|
72
|
-
--eds-typography-header-4xl-font-weight-lighter
|
|
73
|
-
);--_font-weight-normal:var(--eds-typography-header-4xl-font-weight-normal);--_font-weight-bolder:var(--eds-typography-header-4xl-font-weight-bolder);--_tracking-tight:var(--eds-typography-header-4xl-tracking-tight);--_tracking-normal:var(--eds-typography-header-4xl-tracking-normal);--_tracking-wide:var(--eds-typography-header-4xl-tracking-wide)}&.text-5xl,&[data-text-size="5xl"]{--_font-size-5xl:var(--eds-typography-header-5xl-font-size);--_line-height-default:var(--eds-typography-header-5xl-lineheight-default);--_line-height-squished:var(
|
|
74
|
-
--eds-typography-header-5xl-lineheight-squished
|
|
75
|
-
);--_font-weight-lighter:var(
|
|
76
|
-
--eds-typography-header-5xl-font-weight-lighter
|
|
77
|
-
);--_font-weight-normal:var(--eds-typography-header-5xl-font-weight-normal);--_font-weight-bolder:var(--eds-typography-header-5xl-font-weight-bolder);--_tracking-tight:var(--eds-typography-header-5xl-tracking-tight);--_tracking-normal:var(--eds-typography-header-5xl-tracking-normal);--_tracking-wide:var(--eds-typography-header-5xl-tracking-wide)}&.text-6xl,&[data-text-size="6xl"]{--_font-size-6xl:var(--eds-typography-header-6xl-font-size);--_line-height-default:var(--eds-typography-header-6xl-lineheight-default);--_line-height-squished:var(
|
|
78
|
-
--eds-typography-header-6xl-lineheight-squished
|
|
79
|
-
);--_font-weight-lighter:var(
|
|
80
|
-
--eds-typography-header-6xl-font-weight-lighter
|
|
81
|
-
);--_font-weight-normal:var(--eds-typography-header-6xl-font-weight-normal);--_font-weight-bolder:var(--eds-typography-header-6xl-font-weight-bolder);--_tracking-tight:var(--eds-typography-header-6xl-tracking-tight);--_tracking-normal:var(--eds-typography-header-6xl-tracking-normal);--_tracking-wide:var(--eds-typography-header-6xl-tracking-wide)}}@supports (text-box:trim-both cap alphabetic){.text-baseline-grid,[data-baseline=grid]{text-box:trim-both ex alphabetic;padding-bottom:0;padding-top:calc(round(1cap, 4px) - 1ex)}.text-baseline-center,[data-baseline=center]{text-box:trim-both ex alphabetic;padding-bottom:calc((round(1cap, 4px) - 1ex)/2 - 1cap/2 + .5ex);padding-top:calc((round(1cap, 4px) - 1ex)/2 + 1cap/2 - .5ex)}}.text-icon{font-size:calc(24px * tan(atan2(var(--font-size), 1px)) / 16);height:auto;margin-block:-.5em;margin-inline:-.2em;width:calc(24px * tan(atan2(var(--font-size), 1px)) / 16)}
|
package/dist/style.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Playwright configuration for visual regression testing of Typography components
|
|
3
|
-
* Tests run against Storybook stories to ensure visual consistency
|
|
4
|
-
*/
|
|
5
|
-
declare const _default: import("@playwright/test").PlaywrightTestConfig<{}, {}>;
|
|
6
|
-
export default _default;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ReactNode, InputHTMLAttributes, TextareaHTMLAttributes, ForwardedRef } from 'react';
|
|
2
|
-
import type { Variants } from '../types';
|
|
3
|
-
type SharedTextFieldProps = {
|
|
4
|
-
/** Variants */
|
|
5
|
-
variant?: Variants;
|
|
6
|
-
/** Input unique id. If this is not provided, one will be generated */
|
|
7
|
-
id?: string;
|
|
8
|
-
/** Label text */
|
|
9
|
-
label?: ReactNode;
|
|
10
|
-
/** Meta text */
|
|
11
|
-
meta?: ReactNode;
|
|
12
|
-
/** Unit text */
|
|
13
|
-
unit?: string;
|
|
14
|
-
/** Helper text */
|
|
15
|
-
helperText?: string;
|
|
16
|
-
/** InputIcon */
|
|
17
|
-
inputIcon?: ReactNode;
|
|
18
|
-
/** HelperIcon */
|
|
19
|
-
helperIcon?: ReactNode;
|
|
20
|
-
/** Maximum number of rows if `multiline` is set to `true` */
|
|
21
|
-
rowsMax?: number;
|
|
22
|
-
/** Input ref */
|
|
23
|
-
inputRef?: ForwardedRef<HTMLInputElement>;
|
|
24
|
-
/** Textarea ref when multiline is set to `true` */
|
|
25
|
-
textareaRef?: ForwardedRef<HTMLTextAreaElement>;
|
|
26
|
-
/** If `true` a `textarea` is rendered for multiline support. Make sure to use `textareaRef` if you need to access reference element */
|
|
27
|
-
multiline?: boolean;
|
|
28
|
-
};
|
|
29
|
-
export type TextFieldProps = SharedTextFieldProps & (TextareaHTMLAttributes<HTMLTextAreaElement> | InputHTMLAttributes<HTMLInputElement>);
|
|
30
|
-
export declare const TextField: import("react").ForwardRefExoticComponent<TextFieldProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
31
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { TextareaHTMLAttributes } from 'react';
|
|
2
|
-
import type { Variants } from '../types';
|
|
3
|
-
export type TextareaProps = {
|
|
4
|
-
/** Placeholder */
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
/** Variant */
|
|
7
|
-
variant?: Variants;
|
|
8
|
-
/** Disabled state */
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
/** Type */
|
|
11
|
-
type?: string;
|
|
12
|
-
/** Read Only */
|
|
13
|
-
readOnly?: boolean;
|
|
14
|
-
/** Specifies max rows for multiline */
|
|
15
|
-
rowsMax?: number;
|
|
16
|
-
} & TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
17
|
-
export declare const Textarea: import("react").ForwardRefExoticComponent<{
|
|
18
|
-
/** Placeholder */
|
|
19
|
-
placeholder?: string;
|
|
20
|
-
/** Variant */
|
|
21
|
-
variant?: Variants;
|
|
22
|
-
/** Disabled state */
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
/** Type */
|
|
25
|
-
type?: string;
|
|
26
|
-
/** Read Only */
|
|
27
|
-
readOnly?: boolean;
|
|
28
|
-
/** Specifies max rows for multiline */
|
|
29
|
-
rowsMax?: number;
|
|
30
|
-
} & TextareaHTMLAttributes<HTMLTextAreaElement> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/{src/components → components}/Button/ButtonGroup/ButtonGroup.tokens.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|