@sebgroup/green-react 3.5.4 → 3.5.6
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 +1 -1
- package/index.esm.js +8 -4
- package/package.json +3 -3
- package/src/lib/context-menu/context-menu.d.ts +1 -1
- package/src/lib/datepicker/datepicker.d.ts +1 -1
- package/src/lib/dropdown/dropdown.d.ts +1 -1
- package/src/lib/grouped-list/grouped-list.d.ts +1 -1
- package/src/lib/table/components/parts/TableBody/index.d.ts +1 -1
- package/src/lib/table/components/parts/TableCell/index.d.ts +1 -1
- package/src/lib/table/components/parts/TableHeader/index.d.ts +1 -1
- package/src/lib/table/components/parts/helperFunctions/index.d.ts +1 -1
package/README.md
CHANGED
package/index.esm.js
CHANGED
|
@@ -2,9 +2,13 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import React, { useState, useEffect, useRef, useLayoutEffect, useMemo, forwardRef, useCallback, useId } from 'react';
|
|
3
3
|
import { randomId, validateClassName, debounce, delay, sliderColors, getSliderTrackBackground } from '@sebgroup/extract';
|
|
4
4
|
import { createComponent } from '@lit/react';
|
|
5
|
-
import {
|
|
5
|
+
import { GdsDatepicker } from '@sebgroup/green-core/components/datepicker/index.js';
|
|
6
|
+
import { getScopedTagName } from '@sebgroup/green-core/scoping';
|
|
6
7
|
import { registerTransitionalStyles } from '@sebgroup/green-core/transitional-styles';
|
|
8
|
+
import { GdsDropdown, GdsOption } from '@sebgroup/green-core/components/dropdown/index.js';
|
|
9
|
+
import { GdsContextMenu, GdsMenuItem, GdsMenuHeading } from '@sebgroup/green-core/components/context-menu/index.js';
|
|
7
10
|
import classNames from 'classnames';
|
|
11
|
+
import { GdsGroupedList } from '@sebgroup/green-core/components/grouped-list/index.js';
|
|
8
12
|
|
|
9
13
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
10
14
|
|
|
@@ -4111,7 +4115,7 @@ const Input = _a => {
|
|
|
4111
4115
|
}, props));
|
|
4112
4116
|
if (showSimpleInput) return input;
|
|
4113
4117
|
const spanClassName = classNames('form-text', {
|
|
4114
|
-
|
|
4118
|
+
disabled: props.disabled
|
|
4115
4119
|
});
|
|
4116
4120
|
return jsx(FormItem, Object.assign({
|
|
4117
4121
|
expandableInfo: expandableInfo,
|
|
@@ -4295,7 +4299,7 @@ const RadioGroup = ({
|
|
|
4295
4299
|
}, {
|
|
4296
4300
|
children: React.Children.map(children, radioButton => {
|
|
4297
4301
|
return /*#__PURE__*/React.isValidElement(radioButton) ? /*#__PURE__*/React.cloneElement(radioButton, {
|
|
4298
|
-
|
|
4302
|
+
'aria-describedby': describedBy,
|
|
4299
4303
|
validator: validator,
|
|
4300
4304
|
onChange: handleOnChange,
|
|
4301
4305
|
checked: selected === radioButton.props.value,
|
|
@@ -4508,7 +4512,7 @@ const Link = _a => {
|
|
|
4508
4512
|
} = _a,
|
|
4509
4513
|
otherProps = __rest(_a, ["button", "children", "className", "role"]);
|
|
4510
4514
|
const buttonClassName = classNames(className, {
|
|
4511
|
-
|
|
4515
|
+
button: button
|
|
4512
4516
|
}, button);
|
|
4513
4517
|
return jsx("a", Object.assign({
|
|
4514
4518
|
className: buttonClassName,
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebgroup/green-react",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": "^17 || ^18",
|
|
6
6
|
"react-dom": "^17 || ^18"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@sebgroup/green-core": "^1.
|
|
10
|
-
"@sebgroup/chlorophyll": "^3.3.
|
|
9
|
+
"@sebgroup/green-core": "^1.16.0",
|
|
10
|
+
"@sebgroup/chlorophyll": "^3.3.4",
|
|
11
11
|
"@sebgroup/extract": "^3.0.1",
|
|
12
12
|
"@lit/react": "^1.0.2",
|
|
13
13
|
"classnames": "^2.3.2"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GdsContextMenu, GdsMenuItem, GdsMenuHeading } from '@sebgroup/green-core';
|
|
1
|
+
import { GdsContextMenu, GdsMenuItem, GdsMenuHeading } from '@sebgroup/green-core/components/context-menu/index.js';
|
|
2
2
|
export declare const ContextMenu: import("@lit/react").ReactWebComponent<GdsContextMenu, {
|
|
3
3
|
onMenuItemClick: string;
|
|
4
4
|
onUiStateChange: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GdsDropdown, GdsOption } from '@sebgroup/green-core';
|
|
1
|
+
import { GdsDropdown, GdsOption } from '@sebgroup/green-core/components/dropdown/index.js';
|
|
2
2
|
export declare type CompareWith<T = any> = (o1: T, o2: T) => boolean;
|
|
3
3
|
export declare type SearchFilter<T = any> = (search: string, value: T) => boolean;
|
|
4
4
|
export declare type DropdownPlacements = 'bottom-start' | 'top-start';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GdsGroupedList } from '@sebgroup/green-core';
|
|
1
|
+
import { GdsGroupedList } from '@sebgroup/green-core/components/grouped-list/index.js';
|
|
2
2
|
export declare const GroupedList: import("@lit/react").ReactWebComponent<GdsGroupedList, {}>;
|
|
3
3
|
export declare const ListItem: import("@lit/react").ReactWebComponent<GdsGroupedList, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './TableBody';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './TableCell';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './TableHeader';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './helperFunctions';
|