Skip to content

Commit c0255b8

Browse files
committed
0.9.2
- Form field now can be conditional - Update to `@grandlinex/react-icons: 0.2.1`
1 parent 9c10298 commit c0255b8

29 files changed

Lines changed: 405 additions & 353 deletions

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Change log
22
All notable changes to this project will be documented in this file.
33

4+
## [0.9.2]
5+
### Changed
6+
- Form field now can be conditional
7+
- Update to `@grandlinex/react-icons: 0.2.1`
8+
49
## [0.9.1]
510
### Fixed
611
- Fix Icon package dependency

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "@grandlinex/react-components",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"private": false,
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"dependencies": {
8-
"@grandlinex/react-icons": "0.1.1"
8+
"@grandlinex/react-icons": "0.2.0"
99
},
1010
"keywords": [
1111
"grandlinex",
@@ -25,17 +25,17 @@
2525
"@babel/preset-react": "7.24.7",
2626
"@babel/preset-typescript": "7.24.7",
2727
"@chromatic-com/storybook": "3.2.2",
28-
"@storybook/addon-essentials": "8.4.6",
29-
"@storybook/addon-interactions": "8.4.6",
30-
"@storybook/addon-links": "8.4.6",
31-
"@storybook/addon-onboarding": "8.4.6",
32-
"@storybook/addon-storysource": "8.4.6",
33-
"@storybook/addon-themes": "8.4.6",
28+
"@storybook/addon-essentials": "8.6.4",
29+
"@storybook/addon-interactions": "8.6.4",
30+
"@storybook/addon-links": "8.6.4",
31+
"@storybook/addon-onboarding": "8.6.4",
32+
"@storybook/addon-storysource": "8.6.4",
33+
"@storybook/addon-themes": "8.6.4",
3434
"@storybook/addon-webpack5-compiler-swc": "1.0.5",
35-
"@storybook/blocks": "8.4.6",
36-
"@storybook/react": "8.4.6",
37-
"@storybook/react-webpack5": "8.4.6",
38-
"@storybook/test": "8.4.6",
35+
"@storybook/blocks": "8.6.4",
36+
"@storybook/react": "8.6.4",
37+
"@storybook/react-webpack5": "8.6.4",
38+
"@storybook/test": "8.6.4",
3939
"@types/react": "19.0.1",
4040
"@types/react-dom": "19.0.1",
4141
"@typescript-eslint/eslint-plugin": "7.16.0",
@@ -61,7 +61,7 @@
6161
"prettier": "3.3.3",
6262
"sass": "1.79.4",
6363
"sass-loader": "16.0.2",
64-
"storybook": "8.4.6",
64+
"storybook": "8.6.4",
6565
"style-loader": "4.0.0",
6666
"ts-loader": "9.5.1",
6767
"ts-node": "10.9.2",

src/components/Card/Card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import {
66
ISize,
77
} from '@grandlinex/react-icons';
88
import HNavigator from '../Navigator/HNavigator';
9-
import { BadgeProps, Badge } from '../other/Badge/Badge';
9+
import { Badge, BadgeProps } from '../other/Badge/Badge';
1010
import { cnx } from '../../util';
1111
import DropDownIconMenu, { MenuItem } from '../menu/DropDownIconMenu';
12-
import Grid from '../Grid/Grid';
12+
import { Grid } from '../Grid/Grid';
1313
import Tooltip, { ToolTipProp } from '../tooltip/Tooltip';
1414

1515
export type CardColor = 'red' | 'black' | 'yellow' | 'green' | 'orange';

src/components/Grid/Grid.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { HTMLAttributes, useMemo } from 'react';
22
import { cnx, CnxInput } from '../../util';
33

4-
type GridProps = React.PropsWithChildren<
4+
export type GridProps = React.PropsWithChildren<
55
Omit<HTMLAttributes<HTMLDivElement>, 'className'> & {
66
divRef?: React.Ref<HTMLDivElement>;
77
className?: CnxInput | CnxInput[];
@@ -49,7 +49,7 @@ const optionMap = new Map<keyof GridProps, string>([
4949
['flexWrap', 'glx-flex-wrap'],
5050
]);
5151

52-
export default function Grid(props: GridProps) {
52+
export function Grid(props: GridProps) {
5353
const { children } = props;
5454

5555
const outProps: Record<string, any> = useMemo(() => {

src/components/HCard/HCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { getIcon, INames } from '@grandlinex/react-icons';
33
import { cnx } from '../../util';
44
import { CardProps } from '../Card/Card';
5-
import Grid from '../Grid/Grid';
5+
import { Grid } from '../Grid/Grid';
66
import { IconButton } from '../button/IconButton';
77

88
export type HCardProps = Omit<CardProps, 'badges' | 'button' | 'menu'> & {

src/components/Navigator/HNavigator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { createRef, useEffect } from 'react';
22

33
import { IOChevronBack, IOChevronForward } from '@grandlinex/react-icons';
4-
import Grid from '../Grid/Grid';
4+
import { Grid } from '../Grid/Grid';
55
import { cnx } from '../../util';
66

77
export type HNavigatorProps = React.PropsWithChildren<{

src/components/button/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { MouseEvent } from 'react';
22
import { cnx } from '../../util';
3-
import Grid from '../Grid/Grid';
3+
import { Grid } from '../Grid/Grid';
44

55
export type ButtonProps = {
66
onClick: (event?: MouseEvent) => void;

src/components/canvas/Draw.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useCallback, useEffect, useRef, useState } from 'react';
22
import { IOArrowUndoCircle, IOColorFill } from '@grandlinex/react-icons';
3-
import Grid from '../Grid/Grid';
3+
import { Grid } from '../Grid/Grid';
44
import { IconButton } from '../button/IconButton';
55

66
export interface CanvasProps {

src/components/clock/component/FNumber.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useMemo } from 'react';
22
import { pad } from '../type';
3-
import Grid from '../../Grid/Grid';
3+
import { Grid } from '../../Grid/Grid';
44

55
function helpList(start: number) {
66
const x = [];

src/components/clock/variants/Numvers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import Grid from '../../Grid/Grid';
2+
import { Grid } from '../../Grid/Grid';
33
import { ClockType } from '../type';
44
import FNumber from '../component/FNumber';
55

0 commit comments

Comments
 (0)