@loadsmart/miranda-wc 1.3.0 → 1.5.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/box/box.constants.d.ts +3 -0
  2. package/dist/components/layout/box/box.constants.d.ts.map +1 -0
  3. package/dist/components/layout/box/box.cy.d.ts +2 -0
  4. package/dist/components/layout/box/box.cy.d.ts.map +1 -0
  5. package/dist/components/layout/box/box.d.ts +45 -0
  6. package/dist/components/layout/box/box.d.ts.map +1 -0
  7. package/dist/components/layout/box/box.styles.d.ts +2 -0
  8. package/dist/components/layout/box/box.styles.d.ts.map +1 -0
  9. package/dist/components/layout/box/box.types.d.ts +40 -0
  10. package/dist/components/layout/box/box.types.d.ts.map +1 -0
  11. package/dist/components/layout/box/index.d.ts +4 -0
  12. package/dist/components/layout/box/index.d.ts.map +1 -0
  13. package/dist/components/layout/group/group.constants.d.ts +3 -0
  14. package/dist/components/layout/group/group.constants.d.ts.map +1 -0
  15. package/dist/components/layout/group/group.cy.d.ts +2 -0
  16. package/dist/components/layout/group/group.cy.d.ts.map +1 -0
  17. package/dist/components/layout/group/group.d.ts +28 -0
  18. package/dist/components/layout/group/group.d.ts.map +1 -0
  19. package/dist/components/layout/group/group.styles.d.ts +2 -0
  20. package/dist/components/layout/group/group.styles.d.ts.map +1 -0
  21. package/dist/components/layout/group/group.types.d.ts +21 -0
  22. package/dist/components/layout/group/group.types.d.ts.map +1 -0
  23. package/dist/components/layout/group/index.d.ts +4 -0
  24. package/dist/components/layout/group/index.d.ts.map +1 -0
  25. package/dist/components/layout/index.d.ts +4 -0
  26. package/dist/components/layout/index.d.ts.map +1 -0
  27. package/dist/components/layout/layout.types.d.ts +5 -0
  28. package/dist/components/layout/layout.types.d.ts.map +1 -0
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +228 -197
  32. package/dist/index.js.map +1 -1
  33. package/package.json +2 -1
@@ -0,0 +1,3 @@
1
+ import type { BoxProps } from "./box.types";
2
+ export declare const defaultBoxProps: Required<Omit<BoxProps, 'backgroundColor'>>;
3
+ //# sourceMappingURL=box.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box.constants.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/box/box.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAMvE,CAAC"}
@@ -0,0 +1,2 @@
1
+ import './box';
2
+ //# sourceMappingURL=box.cy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box.cy.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/box/box.cy.ts"],"names":[],"mappings":"AAKA,OAAO,OAAO,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { LitElement, type PropertyValues } from 'lit';
2
+ import type { BoxProps } from './box.types';
3
+ export declare class Box extends LitElement {
4
+ static styles: import("lit").CSSResult[];
5
+ static get properties(): {
6
+ padding: {
7
+ type: StringConstructor;
8
+ };
9
+ backgroundColor: {
10
+ type: StringConstructor;
11
+ attribute: string;
12
+ };
13
+ borderRadius: {
14
+ type: StringConstructor;
15
+ attribute: string;
16
+ };
17
+ borderWidth: {
18
+ type: StringConstructor;
19
+ attribute: string;
20
+ };
21
+ borderColor: {
22
+ type: StringConstructor;
23
+ attribute: string;
24
+ };
25
+ textAlign: {
26
+ type: StringConstructor;
27
+ attribute: string;
28
+ };
29
+ };
30
+ padding: BoxProps['padding'];
31
+ backgroundColor: BoxProps['backgroundColor'];
32
+ borderRadius: BoxProps['borderRadius'];
33
+ borderWidth: BoxProps['borderWidth'];
34
+ borderColor: BoxProps['borderColor'];
35
+ textAlign: BoxProps['textAlign'];
36
+ constructor();
37
+ protected update(changedProperties: PropertyValues<BoxProps>): void;
38
+ render(): import("lit-html").TemplateResult<1>;
39
+ }
40
+ declare global {
41
+ interface HTMLElementTagNameMap {
42
+ 'm-box': Box;
43
+ }
44
+ }
45
+ //# sourceMappingURL=box.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/box/box.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAI5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,qBAAa,GAAI,SAAQ,UAAU;IAClC,OAAgB,MAAM,4BAAiB;IAEvC,WAAoB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;MAS7B;IAEO,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC7B,eAAe,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IAC7C,YAAY,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;IACvC,WAAW,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IACrC,WAAW,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IACrC,SAAS,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;;cAYtB,MAAM,CAAC,iBAAiB,EAAE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI;IAWnE,MAAM;CAGf;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,OAAO,EAAE,GAAG,CAAC;KACb;CACD"}
@@ -0,0 +1,2 @@
1
+ export declare function boxStyles(): import("lit").CSSResult;
2
+ //# sourceMappingURL=box.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/box/box.styles.ts"],"names":[],"mappings":"AAOA,wBAAgB,SAAS,4BAqBxB"}
@@ -0,0 +1,40 @@
1
+ import type { SpacingToken, ColorToken, BorderRadiusToken, BorderWidthToken } from '@loadsmart/miranda-tokens';
2
+ export declare type BoxProps = {
3
+ /**
4
+ * Spacing token for padding.
5
+ * @default 'spacing-4'
6
+ */
7
+ padding?: SpacingToken;
8
+ /**
9
+ * Color token for background-color. If not provided, the background would be transparent.
10
+ */
11
+ backgroundColor?: ColorToken;
12
+ /**
13
+ * Border token for border-radius.
14
+ * @default 'border-radius-s'
15
+ */
16
+ borderRadius?: BorderRadiusToken;
17
+ /**
18
+ * Border token for border-width.
19
+ * @default 'border-none'
20
+ */
21
+ borderWidth?: BorderWidthToken;
22
+ /**
23
+ * Color token for border.
24
+ * @default 'color-background-highlight'
25
+ */
26
+ borderColor?: ColorToken;
27
+ /**
28
+ * Text alignment value.
29
+ * @default 'left'
30
+ */
31
+ textAlign?: 'left' | 'center' | 'right';
32
+ };
33
+ export declare type BoxAttributes = Pick<BoxProps, 'padding'> & {
34
+ 'background-color': BoxProps['backgroundColor'];
35
+ 'border-radius': BoxProps['borderRadius'];
36
+ 'border-width': BoxProps['borderWidth'];
37
+ 'border-color': BoxProps['borderColor'];
38
+ 'text-align': BoxProps['textAlign'];
39
+ };
40
+ //# sourceMappingURL=box.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box.types.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/box/box.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE/G,oBAAY,QAAQ,GAAG;IACtB;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC;;;OAGG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;CACxC,CAAC;AAEF,oBAAY,aAAa,GAAG,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG;IACvD,kBAAkB,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IAChD,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;IAC1C,cAAc,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IACxC,cAAc,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IACxC,YAAY,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;CACpC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { Box } from './box';
2
+ export { defaultBoxProps } from './box.constants';
3
+ export type { BoxProps, BoxAttributes } from './box.types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { GroupProps } from "./group.types";
2
+ export declare const defaultGroupProps: Required<GroupProps>;
3
+ //# sourceMappingURL=group.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.constants.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/group/group.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,UAAU,CAIlD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import './group';
2
+ //# sourceMappingURL=group.cy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.cy.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/group/group.cy.ts"],"names":[],"mappings":"AAKA,OAAO,SAAS,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { LitElement, type PropertyValues } from 'lit';
2
+ import type { GroupProps } from './group.types';
3
+ export declare class Group extends LitElement {
4
+ static styles: import("lit").CSSResult[];
5
+ static get properties(): {
6
+ gap: {
7
+ type: StringConstructor;
8
+ };
9
+ align: {
10
+ type: StringConstructor;
11
+ };
12
+ justify: {
13
+ type: StringConstructor;
14
+ };
15
+ };
16
+ gap: GroupProps['gap'];
17
+ align: GroupProps['align'];
18
+ justify: GroupProps['justify'];
19
+ constructor();
20
+ protected update(changedProperties: PropertyValues<GroupProps>): void;
21
+ render(): import("lit-html").TemplateResult<1>;
22
+ }
23
+ declare global {
24
+ interface HTMLElementTagNameMap {
25
+ 'm-group': Group;
26
+ }
27
+ }
28
+ //# sourceMappingURL=group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/group/group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,qBAAa,KAAM,SAAQ,UAAU;IACpC,OAAgB,MAAM,4BAAmB;IAEzC,WAAoB,UAAU;;;;;;;;;;MAM7B;IAEO,GAAG,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IACvB,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC3B,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;;cAUpB,MAAM,CAAC,iBAAiB,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI;IAQrE,MAAM;CAGf;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,SAAS,EAAE,KAAK,CAAC;KACjB;CACD"}
@@ -0,0 +1,2 @@
1
+ export declare function groupStyles(): import("lit").CSSResult;
2
+ //# sourceMappingURL=group.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/group/group.styles.ts"],"names":[],"mappings":"AAMA,wBAAgB,WAAW,4BAc1B"}
@@ -0,0 +1,21 @@
1
+ import type { SpacingToken } from '@loadsmart/miranda-tokens';
2
+ import type { JustifyContentValue, AlignItemsValue } from '../layout.types';
3
+ export declare type GroupProps = {
4
+ /**
5
+ * Spacing token for the gap between the children.
6
+ * @default 'spacing-4'
7
+ */
8
+ gap?: SpacingToken;
9
+ /**
10
+ * Value for align-items.
11
+ * @default 'stretch'
12
+ */
13
+ align?: AlignItemsValue;
14
+ /**
15
+ * Value for justify-content.
16
+ * @default 'flex-start'
17
+ */
18
+ justify?: JustifyContentValue;
19
+ };
20
+ export declare type GroupAttributes = GroupProps;
21
+ //# sourceMappingURL=group.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.types.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/group/group.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAE5E,oBAAY,UAAU,GAAG;IACxB;;;OAGG;IACH,GAAG,CAAC,EAAE,YAAY,CAAC;IACnB;;;OAGG;IACF,KAAK,CAAC,EAAE,eAAe,CAAC;IACzB;;;OAGG;IACF,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B,CAAC;AAEF,oBAAY,eAAe,GAAG,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { Group } from './group';
2
+ export { defaultGroupProps } from './group.constants';
3
+ export type { GroupProps, GroupAttributes } from './group.types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/group/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './box';
2
+ export * from './group';
3
+ export type { JustifyContentValue, AlignItemsValue } from './layout.types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const ALIGN_ITEMS_VALUES: readonly ["center", "flex-start", "flex-end", "stretch"];
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
+ export declare type JustifyContentValue = typeof JUSTIFY_CONTENT_VALUES[number];
5
+ //# sourceMappingURL=layout.types.d.ts.map
@@ -0,0 +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"}
package/dist/index.d.ts CHANGED
@@ -2,5 +2,6 @@ export * from './components/text';
2
2
  export * from './components/card';
3
3
  export * from './components/divider';
4
4
  export * from './components/progress-bar';
5
+ export * from './components/layout';
5
6
  export * from './components/button';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC"}