@odx/foundation 1.0.0-beta.184 → 1.0.0-beta.185
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 +23 -0
- package/dist/components/area-header/area-header.d.ts +1 -1
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/logo/logo.d.ts +1 -1
- package/dist/components/main.d.ts +0 -2
- package/dist/components/text/text.d.ts +1 -1
- package/dist/components/title/title.d.ts +1 -1
- package/dist/components.js +137 -184
- package/dist/css.css +1 -1
- package/dist/lib/control/option-control.d.ts +1 -1
- package/dist/lib/models/{placement.d.ts → layout.d.ts} +25 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.js +67 -45
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/dist/components/auto-grid/auto-grid.d.ts +0 -16
- package/dist/components/spacer/spacer.d.ts +0 -12
package/README.md
CHANGED
|
@@ -76,6 +76,29 @@ import '@odx/foundation/css/native'; // JS
|
|
|
76
76
|
@import '@odx/foundation/dist/cssNative.css';
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
+
### Framework integration
|
|
80
|
+
|
|
81
|
+
We currently do not provide any framework specific integration for the `@odx/foundation` package. However, you can easily integrate the web components into your framework of choice by following the standard practices for using web components in that framework.
|
|
82
|
+
|
|
83
|
+
#### Angular Example
|
|
84
|
+
|
|
85
|
+
```typescript
|
|
86
|
+
import { Directive, input } from '@angular/core';
|
|
87
|
+
|
|
88
|
+
@Directive({
|
|
89
|
+
selector: 'odx-title',
|
|
90
|
+
host: { '[attr.size]': 'size() || null' },
|
|
91
|
+
})
|
|
92
|
+
export class Title {
|
|
93
|
+
size = input<'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'>();
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
#### React Example
|
|
98
|
+
|
|
99
|
+
See <odx-link href="https://lit.dev/docs/frameworks/react/" target="_blank" strong>Lit documentation</odx-link> for more information on how to use web components in React.
|
|
100
|
+
|
|
101
|
+
|
|
79
102
|
|
|
80
103
|
### Documentation
|
|
81
104
|
|
|
@@ -19,7 +19,7 @@ export declare const AreaHeaderSize: Pick<{
|
|
|
19
19
|
readonly LG: "lg";
|
|
20
20
|
readonly XL: "xl";
|
|
21
21
|
readonly XXL: "xxl";
|
|
22
|
-
}, "
|
|
22
|
+
}, "SM" | "MD" | "LG" | "XS" | "XL">;
|
|
23
23
|
export declare class OdxAreaHeader extends CustomElement {
|
|
24
24
|
#private;
|
|
25
25
|
alignment: AreaHeaderAlignment;
|
|
@@ -18,7 +18,7 @@ export declare const AvatarSize: Pick<{
|
|
|
18
18
|
readonly LG: "lg";
|
|
19
19
|
readonly XL: "xl";
|
|
20
20
|
readonly XXL: "xxl";
|
|
21
|
-
}, "
|
|
21
|
+
}, "SM" | "MD" | "LG" | "XS" | "XL" | "XXL">;
|
|
22
22
|
export type AvatarVariant = ValuesOf<typeof AvatarVariant>;
|
|
23
23
|
export declare const AvatarVariant: Pick<{
|
|
24
24
|
readonly NEUTRAL: "neutral";
|
|
@@ -12,7 +12,7 @@ export declare const LogoSize: Pick<{
|
|
|
12
12
|
readonly LG: "lg";
|
|
13
13
|
readonly XL: "xl";
|
|
14
14
|
readonly XXL: "xxl";
|
|
15
|
-
}, "
|
|
15
|
+
}, "SM" | "MD" | "LG" | "XS" | "XL">;
|
|
16
16
|
export declare class OdxLogo extends CustomElement {
|
|
17
17
|
size: LogoSize;
|
|
18
18
|
compact: boolean;
|
|
@@ -6,7 +6,6 @@ export * from './action-group/action-group.js';
|
|
|
6
6
|
export * from './anchor-navigation/index.js';
|
|
7
7
|
export * from './area-footer/area-footer.js';
|
|
8
8
|
export * from './area-header/area-header.js';
|
|
9
|
-
export * from './auto-grid/auto-grid.js';
|
|
10
9
|
export * from './avatar/avatar.js';
|
|
11
10
|
export * from './badge/badge.js';
|
|
12
11
|
export * from './breadcrumbs/breadcrumbs.js';
|
|
@@ -62,7 +61,6 @@ export * from './select/select.js';
|
|
|
62
61
|
export * from './separator/separator.js';
|
|
63
62
|
export * from './skeleton/skeleton.js';
|
|
64
63
|
export * from './slider/index.js';
|
|
65
|
-
export * from './spacer/spacer.js';
|
|
66
64
|
export * from './spinbox/spinbox.js';
|
|
67
65
|
export * from './status/status.js';
|
|
68
66
|
export * from './switch/switch.js';
|
|
@@ -12,7 +12,7 @@ export declare const TextSize: Pick<{
|
|
|
12
12
|
readonly LG: "lg";
|
|
13
13
|
readonly XL: "xl";
|
|
14
14
|
readonly XXL: "xxl";
|
|
15
|
-
}, "
|
|
15
|
+
}, "SM" | "MD" | "LG" | "XS">;
|
|
16
16
|
export type TextVariant = ValuesOf<typeof TextVariant>;
|
|
17
17
|
export declare const TextVariant: Pick<{
|
|
18
18
|
readonly NEUTRAL: "neutral";
|
|
@@ -11,10 +11,10 @@ export declare const TitleSize: {
|
|
|
11
11
|
readonly 'DISPLAY-MD': "display-md";
|
|
12
12
|
readonly 'DISPLAY-LG': "display-lg";
|
|
13
13
|
readonly 'DISPLAY-XL': "display-xl";
|
|
14
|
-
readonly XS: "xs";
|
|
15
14
|
readonly SM: "sm";
|
|
16
15
|
readonly MD: "md";
|
|
17
16
|
readonly LG: "lg";
|
|
17
|
+
readonly XS: "xs";
|
|
18
18
|
readonly XL: "xl";
|
|
19
19
|
readonly XXL: "xxl";
|
|
20
20
|
};
|