@scouterna/ui-webc 2.2.3 → 2.2.5
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/cjs/{inputMixin-CkYXihTB.js → inputMixin-D1D-VFiT.js} +6 -2
- package/dist/cjs/inputMixin-D1D-VFiT.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/scout-app-bar.cjs.entry.js +2 -2
- package/dist/cjs/scout-app-bar.entry.cjs.js.map +1 -1
- package/dist/cjs/scout-button.cjs.entry.js +3 -3
- package/dist/cjs/scout-button.entry.cjs.js.map +1 -1
- package/dist/cjs/scout-card.cjs.entry.js +1 -1
- package/dist/cjs/scout-checkbox.scout-radio-button.entry.cjs.js.map +1 -1
- package/dist/cjs/scout-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/scout-divider.cjs.entry.js +1 -1
- package/dist/cjs/scout-field.cjs.entry.js +1 -1
- package/dist/cjs/scout-field.entry.cjs.js.map +1 -1
- package/dist/cjs/scout-input.cjs.entry.js +22 -3
- package/dist/cjs/scout-input.entry.cjs.js.map +1 -1
- package/dist/cjs/scout-list-view-item.cjs.entry.js +4 -3
- package/dist/cjs/scout-list-view-item.entry.cjs.js.map +1 -1
- package/dist/cjs/scout-list-view-subheader.cjs.entry.js +2 -2
- package/dist/cjs/scout-list-view-subheader.entry.cjs.js.map +1 -1
- package/dist/cjs/scout-list-view.cjs.entry.js +1 -1
- package/dist/cjs/scout-loader.cjs.entry.js +1 -1
- package/dist/cjs/scout-select.cjs.entry.js +2 -2
- package/dist/cjs/scout-select.entry.cjs.js.map +1 -1
- package/dist/cjs/scout-stack.cjs.entry.js +2 -2
- package/dist/cjs/scout-switch.cjs.entry.js +2 -2
- package/dist/cjs/scout-switch.entry.cjs.js.map +1 -1
- package/dist/cjs/ui-webc.cjs.js +1 -1
- package/dist/collection/components/app-bar/app-bar.css +2 -1
- package/dist/collection/components/app-bar/app-bar.js +6 -1
- package/dist/collection/components/app-bar/app-bar.js.map +1 -1
- package/dist/collection/components/button/button.css +86 -105
- package/dist/collection/components/button/button.js +6 -5
- package/dist/collection/components/button/button.js.map +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +7 -1
- package/dist/collection/components/checkbox/checkbox.js.map +1 -1
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/field/field.js +6 -1
- package/dist/collection/components/field/field.js.map +1 -1
- package/dist/collection/components/input/input.css +26 -4
- package/dist/collection/components/input/input.js +86 -2
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/list-view/list-view.js +1 -1
- package/dist/collection/components/list-view-item/list-view-item.js +23 -3
- package/dist/collection/components/list-view-item/list-view-item.js.map +1 -1
- package/dist/collection/components/list-view-subheader/list-view-subheader.css +3 -2
- package/dist/collection/components/list-view-subheader/list-view-subheader.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +6 -1
- package/dist/collection/components/radio-button/radio-button.js.map +1 -1
- package/dist/collection/components/select/select.js +6 -1
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/stack/stack.js +2 -2
- package/dist/collection/components/switch/switch.js +6 -1
- package/dist/collection/components/switch/switch.js.map +1 -1
- package/dist/collection/mixins/inputMixin.js +4 -0
- package/dist/collection/mixins/inputMixin.js.map +1 -1
- package/dist/components/{p-BkrRT31y.js → p-4RT-nIeK.js} +4 -4
- package/dist/components/{p-BkrRT31y.js.map → p-4RT-nIeK.js.map} +1 -1
- package/dist/components/{p-DaGMxK4K.js → p-B-kEl-ny.js} +8 -2
- package/dist/components/p-B-kEl-ny.js.map +1 -0
- package/dist/components/{p-C2_wl40t.js → p-CLzh39Ll.js} +4 -4
- package/dist/components/{p-C2_wl40t.js.map → p-CLzh39Ll.js.map} +1 -1
- package/dist/components/scout-app-bar.js +2 -2
- package/dist/components/scout-app-bar.js.map +1 -1
- package/dist/components/scout-button.js +5 -5
- package/dist/components/scout-button.js.map +1 -1
- package/dist/components/scout-card.js +1 -1
- package/dist/components/scout-checkbox.js +1 -1
- package/dist/components/scout-divider.js +1 -1
- package/dist/components/scout-field.js +1 -1
- package/dist/components/scout-field.js.map +1 -1
- package/dist/components/scout-input.js +26 -4
- package/dist/components/scout-input.js.map +1 -1
- package/dist/components/scout-list-view-item.js +8 -6
- package/dist/components/scout-list-view-item.js.map +1 -1
- package/dist/components/scout-list-view-subheader.js +2 -2
- package/dist/components/scout-list-view-subheader.js.map +1 -1
- package/dist/components/scout-list-view.js +1 -1
- package/dist/components/scout-loader.js +1 -1
- package/dist/components/scout-radio-button.js +1 -1
- package/dist/components/scout-select.js +2 -2
- package/dist/components/scout-select.js.map +1 -1
- package/dist/components/scout-stack.js +2 -2
- package/dist/components/scout-switch.js +2 -2
- package/dist/components/scout-switch.js.map +1 -1
- package/dist/custom-elements.json +124 -10
- package/dist/esm/{inputMixin-mAf9ZFOg.js → inputMixin-C9OB0DNj.js} +6 -2
- package/dist/esm/inputMixin-C9OB0DNj.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/scout-app-bar.entry.js +2 -2
- package/dist/esm/scout-app-bar.entry.js.map +1 -1
- package/dist/esm/scout-button.entry.js +4 -4
- package/dist/esm/scout-button.entry.js.map +1 -1
- package/dist/esm/scout-card.entry.js +1 -1
- package/dist/esm/scout-checkbox.scout-radio-button.entry.js.map +1 -1
- package/dist/esm/scout-checkbox_2.entry.js +3 -3
- package/dist/esm/scout-divider.entry.js +1 -1
- package/dist/esm/scout-field.entry.js +1 -1
- package/dist/esm/scout-field.entry.js.map +1 -1
- package/dist/esm/scout-input.entry.js +23 -4
- package/dist/esm/scout-input.entry.js.map +1 -1
- package/dist/esm/scout-list-view-item.entry.js +4 -3
- package/dist/esm/scout-list-view-item.entry.js.map +1 -1
- package/dist/esm/scout-list-view-subheader.entry.js +2 -2
- package/dist/esm/scout-list-view-subheader.entry.js.map +1 -1
- package/dist/esm/scout-list-view.entry.js +1 -1
- package/dist/esm/scout-loader.entry.js +1 -1
- package/dist/esm/scout-select.entry.js +2 -2
- package/dist/esm/scout-select.entry.js.map +1 -1
- package/dist/esm/scout-stack.entry.js +2 -2
- package/dist/esm/scout-switch.entry.js +2 -2
- package/dist/esm/scout-switch.entry.js.map +1 -1
- package/dist/esm/ui-webc.js +1 -1
- package/dist/types/components/app-bar/app-bar.d.ts +5 -0
- package/dist/types/components/button/button.d.ts +3 -1
- package/dist/types/components/field/field.d.ts +5 -0
- package/dist/types/components/list-view-item/list-view-item.d.ts +1 -0
- package/dist/types/components.d.ts +190 -4
- package/dist/ui-webc/p-08499152.entry.js +2 -0
- package/dist/ui-webc/{p-97f9cf0a.entry.js.map → p-08499152.entry.js.map} +1 -1
- package/dist/ui-webc/{p-d8084e5c.entry.js → p-0b8a7cc9.entry.js} +2 -2
- package/dist/ui-webc/p-2a842a24.entry.js +2 -0
- package/dist/ui-webc/p-2a842a24.entry.js.map +1 -0
- package/dist/ui-webc/{p-3018f46f.entry.js → p-30b75968.entry.js} +2 -2
- package/dist/ui-webc/p-30b75968.entry.js.map +1 -0
- package/dist/ui-webc/p-3ac00412.entry.js +2 -0
- package/dist/ui-webc/p-3ac00412.entry.js.map +1 -0
- package/dist/ui-webc/p-4f28520e.entry.js +2 -0
- package/dist/ui-webc/{p-97956c4f.entry.js → p-6de2edd1.entry.js} +2 -2
- package/dist/ui-webc/{p-d999b8d6.entry.js → p-6e9afb25.entry.js} +2 -2
- package/dist/ui-webc/p-8a942414.entry.js +2 -0
- package/dist/ui-webc/{p-e4f5dad7.entry.js.map → p-8a942414.entry.js.map} +1 -1
- package/dist/ui-webc/p-8f3e4290.entry.js +2 -0
- package/dist/ui-webc/p-BsG0XL4c.js +2 -0
- package/dist/ui-webc/p-BsG0XL4c.js.map +1 -0
- package/dist/ui-webc/{p-4616484e.entry.js → p-b0a70cb6.entry.js} +2 -2
- package/dist/ui-webc/p-cbf489b1.entry.js +2 -0
- package/dist/ui-webc/{p-1a701759.entry.js.map → p-cbf489b1.entry.js.map} +1 -1
- package/dist/ui-webc/p-d68b8b37.entry.js +2 -0
- package/dist/ui-webc/{p-02c211ea.entry.js.map → p-d68b8b37.entry.js.map} +1 -1
- package/dist/ui-webc/{p-ac65f104.entry.js → p-dcc4dafa.entry.js} +2 -2
- package/dist/ui-webc/scout-app-bar.entry.esm.js.map +1 -1
- package/dist/ui-webc/scout-button.entry.esm.js.map +1 -1
- package/dist/ui-webc/scout-checkbox.scout-radio-button.entry.esm.js.map +1 -1
- package/dist/ui-webc/scout-field.entry.esm.js.map +1 -1
- package/dist/ui-webc/scout-input.entry.esm.js.map +1 -1
- package/dist/ui-webc/scout-list-view-item.entry.esm.js.map +1 -1
- package/dist/ui-webc/scout-list-view-subheader.entry.esm.js.map +1 -1
- package/dist/ui-webc/scout-select.entry.esm.js.map +1 -1
- package/dist/ui-webc/scout-switch.entry.esm.js.map +1 -1
- package/dist/ui-webc/ui-webc.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/inputMixin-CkYXihTB.js.map +0 -1
- package/dist/components/p-DaGMxK4K.js.map +0 -1
- package/dist/esm/inputMixin-mAf9ZFOg.js.map +0 -1
- package/dist/ui-webc/p-02c211ea.entry.js +0 -2
- package/dist/ui-webc/p-059921bb.entry.js +0 -2
- package/dist/ui-webc/p-059921bb.entry.js.map +0 -1
- package/dist/ui-webc/p-1a701759.entry.js +0 -2
- package/dist/ui-webc/p-3018f46f.entry.js.map +0 -1
- package/dist/ui-webc/p-479ae616.entry.js +0 -2
- package/dist/ui-webc/p-479ae616.entry.js.map +0 -1
- package/dist/ui-webc/p-974e8415.entry.js +0 -2
- package/dist/ui-webc/p-97f9cf0a.entry.js +0 -2
- package/dist/ui-webc/p-BzgciO7w.js +0 -2
- package/dist/ui-webc/p-BzgciO7w.js.map +0 -1
- package/dist/ui-webc/p-e2288570.entry.js +0 -2
- package/dist/ui-webc/p-e4f5dad7.entry.js +0 -2
- /package/dist/ui-webc/{p-d8084e5c.entry.js.map → p-0b8a7cc9.entry.js.map} +0 -0
- /package/dist/ui-webc/{p-e2288570.entry.js.map → p-4f28520e.entry.js.map} +0 -0
- /package/dist/ui-webc/{p-97956c4f.entry.js.map → p-6de2edd1.entry.js.map} +0 -0
- /package/dist/ui-webc/{p-d999b8d6.entry.js.map → p-6e9afb25.entry.js.map} +0 -0
- /package/dist/ui-webc/{p-974e8415.entry.js.map → p-8f3e4290.entry.js.map} +0 -0
- /package/dist/ui-webc/{p-4616484e.entry.js.map → p-b0a70cb6.entry.js.map} +0 -0
- /package/dist/ui-webc/{p-ac65f104.entry.js.map → p-dcc4dafa.entry.js.map} +0 -0
package/dist/esm/ui-webc.js
CHANGED
|
@@ -16,6 +16,6 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["scout-list-view-item",[[785,"scout-list-view-item",{"icon":[1],"primary":[1],"secondary":[1],"type":[1],"href":[1],"target":[1],"rel":[1],"name":[1],"value":[1],"checked":[4]}]]],["scout-app-bar",[[785,"scout-app-bar",{"titleText":[1,"title-text"]}]]],["scout-bottom-bar",[[273,"scout-bottom-bar"]]],["scout-bottom-bar-item",[[785,"scout-bottom-bar-item",{"type":[1],"href":[1],"target":[1],"rel":[1],"icon":[1],"label":[1],"active":[4]}]]],["scout-button",[[
|
|
19
|
+
return bootstrapLazy([["scout-list-view-item",[[785,"scout-list-view-item",{"icon":[1],"primary":[1],"secondary":[1],"type":[1],"href":[1],"target":[1],"rel":[1],"name":[1],"value":[1],"checked":[4],"disabled":[4]}]]],["scout-app-bar",[[785,"scout-app-bar",{"titleText":[1,"title-text"]}]]],["scout-bottom-bar",[[273,"scout-bottom-bar"]]],["scout-bottom-bar-item",[[785,"scout-bottom-bar-item",{"type":[1],"href":[1],"target":[1],"rel":[1],"icon":[1],"label":[1],"active":[4]}]]],["scout-button",[[772,"scout-button",{"type":[1],"href":[1],"target":[1],"rel":[1],"variant":[1],"icon":[1],"iconPosition":[1,"icon-position"],"iconOnly":[4,"icon-only"]}]]],["scout-card",[[273,"scout-card"]]],["scout-divider",[[273,"scout-divider"]]],["scout-field",[[774,"scout-field",{"label":[1],"helpText":[1,"help-text"],"inputId":[32],"errorText":[32],"errorHidden":[32]},[[0,"_scoutFieldId","catchFieldId"],[0,"_scoutValidate","handleValidation"],[0,"scoutBlur","showError"],[0,"_scoutInvalid","showError"]]]]],["scout-input",[[770,"scout-input",{"validate":[16],"size":[1],"variant":[1],"type":[1],"inputmode":[1],"pattern":[1],"value":[1],"name":[1],"disabled":[4],"placeholder":[1],"ariaId":[32]}]]],["scout-link",[[785,"scout-link",{"href":[1],"label":[1],"rel":[1],"linkAriaLabel":[1,"link-aria-label"],"type":[1],"target":[1]}]]],["scout-list-view",[[273,"scout-list-view",null,[[0,"scoutChecked","onScoutChecked"]]]]],["scout-list-view-subheader",[[785,"scout-list-view-subheader",{"text":[1],"headingLevel":[1,"heading-level"]}]]],["scout-loader",[[769,"scout-loader",{"text":[1],"size":[1]}]]],["scout-select",[[774,"scout-select",{"validate":[16],"value":[1],"disabled":[4],"name":[1],"ariaId":[32]}]]],["scout-stack",[[785,"scout-stack",{"direction":[1],"gapSize":[1,"gap-size"]}]]],["scout-switch",[[785,"scout-switch",{"validate":[16],"toggled":[4],"disabled":[4],"ariaLabelledby":[1,"aria-labelledby"],"label":[1],"ariaId":[32]}]]],["scout-checkbox_2",[[770,"scout-checkbox",{"validate":[16],"checked":[4],"disabled":[4],"ariaLabelledby":[1,"aria-labelledby"],"label":[1],"value":[1],"name":[1],"ariaId":[32]}],[770,"scout-radio-button",{"validate":[16],"checked":[4],"disabled":[4],"ariaLabelledby":[1,"aria-labelledby"],"label":[1],"value":[1],"name":[1],"ariaId":[32]}]]]], options);
|
|
20
20
|
});
|
|
21
21
|
//# sourceMappingURL=ui-webc.js.map
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The App Bar component is used at the top of a page to display a title and
|
|
3
|
+
* optional prefix and suffix actions. It's typically used to provide a
|
|
4
|
+
* native-like navigation experience.
|
|
5
|
+
*/
|
|
1
6
|
export declare class ScoutAppBar {
|
|
2
7
|
titleText?: string;
|
|
3
8
|
render(): any;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { type EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
export type Variant = "primary" | "outlined" | "text" | "caution" | "danger";
|
|
3
3
|
/**
|
|
4
|
-
* A
|
|
4
|
+
* A button component that can be used either as a normal button or as a link.
|
|
5
|
+
* Will render a `<button>` element when the `type` is set to "button",
|
|
6
|
+
* "submit", or "reset", and an `<a>` element when the `type` is set to "link".
|
|
5
7
|
*/
|
|
6
8
|
export declare class ScoutButton {
|
|
7
9
|
type: "button" | "submit" | "reset" | "link";
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The field component is used to wrap form fields with a label, help text, and
|
|
3
|
+
* error messages. It automatically captures validation events from its child
|
|
4
|
+
* input components and displays error messages accordingly.
|
|
5
|
+
*/
|
|
1
6
|
export declare class ScoutField {
|
|
2
7
|
/**
|
|
3
8
|
* Label shown above the field.
|
|
@@ -16,6 +16,11 @@ export { InputMode, InputType } from "./components/input/input";
|
|
|
16
16
|
export { ItemType as ItemType1 } from "./components/list-view-item/list-view-item";
|
|
17
17
|
export { Direction, GapSize } from "./components/stack/stack";
|
|
18
18
|
export namespace Components {
|
|
19
|
+
/**
|
|
20
|
+
* The App Bar component is used at the top of a page to display a title and
|
|
21
|
+
* optional prefix and suffix actions. It's typically used to provide a
|
|
22
|
+
* native-like navigation experience.
|
|
23
|
+
*/
|
|
19
24
|
interface ScoutAppBar {
|
|
20
25
|
"titleText"?: string;
|
|
21
26
|
}
|
|
@@ -55,7 +60,9 @@ export namespace Components {
|
|
|
55
60
|
"type": ItemType;
|
|
56
61
|
}
|
|
57
62
|
/**
|
|
58
|
-
* A
|
|
63
|
+
* A button component that can be used either as a normal button or as a link.
|
|
64
|
+
* Will render a `<button>` element when the `type` is set to "button",
|
|
65
|
+
* "submit", or "reset", and an `<a>` element when the `type` is set to "link".
|
|
59
66
|
*/
|
|
60
67
|
interface ScoutButton {
|
|
61
68
|
"href"?: string;
|
|
@@ -88,6 +95,12 @@ export namespace Components {
|
|
|
88
95
|
*/
|
|
89
96
|
interface ScoutCard {
|
|
90
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* The checkbox component is used to let users select one or more options from a
|
|
100
|
+
* set. For toggling a single option, consider using the Switch component
|
|
101
|
+
* instead. When used in a form, make sure to wrap it in a Field component to
|
|
102
|
+
* display a label, help text, and error messages.
|
|
103
|
+
*/
|
|
91
104
|
interface ScoutCheckbox {
|
|
92
105
|
/**
|
|
93
106
|
* Use this prop if you need to connect your checkbox with another element describing its use, other than the property label.
|
|
@@ -111,6 +124,11 @@ export namespace Components {
|
|
|
111
124
|
}
|
|
112
125
|
interface ScoutDivider {
|
|
113
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* The field component is used to wrap form fields with a label, help text, and
|
|
129
|
+
* error messages. It automatically captures validation events from its child
|
|
130
|
+
* input components and displays error messages accordingly.
|
|
131
|
+
*/
|
|
114
132
|
interface ScoutField {
|
|
115
133
|
/**
|
|
116
134
|
* Help text shown below the field.
|
|
@@ -121,6 +139,12 @@ export namespace Components {
|
|
|
121
139
|
*/
|
|
122
140
|
"label": string;
|
|
123
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* The input component is a basic text input field that can be used to capture
|
|
144
|
+
* user input. It supports various types and input modes for different use
|
|
145
|
+
* cases. When used in a form, make sure to wrap it in a Field component to
|
|
146
|
+
* display a label, help text, and error messages.
|
|
147
|
+
*/
|
|
124
148
|
interface ScoutInput {
|
|
125
149
|
/**
|
|
126
150
|
* Whether the input is disabled. Disabled inputs are not editable, excluded from tab order and are not validated.
|
|
@@ -136,6 +160,15 @@ export namespace Components {
|
|
|
136
160
|
* Regex pattern for input validation.
|
|
137
161
|
*/
|
|
138
162
|
"pattern"?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Placeholder text should rarely be used as it poses a lot of accessibility issues.
|
|
165
|
+
*/
|
|
166
|
+
"placeholder"?: string;
|
|
167
|
+
/**
|
|
168
|
+
* Size of the input element. Large fields are typically used for prominent inputs, such as a top search field on a page, while medium fields are used for regular form inputs.
|
|
169
|
+
* @default "medium"
|
|
170
|
+
*/
|
|
171
|
+
"size": "medium" | "large";
|
|
139
172
|
/**
|
|
140
173
|
* Type of input element. If you need a number input, read the accessibility section of this MDN article first: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/number#accessibility
|
|
141
174
|
* @default "text"
|
|
@@ -150,6 +183,11 @@ export namespace Components {
|
|
|
150
183
|
* @default ""
|
|
151
184
|
*/
|
|
152
185
|
"value": string;
|
|
186
|
+
/**
|
|
187
|
+
* Visual variant of the input element. Elevated inputs have a shadow to help them stand out from the background and should only be used when absolutely positioned above other content.
|
|
188
|
+
* @default "default"
|
|
189
|
+
*/
|
|
190
|
+
"variant": "default" | "elevated";
|
|
153
191
|
}
|
|
154
192
|
interface ScoutLink {
|
|
155
193
|
/**
|
|
@@ -180,6 +218,7 @@ export namespace Components {
|
|
|
180
218
|
}
|
|
181
219
|
interface ScoutListViewItem {
|
|
182
220
|
"checked"?: boolean;
|
|
221
|
+
"disabled"?: boolean;
|
|
183
222
|
"href"?: string;
|
|
184
223
|
"icon"?: string;
|
|
185
224
|
"name"?: string;
|
|
@@ -207,6 +246,11 @@ export namespace Components {
|
|
|
207
246
|
"size"?: "xs" | "sm" | "base" | "lg" | "xl";
|
|
208
247
|
"text"?: string;
|
|
209
248
|
}
|
|
249
|
+
/**
|
|
250
|
+
* The radio button component is used to let users select one option from a set.
|
|
251
|
+
* When used in a form, make sure to wrap it in a Field component to display a
|
|
252
|
+
* label, help text, and error messages.
|
|
253
|
+
*/
|
|
210
254
|
interface ScoutRadioButton {
|
|
211
255
|
/**
|
|
212
256
|
* Use this prop if you need to connect your radio button with another element describing its use, other than the property label.
|
|
@@ -228,6 +272,11 @@ export namespace Components {
|
|
|
228
272
|
"validate"?: (value: string) => string | null;
|
|
229
273
|
"value": string;
|
|
230
274
|
}
|
|
275
|
+
/**
|
|
276
|
+
* The select component is a dropdown menu that allows users to select one
|
|
277
|
+
* option from a list. When used in a form, make sure to wrap it in a Field
|
|
278
|
+
* component to display a label, help text, and error messages.
|
|
279
|
+
*/
|
|
231
280
|
interface ScoutSelect {
|
|
232
281
|
/**
|
|
233
282
|
* Whether the select is disabled. Disabled selects are not editable, excluded from tab order and are not validated.
|
|
@@ -257,6 +306,11 @@ export namespace Components {
|
|
|
257
306
|
*/
|
|
258
307
|
"gapSize": GapSize;
|
|
259
308
|
}
|
|
309
|
+
/**
|
|
310
|
+
* The switch component is used to toggle between two states, on and off.
|
|
311
|
+
* Behaves like a checkbox. When used in a form, make sure to wrap it in a Field
|
|
312
|
+
* component to display a label, help text, and error messages.
|
|
313
|
+
*/
|
|
260
314
|
interface ScoutSwitch {
|
|
261
315
|
/**
|
|
262
316
|
* Use this prop if you need to connect your switch with another element describing its use, other than the property label.
|
|
@@ -315,6 +369,11 @@ export interface ScoutSwitchCustomEvent<T> extends CustomEvent<T> {
|
|
|
315
369
|
target: HTMLScoutSwitchElement;
|
|
316
370
|
}
|
|
317
371
|
declare global {
|
|
372
|
+
/**
|
|
373
|
+
* The App Bar component is used at the top of a page to display a title and
|
|
374
|
+
* optional prefix and suffix actions. It's typically used to provide a
|
|
375
|
+
* native-like navigation experience.
|
|
376
|
+
*/
|
|
318
377
|
interface HTMLScoutAppBarElement extends Components.ScoutAppBar, HTMLStencilElement {
|
|
319
378
|
}
|
|
320
379
|
var HTMLScoutAppBarElement: {
|
|
@@ -356,7 +415,9 @@ declare global {
|
|
|
356
415
|
"scoutClick": void;
|
|
357
416
|
}
|
|
358
417
|
/**
|
|
359
|
-
* A
|
|
418
|
+
* A button component that can be used either as a normal button or as a link.
|
|
419
|
+
* Will render a `<button>` element when the `type` is set to "button",
|
|
420
|
+
* "submit", or "reset", and an `<a>` element when the `type` is set to "link".
|
|
360
421
|
*/
|
|
361
422
|
interface HTMLScoutButtonElement extends Components.ScoutButton, HTMLStencilElement {
|
|
362
423
|
addEventListener<K extends keyof HTMLScoutButtonElementEventMap>(type: K, listener: (this: HTMLScoutButtonElement, ev: ScoutButtonCustomEvent<HTMLScoutButtonElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -395,6 +456,12 @@ declare global {
|
|
|
395
456
|
element: HTMLInputElement;
|
|
396
457
|
};
|
|
397
458
|
}
|
|
459
|
+
/**
|
|
460
|
+
* The checkbox component is used to let users select one or more options from a
|
|
461
|
+
* set. For toggling a single option, consider using the Switch component
|
|
462
|
+
* instead. When used in a form, make sure to wrap it in a Field component to
|
|
463
|
+
* display a label, help text, and error messages.
|
|
464
|
+
*/
|
|
398
465
|
interface HTMLScoutCheckboxElement extends Components.ScoutCheckbox, HTMLStencilElement {
|
|
399
466
|
addEventListener<K extends keyof HTMLScoutCheckboxElementEventMap>(type: K, listener: (this: HTMLScoutCheckboxElement, ev: ScoutCheckboxCustomEvent<HTMLScoutCheckboxElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
400
467
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -415,6 +482,11 @@ declare global {
|
|
|
415
482
|
prototype: HTMLScoutDividerElement;
|
|
416
483
|
new (): HTMLScoutDividerElement;
|
|
417
484
|
};
|
|
485
|
+
/**
|
|
486
|
+
* The field component is used to wrap form fields with a label, help text, and
|
|
487
|
+
* error messages. It automatically captures validation events from its child
|
|
488
|
+
* input components and displays error messages accordingly.
|
|
489
|
+
*/
|
|
418
490
|
interface HTMLScoutFieldElement extends Components.ScoutField, HTMLStencilElement {
|
|
419
491
|
}
|
|
420
492
|
var HTMLScoutFieldElement: {
|
|
@@ -431,6 +503,12 @@ declare global {
|
|
|
431
503
|
"_scoutInvalid": void;
|
|
432
504
|
"_scoutFieldId": string;
|
|
433
505
|
}
|
|
506
|
+
/**
|
|
507
|
+
* The input component is a basic text input field that can be used to capture
|
|
508
|
+
* user input. It supports various types and input modes for different use
|
|
509
|
+
* cases. When used in a form, make sure to wrap it in a Field component to
|
|
510
|
+
* display a label, help text, and error messages.
|
|
511
|
+
*/
|
|
434
512
|
interface HTMLScoutInputElement extends Components.ScoutInput, HTMLStencilElement {
|
|
435
513
|
addEventListener<K extends keyof HTMLScoutInputElementEventMap>(type: K, listener: (this: HTMLScoutInputElement, ev: ScoutInputCustomEvent<HTMLScoutInputElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
436
514
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -511,6 +589,11 @@ declare global {
|
|
|
511
589
|
element: HTMLInputElement;
|
|
512
590
|
};
|
|
513
591
|
}
|
|
592
|
+
/**
|
|
593
|
+
* The radio button component is used to let users select one option from a set.
|
|
594
|
+
* When used in a form, make sure to wrap it in a Field component to display a
|
|
595
|
+
* label, help text, and error messages.
|
|
596
|
+
*/
|
|
514
597
|
interface HTMLScoutRadioButtonElement extends Components.ScoutRadioButton, HTMLStencilElement {
|
|
515
598
|
addEventListener<K extends keyof HTMLScoutRadioButtonElementEventMap>(type: K, listener: (this: HTMLScoutRadioButtonElement, ev: ScoutRadioButtonCustomEvent<HTMLScoutRadioButtonElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
516
599
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -535,6 +618,11 @@ declare global {
|
|
|
535
618
|
"_scoutInvalid": void;
|
|
536
619
|
"_scoutFieldId": string;
|
|
537
620
|
}
|
|
621
|
+
/**
|
|
622
|
+
* The select component is a dropdown menu that allows users to select one
|
|
623
|
+
* option from a list. When used in a form, make sure to wrap it in a Field
|
|
624
|
+
* component to display a label, help text, and error messages.
|
|
625
|
+
*/
|
|
538
626
|
interface HTMLScoutSelectElement extends Components.ScoutSelect, HTMLStencilElement {
|
|
539
627
|
addEventListener<K extends keyof HTMLScoutSelectElementEventMap>(type: K, listener: (this: HTMLScoutSelectElement, ev: ScoutSelectCustomEvent<HTMLScoutSelectElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
540
628
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -569,6 +657,11 @@ declare global {
|
|
|
569
657
|
element: HTMLInputElement;
|
|
570
658
|
};
|
|
571
659
|
}
|
|
660
|
+
/**
|
|
661
|
+
* The switch component is used to toggle between two states, on and off.
|
|
662
|
+
* Behaves like a checkbox. When used in a form, make sure to wrap it in a Field
|
|
663
|
+
* component to display a label, help text, and error messages.
|
|
664
|
+
*/
|
|
572
665
|
interface HTMLScoutSwitchElement extends Components.ScoutSwitch, HTMLStencilElement {
|
|
573
666
|
addEventListener<K extends keyof HTMLScoutSwitchElementEventMap>(type: K, listener: (this: HTMLScoutSwitchElement, ev: ScoutSwitchCustomEvent<HTMLScoutSwitchElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
574
667
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -605,6 +698,11 @@ declare global {
|
|
|
605
698
|
}
|
|
606
699
|
}
|
|
607
700
|
declare namespace LocalJSX {
|
|
701
|
+
/**
|
|
702
|
+
* The App Bar component is used at the top of a page to display a title and
|
|
703
|
+
* optional prefix and suffix actions. It's typically used to provide a
|
|
704
|
+
* native-like navigation experience.
|
|
705
|
+
*/
|
|
608
706
|
interface ScoutAppBar {
|
|
609
707
|
"titleText"?: string;
|
|
610
708
|
}
|
|
@@ -645,7 +743,9 @@ declare namespace LocalJSX {
|
|
|
645
743
|
"type"?: ItemType;
|
|
646
744
|
}
|
|
647
745
|
/**
|
|
648
|
-
* A
|
|
746
|
+
* A button component that can be used either as a normal button or as a link.
|
|
747
|
+
* Will render a `<button>` element when the `type` is set to "button",
|
|
748
|
+
* "submit", or "reset", and an `<a>` element when the `type` is set to "link".
|
|
649
749
|
*/
|
|
650
750
|
interface ScoutButton {
|
|
651
751
|
"href"?: string;
|
|
@@ -679,6 +779,12 @@ declare namespace LocalJSX {
|
|
|
679
779
|
*/
|
|
680
780
|
interface ScoutCard {
|
|
681
781
|
}
|
|
782
|
+
/**
|
|
783
|
+
* The checkbox component is used to let users select one or more options from a
|
|
784
|
+
* set. For toggling a single option, consider using the Switch component
|
|
785
|
+
* instead. When used in a form, make sure to wrap it in a Field component to
|
|
786
|
+
* display a label, help text, and error messages.
|
|
787
|
+
*/
|
|
682
788
|
interface ScoutCheckbox {
|
|
683
789
|
/**
|
|
684
790
|
* Use this prop if you need to connect your checkbox with another element describing its use, other than the property label.
|
|
@@ -723,6 +829,11 @@ declare namespace LocalJSX {
|
|
|
723
829
|
}
|
|
724
830
|
interface ScoutDivider {
|
|
725
831
|
}
|
|
832
|
+
/**
|
|
833
|
+
* The field component is used to wrap form fields with a label, help text, and
|
|
834
|
+
* error messages. It automatically captures validation events from its child
|
|
835
|
+
* input components and displays error messages accordingly.
|
|
836
|
+
*/
|
|
726
837
|
interface ScoutField {
|
|
727
838
|
/**
|
|
728
839
|
* Help text shown below the field.
|
|
@@ -733,6 +844,12 @@ declare namespace LocalJSX {
|
|
|
733
844
|
*/
|
|
734
845
|
"label": string;
|
|
735
846
|
}
|
|
847
|
+
/**
|
|
848
|
+
* The input component is a basic text input field that can be used to capture
|
|
849
|
+
* user input. It supports various types and input modes for different use
|
|
850
|
+
* cases. When used in a form, make sure to wrap it in a Field component to
|
|
851
|
+
* display a label, help text, and error messages.
|
|
852
|
+
*/
|
|
736
853
|
interface ScoutInput {
|
|
737
854
|
/**
|
|
738
855
|
* Whether the input is disabled. Disabled inputs are not editable, excluded from tab order and are not validated.
|
|
@@ -765,6 +882,15 @@ declare namespace LocalJSX {
|
|
|
765
882
|
* Regex pattern for input validation.
|
|
766
883
|
*/
|
|
767
884
|
"pattern"?: string;
|
|
885
|
+
/**
|
|
886
|
+
* Placeholder text should rarely be used as it poses a lot of accessibility issues.
|
|
887
|
+
*/
|
|
888
|
+
"placeholder"?: string;
|
|
889
|
+
/**
|
|
890
|
+
* Size of the input element. Large fields are typically used for prominent inputs, such as a top search field on a page, while medium fields are used for regular form inputs.
|
|
891
|
+
* @default "medium"
|
|
892
|
+
*/
|
|
893
|
+
"size"?: "medium" | "large";
|
|
768
894
|
/**
|
|
769
895
|
* Type of input element. If you need a number input, read the accessibility section of this MDN article first: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/number#accessibility
|
|
770
896
|
* @default "text"
|
|
@@ -779,6 +905,11 @@ declare namespace LocalJSX {
|
|
|
779
905
|
* @default ""
|
|
780
906
|
*/
|
|
781
907
|
"value"?: string;
|
|
908
|
+
/**
|
|
909
|
+
* Visual variant of the input element. Elevated inputs have a shadow to help them stand out from the background and should only be used when absolutely positioned above other content.
|
|
910
|
+
* @default "default"
|
|
911
|
+
*/
|
|
912
|
+
"variant"?: "default" | "elevated";
|
|
782
913
|
}
|
|
783
914
|
interface ScoutLink {
|
|
784
915
|
/**
|
|
@@ -813,6 +944,7 @@ declare namespace LocalJSX {
|
|
|
813
944
|
}
|
|
814
945
|
interface ScoutListViewItem {
|
|
815
946
|
"checked"?: boolean;
|
|
947
|
+
"disabled"?: boolean;
|
|
816
948
|
"href"?: string;
|
|
817
949
|
"icon"?: string;
|
|
818
950
|
"name"?: string;
|
|
@@ -841,6 +973,11 @@ declare namespace LocalJSX {
|
|
|
841
973
|
"size"?: "xs" | "sm" | "base" | "lg" | "xl";
|
|
842
974
|
"text"?: string;
|
|
843
975
|
}
|
|
976
|
+
/**
|
|
977
|
+
* The radio button component is used to let users select one option from a set.
|
|
978
|
+
* When used in a form, make sure to wrap it in a Field component to display a
|
|
979
|
+
* label, help text, and error messages.
|
|
980
|
+
*/
|
|
844
981
|
interface ScoutRadioButton {
|
|
845
982
|
/**
|
|
846
983
|
* Use this prop if you need to connect your radio button with another element describing its use, other than the property label.
|
|
@@ -883,6 +1020,11 @@ declare namespace LocalJSX {
|
|
|
883
1020
|
"validate"?: (value: string) => string | null;
|
|
884
1021
|
"value"?: string;
|
|
885
1022
|
}
|
|
1023
|
+
/**
|
|
1024
|
+
* The select component is a dropdown menu that allows users to select one
|
|
1025
|
+
* option from a list. When used in a form, make sure to wrap it in a Field
|
|
1026
|
+
* component to display a label, help text, and error messages.
|
|
1027
|
+
*/
|
|
886
1028
|
interface ScoutSelect {
|
|
887
1029
|
/**
|
|
888
1030
|
* Whether the select is disabled. Disabled selects are not editable, excluded from tab order and are not validated.
|
|
@@ -929,6 +1071,11 @@ declare namespace LocalJSX {
|
|
|
929
1071
|
*/
|
|
930
1072
|
"gapSize"?: GapSize;
|
|
931
1073
|
}
|
|
1074
|
+
/**
|
|
1075
|
+
* The switch component is used to toggle between two states, on and off.
|
|
1076
|
+
* Behaves like a checkbox. When used in a form, make sure to wrap it in a Field
|
|
1077
|
+
* component to display a label, help text, and error messages.
|
|
1078
|
+
*/
|
|
932
1079
|
interface ScoutSwitch {
|
|
933
1080
|
/**
|
|
934
1081
|
* Use this prop if you need to connect your switch with another element describing its use, other than the property label.
|
|
@@ -995,6 +1142,11 @@ export { LocalJSX as JSX };
|
|
|
995
1142
|
declare module "@stencil/core" {
|
|
996
1143
|
export namespace JSX {
|
|
997
1144
|
interface IntrinsicElements {
|
|
1145
|
+
/**
|
|
1146
|
+
* The App Bar component is used at the top of a page to display a title and
|
|
1147
|
+
* optional prefix and suffix actions. It's typically used to provide a
|
|
1148
|
+
* native-like navigation experience.
|
|
1149
|
+
*/
|
|
998
1150
|
"scout-app-bar": LocalJSX.ScoutAppBar & JSXBase.HTMLAttributes<HTMLScoutAppBarElement>;
|
|
999
1151
|
/**
|
|
1000
1152
|
* The bottom bar component is used in the Jamboree26 app to provide
|
|
@@ -1007,25 +1159,59 @@ declare module "@stencil/core" {
|
|
|
1007
1159
|
*/
|
|
1008
1160
|
"scout-bottom-bar-item": LocalJSX.ScoutBottomBarItem & JSXBase.HTMLAttributes<HTMLScoutBottomBarItemElement>;
|
|
1009
1161
|
/**
|
|
1010
|
-
* A
|
|
1162
|
+
* A button component that can be used either as a normal button or as a link.
|
|
1163
|
+
* Will render a `<button>` element when the `type` is set to "button",
|
|
1164
|
+
* "submit", or "reset", and an `<a>` element when the `type` is set to "link".
|
|
1011
1165
|
*/
|
|
1012
1166
|
"scout-button": LocalJSX.ScoutButton & JSXBase.HTMLAttributes<HTMLScoutButtonElement>;
|
|
1013
1167
|
/**
|
|
1014
1168
|
* A general surface to hold various types of content.
|
|
1015
1169
|
*/
|
|
1016
1170
|
"scout-card": LocalJSX.ScoutCard & JSXBase.HTMLAttributes<HTMLScoutCardElement>;
|
|
1171
|
+
/**
|
|
1172
|
+
* The checkbox component is used to let users select one or more options from a
|
|
1173
|
+
* set. For toggling a single option, consider using the Switch component
|
|
1174
|
+
* instead. When used in a form, make sure to wrap it in a Field component to
|
|
1175
|
+
* display a label, help text, and error messages.
|
|
1176
|
+
*/
|
|
1017
1177
|
"scout-checkbox": LocalJSX.ScoutCheckbox & JSXBase.HTMLAttributes<HTMLScoutCheckboxElement>;
|
|
1018
1178
|
"scout-divider": LocalJSX.ScoutDivider & JSXBase.HTMLAttributes<HTMLScoutDividerElement>;
|
|
1179
|
+
/**
|
|
1180
|
+
* The field component is used to wrap form fields with a label, help text, and
|
|
1181
|
+
* error messages. It automatically captures validation events from its child
|
|
1182
|
+
* input components and displays error messages accordingly.
|
|
1183
|
+
*/
|
|
1019
1184
|
"scout-field": LocalJSX.ScoutField & JSXBase.HTMLAttributes<HTMLScoutFieldElement>;
|
|
1185
|
+
/**
|
|
1186
|
+
* The input component is a basic text input field that can be used to capture
|
|
1187
|
+
* user input. It supports various types and input modes for different use
|
|
1188
|
+
* cases. When used in a form, make sure to wrap it in a Field component to
|
|
1189
|
+
* display a label, help text, and error messages.
|
|
1190
|
+
*/
|
|
1020
1191
|
"scout-input": LocalJSX.ScoutInput & JSXBase.HTMLAttributes<HTMLScoutInputElement>;
|
|
1021
1192
|
"scout-link": LocalJSX.ScoutLink & JSXBase.HTMLAttributes<HTMLScoutLinkElement>;
|
|
1022
1193
|
"scout-list-view": LocalJSX.ScoutListView & JSXBase.HTMLAttributes<HTMLScoutListViewElement>;
|
|
1023
1194
|
"scout-list-view-item": LocalJSX.ScoutListViewItem & JSXBase.HTMLAttributes<HTMLScoutListViewItemElement>;
|
|
1024
1195
|
"scout-list-view-subheader": LocalJSX.ScoutListViewSubheader & JSXBase.HTMLAttributes<HTMLScoutListViewSubheaderElement>;
|
|
1025
1196
|
"scout-loader": LocalJSX.ScoutLoader & JSXBase.HTMLAttributes<HTMLScoutLoaderElement>;
|
|
1197
|
+
/**
|
|
1198
|
+
* The radio button component is used to let users select one option from a set.
|
|
1199
|
+
* When used in a form, make sure to wrap it in a Field component to display a
|
|
1200
|
+
* label, help text, and error messages.
|
|
1201
|
+
*/
|
|
1026
1202
|
"scout-radio-button": LocalJSX.ScoutRadioButton & JSXBase.HTMLAttributes<HTMLScoutRadioButtonElement>;
|
|
1203
|
+
/**
|
|
1204
|
+
* The select component is a dropdown menu that allows users to select one
|
|
1205
|
+
* option from a list. When used in a form, make sure to wrap it in a Field
|
|
1206
|
+
* component to display a label, help text, and error messages.
|
|
1207
|
+
*/
|
|
1027
1208
|
"scout-select": LocalJSX.ScoutSelect & JSXBase.HTMLAttributes<HTMLScoutSelectElement>;
|
|
1028
1209
|
"scout-stack": LocalJSX.ScoutStack & JSXBase.HTMLAttributes<HTMLScoutStackElement>;
|
|
1210
|
+
/**
|
|
1211
|
+
* The switch component is used to toggle between two states, on and off.
|
|
1212
|
+
* Behaves like a checkbox. When used in a form, make sure to wrap it in a Field
|
|
1213
|
+
* component to display a label, help text, and error messages.
|
|
1214
|
+
*/
|
|
1029
1215
|
"scout-switch": LocalJSX.ScoutSwitch & JSXBase.HTMLAttributes<HTMLScoutSwitchElement>;
|
|
1030
1216
|
}
|
|
1031
1217
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as a,h as r}from"./p-ksA_9NPe.js";const s=":host{display:contents}.card{display:block;border-radius:var(--spacing-2);border:1px solid var(--color-gray-100);padding:var(--spacing-2);box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1),\n 0 1px 2px -1px rgba(0, 0, 0, 0.1)}";const c=class{constructor(r){a(this,r)}render(){return r("div",{key:"1ea5b0a2ea2a8f342e0153d9e90565cc69e2f336",class:"card"},r("slot",{key:"328519393a7ad17aa158dea8835f16ebdc0cc7bc"}))}static get delegatesFocus(){return true}};c.style=s;export{c as scout_card};
|
|
2
|
+
//# sourceMappingURL=p-08499152.entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["registerInstance","h","cardCss","ScoutCard","constructor","hostRef","this","render","key","class","delegatesFocus","style"],"sources":["0"],"mappings":"
|
|
1
|
+
{"version":3,"names":["registerInstance","h","cardCss","ScoutCard","constructor","hostRef","this","render","key","class","delegatesFocus","style"],"sources":["0"],"mappings":"YAAcA,OAAkBC,MAAS,kBAEzC,MAAMC,EAAU,+NAEhB,MAAMC,EAAY,MACd,WAAAC,CAAYC,GACRL,EAAiBM,KAAMD,EAC3B,CACA,MAAAE,GACI,OAAQN,EAAE,MAAO,CAAEO,IAAK,2CAA4CC,MAAO,QAAUR,EAAE,OAAQ,CAAEO,IAAK,6CAC1G,CACA,yBAAWE,GAAmB,OAAO,IAAM,GAE/CP,EAAUQ,MAAQT,SAETC","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{M as e,r as
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{M as e,r as s,c as a,h as c}from"./p-ksA_9NPe.js";import{i as t}from"./p-BsG0XL4c.js";const o="data:image/svg+xml;base64,PHN2ZwogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICB3aWR0aD0iMjQiCiAgaGVpZ2h0PSIyNCIKICB2aWV3Qm94PSIwIDAgMjQgMjQiCiAgZmlsbD0ibm9uZSIKICBzdHJva2U9ImN1cnJlbnRDb2xvciIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCiAgY2xhc3M9Imljb24gaWNvbi10YWJsZXIgaWNvbnMtdGFibGVyLW91dGxpbmUgaWNvbi10YWJsZXItY2hldnJvbi1kb3duIgo+CiAgPHBhdGggc3Ryb2tlPSJub25lIiBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+CiAgPHBhdGggZD0iTTYgOWw2IDZsNiAtNiIgLz4KPC9zdmc+";const i=".select-wrapper.sc-scout-select{position:relative;display:inline-flex;width:100%}.select.sc-scout-select{width:100%;height:var(--spacing-10);padding:var(--spacing-2);padding-right:var(--spacing-8);font:var(--type-body-base);border:1px solid var(--color-gray-300);border-radius:var(--spacing-2);background-color:var(--color-white);color:var(--color-text-base);-moz-appearance:none;appearance:none;-webkit-appearance:none;cursor:pointer}.select.sc-scout-select:hover:not(:disabled){border-color:var(--color-gray-400)}.select.sc-scout-select:focus{outline:2px solid var(--color-background-brand-base);outline-offset:1px}.select.sc-scout-select:disabled{background-color:var(--color-gray-100);color:var(--color-gray-700);cursor:not-allowed}.select-icon.sc-scout-select{position:absolute;right:var(--spacing-2);top:50%;transform:translateY(-50%);width:var(--spacing-5);height:var(--spacing-5);background-color:var(--color-text-base);-webkit-mask-image:var(--icon-chevron);mask-image:var(--icon-chevron);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;pointer-events:none}.select.sc-scout-select:disabled+.select-icon.sc-scout-select{background-color:var(--color-gray-500)}";const r=class extends(e(t)){constructor(e){super();s(this,e);this.scoutInputChange=a(this,"scoutInputChange");this.scoutBlur=a(this,"scoutBlur");this._scoutValidate=a(this,"_scoutValidate");this._scoutInvalid=a(this,"_scoutInvalid");this._scoutFieldId=a(this,"_scoutFieldId")}value="";disabled=false;name;render(){return c("div",{key:"12bf95188935ab6b11101c829970800199b53e9a",class:"select-wrapper"},c("select",{key:"1c373cc25f6de17b7139baab0af69fd23adf3b85",id:this.ariaId,name:this.name,class:"select",disabled:this.disabled,onChange:()=>this.onInput(),onBlur:()=>this.onBlur(),onInvalid:()=>this.onInvalid()},c("slot",{key:"99f4430d6433e96c95651acba4ff0068235d1cb8"})),c("span",{key:"4f36424bd7395db03ea9caf10751cd570fc06853",class:"select-icon",style:{"--icon-chevron":`url(${o})`},"aria-hidden":"true"}))}};r.style=i;export{r as scout_select};
|
|
2
|
+
//# sourceMappingURL=p-0b8a7cc9.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{M as t,r as s,c as a,h as i,H as r}from"./p-ksA_9NPe.js";import{i as o}from"./p-BsG0XL4c.js";const e=".sc-scout-input-h{display:flex;height:var(--spacing-10);--scout-input-padding:var(--spacing-2);--scout-input-border-radius:var(--spacing-2);--scout-input-type:var(--type-body-base)}.large.sc-scout-input-h{height:var(--spacing-14);--scout-input-padding:var(--spacing-3);--scout-input-border-radius:var(--spacing-3);--scout-input-type:var(--type-body-lg)}.input.sc-scout-input{flex:1;padding:var(--scout-input-padding);font:var(--scout-input-type);border:1px solid var(--color-gray-300);border-radius:var(--scout-input-border-radius);background-color:var(--color-white);color:var(--color-text-base)}.input.sc-scout-input:disabled{background-color:var(--color-gray-100);color:var(--color-gray-700);cursor:not-allowed}.elevated.sc-scout-input-h .input.sc-scout-input{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1),\n 0 2px 4px -2px rgba(0, 0, 0, 0.1);border-color:transparent}";const c=class extends(t(o)){constructor(t){super();s(this,t);this.scoutInputChange=a(this,"scoutInputChange");this.scoutBlur=a(this,"scoutBlur");this._scoutValidate=a(this,"_scoutValidate");this._scoutInvalid=a(this,"_scoutInvalid");this._scoutFieldId=a(this,"_scoutFieldId")}size="medium";variant="default";type="text";inputmode;pattern;value="";name;disabled=false;placeholder;render(){const t=this.size==="large"?"large":"";const s=this.variant==="elevated"?"elevated":"";return i(r,{key:"769603f718f511a0a2202814a7621d60a2a9f34c",class:`${t} ${s}`},i("input",{key:"6a4e1ad8173dfe37ce5facf8627990fd797dfc60",ref:t=>this.setInputRef(t),id:this.ariaId,type:this.type,name:this.name,inputMode:this.inputmode,pattern:this.pattern,class:"input",value:this.value,disabled:this.disabled,placeholder:this.placeholder,onInput:()=>this.onInput(),onBlur:()=>this.onBlur(),onInvalid:()=>this.onInvalid()}))}};c.style=e;export{c as scout_input};
|
|
2
|
+
//# sourceMappingURL=p-2a842a24.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Mixin","registerInstance","createEvent","h","Host","inputMixin","inputCss","ScoutInput","constructor","hostRef","super","this","scoutInputChange","scoutBlur","_scoutValidate","_scoutInvalid","_scoutFieldId","size","variant","type","inputmode","pattern","value","name","disabled","placeholder","render","sizeClass","variantClass","key","class","ref","el","setInputRef","id","ariaId","inputMode","onInput","onBlur","onInvalid","style"],"sources":["0"],"mappings":"YAAcA,OAAYC,OAAuBC,OAAaC,OAAQC,MAAY,8BACpEC,MAAkB,kBAEhC,MAAMC,EAAW,42BAEjB,MAAMC,EAAa,cAAcP,EAAMK,IACnC,WAAAG,CAAYC,GACRC,QACAT,EAAiBU,KAAMF,GACvBE,KAAKC,iBAAmBV,EAAYS,KAAM,oBAC1CA,KAAKE,UAAYX,EAAYS,KAAM,aACnCA,KAAKG,eAAiBZ,EAAYS,KAAM,kBACxCA,KAAKI,cAAgBb,EAAYS,KAAM,iBACvCA,KAAKK,cAAgBd,EAAYS,KAAM,gBAC3C,CAMAM,KAAO,SAMPC,QAAU,UAMVC,KAAO,OAIPC,UAIAC,QAIAC,MAAQ,GACRC,KAKAC,SAAW,MAKXC,YACA,MAAAC,GACI,MAAMC,EAAYhB,KAAKM,OAAS,QAAU,QAAU,GACpD,MAAMW,EAAejB,KAAKO,UAAY,WAAa,WAAa,GAChE,OAAQf,EAAEC,EAAM,CAAEyB,IAAK,2CAA4CC,MAAO,GAAGH,KAAaC,KAAkBzB,EAAE,QAAS,CAAE0B,IAAK,2CAA4CE,IAAMC,GAAOrB,KAAKsB,YAAYD,GAAKE,GAAIvB,KAAKwB,OAAQhB,KAAMR,KAAKQ,KAAMI,KAAMZ,KAAKY,KAAMa,UAAWzB,KAAKS,UAAWC,QAASV,KAAKU,QAASS,MAAO,QAASR,MAAOX,KAAKW,MAAOE,SAAUb,KAAKa,SAAUC,YAAad,KAAKc,YAAaY,QAAS,IAAM1B,KAAK0B,UAAWC,OAAQ,IAAM3B,KAAK2B,SAAUC,UAAW,IAAM5B,KAAK4B,cACne,GAEJhC,EAAWiC,MAAQlC,SAEVC","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as r}from"./p-ksA_9NPe.js";const n=":host{display:flex}.button{flex:1;display:flex;align-items:center;text-align:inherit;min-height:var(--spacing-12);color:var(--color-text-base);padding:var(--spacing-2) var(--spacing-4);cursor:pointer;border:none;background-color:transparent;-webkit-text-decoration:none;text-decoration:none}.button:hover{background-color:var(--color-background-brand-subtle-hovered)}.prefix-icon,.suffix-icon{display:flex;align-items:center;height:var(--spacing-6);color:var(--color-neutral-700)}.prefix-icon svg,.suffix-icon svg,.prefix-icon .icon,.suffix-icon .icon{width:var(--spacing-6);height:var(--spacing-6)}.prefix-icon{justify-content:flex-start;width:var(--spacing-14)}.suffix-icon{justify-content:flex-end;width:var(--spacing-8)}.suffix-icon .icon{background-color:currentColor;-webkit-mask-image:var(--icon);mask-image:var(--icon);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%}.content{flex:1;display:flex;flex-direction:column;justify-content:center}.primary{font:var(--type-body-base)}.secondary{font:var(--type-body-sm);color:var(--color-neutral-700)}";const s=class{constructor(i){t(this,i);this.scoutClick=e(this,"scoutClick")}icon;primary;secondary;type="button";href;target;rel;name;value;checked;scoutClick;render(){const t=this.type==="link"?"a":this.type==="radio"||this.type==="checkbox"?"label":"button";const e=this.type==="link"?{href:this.href,target:this.target,rel:this.rel??(this.target==="_blank"?"noopener noreferrer":undefined)}:{};return i(r,{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as e,h as i,H as r}from"./p-ksA_9NPe.js";const n=":host{display:flex}.button{flex:1;display:flex;align-items:center;text-align:inherit;min-height:var(--spacing-12);color:var(--color-text-base);padding:var(--spacing-2) var(--spacing-4);cursor:pointer;border:none;background-color:transparent;-webkit-text-decoration:none;text-decoration:none}.button:hover{background-color:var(--color-background-brand-subtle-hovered)}.prefix-icon,.suffix-icon{display:flex;align-items:center;height:var(--spacing-6);color:var(--color-neutral-700)}.prefix-icon svg,.suffix-icon svg,.prefix-icon .icon,.suffix-icon .icon{width:var(--spacing-6);height:var(--spacing-6)}.prefix-icon{justify-content:flex-start;width:var(--spacing-14)}.suffix-icon{justify-content:flex-end;width:var(--spacing-8)}.suffix-icon .icon{background-color:currentColor;-webkit-mask-image:var(--icon);mask-image:var(--icon);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%}.content{flex:1;display:flex;flex-direction:column;justify-content:center}.primary{font:var(--type-body-base)}.secondary{font:var(--type-body-sm);color:var(--color-neutral-700)}";const s=class{constructor(i){t(this,i);this.scoutClick=e(this,"scoutClick")}icon;primary;secondary;type="button";href;target;rel;name;value;checked;disabled;scoutClick;render(){const t=this.type==="link"?"a":this.type==="radio"||this.type==="checkbox"?"label":"button";const e=this.type==="link"?{href:this.href,target:this.target,rel:this.rel??(this.target==="_blank"?"noopener noreferrer":undefined)}:{};return i(r,{key:"329bcf60c9b9df6af329d833500b673f3de7e0ff",role:"listitem"},i(t,{key:"864c0c388e72a544afac7b73dc715fc992f913aa",class:"button",...e,onClick:()=>this.scoutClick.emit()},this.getPrefix(),this.getContent(),this.getSuffix()))}getPrefix(){if(!this.icon){return null}return i("div",{class:"prefix-icon",innerHTML:this.icon})}getContent(){return i("div",{class:"content"},this.primary&&i("div",{class:"primary"},this.primary),this.secondary&&i("div",{class:"secondary"},this.secondary))}getSuffix(){if(this.type==="radio"){return i("scout-radio-button",{name:this.name,value:this.value,checked:this.checked,disabled:this.disabled})}if(this.type==="checkbox"){return i("scout-checkbox",{name:this.name,value:this.value,checked:this.checked,disabled:this.disabled})}return null}static get delegatesFocus(){return true}};s.style=n;export{s as scout_list_view_item};
|
|
2
|
+
//# sourceMappingURL=p-30b75968.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["registerInstance","createEvent","h","Host","listViewItemCss","ScoutListViewItem","constructor","hostRef","this","scoutClick","icon","primary","secondary","type","href","target","rel","name","value","checked","disabled","render","Tag","linkProps","undefined","key","role","class","onClick","emit","getPrefix","getContent","getSuffix","innerHTML","delegatesFocus","style"],"sources":["0"],"mappings":"YAAcA,OAAuBC,OAAaC,OAAQC,MAAY,kBAEtE,MAAMC,EAAkB,mlCAExB,MAAMC,EAAoB,MACtB,WAAAC,CAAYC,GACRP,EAAiBQ,KAAMD,GACvBC,KAAKC,WAAaR,EAAYO,KAAM,aACxC,CACAE,KACAC,QACAC,UACAC,KAAO,SACPC,KACAC,OACAC,IACAC,KACAC,MACAC,QACAC,SACAX,WACA,MAAAY,GACI,MAAMC,EAAMd,KAAKK,OAAS,OACpB,IACAL,KAAKK,OAAS,SAAWL,KAAKK,OAAS,WACnC,QACA,SACV,MAAMU,EAAYf,KAAKK,OAAS,OAC1B,CACEC,KAAMN,KAAKM,KACXC,OAAQP,KAAKO,OAEbC,IAAKR,KAAKQ,MACLR,KAAKO,SAAW,SAAW,sBAAwBS,YAE1D,CAAC,EACP,OAAQtB,EAAEC,EAAM,CAAEsB,IAAK,2CAA4CC,KAAM,YAAcxB,EAAEoB,EAAK,CAAEG,IAAK,2CAA4CE,MAAO,YAAaJ,EAAWK,QAAS,IAAMpB,KAAKC,WAAWoB,QAAUrB,KAAKsB,YAAatB,KAAKuB,aAAcvB,KAAKwB,aACvQ,CACA,SAAAF,GACI,IAAKtB,KAAKE,KAAM,CACZ,OAAO,IACX,CACA,OAAOR,EAAE,MAAO,CAAEyB,MAAO,cAAeM,UAAWzB,KAAKE,MAC5D,CACA,UAAAqB,GACI,OAAQ7B,EAAE,MAAO,CAAEyB,MAAO,WAAanB,KAAKG,SAAWT,EAAE,MAAO,CAAEyB,MAAO,WAAanB,KAAKG,SAAUH,KAAKI,WAAaV,EAAE,MAAO,CAAEyB,MAAO,aAAenB,KAAKI,WACjK,CACA,SAAAoB,GACI,GAAIxB,KAAKK,OAAS,QAAS,CACvB,OAAQX,EAAE,qBAAsB,CAAEe,KAAMT,KAAKS,KAAMC,MAAOV,KAAKU,MAAOC,QAASX,KAAKW,QAASC,SAAUZ,KAAKY,UAChH,CACA,GAAIZ,KAAKK,OAAS,WAAY,CAC1B,OAAQX,EAAE,iBAAkB,CAAEe,KAAMT,KAAKS,KAAMC,MAAOV,KAAKU,MAAOC,QAASX,KAAKW,QAASC,SAAUZ,KAAKY,UAC5G,CACA,OAAO,IACX,CACA,yBAAWc,GAAmB,OAAO,IAAM,GAE/C7B,EAAkB8B,MAAQ/B,SAEjBC","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as o,c as t,h as r,H as n}from"./p-ksA_9NPe.js";const c="scout-button{display:inline-block;height:var(--spacing-10)}scout-button .button{flex:1;display:inline-flex;height:100%;align-items:center;justify-content:center;gap:var(--spacing-3);padding:0 var(--spacing-4);font:var(--type-body-base);border-radius:var(--spacing-2);border:1px solid transparent;cursor:pointer;-webkit-text-decoration:none;text-decoration:none;box-sizing:border-box}scout-button .icon{width:var(--spacing-5);height:var(--spacing-5);margin:0 calc(var(--spacing-1) * -1)}scout-button .icon svg{width:100%;height:100%}scout-button.icon-only .button{aspect-ratio:1 / 1;justify-content:center;padding:0}scout-button.icon-only .icon{margin:0}scout-button.icon-only .content{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}scout-button .button.primary{background-color:var(--color-background-brand-base);color:var(--color-text-brand-inverse)}scout-button .button.primary:hover{background-color:var(--color-background-brand-hovered)}scout-button .button.primary:active{background-color:var(--color-background-brand-pressed)}scout-button .button.outlined{background-color:transparent;border-color:var(--color-background-brand-subtle-base);color:var(--color-text-brand-base)}scout-button .button.outlined:hover{background-color:var(--color-background-brand-subtle-hovered)}scout-button .button.outlined:active{background-color:var(--color-background-brand-subtle-pressed)}scout-button .button.text{background-color:transparent;border-color:transparent;color:var(--color-text-brand-base)}scout-button .button.text:hover{background-color:var(--color-background-brand-subtle-hovered)}scout-button .button.text:active{background-color:var(--color-background-brand-subtle-pressed)}scout-button .button.caution{background-color:var(--color-background-caution-bold-base);color:var(--color-text-caution-bold-base)}scout-button .button.caution:hover{background-color:var(--color-background-caution-bold-hovered)}scout-button .button.caution:active{background-color:var(--color-background-caution-bold-pressed)}scout-button .button.danger{background-color:var(--color-background-danger-bold-base);color:var(--color-text-danger-bold-base)}scout-button .button.danger:hover{background-color:var(--color-background-danger-bold-hovered)}scout-button .button.danger:active{background-color:var(--color-background-danger-bold-pressed)}";const a=class{constructor(r){o(this,r);this.scoutClick=t(this,"scoutClick")}type="button";href;target;rel;variant="outlined";icon;iconPosition="after";iconOnly=false;scoutClick;render(){const o=this.type==="link"?"a":"button";const t=this.type==="link"?{href:this.href,target:this.target,rel:this.rel??(this.target==="_blank"?"noopener noreferrer":undefined)}:{type:this.type};const c=this.icon&&r("span",{key:"0f03bad87dbcaf10cc387fd20121bd6b3ecdf42d",class:"icon",innerHTML:this.icon});return r(n,{key:"7a2f998327c5e3dc7139c11f3fcbbe827346c0ee",class:this.iconOnly?"icon-only":""},r(o,{key:"cabe4acf010df2880a83d5b27f2e885bf326673c",class:`button ${this.variant}`,onClick:()=>this.scoutClick.emit(),...t},this.iconPosition==="before"&&c,r("span",{key:"7388a6a872149b4cff84256017ee251196612e1a",class:"content"},r("slot",{key:"0002a40443d7da3b386a708543185cbc572bb461"})),this.iconPosition==="after"&&c))}};a.style=c;export{a as scout_button};
|
|
2
|
+
//# sourceMappingURL=p-3ac00412.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["registerInstance","createEvent","h","Host","buttonCss","ScoutButton","constructor","hostRef","this","scoutClick","type","href","target","rel","variant","icon","iconPosition","iconOnly","render","Tag","props","undefined","key","class","innerHTML","onClick","emit","style"],"sources":["0"],"mappings":"YAAcA,OAAuBC,OAAaC,OAAQC,MAAY,kBAEtE,MAAMC,EAAY,21EAElB,MAAMC,EAAc,MAChB,WAAAC,CAAYC,GACRP,EAAiBQ,KAAMD,GACvBC,KAAKC,WAAaR,EAAYO,KAAM,aACxC,CACAE,KAAO,SACPC,KACAC,OACAC,IAIAC,QAAU,WAIVC,KACAC,aAAe,QACfC,SAAW,MACXR,WACA,MAAAS,GACI,MAAMC,EAAMX,KAAKE,OAAS,OAAS,IAAM,SACzC,MAAMU,EAAQZ,KAAKE,OAAS,OACtB,CACEC,KAAMH,KAAKG,KACXC,OAAQJ,KAAKI,OAEbC,IAAKL,KAAKK,MACLL,KAAKI,SAAW,SAAW,sBAAwBS,YAE1D,CACEX,KAAMF,KAAKE,MAEnB,MAAMK,EAAOP,KAAKO,MAAQb,EAAE,OAAQ,CAAEoB,IAAK,2CAA4CC,MAAO,OAAQC,UAAWhB,KAAKO,OACtH,OAAQb,EAAEC,EAAM,CAAEmB,IAAK,2CAA4CC,MAAOf,KAAKS,SAAW,YAAc,IAAMf,EAAEiB,EAAK,CAAEG,IAAK,2CAA4CC,MAAO,UAAUf,KAAKM,UAAWW,QAAS,IAAMjB,KAAKC,WAAWiB,UAAWN,GAASZ,KAAKQ,eAAiB,UAAYD,EAAMb,EAAE,OAAQ,CAAEoB,IAAK,2CAA4CC,MAAO,WAAarB,EAAE,OAAQ,CAAEoB,IAAK,8CAAgDd,KAAKQ,eAAiB,SAAWD,GAC3d,GAEJV,EAAYsB,MAAQvB,SAEXC","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,a as t,h as s,H as c}from"./p-ksA_9NPe.js";const o=":host{display:flex;flex-direction:column;padding:var(--spacing-2) 0}";const r=class{constructor(t){e(this,t)}get el(){return t(this)}onScoutChecked(e){const{checked:t,element:s}=e.detail;if(s.type!=="radio"||!s.name||!t){return}const c=this.el.querySelectorAll("scout-list-view-item");const o=[];c.forEach((e=>{const t=e.shadowRoot.querySelectorAll(`input[type="radio"][name="${CSS.escape(s.name)}"]`);t.forEach((e=>{if(e!==s){o.push(e)}}))}));for(const e of o){e.checked=false}}render(){return s(c,{key:"68c7e8924c60ba15c6c8a64724eebeea1731909f",role:"list"},s("slot",{key:"7b686b0f83c138ab0d497f9b6a0d7d5927bce63c"}))}static get delegatesFocus(){return true}};r.style=o;export{r as scout_list_view};
|
|
2
|
+
//# sourceMappingURL=p-4f28520e.entry.js.map
|