@sebgroup/green-core 2.6.1 → 2.6.2
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/components/button/button.component.d.ts +1 -1
- package/components/button/button.styles.js +2 -2
- package/components/grid/grid.component.d.ts +3 -18
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/pure.d.ts +8 -0
- package/components/pure.js +8 -0
- package/components/sensitive/index.d.ts +2 -0
- package/components/sensitive/index.js +2 -0
- package/gds-element.js +1 -1
- package/generated/react/index.d.ts +6 -6
- package/generated/react/index.js +6 -6
- package/package.json +1 -1
- package/utils/helpers/custom-element-scoping.js +1 -1
- package/utils/helpers/style-expression-parser-tester.js +12 -8
|
@@ -27,7 +27,7 @@ declare class Button extends GdsFormControlElement<any> {
|
|
|
27
27
|
*/
|
|
28
28
|
variant: 'brand' | 'neutral' | 'positive' | 'negative' | 'notice' | 'warning';
|
|
29
29
|
/**
|
|
30
|
-
* Sets the size of the button. Defaults to "
|
|
30
|
+
* Sets the size of the button. Defaults to "medium".
|
|
31
31
|
*/
|
|
32
32
|
size: 'xs' | 'small' | 'medium' | 'large';
|
|
33
33
|
/**
|
|
@@ -142,8 +142,8 @@ const style = css`
|
|
|
142
142
|
|
|
143
143
|
@layer sizes {
|
|
144
144
|
:host([size='xs']) .button {
|
|
145
|
-
--_block-size: var(--gds-sys-space-
|
|
146
|
-
gap: var(--gds-sys-space-
|
|
145
|
+
--_block-size: var(--gds-sys-space-xl);
|
|
146
|
+
gap: var(--gds-sys-space-3xs);
|
|
147
147
|
font: var(--gds-sys-text-detail-book-xs);
|
|
148
148
|
padding-inline: var(--gds-sys-space-s);
|
|
149
149
|
}
|
|
@@ -8,30 +8,15 @@ import { GdsDiv } from '../div/div.component';
|
|
|
8
8
|
export declare class GdsGrid extends GdsDiv {
|
|
9
9
|
static styles: (import("lit").CSSResult | import("lit").CSSResult[])[];
|
|
10
10
|
/**
|
|
11
|
-
* The number of columns
|
|
12
|
-
* @example
|
|
13
|
-
* ```html
|
|
14
|
-
* <gds-grid columns="2"></gds-grid> <!-- applies to all breakpoints -->
|
|
15
|
-
* <gds-grid columns="l{8} m{4} s{2}"></gds-grid> <!-- different values for each breakpoint -->
|
|
16
|
-
* ```
|
|
11
|
+
* The number of columns to divide the space into. Accepts a unitless number. Example: `1; m { 2 }; l { 4 }` to vary number of columns based on viewport size.
|
|
17
12
|
*/
|
|
18
13
|
columns?: string;
|
|
19
14
|
/**
|
|
20
|
-
* Defines the gap size between grid items.
|
|
21
|
-
* @example
|
|
22
|
-
* ```html
|
|
23
|
-
* <gds-grid gap="m"></gds-grid> <!-- applies to all breakpoints -->
|
|
24
|
-
* <gds-grid gap="l{m} m{s} s{xs}"></gds-grid> <!-- different values for each breakpoint -->
|
|
25
|
-
* ```
|
|
15
|
+
* Defines the gap size between grid items. Uses same format as the CSS gap property, and expects space tokens. This can be a single value that applies to all breakpoints, or a string of three space-separated tokens in the format "l:desktop m:tablet s:mobile", each token specifying the gap size for that device type respectively.
|
|
26
16
|
*/
|
|
27
17
|
gap?: string;
|
|
28
18
|
/**
|
|
29
|
-
* Defines the minimum column width. If set, the grid adjusts column size based on content and available width, even without other attributes.
|
|
30
|
-
* @example
|
|
31
|
-
* ```html
|
|
32
|
-
* <gds-grid auto-columns="200px"></gds-grid> <!-- applies to all breakpoints -->
|
|
33
|
-
* <gds-grid auto-columns="l{200px} m{100px} s{80px}"></gds-grid> <!-- different values for each breakpoint -->
|
|
34
|
-
* ```
|
|
19
|
+
* Defines the minimum column width. If set, the grid adjusts column size based on content and available width, even without other attributes. Accepts any valid CSS units.
|
|
35
20
|
*/
|
|
36
21
|
'auto-columns'?: string;
|
|
37
22
|
render(): any;
|
package/components/index.d.ts
CHANGED
package/components/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export * from "../primitives/menu/menu-heading.js";
|
|
|
3
3
|
export * from "../primitives/menu/menu-item.js";
|
|
4
4
|
export * from "./alert/index.js";
|
|
5
5
|
export * from "./badge/index.js";
|
|
6
|
+
export * from "./blur/index.js";
|
|
6
7
|
export * from "./breadcrumbs/index.js";
|
|
7
8
|
export * from "./button/index.js";
|
|
8
9
|
export * from "./card/card.js";
|
package/components/pure.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export * from '../primitives/listbox/option.component';
|
|
2
2
|
export * from '../primitives/menu/menu-heading.component';
|
|
3
3
|
export * from '../primitives/menu/menu-item.component';
|
|
4
|
+
export * from './alert/alert.component';
|
|
4
5
|
export * from './badge/badge.component';
|
|
6
|
+
export * from './blur/blur.component';
|
|
5
7
|
export * from './breadcrumbs/breadcrumbs.component';
|
|
6
8
|
export * from './button/button.component';
|
|
9
|
+
export * from './calendar/calendar.component';
|
|
7
10
|
export * from './card/card.component';
|
|
8
11
|
export * from './checkbox/checkbox-group/checkbox-group.component';
|
|
9
12
|
export * from './checkbox/checkbox.component';
|
|
@@ -14,6 +17,7 @@ export * from './dialog/dialog.component';
|
|
|
14
17
|
export * from './div/div.component';
|
|
15
18
|
export * from './divider/divider.component';
|
|
16
19
|
export * from './dropdown/dropdown.component';
|
|
20
|
+
export * from './fab/fab.component';
|
|
17
21
|
export * from './filter-chips/filter-chips.component';
|
|
18
22
|
export * from './flex/flex.component';
|
|
19
23
|
export * from './form-summary/summary.component';
|
|
@@ -29,7 +33,11 @@ export * from './menu-button/menu-button.component';
|
|
|
29
33
|
export * from './popover/popover.component';
|
|
30
34
|
export * from './radio/radio-group/radio-group.component';
|
|
31
35
|
export * from './radio/radio.component';
|
|
36
|
+
export * from './rich-text/rich-text.component';
|
|
32
37
|
export * from './segmented-control/segmented-control.component';
|
|
38
|
+
export * from './sensitive/number/sensitive-number.component';
|
|
39
|
+
export * from './sensitive/date/sensitive-date.component';
|
|
40
|
+
export * from './sensitive/account/sensitive-account.component';
|
|
33
41
|
export * from './select/select.component';
|
|
34
42
|
export * from './signal/signal.component';
|
|
35
43
|
export * from './spinner/spinner.component';
|
package/components/pure.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export * from "../primitives/listbox/option.component.js";
|
|
2
2
|
export * from "../primitives/menu/menu-heading.component.js";
|
|
3
3
|
export * from "../primitives/menu/menu-item.component.js";
|
|
4
|
+
export * from "./alert/alert.component.js";
|
|
4
5
|
export * from "./badge/badge.component.js";
|
|
6
|
+
export * from "./blur/blur.component.js";
|
|
5
7
|
export * from "./breadcrumbs/breadcrumbs.component.js";
|
|
6
8
|
export * from "./button/button.component.js";
|
|
9
|
+
export * from "./calendar/calendar.component.js";
|
|
7
10
|
export * from "./card/card.component.js";
|
|
8
11
|
export * from "./checkbox/checkbox-group/checkbox-group.component.js";
|
|
9
12
|
export * from "./checkbox/checkbox.component.js";
|
|
@@ -14,6 +17,7 @@ export * from "./dialog/dialog.component.js";
|
|
|
14
17
|
export * from "./div/div.component.js";
|
|
15
18
|
export * from "./divider/divider.component.js";
|
|
16
19
|
export * from "./dropdown/dropdown.component.js";
|
|
20
|
+
export * from "./fab/fab.component.js";
|
|
17
21
|
export * from "./filter-chips/filter-chips.component.js";
|
|
18
22
|
export * from "./flex/flex.component.js";
|
|
19
23
|
export * from "./form-summary/summary.component.js";
|
|
@@ -29,7 +33,11 @@ export * from "./menu-button/menu-button.component.js";
|
|
|
29
33
|
export * from "./popover/popover.component.js";
|
|
30
34
|
export * from "./radio/radio-group/radio-group.component.js";
|
|
31
35
|
export * from "./radio/radio.component.js";
|
|
36
|
+
export * from "./rich-text/rich-text.component.js";
|
|
32
37
|
export * from "./segmented-control/segmented-control.component.js";
|
|
38
|
+
export * from "./sensitive/number/sensitive-number.component.js";
|
|
39
|
+
export * from "./sensitive/date/sensitive-date.component.js";
|
|
40
|
+
export * from "./sensitive/account/sensitive-account.component.js";
|
|
33
41
|
export * from "./select/select.component.js";
|
|
34
42
|
export * from "./signal/signal.component.js";
|
|
35
43
|
export * from "./spinner/spinner.component.js";
|
package/gds-element.js
CHANGED
|
@@ -14,7 +14,7 @@ class GdsElement extends LitElement {
|
|
|
14
14
|
/**
|
|
15
15
|
* The semantic version of this element. Can be used for troubleshooting to verify the version being used.
|
|
16
16
|
*/
|
|
17
|
-
this.semanticVersion = "2.6.
|
|
17
|
+
this.semanticVersion = "2.6.2";
|
|
18
18
|
this._isUsingTransitionalStyles = false;
|
|
19
19
|
this._dynamicStylesController = new DynamicStylesController(this);
|
|
20
20
|
}
|
|
@@ -31,8 +31,8 @@ export * from './backdrop/index.js';
|
|
|
31
31
|
export * from './popover/index.js';
|
|
32
32
|
export * from './radio/index.js';
|
|
33
33
|
export * from './rich-text/index.js';
|
|
34
|
-
export * from './segmented-control/index.js';
|
|
35
34
|
export * from './select/index.js';
|
|
35
|
+
export * from './segmented-control/index.js';
|
|
36
36
|
export * from './signal/index.js';
|
|
37
37
|
export * from './spinner/index.js';
|
|
38
38
|
export * from './text/index.js';
|
|
@@ -49,11 +49,6 @@ export * from './filter-chip/index.js';
|
|
|
49
49
|
export * from './formatted-account/index.js';
|
|
50
50
|
export * from './formatted-date/index.js';
|
|
51
51
|
export * from './formatted-number/index.js';
|
|
52
|
-
export * from './radio-group/index.js';
|
|
53
|
-
export * from './segment/index.js';
|
|
54
|
-
export * from './sensitive-account/index.js';
|
|
55
|
-
export * from './sensitive-number/index.js';
|
|
56
|
-
export * from './sensitive-date/index.js';
|
|
57
52
|
export * from './icons/icon-ai/index.js';
|
|
58
53
|
export * from './icons/icon-airplane-up/index.js';
|
|
59
54
|
export * from './icons/icon-archive/index.js';
|
|
@@ -379,3 +374,8 @@ export * from './icons/icon-youtube/index.js';
|
|
|
379
374
|
export * from './icons/icon-zap/index.js';
|
|
380
375
|
export * from './icons/icon-zoom-in/index.js';
|
|
381
376
|
export * from './icons/icon-zoom-out/index.js';
|
|
377
|
+
export * from './radio-group/index.js';
|
|
378
|
+
export * from './segment/index.js';
|
|
379
|
+
export * from './sensitive-account/index.js';
|
|
380
|
+
export * from './sensitive-date/index.js';
|
|
381
|
+
export * from './sensitive-number/index.js';
|
package/generated/react/index.js
CHANGED
|
@@ -31,8 +31,8 @@ export * from "./backdrop/index.js";
|
|
|
31
31
|
export * from "./popover/index.js";
|
|
32
32
|
export * from "./radio/index.js";
|
|
33
33
|
export * from "./rich-text/index.js";
|
|
34
|
-
export * from "./segmented-control/index.js";
|
|
35
34
|
export * from "./select/index.js";
|
|
35
|
+
export * from "./segmented-control/index.js";
|
|
36
36
|
export * from "./signal/index.js";
|
|
37
37
|
export * from "./spinner/index.js";
|
|
38
38
|
export * from "./text/index.js";
|
|
@@ -49,11 +49,6 @@ export * from "./filter-chip/index.js";
|
|
|
49
49
|
export * from "./formatted-account/index.js";
|
|
50
50
|
export * from "./formatted-date/index.js";
|
|
51
51
|
export * from "./formatted-number/index.js";
|
|
52
|
-
export * from "./radio-group/index.js";
|
|
53
|
-
export * from "./segment/index.js";
|
|
54
|
-
export * from "./sensitive-account/index.js";
|
|
55
|
-
export * from "./sensitive-number/index.js";
|
|
56
|
-
export * from "./sensitive-date/index.js";
|
|
57
52
|
export * from "./icons/icon-ai/index.js";
|
|
58
53
|
export * from "./icons/icon-airplane-up/index.js";
|
|
59
54
|
export * from "./icons/icon-archive/index.js";
|
|
@@ -379,3 +374,8 @@ export * from "./icons/icon-youtube/index.js";
|
|
|
379
374
|
export * from "./icons/icon-zap/index.js";
|
|
380
375
|
export * from "./icons/icon-zoom-in/index.js";
|
|
381
376
|
export * from "./icons/icon-zoom-out/index.js";
|
|
377
|
+
export * from "./radio-group/index.js";
|
|
378
|
+
export * from "./segment/index.js";
|
|
379
|
+
export * from "./sensitive-account/index.js";
|
|
380
|
+
export * from "./sensitive-date/index.js";
|
|
381
|
+
export * from "./sensitive-number/index.js";
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { inspect } from "util";
|
|
2
2
|
import { parse, toCss, tokenize } from "./style-expression-parser.js";
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
);
|
|
10
|
-
console.log(
|
|
3
|
+
const inspectConfig = { showHidden: false, depth: null, colors: true };
|
|
4
|
+
const expression = "s; m { l }";
|
|
5
|
+
const tokenArray = tokenize(expression);
|
|
6
|
+
const ast = parse(tokenArray);
|
|
7
|
+
const css = toCss(":host", "padding", ast, (v) => `var(--gds-sys-space-${v})`);
|
|
8
|
+
console.log("---- TOKENS ----");
|
|
9
|
+
console.log(inspect(tokenArray, inspectConfig));
|
|
10
|
+
console.log("---- AST ----");
|
|
11
|
+
console.log(inspect(ast, inspectConfig));
|
|
12
|
+
console.log("---- CSS ----");
|
|
13
|
+
console.log(inspect(css, inspectConfig));
|
|
14
|
+
console.log("-------------");
|