Skip to content

Commit 6d7f58a

Browse files
committed
chore(grid): deprecate component
What you can do with CSS is way more flexible and advanced than what this component offers
1 parent f0eed2a commit 6d7f58a

File tree

4 files changed

+12
-147
lines changed

4 files changed

+12
-147
lines changed

etc/lime-elements.api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ export namespace Components {
443443
"transformErrors"?: (errors: FormError[]) => FormError[];
444444
"value": object;
445445
}
446+
// @deprecated
446447
export interface LimelGrid {
447448
}
448449
export interface LimelHeader {
@@ -1549,6 +1550,7 @@ export namespace JSX {
15491550
"transformErrors"?: (errors: FormError[]) => FormError[];
15501551
"value"?: object;
15511552
}
1553+
// @deprecated
15521554
export interface LimelGrid {
15531555
}
15541556
export interface LimelHeader {

src/components/grid/examples/grid.scss

Lines changed: 0 additions & 94 deletions
This file was deleted.

src/components/grid/examples/grid.tsx

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/components/grid/grid.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { Component, h } from '@stencil/core';
22

33
/**
4-
* The `limel-grid` component creates a grid which can be used to control the
5-
* layout of other components. It uses CSS [grid-template-areas](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas)
6-
* to enable easy configuration of its child-elements.
4+
* This component is deprecated and will be removed in a future version of
5+
* Lime Elements. Please use CSS for your flexible container needs 🙂
76
*
8-
* @exampleComponent limel-example-grid
7+
* @deprecated Please use CSS instead https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout
8+
* @private
99
* @slot - Grid content
1010
*/
1111
@Component({
@@ -14,6 +14,12 @@ import { Component, h } from '@stencil/core';
1414
styleUrl: 'grid.scss',
1515
})
1616
export class Grid {
17+
public componentWillLoad() {
18+
console.warn(
19+
'limel-grid is deprecated, please use CSS instead: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout'
20+
);
21+
}
22+
1723
public render() {
1824
return <slot />;
1925
}

0 commit comments

Comments
 (0)