@nulogy/components 15.3.0 → 15.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/dist/main.js +35923 -37462
  2. package/dist/main.js.map +1 -0
  3. package/dist/main.module.js +37296 -38704
  4. package/dist/main.module.js.map +1 -0
  5. package/dist/src/Alert/Alert.js +1 -1
  6. package/dist/src/AppTag/AppTag.js +1 -1
  7. package/dist/src/AppTag/components/LogoWrapper.js +1 -1
  8. package/dist/src/BottomSheet/BottomSheet.styled.js +1 -1
  9. package/dist/src/Box/Box.js +1 -1
  10. package/dist/src/Box/Box.story.js +1 -1
  11. package/dist/src/BrandedNavBar/DesktopMenu.js +1 -1
  12. package/dist/src/BrandedNavBar/MenuTriggerButton.js +1 -1
  13. package/dist/src/BrandedNavBar/MobileMenu.js +1 -1
  14. package/dist/src/BrandedNavBar/NavBar.js +1 -1
  15. package/dist/src/BrandedNavBar/NavBar.story.js +1 -1
  16. package/dist/src/BrandedNavBar/NavBarBackground.js +1 -1
  17. package/dist/src/BrandedNavBar/SmallNavBar.js +1 -1
  18. package/dist/src/BrandedNavBar/SmallNavBar.story.js +1 -1
  19. package/dist/src/BrandedNavBar/SubMenuTrigger.js +1 -1
  20. package/dist/src/BrandedNavBar/SubMenuTriggerButton.js +1 -1
  21. package/dist/src/BrandedNavBar/renderSubMenuItems.js +1 -1
  22. package/dist/src/Branding/Branding.js +1 -1
  23. package/dist/src/Branding/BrandingText.js +1 -1
  24. package/dist/src/Breadcrumbs/BreadcrumbsList.js +1 -1
  25. package/dist/src/Breadcrumbs/BreadcrumbsListItem.js +1 -1
  26. package/dist/src/Button/Button.js +1 -1
  27. package/dist/src/Button/CloseButton.js +1 -1
  28. package/dist/src/Button/ControlIcon.js +1 -1
  29. package/dist/src/Button/DangerButton.js +1 -1
  30. package/dist/src/Button/IconicButton.js +1 -1
  31. package/dist/src/Button/PrimaryButton.js +1 -1
  32. package/dist/src/Button/QuietButton.js +1 -1
  33. package/dist/src/ButtonGroup/ButtonGroup.js +1 -1
  34. package/dist/src/Card/CardSet.js +1 -1
  35. package/dist/src/Checkbox/Checkbox.js +1 -1
  36. package/dist/src/Checkbox/CheckboxGroup.js +1 -1
  37. package/dist/src/DateRange/EndTime.js +1 -1
  38. package/dist/src/DateRange/StartTime.js +1 -1
  39. package/dist/src/Decorations/index.js +1 -1
  40. package/dist/src/DescriptionList/DescriptionList.parts.js +1 -1
  41. package/dist/src/DescriptionList/stories/fixtures.js +1 -1
  42. package/dist/src/Divider/Divider.js +1 -1
  43. package/dist/src/DropdownMenu/DropdownButton.js +1 -1
  44. package/dist/src/DropdownMenu/DropdownItem.js +1 -1
  45. package/dist/src/DropdownMenu/DropdownLink.js +1 -1
  46. package/dist/src/DropdownMenu/DropdownMenuContainer.js +1 -1
  47. package/dist/src/DropdownMenu/DropdownText.js +1 -1
  48. package/dist/src/FieldLabel/HelpText.js +1 -1
  49. package/dist/src/FieldLabel/Label.js +1 -1
  50. package/dist/src/FieldLabel/LabelText.js +1 -1
  51. package/dist/src/Flex/Flex.js +1 -1
  52. package/dist/src/Flex/Flex.story.js +1 -1
  53. package/dist/src/Form/Field.js +1 -1
  54. package/dist/src/Form/Fieldset.js +1 -1
  55. package/dist/src/Form/Form.js +1 -1
  56. package/dist/src/Form/FormSection.js +1 -1
  57. package/dist/src/Icon/Icon.js +1 -1
  58. package/dist/src/Input/InputField.js +1 -1
  59. package/dist/src/Link/Link.js +1 -1
  60. package/dist/src/List/List.js +1 -1
  61. package/dist/src/List/ListItem.js +1 -1
  62. package/dist/src/MiniTooltip/index.js +1 -1
  63. package/dist/src/Modal/Modal.js +1 -1
  64. package/dist/src/Modal/ModalCloseButton.js +1 -1
  65. package/dist/src/Modal/ModalContent.js +1 -1
  66. package/dist/src/Modal/ModalFooter.js +1 -1
  67. package/dist/src/Modal/ModalHeader.js +1 -1
  68. package/dist/src/NDSProvider/GlobalStyles.js +1 -1
  69. package/dist/src/NavBarSearch/NavBarSearch.js +1 -1
  70. package/dist/src/Navigation/components/AppSwitcher/parts/index.js +1 -1
  71. package/dist/src/Navigation/components/DesktopNav/parts/MoreMenuItem.js +1 -1
  72. package/dist/src/Navigation/components/MenuSubItem/parts/styled.js +1 -1
  73. package/dist/src/Navigation/components/MobileNav/parts/styled.js +1 -1
  74. package/dist/src/Navigation/components/UserMenu/UserMenu.js +1 -1
  75. package/dist/src/Navigation/components/UserMenu/parts/Header.js +1 -1
  76. package/dist/src/Navigation/components/UserMenu/parts/styled.js +1 -1
  77. package/dist/src/Navigation/components/shared/NavigationLogo.js +1 -1
  78. package/dist/src/Navigation/components/shared/NavigationLogoLink.js +1 -1
  79. package/dist/src/Navigation/components/shared/NavigationMenuContent.js +1 -1
  80. package/dist/src/Navigation/components/shared/NavigationMenuItem.js +1 -1
  81. package/dist/src/Navigation/components/shared/components.js +1 -1
  82. package/dist/src/Overlay/Overlay.js +1 -1
  83. package/dist/src/Pagination/PageNumber.js +1 -1
  84. package/dist/src/Pagination/PaginationButton.js +1 -1
  85. package/dist/src/Primitives/index.js +1 -1
  86. package/dist/src/Radio/Radio.js +1 -1
  87. package/dist/src/Select/Select.story.fixture.js +1 -1
  88. package/dist/src/Select/SelectOption.js +1 -1
  89. package/dist/src/StatusIndicator/StatusIndicator.js +1 -1
  90. package/dist/src/Summary/Summary.js +1 -1
  91. package/dist/src/Summary/SummaryDivider.js +1 -1
  92. package/dist/src/Summary/SummaryItem.js +1 -1
  93. package/dist/src/Switcher/Switch.js +1 -1
  94. package/dist/src/Table/BaseTable.js +1 -1
  95. package/dist/src/Table/StyledTh.js +1 -1
  96. package/dist/src/Table/TableBody.js +1 -1
  97. package/dist/src/Table/TableCell.js +1 -1
  98. package/dist/src/Table/TableFoot.js +1 -1
  99. package/dist/src/Table/TableHead.js +1 -1
  100. package/dist/src/Tabs/Tab.js +1 -1
  101. package/dist/src/Tabs/TabContainer.js +1 -1
  102. package/dist/src/Tabs/TabScrollIndicator.js +1 -1
  103. package/dist/src/Tabs/TabScrollIndicators.js +1 -1
  104. package/dist/src/Textarea/StyledTextarea.js +1 -1
  105. package/dist/src/TimePicker/TimePickerDropdown.js +1 -1
  106. package/dist/src/TimePicker/TimePickerInput.js +1 -1
  107. package/dist/src/TimePicker/TimePickerOption.js +1 -1
  108. package/dist/src/Toggle/ToggleButton.js +1 -1
  109. package/dist/src/Tooltip/TooltipContainer.js +1 -1
  110. package/dist/src/Tooltip/components/TooltipComponents.js +1 -1
  111. package/dist/src/TopBar/TopBar.styled.js +1 -1
  112. package/dist/src/Type/Headings.js +1 -1
  113. package/dist/src/Type/Text.js +1 -1
  114. package/dist/src/Validation/InlineValidation.js +1 -1
  115. package/dist/src/VerticalDivider/VerticalDivider.js +1 -1
  116. package/dist/src/utils/ClickInputLabel.js +1 -1
  117. package/dist/src/utils/PopperArrow.js +1 -1
  118. package/dist/src/utils/ScrollIndicators.js +1 -1
  119. package/dist/src/utils/story/code.js +1 -1
  120. package/dist/src/utils/story/dashed.js +1 -1
  121. package/dist/src/utils/story/placeholder.js +1 -1
  122. package/dist/src/utils/story/resizable.js +1 -1
  123. package/dist/vite.config.js +71 -0
  124. package/package.json +19 -32
  125. package/dist/vitest.config.js +0 -11
  126. /package/dist/{vitest.config.d.ts → vite.config.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  import { transparentize } from "polished";
3
3
  import { Flex } from "../Flex";
4
4
  const Overlay = styled(Flex)(({ dark = false, theme }) => ({
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  import PaginationButton from "./PaginationButton";
3
3
  const PageNumber = styled(PaginationButton)(({ theme, currentPage }) => ({
4
4
  background: currentPage ? theme.colors.darkBlue : "transparent",
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  const getHoverBackground = (currentPage, disabled, theme) => {
3
3
  if (currentPage) {
4
4
  return theme.colors.darkBlue;
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  import { addStyledProps } from "../StyledProps";
3
3
  const Ul = styled.ul(addStyledProps);
4
4
  const Li = styled.li(addStyledProps);
@@ -1,5 +1,5 @@
1
1
  import React, { forwardRef } from "react";
2
- import styled from "styled-components";
2
+ import { styled } from "styled-components";
3
3
  import propTypes from "@styled-system/prop-types";
4
4
  import { Box } from "../Box";
5
5
  import { Text } from "../Type";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import styled from "styled-components";
2
+ import { styled } from "styled-components";
3
3
  import { SelectOption } from "./SelectOption";
4
4
  export const errorList = ["Error message 1", "Error message 2"];
5
5
  export const options = [
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import styled from "styled-components";
2
+ import { styled } from "styled-components";
3
3
  import { components } from "react-select";
4
4
  import { typography } from "styled-system";
5
5
  import { subPx } from "../utils";
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  import { space, typography, flexbox } from "styled-system";
3
3
  export const StatusIndicatorValues = {
4
4
  neutral: "neutral",
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import styled, { useTheme } from "styled-components";
2
+ import { styled, useTheme } from "styled-components";
3
3
  import numberFromDimension from "../utils/numberFromDimension";
4
4
  import { Box } from "../Box";
5
5
  import { SummaryContextProvider } from "./SummaryContext";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import styled from "styled-components";
2
+ import { styled } from "styled-components";
3
3
  import { Box } from "../Box";
4
4
  import numberFromDimension from "../utils/numberFromDimension";
5
5
  import { useSummaryContext } from "./SummaryContext";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import styled from "styled-components";
2
+ import { styled } from "styled-components";
3
3
  import { Flex } from "../Flex";
4
4
  import { Text } from "../Type";
5
5
  import useMediaQuery from "../hooks/useMediaQuery";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import styled from "styled-components";
2
+ import { styled } from "styled-components";
3
3
  import { variant } from "styled-system";
4
4
  import numberFromDimension from "../utils/numberFromDimension";
5
5
  const Switch = React.forwardRef(({ children, ...rest }, ref) => {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import styled from "styled-components";
2
+ import { styled } from "styled-components";
3
3
  import { space } from "styled-system";
4
4
  import TableHead from "./TableHead";
5
5
  import TableBody from "./TableBody";
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  const stickyStyles = (theme) => ({
3
3
  position: "sticky",
4
4
  top: 0,
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import styled from "styled-components";
2
+ import { styled } from "styled-components";
3
3
  import { Box } from "../Box";
4
4
  import TableCell from "./TableCell";
5
5
  const StyledMessageContainer = styled(Box)(({ theme }) => ({
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import styled from "styled-components";
2
+ import { styled } from "styled-components";
3
3
  const StyledTableCell = styled.td(({ align, compact, verticalAlign, theme }) => {
4
4
  const padding = compact ? theme.space.x1 : theme.space.x2;
5
5
  return {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import styled from "styled-components";
2
+ import { styled } from "styled-components";
3
3
  import TableCell from "./TableCell";
4
4
  import StyledTh from "./StyledTh";
5
5
  const StyledFooterRow = styled.tr(({ theme }) => ({
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import styled from "styled-components";
2
+ import { styled } from "styled-components";
3
3
  import StyledTh from "./StyledTh";
4
4
  const StyledHeaderRow = styled.tr(({ theme }) => ({
5
5
  color: theme.colors.darkGrey,
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import styled from "styled-components";
2
+ import { styled } from "styled-components";
3
3
  import { variant } from "styled-system";
4
4
  const barStyles = (theme) => ({
5
5
  expanded: {
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  import { Box } from "../Box";
3
3
  const TabContainer = styled(Box)(({ theme }) => ({
4
4
  display: "flex",
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  import React from "react";
3
3
  import { useTranslation } from "react-i18next";
4
4
  import { Icon } from "../Icon";
@@ -1,5 +1,5 @@
1
1
  // @ts-nocheck
2
- import styled from "styled-components";
2
+ import { styled } from "styled-components";
3
3
  import React from "react";
4
4
  import TabScrollIndicator from "./TabScrollIndicator";
5
5
  const TabScrollIndicatorContainer = styled.div(({ width, theme }) => ({
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  import { transparentize } from "polished";
3
3
  import { variant } from "styled-system";
4
4
  import { space } from "styled-system";
@@ -1,5 +1,5 @@
1
1
  // @ts-nocheck
2
- import styled from "styled-components";
2
+ import { styled } from "styled-components";
3
3
  const TimePickerDropdown = styled.ul(({ theme, isOpen }) => {
4
4
  return {
5
5
  position: "absolute",
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  import { InputField } from "../Input/InputField";
3
3
  const TimePickerInput = styled(InputField)(({ dropdownIsOpen }) => ({
4
4
  ...(dropdownIsOpen && {
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  import { variant } from "styled-system";
3
3
  const TimePickerOption = styled.li(({ theme, isSelected }) => ({
4
4
  marginBottom: "0px",
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { motion } from "framer-motion";
3
- import styled, { useTheme } from "styled-components";
3
+ import { styled, useTheme } from "styled-components";
4
4
  import { AnimatedBox } from "../Box";
5
5
  import { useComponentVariant } from "../NDSProvider/ComponentVariantContext";
6
6
  const getSwitchBackground = (checked) => (checked ? "darkBlue" : "darkGrey");
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  import { Box } from "../Box";
3
3
  const tooltipStyles = (theme) => ({
4
4
  backgroundColor: theme.colors.white,
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
3
- import styled, { keyframes, useTheme } from "styled-components";
3
+ import { styled, keyframes, useTheme } from "styled-components";
4
4
  import { maxWidth } from "styled-system";
5
5
  // A helper hook to determine if the device supports hover
6
6
  function useHasHover() {
@@ -1,7 +1,7 @@
1
1
  import { DialogOverlay } from "@reach/dialog";
2
2
  import { motion } from "framer-motion";
3
3
  import { transparentize } from "polished";
4
- import styled from "styled-components";
4
+ import { styled } from "styled-components";
5
5
  import { addStyledProps } from "../StyledProps";
6
6
  import { TOPBAR } from "./constants";
7
7
  const MenuItemList = styled.ul(({ theme }) => ({
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  import { addStyledProps, variant } from "../StyledProps";
3
3
  import Text from "./Text";
4
4
  export const Heading1 = styled(Text).attrs(() => ({
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  import { addStyledProps } from "../StyledProps";
3
3
  const Text = styled.p(({ disabled = false, textTransform, inline = false, theme }) => ({
4
4
  textTransform,
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import styled from "styled-components";
2
+ import { styled } from "styled-components";
3
3
  import { Text } from "../Type";
4
4
  import { Icon } from "../Icon";
5
5
  import { Flex } from "../Flex";
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  import { addStyledProps } from "../StyledProps";
3
3
  const VerticalDivider = styled.div(({ theme, color, secondary }) => ({
4
4
  display: "inline",
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  const ClickInputLabel = styled.label(({ disabled, theme }) => ({
3
3
  cursor: disabled ? undefined : "pointer",
4
4
  display: "inline-flex",
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  const getThemeColor = (color, theme) => (theme.colors[color] ? theme.colors[color] : color);
3
3
  const positionArrow = (placement, theme) => {
4
4
  const location = String(placement).split("-")[0];
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import styled from "styled-components";
2
+ import { styled } from "styled-components";
3
3
  import { position } from "styled-system";
4
4
  import { Icon } from "../Icon";
5
5
  const ScrollIndicatorWrapper = styled.div(({ theme }) => ({
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  import { transparentize } from "polished";
3
3
  /**
4
4
  * A styled component for displaying code in a storybook.
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import { styled } from "styled-components";
2
2
  /**
3
3
  * A styled utility that adds a dashed border around a component
4
4
  * to highlight its boundaries. To be used in Storybook exclusively.
@@ -1,6 +1,6 @@
1
1
  import { transparentize } from "polished";
2
2
  import React from "react";
3
- import styled from "styled-components";
3
+ import { styled } from "styled-components";
4
4
  import { addStyledProps } from "../../StyledProps";
5
5
  const Contianer = styled.div(({ theme }) => ({
6
6
  overflow: "hidden",
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from "react";
2
2
  import { AnimatePresence, motion } from "framer-motion";
3
3
  import { Resizable as ReResizable } from "re-resizable";
4
- import styled from "styled-components";
4
+ import { styled } from "styled-components";
5
5
  import { Box } from "../../Box";
6
6
  import { DashedBox } from "../../DescriptionList/stories/fixtures";
7
7
  import { Text } from "../../Type";
@@ -0,0 +1,71 @@
1
+ import { resolve } from "node:path";
2
+ import { defineConfig } from "vitest/config";
3
+ import react from "@vitejs/plugin-react";
4
+ const PEER_DEPENDENCIES = {
5
+ react: "React",
6
+ "styled-components": "styled",
7
+ "@nulogy/icons": "icons",
8
+ };
9
+ const GLOBALS = {
10
+ ...PEER_DEPENDENCIES,
11
+ "deep-equal": "deepEqual",
12
+ "create-react-context": "createReactContext",
13
+ warning: "warning",
14
+ exenv: "exenv",
15
+ classnames: "t",
16
+ "html-parse-stringify2": "HTML",
17
+ "react-fast-compare": "isEqual",
18
+ "path-to-regexp": "pathToRegexp",
19
+ "react-is": "reactIs",
20
+ "react-dom": "reactDom",
21
+ };
22
+ const externals = Object.keys(GLOBALS);
23
+ // External function - all peer dependencies are externalized
24
+ // Also externalize react/jsx-runtime in case any dependencies use automatic JSX
25
+ const external = (id) => {
26
+ // Externalize react/jsx-runtime and react/jsx-dev-runtime
27
+ // This ensures that if any dependencies use automatic JSX, they'll use the consumer's React
28
+ if (id === "react/jsx-runtime" || id === "react/jsx-dev-runtime") {
29
+ return true;
30
+ }
31
+ return externals.includes(id);
32
+ };
33
+ export default defineConfig({
34
+ plugins: [react()],
35
+ define: {
36
+ ENV: JSON.stringify(process.env.NODE_ENV || "development"),
37
+ },
38
+ resolve: {
39
+ extensions: [".js", ".jsx", ".ts", ".tsx", ".mjs"],
40
+ },
41
+ build: {
42
+ emptyOutDir: false,
43
+ lib: {
44
+ entry: resolve(__dirname, "src/index.ts"),
45
+ name: "NDSComponents",
46
+ formats: ["umd", "es"],
47
+ fileName: (format) => {
48
+ if (format === "umd") {
49
+ return "main.js";
50
+ }
51
+ return "main.module.js";
52
+ },
53
+ },
54
+ rollupOptions: {
55
+ external,
56
+ output: {
57
+ globals: GLOBALS,
58
+ },
59
+ },
60
+ sourcemap: true,
61
+ minify: false,
62
+ target: "es2020",
63
+ },
64
+ test: {
65
+ environment: "jsdom",
66
+ globals: false,
67
+ include: ["**/*.spec.tsx", "**/*.spec.ts"],
68
+ exclude: ["**/node_modules/**", "**/cypress/**", "**/dist/**"],
69
+ setupFiles: [resolve(__dirname, "spec/support/vitestAutoCleanup.ts")],
70
+ },
71
+ });
package/package.json CHANGED
@@ -1,21 +1,23 @@
1
1
  {
2
2
  "name": "@nulogy/components",
3
- "version": "15.3.0",
3
+ "version": "15.4.1",
4
+ "type": "module",
4
5
  "description": "Component library for the Nulogy Design System - http://nulogy.design",
5
6
  "private": false,
6
7
  "publishConfig": {
7
8
  "access": "public"
8
9
  },
9
10
  "scripts": {
10
- "ci": "pnpm && pnpm build && pnpm test && pnpm run check",
11
+ "ci": "pnpm && pnpm build && pnpm build:verify && pnpm test && pnpm run check",
11
12
  "start-server": "pnpm build:storybook && pnpm http-server -p 9999 ./storybook-static",
12
13
  "start": "concurrently \"pnpm build:watch\" \"pnpm start:storybook\"",
13
14
  "start:cypress": "start-server-and-test start 9999 'cypress open'",
14
15
  "start:storybook": "storybook dev -p 9999",
15
16
  "clean:storybook": "rm -rf node_modules/.cache/storybook && rm -rf ./storybook-static",
16
- "build": "rollup -c",
17
- "build:watch": "rollup -c --watch",
18
- "build:storybook": "storybook build --webpack-stats-json",
17
+ "build": "rm -rf dist && tsc -p tsconfig.build.json && vite build",
18
+ "build:verify": "node scripts/verify-build.js",
19
+ "build:watch": "vite build --watch",
20
+ "build:storybook": "storybook build --stats-json",
19
21
  "warn:prepush": "echo \"Make sure you also run all the other CI steps before pushing by running 'pnpm ci'\"",
20
22
  "check": "pnpm warn:prepush && pnpm check:types && pnpm check:lint && pnpm check:format",
21
23
  "check:types": "tsc && cd cypress && tsc --noEmit",
@@ -49,6 +51,13 @@
49
51
  "main": "dist/main.js",
50
52
  "module": "dist/main.module.js",
51
53
  "typings": "dist/src/index.d.ts",
54
+ "exports": {
55
+ ".": {
56
+ "types": "./dist/src/index.d.ts",
57
+ "import": "./dist/main.module.js",
58
+ "require": "./dist/main.js"
59
+ }
60
+ },
52
61
  "files": [
53
62
  "/dist"
54
63
  ],
@@ -61,17 +70,8 @@
61
70
  },
62
71
  "devDependencies": {
63
72
  "@apollo/client": "^3.11.8",
64
- "@babel/cli": "^7.28.3",
65
- "@babel/core": "^7.28.5",
66
- "@babel/plugin-transform-runtime": "^7.28.5",
67
- "@babel/preset-env": "^7.28.5",
68
- "@babel/preset-react": "^7.28.5",
69
- "@babel/preset-typescript": "^7.28.5",
70
- "@chromatic-com/storybook": "^3",
71
73
  "@nulogy/eslint-config-nulogy": "^1.0.0",
72
74
  "@nulogy/icons": "^4.37.2",
73
- "@rollup/plugin-babel": "^5.0.0",
74
- "@rollup/plugin-node-resolve": "^7.1.3",
75
75
  "@semantic-release/changelog": "^6.0.2",
76
76
  "@semantic-release/commit-analyzer": "^9.0.2",
77
77
  "@semantic-release/git": "^10.0.1",
@@ -84,10 +84,9 @@
84
84
  "@storybook/addon-storysource": "8.6.14",
85
85
  "@storybook/addon-toolbars": "8.6.14",
86
86
  "@storybook/addon-viewport": "8.6.14",
87
- "@storybook/addon-webpack5-compiler-babel": "^4.0.0",
88
87
  "@storybook/codemod": "8.6.14",
89
88
  "@storybook/react": "8.6.14",
90
- "@storybook/react-webpack5": "8.6.14",
89
+ "@storybook/react-vite": "8.6.14",
91
90
  "@storybook/theming": "8.6.14",
92
91
  "@testing-library/react": "^12.1.5",
93
92
  "@types/css-mediaquery": "^0.1.4",
@@ -95,15 +94,10 @@
95
94
  "@types/node": "^24.0.0",
96
95
  "@types/react": "^17.0.39",
97
96
  "@types/react-dom": "^17.0.20",
98
- "@types/react-router-dom": "^5.3.3",
97
+ "@types/react-router-dom": "5.3.0",
99
98
  "@typescript-eslint/eslint-plugin": "^4.0.0",
100
99
  "@typescript-eslint/parser": "^5.30.5",
101
- "babel-eslint": "^10.0.3",
102
- "babel-loader": "8.0.6",
103
- "babel-plugin-inline-json-import": "^0.3.2",
104
- "babel-plugin-require-context-hook": "1.0.0",
105
- "babel-plugin-styled-components": "^2.1.4",
106
- "babel-preset-react": "6.24.1",
100
+ "@vitejs/plugin-react": "^4.7.0",
107
101
  "chromatic": "^13.3.3",
108
102
  "concurrently": "^9.2.0",
109
103
  "css-mediaquery": "^0.1.2",
@@ -124,22 +118,16 @@
124
118
  "react-color": "^2.18.1",
125
119
  "react-dom": "17.0.2",
126
120
  "react-router-dom": "^5.3.3",
127
- "rollup": "^2.7.3",
128
- "rollup-plugin-babel": "^4.4.0",
129
- "rollup-plugin-commonjs": "^10.1.0",
130
- "rollup-plugin-replace": "^2.2.0",
131
- "rollup-plugin-typescript2": "^0.36.0",
132
121
  "semantic-release": "^24.2.5",
133
122
  "start-server-and-test": "^2.0.12",
134
123
  "storybook": "8.6.14",
135
124
  "styled-components": "^6.1.19",
136
125
  "svg-sprite-loader": "^6.0.11",
137
126
  "typescript": "^5.9.3",
138
- "typescript-eslint": "^0.0.1-alpha.0",
139
- "vitest": "^4.0.15"
127
+ "vite": "^6.0.0",
128
+ "vitest": "^3.0.0"
140
129
  },
141
130
  "dependencies": {
142
- "@babel/runtime": "^7.9.6",
143
131
  "@emotion/is-prop-valid": "^1.3.1",
144
132
  "@nulogy/tokens": "^6.1.1",
145
133
  "@radix-ui/react-navigation-menu": "^1.1.4",
@@ -149,7 +137,6 @@
149
137
  "@styled-system/theme-get": "^5.1.2",
150
138
  "@types/react-window": "^1.8.8",
151
139
  "@types/styled-system": "5.1.25",
152
- "core-js": "3",
153
140
  "date-fns": "2.23.0",
154
141
  "debounce": "^1.2.0",
155
142
  "deep-equal": "^2.2.1",
@@ -1,11 +0,0 @@
1
- import { resolve } from "path";
2
- import { defineConfig } from "vitest/config";
3
- export default defineConfig({
4
- test: {
5
- environment: "jsdom",
6
- globals: false,
7
- include: ["**/*.spec.tsx", "**/*.spec.ts"],
8
- exclude: ["**/node_modules/**", "**/cypress/**", "**/dist/**"],
9
- setupFiles: [resolve(__dirname, "spec/support/vitestAutoCleanup.ts")],
10
- },
11
- });
File without changes