@nuralyui/layout 0.0.3 → 0.1.1
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 +77 -0
- package/dist/LICENSE +28 -0
- package/dist/README.md +77 -0
- package/dist/VERSIONS.md +13 -0
- package/dist/card/card.component.d.ts +30 -0
- package/dist/card/card.component.d.ts.map +1 -0
- package/dist/card/card.component.js +64 -0
- package/dist/card/card.component.js.map +1 -0
- package/dist/card/card.style.d.ts +2 -0
- package/dist/card/card.style.d.ts.map +1 -0
- package/dist/card/card.style.js +62 -0
- package/dist/card/card.style.js.map +1 -0
- package/dist/card/card.types.d.ts +17 -0
- package/dist/card/card.types.d.ts.map +1 -0
- package/dist/card/card.types.js +2 -0
- package/dist/card/card.types.js.map +1 -0
- package/dist/card/index.d.ts +3 -0
- package/dist/card/index.d.ts.map +1 -0
- package/dist/card/index.js +3 -0
- package/dist/card/index.js.map +1 -0
- package/dist/card/package.json +26 -0
- package/dist/card/react.d.ts +5 -0
- package/dist/card/react.d.ts.map +1 -0
- package/dist/card/react.js +12 -0
- package/dist/card/react.js.map +1 -0
- package/dist/flex/flex.component.d.ts +89 -0
- package/dist/flex/flex.component.d.ts.map +1 -0
- package/dist/flex/flex.component.js +178 -0
- package/dist/flex/flex.component.js.map +1 -0
- package/dist/flex/flex.style.d.ts +6 -0
- package/dist/flex/flex.style.d.ts.map +1 -0
- package/dist/flex/flex.style.js +101 -0
- package/dist/flex/flex.style.js.map +1 -0
- package/dist/flex/flex.types.d.ts +63 -0
- package/dist/flex/flex.types.d.ts.map +1 -0
- package/dist/flex/flex.types.js +5 -0
- package/dist/flex/flex.types.js.map +1 -0
- package/dist/flex/index.d.ts +3 -0
- package/dist/flex/index.d.ts.map +1 -0
- package/dist/flex/index.js +3 -0
- package/dist/flex/index.js.map +1 -0
- package/dist/flex/package.json +49 -0
- package/dist/flex/react.d.ts +3 -0
- package/dist/flex/react.d.ts.map +1 -0
- package/dist/flex/react.js +10 -0
- package/dist/flex/react.js.map +1 -0
- package/dist/grid/col.component.d.ts +103 -0
- package/dist/grid/col.component.d.ts.map +1 -0
- package/dist/grid/col.component.js +253 -0
- package/dist/grid/col.component.js.map +1 -0
- package/dist/grid/col.style.d.ts +6 -0
- package/dist/grid/col.style.d.ts.map +1 -0
- package/dist/grid/col.style.js +117 -0
- package/dist/grid/col.style.js.map +1 -0
- package/dist/grid/grid.types.d.ts +80 -0
- package/dist/grid/grid.types.d.ts.map +1 -0
- package/dist/grid/grid.types.js +16 -0
- package/dist/grid/grid.types.js.map +1 -0
- package/dist/grid/index.d.ts +4 -0
- package/dist/grid/index.d.ts.map +1 -0
- package/dist/grid/index.js +4 -0
- package/dist/grid/index.js.map +1 -0
- package/dist/grid/package.json +52 -0
- package/dist/grid/react.d.ts +5 -0
- package/dist/grid/react.d.ts.map +1 -0
- package/dist/grid/react.js +17 -0
- package/dist/grid/react.js.map +1 -0
- package/dist/grid/row.component.d.ts +83 -0
- package/dist/grid/row.component.d.ts.map +1 -0
- package/dist/grid/row.component.js +197 -0
- package/dist/grid/row.component.js.map +1 -0
- package/dist/grid/row.style.d.ts +6 -0
- package/dist/grid/row.style.d.ts.map +1 -0
- package/dist/grid/row.style.js +68 -0
- package/dist/grid/row.style.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/layout/content.component.d.ts.map +1 -0
- package/dist/layout/content.style.d.ts.map +1 -0
- package/dist/layout/footer.component.d.ts.map +1 -0
- package/dist/layout/footer.style.d.ts.map +1 -0
- package/dist/layout/header.component.d.ts.map +1 -0
- package/dist/layout/header.style.d.ts.map +1 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/layout/layout.component.d.ts.map +1 -0
- package/dist/layout/layout.style.d.ts.map +1 -0
- package/dist/layout/layout.types.d.ts.map +1 -0
- package/dist/layout/package.json +43 -0
- package/dist/layout/react.d.ts.map +1 -0
- package/dist/layout/sider.component.d.ts.map +1 -0
- package/dist/layout/sider.style.d.ts.map +1 -0
- package/dist/react.d.ts +4 -0
- package/dist/react.js +4 -0
- package/dist/versions.json +6 -0
- package/package.json +73 -39
- package/bundle.js +0 -297
- /package/{content.component.d.ts → dist/layout/content.component.d.ts} +0 -0
- /package/{content.component.js → dist/layout/content.component.js} +0 -0
- /package/{content.component.js.map → dist/layout/content.component.js.map} +0 -0
- /package/{content.style.d.ts → dist/layout/content.style.d.ts} +0 -0
- /package/{content.style.js → dist/layout/content.style.js} +0 -0
- /package/{content.style.js.map → dist/layout/content.style.js.map} +0 -0
- /package/{footer.component.d.ts → dist/layout/footer.component.d.ts} +0 -0
- /package/{footer.component.js → dist/layout/footer.component.js} +0 -0
- /package/{footer.component.js.map → dist/layout/footer.component.js.map} +0 -0
- /package/{footer.style.d.ts → dist/layout/footer.style.d.ts} +0 -0
- /package/{footer.style.js → dist/layout/footer.style.js} +0 -0
- /package/{footer.style.js.map → dist/layout/footer.style.js.map} +0 -0
- /package/{header.component.d.ts → dist/layout/header.component.d.ts} +0 -0
- /package/{header.component.js → dist/layout/header.component.js} +0 -0
- /package/{header.component.js.map → dist/layout/header.component.js.map} +0 -0
- /package/{header.style.d.ts → dist/layout/header.style.d.ts} +0 -0
- /package/{header.style.js → dist/layout/header.style.js} +0 -0
- /package/{header.style.js.map → dist/layout/header.style.js.map} +0 -0
- /package/{index.d.ts → dist/layout/index.d.ts} +0 -0
- /package/{index.js → dist/layout/index.js} +0 -0
- /package/{index.js.map → dist/layout/index.js.map} +0 -0
- /package/{layout.component.d.ts → dist/layout/layout.component.d.ts} +0 -0
- /package/{layout.component.js → dist/layout/layout.component.js} +0 -0
- /package/{layout.component.js.map → dist/layout/layout.component.js.map} +0 -0
- /package/{layout.style.d.ts → dist/layout/layout.style.d.ts} +0 -0
- /package/{layout.style.js → dist/layout/layout.style.js} +0 -0
- /package/{layout.style.js.map → dist/layout/layout.style.js.map} +0 -0
- /package/{layout.types.d.ts → dist/layout/layout.types.d.ts} +0 -0
- /package/{layout.types.js → dist/layout/layout.types.js} +0 -0
- /package/{layout.types.js.map → dist/layout/layout.types.js.map} +0 -0
- /package/{react.d.ts → dist/layout/react.d.ts} +0 -0
- /package/{react.js → dist/layout/react.js} +0 -0
- /package/{react.js.map → dist/layout/react.js.map} +0 -0
- /package/{sider.component.d.ts → dist/layout/sider.component.d.ts} +0 -0
- /package/{sider.component.js → dist/layout/sider.component.js} +0 -0
- /package/{sider.component.js.map → dist/layout/sider.component.js.map} +0 -0
- /package/{sider.style.d.ts → dist/layout/sider.style.d.ts} +0 -0
- /package/{sider.style.js → dist/layout/sider.style.js} +0 -0
- /package/{sider.style.js.map → dist/layout/sider.style.js.map} +0 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
import { LitElement } from 'lit';
|
|
7
|
+
import { RowAlign, RowJustify, Gutter } from './grid.types.js';
|
|
8
|
+
declare const NrRowElement_base: (new (...args: any[]) => import("@nuralyui/common/mixins").DependencyAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").ThemeAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").EventHandlerCapable) & typeof LitElement;
|
|
9
|
+
/**
|
|
10
|
+
* Row component for grid layout system
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```html
|
|
14
|
+
* <!-- Basic row -->
|
|
15
|
+
* <nr-row>
|
|
16
|
+
* <nr-col span="12">Column 1</nr-col>
|
|
17
|
+
* <nr-col span="12">Column 2</nr-col>
|
|
18
|
+
* </nr-row>
|
|
19
|
+
*
|
|
20
|
+
* <!-- Row with gutter -->
|
|
21
|
+
* <nr-row gutter="16">
|
|
22
|
+
* <nr-col span="8">Column 1</nr-col>
|
|
23
|
+
* <nr-col span="8">Column 2</nr-col>
|
|
24
|
+
* <nr-col span="8">Column 3</nr-col>
|
|
25
|
+
* </nr-row>
|
|
26
|
+
*
|
|
27
|
+
* <!-- Responsive gutter -->
|
|
28
|
+
* <nr-row .gutter=${{ xs: 8, sm: 16, md: 24, lg: 32 }}>
|
|
29
|
+
* <nr-col span="6">Column</nr-col>
|
|
30
|
+
* </nr-row>
|
|
31
|
+
*
|
|
32
|
+
* <!-- Alignment and justify -->
|
|
33
|
+
* <nr-row align="middle" justify="center">
|
|
34
|
+
* <nr-col span="6">Centered</nr-col>
|
|
35
|
+
* </nr-row>
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @slot default - Column elements
|
|
39
|
+
*/
|
|
40
|
+
export declare class NrRowElement extends NrRowElement_base {
|
|
41
|
+
static styles: import("lit").CSSResult;
|
|
42
|
+
/** Vertical alignment of columns */
|
|
43
|
+
align: RowAlign | '';
|
|
44
|
+
/** Horizontal alignment of columns */
|
|
45
|
+
justify: RowJustify | '';
|
|
46
|
+
/** Grid spacing - number, [horizontal, vertical], or responsive object */
|
|
47
|
+
gutter: Gutter;
|
|
48
|
+
/** Allow columns to wrap */
|
|
49
|
+
wrap: boolean;
|
|
50
|
+
/** Current breakpoint for responsive gutter */
|
|
51
|
+
private currentBreakpoint;
|
|
52
|
+
private resizeObserver?;
|
|
53
|
+
connectedCallback(): void;
|
|
54
|
+
disconnectedCallback(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Setup responsive gutter based on viewport width
|
|
57
|
+
*/
|
|
58
|
+
private setupResponsiveGutter;
|
|
59
|
+
/**
|
|
60
|
+
* Update current breakpoint based on window width
|
|
61
|
+
*/
|
|
62
|
+
private updateBreakpoint;
|
|
63
|
+
/**
|
|
64
|
+
* Get the current gutter values [horizontal, vertical]
|
|
65
|
+
*/
|
|
66
|
+
private getGutterValues;
|
|
67
|
+
/**
|
|
68
|
+
* Get inline styles for row with gutter
|
|
69
|
+
*/
|
|
70
|
+
private getRowStyle;
|
|
71
|
+
/**
|
|
72
|
+
* Get gutter context for child columns
|
|
73
|
+
*/
|
|
74
|
+
private getGutterContext;
|
|
75
|
+
render(): import("lit").TemplateResult<1>;
|
|
76
|
+
}
|
|
77
|
+
declare global {
|
|
78
|
+
interface HTMLElementTagNameMap {
|
|
79
|
+
'nr-row': NrRowElement;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
export {};
|
|
83
|
+
//# sourceMappingURL=row.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row.component.d.ts","sourceRoot":"","sources":["../../../src/components/grid/row.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAIvC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAA6C,MAAM,iBAAiB,CAAC;;AAE1G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBACa,YAAa,SAAQ,iBAA6B;IAC7D,OAAgB,MAAM,0BAAU;IAEhC,oCAAoC;IAEpC,KAAK,EAAE,QAAQ,GAAG,EAAE,CAAgB;IAEpC,sCAAsC;IAEtC,OAAO,EAAE,UAAU,GAAG,EAAE,CAAgB;IAExC,0EAA0E;IAE1E,MAAM,EAAE,MAAM,CAAK;IAEnB,4BAA4B;IAE5B,IAAI,UAAQ;IAEZ,+CAA+C;IAE/C,OAAO,CAAC,iBAAiB,CAAqC;IAE9D,OAAO,CAAC,cAAc,CAAC,CAAiB;IAE/B,iBAAiB;IAKjB,oBAAoB;IAK7B;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAY7B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAkBxB;;OAEG;IACH,OAAO,CAAC,eAAe;IAgCvB;;OAEG;IACH,OAAO,CAAC,WAAW;IAiBnB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAKf,MAAM;CAkBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,QAAQ,EAAE,YAAY,CAAC;KACxB;CACF"}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
7
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
|
+
};
|
|
12
|
+
import { html, LitElement } from 'lit';
|
|
13
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
14
|
+
import { styles } from './row.style.js';
|
|
15
|
+
import { NuralyUIBaseMixin } from '@nuralyui/common/mixins';
|
|
16
|
+
import { EMPTY_STRING, BREAKPOINTS } from './grid.types.js';
|
|
17
|
+
/**
|
|
18
|
+
* Row component for grid layout system
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```html
|
|
22
|
+
* <!-- Basic row -->
|
|
23
|
+
* <nr-row>
|
|
24
|
+
* <nr-col span="12">Column 1</nr-col>
|
|
25
|
+
* <nr-col span="12">Column 2</nr-col>
|
|
26
|
+
* </nr-row>
|
|
27
|
+
*
|
|
28
|
+
* <!-- Row with gutter -->
|
|
29
|
+
* <nr-row gutter="16">
|
|
30
|
+
* <nr-col span="8">Column 1</nr-col>
|
|
31
|
+
* <nr-col span="8">Column 2</nr-col>
|
|
32
|
+
* <nr-col span="8">Column 3</nr-col>
|
|
33
|
+
* </nr-row>
|
|
34
|
+
*
|
|
35
|
+
* <!-- Responsive gutter -->
|
|
36
|
+
* <nr-row .gutter=${{ xs: 8, sm: 16, md: 24, lg: 32 }}>
|
|
37
|
+
* <nr-col span="6">Column</nr-col>
|
|
38
|
+
* </nr-row>
|
|
39
|
+
*
|
|
40
|
+
* <!-- Alignment and justify -->
|
|
41
|
+
* <nr-row align="middle" justify="center">
|
|
42
|
+
* <nr-col span="6">Centered</nr-col>
|
|
43
|
+
* </nr-row>
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @slot default - Column elements
|
|
47
|
+
*/
|
|
48
|
+
let NrRowElement = class NrRowElement extends NuralyUIBaseMixin(LitElement) {
|
|
49
|
+
constructor() {
|
|
50
|
+
super(...arguments);
|
|
51
|
+
/** Vertical alignment of columns */
|
|
52
|
+
this.align = EMPTY_STRING;
|
|
53
|
+
/** Horizontal alignment of columns */
|
|
54
|
+
this.justify = EMPTY_STRING;
|
|
55
|
+
/** Grid spacing - number, [horizontal, vertical], or responsive object */
|
|
56
|
+
this.gutter = 0;
|
|
57
|
+
/** Allow columns to wrap */
|
|
58
|
+
this.wrap = true;
|
|
59
|
+
/** Current breakpoint for responsive gutter */
|
|
60
|
+
this.currentBreakpoint = "xs" /* GridBreakpoint.XS */;
|
|
61
|
+
}
|
|
62
|
+
connectedCallback() {
|
|
63
|
+
super.connectedCallback();
|
|
64
|
+
this.setupResponsiveGutter();
|
|
65
|
+
}
|
|
66
|
+
disconnectedCallback() {
|
|
67
|
+
var _a;
|
|
68
|
+
super.disconnectedCallback();
|
|
69
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Setup responsive gutter based on viewport width
|
|
73
|
+
*/
|
|
74
|
+
setupResponsiveGutter() {
|
|
75
|
+
if (typeof this.gutter === 'object' && !Array.isArray(this.gutter)) {
|
|
76
|
+
this.updateBreakpoint();
|
|
77
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
78
|
+
this.updateBreakpoint();
|
|
79
|
+
});
|
|
80
|
+
this.resizeObserver.observe(document.documentElement);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Update current breakpoint based on window width
|
|
85
|
+
*/
|
|
86
|
+
updateBreakpoint() {
|
|
87
|
+
const width = window.innerWidth;
|
|
88
|
+
if (width >= BREAKPOINTS.xxl) {
|
|
89
|
+
this.currentBreakpoint = "xxl" /* GridBreakpoint.XXL */;
|
|
90
|
+
}
|
|
91
|
+
else if (width >= BREAKPOINTS.xl) {
|
|
92
|
+
this.currentBreakpoint = "xl" /* GridBreakpoint.XL */;
|
|
93
|
+
}
|
|
94
|
+
else if (width >= BREAKPOINTS.lg) {
|
|
95
|
+
this.currentBreakpoint = "lg" /* GridBreakpoint.LG */;
|
|
96
|
+
}
|
|
97
|
+
else if (width >= BREAKPOINTS.md) {
|
|
98
|
+
this.currentBreakpoint = "md" /* GridBreakpoint.MD */;
|
|
99
|
+
}
|
|
100
|
+
else if (width >= BREAKPOINTS.sm) {
|
|
101
|
+
this.currentBreakpoint = "sm" /* GridBreakpoint.SM */;
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
this.currentBreakpoint = "xs" /* GridBreakpoint.XS */;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Get the current gutter values [horizontal, vertical]
|
|
109
|
+
*/
|
|
110
|
+
getGutterValues() {
|
|
111
|
+
if (typeof this.gutter === 'number') {
|
|
112
|
+
return [this.gutter, this.gutter];
|
|
113
|
+
}
|
|
114
|
+
if (Array.isArray(this.gutter)) {
|
|
115
|
+
return this.gutter;
|
|
116
|
+
}
|
|
117
|
+
// Responsive gutter object
|
|
118
|
+
const breakpoints = [
|
|
119
|
+
this.currentBreakpoint,
|
|
120
|
+
"xl" /* GridBreakpoint.XL */,
|
|
121
|
+
"lg" /* GridBreakpoint.LG */,
|
|
122
|
+
"md" /* GridBreakpoint.MD */,
|
|
123
|
+
"sm" /* GridBreakpoint.SM */,
|
|
124
|
+
"xs" /* GridBreakpoint.XS */
|
|
125
|
+
];
|
|
126
|
+
for (const bp of breakpoints) {
|
|
127
|
+
const value = this.gutter[bp];
|
|
128
|
+
if (value !== undefined) {
|
|
129
|
+
if (typeof value === 'number') {
|
|
130
|
+
return [value, value];
|
|
131
|
+
}
|
|
132
|
+
return value;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return [0, 0];
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Get inline styles for row with gutter
|
|
139
|
+
*/
|
|
140
|
+
getRowStyle() {
|
|
141
|
+
const [horizontal, vertical] = this.getGutterValues();
|
|
142
|
+
const styles = {};
|
|
143
|
+
if (horizontal > 0) {
|
|
144
|
+
styles['margin-left'] = `-${horizontal / 2}px`;
|
|
145
|
+
styles['margin-right'] = `-${horizontal / 2}px`;
|
|
146
|
+
}
|
|
147
|
+
if (vertical > 0) {
|
|
148
|
+
styles['row-gap'] = `${vertical}px`;
|
|
149
|
+
}
|
|
150
|
+
return styles;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Get gutter context for child columns
|
|
154
|
+
*/
|
|
155
|
+
getGutterContext() {
|
|
156
|
+
const [horizontal] = this.getGutterValues();
|
|
157
|
+
return horizontal;
|
|
158
|
+
}
|
|
159
|
+
render() {
|
|
160
|
+
const rowStyle = this.getRowStyle();
|
|
161
|
+
const gutter = this.getGutterContext();
|
|
162
|
+
return html `
|
|
163
|
+
<div
|
|
164
|
+
class="nr-row"
|
|
165
|
+
data-align="${this.align}"
|
|
166
|
+
data-justify="${this.justify}"
|
|
167
|
+
data-wrap="${this.wrap}"
|
|
168
|
+
data-theme="${this.currentTheme}"
|
|
169
|
+
style="${Object.entries(rowStyle).map(([key, value]) => `${key}: ${value}`).join('; ')}"
|
|
170
|
+
data-gutter="${gutter}"
|
|
171
|
+
>
|
|
172
|
+
<slot></slot>
|
|
173
|
+
</div>
|
|
174
|
+
`;
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
NrRowElement.styles = styles;
|
|
178
|
+
__decorate([
|
|
179
|
+
property({ type: String })
|
|
180
|
+
], NrRowElement.prototype, "align", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
property({ type: String })
|
|
183
|
+
], NrRowElement.prototype, "justify", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
property({ type: Object })
|
|
186
|
+
], NrRowElement.prototype, "gutter", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
property({ type: Boolean })
|
|
189
|
+
], NrRowElement.prototype, "wrap", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
state()
|
|
192
|
+
], NrRowElement.prototype, "currentBreakpoint", void 0);
|
|
193
|
+
NrRowElement = __decorate([
|
|
194
|
+
customElement('nr-row')
|
|
195
|
+
], NrRowElement);
|
|
196
|
+
export { NrRowElement };
|
|
197
|
+
//# sourceMappingURL=row.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row.component.js","sourceRoot":"","sources":["../../../src/components/grid/row.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;AAEH,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAgC,YAAY,EAAkB,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE1G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,IAAa,YAAY,GAAzB,MAAa,YAAa,SAAQ,iBAAiB,CAAC,UAAU,CAAC;IAA/D;;QAGE,oCAAoC;QAEpC,UAAK,GAAkB,YAAY,CAAC;QAEpC,sCAAsC;QAEtC,YAAO,GAAoB,YAAY,CAAC;QAExC,0EAA0E;QAE1E,WAAM,GAAW,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AAQ,IAAI,CAAC;SACrC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;OAEG;IACK,gBAAgB;QACtB,MAAM,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;QAC5C,OAAO,UAAU,CAAC;IACpB,CAAC;IAEQ,MAAM;QACb,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QACpC,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAEvC,OAAO,IAAI,CAAA;;;sBAGO,IAAI,CAAC,KAAK;wBACR,IAAI,CAAC,OAAO;qBACf,IAAI,CAAC,IAAI;sBACR,IAAI,CAAC,YAAY;iBACtB,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,KAAK,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;uBACvE,MAAM;;;;KAIxB,CAAC;IACJ,CAAC;CACF,CAAA;AAvJiB,mBAAM,GAAG,MAAO,CAAA;AAIhC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2CACS;AAIpC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CACa;AAIxC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CACR;AAInB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;0CAChB;AAIZ;IADC,KAAK,EAAE;uDACsD;AArBnD,YAAY;IADxB,aAAa,CAAC,QAAQ,CAAC;GACX,YAAY,CAwJxB;SAxJY,YAAY","sourcesContent":["/**\n * @license\n * Copyright 2023 Nuraly, Laabidi Aymen\n * SPDX-License-Identifier: MIT\n */\n\nimport { html, LitElement } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { styles } from './row.style.js';\nimport { NuralyUIBaseMixin } from '@nuralyui/common/mixins';\nimport { RowAlign, RowJustify, Gutter, EMPTY_STRING, GridBreakpoint, BREAKPOINTS } from './grid.types.js';\n\n/**\n * Row component for grid layout system\n * \n * @example\n * ```html\n * <!-- Basic row -->\n * <nr-row>\n * <nr-col span=\"12\">Column 1</nr-col>\n * <nr-col span=\"12\">Column 2</nr-col>\n * </nr-row>\n * \n * <!-- Row with gutter -->\n * <nr-row gutter=\"16\">\n * <nr-col span=\"8\">Column 1</nr-col>\n * <nr-col span=\"8\">Column 2</nr-col>\n * <nr-col span=\"8\">Column 3</nr-col>\n * </nr-row>\n * \n * <!-- Responsive gutter -->\n * <nr-row .gutter=${{ xs: 8, sm: 16, md: 24, lg: 32 }}>\n * <nr-col span=\"6\">Column</nr-col>\n * </nr-row>\n * \n * <!-- Alignment and justify -->\n * <nr-row align=\"middle\" justify=\"center\">\n * <nr-col span=\"6\">Centered</nr-col>\n * </nr-row>\n * ```\n * \n * @slot default - Column elements\n */\n@customElement('nr-row')\nexport class NrRowElement extends NuralyUIBaseMixin(LitElement) {\n static override styles = styles;\n\n /** Vertical alignment of columns */\n @property({ type: String })\n align: RowAlign | '' = EMPTY_STRING;\n\n /** Horizontal alignment of columns */\n @property({ type: String })\n justify: RowJustify | '' = EMPTY_STRING;\n\n /** Grid spacing - number, [horizontal, vertical], or responsive object */\n @property({ type: Object })\n gutter: Gutter = 0;\n\n /** Allow columns to wrap */\n @property({ type: Boolean })\n wrap = true;\n\n /** Current breakpoint for responsive gutter */\n @state()\n private currentBreakpoint: GridBreakpoint = GridBreakpoint.XS;\n\n private resizeObserver?: ResizeObserver;\n\n override connectedCallback() {\n super.connectedCallback();\n this.setupResponsiveGutter();\n }\n\n override disconnectedCallback() {\n super.disconnectedCallback();\n this.resizeObserver?.disconnect();\n }\n\n /**\n * Setup responsive gutter based on viewport width\n */\n private setupResponsiveGutter() {\n if (typeof this.gutter === 'object' && !Array.isArray(this.gutter)) {\n this.updateBreakpoint();\n \n this.resizeObserver = new ResizeObserver(() => {\n this.updateBreakpoint();\n });\n \n this.resizeObserver.observe(document.documentElement);\n }\n }\n\n /**\n * Update current breakpoint based on window width\n */\n private updateBreakpoint() {\n const width = window.innerWidth;\n \n if (width >= BREAKPOINTS.xxl) {\n this.currentBreakpoint = GridBreakpoint.XXL;\n } else if (width >= BREAKPOINTS.xl) {\n this.currentBreakpoint = GridBreakpoint.XL;\n } else if (width >= BREAKPOINTS.lg) {\n this.currentBreakpoint = GridBreakpoint.LG;\n } else if (width >= BREAKPOINTS.md) {\n this.currentBreakpoint = GridBreakpoint.MD;\n } else if (width >= BREAKPOINTS.sm) {\n this.currentBreakpoint = GridBreakpoint.SM;\n } else {\n this.currentBreakpoint = GridBreakpoint.XS;\n }\n }\n\n /**\n * Get the current gutter values [horizontal, vertical]\n */\n private getGutterValues(): [number, number] {\n if (typeof this.gutter === 'number') {\n return [this.gutter, this.gutter];\n }\n \n if (Array.isArray(this.gutter)) {\n return this.gutter;\n }\n \n // Responsive gutter object\n const breakpoints: GridBreakpoint[] = [\n this.currentBreakpoint,\n GridBreakpoint.XL,\n GridBreakpoint.LG,\n GridBreakpoint.MD,\n GridBreakpoint.SM,\n GridBreakpoint.XS\n ];\n \n for (const bp of breakpoints) {\n const value = this.gutter[bp];\n if (value !== undefined) {\n if (typeof value === 'number') {\n return [value, value];\n }\n return value;\n }\n }\n \n return [0, 0];\n }\n\n /**\n * Get inline styles for row with gutter\n */\n private getRowStyle() {\n const [horizontal, vertical] = this.getGutterValues();\n \n const styles: Record<string, string> = {};\n \n if (horizontal > 0) {\n styles['margin-left'] = `-${horizontal / 2}px`;\n styles['margin-right'] = `-${horizontal / 2}px`;\n }\n \n if (vertical > 0) {\n styles['row-gap'] = `${vertical}px`;\n }\n \n return styles;\n }\n\n /**\n * Get gutter context for child columns\n */\n private getGutterContext() {\n const [horizontal] = this.getGutterValues();\n return horizontal;\n }\n\n override render() {\n const rowStyle = this.getRowStyle();\n const gutter = this.getGutterContext();\n\n return html`\n <div\n class=\"nr-row\"\n data-align=\"${this.align}\"\n data-justify=\"${this.justify}\"\n data-wrap=\"${this.wrap}\"\n data-theme=\"${this.currentTheme}\"\n style=\"${Object.entries(rowStyle).map(([key, value]) => `${key}: ${value}`).join('; ')}\"\n data-gutter=\"${gutter}\"\n >\n <slot></slot>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nr-row': NrRowElement;\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row.style.d.ts","sourceRoot":"","sources":["../../../src/components/grid/row.style.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,MAAM,yBA6DlB,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Row component styles for the Grid system
|
|
4
|
+
* Using shared CSS variables from /src/shared/themes/
|
|
5
|
+
*/
|
|
6
|
+
export const styles = css `
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.nr-row {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-flow: row wrap;
|
|
15
|
+
min-width: 0;
|
|
16
|
+
|
|
17
|
+
/* Theme-aware */
|
|
18
|
+
color: var(--nuraly-color-text);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Wrap control */
|
|
22
|
+
.nr-row[data-wrap="false"] {
|
|
23
|
+
flex-wrap: nowrap;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Horizontal alignment (justify-content) */
|
|
27
|
+
.nr-row[data-justify="start"] {
|
|
28
|
+
justify-content: flex-start;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.nr-row[data-justify="end"] {
|
|
32
|
+
justify-content: flex-end;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.nr-row[data-justify="center"] {
|
|
36
|
+
justify-content: center;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.nr-row[data-justify="space-around"] {
|
|
40
|
+
justify-content: space-around;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.nr-row[data-justify="space-between"] {
|
|
44
|
+
justify-content: space-between;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.nr-row[data-justify="space-evenly"] {
|
|
48
|
+
justify-content: space-evenly;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Vertical alignment (align-items) */
|
|
52
|
+
.nr-row[data-align="top"] {
|
|
53
|
+
align-items: flex-start;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.nr-row[data-align="middle"] {
|
|
57
|
+
align-items: center;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.nr-row[data-align="bottom"] {
|
|
61
|
+
align-items: flex-end;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.nr-row[data-align="stretch"] {
|
|
65
|
+
align-items: stretch;
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
68
|
+
//# sourceMappingURL=row.style.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row.style.js","sourceRoot":"","sources":["../../../src/components/grid/row.style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DxB,CAAC","sourcesContent":["import { css } from 'lit';\n\n/**\n * Row component styles for the Grid system\n * Using shared CSS variables from /src/shared/themes/\n */\nexport const styles = css`\n :host {\n display: block;\n width: 100%;\n }\n\n .nr-row {\n display: flex;\n flex-flow: row wrap;\n min-width: 0;\n \n /* Theme-aware */\n color: var(--nuraly-color-text);\n }\n\n /* Wrap control */\n .nr-row[data-wrap=\"false\"] {\n flex-wrap: nowrap;\n }\n\n /* Horizontal alignment (justify-content) */\n .nr-row[data-justify=\"start\"] {\n justify-content: flex-start;\n }\n\n .nr-row[data-justify=\"end\"] {\n justify-content: flex-end;\n }\n\n .nr-row[data-justify=\"center\"] {\n justify-content: center;\n }\n\n .nr-row[data-justify=\"space-around\"] {\n justify-content: space-around;\n }\n\n .nr-row[data-justify=\"space-between\"] {\n justify-content: space-between;\n }\n\n .nr-row[data-justify=\"space-evenly\"] {\n justify-content: space-evenly;\n }\n\n /* Vertical alignment (align-items) */\n .nr-row[data-align=\"top\"] {\n align-items: flex-start;\n }\n\n .nr-row[data-align=\"middle\"] {\n align-items: center;\n }\n\n .nr-row[data-align=\"bottom\"] {\n align-items: flex-end;\n }\n\n .nr-row[data-align=\"stretch\"] {\n align-items: stretch;\n }\n`;\n"]}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.component.d.ts","sourceRoot":"","sources":["../../../src/components/layout/content.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;;AAKvC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBACa,gBAAiB,SAAQ,qBAA6B;IACjE,OAAgB,MAAM,0BAAiB;IAE9B,MAAM;CAOhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,gBAAgB,CAAC;KAChC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.style.d.ts","sourceRoot":"","sources":["../../../src/components/layout/content.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,yBAczB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer.component.d.ts","sourceRoot":"","sources":["../../../src/components/layout/footer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;;AAKvC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBACa,eAAgB,SAAQ,oBAA6B;IAChE,OAAgB,MAAM,0BAAgB;IAEtC;;OAEG;IAEH,OAAO,SAAe;IAEb,MAAM;CAWhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,eAAe,CAAC;KAC9B;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer.style.d.ts","sourceRoot":"","sources":["../../../src/components/layout/footer.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,yBAcxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.component.d.ts","sourceRoot":"","sources":["../../../src/components/layout/header.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;;AAKvC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBACa,eAAgB,SAAQ,oBAA6B;IAChE,OAAgB,MAAM,0BAAgB;IAEtC;;OAEG;IAEH,MAAM,SAAU;IAEP,MAAM;CAWhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,eAAe,CAAC;KAC9B;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.style.d.ts","sourceRoot":"","sources":["../../../src/components/layout/header.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,yBAgBxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,YAAY,EACV,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,WAAW,EACX,UAAU,EACV,WAAW,EACX,WAAW,EACX,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.component.d.ts","sourceRoot":"","sources":["../../../src/components/layout/layout.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;;AAKvC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBACa,eAAgB,SAAQ,oBAA6B;IAChE,OAAgB,MAAM,0BAAgB;IAEtC;;;;OAIG;IAEH,QAAQ,UAAS;IAIR,iBAAiB,IAAI,IAAI;IAKzB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAK/D;;OAEG;IACH,OAAO,CAAC,WAAW;IAanB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAIf,MAAM;CAOhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,eAAe,CAAC;KAC9B;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.style.d.ts","sourceRoot":"","sources":["../../../src/components/layout/layout.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,yBAoBxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.types.d.ts","sourceRoot":"","sources":["../../../src/components/layout/layout.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,0BAAkB,gBAAgB;IAChC,EAAE,OAAO;IACT,EAA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,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;CAAG"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nuralyui/layout",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Layout components for NuralyUI - includes Layout, Header, Footer, Sider, and Content",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"module": "index.js",
|
|
8
|
+
"types": "index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./index.js",
|
|
12
|
+
"types": "./index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./bundle": {
|
|
15
|
+
"import": "./bundle.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"*.js",
|
|
20
|
+
"*.d.ts",
|
|
21
|
+
"*.js.map",
|
|
22
|
+
"bundle.js",
|
|
23
|
+
"*.ts",
|
|
24
|
+
"!*.stories.ts",
|
|
25
|
+
"!*.test.ts"
|
|
26
|
+
],
|
|
27
|
+
"keywords": [
|
|
28
|
+
"layout",
|
|
29
|
+
"header",
|
|
30
|
+
"footer",
|
|
31
|
+
"sider",
|
|
32
|
+
"sidebar",
|
|
33
|
+
"content",
|
|
34
|
+
"web-components",
|
|
35
|
+
"lit",
|
|
36
|
+
"nuralyui"
|
|
37
|
+
],
|
|
38
|
+
"author": "NuralyUI Team",
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"lit": "^3.0.0"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/components/layout/react.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAA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AAI;IAK5B,OAAO,CAAC,iBAAiB,EAAE,cAAc,GAAG,IAAI;IAWzD;;OAEG;IACH,OAAO,CAAC,mBAAmB;IA8B3B;;OAEG;IACH,OAAO,CAAC,cAAc;IAKtB;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAU7B;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAU/B;;OAEG;IACH,OAAO,CAAC,eAAe;IAOvB;;OAEG;IACH,OAAO,CAAC,aAAa;IA0CZ,MAAM;CAsBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,cAAc,CAAC;KAC5B;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sider.style.d.ts","sourceRoot":"","sources":["../../../src/components/layout/sider.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,yBAqGvB,CAAC"}
|
package/dist/react.d.ts
ADDED
package/dist/react.js
ADDED
package/package.json
CHANGED
|
@@ -1,43 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"import": "./index.js",
|
|
12
|
-
"types": "./index.d.ts"
|
|
13
|
-
},
|
|
14
|
-
"./bundle": {
|
|
15
|
-
"import": "./bundle.js"
|
|
16
|
-
}
|
|
2
|
+
"name": "@nuralyui/layout",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Layout components package for Nuraly UI Library - includes grid, flex, and layout containers",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts"
|
|
17
11
|
},
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"lit": "^3.0.0"
|
|
12
|
+
"./layout": {
|
|
13
|
+
"import": "./dist/layout/index.js",
|
|
14
|
+
"types": "./dist/layout/index.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"./grid": {
|
|
17
|
+
"import": "./dist/grid/index.js",
|
|
18
|
+
"types": "./dist/grid/index.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./flex": {
|
|
21
|
+
"import": "./dist/flex/index.js",
|
|
22
|
+
"types": "./dist/flex/index.d.ts"
|
|
23
|
+
},
|
|
24
|
+
"./card": {
|
|
25
|
+
"import": "./dist/card/index.js",
|
|
26
|
+
"types": "./dist/card/index.d.ts"
|
|
27
|
+
},
|
|
28
|
+
"./react": {
|
|
29
|
+
"import": "./dist/react.js",
|
|
30
|
+
"types": "./dist/react.d.ts"
|
|
31
|
+
},
|
|
32
|
+
"./versions.json": {
|
|
33
|
+
"import": "./dist/versions.json",
|
|
34
|
+
"require": "./dist/versions.json"
|
|
42
35
|
}
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"dist",
|
|
39
|
+
"README.md",
|
|
40
|
+
"LICENSE",
|
|
41
|
+
"VERSIONS.md"
|
|
42
|
+
],
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "node scripts/build.js",
|
|
45
|
+
"clean": "rm -rf dist/*",
|
|
46
|
+
"versions": "node scripts/versions.js",
|
|
47
|
+
"prepublishOnly": "npm run build"
|
|
48
|
+
},
|
|
49
|
+
"keywords": [
|
|
50
|
+
"web-components",
|
|
51
|
+
"lit-element",
|
|
52
|
+
"ui-components",
|
|
53
|
+
"layout",
|
|
54
|
+
"grid",
|
|
55
|
+
"flex",
|
|
56
|
+
"responsive",
|
|
57
|
+
"nuralyui"
|
|
58
|
+
],
|
|
59
|
+
"author": "Laabidi Aymen",
|
|
60
|
+
"license": "BSD-3-Clause",
|
|
61
|
+
"repository": {
|
|
62
|
+
"type": "git",
|
|
63
|
+
"url": "https://github.com/Nuralyio/NuralyUI.git",
|
|
64
|
+
"directory": "packages/layout"
|
|
65
|
+
},
|
|
66
|
+
"bugs": {
|
|
67
|
+
"url": "https://github.com/Nuralyio/NuralyUI/issues"
|
|
68
|
+
},
|
|
69
|
+
"homepage": "https://github.com/Nuralyio/NuralyUI#readme",
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"lit": "^2.2.4",
|
|
72
|
+
"@lit/reactive-element": "^1.6.1"
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"fs-extra": "^11.1.1"
|
|
76
|
+
}
|
|
43
77
|
}
|