Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
package-lock.json
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason why you are ignoring the package-lock.json?
Was under the impression that this would give us a deterministic install of the project.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might be right. I am used to always ignore package-lock since it is auto-generated and I am thinking to have one source of the truth. But npm itself does recommend committing the file.

3 changes: 3 additions & 0 deletions dist/ActionButton.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { SpectrumComponentSize } from './common';
declare namespace Spectrum {
interface ActionButtonEvent extends globalThis.Event {
readonly target: (EventTarget & unknown) | null;
Expand All @@ -10,6 +11,7 @@ declare type Props = {
className?: string;
disabled?: boolean;
quiet?: boolean;
size?: SpectrumComponentSize;
};
declare global {
namespace JSX {
Expand All @@ -20,6 +22,7 @@ declare global {
class?: string;
disabled?: boolean;
quiet?: boolean;
size?: SpectrumComponentSize;
};
}
}
Expand Down
3 changes: 2 additions & 1 deletion dist/ActionButton.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ActionButton.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/Body.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import React from 'react';
import { SpectrumComponentSize } from './common';
declare namespace Spectrum {
type BodyClassification = 'serif' | 'sans serif';
type BodyScript = 'latin' | 'han' | 'arabic' | 'hebrew';
type BodySize = 'XS' | 'S' | 'M' | 'L' | 'XL' | 'XXL';
}
declare type Props = {
children?: React.ReactNode;
className?: string;
classification?: Spectrum.BodyClassification;
script?: Spectrum.BodyScript;
size?: Spectrum.BodySize;
size?: SpectrumComponentSize;
};
declare global {
namespace JSX {
Expand All @@ -19,7 +19,7 @@ declare global {
class?: string;
classification?: Spectrum.BodyClassification;
script?: Spectrum.BodyScript;
size?: Spectrum.BodySize;
size?: SpectrumComponentSize;
};
}
}
Expand Down
3 changes: 2 additions & 1 deletion dist/Body.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/Body.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions dist/Button.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { SpectrumComponentSize } from './common';
declare namespace Spectrum {
type ButtonVariant = 'cta' | 'primary' | 'secondary' | 'warning' | 'overBackground';
interface ButtonEvent extends globalThis.Event {
Expand All @@ -12,6 +13,7 @@ declare type Props = {
disabled?: boolean;
quiet?: boolean;
variant?: Spectrum.ButtonVariant;
size?: SpectrumComponentSize;
};
declare global {
namespace JSX {
Expand All @@ -23,6 +25,8 @@ declare global {
disabled?: boolean;
quiet?: boolean;
variant?: Spectrum.ButtonVariant;
size?: SpectrumComponentSize;
onClick?: (e?: any) => void;
};
}
}
Expand Down
3 changes: 2 additions & 1 deletion dist/Button.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/Button.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions dist/Checkbox.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { SpectrumComponentSize } from './common';
declare namespace Spectrum {
interface CheckboxEvent extends globalThis.Event {
readonly target: (EventTarget & {
Expand All @@ -15,6 +16,7 @@ declare type Props = {
disabled?: boolean;
indeterminate?: boolean;
invalid?: boolean;
size?: SpectrumComponentSize;
};
declare global {
namespace JSX {
Expand All @@ -27,6 +29,8 @@ declare global {
disabled?: boolean;
indeterminate?: boolean;
invalid?: boolean;
size?: SpectrumComponentSize;
onClick?: (e?: any) => void;
};
}
}
Expand Down
3 changes: 2 additions & 1 deletion dist/Checkbox.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/Checkbox.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/Detail.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from 'react';
import { SpectrumComponentSize } from './common';
declare namespace Spectrum {
type DetailScript = 'latin' | 'han' | 'arabic' | 'hebrew';
type DetailSize = 'S' | 'M' | 'L' | 'XL';
type DetailWeight = 'light' | 'default';
}
declare type Props = {
children?: React.ReactNode;
className?: string;
script?: Spectrum.DetailScript;
size?: Spectrum.DetailSize;
size?: SpectrumComponentSize;
weight?: Spectrum.DetailWeight;
};
declare global {
Expand All @@ -18,7 +18,7 @@ declare global {
children?: React.ReactNode;
class?: string;
script?: Spectrum.DetailScript;
size?: Spectrum.DetailSize;
size?: SpectrumComponentSize;
weight?: Spectrum.DetailWeight;
};
}
Expand Down
3 changes: 2 additions & 1 deletion dist/Detail.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/Detail.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions dist/Dropdown.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { SpectrumComponentSize } from './common';
declare namespace Spectrum {
interface DropdownEvent extends globalThis.Event {
readonly target: (EventTarget & {
Expand All @@ -15,6 +16,7 @@ declare type Props = {
quiet?: boolean;
placeholder?: string;
selectedIndex?: number;
size?: SpectrumComponentSize;
};
declare global {
namespace JSX {
Expand All @@ -28,6 +30,8 @@ declare global {
quiet?: boolean;
placeholder?: string;
selectedIndex?: number;
size?: SpectrumComponentSize;
onMouseDown?: (e?: any) => void;
};
}
}
Expand Down
Loading