@loadsmart/miranda-wc 1.6.0 → 1.8.0

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.
Files changed (33) hide show
  1. package/dist/components/layout/grid/grid.constants.d.ts +3 -0
  2. package/dist/components/layout/grid/grid.constants.d.ts.map +1 -0
  3. package/dist/components/layout/grid/grid.cy.d.ts +2 -0
  4. package/dist/components/layout/grid/grid.cy.d.ts.map +1 -0
  5. package/dist/components/layout/grid/grid.d.ts +35 -0
  6. package/dist/components/layout/grid/grid.d.ts.map +1 -0
  7. package/dist/components/layout/grid/grid.styles.d.ts +2 -0
  8. package/dist/components/layout/grid/grid.styles.d.ts.map +1 -0
  9. package/dist/components/layout/grid/grid.types.d.ts +27 -0
  10. package/dist/components/layout/grid/grid.types.d.ts.map +1 -0
  11. package/dist/components/layout/grid/index.d.ts +4 -0
  12. package/dist/components/layout/grid/index.d.ts.map +1 -0
  13. package/dist/components/layout/index.d.ts +4 -1
  14. package/dist/components/layout/index.d.ts.map +1 -1
  15. package/dist/components/layout/layout.constants.d.ts +3 -0
  16. package/dist/components/layout/layout.constants.d.ts.map +1 -0
  17. package/dist/components/layout/layout.types.d.ts +1 -2
  18. package/dist/components/layout/layout.types.d.ts.map +1 -1
  19. package/dist/components/layout/sidebar/index.d.ts +4 -0
  20. package/dist/components/layout/sidebar/index.d.ts.map +1 -0
  21. package/dist/components/layout/sidebar/sidebar.constants.d.ts +3 -0
  22. package/dist/components/layout/sidebar/sidebar.constants.d.ts.map +1 -0
  23. package/dist/components/layout/sidebar/sidebar.cy.d.ts +2 -0
  24. package/dist/components/layout/sidebar/sidebar.cy.d.ts.map +1 -0
  25. package/dist/components/layout/sidebar/sidebar.d.ts +34 -0
  26. package/dist/components/layout/sidebar/sidebar.d.ts.map +1 -0
  27. package/dist/components/layout/sidebar/sidebar.styles.d.ts +3 -0
  28. package/dist/components/layout/sidebar/sidebar.styles.d.ts.map +1 -0
  29. package/dist/components/layout/sidebar/sidebar.types.d.ts +28 -0
  30. package/dist/components/layout/sidebar/sidebar.types.d.ts.map +1 -0
  31. package/dist/index.js +194 -152
  32. package/dist/index.js.map +1 -1
  33. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ import type { GridProps } from './grid.types';
2
+ export declare const defaultGridProps: Required<Omit<GridProps, 'rowGap' | 'columnGap'>>;
3
+ //# sourceMappingURL=grid.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid.constants.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/grid/grid.constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CACtC,IAAI,CAAE,SAAS,EAAE,QAAQ,GAAG,WAAW,CAAE,CAIzC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import './grid';
2
+ //# sourceMappingURL=grid.cy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid.cy.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/grid/grid.cy.ts"],"names":[],"mappings":"AAKA,OAAO,QAAQ,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { LitElement, type PropertyValues } from 'lit';
2
+ import type { GridProps } from './grid.types';
3
+ export declare class Grid extends LitElement {
4
+ static styles: import("lit").CSSResult[];
5
+ static get properties(): {
6
+ gap: {
7
+ type: StringConstructor;
8
+ };
9
+ rowGap: {
10
+ type: StringConstructor;
11
+ attribute: string;
12
+ };
13
+ columnGap: {
14
+ type: StringConstructor;
15
+ attribute: string;
16
+ };
17
+ minColumnWidth: {
18
+ type: StringConstructor;
19
+ attribute: string;
20
+ };
21
+ };
22
+ gap: GridProps['gap'];
23
+ rowGap: GridProps['rowGap'];
24
+ columnGap: GridProps['columnGap'];
25
+ minColumnWidth: GridProps['minColumnWidth'];
26
+ constructor();
27
+ protected update(changedProperties: PropertyValues<GridProps>): void;
28
+ render(): import("lit-html").TemplateResult<1>;
29
+ }
30
+ declare global {
31
+ interface HTMLElementTagNameMap {
32
+ 'm-grid': Grid;
33
+ }
34
+ }
35
+ //# sourceMappingURL=grid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/grid/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,qBAAa,IAAK,SAAQ,UAAU;IACnC,OAAgB,MAAM,4BAAoB;IAE1C,WAAoB,UAAU;;;;;;;;;;;;;;;;MAO7B;IAEO,GAAG,EAAE,SAAS,CAAE,KAAK,CAAE,CAAC;IACxB,MAAM,EAAE,SAAS,CAAE,QAAQ,CAAE,CAAC;IAC9B,SAAS,EAAE,SAAS,CAAE,WAAW,CAAE,CAAC;IACpC,cAAc,EAAE,SAAS,CAAE,gBAAgB,CAAE,CAAC;;cASnC,MAAM,CACxB,iBAAiB,EAAE,cAAc,CAAE,SAAS,CAAE,GAC5C,IAAI;IAkCE,MAAM;CAGf;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,QAAQ,EAAE,IAAI,CAAC;KACf;CACD"}
@@ -0,0 +1,2 @@
1
+ export declare function gridStyles(): import("lit").CSSResult;
2
+ //# sourceMappingURL=grid.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/grid/grid.styles.ts"],"names":[],"mappings":"AAMA,wBAAgB,UAAU,4BAmBzB"}
@@ -0,0 +1,27 @@
1
+ import type { SpacingToken } from '@loadsmart/miranda-tokens';
2
+ export declare type GridProps = {
3
+ /**
4
+ * Spacing token for the grid gap.
5
+ * @default 'spacing-4'
6
+ */
7
+ gap?: SpacingToken;
8
+ /**
9
+ * Spacing token for the vertical grid gap.
10
+ */
11
+ rowGap?: SpacingToken;
12
+ /**
13
+ * Spacing token for the horizontal grid gap.
14
+ */
15
+ columnGap?: SpacingToken;
16
+ /**
17
+ * Value for the minimum width applied to the grid template columns.
18
+ * @default 'value for spacing-30 token'
19
+ */
20
+ minColumnWidth?: string;
21
+ };
22
+ export declare type GridAttributes = Pick<GridProps, 'gap'> & {
23
+ 'row-gap': GridProps['rowGap'];
24
+ 'column-gap': GridProps['columnGap'];
25
+ 'min-column-width': GridProps['minColumnWidth'];
26
+ };
27
+ //# sourceMappingURL=grid.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid.types.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/grid/grid.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,oBAAY,SAAS,GAAG;IACvB;;;OAGG;IACH,GAAG,CAAC,EAAE,YAAY,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,oBAAY,cAAc,GAAG,IAAI,CAAE,SAAS,EAAE,KAAK,CAAE,GAAG;IACvD,SAAS,EAAE,SAAS,CAAE,QAAQ,CAAE,CAAC;IACjC,YAAY,EAAE,SAAS,CAAE,WAAW,CAAE,CAAC;IACvC,kBAAkB,EAAE,SAAS,CAAE,gBAAgB,CAAE,CAAC;CAClD,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { Grid } from './grid';
2
+ export { defaultGridProps } from './grid.constants';
3
+ export type { GridProps, GridAttributes } from './grid.types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/grid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
@@ -1,5 +1,8 @@
1
+ export { ALIGN_ITEMS_VALUES, JUSTIFY_CONTENT_VALUES } from './layout.constants';
2
+ export type { JustifyContentValue, AlignItemsValue } from './layout.types';
1
3
  export * from './box';
2
4
  export * from './group';
3
5
  export * from './stack';
4
- export type { JustifyContentValue, AlignItemsValue } from './layout.types';
6
+ export * from './grid';
7
+ export * from './sidebar';
5
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAChF,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3E,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const ALIGN_ITEMS_VALUES: readonly ["center", "flex-start", "flex-end", "stretch"];
2
+ export declare const JUSTIFY_CONTENT_VALUES: readonly ["center", "flex-start", "flex-end", "space-between", "space-around", "space-evenly"];
3
+ //# sourceMappingURL=layout.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.constants.d.ts","sourceRoot":"","sources":["../../../src/components/layout/layout.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,0DAKrB,CAAC;AAEX,eAAO,MAAM,sBAAsB,gGAOzB,CAAC"}
@@ -1,5 +1,4 @@
1
- export declare const ALIGN_ITEMS_VALUES: readonly ["center", "flex-start", "flex-end", "stretch"];
1
+ import { ALIGN_ITEMS_VALUES, JUSTIFY_CONTENT_VALUES } from './layout.constants';
2
2
  export declare type AlignItemsValue = typeof ALIGN_ITEMS_VALUES[number];
3
- export declare const JUSTIFY_CONTENT_VALUES: readonly ["center", "flex-start", "flex-end", "space-between", "space-around", "space-evenly"];
4
3
  export declare type JustifyContentValue = typeof JUSTIFY_CONTENT_VALUES[number];
5
4
  //# sourceMappingURL=layout.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"layout.types.d.ts","sourceRoot":"","sources":["../../../src/components/layout/layout.types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,0DAA4D,CAAC;AAE5F,oBAAY,eAAe,GAAG,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAEhE,eAAO,MAAM,sBAAsB,gGAOzB,CAAC;AAEX,oBAAY,mBAAmB,GAAG,OAAO,sBAAsB,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"layout.types.d.ts","sourceRoot":"","sources":["../../../src/components/layout/layout.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,oBAAY,eAAe,GAAG,OAAO,kBAAkB,CAAE,MAAM,CAAE,CAAC;AAElE,oBAAY,mBAAmB,GAAG,OAAO,sBAAsB,CAAE,MAAM,CAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { Sidebar } from './sidebar';
2
+ export { defaultSidebarProps } from './sidebar.constants';
3
+ export type { SidebarProps, SidebarAttributes } from './sidebar.types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/sidebar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { SidebarProps } from './sidebar.types';
2
+ export declare const defaultSidebarProps: Required<SidebarProps>;
3
+ //# sourceMappingURL=sidebar.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.constants.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/sidebar/sidebar.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAE,YAAY,CAKvD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import './sidebar';
2
+ //# sourceMappingURL=sidebar.cy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.cy.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/sidebar/sidebar.cy.ts"],"names":[],"mappings":"AAMA,OAAO,WAAW,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { LitElement, type PropertyValues } from 'lit';
2
+ import type { SidebarProps } from './sidebar.types';
3
+ export declare class Sidebar extends LitElement {
4
+ static styles: import("lit").CSSResult[];
5
+ static get properties(): {
6
+ gap: {
7
+ type: StringConstructor;
8
+ };
9
+ sideWidth: {
10
+ type: StringConstructor;
11
+ attribute: string;
12
+ };
13
+ minContentWidth: {
14
+ type: StringConstructor;
15
+ attribute: string;
16
+ };
17
+ reversed: {
18
+ type: BooleanConstructor;
19
+ };
20
+ };
21
+ gap: SidebarProps['gap'];
22
+ sideWidth: SidebarProps['sideWidth'];
23
+ minContentWidth: SidebarProps['minContentWidth'];
24
+ reversed: SidebarProps['reversed'];
25
+ constructor();
26
+ protected update(changedProperties: PropertyValues<SidebarProps>): void;
27
+ render(): import("lit-html").TemplateResult<1>;
28
+ }
29
+ declare global {
30
+ interface HTMLElementTagNameMap {
31
+ 'm-sidebar': Sidebar;
32
+ }
33
+ }
34
+ //# sourceMappingURL=sidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/sidebar/sidebar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAIpD,qBAAa,OAAQ,SAAQ,UAAU;IACtC,OAAgB,MAAM,4BAAuB;IAE7C,WAAoB,UAAU;;;;;;;;;;;;;;;MAO7B;IAEO,GAAG,EAAE,YAAY,CAAE,KAAK,CAAE,CAAC;IAC3B,SAAS,EAAE,YAAY,CAAE,WAAW,CAAE,CAAC;IACvC,eAAe,EAAE,YAAY,CAAE,iBAAiB,CAAE,CAAC;IACnD,QAAQ,EAAE,YAAY,CAAE,UAAU,CAAE,CAAC;;cAW1B,MAAM,CACxB,iBAAiB,EAAE,cAAc,CAAE,YAAY,CAAE,GAC/C,IAAI;IA6BE,MAAM;CAMf;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,WAAW,EAAE,OAAO,CAAC;KACrB;CACD"}
@@ -0,0 +1,3 @@
1
+ export declare function getFlexDirectionValue(reversed?: boolean): "row-reverse" | "row";
2
+ export declare function sidebarStyles(): import("lit").CSSResult;
3
+ //# sourceMappingURL=sidebar.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/sidebar/sidebar.styles.ts"],"names":[],"mappings":"AAMA,wBAAgB,qBAAqB,CAAE,QAAQ,CAAC,EAAE,OAAO,yBAExD;AAED,wBAAgB,aAAa,4BA8B5B"}
@@ -0,0 +1,28 @@
1
+ import type { SpacingToken } from '@loadsmart/miranda-tokens';
2
+ export declare type SidebarProps = {
3
+ /**
4
+ * Spacing token for the gap between the sidebar and the content.
5
+ * @default 'spacing-4'
6
+ */
7
+ gap?: SpacingToken;
8
+ /**
9
+ * The width value for the sidebar.
10
+ * @default 'auto'
11
+ */
12
+ sideWidth?: string;
13
+ /**
14
+ * The minimum width value for the content.
15
+ * @default '50%'
16
+ */
17
+ minContentWidth?: string;
18
+ /**
19
+ * If true, the flex-direction for the container will be row-reversed.
20
+ * @default 'false'
21
+ */
22
+ reversed?: boolean;
23
+ };
24
+ export declare type SidebarAttributes = Pick<SidebarProps, 'gap' | 'reversed'> & {
25
+ 'side-width': SidebarProps['sideWidth'];
26
+ 'min-content-width': SidebarProps['minContentWidth'];
27
+ };
28
+ //# sourceMappingURL=sidebar.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.types.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/sidebar/sidebar.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,oBAAY,YAAY,GAAG;IAC1B;;;OAGG;IACH,GAAG,CAAC,EAAE,YAAY,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,oBAAY,iBAAiB,GAAG,IAAI,CAAE,YAAY,EAAE,KAAK,GAAG,UAAU,CAAE,GAAG;IAC1E,YAAY,EAAE,YAAY,CAAE,WAAW,CAAE,CAAC;IAC1C,mBAAmB,EAAE,YAAY,CAAE,iBAAiB,CAAE,CAAC;CACvD,CAAC"}