agnosticui-core 2.0.0-alpha.11 → 2.0.0-alpha.13
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/dist/VueSelectionButton.vue_vue_type_script_setup_true_lang-DJN-Uk6n.js +24 -0
- package/dist/VueSelectionButtonGroup.vue_vue_type_script_setup_true_lang-CLuww2Ac.js +42 -0
- package/dist/VueSelectionCard.vue_vue_type_script_setup_true_lang-DJiyPsXH.js +24 -0
- package/dist/VueSelectionCardGroup.vue_vue_type_script_setup_true_lang-B2uA4jdK.js +36 -0
- package/dist/components/Button/core/_Button.js +15 -15
- package/dist/components/Fieldset/vue/VueFieldset.vue.d.ts +1 -1
- package/dist/components/SelectionButton/core/SelectionButton.d.ts +9 -0
- package/dist/components/SelectionButton/core/SelectionButton.d.ts.map +1 -0
- package/dist/components/SelectionButton/core/SelectionButton.js +5 -0
- package/dist/components/SelectionButton/core/_SelectionButton.d.ts +47 -0
- package/dist/components/SelectionButton/core/_SelectionButton.d.ts.map +1 -0
- package/dist/components/SelectionButton/core/_SelectionButton.js +474 -0
- package/dist/components/SelectionButton/react/ReactSelectionButton.d.ts +9 -0
- package/dist/components/SelectionButton/react/ReactSelectionButton.d.ts.map +1 -0
- package/dist/components/SelectionButton/react/ReactSelectionButton.js +12 -0
- package/dist/components/SelectionButton/react/index.d.ts +3 -0
- package/dist/components/SelectionButton/react/index.d.ts.map +1 -0
- package/dist/components/SelectionButton/react/index.js +4 -0
- package/dist/components/SelectionButton/vue/VueSelectionButton.js +4 -0
- package/dist/components/SelectionButton/vue/VueSelectionButton.vue.d.ts +55 -0
- package/dist/components/SelectionButton/vue/VueSelectionButton.vue.d.ts.map +1 -0
- package/dist/components/SelectionButton/vue/index.d.ts +6 -0
- package/dist/components/SelectionButton/vue/index.d.ts.map +1 -0
- package/dist/components/SelectionButton/vue/index.js +4 -0
- package/dist/components/SelectionButtonGroup/core/SelectionButtonGroup.d.ts +9 -0
- package/dist/components/SelectionButtonGroup/core/SelectionButtonGroup.d.ts.map +1 -0
- package/dist/components/SelectionButtonGroup/core/SelectionButtonGroup.js +5 -0
- package/dist/components/SelectionButtonGroup/core/_SelectionButtonGroup.d.ts +68 -0
- package/dist/components/SelectionButtonGroup/core/_SelectionButtonGroup.d.ts.map +1 -0
- package/dist/components/SelectionButtonGroup/core/_SelectionButtonGroup.js +199 -0
- package/dist/components/SelectionButtonGroup/react/ReactSelectionButtonGroup.d.ts +13 -0
- package/dist/components/SelectionButtonGroup/react/ReactSelectionButtonGroup.d.ts.map +1 -0
- package/dist/components/SelectionButtonGroup/react/ReactSelectionButtonGroup.js +15 -0
- package/dist/components/SelectionButtonGroup/react/index.d.ts +3 -0
- package/dist/components/SelectionButtonGroup/react/index.d.ts.map +1 -0
- package/dist/components/SelectionButtonGroup/react/index.js +4 -0
- package/dist/components/SelectionButtonGroup/vue/VueSelectionButtonGroup.js +4 -0
- package/dist/components/SelectionButtonGroup/vue/VueSelectionButtonGroup.vue.d.ts +94 -0
- package/dist/components/SelectionButtonGroup/vue/VueSelectionButtonGroup.vue.d.ts.map +1 -0
- package/dist/components/SelectionButtonGroup/vue/index.d.ts +6 -0
- package/dist/components/SelectionButtonGroup/vue/index.d.ts.map +1 -0
- package/dist/components/SelectionButtonGroup/vue/index.js +4 -0
- package/dist/components/SelectionCard/core/SelectionCard.d.ts +9 -0
- package/dist/components/SelectionCard/core/SelectionCard.d.ts.map +1 -0
- package/dist/components/SelectionCard/core/SelectionCard.js +5 -0
- package/dist/components/SelectionCard/core/_SelectionCard.d.ts +39 -0
- package/dist/components/SelectionCard/core/_SelectionCard.d.ts.map +1 -0
- package/dist/components/SelectionCard/core/_SelectionCard.js +318 -0
- package/dist/components/SelectionCard/react/ReactSelectionCard.d.ts +9 -0
- package/dist/components/SelectionCard/react/ReactSelectionCard.d.ts.map +1 -0
- package/dist/components/SelectionCard/react/ReactSelectionCard.js +12 -0
- package/dist/components/SelectionCard/react/index.d.ts +3 -0
- package/dist/components/SelectionCard/react/index.d.ts.map +1 -0
- package/dist/components/SelectionCard/react/index.js +4 -0
- package/dist/components/SelectionCard/vue/VueSelectionCard.js +4 -0
- package/dist/components/SelectionCard/vue/VueSelectionCard.vue.d.ts +55 -0
- package/dist/components/SelectionCard/vue/VueSelectionCard.vue.d.ts.map +1 -0
- package/dist/components/SelectionCard/vue/index.d.ts +6 -0
- package/dist/components/SelectionCard/vue/index.d.ts.map +1 -0
- package/dist/components/SelectionCard/vue/index.js +4 -0
- package/dist/components/SelectionCardGroup/core/SelectionCardGroup.d.ts +9 -0
- package/dist/components/SelectionCardGroup/core/SelectionCardGroup.d.ts.map +1 -0
- package/dist/components/SelectionCardGroup/core/SelectionCardGroup.js +5 -0
- package/dist/components/SelectionCardGroup/core/_SelectionCardGroup.d.ts +59 -0
- package/dist/components/SelectionCardGroup/core/_SelectionCardGroup.d.ts.map +1 -0
- package/dist/components/SelectionCardGroup/core/_SelectionCardGroup.js +193 -0
- package/dist/components/SelectionCardGroup/react/ReactSelectionCardGroup.d.ts +13 -0
- package/dist/components/SelectionCardGroup/react/ReactSelectionCardGroup.d.ts.map +1 -0
- package/dist/components/SelectionCardGroup/react/ReactSelectionCardGroup.js +15 -0
- package/dist/components/SelectionCardGroup/react/index.d.ts +3 -0
- package/dist/components/SelectionCardGroup/react/index.d.ts.map +1 -0
- package/dist/components/SelectionCardGroup/react/index.js +4 -0
- package/dist/components/SelectionCardGroup/vue/VueSelectionCardGroup.js +4 -0
- package/dist/components/SelectionCardGroup/vue/VueSelectionCardGroup.vue.d.ts +79 -0
- package/dist/components/SelectionCardGroup/vue/VueSelectionCardGroup.vue.d.ts.map +1 -0
- package/dist/components/SelectionCardGroup/vue/index.d.ts +6 -0
- package/dist/components/SelectionCardGroup/vue/index.d.ts.map +1 -0
- package/dist/components/SelectionCardGroup/vue/index.js +4 -0
- package/dist/components/Timeline/core/_Timeline.d.ts.map +1 -1
- package/dist/components/Timeline/core/_Timeline.js +8 -3
- package/dist/styles/ag-tokens-dark.css +4 -0
- package/dist/styles/ag-tokens.css +4 -0
- package/package.json +49 -1
- package/src/components/Button/core/_Button.ts +12 -12
- package/src/components/SelectionButton/core/SelectionButton.ts +13 -0
- package/src/components/SelectionButton/core/_SelectionButton.ts +551 -0
- package/src/components/SelectionButton/react/ReactSelectionButton.tsx +16 -0
- package/src/components/SelectionButton/react/index.ts +4 -0
- package/src/components/SelectionButton/vue/VueSelectionButton.vue +33 -0
- package/src/components/SelectionButton/vue/index.ts +5 -0
- package/src/components/SelectionButtonGroup/core/SelectionButtonGroup.ts +13 -0
- package/src/components/SelectionButtonGroup/core/_SelectionButtonGroup.ts +350 -0
- package/src/components/SelectionButtonGroup/react/ReactSelectionButtonGroup.tsx +29 -0
- package/src/components/SelectionButtonGroup/react/index.ts +9 -0
- package/src/components/SelectionButtonGroup/vue/VueSelectionButtonGroup.vue +82 -0
- package/src/components/SelectionButtonGroup/vue/index.ts +5 -0
- package/src/components/SelectionCard/core/SelectionCard.ts +13 -0
- package/src/components/SelectionCard/core/_SelectionCard.ts +384 -0
- package/src/components/SelectionCard/react/ReactSelectionCard.tsx +16 -0
- package/src/components/SelectionCard/react/index.ts +4 -0
- package/src/components/SelectionCard/vue/VueSelectionCard.vue +33 -0
- package/src/components/SelectionCard/vue/index.ts +5 -0
- package/src/components/SelectionCardGroup/core/SelectionCardGroup.ts +13 -0
- package/src/components/SelectionCardGroup/core/_SelectionCardGroup.ts +332 -0
- package/src/components/SelectionCardGroup/react/ReactSelectionCardGroup.tsx +29 -0
- package/src/components/SelectionCardGroup/react/index.ts +9 -0
- package/src/components/SelectionCardGroup/vue/VueSelectionCardGroup.vue +64 -0
- package/src/components/SelectionCardGroup/vue/index.ts +5 -0
- package/src/components/Timeline/core/_Timeline.ts +5 -0
- package/src/styles/ag-tokens-dark.css +4 -0
- package/src/styles/ag-tokens.css +4 -0
- package/src/components/Drawer/v1/dialog--drawer-bottom.hbs +0 -48
- package/src/components/Drawer/v1/dialog--drawer-end.hbs +0 -48
- package/src/components/Drawer/v1/dialog--drawer-start.hbs +0 -48
- package/src/components/Drawer/v1/dialog--drawer-top.hbs +0 -48
- package/src/components/Drawer/v1/dialog-demo.css +0 -13
- package/src/components/Drawer/v1/dialog.config.yml +0 -5
- package/src/components/Drawer/v1/dialog.css +0 -99
- package/src/components/Drawer/v1/dialog.hbs +0 -48
- package/src/components/Drawer/v1/drawer-animations.css +0 -52
- package/src/components/Drawer/v1/drawer.css +0 -50
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent as a, createElementBlock as t, openBlock as o, mergeProps as d, renderSlot as n } from "vue";
|
|
2
|
+
import "./components/SelectionButton/core/SelectionButton.js";
|
|
3
|
+
const c = ["value", "label", ".checked", ".disabled"], i = /* @__PURE__ */ a({
|
|
4
|
+
__name: "VueSelectionButton",
|
|
5
|
+
props: {
|
|
6
|
+
value: { default: "" },
|
|
7
|
+
label: { default: "" },
|
|
8
|
+
checked: { type: Boolean, default: !1 },
|
|
9
|
+
disabled: { type: Boolean, default: !1 }
|
|
10
|
+
},
|
|
11
|
+
setup(e) {
|
|
12
|
+
return (l, s) => (o(), t("ag-selection-button", d({
|
|
13
|
+
value: e.value,
|
|
14
|
+
label: e.label,
|
|
15
|
+
".checked": e.checked,
|
|
16
|
+
".disabled": e.disabled
|
|
17
|
+
}, l.$attrs), [
|
|
18
|
+
n(l.$slots, "default")
|
|
19
|
+
], 48, c));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
i as _
|
|
24
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineComponent as u, createElementBlock as s, openBlock as i, mergeProps as o, renderSlot as c } from "vue";
|
|
2
|
+
import "./components/SelectionButtonGroup/core/SelectionButtonGroup.js";
|
|
3
|
+
const m = ["type", "name", "legend", "legend-hidden", "theme", "size", "shape", "value", "values", ".disabled"], g = /* @__PURE__ */ u({
|
|
4
|
+
__name: "VueSelectionButtonGroup",
|
|
5
|
+
props: {
|
|
6
|
+
type: { default: "radio" },
|
|
7
|
+
name: { default: "" },
|
|
8
|
+
legend: { default: "" },
|
|
9
|
+
legendHidden: { type: Boolean, default: !1 },
|
|
10
|
+
theme: { default: "" },
|
|
11
|
+
size: { default: "md" },
|
|
12
|
+
shape: { default: "" },
|
|
13
|
+
value: { default: "" },
|
|
14
|
+
values: { default: () => [] },
|
|
15
|
+
disabled: { type: Boolean, default: !1 }
|
|
16
|
+
},
|
|
17
|
+
emits: ["selection-change", "update:value", "update:values"],
|
|
18
|
+
setup(e, { emit: d }) {
|
|
19
|
+
const l = d, n = (a) => {
|
|
20
|
+
const t = a.detail;
|
|
21
|
+
l("selection-change", t), t.selectedValues.length <= 1 && l("update:value", t.selectedValues[0] || ""), l("update:values", t.selectedValues);
|
|
22
|
+
};
|
|
23
|
+
return (a, t) => (i(), s("ag-selection-button-group", o({
|
|
24
|
+
type: e.type,
|
|
25
|
+
name: e.name,
|
|
26
|
+
legend: e.legend,
|
|
27
|
+
"legend-hidden": e.legendHidden,
|
|
28
|
+
theme: e.theme,
|
|
29
|
+
size: e.size,
|
|
30
|
+
shape: e.shape,
|
|
31
|
+
value: e.value,
|
|
32
|
+
values: e.values,
|
|
33
|
+
".disabled": e.disabled,
|
|
34
|
+
onSelectionChange: n
|
|
35
|
+
}, a.$attrs), [
|
|
36
|
+
c(a.$slots, "default")
|
|
37
|
+
], 48, m));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
g as _
|
|
42
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent as a, createElementBlock as t, openBlock as d, mergeProps as o, renderSlot as c } from "vue";
|
|
2
|
+
import "./components/SelectionCard/core/SelectionCard.js";
|
|
3
|
+
const n = ["value", "label", ".checked", ".disabled"], i = /* @__PURE__ */ a({
|
|
4
|
+
__name: "VueSelectionCard",
|
|
5
|
+
props: {
|
|
6
|
+
value: { default: "" },
|
|
7
|
+
label: { default: "" },
|
|
8
|
+
checked: { type: Boolean, default: !1 },
|
|
9
|
+
disabled: { type: Boolean, default: !1 }
|
|
10
|
+
},
|
|
11
|
+
setup(e) {
|
|
12
|
+
return (l, s) => (d(), t("ag-selection-card", o({
|
|
13
|
+
value: e.value,
|
|
14
|
+
label: e.label,
|
|
15
|
+
".checked": e.checked,
|
|
16
|
+
".disabled": e.disabled
|
|
17
|
+
}, l.$attrs), [
|
|
18
|
+
c(l.$slots, "default")
|
|
19
|
+
], 48, n));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
i as _
|
|
24
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineComponent as u, createElementBlock as s, openBlock as o, mergeProps as i, renderSlot as c } from "vue";
|
|
2
|
+
import "./components/SelectionCardGroup/core/SelectionCardGroup.js";
|
|
3
|
+
const g = ["type", "name", "legend", "legend-hidden", "value", "values", ".disabled"], r = /* @__PURE__ */ u({
|
|
4
|
+
__name: "VueSelectionCardGroup",
|
|
5
|
+
props: {
|
|
6
|
+
type: { default: "radio" },
|
|
7
|
+
name: { default: "" },
|
|
8
|
+
legend: { default: "" },
|
|
9
|
+
legendHidden: { type: Boolean, default: !1 },
|
|
10
|
+
value: { default: "" },
|
|
11
|
+
values: { default: () => [] },
|
|
12
|
+
disabled: { type: Boolean, default: !1 }
|
|
13
|
+
},
|
|
14
|
+
emits: ["selection-change", "update:value", "update:values"],
|
|
15
|
+
setup(e, { emit: d }) {
|
|
16
|
+
const t = d, n = (a) => {
|
|
17
|
+
const l = a.detail;
|
|
18
|
+
t("selection-change", l), l.selectedValues.length <= 1 && t("update:value", l.selectedValues[0] || ""), t("update:values", l.selectedValues);
|
|
19
|
+
};
|
|
20
|
+
return (a, l) => (o(), s("ag-selection-card-group", i({
|
|
21
|
+
type: e.type,
|
|
22
|
+
name: e.name,
|
|
23
|
+
legend: e.legend,
|
|
24
|
+
"legend-hidden": e.legendHidden,
|
|
25
|
+
value: e.value,
|
|
26
|
+
values: e.values,
|
|
27
|
+
".disabled": e.disabled,
|
|
28
|
+
onSelectionChange: n
|
|
29
|
+
}, a.$attrs), [
|
|
30
|
+
c(a.$slots, "default")
|
|
31
|
+
], 48, g));
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
r as _
|
|
36
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement as l, css as
|
|
1
|
+
import { LitElement as l, css as c, html as h } from "lit";
|
|
2
2
|
import { n as r } from "../../../property-CemaeiRl.js";
|
|
3
3
|
import { o as s } from "../../../if-defined-C8i28hSj.js";
|
|
4
4
|
var b = Object.defineProperty, o = (g, a, e, v) => {
|
|
@@ -53,7 +53,7 @@ const d = class d extends l {
|
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
55
|
const a = this.disabled || this.loading;
|
|
56
|
-
return
|
|
56
|
+
return h`
|
|
57
57
|
<button
|
|
58
58
|
type=${this.type}
|
|
59
59
|
part="ag-button"
|
|
@@ -71,7 +71,7 @@ const d = class d extends l {
|
|
|
71
71
|
`;
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
d.styles =
|
|
74
|
+
d.styles = c`
|
|
75
75
|
/* MINIMALIST & THEMEABLE - Styling via --ag-* design tokens */
|
|
76
76
|
:host {
|
|
77
77
|
/* Inline-flex for perfect centering while maintaining inline behavior */
|
|
@@ -127,32 +127,32 @@ d.styles = h`
|
|
|
127
127
|
background: var(--ag-neutral-500);
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
/* Primary, success, warning, and danger
|
|
131
|
-
darker on hover */
|
|
130
|
+
/* Primary, success, warning, and danger use variant-specific foreground
|
|
131
|
+
tokens (--ag-{variant}-fg) and get darker on hover */
|
|
132
132
|
:host([variant="primary"]) button {
|
|
133
133
|
background: var(--ag-primary);
|
|
134
|
-
color: var(--ag-
|
|
134
|
+
color: var(--ag-primary-fg);
|
|
135
135
|
}
|
|
136
136
|
:host([variant="primary"]) button:hover {
|
|
137
137
|
background: var(--ag-primary-dark);
|
|
138
138
|
}
|
|
139
139
|
:host([variant="success"]) button {
|
|
140
140
|
background: var(--ag-success);
|
|
141
|
-
color: var(--ag-
|
|
141
|
+
color: var(--ag-success-fg);
|
|
142
142
|
}
|
|
143
143
|
:host([variant="success"]) button:hover {
|
|
144
144
|
background: var(--ag-success-dark);
|
|
145
145
|
}
|
|
146
146
|
:host([variant="warning"]) button {
|
|
147
147
|
background: var(--ag-warning);
|
|
148
|
-
color: var(--ag-
|
|
148
|
+
color: var(--ag-warning-fg);
|
|
149
149
|
}
|
|
150
150
|
:host([variant="warning"]) button:hover {
|
|
151
151
|
background: var(--ag-warning-dark);
|
|
152
152
|
}
|
|
153
153
|
:host([variant="danger"]) button {
|
|
154
154
|
background: var(--ag-danger);
|
|
155
|
-
color: var(--ag-
|
|
155
|
+
color: var(--ag-danger-fg);
|
|
156
156
|
}
|
|
157
157
|
:host([variant="danger"]) button:hover {
|
|
158
158
|
background: var(--ag-danger-dark);
|
|
@@ -339,11 +339,11 @@ d.styles = h`
|
|
|
339
339
|
border-color: var(--ag-primary-text);
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
-
/* Bordered Buttons on Hover have a filled background with
|
|
343
|
-
Default Bordered is an exception to this rule. */
|
|
342
|
+
/* Bordered Buttons on Hover have a filled background with variant-specific
|
|
343
|
+
foreground text. The Default Bordered is an exception to this rule. */
|
|
344
344
|
:host([bordered][variant="primary"]) button:hover {
|
|
345
345
|
background: var(--ag-primary);
|
|
346
|
-
color: var(--ag-
|
|
346
|
+
color: var(--ag-primary-fg);
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
:host([bordered][variant="secondary"]) button,
|
|
@@ -358,7 +358,7 @@ d.styles = h`
|
|
|
358
358
|
}
|
|
359
359
|
|
|
360
360
|
:host([bordered][variant="success"]) button:hover {
|
|
361
|
-
color: var(--ag-
|
|
361
|
+
color: var(--ag-success-fg);
|
|
362
362
|
background: var(--ag-success);
|
|
363
363
|
}
|
|
364
364
|
|
|
@@ -369,7 +369,7 @@ d.styles = h`
|
|
|
369
369
|
|
|
370
370
|
:host([bordered][variant="warning"]) button:hover {
|
|
371
371
|
background: var(--ag-warning);
|
|
372
|
-
color: var(--ag-
|
|
372
|
+
color: var(--ag-warning-fg);
|
|
373
373
|
}
|
|
374
374
|
|
|
375
375
|
:host([bordered][variant="danger"]) button {
|
|
@@ -379,7 +379,7 @@ d.styles = h`
|
|
|
379
379
|
|
|
380
380
|
:host([bordered][variant="danger"]) button:hover {
|
|
381
381
|
background: var(--ag-danger);
|
|
382
|
-
color: var(--ag-
|
|
382
|
+
color: var(--ag-danger-fg);
|
|
383
383
|
}
|
|
384
384
|
|
|
385
385
|
:host([bordered][variant="monochrome"]) button {
|
|
@@ -44,8 +44,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
44
44
|
}>> & Readonly<{}>, {
|
|
45
45
|
legend: string;
|
|
46
46
|
bordered: boolean;
|
|
47
|
-
layout: "horizontal" | "vertical";
|
|
48
47
|
legendHidden: boolean;
|
|
48
|
+
layout: "horizontal" | "vertical";
|
|
49
49
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
50
50
|
export default _default;
|
|
51
51
|
//# sourceMappingURL=VueFieldset.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectionButton.d.ts","sourceRoot":"","sources":["../../../../src/components/SelectionButton/core/SelectionButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAM1D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,qBAAqB,EAAE,iBAAiB,CAAC;KAC1C;CACF;AAED,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
export type SelectionButtonTheme = 'success' | 'info' | 'error' | 'warning' | 'monochrome' | '';
|
|
4
|
+
export type SelectionButtonSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export type SelectionButtonShape = '' | 'rounded' | 'capsule';
|
|
6
|
+
export interface SelectionButtonProps {
|
|
7
|
+
/** Unique value for this button (required) */
|
|
8
|
+
value: string;
|
|
9
|
+
/** Accessible label for this button (required) */
|
|
10
|
+
label: string;
|
|
11
|
+
/** Whether this button is selected */
|
|
12
|
+
checked?: boolean;
|
|
13
|
+
/** Whether this button is disabled */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface SelectionButtonInternalProps {
|
|
17
|
+
/** Input type (set by parent group) */
|
|
18
|
+
_type?: 'radio' | 'checkbox';
|
|
19
|
+
/** Input name (set by parent group) */
|
|
20
|
+
_name?: string;
|
|
21
|
+
/** Theme (set by parent group) */
|
|
22
|
+
_theme?: SelectionButtonTheme;
|
|
23
|
+
/** Size (set by parent group) */
|
|
24
|
+
_size?: SelectionButtonSize;
|
|
25
|
+
/** Shape (set by parent group) */
|
|
26
|
+
_shape?: SelectionButtonShape;
|
|
27
|
+
}
|
|
28
|
+
export declare class AgSelectionButton extends LitElement implements SelectionButtonProps, SelectionButtonInternalProps {
|
|
29
|
+
static styles: import('lit').CSSResult;
|
|
30
|
+
value: string;
|
|
31
|
+
label: string;
|
|
32
|
+
checked: boolean;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
_type: 'radio' | 'checkbox';
|
|
35
|
+
_name: string;
|
|
36
|
+
_theme: SelectionButtonTheme;
|
|
37
|
+
_size: SelectionButtonSize;
|
|
38
|
+
_shape: SelectionButtonShape;
|
|
39
|
+
constructor();
|
|
40
|
+
focus(): void;
|
|
41
|
+
private _handleClick;
|
|
42
|
+
private _handleKeyDown;
|
|
43
|
+
private _renderIndicator;
|
|
44
|
+
render(): import('lit').TemplateResult<1>;
|
|
45
|
+
}
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=_SelectionButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_SelectionButton.d.ts","sourceRoot":"","sources":["../../../../src/components/SelectionButton/core/_SelectionButton.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAGrD,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,YAAY,GAAG,EAAE,CAAC;AAChG,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACrD,MAAM,MAAM,oBAAoB,GAAG,EAAE,GAAG,SAAS,GAAG,SAAS,CAAC;AAE9D,MAAM,WAAW,oBAAoB;IACnC,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAGD,UAAU,4BAA4B;IACpC,uCAAuC;IACvC,KAAK,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAC7B,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,iCAAiC;IACjC,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B,kCAAkC;IAClC,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B;AAED,qBAAa,iBAAkB,SAAQ,UAAW,YAAW,oBAAoB,EAAE,4BAA4B;IAC7G,OAAgB,MAAM,0BAuWpB;IAGM,KAAK,EAAE,MAAM,CAAC;IAGd,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,OAAO,CAAC;IAGjB,QAAQ,EAAE,OAAO,CAAC;IAIlB,KAAK,EAAE,OAAO,GAAG,UAAU,CAAC;IAG5B,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,oBAAoB,CAAC;IAG7B,KAAK,EAAE,mBAAmB,CAAC;IAG3B,MAAM,EAAE,oBAAoB,CAAC;;IAe5B,KAAK;IAKd,OAAO,CAAC,YAAY;IAsBpB,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,gBAAgB;IAoBf,MAAM;CA4ChB"}
|