bareframe 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +179 -0
- package/dist/bareframe.min.js +119 -0
- package/dist/components/accordion.js +66 -0
- package/dist/components/autocomplete.css +78 -15
- package/dist/components/autocomplete.js +220 -10
- package/dist/components/avatar.css +129 -17
- package/dist/components/avatar.js +47 -10
- package/dist/components/breadcrumb.css +63 -17
- package/dist/components/breadcrumb.js +140 -5
- package/dist/components/button.css +4 -0
- package/dist/components/button.js +95 -15
- package/dist/components/chart.css +163 -14
- package/dist/components/chart.js +59 -4
- package/dist/components/checkbox.css +43 -1
- package/dist/components/checkbox.js +98 -5
- package/dist/components/dialog.css +95 -0
- package/dist/components/dialog.js +172 -4
- package/dist/components/divider.css +18 -22
- package/dist/components/divider.js +31 -3
- package/dist/components/drawer.css +68 -18
- package/dist/components/drawer.js +84 -4
- package/dist/components/edge.css +54 -0
- package/dist/components/edge.js +55 -0
- package/dist/components/file-upload.css +72 -3
- package/dist/components/file-upload.js +186 -4
- package/dist/components/input.css +59 -0
- package/dist/components/input.js +369 -4
- package/dist/components/list.css +11 -0
- package/dist/components/list.js +45 -0
- package/dist/components/menu.css +20 -0
- package/dist/components/menu.js +144 -0
- package/dist/components/modal.css +30 -17
- package/dist/components/modal.js +68 -4
- package/dist/components/nav.css +39 -0
- package/dist/components/progress.css +196 -0
- package/dist/components/progress.js +304 -0
- package/dist/components/radio.css +35 -1
- package/dist/components/radio.js +86 -5
- package/dist/components/range.css +91 -0
- package/dist/components/range.js +250 -0
- package/dist/components/select.css +35 -1
- package/dist/components/select.js +255 -4
- package/dist/components/skeleton.css +108 -21
- package/dist/components/skeleton.js +57 -4
- package/dist/components/tab.css +9 -1
- package/dist/components/tab.js +66 -1
- package/dist/components/tag.css +36 -3
- package/dist/components/tag.js +32 -0
- package/dist/components/toast.css +113 -0
- package/dist/components/toast.js +265 -4
- package/dist/components/toggle.css +53 -0
- package/dist/components/toggle.js +73 -5
- package/dist/components/wizard.css +79 -14
- package/dist/components/wizard.js +141 -4
- package/dist/index.js +5147 -110
- package/dist/manifest.json +5 -42
- package/dist/themes/aurora.css +47 -0
- package/dist/themes/dark.css +12 -2
- package/dist/themes/desert.css +37 -0
- package/dist/themes/future.css +47 -0
- package/dist/themes/layout.css +191 -0
- package/dist/themes/light.css +12 -0
- package/dist/themes/matrix.css +37 -0
- package/dist/themes/modern.css +64 -0
- package/dist/themes/nature.css +47 -0
- package/dist/themes/nebula.css +37 -0
- package/dist/themes/noir.css +37 -0
- package/dist/themes/oceanic.css +37 -0
- package/dist/themes/retro.css +47 -0
- package/dist/themes/simple.css +47 -0
- package/dist/themes/sprint.css +12 -0
- package/dist/themes/sunrise.css +37 -0
- package/dist/themes/system.css +13 -0
- package/package.json +9 -2
- package/dist/components/alert.css +0 -30
- package/dist/components/alert.js +0 -31
- package/dist/components/badge.css +0 -30
- package/dist/components/badge.js +0 -31
- package/dist/components/banner.css +0 -30
- package/dist/components/banner.js +0 -31
- package/dist/components/bar-chart.css +0 -30
- package/dist/components/bar-chart.js +0 -31
- package/dist/components/bottom-sheet.css +0 -30
- package/dist/components/bottom-sheet.js +0 -31
- package/dist/components/button-group.css +0 -30
- package/dist/components/button-group.js +0 -31
- package/dist/components/chip.css +0 -30
- package/dist/components/chip.js +0 -31
- package/dist/components/color-picker.css +0 -30
- package/dist/components/color-picker.js +0 -31
- package/dist/components/context-menu.css +0 -30
- package/dist/components/context-menu.js +0 -31
- package/dist/components/donut-chart.css +0 -30
- package/dist/components/donut-chart.js +0 -31
- package/dist/components/expanded-panel.css +0 -30
- package/dist/components/expanded-panel.js +0 -31
- package/dist/components/footer.css +0 -30
- package/dist/components/footer.js +0 -31
- package/dist/components/gantt-chart.css +0 -30
- package/dist/components/gantt-chart.js +0 -31
- package/dist/components/gauge.css +0 -30
- package/dist/components/gauge.js +0 -31
- package/dist/components/graph.css +0 -30
- package/dist/components/graph.js +0 -31
- package/dist/components/header.css +0 -30
- package/dist/components/header.js +0 -31
- package/dist/components/heatmap.css +0 -30
- package/dist/components/heatmap.js +0 -31
- package/dist/components/line-chart.css +0 -30
- package/dist/components/line-chart.js +0 -31
- package/dist/components/list-item.css +0 -30
- package/dist/components/list-item.js +0 -31
- package/dist/components/menu-item.css +0 -30
- package/dist/components/menu-item.js +0 -31
- package/dist/components/multi-select.css +0 -30
- package/dist/components/multi-select.js +0 -31
- package/dist/components/notification.css +0 -30
- package/dist/components/notification.js +0 -31
- package/dist/components/pie-chart.css +0 -30
- package/dist/components/pie-chart.js +0 -31
- package/dist/components/popover.css +0 -30
- package/dist/components/popover.js +0 -31
- package/dist/components/progress-bar.css +0 -30
- package/dist/components/progress-bar.js +0 -31
- package/dist/components/progress-circle.css +0 -30
- package/dist/components/progress-circle.js +0 -31
- package/dist/components/radio-group.css +0 -30
- package/dist/components/radio-group.js +0 -31
- package/dist/components/range-slider.css +0 -30
- package/dist/components/range-slider.js +0 -31
- package/dist/components/rating.css +0 -30
- package/dist/components/rating.js +0 -31
- package/dist/components/sheet.css +0 -30
- package/dist/components/sheet.js +0 -31
- package/dist/components/slider.css +0 -30
- package/dist/components/slider.js +0 -31
- package/dist/components/snackbar.css +0 -30
- package/dist/components/snackbar.js +0 -31
- package/dist/components/sparkline.css +0 -30
- package/dist/components/sparkline.js +0 -31
- package/dist/components/stepper.css +0 -30
- package/dist/components/stepper.js +0 -31
- package/dist/components/switch.css +0 -30
- package/dist/components/switch.js +0 -31
- package/dist/components/tab-group.css +0 -30
- package/dist/components/tab-group.js +0 -31
- package/dist/components/textfield.css +0 -30
- package/dist/components/textfield.js +0 -31
- package/dist/components/tooltip.css +0 -30
- package/dist/components/tooltip.js +0 -31
- package/dist/components/treemap.css +0 -30
- package/dist/components/treemap.js +0 -31
- package/dist/components/upload-dropzone.css +0 -30
- package/dist/components/upload-dropzone.js +0 -31
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@import './layout.css';
|
|
2
|
+
|
|
3
|
+
:root,
|
|
4
|
+
[data-bf-theme='noir'] {
|
|
5
|
+
color-scheme: dark;
|
|
6
|
+
|
|
7
|
+
--bf-theme-font-family: 'Helvetica Neue', 'Segoe UI', sans-serif;
|
|
8
|
+
--bf-theme-border-width: 1px;
|
|
9
|
+
--bf-theme-border-style: solid;
|
|
10
|
+
--bf-theme-radius-md: 8px;
|
|
11
|
+
--bf-theme-space-2: 0.55rem;
|
|
12
|
+
--bf-theme-space-3: 0.9rem;
|
|
13
|
+
--bf-theme-cursor-button: pointer;
|
|
14
|
+
--bf-theme-opacity-hover: 0.97;
|
|
15
|
+
--bf-theme-active-translate-y: 1px;
|
|
16
|
+
--bf-theme-focus-ring-width: 2px;
|
|
17
|
+
--bf-theme-focus-ring-style: solid;
|
|
18
|
+
--bf-theme-focus-ring-color: #f59e0b;
|
|
19
|
+
--bf-theme-focus-ring-offset: 2px;
|
|
20
|
+
--bf-theme-surface-1: #111111;
|
|
21
|
+
--bf-theme-surface-2: #1a1a1a;
|
|
22
|
+
--bf-theme-text-1: #f3f3f3;
|
|
23
|
+
--bf-theme-text-2: #b0b0b0;
|
|
24
|
+
--bf-theme-border-1: #3a3a3a;
|
|
25
|
+
|
|
26
|
+
--bf-theme-button-primary-bg: #f59e0b;
|
|
27
|
+
--bf-theme-button-primary-color: #1a1200;
|
|
28
|
+
--bf-theme-button-primary-border-color: #d97706;
|
|
29
|
+
--bf-theme-button-secondary-bg: #1a1a1a;
|
|
30
|
+
--bf-theme-button-secondary-color: #f3f3f3;
|
|
31
|
+
--bf-theme-button-secondary-border-color: #505050;
|
|
32
|
+
|
|
33
|
+
--bf-theme-accordion-trigger-bg: #1f1f1f;
|
|
34
|
+
--bf-theme-accordion-trigger-hover-bg: #2a2a2a;
|
|
35
|
+
--bf-theme-accordion-trigger-open-bg: #343434;
|
|
36
|
+
--bf-theme-accordion-chevron-color: #f8b84e;
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@import './layout.css';
|
|
2
|
+
|
|
3
|
+
:root,
|
|
4
|
+
[data-bf-theme='oceanic'] {
|
|
5
|
+
color-scheme: light;
|
|
6
|
+
|
|
7
|
+
--bf-theme-font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
|
|
8
|
+
--bf-theme-border-width: 1px;
|
|
9
|
+
--bf-theme-border-style: solid;
|
|
10
|
+
--bf-theme-radius-md: 12px;
|
|
11
|
+
--bf-theme-space-2: 0.56rem;
|
|
12
|
+
--bf-theme-space-3: 0.92rem;
|
|
13
|
+
--bf-theme-cursor-button: pointer;
|
|
14
|
+
--bf-theme-opacity-hover: 0.96;
|
|
15
|
+
--bf-theme-active-translate-y: 0;
|
|
16
|
+
--bf-theme-focus-ring-width: 2px;
|
|
17
|
+
--bf-theme-focus-ring-style: solid;
|
|
18
|
+
--bf-theme-focus-ring-color: #0284c7;
|
|
19
|
+
--bf-theme-focus-ring-offset: 2px;
|
|
20
|
+
--bf-theme-surface-1: #f3fbff;
|
|
21
|
+
--bf-theme-surface-2: #e6f4fb;
|
|
22
|
+
--bf-theme-text-1: #113246;
|
|
23
|
+
--bf-theme-text-2: #3b6278;
|
|
24
|
+
--bf-theme-border-1: #a8ccdf;
|
|
25
|
+
|
|
26
|
+
--bf-theme-button-primary-bg: #0ea5e9;
|
|
27
|
+
--bf-theme-button-primary-color: #f1fbff;
|
|
28
|
+
--bf-theme-button-primary-border-color: #0284c7;
|
|
29
|
+
--bf-theme-button-secondary-bg: #ffffff;
|
|
30
|
+
--bf-theme-button-secondary-color: #113246;
|
|
31
|
+
--bf-theme-button-secondary-border-color: #7db2ce;
|
|
32
|
+
|
|
33
|
+
--bf-theme-accordion-trigger-bg: #dff1fa;
|
|
34
|
+
--bf-theme-accordion-trigger-hover-bg: #cbe8f6;
|
|
35
|
+
--bf-theme-accordion-trigger-open-bg: #b8dff2;
|
|
36
|
+
--bf-theme-accordion-chevron-color: #1f6c94;
|
|
37
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@import './layout.css';
|
|
2
|
+
|
|
3
|
+
:root,
|
|
4
|
+
[data-bf-theme='retro'] {
|
|
5
|
+
color-scheme: light;
|
|
6
|
+
|
|
7
|
+
--bf-theme-font-family: 'Courier New', 'Lucida Console', monospace;
|
|
8
|
+
--bf-theme-border-width: 2px;
|
|
9
|
+
--bf-theme-border-style: solid;
|
|
10
|
+
--bf-theme-radius-md: 2px;
|
|
11
|
+
--bf-theme-space-2: 0.5rem;
|
|
12
|
+
--bf-theme-space-3: 0.85rem;
|
|
13
|
+
--bf-theme-cursor-button: pointer;
|
|
14
|
+
--bf-theme-opacity-hover: 0.94;
|
|
15
|
+
--bf-theme-active-translate-y: 0;
|
|
16
|
+
--bf-theme-focus-ring-width: 2px;
|
|
17
|
+
--bf-theme-focus-ring-style: dashed;
|
|
18
|
+
--bf-theme-focus-ring-color: #22c55e;
|
|
19
|
+
--bf-theme-focus-ring-offset: 2px;
|
|
20
|
+
--bf-theme-surface-1: #fffbe6;
|
|
21
|
+
--bf-theme-surface-2: #fef3c7;
|
|
22
|
+
--bf-theme-text-1: #1f2937;
|
|
23
|
+
--bf-theme-text-2: #92400e;
|
|
24
|
+
--bf-theme-border-1: #d97706;
|
|
25
|
+
|
|
26
|
+
--bf-theme-button-primary-bg: #f97316;
|
|
27
|
+
--bf-theme-button-primary-color: #111827;
|
|
28
|
+
--bf-theme-button-primary-border-color: #9a3412;
|
|
29
|
+
--bf-theme-button-secondary-bg: #fffbe6;
|
|
30
|
+
--bf-theme-button-secondary-color: #7c2d12;
|
|
31
|
+
--bf-theme-button-secondary-border-color: #d97706;
|
|
32
|
+
|
|
33
|
+
--bf-theme-accordion-trigger-bg: #fde68a;
|
|
34
|
+
--bf-theme-accordion-trigger-hover-bg: #fcd34d;
|
|
35
|
+
--bf-theme-accordion-trigger-open-bg: #fdba74;
|
|
36
|
+
--bf-theme-accordion-chevron-color: #78350f;
|
|
37
|
+
--bf-theme-typography-color: var(--bf-theme-text-1);
|
|
38
|
+
--bf-theme-typography-line-height: 1.4;
|
|
39
|
+
--bf-theme-typography-display-size: 2.2rem;
|
|
40
|
+
--bf-theme-typography-h1-size: 1.75rem;
|
|
41
|
+
--bf-theme-typography-h2-size: 1.35rem;
|
|
42
|
+
--bf-theme-typography-h3-size: 1.1rem;
|
|
43
|
+
--bf-theme-typography-body-size: 1rem;
|
|
44
|
+
--bf-theme-typography-caption-size: 0.875rem;
|
|
45
|
+
--bf-theme-typography-label-size: 0.875rem;
|
|
46
|
+
--bf-theme-typography-code-size: 0.9rem;
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@import './layout.css';
|
|
2
|
+
|
|
3
|
+
:root,
|
|
4
|
+
[data-bf-theme='simple'] {
|
|
5
|
+
color-scheme: light;
|
|
6
|
+
|
|
7
|
+
--bf-theme-font-family: 'Segoe UI', Arial, sans-serif;
|
|
8
|
+
--bf-theme-border-width: 1px;
|
|
9
|
+
--bf-theme-border-style: solid;
|
|
10
|
+
--bf-theme-radius-md: 4px;
|
|
11
|
+
--bf-theme-space-2: 0.5rem;
|
|
12
|
+
--bf-theme-space-3: 0.85rem;
|
|
13
|
+
--bf-theme-cursor-button: pointer;
|
|
14
|
+
--bf-theme-opacity-hover: 0.96;
|
|
15
|
+
--bf-theme-active-translate-y: 0;
|
|
16
|
+
--bf-theme-focus-ring-width: 2px;
|
|
17
|
+
--bf-theme-focus-ring-style: solid;
|
|
18
|
+
--bf-theme-focus-ring-color: #111111;
|
|
19
|
+
--bf-theme-focus-ring-offset: 2px;
|
|
20
|
+
--bf-theme-surface-1: #ffffff;
|
|
21
|
+
--bf-theme-surface-2: #f5f5f5;
|
|
22
|
+
--bf-theme-text-1: #111111;
|
|
23
|
+
--bf-theme-text-2: #4a4a4a;
|
|
24
|
+
--bf-theme-border-1: #d0d0d0;
|
|
25
|
+
|
|
26
|
+
--bf-theme-button-primary-bg: #111111;
|
|
27
|
+
--bf-theme-button-primary-color: #ffffff;
|
|
28
|
+
--bf-theme-button-primary-border-color: #111111;
|
|
29
|
+
--bf-theme-button-secondary-bg: #ffffff;
|
|
30
|
+
--bf-theme-button-secondary-color: #111111;
|
|
31
|
+
--bf-theme-button-secondary-border-color: #b3b3b3;
|
|
32
|
+
|
|
33
|
+
--bf-theme-accordion-trigger-bg: #fafafa;
|
|
34
|
+
--bf-theme-accordion-trigger-hover-bg: #f0f0f0;
|
|
35
|
+
--bf-theme-accordion-trigger-open-bg: #e8e8e8;
|
|
36
|
+
--bf-theme-accordion-chevron-color: #3a3a3a;
|
|
37
|
+
--bf-theme-typography-color: var(--bf-theme-text-1);
|
|
38
|
+
--bf-theme-typography-line-height: 1.45;
|
|
39
|
+
--bf-theme-typography-display-size: 2.1rem;
|
|
40
|
+
--bf-theme-typography-h1-size: 1.7rem;
|
|
41
|
+
--bf-theme-typography-h2-size: 1.35rem;
|
|
42
|
+
--bf-theme-typography-h3-size: 1.1rem;
|
|
43
|
+
--bf-theme-typography-body-size: 1rem;
|
|
44
|
+
--bf-theme-typography-caption-size: 0.875rem;
|
|
45
|
+
--bf-theme-typography-label-size: 0.875rem;
|
|
46
|
+
--bf-theme-typography-code-size: 0.9rem;
|
|
47
|
+
}
|
package/dist/themes/sprint.css
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import './layout.css';
|
|
2
|
+
|
|
1
3
|
:root,
|
|
2
4
|
[data-bf-theme='sprint'] {
|
|
3
5
|
color-scheme: light;
|
|
@@ -37,6 +39,16 @@
|
|
|
37
39
|
--bf-theme-accordion-trigger-color: #111827;
|
|
38
40
|
--bf-theme-accordion-panel-bg: #fff7ed;
|
|
39
41
|
--bf-theme-accordion-chevron-color: #9a3412;
|
|
42
|
+
--bf-theme-typography-color: var(--bf-theme-text-1);
|
|
43
|
+
--bf-theme-typography-line-height: 1.4;
|
|
44
|
+
--bf-theme-typography-display-size: 2.35rem;
|
|
45
|
+
--bf-theme-typography-h1-size: 1.85rem;
|
|
46
|
+
--bf-theme-typography-h2-size: 1.45rem;
|
|
47
|
+
--bf-theme-typography-h3-size: 1.2rem;
|
|
48
|
+
--bf-theme-typography-body-size: 1rem;
|
|
49
|
+
--bf-theme-typography-caption-size: 0.88rem;
|
|
50
|
+
--bf-theme-typography-label-size: 0.88rem;
|
|
51
|
+
--bf-theme-typography-code-size: 0.9rem;
|
|
40
52
|
/* Bareframe component defaults */
|
|
41
53
|
--bf-theme-wizard-bg: var(--bf-theme-surface-1);
|
|
42
54
|
--bf-theme-wizard-color: var(--bf-theme-text-1);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@import './layout.css';
|
|
2
|
+
|
|
3
|
+
:root,
|
|
4
|
+
[data-bf-theme='sunrise'] {
|
|
5
|
+
color-scheme: light;
|
|
6
|
+
|
|
7
|
+
--bf-theme-font-family: 'Avenir Next', 'Segoe UI', sans-serif;
|
|
8
|
+
--bf-theme-border-width: 1px;
|
|
9
|
+
--bf-theme-border-style: solid;
|
|
10
|
+
--bf-theme-radius-md: 12px;
|
|
11
|
+
--bf-theme-space-2: 0.56rem;
|
|
12
|
+
--bf-theme-space-3: 0.92rem;
|
|
13
|
+
--bf-theme-cursor-button: pointer;
|
|
14
|
+
--bf-theme-opacity-hover: 0.95;
|
|
15
|
+
--bf-theme-active-translate-y: 0;
|
|
16
|
+
--bf-theme-focus-ring-width: 2px;
|
|
17
|
+
--bf-theme-focus-ring-style: solid;
|
|
18
|
+
--bf-theme-focus-ring-color: #ea580c;
|
|
19
|
+
--bf-theme-focus-ring-offset: 2px;
|
|
20
|
+
--bf-theme-surface-1: #fff8f2;
|
|
21
|
+
--bf-theme-surface-2: #ffeede;
|
|
22
|
+
--bf-theme-text-1: #5a2d0c;
|
|
23
|
+
--bf-theme-text-2: #8d5a34;
|
|
24
|
+
--bf-theme-border-1: #e4b08a;
|
|
25
|
+
|
|
26
|
+
--bf-theme-button-primary-bg: #f97316;
|
|
27
|
+
--bf-theme-button-primary-color: #fff7f2;
|
|
28
|
+
--bf-theme-button-primary-border-color: #ea580c;
|
|
29
|
+
--bf-theme-button-secondary-bg: #fffaf5;
|
|
30
|
+
--bf-theme-button-secondary-color: #5a2d0c;
|
|
31
|
+
--bf-theme-button-secondary-border-color: #d79a6f;
|
|
32
|
+
|
|
33
|
+
--bf-theme-accordion-trigger-bg: #ffe3c9;
|
|
34
|
+
--bf-theme-accordion-trigger-hover-bg: #ffd4ad;
|
|
35
|
+
--bf-theme-accordion-trigger-open-bg: #ffc695;
|
|
36
|
+
--bf-theme-accordion-chevron-color: #9a4e19;
|
|
37
|
+
}
|
package/dist/themes/system.css
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import './layout.css';
|
|
2
|
+
|
|
1
3
|
:root,
|
|
2
4
|
[data-bf-theme='system'] {
|
|
3
5
|
color-scheme: light dark;
|
|
@@ -37,6 +39,16 @@
|
|
|
37
39
|
--bf-theme-accordion-trigger-color: var(--bf-theme-text-1);
|
|
38
40
|
--bf-theme-accordion-panel-bg: var(--bf-theme-surface-1);
|
|
39
41
|
--bf-theme-accordion-chevron-color: var(--bf-theme-text-2);
|
|
42
|
+
--bf-theme-typography-color: var(--bf-theme-text-1);
|
|
43
|
+
--bf-theme-typography-line-height: 1.45;
|
|
44
|
+
--bf-theme-typography-display-size: 2.25rem;
|
|
45
|
+
--bf-theme-typography-h1-size: 1.75rem;
|
|
46
|
+
--bf-theme-typography-h2-size: 1.375rem;
|
|
47
|
+
--bf-theme-typography-h3-size: 1.125rem;
|
|
48
|
+
--bf-theme-typography-body-size: 1rem;
|
|
49
|
+
--bf-theme-typography-caption-size: 0.875rem;
|
|
50
|
+
--bf-theme-typography-label-size: 0.875rem;
|
|
51
|
+
--bf-theme-typography-code-size: 0.9rem;
|
|
40
52
|
/* Bareframe component defaults */
|
|
41
53
|
--bf-theme-wizard-bg: var(--bf-theme-surface-1);
|
|
42
54
|
--bf-theme-wizard-color: var(--bf-theme-text-1);
|
|
@@ -394,5 +406,6 @@
|
|
|
394
406
|
--bf-theme-accordion-trigger-color: var(--bf-theme-text-1);
|
|
395
407
|
--bf-theme-accordion-panel-bg: var(--bf-theme-surface-1);
|
|
396
408
|
--bf-theme-accordion-chevron-color: var(--bf-theme-text-2);
|
|
409
|
+
--bf-theme-typography-color: var(--bf-theme-text-1);
|
|
397
410
|
}
|
|
398
411
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bareframe",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Lightweight, dependency-free Web Components for reusable app UI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": "./dist/index.js",
|
|
10
|
+
"./min": "./dist/bareframe.min.js",
|
|
11
|
+
"./bareframe.min.js": "./dist/bareframe.min.js",
|
|
10
12
|
"./components/*.js": "./dist/components/*.js",
|
|
11
13
|
"./themes/*.css": "./dist/themes/*.css",
|
|
12
14
|
"./manifest.json": "./dist/manifest.json"
|
|
@@ -17,6 +19,8 @@
|
|
|
17
19
|
],
|
|
18
20
|
"scripts": {
|
|
19
21
|
"build": "node ./scripts/build.mjs",
|
|
22
|
+
"watch": "node --watch --watch-path=src --watch-path=themes --watch-path=scripts ./scripts/build.mjs",
|
|
23
|
+
"serve": "cd examples && ln -sfn ../src src && ln -sfn ../themes themes && ln -sfn ../dist dist && python3 -m http.server 8088",
|
|
20
24
|
"generate:index": "node ./scripts/generate-index.mjs",
|
|
21
25
|
"prepack": "npm run build",
|
|
22
26
|
"pack:preview": "npm pack --dry-run"
|
|
@@ -28,5 +32,8 @@
|
|
|
28
32
|
"design-system",
|
|
29
33
|
"bareframe"
|
|
30
34
|
],
|
|
31
|
-
"license": "MIT"
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"esbuild": "^0.27.3"
|
|
38
|
+
}
|
|
32
39
|
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
--bf-alert-font: var(--bf-theme-font-family, inherit);
|
|
3
|
-
--bf-alert-radius: var(--bf-theme-radius-md, 8px);
|
|
4
|
-
--bf-alert-border-width: var(--bf-theme-border-width, 1px);
|
|
5
|
-
--bf-alert-border-style: var(--bf-theme-border-style, solid);
|
|
6
|
-
--bf-alert-border-color: var(--bf-theme-alert-border-color, var(--bf-theme-border-1, #cbd5e1));
|
|
7
|
-
--bf-alert-bg: var(--bf-theme-alert-bg, var(--bf-theme-surface-1, #ffffff));
|
|
8
|
-
--bf-alert-color: var(--bf-theme-alert-color, var(--bf-theme-text-1, #0f172a));
|
|
9
|
-
--bf-alert-padding-y: var(--bf-theme-space-2, 0.6rem);
|
|
10
|
-
--bf-alert-padding-x: var(--bf-theme-space-3, 0.9rem);
|
|
11
|
-
--bf-alert-transition:
|
|
12
|
-
var(--bf-theme-transition-bg, background-color 120ms ease),
|
|
13
|
-
var(--bf-theme-transition-color, color 120ms ease),
|
|
14
|
-
var(--bf-theme-transition-border, border-color 120ms ease);
|
|
15
|
-
|
|
16
|
-
display: block;
|
|
17
|
-
font: var(--bf-alert-font);
|
|
18
|
-
color: var(--bf-alert-color);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.root {
|
|
22
|
-
background: var(--bf-alert-bg);
|
|
23
|
-
color: var(--bf-alert-color);
|
|
24
|
-
border-width: var(--bf-alert-border-width);
|
|
25
|
-
border-style: var(--bf-alert-border-style);
|
|
26
|
-
border-color: var(--bf-alert-border-color);
|
|
27
|
-
border-radius: var(--bf-alert-radius);
|
|
28
|
-
padding: var(--bf-alert-padding-y) var(--bf-alert-padding-x);
|
|
29
|
-
transition: var(--bf-alert-transition);
|
|
30
|
-
}
|
package/dist/components/alert.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
class BfAlert extends HTMLElement {
|
|
2
|
-
constructor() {
|
|
3
|
-
super();
|
|
4
|
-
this.attachShadow({ mode: 'open' });
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
connectedCallback() {
|
|
8
|
-
if (this._initialized) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
this._initialized = true;
|
|
12
|
-
|
|
13
|
-
const cssUrl = new URL('./alert.css', import.meta.url);
|
|
14
|
-
const link = document.createElement('link');
|
|
15
|
-
link.rel = 'stylesheet';
|
|
16
|
-
link.href = cssUrl.href;
|
|
17
|
-
|
|
18
|
-
const root = document.createElement('div');
|
|
19
|
-
root.className = 'root';
|
|
20
|
-
root.setAttribute('part', 'root');
|
|
21
|
-
root.innerHTML = '<slot></slot>';
|
|
22
|
-
|
|
23
|
-
if (!this.innerHTML.trim()) {
|
|
24
|
-
root.textContent = 'alert';
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
this.shadowRoot.replaceChildren(link, root);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
customElements.define('bf-alert', BfAlert);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
--bf-badge-font: var(--bf-theme-font-family, inherit);
|
|
3
|
-
--bf-badge-radius: var(--bf-theme-radius-md, 8px);
|
|
4
|
-
--bf-badge-border-width: var(--bf-theme-border-width, 1px);
|
|
5
|
-
--bf-badge-border-style: var(--bf-theme-border-style, solid);
|
|
6
|
-
--bf-badge-border-color: var(--bf-theme-badge-border-color, var(--bf-theme-border-1, #cbd5e1));
|
|
7
|
-
--bf-badge-bg: var(--bf-theme-badge-bg, var(--bf-theme-surface-1, #ffffff));
|
|
8
|
-
--bf-badge-color: var(--bf-theme-badge-color, var(--bf-theme-text-1, #0f172a));
|
|
9
|
-
--bf-badge-padding-y: var(--bf-theme-space-2, 0.6rem);
|
|
10
|
-
--bf-badge-padding-x: var(--bf-theme-space-3, 0.9rem);
|
|
11
|
-
--bf-badge-transition:
|
|
12
|
-
var(--bf-theme-transition-bg, background-color 120ms ease),
|
|
13
|
-
var(--bf-theme-transition-color, color 120ms ease),
|
|
14
|
-
var(--bf-theme-transition-border, border-color 120ms ease);
|
|
15
|
-
|
|
16
|
-
display: block;
|
|
17
|
-
font: var(--bf-badge-font);
|
|
18
|
-
color: var(--bf-badge-color);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.root {
|
|
22
|
-
background: var(--bf-badge-bg);
|
|
23
|
-
color: var(--bf-badge-color);
|
|
24
|
-
border-width: var(--bf-badge-border-width);
|
|
25
|
-
border-style: var(--bf-badge-border-style);
|
|
26
|
-
border-color: var(--bf-badge-border-color);
|
|
27
|
-
border-radius: var(--bf-badge-radius);
|
|
28
|
-
padding: var(--bf-badge-padding-y) var(--bf-badge-padding-x);
|
|
29
|
-
transition: var(--bf-badge-transition);
|
|
30
|
-
}
|
package/dist/components/badge.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
class BfBadge extends HTMLElement {
|
|
2
|
-
constructor() {
|
|
3
|
-
super();
|
|
4
|
-
this.attachShadow({ mode: 'open' });
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
connectedCallback() {
|
|
8
|
-
if (this._initialized) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
this._initialized = true;
|
|
12
|
-
|
|
13
|
-
const cssUrl = new URL('./badge.css', import.meta.url);
|
|
14
|
-
const link = document.createElement('link');
|
|
15
|
-
link.rel = 'stylesheet';
|
|
16
|
-
link.href = cssUrl.href;
|
|
17
|
-
|
|
18
|
-
const root = document.createElement('div');
|
|
19
|
-
root.className = 'root';
|
|
20
|
-
root.setAttribute('part', 'root');
|
|
21
|
-
root.innerHTML = '<slot></slot>';
|
|
22
|
-
|
|
23
|
-
if (!this.innerHTML.trim()) {
|
|
24
|
-
root.textContent = 'badge';
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
this.shadowRoot.replaceChildren(link, root);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
customElements.define('bf-badge', BfBadge);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
--bf-banner-font: var(--bf-theme-font-family, inherit);
|
|
3
|
-
--bf-banner-radius: var(--bf-theme-radius-md, 8px);
|
|
4
|
-
--bf-banner-border-width: var(--bf-theme-border-width, 1px);
|
|
5
|
-
--bf-banner-border-style: var(--bf-theme-border-style, solid);
|
|
6
|
-
--bf-banner-border-color: var(--bf-theme-banner-border-color, var(--bf-theme-border-1, #cbd5e1));
|
|
7
|
-
--bf-banner-bg: var(--bf-theme-banner-bg, var(--bf-theme-surface-1, #ffffff));
|
|
8
|
-
--bf-banner-color: var(--bf-theme-banner-color, var(--bf-theme-text-1, #0f172a));
|
|
9
|
-
--bf-banner-padding-y: var(--bf-theme-space-2, 0.6rem);
|
|
10
|
-
--bf-banner-padding-x: var(--bf-theme-space-3, 0.9rem);
|
|
11
|
-
--bf-banner-transition:
|
|
12
|
-
var(--bf-theme-transition-bg, background-color 120ms ease),
|
|
13
|
-
var(--bf-theme-transition-color, color 120ms ease),
|
|
14
|
-
var(--bf-theme-transition-border, border-color 120ms ease);
|
|
15
|
-
|
|
16
|
-
display: block;
|
|
17
|
-
font: var(--bf-banner-font);
|
|
18
|
-
color: var(--bf-banner-color);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.root {
|
|
22
|
-
background: var(--bf-banner-bg);
|
|
23
|
-
color: var(--bf-banner-color);
|
|
24
|
-
border-width: var(--bf-banner-border-width);
|
|
25
|
-
border-style: var(--bf-banner-border-style);
|
|
26
|
-
border-color: var(--bf-banner-border-color);
|
|
27
|
-
border-radius: var(--bf-banner-radius);
|
|
28
|
-
padding: var(--bf-banner-padding-y) var(--bf-banner-padding-x);
|
|
29
|
-
transition: var(--bf-banner-transition);
|
|
30
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
class BfBanner extends HTMLElement {
|
|
2
|
-
constructor() {
|
|
3
|
-
super();
|
|
4
|
-
this.attachShadow({ mode: 'open' });
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
connectedCallback() {
|
|
8
|
-
if (this._initialized) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
this._initialized = true;
|
|
12
|
-
|
|
13
|
-
const cssUrl = new URL('./banner.css', import.meta.url);
|
|
14
|
-
const link = document.createElement('link');
|
|
15
|
-
link.rel = 'stylesheet';
|
|
16
|
-
link.href = cssUrl.href;
|
|
17
|
-
|
|
18
|
-
const root = document.createElement('div');
|
|
19
|
-
root.className = 'root';
|
|
20
|
-
root.setAttribute('part', 'root');
|
|
21
|
-
root.innerHTML = '<slot></slot>';
|
|
22
|
-
|
|
23
|
-
if (!this.innerHTML.trim()) {
|
|
24
|
-
root.textContent = 'banner';
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
this.shadowRoot.replaceChildren(link, root);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
customElements.define('bf-banner', BfBanner);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
--bf-bar-chart-font: var(--bf-theme-font-family, inherit);
|
|
3
|
-
--bf-bar-chart-radius: var(--bf-theme-radius-md, 8px);
|
|
4
|
-
--bf-bar-chart-border-width: var(--bf-theme-border-width, 1px);
|
|
5
|
-
--bf-bar-chart-border-style: var(--bf-theme-border-style, solid);
|
|
6
|
-
--bf-bar-chart-border-color: var(--bf-theme-bar-chart-border-color, var(--bf-theme-border-1, #cbd5e1));
|
|
7
|
-
--bf-bar-chart-bg: var(--bf-theme-bar-chart-bg, var(--bf-theme-surface-1, #ffffff));
|
|
8
|
-
--bf-bar-chart-color: var(--bf-theme-bar-chart-color, var(--bf-theme-text-1, #0f172a));
|
|
9
|
-
--bf-bar-chart-padding-y: var(--bf-theme-space-2, 0.6rem);
|
|
10
|
-
--bf-bar-chart-padding-x: var(--bf-theme-space-3, 0.9rem);
|
|
11
|
-
--bf-bar-chart-transition:
|
|
12
|
-
var(--bf-theme-transition-bg, background-color 120ms ease),
|
|
13
|
-
var(--bf-theme-transition-color, color 120ms ease),
|
|
14
|
-
var(--bf-theme-transition-border, border-color 120ms ease);
|
|
15
|
-
|
|
16
|
-
display: block;
|
|
17
|
-
font: var(--bf-bar-chart-font);
|
|
18
|
-
color: var(--bf-bar-chart-color);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.root {
|
|
22
|
-
background: var(--bf-bar-chart-bg);
|
|
23
|
-
color: var(--bf-bar-chart-color);
|
|
24
|
-
border-width: var(--bf-bar-chart-border-width);
|
|
25
|
-
border-style: var(--bf-bar-chart-border-style);
|
|
26
|
-
border-color: var(--bf-bar-chart-border-color);
|
|
27
|
-
border-radius: var(--bf-bar-chart-radius);
|
|
28
|
-
padding: var(--bf-bar-chart-padding-y) var(--bf-bar-chart-padding-x);
|
|
29
|
-
transition: var(--bf-bar-chart-transition);
|
|
30
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
class BfBarChart extends HTMLElement {
|
|
2
|
-
constructor() {
|
|
3
|
-
super();
|
|
4
|
-
this.attachShadow({ mode: 'open' });
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
connectedCallback() {
|
|
8
|
-
if (this._initialized) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
this._initialized = true;
|
|
12
|
-
|
|
13
|
-
const cssUrl = new URL('./bar-chart.css', import.meta.url);
|
|
14
|
-
const link = document.createElement('link');
|
|
15
|
-
link.rel = 'stylesheet';
|
|
16
|
-
link.href = cssUrl.href;
|
|
17
|
-
|
|
18
|
-
const root = document.createElement('div');
|
|
19
|
-
root.className = 'root';
|
|
20
|
-
root.setAttribute('part', 'root');
|
|
21
|
-
root.innerHTML = '<slot></slot>';
|
|
22
|
-
|
|
23
|
-
if (!this.innerHTML.trim()) {
|
|
24
|
-
root.textContent = 'bar chart';
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
this.shadowRoot.replaceChildren(link, root);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
customElements.define('bf-bar-chart', BfBarChart);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
--bf-bottom-sheet-font: var(--bf-theme-font-family, inherit);
|
|
3
|
-
--bf-bottom-sheet-radius: var(--bf-theme-radius-md, 8px);
|
|
4
|
-
--bf-bottom-sheet-border-width: var(--bf-theme-border-width, 1px);
|
|
5
|
-
--bf-bottom-sheet-border-style: var(--bf-theme-border-style, solid);
|
|
6
|
-
--bf-bottom-sheet-border-color: var(--bf-theme-bottom-sheet-border-color, var(--bf-theme-border-1, #cbd5e1));
|
|
7
|
-
--bf-bottom-sheet-bg: var(--bf-theme-bottom-sheet-bg, var(--bf-theme-surface-1, #ffffff));
|
|
8
|
-
--bf-bottom-sheet-color: var(--bf-theme-bottom-sheet-color, var(--bf-theme-text-1, #0f172a));
|
|
9
|
-
--bf-bottom-sheet-padding-y: var(--bf-theme-space-2, 0.6rem);
|
|
10
|
-
--bf-bottom-sheet-padding-x: var(--bf-theme-space-3, 0.9rem);
|
|
11
|
-
--bf-bottom-sheet-transition:
|
|
12
|
-
var(--bf-theme-transition-bg, background-color 120ms ease),
|
|
13
|
-
var(--bf-theme-transition-color, color 120ms ease),
|
|
14
|
-
var(--bf-theme-transition-border, border-color 120ms ease);
|
|
15
|
-
|
|
16
|
-
display: block;
|
|
17
|
-
font: var(--bf-bottom-sheet-font);
|
|
18
|
-
color: var(--bf-bottom-sheet-color);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.root {
|
|
22
|
-
background: var(--bf-bottom-sheet-bg);
|
|
23
|
-
color: var(--bf-bottom-sheet-color);
|
|
24
|
-
border-width: var(--bf-bottom-sheet-border-width);
|
|
25
|
-
border-style: var(--bf-bottom-sheet-border-style);
|
|
26
|
-
border-color: var(--bf-bottom-sheet-border-color);
|
|
27
|
-
border-radius: var(--bf-bottom-sheet-radius);
|
|
28
|
-
padding: var(--bf-bottom-sheet-padding-y) var(--bf-bottom-sheet-padding-x);
|
|
29
|
-
transition: var(--bf-bottom-sheet-transition);
|
|
30
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
class BfBottomSheet extends HTMLElement {
|
|
2
|
-
constructor() {
|
|
3
|
-
super();
|
|
4
|
-
this.attachShadow({ mode: 'open' });
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
connectedCallback() {
|
|
8
|
-
if (this._initialized) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
this._initialized = true;
|
|
12
|
-
|
|
13
|
-
const cssUrl = new URL('./bottom-sheet.css', import.meta.url);
|
|
14
|
-
const link = document.createElement('link');
|
|
15
|
-
link.rel = 'stylesheet';
|
|
16
|
-
link.href = cssUrl.href;
|
|
17
|
-
|
|
18
|
-
const root = document.createElement('div');
|
|
19
|
-
root.className = 'root';
|
|
20
|
-
root.setAttribute('part', 'root');
|
|
21
|
-
root.innerHTML = '<slot></slot>';
|
|
22
|
-
|
|
23
|
-
if (!this.innerHTML.trim()) {
|
|
24
|
-
root.textContent = 'bottom sheet';
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
this.shadowRoot.replaceChildren(link, root);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
customElements.define('bf-bottom-sheet', BfBottomSheet);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
--bf-button-group-font: var(--bf-theme-font-family, inherit);
|
|
3
|
-
--bf-button-group-radius: var(--bf-theme-radius-md, 8px);
|
|
4
|
-
--bf-button-group-border-width: var(--bf-theme-border-width, 1px);
|
|
5
|
-
--bf-button-group-border-style: var(--bf-theme-border-style, solid);
|
|
6
|
-
--bf-button-group-border-color: var(--bf-theme-button-group-border-color, var(--bf-theme-border-1, #cbd5e1));
|
|
7
|
-
--bf-button-group-bg: var(--bf-theme-button-group-bg, var(--bf-theme-surface-1, #ffffff));
|
|
8
|
-
--bf-button-group-color: var(--bf-theme-button-group-color, var(--bf-theme-text-1, #0f172a));
|
|
9
|
-
--bf-button-group-padding-y: var(--bf-theme-space-2, 0.6rem);
|
|
10
|
-
--bf-button-group-padding-x: var(--bf-theme-space-3, 0.9rem);
|
|
11
|
-
--bf-button-group-transition:
|
|
12
|
-
var(--bf-theme-transition-bg, background-color 120ms ease),
|
|
13
|
-
var(--bf-theme-transition-color, color 120ms ease),
|
|
14
|
-
var(--bf-theme-transition-border, border-color 120ms ease);
|
|
15
|
-
|
|
16
|
-
display: block;
|
|
17
|
-
font: var(--bf-button-group-font);
|
|
18
|
-
color: var(--bf-button-group-color);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.root {
|
|
22
|
-
background: var(--bf-button-group-bg);
|
|
23
|
-
color: var(--bf-button-group-color);
|
|
24
|
-
border-width: var(--bf-button-group-border-width);
|
|
25
|
-
border-style: var(--bf-button-group-border-style);
|
|
26
|
-
border-color: var(--bf-button-group-border-color);
|
|
27
|
-
border-radius: var(--bf-button-group-radius);
|
|
28
|
-
padding: var(--bf-button-group-padding-y) var(--bf-button-group-padding-x);
|
|
29
|
-
transition: var(--bf-button-group-transition);
|
|
30
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
class BfButtonGroup extends HTMLElement {
|
|
2
|
-
constructor() {
|
|
3
|
-
super();
|
|
4
|
-
this.attachShadow({ mode: 'open' });
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
connectedCallback() {
|
|
8
|
-
if (this._initialized) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
this._initialized = true;
|
|
12
|
-
|
|
13
|
-
const cssUrl = new URL('./button-group.css', import.meta.url);
|
|
14
|
-
const link = document.createElement('link');
|
|
15
|
-
link.rel = 'stylesheet';
|
|
16
|
-
link.href = cssUrl.href;
|
|
17
|
-
|
|
18
|
-
const root = document.createElement('div');
|
|
19
|
-
root.className = 'root';
|
|
20
|
-
root.setAttribute('part', 'root');
|
|
21
|
-
root.innerHTML = '<slot></slot>';
|
|
22
|
-
|
|
23
|
-
if (!this.innerHTML.trim()) {
|
|
24
|
-
root.textContent = 'button group';
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
this.shadowRoot.replaceChildren(link, root);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
customElements.define('bf-button-group', BfButtonGroup);
|