Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22,551 changes: 7,577 additions & 14,974 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
"src/wrappers/*/styles.scss"
],
"dependencies": {
"@kibalabs/core": "^0.7.2-next.5",
"@kibalabs/core-react": "^0.10.1-next.4",
"@kibalabs/core": "^0.7.2-next.7",
"@kibalabs/core-react": "^0.10.1-next.5",
"lazysizes": "^5.3.2",
"markdown-to-jsx": "^9.10.3"
},
"devDependencies": {
"@kibalabs/build": "0.14.1",
"@kibalabs/build": "0.14.2-next.10",
"@storybook/addon-docs": "10.6.1",
"@storybook/react-vite": "10.6.1",
"@types/react": "19.3.0",
Expand Down
2 changes: 0 additions & 2 deletions src/app/kibaApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ export function KibaApp(props: IKibaAppProps): React.ReactElement {
window.lazySizes.cfg.minSize = 20;
}
});
// eslint-disable-next-line react/no-danger
const extraGlobalCssStyle = props.extraGlobalCss ? <style dangerouslySetInnerHTML={{ __html: props.extraGlobalCss }} /> : null;
// eslint-disable-next-line react/no-danger
const extraCssStyle = props.extraCss ? <style dangerouslySetInnerHTML={{ __html: props.extraCss }} /> : null;
const mainViewStyle: React.CSSProperties = {
minHeight: props.isFullPageApp ? '100%' : '100vh',
Expand Down
2 changes: 0 additions & 2 deletions src/atoms/bulletList/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { BulletList } from '.';
Expand Down
4 changes: 1 addition & 3 deletions src/atoms/bulletText/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { BulletText } from '.';
Expand All @@ -22,7 +20,7 @@ type Story = StoryObj<typeof BulletText>;

export const Default: Story = {
args: {
text: "I'm a bullet point",
text: 'I\'m a bullet point',
},
};

Expand Down
2 changes: 0 additions & 2 deletions src/atoms/button/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { Button } from '.';
Expand Down
1 change: 0 additions & 1 deletion src/atoms/checkbox/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export function Checkbox({
}
}, [isDisabled, propsOnToggled]);
return (
// eslint-disable-next-line jsx-a11y/label-has-associated-control
<label
id={props.id}
className={getClassName(Checkbox.displayName, props.className, props.isDisabled && 'disabled', props.isChecked && 'checked', ...(variant?.split('-') || []))}
Expand Down
2 changes: 0 additions & 2 deletions src/atoms/collapsibleBox/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { CollapsibleBox, StatefulCollapsibleBox } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/atoms/iconButton/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { IconButton } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/atoms/inputWrapper/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export function InputWrapper({
className={getClassName(InputWrapper.displayName, className, props.messageText && 'message-showing', isFocussed && 'focus', !props.isEnabled && 'disabled', isFullWidth && 'full-width', ...(variant?.split('-') || []))}
style={props.style}
>
{/* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/no-noninteractive-tabindex */}
<div
role={props.onClicked ? 'button' : undefined}
tabIndex={props.onClicked ? 0 : undefined}
Expand All @@ -52,7 +51,6 @@ export function InputWrapper({
>
{props.children}
</div>
{/* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/no-noninteractive-tabindex */}
<HidingView isHidden={!props.messageText}>
<p
id={props.id && `${props.id}-message`}
Expand Down
2 changes: 0 additions & 2 deletions src/atoms/linkBase/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { LinkBase } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/atoms/prettyText/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { PrettyText } from '.';
Expand Down
1 change: 0 additions & 1 deletion src/atoms/selectableView/component.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import React from 'react';

import { getClassName } from '@kibalabs/core';
Expand Down
2 changes: 0 additions & 2 deletions src/atoms/webView/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { WebView } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/layouts/container/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { Container } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/layouts/equalGrid/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { EqualGrid } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/layouts/grid/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { Grid } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/layouts/layerContainer/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { LayerContainer } from '.';
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/stack/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ interface IStackProps extends IMultiAnyChildProps, IPaddingViewPaddingProps {
minHeightResponsive?: ResponsiveField<string>;
minWidth?: string;
minWidthResponsive?: ResponsiveField<string>;
paddingStart?: PaddingSizeProp,
paddingEnd?: PaddingSizeProp,
paddingStart?: PaddingSizeProp;
paddingEnd?: PaddingSizeProp;
direction?: Direction;
directionResponsive?: ResponsiveField<Direction>;
childAlignment?: Alignment;
Expand Down
2 changes: 0 additions & 2 deletions src/layouts/stack/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { Stack } from '.';
Expand Down
1 change: 0 additions & 1 deletion src/model/alignment.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// See https://webdesign.tutsplus.com/tutorials/a-comprehensive-guide-to-flexbox-alignment--cms-30183
// to learn about alignment

Expand Down
1 change: 0 additions & 1 deletion src/model/direction.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

export enum Direction {
Horizontal = 'horizontal',
Vertical = 'vertical',
Expand Down
3 changes: 1 addition & 2 deletions src/model/inputType.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@

export enum InputType {
Text = 'text',
Url = 'url',
Password = 'password',
Email = 'email',
Number = 'number',
PhoneNumber = 'tel'
PhoneNumber = 'tel',
}
2 changes: 0 additions & 2 deletions src/molecules/appDownloadButton/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { AppDownloadButton } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/molecules/carousel/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { Carousel } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/molecules/inputFrame/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { InputFrame } from '.';
Expand Down
2 changes: 1 addition & 1 deletion src/molecules/markdown/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { BulletList, BulletText, Link, PrettyText } from '../../atoms';
import { Box, Media, TextAlignment } from '../../particles';
import { getVariant } from '../../util';

function MarkdownParagraph(props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {isInline: boolean | undefined}): React.ReactElement {
function MarkdownParagraph(props: React.AnchorHTMLAttributes<HTMLAnchorElement> & { isInline: boolean | undefined }): React.ReactElement {
const childrenDisplayNames = React.Children.map(props.children, (child: React.ReactNode): string | null => (
// @ts-expect-error: Property 'displayName' does not exist on type
(child && typeof child === 'object' && 'type' in child) ? String(child.type.displayName).split('-')[0] : null
Expand Down
3 changes: 1 addition & 2 deletions src/molecules/markdown/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import type { Meta, StoryObj } from '@storybook/react';

import { Markdown } from '.';
Expand All @@ -13,7 +12,7 @@ type Story = StoryObj<typeof Markdown>;

export const Default: Story = {
args: {
source: "This is an **example**\n\nIt's got [links](https://www.kibalabs.com)\n\n![cool image](https://upload.wikimedia.org/wikipedia/commons/5/50/Male_gorilla_in_SF_zoo.jpg)",
source: 'This is an **example**\n\nIt\'s got [links](https://www.kibalabs.com)\n\n![cool image](https://upload.wikimedia.org/wikipedia/commons/5/50/Male_gorilla_in_SF_zoo.jpg)',
},
};

Expand Down
2 changes: 0 additions & 2 deletions src/molecules/markdownText/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { MarkdownText } from '.';
Expand Down
2 changes: 1 addition & 1 deletion src/molecules/multiLineInput/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { InputFrame } from '../inputFrame';
import { IMoleculeProps } from '../moleculeProps';

interface IMultiLineInputProps extends IMoleculeProps {
value: string| null;
value: string | null;
isEnabled?: boolean;
minRowCount?: number;
maxRowCount?: number;
Expand Down
4 changes: 2 additions & 2 deletions src/molecules/optionSelect/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface IOption {
interface IOptionSelectProps extends IMoleculeProps {
options: IOption[];
selectedItemKey?: string;
isDisabled?:boolean;
isDisabled?: boolean;
closeIconId?: string;
openIconId?: string;
messageText?: string;
Expand All @@ -37,7 +37,7 @@ interface IOptionSelectProps extends IMoleculeProps {
interface IOptionSelectContentProps {
options: IOption[];
selectedItemKey?: string;
isDisabled?:boolean;
isDisabled?: boolean;
placeholderText?: string;
optionListVariant?: string;
optionTextVariant?: string;
Expand Down
3 changes: 2 additions & 1 deletion src/molecules/singleLineInput/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import { IMoleculeProps } from '../moleculeProps';
const getAutocompleteType = (inputType: InputType): string | undefined => {
if (inputType === InputType.Email) {
return 'email';
} if (inputType === InputType.Url) {
}
if (inputType === InputType.Url) {
return 'url';
}
return undefined;
Expand Down
2 changes: 0 additions & 2 deletions src/particles/box/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { Box } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/particles/colors/documentation.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { Meta, Story, Canvas, Controls } from '@storybook/addon-docs/blocks';

import { IColorGuide, buildColors } from '.';

<Meta title='Particles/Colors' />

# Colors
Expand Down
2 changes: 0 additions & 2 deletions src/particles/dimensions/documentation.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { Meta, Story, Canvas, Controls } from '@storybook/addon-docs/blocks';

import { IDimensionGuide, buildDimensions } from '.';

<Meta title='Particles/Dimensions' />

# Dimensions
Expand Down
2 changes: 0 additions & 2 deletions src/particles/divider/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { Divider } from '.';
Expand Down
1 change: 0 additions & 1 deletion src/particles/icon/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export function Icon({
id={props.id}
className={getClassName(Icon.displayName, className, shouldAddFill && 'fill', shouldAddStroke && 'stroke', ...(variant?.split('-') || []))}
style={iconStyles}
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: props.svgContent }}
/>
);
Expand Down
2 changes: 0 additions & 2 deletions src/particles/icon/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { Icon } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/particles/image/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { Image } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/particles/kibaIcon/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { KibaIcon } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/particles/loadingSpinner/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { LoadingSpinner } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/particles/media/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { Media } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/particles/pill/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { Pill } from '.';
Expand Down
2 changes: 1 addition & 1 deletion src/particles/portal/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export enum Placement {
bottomRight = 'bottom-right',
topLeft = 'top-left',
topCenter = 'top-center',
topRight = 'top-right'
topRight = 'top-right',
}

export function getOffsetTop(rect: DOMRect, vertical: number | string): number {
Expand Down
2 changes: 0 additions & 2 deletions src/particles/spacing/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { Spacing } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/particles/text/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { Text } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/wrappers/backgroundView/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { BackgroundView } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/wrappers/colorSettingView/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { ColorSettingView } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/wrappers/containingView/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { ContainingView } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/wrappers/paddingView/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { PaddingView } from '.';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { ResponsiveContainingView } from '.';
Expand Down
2 changes: 0 additions & 2 deletions src/wrappers/responsiveHidingView/documentation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { ResponsiveHidingView } from '.';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Meta, StoryObj } from '@storybook/react';

import { ResponsiveTextAlignmentView } from '.';
Expand Down
Loading