@krollins/blueprint 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +407 -0
- package/dist/components/accordion/accordion.d.ts +113 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/accordion.style.d.ts +2 -0
- package/dist/components/accordion/accordion.style.d.ts.map +1 -0
- package/dist/components/alert/alert.d.ts +37 -0
- package/dist/components/alert/alert.d.ts.map +1 -0
- package/dist/components/alert/alert.style.d.ts +2 -0
- package/dist/components/alert/alert.style.d.ts.map +1 -0
- package/dist/components/avatar/avatar.d.ts +75 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/avatar.style.d.ts +2 -0
- package/dist/components/avatar/avatar.style.d.ts.map +1 -0
- package/dist/components/badge/badge.d.ts +46 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/badge.style.d.ts +2 -0
- package/dist/components/badge/badge.style.d.ts.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +110 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.style.d.ts +2 -0
- package/dist/components/breadcrumb/breadcrumb.style.d.ts.map +1 -0
- package/dist/components/button/button.d.ts +19 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/button.style.d.ts +2 -0
- package/dist/components/button/button.style.d.ts.map +1 -0
- package/dist/components/card/card.d.ts +62 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/card.style.d.ts +2 -0
- package/dist/components/card/card.style.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +89 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.style.d.ts +2 -0
- package/dist/components/checkbox/checkbox.style.d.ts.map +1 -0
- package/dist/components/color-picker/color-picker.d.ts +366 -0
- package/dist/components/color-picker/color-picker.d.ts.map +1 -0
- package/dist/components/color-picker/color-picker.style.d.ts +14 -0
- package/dist/components/color-picker/color-picker.style.d.ts.map +1 -0
- package/dist/components/color-picker/color-picker.utils.d.ts +100 -0
- package/dist/components/color-picker/color-picker.utils.d.ts.map +1 -0
- package/dist/components/combobox/combobox.d.ts +74 -0
- package/dist/components/combobox/combobox.d.ts.map +1 -0
- package/dist/components/combobox/combobox.style.d.ts +2 -0
- package/dist/components/combobox/combobox.style.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.d.ts +65 -0
- package/dist/components/date-picker/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.style.d.ts +2 -0
- package/dist/components/date-picker/date-picker.style.d.ts.map +1 -0
- package/dist/components/divider/divider.d.ts +54 -0
- package/dist/components/divider/divider.d.ts.map +1 -0
- package/dist/components/divider/divider.style.d.ts +2 -0
- package/dist/components/divider/divider.style.d.ts.map +1 -0
- package/dist/components/drawer/drawer.d.ts +113 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -0
- package/dist/components/drawer/drawer.style.d.ts +2 -0
- package/dist/components/drawer/drawer.style.d.ts.map +1 -0
- package/dist/components/dropdown/dropdown.d.ts +80 -0
- package/dist/components/dropdown/dropdown.d.ts.map +1 -0
- package/dist/components/dropdown/dropdown.style.d.ts +2 -0
- package/dist/components/dropdown/dropdown.style.d.ts.map +1 -0
- package/dist/components/file-upload/file-upload.d.ts +116 -0
- package/dist/components/file-upload/file-upload.d.ts.map +1 -0
- package/dist/components/file-upload/file-upload.style.d.ts +2 -0
- package/dist/components/file-upload/file-upload.style.d.ts.map +1 -0
- package/dist/components/heading/heading.d.ts +46 -0
- package/dist/components/heading/heading.d.ts.map +1 -0
- package/dist/components/heading/heading.style.d.ts +2 -0
- package/dist/components/heading/heading.style.d.ts.map +1 -0
- package/dist/components/icon/icon.d.ts +57 -0
- package/dist/components/icon/icon.d.ts.map +1 -0
- package/dist/components/icon/icon.style.d.ts +2 -0
- package/dist/components/icon/icon.style.d.ts.map +1 -0
- package/dist/components/icon/icons/registry.generated.d.ts +25 -0
- package/dist/components/icon/icons/registry.generated.d.ts.map +1 -0
- package/dist/components/index.d.ts +45 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/input/input.d.ts +56 -0
- package/dist/components/input/input.d.ts.map +1 -0
- package/dist/components/input/input.style.d.ts +2 -0
- package/dist/components/input/input.style.d.ts.map +1 -0
- package/dist/components/link/link.d.ts +62 -0
- package/dist/components/link/link.d.ts.map +1 -0
- package/dist/components/link/link.style.d.ts +2 -0
- package/dist/components/link/link.style.d.ts.map +1 -0
- package/dist/components/menu/menu.d.ts +86 -0
- package/dist/components/menu/menu.d.ts.map +1 -0
- package/dist/components/menu/menu.style.d.ts +2 -0
- package/dist/components/menu/menu.style.d.ts.map +1 -0
- package/dist/components/modal/modal.d.ts +40 -0
- package/dist/components/modal/modal.d.ts.map +1 -0
- package/dist/components/modal/modal.style.d.ts +2 -0
- package/dist/components/modal/modal.style.d.ts.map +1 -0
- package/dist/components/multi-select/multi-select.d.ts +69 -0
- package/dist/components/multi-select/multi-select.d.ts.map +1 -0
- package/dist/components/multi-select/multi-select.style.d.ts +2 -0
- package/dist/components/multi-select/multi-select.style.d.ts.map +1 -0
- package/dist/components/notification/notification.d.ts +102 -0
- package/dist/components/notification/notification.d.ts.map +1 -0
- package/dist/components/notification/notification.style.d.ts +2 -0
- package/dist/components/notification/notification.style.d.ts.map +1 -0
- package/dist/components/number-input/number-input.d.ts +139 -0
- package/dist/components/number-input/number-input.d.ts.map +1 -0
- package/dist/components/number-input/number-input.style.d.ts +2 -0
- package/dist/components/number-input/number-input.style.d.ts.map +1 -0
- package/dist/components/pagination/pagination.d.ts +49 -0
- package/dist/components/pagination/pagination.d.ts.map +1 -0
- package/dist/components/pagination/pagination.style.d.ts +2 -0
- package/dist/components/pagination/pagination.style.d.ts.map +1 -0
- package/dist/components/popover/popover.d.ts +153 -0
- package/dist/components/popover/popover.d.ts.map +1 -0
- package/dist/components/popover/popover.style.d.ts +2 -0
- package/dist/components/popover/popover.style.d.ts.map +1 -0
- package/dist/components/progress/progress.d.ts +50 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/progress/progress.style.d.ts +2 -0
- package/dist/components/progress/progress.style.d.ts.map +1 -0
- package/dist/components/radio/radio.d.ts +95 -0
- package/dist/components/radio/radio.d.ts.map +1 -0
- package/dist/components/radio/radio.style.d.ts +2 -0
- package/dist/components/radio/radio.style.d.ts.map +1 -0
- package/dist/components/select/select.d.ts +49 -0
- package/dist/components/select/select.d.ts.map +1 -0
- package/dist/components/select/select.style.d.ts +2 -0
- package/dist/components/select/select.style.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +50 -0
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.style.d.ts +2 -0
- package/dist/components/skeleton/skeleton.style.d.ts.map +1 -0
- package/dist/components/slider/slider.d.ts +115 -0
- package/dist/components/slider/slider.d.ts.map +1 -0
- package/dist/components/slider/slider.style.d.ts +2 -0
- package/dist/components/slider/slider.style.d.ts.map +1 -0
- package/dist/components/spinner/spinner.d.ts +36 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -0
- package/dist/components/spinner/spinner.style.d.ts +2 -0
- package/dist/components/spinner/spinner.style.d.ts.map +1 -0
- package/dist/components/stepper/stepper.d.ts +228 -0
- package/dist/components/stepper/stepper.d.ts.map +1 -0
- package/dist/components/stepper/stepper.style.d.ts +2 -0
- package/dist/components/stepper/stepper.style.d.ts.map +1 -0
- package/dist/components/switch/switch.d.ts +90 -0
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/switch/switch.style.d.ts +2 -0
- package/dist/components/switch/switch.style.d.ts.map +1 -0
- package/dist/components/table/table.d.ts +176 -0
- package/dist/components/table/table.d.ts.map +1 -0
- package/dist/components/table/table.style.d.ts +2 -0
- package/dist/components/table/table.style.d.ts.map +1 -0
- package/dist/components/tabs/tabs.d.ts +124 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tabs/tabs.style.d.ts +2 -0
- package/dist/components/tabs/tabs.style.d.ts.map +1 -0
- package/dist/components/tag/tag.d.ts +64 -0
- package/dist/components/tag/tag.d.ts.map +1 -0
- package/dist/components/tag/tag.style.d.ts +2 -0
- package/dist/components/tag/tag.style.d.ts.map +1 -0
- package/dist/components/text/text.d.ts +86 -0
- package/dist/components/text/text.d.ts.map +1 -0
- package/dist/components/text/text.style.d.ts +2 -0
- package/dist/components/text/text.style.d.ts.map +1 -0
- package/dist/components/textarea/textarea.d.ts +94 -0
- package/dist/components/textarea/textarea.d.ts.map +1 -0
- package/dist/components/textarea/textarea.style.d.ts +2 -0
- package/dist/components/textarea/textarea.style.d.ts.map +1 -0
- package/dist/components/time-picker/time-picker.d.ts +51 -0
- package/dist/components/time-picker/time-picker.d.ts.map +1 -0
- package/dist/components/time-picker/time-picker.style.d.ts +2 -0
- package/dist/components/time-picker/time-picker.style.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +52 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.style.d.ts +2 -0
- package/dist/components/tooltip/tooltip.style.d.ts.map +1 -0
- package/dist/components/tree/tree.d.ts +188 -0
- package/dist/components/tree/tree.d.ts.map +1 -0
- package/dist/components/tree/tree.style.d.ts +2 -0
- package/dist/components/tree/tree.style.d.ts.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17802 -0
- package/dist/index.js.map +1 -0
- package/dist/utilities/boolean-converter.d.ts +23 -0
- package/dist/utilities/boolean-converter.d.ts.map +1 -0
- package/dist/utilities/debounce.d.ts +12 -0
- package/dist/utilities/debounce.d.ts.map +1 -0
- package/dist/utilities/index.d.ts +5 -0
- package/dist/utilities/index.d.ts.map +1 -0
- package/dist/utilities/memoize.d.ts +7 -0
- package/dist/utilities/memoize.d.ts.map +1 -0
- package/dist/utilities/throttle.d.ts +12 -0
- package/dist/utilities/throttle.d.ts.map +1 -0
- package/package.json +93 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Size variants for the number input
|
|
4
|
+
*/
|
|
5
|
+
export type NumberInputSize = 'sm' | 'md' | 'lg';
|
|
6
|
+
/**
|
|
7
|
+
* Validation variant for the number input
|
|
8
|
+
*/
|
|
9
|
+
export type NumberInputVariant = 'default' | 'success' | 'error' | 'warning';
|
|
10
|
+
/**
|
|
11
|
+
* A number input component with increment/decrement buttons.
|
|
12
|
+
*
|
|
13
|
+
* @element bp-number-input
|
|
14
|
+
*
|
|
15
|
+
* @fires bp-input - Fired when the value changes during input
|
|
16
|
+
* @fires bp-change - Fired when the value changes (on blur or button click)
|
|
17
|
+
*
|
|
18
|
+
* @csspart input - The native input element
|
|
19
|
+
* @csspart decrement - The decrement button
|
|
20
|
+
* @csspart increment - The increment button
|
|
21
|
+
* @csspart label - The label element
|
|
22
|
+
* @csspart message - The help/error message element
|
|
23
|
+
*/
|
|
24
|
+
export declare class BpNumberInput extends LitElement {
|
|
25
|
+
/**
|
|
26
|
+
* Current value of the input
|
|
27
|
+
*/
|
|
28
|
+
value: number | null;
|
|
29
|
+
/**
|
|
30
|
+
* Minimum allowed value
|
|
31
|
+
*/
|
|
32
|
+
min: number | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Maximum allowed value
|
|
35
|
+
*/
|
|
36
|
+
max: number | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Step increment for buttons and arrow keys
|
|
39
|
+
*/
|
|
40
|
+
step: number;
|
|
41
|
+
/**
|
|
42
|
+
* Name attribute for form association
|
|
43
|
+
*/
|
|
44
|
+
name: string;
|
|
45
|
+
/**
|
|
46
|
+
* Label text for the input
|
|
47
|
+
*/
|
|
48
|
+
label: string;
|
|
49
|
+
/**
|
|
50
|
+
* Placeholder text when empty
|
|
51
|
+
*/
|
|
52
|
+
placeholder: string;
|
|
53
|
+
/**
|
|
54
|
+
* Whether the input is disabled
|
|
55
|
+
*/
|
|
56
|
+
disabled: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Whether the input is required
|
|
59
|
+
*/
|
|
60
|
+
required: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Whether the input is readonly
|
|
63
|
+
*/
|
|
64
|
+
readonly: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Size variant
|
|
67
|
+
*/
|
|
68
|
+
size: NumberInputSize;
|
|
69
|
+
/**
|
|
70
|
+
* Validation variant
|
|
71
|
+
*/
|
|
72
|
+
variant: NumberInputVariant;
|
|
73
|
+
/**
|
|
74
|
+
* Help or error message to display
|
|
75
|
+
*/
|
|
76
|
+
message: string;
|
|
77
|
+
/**
|
|
78
|
+
* Number of decimal places to display
|
|
79
|
+
*/
|
|
80
|
+
precision: number | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Hide the increment/decrement buttons
|
|
83
|
+
*/
|
|
84
|
+
hideButtons: boolean;
|
|
85
|
+
private inputElement;
|
|
86
|
+
static styles: import("lit").CSSResult[];
|
|
87
|
+
constructor();
|
|
88
|
+
/**
|
|
89
|
+
* Check if decrement is allowed
|
|
90
|
+
*/
|
|
91
|
+
private get canDecrement();
|
|
92
|
+
/**
|
|
93
|
+
* Check if increment is allowed
|
|
94
|
+
*/
|
|
95
|
+
private get canIncrement();
|
|
96
|
+
/**
|
|
97
|
+
* Format value for display
|
|
98
|
+
*/
|
|
99
|
+
private formatValue;
|
|
100
|
+
/**
|
|
101
|
+
* Clamp value to min/max range
|
|
102
|
+
*/
|
|
103
|
+
private clampValue;
|
|
104
|
+
/**
|
|
105
|
+
* Round value to step precision
|
|
106
|
+
*/
|
|
107
|
+
private roundToStep;
|
|
108
|
+
/**
|
|
109
|
+
* Update value and emit events
|
|
110
|
+
*/
|
|
111
|
+
private updateValue;
|
|
112
|
+
/**
|
|
113
|
+
* Handle increment button click
|
|
114
|
+
*/
|
|
115
|
+
private handleIncrement;
|
|
116
|
+
/**
|
|
117
|
+
* Handle decrement button click
|
|
118
|
+
*/
|
|
119
|
+
private handleDecrement;
|
|
120
|
+
/**
|
|
121
|
+
* Handle direct input
|
|
122
|
+
*/
|
|
123
|
+
private handleInput;
|
|
124
|
+
/**
|
|
125
|
+
* Handle blur - validate and clamp
|
|
126
|
+
*/
|
|
127
|
+
private handleBlur;
|
|
128
|
+
/**
|
|
129
|
+
* Handle keyboard navigation
|
|
130
|
+
*/
|
|
131
|
+
private handleKeyDown;
|
|
132
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
133
|
+
}
|
|
134
|
+
declare global {
|
|
135
|
+
interface HTMLElementTagNameMap {
|
|
136
|
+
'bp-number-input': BpNumberInput;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
//# sourceMappingURL=number-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../../../source/components/number-input/number-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,KAAK,CAAC;AAKhD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAE7E;;;;;;;;;;;;;GAaG;AACH,qBACa,aAAc,SAAQ,UAAU;IAC3C;;OAEG;IACiC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzD;;OAEG;IACiC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;IAE5D;;OAEG;IACiC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;IAE5D;;OAEG;IACiC,IAAI,EAAE,MAAM,CAAC;IAEjD;;OAEG;IACiC,IAAI,EAAE,MAAM,CAAC;IAEjD;;OAEG;IACiC,KAAK,EAAE,MAAM,CAAC;IAElD;;OAEG;IACiC,WAAW,EAAE,MAAM,CAAC;IAExD;;OAEG;IACiD,QAAQ,EAAE,OAAO,CAAC;IAEtE;;OAEG;IACiD,QAAQ,EAAE,OAAO,CAAC;IAEtE;;OAEG;IACiD,QAAQ,EAAE,OAAO,CAAC;IAEtE;;OAEG;IACiC,IAAI,EAAE,eAAe,CAAC;IAE1D;;OAEG;IACiC,OAAO,EAAE,kBAAkB,CAAC;IAEhE;;OAEG;IACiC,OAAO,EAAE,MAAM,CAAC;IAEpD;;OAEG;IACiC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAElE;;OAEG;IAEK,WAAW,EAAE,OAAO,CAAC;IAEb,OAAO,CAAC,YAAY,CAAoB;IAExD,MAAM,CAAC,MAAM,4BAAuB;;IAqBpC;;OAEG;IACH,OAAO,KAAK,YAAY,GAKvB;IAED;;OAEG;IACH,OAAO,KAAK,YAAY,GAKvB;IAED;;OAEG;IACH,OAAO,CAAC,WAAW;IAQnB;;OAEG;IACH,OAAO,CAAC,UAAU;IAOlB;;OAEG;IACH,OAAO,CAAC,WAAW;IAWnB;;OAEG;IACH,OAAO,CAAC,WAAW;IAkCnB;;OAEG;IACH,OAAO,CAAC,eAAe;IAMvB;;OAEG;IACH,OAAO,CAAC,eAAe;IAMvB;;OAEG;IACH,OAAO,CAAC,WAAW;IAuBnB;;OAEG;IACH,OAAO,CAAC,UAAU;IAwBlB;;OAEG;IACH,OAAO,CAAC,aAAa;IAyCrB,MAAM;CAgGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,aAAa,CAAC;KAClC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number-input.style.d.ts","sourceRoot":"","sources":["../../../source/components/number-input/number-input.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,yBA2Q7B,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A pagination component for navigating through multiple pages of content.
|
|
4
|
+
*
|
|
5
|
+
* @fires bp-page-change - Dispatched when the page changes
|
|
6
|
+
*
|
|
7
|
+
* @slot - Default slot for custom content (not typically used)
|
|
8
|
+
*
|
|
9
|
+
* @csspart container - The main pagination container
|
|
10
|
+
* @csspart button - All pagination buttons
|
|
11
|
+
* @csspart button-first - The first page button
|
|
12
|
+
* @csspart button-prev - The previous page button
|
|
13
|
+
* @csspart button-next - The next page button
|
|
14
|
+
* @csspart button-last - The last page button
|
|
15
|
+
* @csspart button-page - Individual page number buttons
|
|
16
|
+
* @csspart button-ellipsis - Ellipsis indicators
|
|
17
|
+
* @csspart info - The page info text
|
|
18
|
+
*/
|
|
19
|
+
export declare class BpPagination extends LitElement {
|
|
20
|
+
/** Current page number (1-indexed) */
|
|
21
|
+
currentPage: number;
|
|
22
|
+
/** Total number of pages */
|
|
23
|
+
totalPages: number;
|
|
24
|
+
/** Number of page buttons to show around the current page */
|
|
25
|
+
siblingCount: number;
|
|
26
|
+
/** Number of page buttons to show at the start and end */
|
|
27
|
+
boundaryCount: number;
|
|
28
|
+
/** Show first/last page buttons */
|
|
29
|
+
showFirstLast: boolean;
|
|
30
|
+
/** Show previous/next page buttons */
|
|
31
|
+
showPrevNext: boolean;
|
|
32
|
+
/** Show page info text (e.g., "Page 1 of 10") */
|
|
33
|
+
showInfo: boolean;
|
|
34
|
+
/** Disable all pagination controls */
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
/** Size variant */
|
|
37
|
+
size: 'sm' | 'md' | 'lg';
|
|
38
|
+
static styles: import("lit").CSSResult[];
|
|
39
|
+
constructor();
|
|
40
|
+
private handlePageChange;
|
|
41
|
+
private getPageNumbers;
|
|
42
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
43
|
+
}
|
|
44
|
+
declare global {
|
|
45
|
+
interface HTMLElementTagNameMap {
|
|
46
|
+
'bp-pagination': BpPagination;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../source/components/pagination/pagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC;;;;;;;;;;;;;;;;GAgBG;AACH,qBACa,YAAa,SAAQ,UAAU;IAC1C,sCAAsC;IAE9B,WAAW,EAAE,MAAM,CAAC;IAE5B,4BAA4B;IAEpB,UAAU,EAAE,MAAM,CAAC;IAE3B,6DAA6D;IAErD,YAAY,EAAE,MAAM,CAAC;IAE7B,0DAA0D;IAElD,aAAa,EAAE,MAAM,CAAC;IAE9B,mCAAmC;IAM3B,aAAa,EAAE,OAAO,CAAC;IAE/B,sCAAsC;IAM9B,YAAY,EAAE,OAAO,CAAC;IAE9B,iDAAiD;IAEzC,QAAQ,EAAE,OAAO,CAAC;IAE1B,sCAAsC;IACD,QAAQ,EAAE,OAAO,CAAC;IAEvD,mBAAmB;IACiB,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAE7D,MAAM,CAAC,MAAM,4BAAsB;;IAenC,OAAO,CAAC,gBAAgB;IAoBxB,OAAO,CAAC,cAAc;IAgDtB,MAAM;CAsGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,YAAY,CAAC;KAC/B;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.style.d.ts","sourceRoot":"","sources":["../../../source/components/pagination/pagination.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,yBA8J5B,CAAC"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../icon/icon.js';
|
|
3
|
+
export type PopoverPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
4
|
+
export type PopoverTrigger = 'click' | 'hover' | 'focus' | 'manual';
|
|
5
|
+
/**
|
|
6
|
+
* A popover component that displays rich content in a floating panel.
|
|
7
|
+
* Supports multiple trigger modes: click, hover, focus, or manual control.
|
|
8
|
+
*
|
|
9
|
+
* @fires bp-show - Fired when the popover opens
|
|
10
|
+
* @fires bp-hide - Fired when the popover closes
|
|
11
|
+
* @fires bp-after-show - Fired after the popover open animation completes
|
|
12
|
+
* @fires bp-after-hide - Fired after the popover close animation completes
|
|
13
|
+
*
|
|
14
|
+
* @slot - The trigger element that controls the popover
|
|
15
|
+
* @slot content - The rich content to display in the popover panel
|
|
16
|
+
* @slot header - Optional header content for the popover
|
|
17
|
+
* @slot footer - Optional footer content for the popover
|
|
18
|
+
*
|
|
19
|
+
* @csspart trigger - The trigger wrapper element
|
|
20
|
+
* @csspart panel - The popover panel container
|
|
21
|
+
* @csspart header - The header section
|
|
22
|
+
* @csspart body - The body/content section
|
|
23
|
+
* @csspart footer - The footer section
|
|
24
|
+
* @csspart arrow - The arrow pointing to the trigger
|
|
25
|
+
* @csspart close-button - The close button (when showClose is true)
|
|
26
|
+
*/
|
|
27
|
+
export declare class BpPopover extends LitElement {
|
|
28
|
+
/** Whether the popover is currently open */
|
|
29
|
+
open: boolean;
|
|
30
|
+
/** Placement of the popover relative to the trigger */
|
|
31
|
+
placement: PopoverPlacement;
|
|
32
|
+
/** How the popover is triggered */
|
|
33
|
+
trigger: PopoverTrigger;
|
|
34
|
+
/** Whether to show an arrow pointing to the trigger */
|
|
35
|
+
arrow: boolean;
|
|
36
|
+
/** Whether to show a close button in the popover */
|
|
37
|
+
showClose: boolean;
|
|
38
|
+
/** Whether clicking outside closes the popover */
|
|
39
|
+
closeOnOutsideClick: boolean;
|
|
40
|
+
/** Whether pressing Escape closes the popover */
|
|
41
|
+
closeOnEscape: boolean;
|
|
42
|
+
/** Distance in pixels between the trigger and the panel */
|
|
43
|
+
distance: number;
|
|
44
|
+
/** Delay in milliseconds before showing (for hover trigger) */
|
|
45
|
+
showDelay: number;
|
|
46
|
+
/** Delay in milliseconds before hiding (for hover trigger) */
|
|
47
|
+
hideDelay: number;
|
|
48
|
+
/** Whether the popover is disabled */
|
|
49
|
+
disabled: boolean;
|
|
50
|
+
/** Accessible label for the popover panel */
|
|
51
|
+
label: string;
|
|
52
|
+
/** Whether the popover has header slot content */
|
|
53
|
+
private hasHeader;
|
|
54
|
+
/** Whether the popover has footer slot content */
|
|
55
|
+
private hasFooter;
|
|
56
|
+
private triggerElement;
|
|
57
|
+
private showTimeout;
|
|
58
|
+
private hideTimeout;
|
|
59
|
+
private popoverId;
|
|
60
|
+
static styles: import("lit").CSSResult[];
|
|
61
|
+
constructor();
|
|
62
|
+
connectedCallback(): void;
|
|
63
|
+
disconnectedCallback(): void;
|
|
64
|
+
/** Show the popover */
|
|
65
|
+
show(): void;
|
|
66
|
+
/** Hide the popover */
|
|
67
|
+
hide(): void;
|
|
68
|
+
/** Toggle the popover open/closed */
|
|
69
|
+
toggle(): void;
|
|
70
|
+
/**
|
|
71
|
+
* Clears any pending show/hide timeout operations.
|
|
72
|
+
* Prevents race conditions with rapid trigger interactions.
|
|
73
|
+
*/
|
|
74
|
+
private clearTimeouts;
|
|
75
|
+
/**
|
|
76
|
+
* Handles click events on the trigger element.
|
|
77
|
+
* Toggles popover state for click trigger mode.
|
|
78
|
+
* @param event - The mouse click event
|
|
79
|
+
*/
|
|
80
|
+
private handleTriggerClick;
|
|
81
|
+
/**
|
|
82
|
+
* Handles keyboard events on the trigger element.
|
|
83
|
+
* Toggles popover on Enter or Space key for click trigger mode.
|
|
84
|
+
* @param event - The keyboard event
|
|
85
|
+
*/
|
|
86
|
+
private handleTriggerKeydown;
|
|
87
|
+
/**
|
|
88
|
+
* Handles mouse enter events on the trigger element.
|
|
89
|
+
* Starts the show delay timer for hover trigger mode.
|
|
90
|
+
*/
|
|
91
|
+
private handleTriggerMouseEnter;
|
|
92
|
+
/**
|
|
93
|
+
* Handles mouse leave events on the trigger element.
|
|
94
|
+
* Starts the hide delay timer for hover trigger mode.
|
|
95
|
+
*/
|
|
96
|
+
private handleTriggerMouseLeave;
|
|
97
|
+
/**
|
|
98
|
+
* Handles mouse enter events on the popover panel.
|
|
99
|
+
* Prevents the popover from hiding when hovering over panel content in hover trigger mode.
|
|
100
|
+
*/
|
|
101
|
+
private handlePanelMouseEnter;
|
|
102
|
+
/**
|
|
103
|
+
* Handles mouse leave events on the popover panel.
|
|
104
|
+
* Starts the hide delay timer when leaving panel in hover trigger mode.
|
|
105
|
+
*/
|
|
106
|
+
private handlePanelMouseLeave;
|
|
107
|
+
/**
|
|
108
|
+
* Handles focus events on the trigger element.
|
|
109
|
+
* Shows popover immediately for focus trigger mode.
|
|
110
|
+
*/
|
|
111
|
+
private handleTriggerFocus;
|
|
112
|
+
/**
|
|
113
|
+
* Handles blur events on the trigger element.
|
|
114
|
+
* Hides popover immediately for focus trigger mode.
|
|
115
|
+
*/
|
|
116
|
+
private handleTriggerBlur;
|
|
117
|
+
/**
|
|
118
|
+
* Handles click events on the document.
|
|
119
|
+
* Closes popover when clicking outside if closeOnOutsideClick is true.
|
|
120
|
+
* @param event - The mouse click event
|
|
121
|
+
*/
|
|
122
|
+
private handleDocumentClick;
|
|
123
|
+
/**
|
|
124
|
+
* Handles keyboard events on the document.
|
|
125
|
+
* Closes popover on Escape key if closeOnEscape is true and returns focus to trigger.
|
|
126
|
+
* @param event - The keyboard event
|
|
127
|
+
*/
|
|
128
|
+
private handleDocumentKeydown;
|
|
129
|
+
/**
|
|
130
|
+
* Handles click events on the close button.
|
|
131
|
+
* Closes the popover immediately.
|
|
132
|
+
*/
|
|
133
|
+
private handleCloseClick;
|
|
134
|
+
/**
|
|
135
|
+
* Handles changes to the header slot.
|
|
136
|
+
* Updates internal state to conditionally render header wrapper.
|
|
137
|
+
* @param event - The slotchange event
|
|
138
|
+
*/
|
|
139
|
+
private handleHeaderSlotChange;
|
|
140
|
+
/**
|
|
141
|
+
* Handles changes to the footer slot.
|
|
142
|
+
* Updates internal state to conditionally render footer wrapper.
|
|
143
|
+
* @param event - The slotchange event
|
|
144
|
+
*/
|
|
145
|
+
private handleFooterSlotChange;
|
|
146
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
147
|
+
}
|
|
148
|
+
declare global {
|
|
149
|
+
interface HTMLElementTagNameMap {
|
|
150
|
+
'bp-popover': BpPopover;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../source/components/popover/popover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,KAAK,CAAC;AAIhD,OAAO,iBAAiB,CAAC;AAEzB,MAAM,MAAM,gBAAgB,GACxB,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,OAAO,GACP,aAAa,GACb,WAAW,CAAC;AAEhB,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBACa,SAAU,SAAQ,UAAU;IACvC,4CAA4C;IACQ,IAAI,EAAE,OAAO,CAAC;IAElE,uDAAuD;IA0B/C,SAAS,EAAE,gBAAgB,CAAC;IAEpC,mCAAmC;IAiB3B,OAAO,EAAE,cAAc,CAAC;IAEhC,uDAAuD;IAClB,KAAK,EAAE,OAAO,CAAC;IAEpD,oDAAoD;IAE5C,SAAS,EAAE,OAAO,CAAC;IAE3B,kDAAkD;IAM1C,mBAAmB,EAAE,OAAO,CAAC;IAErC,iDAAiD;IAMzC,aAAa,EAAE,OAAO,CAAC;IAE/B,2DAA2D;IACvB,QAAQ,EAAE,MAAM,CAAC;IAErD,+DAA+D;IAEvD,SAAS,EAAE,MAAM,CAAC;IAE1B,8DAA8D;IAEtD,SAAS,EAAE,MAAM,CAAC;IAE1B,sCAAsC;IACD,QAAQ,EAAE,OAAO,CAAC;IAEvD,6CAA6C;IACT,KAAK,EAAE,MAAM,CAAC;IAElD,kDAAkD;IACzC,OAAO,CAAC,SAAS,CAAS;IAEnC,kDAAkD;IACzC,OAAO,CAAC,SAAS,CAAS;IAEP,OAAO,CAAC,cAAc,CAAe;IAEjE,OAAO,CAAC,WAAW,CAAuB;IAC1C,OAAO,CAAC,WAAW,CAAuB;IAC1C,OAAO,CAAC,SAAS,CAA4D;IAE7E,MAAM,CAAC,MAAM,4BAAmB;;IAkBhC,iBAAiB,IAAI,IAAI;IAQzB,oBAAoB,IAAI,IAAI;IAS5B,uBAAuB;IACvB,IAAI,IAAI,IAAI;IAiBZ,uBAAuB;IACvB,IAAI,IAAI,IAAI;IAiBZ,qCAAqC;IACrC,MAAM,IAAI,IAAI;IAQd;;;OAGG;IACH,OAAO,CAAC,aAAa;IAWrB;;;;OAIG;IACH,OAAO,CAAC,kBAAkB,CAIxB;IAEF;;;;OAIG;IACH,OAAO,CAAC,oBAAoB,CAU1B;IAEF;;;OAGG;IACH,OAAO,CAAC,uBAAuB,CAO7B;IAEF;;;OAGG;IACH,OAAO,CAAC,uBAAuB,CAO7B;IAEF;;;OAGG;IACH,OAAO,CAAC,qBAAqB,CAG3B;IAEF;;;OAGG;IACH,OAAO,CAAC,qBAAqB,CAO3B;IAEF;;;OAGG;IACH,OAAO,CAAC,kBAAkB,CAGxB;IAEF;;;OAGG;IACH,OAAO,CAAC,iBAAiB,CAGvB;IAEF;;;;OAIG;IACH,OAAO,CAAC,mBAAmB,CAQzB;IAEF;;;;OAIG;IACH,OAAO,CAAC,qBAAqB,CAQ3B;IAEF;;;OAGG;IACH,OAAO,CAAC,gBAAgB,CAEtB;IAEF;;;;OAIG;IACH,OAAO,CAAC,sBAAsB,CAK5B;IAEF;;;;OAIG;IACH,OAAO,CAAC,sBAAsB,CAK5B;IAEF,MAAM;CAyFP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.style.d.ts","sourceRoot":"","sources":["../../../source/components/popover/popover.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,yBAoVzB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export type ProgressVariant = 'primary' | 'success' | 'warning' | 'error' | 'info';
|
|
3
|
+
export type ProgressSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
/**
|
|
5
|
+
* A progress bar component for displaying task completion or loading status.
|
|
6
|
+
*
|
|
7
|
+
* @fires bp-complete - Fired when progress reaches 100%
|
|
8
|
+
*/
|
|
9
|
+
export declare class BpProgress extends LitElement {
|
|
10
|
+
/**
|
|
11
|
+
* Current progress value
|
|
12
|
+
*/
|
|
13
|
+
value: number;
|
|
14
|
+
/**
|
|
15
|
+
* Maximum value for progress (value will be clamped to 0-max)
|
|
16
|
+
*/
|
|
17
|
+
max: number;
|
|
18
|
+
/**
|
|
19
|
+
* Visual variant of the progress bar
|
|
20
|
+
*/
|
|
21
|
+
variant: ProgressVariant;
|
|
22
|
+
/**
|
|
23
|
+
* Size of the progress bar
|
|
24
|
+
*/
|
|
25
|
+
size: ProgressSize;
|
|
26
|
+
/**
|
|
27
|
+
* Optional label text displayed above the progress bar
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
/**
|
|
31
|
+
* Whether to show percentage text
|
|
32
|
+
*/
|
|
33
|
+
showValue: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the progress bar is indeterminate (loading state)
|
|
36
|
+
*/
|
|
37
|
+
indeterminate: boolean;
|
|
38
|
+
static styles: import("lit").CSSResult[];
|
|
39
|
+
constructor();
|
|
40
|
+
private get percentage();
|
|
41
|
+
private get complete();
|
|
42
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
43
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
44
|
+
}
|
|
45
|
+
declare global {
|
|
46
|
+
interface HTMLElementTagNameMap {
|
|
47
|
+
'bp-progress': BpProgress;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../source/components/progress/progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAIvC,MAAM,MAAM,eAAe,GACvB,SAAS,GACT,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C;;;;GAIG;AACH,qBACa,UAAW,SAAQ,UAAU;IACxC;;OAEG;IACiC,KAAK,EAAE,MAAM,CAAC;IAElD;;OAEG;IACiC,GAAG,EAAE,MAAM,CAAC;IAEhD;;OAEG;IACgD,OAAO,EAAE,eAAe,CAAC;IAE5E;;OAEG;IACgD,IAAI,EAAE,YAAY,CAAC;IAEtE;;OAEG;IACiC,KAAK,EAAE,MAAM,CAAC;IAElD;;OAEG;IACkC,SAAS,EAAE,OAAO,CAAC;IAExD;;OAEG;IACkC,aAAa,EAAE,OAAO,CAAC;IAE5D,MAAM,CAAC,MAAM,4BAAoB;;IAajC,OAAO,KAAK,UAAU,GAIrB;IAED,OAAO,KAAK,QAAQ,GAEnB;IAED,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAkB/C,MAAM;CA2CP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAC;KAC3B;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.style.d.ts","sourceRoot":"","sources":["../../../source/components/progress/progress.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,yBA6H1B,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export type RadioSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
/**
|
|
4
|
+
* A form radio input with label support and group functionality.
|
|
5
|
+
*
|
|
6
|
+
* @element bp-radio
|
|
7
|
+
*
|
|
8
|
+
* @property {boolean} checked - Whether the radio is checked
|
|
9
|
+
* @property {boolean} disabled - Whether the radio is disabled
|
|
10
|
+
* @property {boolean} required - Whether the radio is required
|
|
11
|
+
* @property {string} name - The name of the radio for form submission and grouping
|
|
12
|
+
* @property {string} value - The value of the radio for form submission
|
|
13
|
+
* @property {RadioSize} size - The size of the radio
|
|
14
|
+
* @property {boolean} error - Whether the radio has an error state
|
|
15
|
+
*
|
|
16
|
+
* @slot - The radio label text
|
|
17
|
+
*
|
|
18
|
+
* @fires bp-change - Fired when the checked state changes
|
|
19
|
+
* @fires bp-focus - Fired when the radio receives focus
|
|
20
|
+
* @fires bp-blur - Fired when the radio loses focus
|
|
21
|
+
*
|
|
22
|
+
* @csspart radio - The radio container
|
|
23
|
+
* @csspart input - The native radio input element
|
|
24
|
+
* @csspart circle - The visual circle indicator
|
|
25
|
+
* @csspart label - The label text container
|
|
26
|
+
*/
|
|
27
|
+
export declare class BpRadio extends LitElement {
|
|
28
|
+
input: HTMLInputElement;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the radio is checked.
|
|
31
|
+
*/
|
|
32
|
+
checked: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the radio is disabled.
|
|
35
|
+
*/
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the radio is required.
|
|
39
|
+
*/
|
|
40
|
+
required: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The name of the radio for form submission and grouping.
|
|
43
|
+
* Radios with the same name form a group where only one can be selected.
|
|
44
|
+
*/
|
|
45
|
+
name: string;
|
|
46
|
+
/**
|
|
47
|
+
* The value of the radio for form submission.
|
|
48
|
+
*/
|
|
49
|
+
value: string;
|
|
50
|
+
/**
|
|
51
|
+
* The size of the radio.
|
|
52
|
+
*/
|
|
53
|
+
size: RadioSize;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the radio has an error state.
|
|
56
|
+
*/
|
|
57
|
+
error: boolean;
|
|
58
|
+
private hasFocus;
|
|
59
|
+
static styles: import("lit").CSSResult[];
|
|
60
|
+
static formAssociated: boolean;
|
|
61
|
+
private internals;
|
|
62
|
+
constructor();
|
|
63
|
+
connectedCallback(): void;
|
|
64
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
65
|
+
private updateAriaAttributes;
|
|
66
|
+
private updateFormValue;
|
|
67
|
+
private handleChange;
|
|
68
|
+
private handleFocus;
|
|
69
|
+
private handleBlur;
|
|
70
|
+
private handleClick;
|
|
71
|
+
private uncheckOtherRadios;
|
|
72
|
+
/**
|
|
73
|
+
* Sets focus on the radio.
|
|
74
|
+
*/
|
|
75
|
+
focus(options?: globalThis.FocusOptions): void;
|
|
76
|
+
/**
|
|
77
|
+
* Removes focus from the radio.
|
|
78
|
+
*/
|
|
79
|
+
blur(): void;
|
|
80
|
+
/**
|
|
81
|
+
* Checks if the radio satisfies its required constraint.
|
|
82
|
+
*/
|
|
83
|
+
checkValidity(): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Checks validity and shows validation message if invalid.
|
|
86
|
+
*/
|
|
87
|
+
reportValidity(): boolean;
|
|
88
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
89
|
+
}
|
|
90
|
+
declare global {
|
|
91
|
+
interface HTMLElementTagNameMap {
|
|
92
|
+
'bp-radio': BpRadio;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=radio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../source/components/radio/radio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBACa,OAAQ,SAAQ,UAAU;IACC,KAAK,EAAE,gBAAgB,CAAC;IAE9D;;OAEG;IACiD,OAAO,EAAE,OAAO,CAAC;IAErE;;OAEG;IACiD,QAAQ,EAAE,OAAO,CAAC;IAEtE;;OAEG;IACiD,QAAQ,EAAE,OAAO,CAAC;IAEtE;;;OAGG;IACgD,IAAI,EAAE,MAAM,CAAC;IAEhE;;OAEG;IACiC,KAAK,EAAE,MAAM,CAAC;IAElD;;OAEG;IACgD,IAAI,EAAE,SAAS,CAAC;IAEnE;;OAEG;IACiD,KAAK,EAAE,OAAO,CAAC;IAE1D,OAAO,CAAC,QAAQ,CAAS;IAElC,MAAM,CAAC,MAAM,4BAAiB;IAE9B,MAAM,CAAC,cAAc,UAAQ;IAC7B,OAAO,CAAC,SAAS,CAA4C;;IAiB7D,iBAAiB,IAAI,IAAI;IAMzB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IActD,OAAO,CAAC,oBAAoB;IAiB5B,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,YAAY;IAkBpB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,UAAU;IAUlB,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,kBAAkB;IAkB1B;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,YAAY,GAAG,IAAI;IAI9C;;OAEG;IACH,IAAI,IAAI,IAAI;IAIZ;;OAEG;IACH,aAAa,IAAI,OAAO;IAIxB;;OAEG;IACH,cAAc,IAAI,OAAO;IAIzB,MAAM;CAqCP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio.style.d.ts","sourceRoot":"","sources":["../../../source/components/radio/radio.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,yBAkKvB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export type SelectSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
export declare class BpSelect extends LitElement {
|
|
4
|
+
/** The current value of the select */
|
|
5
|
+
value: string;
|
|
6
|
+
/** Name attribute for form submission */
|
|
7
|
+
name: string;
|
|
8
|
+
/** Visible label text displayed above the select */
|
|
9
|
+
label: string;
|
|
10
|
+
/** Placeholder text when no value is selected */
|
|
11
|
+
placeholder: string;
|
|
12
|
+
/** Whether the select is disabled */
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
/** Whether the select is required */
|
|
15
|
+
required: boolean;
|
|
16
|
+
/** Size variant of the select */
|
|
17
|
+
size: SelectSize;
|
|
18
|
+
/** Whether the dropdown is currently open */
|
|
19
|
+
private isOpen;
|
|
20
|
+
/** Label for the selected option */
|
|
21
|
+
private selectedLabel;
|
|
22
|
+
/** Index of the focused option for keyboard navigation */
|
|
23
|
+
private focusedIndex;
|
|
24
|
+
static styles: import("lit").CSSResult[];
|
|
25
|
+
constructor();
|
|
26
|
+
connectedCallback(): void;
|
|
27
|
+
disconnectedCallback(): void;
|
|
28
|
+
private handleSlotChange;
|
|
29
|
+
private updateSelectedLabel;
|
|
30
|
+
private handleDocumentClick;
|
|
31
|
+
private handleToggle;
|
|
32
|
+
private handleOptionClick;
|
|
33
|
+
private handleKeyDown;
|
|
34
|
+
private getOptions;
|
|
35
|
+
private scrollFocusedOptionIntoView;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the longest text among all options and the placeholder.
|
|
38
|
+
* Used by a hidden sizer element to keep the trigger width stable.
|
|
39
|
+
*/
|
|
40
|
+
private getSizerText;
|
|
41
|
+
private getOptionElements;
|
|
42
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
43
|
+
}
|
|
44
|
+
declare global {
|
|
45
|
+
interface HTMLElementTagNameMap {
|
|
46
|
+
'bp-select': BpSelect;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../source/components/select/select.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAOvC,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5C,qBACa,QAAS,SAAQ,UAAU;IACtC,sCAAsC;IACa,KAAK,EAAE,MAAM,CAAC;IAEjE,yCAAyC;IACL,IAAI,EAAE,MAAM,CAAC;IAEjD,oDAAoD;IACD,KAAK,EAAE,MAAM,CAAC;IAEjE,iDAAiD;IACb,WAAW,EAAE,MAAM,CAAC;IAExD,qCAAqC;IACe,QAAQ,EAAE,OAAO,CAAC;IAEtE,qCAAqC;IACe,QAAQ,EAAE,OAAO,CAAC;IAEtE,iCAAiC;IACkB,IAAI,EAAE,UAAU,CAAC;IAEpE,6CAA6C;IACpC,OAAO,CAAC,MAAM,CAAS;IAEhC,oCAAoC;IAC3B,OAAO,CAAC,aAAa,CAAM;IAEpC,0DAA0D;IACjD,OAAO,CAAC,YAAY,CAAM;IAEnC,MAAM,CAAC,MAAM,4BAAkB;;IAa/B,iBAAiB;IASjB,oBAAoB;IAOpB,OAAO,CAAC,gBAAgB,CAEtB;IAEF,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,mBAAmB,CAIzB;IAEF,OAAO,CAAC,YAAY,CAIlB;IAEF,OAAO,CAAC,iBAAiB,CAgCvB;IAEF,OAAO,CAAC,aAAa,CAuFnB;IAEF,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,2BAA2B;IAWnC;;;OAGG;IACH,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,iBAAiB,CAsCvB;IAEF,MAAM;CAqFP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.style.d.ts","sourceRoot":"","sources":["../../../source/components/select/select.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,yBAoOxB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A skeleton loading placeholder that indicates content is loading.
|
|
4
|
+
* Use skeletons to reduce perceived loading time and provide visual feedback.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Optional slot for custom skeleton content
|
|
7
|
+
*
|
|
8
|
+
* @csspart base - The skeleton container element
|
|
9
|
+
*/
|
|
10
|
+
export declare class BpSkeleton extends LitElement {
|
|
11
|
+
/** The visual variant of the skeleton */
|
|
12
|
+
variant: 'text' | 'circular' | 'rectangular' | 'rounded';
|
|
13
|
+
/** Width of the skeleton. Can be any valid CSS value. */
|
|
14
|
+
width: string;
|
|
15
|
+
/** Height of the skeleton. Can be any valid CSS value. */
|
|
16
|
+
height: string;
|
|
17
|
+
/** Whether to animate the skeleton with a shimmer effect */
|
|
18
|
+
animated: boolean;
|
|
19
|
+
/** Number of lines to display (only for text variant) */
|
|
20
|
+
lines: number;
|
|
21
|
+
/** The size preset (affects default dimensions) */
|
|
22
|
+
size: 'sm' | 'md' | 'lg';
|
|
23
|
+
static styles: import("lit").CSSResult[];
|
|
24
|
+
constructor();
|
|
25
|
+
/**
|
|
26
|
+
* Generates CSS custom properties for width and height.
|
|
27
|
+
* Uses custom properties instead of inline styles for CSP compliance.
|
|
28
|
+
* @returns CSS string with custom property declarations
|
|
29
|
+
*/
|
|
30
|
+
private getCustomProperties;
|
|
31
|
+
/**
|
|
32
|
+
* Renders a single skeleton element with appropriate classes and styles.
|
|
33
|
+
* @returns Template result for a single skeleton
|
|
34
|
+
*/
|
|
35
|
+
private renderSingleSkeleton;
|
|
36
|
+
/**
|
|
37
|
+
* Renders text skeleton lines.
|
|
38
|
+
* If variant is text and lines > 1, renders multiple lines with a container.
|
|
39
|
+
* Otherwise delegates to renderSingleSkeleton.
|
|
40
|
+
* @returns Template result for text lines or single skeleton
|
|
41
|
+
*/
|
|
42
|
+
private renderTextLines;
|
|
43
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
44
|
+
}
|
|
45
|
+
declare global {
|
|
46
|
+
interface HTMLElementTagNameMap {
|
|
47
|
+
'bp-skeleton': BpSkeleton;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../source/components/skeleton/skeleton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,KAAK,CAAC;AAKhD;;;;;;;GAOG;AACH,qBACa,UAAW,SAAQ,UAAU;IACxC,yCAAyC;IAWjC,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,aAAa,GAAG,SAAS,CAAC;IAEjE,yDAAyD;IACrB,KAAK,EAAE,MAAM,CAAC;IAElD,0DAA0D;IACtB,MAAM,EAAE,MAAM,CAAC;IAEnD,4DAA4D;IAEpD,QAAQ,EAAE,OAAO,CAAC;IAE1B,yDAAyD;IAQjD,KAAK,EAAE,MAAM,CAAC;IAEtB,mDAAmD;IACf,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAE7D,MAAM,CAAC,MAAM,4BAAoB;;IAYjC;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAc3B;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAmB5B;;;;;OAKG;IACH,OAAO,CAAC,eAAe;IA+BvB,MAAM;CAGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAC;KAC3B;CACF"}
|