@nulogy/components 15.4.0 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +1016 -1905
- package/dist/main.js.map +1 -1
- package/dist/main.module.js +804 -1692
- package/dist/main.module.js.map +1 -1
- package/dist/src/Alert/Alert.js +1 -1
- package/dist/src/AppTag/AppTag.js +1 -1
- package/dist/src/AppTag/components/LogoWrapper.js +1 -1
- package/dist/src/BottomSheet/BottomSheet.styled.js +2 -2
- package/dist/src/Box/Box.js +1 -1
- package/dist/src/Box/Box.story.js +1 -1
- package/dist/src/BrandedNavBar/DesktopMenu.js +1 -1
- package/dist/src/BrandedNavBar/MenuTrigger.js +1 -3
- package/dist/src/BrandedNavBar/MenuTriggerButton.js +1 -1
- package/dist/src/BrandedNavBar/MobileMenu.d.ts +1 -1
- package/dist/src/BrandedNavBar/MobileMenu.js +1 -3
- package/dist/src/BrandedNavBar/NavBar.js +1 -1
- package/dist/src/BrandedNavBar/NavBar.story.js +1 -1
- package/dist/src/BrandedNavBar/NavBarBackground.js +1 -1
- package/dist/src/BrandedNavBar/NavBarDropdownMenu.js +26 -23
- package/dist/src/BrandedNavBar/SmallNavBar.js +1 -3
- package/dist/src/BrandedNavBar/SmallNavBar.story.js +1 -1
- package/dist/src/BrandedNavBar/SubMenuTrigger.js +1 -1
- package/dist/src/BrandedNavBar/SubMenuTriggerButton.js +1 -1
- package/dist/src/BrandedNavBar/renderSubMenuItems.js +1 -1
- package/dist/src/Branding/Branding.js +1 -1
- package/dist/src/Branding/BrandingText.js +1 -1
- package/dist/src/Breadcrumbs/BreadcrumbsList.js +1 -1
- package/dist/src/Breadcrumbs/BreadcrumbsListItem.js +1 -1
- package/dist/src/Button/Button.js +1 -1
- package/dist/src/Button/CloseButton.js +1 -1
- package/dist/src/Button/ControlIcon.js +1 -1
- package/dist/src/Button/DangerButton.js +1 -1
- package/dist/src/Button/IconicButton.js +1 -1
- package/dist/src/Button/PrimaryButton.js +1 -1
- package/dist/src/Button/QuietButton.js +1 -1
- package/dist/src/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/src/Card/CardSet.js +1 -1
- package/dist/src/Checkbox/Checkbox.js +1 -1
- package/dist/src/Checkbox/CheckboxGroup.js +1 -1
- package/dist/src/DateRange/EndTime.js +1 -1
- package/dist/src/DateRange/StartTime.js +1 -1
- package/dist/src/Decorations/index.js +1 -1
- package/dist/src/DescriptionList/DescriptionList.parts.js +1 -1
- package/dist/src/DescriptionList/stories/fixtures.js +1 -1
- package/dist/src/Divider/Divider.js +1 -1
- package/dist/src/DropdownMenu/DropdownButton.js +1 -1
- package/dist/src/DropdownMenu/DropdownItem.js +1 -1
- package/dist/src/DropdownMenu/DropdownLink.js +1 -1
- package/dist/src/DropdownMenu/DropdownMenu.story.js +8 -4
- package/dist/src/DropdownMenu/DropdownMenuContainer.js +1 -1
- package/dist/src/DropdownMenu/DropdownText.js +1 -1
- package/dist/src/FieldLabel/HelpText.js +1 -1
- package/dist/src/FieldLabel/Label.js +1 -1
- package/dist/src/FieldLabel/LabelText.js +1 -1
- package/dist/src/Flex/Flex.js +1 -1
- package/dist/src/Flex/Flex.story.js +1 -1
- package/dist/src/Form/Field.js +1 -1
- package/dist/src/Form/Fieldset.js +1 -1
- package/dist/src/Form/Form.js +1 -1
- package/dist/src/Form/FormSection.js +1 -1
- package/dist/src/Icon/Icon.js +1 -1
- package/dist/src/Input/InputField.js +1 -1
- package/dist/src/Link/Link.js +1 -1
- package/dist/src/List/List.js +1 -1
- package/dist/src/List/ListItem.js +1 -1
- package/dist/src/MiniTooltip/index.js +1 -1
- package/dist/src/Modal/Modal.js +1 -1
- package/dist/src/Modal/ModalCloseButton.js +1 -1
- package/dist/src/Modal/ModalContent.js +1 -1
- package/dist/src/Modal/ModalFooter.js +1 -1
- package/dist/src/Modal/ModalHeader.js +1 -1
- package/dist/src/NDSProvider/GlobalStyles.js +1 -1
- package/dist/src/NavBarSearch/NavBarSearch.js +1 -1
- package/dist/src/Navigation/components/AppSwitcher/parts/index.js +1 -1
- package/dist/src/Navigation/components/DesktopNav/parts/MoreMenuItem.js +1 -1
- package/dist/src/Navigation/components/MenuSubItem/parts/styled.js +1 -1
- package/dist/src/Navigation/components/MobileNav/parts/styled.js +1 -1
- package/dist/src/Navigation/components/UserMenu/UserMenu.js +1 -1
- package/dist/src/Navigation/components/UserMenu/parts/Header.js +1 -1
- package/dist/src/Navigation/components/UserMenu/parts/styled.js +1 -1
- package/dist/src/Navigation/components/shared/NavigationLogo.js +1 -1
- package/dist/src/Navigation/components/shared/NavigationLogoLink.js +1 -1
- package/dist/src/Navigation/components/shared/NavigationMenuContent.js +1 -1
- package/dist/src/Navigation/components/shared/NavigationMenuItem.js +6 -2
- package/dist/src/Navigation/components/shared/components.js +1 -1
- package/dist/src/Overlay/Overlay.js +1 -1
- package/dist/src/Pagination/PageNumber.js +1 -1
- package/dist/src/Pagination/PaginationButton.js +1 -1
- package/dist/src/Popper/Popper.js +0 -1
- package/dist/src/Primitives/index.js +1 -1
- package/dist/src/Radio/Radio.js +1 -1
- package/dist/src/RangeContainer/RangeContainer.js +1 -3
- package/dist/src/Select/Select.story.fixture.js +1 -1
- package/dist/src/Select/SelectOption.js +1 -1
- package/dist/src/StatusIndicator/StatusIndicator.js +1 -1
- package/dist/src/Summary/Summary.js +1 -1
- package/dist/src/Summary/SummaryDivider.js +1 -1
- package/dist/src/Summary/SummaryItem.js +1 -1
- package/dist/src/Switcher/Switch.js +1 -1
- package/dist/src/Table/BaseTable.js +1 -1
- package/dist/src/Table/StyledTh.js +1 -1
- package/dist/src/Table/TableBody.js +1 -1
- package/dist/src/Table/TableCell.js +1 -1
- package/dist/src/Table/TableFoot.js +1 -1
- package/dist/src/Table/TableHead.js +1 -1
- package/dist/src/Tabs/Tab.js +1 -1
- package/dist/src/Tabs/TabContainer.js +1 -1
- package/dist/src/Tabs/TabScrollIndicator.js +1 -1
- package/dist/src/Tabs/TabScrollIndicators.js +1 -1
- package/dist/src/Tabs/Tabs.story.d.ts +0 -1
- package/dist/src/Tabs/Tabs.story.js +0 -5
- package/dist/src/Textarea/StyledTextarea.js +1 -1
- package/dist/src/TimePicker/TimePickerDropdown.js +1 -1
- package/dist/src/TimePicker/TimePickerInput.js +1 -1
- package/dist/src/TimePicker/TimePickerOption.js +1 -1
- package/dist/src/TimeRange/TimeRange.d.ts +7 -3
- package/dist/src/TimeRange/TimeRange.js +2 -2
- package/dist/src/Toast/Toast.js +1 -3
- package/dist/src/Toast/Toast.story.js +0 -2
- package/dist/src/Toggle/Toggle.js +0 -2
- package/dist/src/Toggle/ToggleButton.js +1 -1
- package/dist/src/Tooltip/TooltipContainer.js +1 -1
- package/dist/src/Tooltip/components/TooltipComponents.js +1 -1
- package/dist/src/TopBar/TopBar.styled.js +1 -1
- package/dist/src/Type/Headings.js +1 -1
- package/dist/src/Type/Text.js +1 -1
- package/dist/src/Validation/InlineValidation.js +1 -1
- package/dist/src/VerticalDivider/VerticalDivider.js +1 -1
- package/dist/src/i18n.js +0 -2
- package/dist/src/utils/ClickInputLabel.js +1 -1
- package/dist/src/utils/PopperArrow.js +4 -4
- package/dist/src/utils/ScrollIndicators.js +1 -1
- package/dist/src/utils/noop.js +1 -3
- package/dist/src/utils/story/code.js +1 -1
- package/dist/src/utils/story/dashed.js +1 -1
- package/dist/src/utils/story/placeholder.js +1 -1
- package/dist/src/utils/story/resizable.js +1 -1
- package/dist/src/utils/ts/FocusManager.d.ts +2 -2
- package/dist/src/utils/useScrollLock.js +0 -1
- package/dist/vite.config.js +11 -1
- package/package.json +20 -7
|
@@ -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";
|
|
@@ -5,8 +5,8 @@ type Reference = {
|
|
|
5
5
|
};
|
|
6
6
|
type ChildrenHandlers = {
|
|
7
7
|
focusedIndex: number;
|
|
8
|
-
handleArrowNavigation:
|
|
9
|
-
setFocusedIndex:
|
|
8
|
+
handleArrowNavigation: (e: React.KeyboardEvent) => void;
|
|
9
|
+
setFocusedIndex: React.Dispatch<React.SetStateAction<number>>;
|
|
10
10
|
};
|
|
11
11
|
type FocusManagerProps = {
|
|
12
12
|
refs?: Array<Reference>;
|
package/dist/vite.config.js
CHANGED
|
@@ -20,6 +20,16 @@ const GLOBALS = {
|
|
|
20
20
|
"react-dom": "reactDom",
|
|
21
21
|
};
|
|
22
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
|
+
};
|
|
23
33
|
export default defineConfig({
|
|
24
34
|
plugins: [react()],
|
|
25
35
|
define: {
|
|
@@ -42,7 +52,7 @@ export default defineConfig({
|
|
|
42
52
|
},
|
|
43
53
|
},
|
|
44
54
|
rollupOptions: {
|
|
45
|
-
external
|
|
55
|
+
external,
|
|
46
56
|
output: {
|
|
47
57
|
globals: GLOBALS,
|
|
48
58
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nulogy/components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Component library for the Nulogy Design System - http://nulogy.design",
|
|
6
6
|
"private": false,
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"start:cypress": "start-server-and-test start 9999 'cypress open'",
|
|
15
15
|
"start:storybook": "storybook dev -p 9999",
|
|
16
16
|
"clean:storybook": "rm -rf node_modules/.cache/storybook && rm -rf ./storybook-static",
|
|
17
|
-
"build": "tsc -p tsconfig.build.json && vite build",
|
|
17
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json && vite build",
|
|
18
18
|
"build:verify": "node scripts/verify-build.js",
|
|
19
19
|
"build:watch": "vite build --watch",
|
|
20
20
|
"build:storybook": "storybook build --stats-json",
|
|
21
21
|
"warn:prepush": "echo \"Make sure you also run all the other CI steps before pushing by running 'pnpm ci'\"",
|
|
22
22
|
"check": "pnpm warn:prepush && pnpm check:types && pnpm check:lint && pnpm check:format",
|
|
23
23
|
"check:types": "tsc && cd cypress && tsc --noEmit",
|
|
24
|
-
"check:lint": "eslint
|
|
24
|
+
"check:lint": "eslint '**/*.{js,ts,jsx,tsx}'",
|
|
25
25
|
"check:format": "prettier -c .",
|
|
26
26
|
"fix": "pnpm fix:lint && pnpm fix:format",
|
|
27
27
|
"fix:lint": "pnpm check:lint --fix",
|
|
@@ -51,6 +51,13 @@
|
|
|
51
51
|
"main": "dist/main.js",
|
|
52
52
|
"module": "dist/main.module.js",
|
|
53
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
|
+
},
|
|
54
61
|
"files": [
|
|
55
62
|
"/dist"
|
|
56
63
|
],
|
|
@@ -63,6 +70,7 @@
|
|
|
63
70
|
},
|
|
64
71
|
"devDependencies": {
|
|
65
72
|
"@apollo/client": "^3.11.8",
|
|
73
|
+
"@eslint/js": "^9.0.0",
|
|
66
74
|
"@nulogy/eslint-config-nulogy": "^1.0.0",
|
|
67
75
|
"@nulogy/icons": "^4.37.2",
|
|
68
76
|
"@semantic-release/changelog": "^6.0.2",
|
|
@@ -88,8 +96,9 @@
|
|
|
88
96
|
"@types/react": "^17.0.39",
|
|
89
97
|
"@types/react-dom": "^17.0.20",
|
|
90
98
|
"@types/react-router-dom": "5.3.0",
|
|
91
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
92
|
-
"@typescript-eslint/parser": "^
|
|
99
|
+
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
100
|
+
"@typescript-eslint/parser": "^8.0.0",
|
|
101
|
+
"typescript-eslint": "^8.0.0",
|
|
93
102
|
"@vitejs/plugin-react": "^4.7.0",
|
|
94
103
|
"chromatic": "^13.3.3",
|
|
95
104
|
"concurrently": "^9.2.0",
|
|
@@ -98,8 +107,12 @@
|
|
|
98
107
|
"cypress-enter-plugin": "^1.0.1",
|
|
99
108
|
"cypress-plugin-tab": "^1.0.1",
|
|
100
109
|
"cypress-real-events": "^1.14.0",
|
|
101
|
-
"eslint": "
|
|
102
|
-
"eslint-plugin-
|
|
110
|
+
"eslint": "^9.0.0",
|
|
111
|
+
"eslint-plugin-jsx-a11y": "^6.10.0",
|
|
112
|
+
"eslint-plugin-prettier": "^5.2.0",
|
|
113
|
+
"eslint-plugin-react": "^7.37.0",
|
|
114
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
115
|
+
"globals": "^15.0.0",
|
|
103
116
|
"graphql": "15.8.0",
|
|
104
117
|
"http-server": "^14.0.0",
|
|
105
118
|
"husky": "^9.1.7",
|