@indielayer/ui 0.0.0-dev-20240125104319 → 0.0.0-dev-20240129122517
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/lib/common/icons.d.ts +2 -1
- package/lib/common/icons.js +3 -2
- package/lib/components/icon/theme/Icon.carbon.theme.js +7 -4
- package/lib/components/index.js +1 -1
- package/lib/components/link/Link.vue.js +2 -2
- package/lib/components/link/Link.vue2.js +1 -1
- package/lib/components/link/theme/Link.base.theme.js +4 -4
- package/lib/components/link/theme/Link.carbon.theme.js +23 -3
- package/lib/components/menu/MenuItem.vue.js +2 -2
- package/lib/components/menu/MenuItem.vue2.js +1 -1
- package/lib/components/select/Select.vue.js +49 -47
- package/lib/components/select/theme/Select.base.theme.js +10 -10
- package/lib/components/select/theme/Select.carbon.theme.js +4 -4
- package/lib/components/skeleton/Skeleton.vue.d.ts +19 -1
- package/lib/components/skeleton/Skeleton.vue.js +25 -15
- package/lib/components/skeleton/theme/Skeleton.base.theme.js +7 -4
- package/lib/components/table/Table.vue.d.ts +115 -9
- package/lib/components/table/Table.vue.js +209 -98
- package/lib/components/table/TableCell.vue.d.ts +4 -5
- package/lib/components/table/TableCell.vue.js +21 -22
- package/lib/components/table/TableHead.vue.d.ts +16 -0
- package/lib/components/table/TableHead.vue.js +21 -0
- package/lib/components/table/TableHead.vue2.js +4 -0
- package/lib/components/table/TableHeader.vue.d.ts +4 -0
- package/lib/components/table/TableHeader.vue.js +45 -54
- package/lib/components/table/TableRow.vue.d.ts +15 -1
- package/lib/components/table/TableRow.vue.js +21 -25
- package/lib/components/table/index.d.ts +4 -2
- package/lib/components/table/theme/Table.base.theme.js +7 -6
- package/lib/components/table/theme/Table.carbon.theme.js +11 -3
- package/lib/components/table/theme/TableCell.base.theme.js +3 -3
- package/lib/components/table/theme/TableCell.carbon.theme.js +9 -3
- package/lib/components/table/theme/TableHead.base.theme.d.ts +3 -0
- package/lib/components/table/theme/TableHead.base.theme.js +9 -0
- package/lib/components/table/theme/TableHead.carbon.theme.d.ts +3 -0
- package/lib/components/table/theme/TableHead.carbon.theme.js +9 -0
- package/lib/components/table/theme/TableHeader.base.theme.d.ts +3 -0
- package/lib/components/table/theme/TableHeader.base.theme.js +12 -0
- package/lib/components/table/theme/TableHeader.carbon.theme.d.ts +3 -0
- package/lib/components/table/theme/TableHeader.carbon.theme.js +12 -0
- package/lib/components/table/theme/TableRow.base.theme.d.ts +3 -0
- package/lib/components/table/theme/TableRow.base.theme.js +11 -0
- package/lib/components/table/theme/TableRow.carbon.theme.d.ts +3 -0
- package/lib/components/table/theme/TableRow.carbon.theme.js +11 -0
- package/lib/components/tag/Tag.vue.d.ts +1 -1
- package/lib/components/tag/Tag.vue.js +17 -17
- package/lib/components/tag/theme/Tag.base.theme.js +14 -13
- package/lib/components/tag/theme/Tag.carbon.theme.js +14 -14
- package/lib/index.js +2 -2
- package/lib/index.umd.js +3 -3
- package/lib/theme.d.ts +4 -1
- package/lib/themes/base/components.d.ts +3 -0
- package/lib/themes/base/components.js +44 -38
- package/lib/themes/carbon/components.d.ts +3 -0
- package/lib/themes/carbon/components.js +44 -38
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/src/common/icons.ts +2 -1
- package/src/components/icon/theme/Icon.carbon.theme.ts +9 -1
- package/src/components/link/Link.vue +1 -1
- package/src/components/link/theme/Link.carbon.theme.ts +23 -2
- package/src/components/menu/MenuItem.vue +1 -1
- package/src/components/select/Select.vue +6 -4
- package/src/components/select/theme/Select.base.theme.ts +1 -1
- package/src/components/select/theme/Select.carbon.theme.ts +1 -1
- package/src/components/skeleton/Skeleton.vue +18 -2
- package/src/components/skeleton/theme/Skeleton.base.theme.ts +8 -1
- package/src/components/table/Table.vue +123 -27
- package/src/components/table/TableCell.vue +5 -6
- package/src/components/table/TableHead.vue +25 -0
- package/src/components/table/TableHeader.vue +35 -56
- package/src/components/table/TableRow.vue +19 -17
- package/src/components/table/index.ts +4 -2
- package/src/components/table/theme/Table.base.theme.ts +9 -7
- package/src/components/table/theme/Table.carbon.theme.ts +18 -2
- package/src/components/table/theme/TableCell.base.theme.ts +1 -1
- package/src/components/table/theme/TableCell.carbon.theme.ts +24 -2
- package/src/components/table/theme/TableHead.base.theme.ts +10 -0
- package/src/components/table/theme/TableHead.carbon.theme.ts +10 -0
- package/src/components/table/theme/TableHeader.base.theme.ts +28 -0
- package/src/components/table/theme/TableHeader.carbon.theme.ts +28 -0
- package/src/components/table/theme/TableRow.base.theme.ts +21 -0
- package/src/components/table/theme/TableRow.carbon.theme.ts +21 -0
- package/src/components/tag/Tag.vue +4 -4
- package/src/components/tag/theme/Tag.base.theme.ts +4 -4
- package/src/components/tag/theme/Tag.carbon.theme.ts +5 -6
- package/src/theme.ts +6 -0
- package/src/themes/base/components.ts +3 -0
- package/src/themes/carbon/components.ts +3 -0
- package/src/version.ts +1 -1
- package/lib/components/table/TableHead.d.ts +0 -2
- package/lib/components/table/TableHead.js +0 -19
- package/src/components/table/TableHead.tsx +0 -14
package/lib/theme.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ColorLibrary } from './composables/useColors';
|
|
2
|
-
import type { AccordionTheme, AccordionItemTheme, AlertTheme, AvatarTheme, BadgeTheme, BreadcrumbsTheme, ButtonTheme, ButtonGroupTheme, CardTheme, CarouselTheme, CarouselSlideTheme, CheckboxTheme, ContainerTheme, DividerTheme, DrawerTheme, FormTheme, FormGroupTheme, IconTheme, ImageTheme, InputTheme, InputFooterTheme, LabelTheme, LinkTheme, LoaderTheme, MenuTheme, MenuItemTheme, ModalTheme, NotificationsTheme, PaginationTheme, PaginationItemTheme, PopoverTheme, PopoverContainerTheme, ProgressTheme, RadioTheme, ScrollTheme, SelectTheme, SkeletonTheme, SliderTheme, StepperTheme, TabTheme, TabGroupTheme, TableTheme, TableCellTheme, TagTheme, TextareaTheme, ToggleTheme } from './components';
|
|
2
|
+
import type { AccordionTheme, AccordionItemTheme, AlertTheme, AvatarTheme, BadgeTheme, BreadcrumbsTheme, ButtonTheme, ButtonGroupTheme, CardTheme, CarouselTheme, CarouselSlideTheme, CheckboxTheme, ContainerTheme, DividerTheme, DrawerTheme, FormTheme, FormGroupTheme, IconTheme, ImageTheme, InputTheme, InputFooterTheme, LabelTheme, LinkTheme, LoaderTheme, MenuTheme, MenuItemTheme, ModalTheme, NotificationsTheme, PaginationTheme, PaginationItemTheme, PopoverTheme, PopoverContainerTheme, ProgressTheme, RadioTheme, ScrollTheme, SelectTheme, SkeletonTheme, SliderTheme, StepperTheme, TabTheme, TabGroupTheme, TableTheme, TableCellTheme, TableHeadTheme, TableHeaderTheme, TableRowTheme, TagTheme, TextareaTheme, ToggleTheme } from './components';
|
|
3
3
|
export type ComponentThemes = {
|
|
4
4
|
Accordion: AccordionTheme;
|
|
5
5
|
AccordionItem: AccordionItemTheme;
|
|
@@ -44,6 +44,9 @@ export type ComponentThemes = {
|
|
|
44
44
|
TabGroup: TabGroupTheme;
|
|
45
45
|
Table: TableTheme;
|
|
46
46
|
TableCell: TableCellTheme;
|
|
47
|
+
TableHead: TableHeadTheme;
|
|
48
|
+
TableHeader: TableHeaderTheme;
|
|
49
|
+
TableRow: TableRowTheme;
|
|
47
50
|
Tag: TagTheme;
|
|
48
51
|
Textarea: TextareaTheme;
|
|
49
52
|
Toggle: ToggleTheme;
|
|
@@ -41,6 +41,9 @@ export { default as Tab } from '../../components/tab/theme/Tab.base.theme';
|
|
|
41
41
|
export { default as TabGroup } from '../../components/tab/theme/TabGroup.base.theme';
|
|
42
42
|
export { default as Table } from '../../components/table/theme/Table.base.theme';
|
|
43
43
|
export { default as TableCell } from '../../components/table/theme/TableCell.base.theme';
|
|
44
|
+
export { default as TableHead } from '../../components/table/theme/TableHead.base.theme';
|
|
45
|
+
export { default as TableHeader } from '../../components/table/theme/TableHeader.base.theme';
|
|
46
|
+
export { default as TableRow } from '../../components/table/theme/TableRow.base.theme';
|
|
44
47
|
export { default as Tag } from '../../components/tag/theme/Tag.base.theme';
|
|
45
48
|
export { default as Textarea } from '../../components/textarea/theme/Textarea.base.theme';
|
|
46
49
|
export { default as Toggle } from '../../components/toggle/theme/Toggle.base.theme';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as a } from "../../components/accordion/theme/Accordion.base.theme.js";
|
|
2
2
|
import { default as t } from "../../components/accordion/theme/AccordionItem.base.theme.js";
|
|
3
3
|
import { default as l } from "../../components/alert/theme/Alert.base.theme.js";
|
|
4
|
-
import { default as
|
|
4
|
+
import { default as u } from "../../components/avatar/theme/Avatar.base.theme.js";
|
|
5
5
|
import { default as m } from "../../components/badge/theme/Badge.base.theme.js";
|
|
6
6
|
import { default as x } from "../../components/breadcrumbs/theme/Breadcrumbs.base.theme.js";
|
|
7
7
|
import { default as i } from "../../components/button/theme/Button.base.theme.js";
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
8
|
+
import { default as c } from "../../components/button/theme/ButtonGroup.base.theme.js";
|
|
9
|
+
import { default as g } from "../../components/card/theme/Card.base.theme.js";
|
|
10
|
+
import { default as I } from "../../components/carousel/theme/Carousel.base.theme.js";
|
|
11
11
|
import { default as P } from "../../components/carousel/theme/CarouselSlide.base.theme.js";
|
|
12
12
|
import { default as A } from "../../components/checkbox/theme/Checkbox.base.theme.js";
|
|
13
13
|
import { default as k } from "../../components/container/theme/Container.base.theme.js";
|
|
14
14
|
import { default as G } from "../../components/divider/theme/Divider.base.theme.js";
|
|
15
15
|
import { default as M } from "../../components/drawer/theme/Drawer.base.theme.js";
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
16
|
+
import { default as D } from "../../components/form/theme/Form.base.theme.js";
|
|
17
|
+
import { default as R } from "../../components/formGroup/theme/FormGroup.base.theme.js";
|
|
18
|
+
import { default as N } from "../../components/icon/theme/Icon.base.theme.js";
|
|
19
|
+
import { default as q } from "../../components/image/theme/Image.base.theme.js";
|
|
20
|
+
import { default as z } from "../../components/input/theme/Input.base.theme.js";
|
|
21
21
|
import { default as J } from "../../components/inputFooter/theme/InputFooter.base.theme.js";
|
|
22
22
|
import { default as O } from "../../components/label/theme/Label.base.theme.js";
|
|
23
23
|
import { default as U } from "../../components/link/theme/Link.base.theme.js";
|
|
@@ -25,46 +25,49 @@ import { default as W } from "../../components/loader/theme/Loader.base.theme.js
|
|
|
25
25
|
import { default as Y } from "../../components/menu/theme/Menu.base.theme.js";
|
|
26
26
|
import { default as _ } from "../../components/menu/theme/MenuItem.base.theme.js";
|
|
27
27
|
import { default as ee } from "../../components/modal/theme/Modal.base.theme.js";
|
|
28
|
-
import { default as
|
|
28
|
+
import { default as ae } from "../../components/notifications/theme/Notifications.base.theme.js";
|
|
29
29
|
import { default as te } from "../../components/pagination/theme/Pagination.base.theme.js";
|
|
30
30
|
import { default as le } from "../../components/pagination/theme/PaginationItem.base.theme.js";
|
|
31
|
-
import { default as
|
|
31
|
+
import { default as ue } from "../../components/popover/theme/Popover.base.theme.js";
|
|
32
32
|
import { default as me } from "../../components/popover/theme/PopoverContainer.base.theme.js";
|
|
33
33
|
import { default as xe } from "../../components/progress/theme/Progress.base.theme.js";
|
|
34
34
|
import { default as ie } from "../../components/radio/theme/Radio.base.theme.js";
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
35
|
+
import { default as ce } from "../../components/scroll/theme/Scroll.base.theme.js";
|
|
36
|
+
import { default as ge } from "../../components/select/theme/Select.base.theme.js";
|
|
37
|
+
import { default as Ie } from "../../components/skeleton/theme/Skeleton.base.theme.js";
|
|
38
38
|
import { default as Pe } from "../../components/slider/theme/Slider.base.theme.js";
|
|
39
39
|
import { default as Ae } from "../../components/stepper/theme/Stepper.base.theme.js";
|
|
40
40
|
import { default as ke } from "../../components/tab/theme/Tab.base.theme.js";
|
|
41
41
|
import { default as Ge } from "../../components/tab/theme/TabGroup.base.theme.js";
|
|
42
42
|
import { default as Me } from "../../components/table/theme/Table.base.theme.js";
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
43
|
+
import { default as De } from "../../components/table/theme/TableCell.base.theme.js";
|
|
44
|
+
import { default as Re } from "../../components/table/theme/TableHead.base.theme.js";
|
|
45
|
+
import { default as Ne } from "../../components/table/theme/TableHeader.base.theme.js";
|
|
46
|
+
import { default as qe } from "../../components/table/theme/TableRow.base.theme.js";
|
|
47
|
+
import { default as ze } from "../../components/tag/theme/Tag.base.theme.js";
|
|
48
|
+
import { default as Je } from "../../components/textarea/theme/Textarea.base.theme.js";
|
|
49
|
+
import { default as Oe } from "../../components/toggle/theme/Toggle.base.theme.js";
|
|
47
50
|
export {
|
|
48
|
-
|
|
51
|
+
a as Accordion,
|
|
49
52
|
t as AccordionItem,
|
|
50
53
|
l as Alert,
|
|
51
|
-
|
|
54
|
+
u as Avatar,
|
|
52
55
|
m as Badge,
|
|
53
56
|
x as Breadcrumbs,
|
|
54
57
|
i as Button,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
c as ButtonGroup,
|
|
59
|
+
g as Card,
|
|
60
|
+
I as Carousel,
|
|
58
61
|
P as CarouselSlide,
|
|
59
62
|
A as Checkbox,
|
|
60
63
|
k as Container,
|
|
61
64
|
G as Divider,
|
|
62
65
|
M as Drawer,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
D as Form,
|
|
67
|
+
R as FormGroup,
|
|
68
|
+
N as Icon,
|
|
69
|
+
q as Image,
|
|
70
|
+
z as Input,
|
|
68
71
|
J as InputFooter,
|
|
69
72
|
O as Label,
|
|
70
73
|
U as Link,
|
|
@@ -72,23 +75,26 @@ export {
|
|
|
72
75
|
Y as Menu,
|
|
73
76
|
_ as MenuItem,
|
|
74
77
|
ee as Modal,
|
|
75
|
-
|
|
78
|
+
ae as Notifications,
|
|
76
79
|
te as Pagination,
|
|
77
80
|
le as PaginationItem,
|
|
78
|
-
|
|
81
|
+
ue as Popover,
|
|
79
82
|
me as PopoverContainer,
|
|
80
83
|
xe as Progress,
|
|
81
84
|
ie as Radio,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
ce as Scroll,
|
|
86
|
+
ge as Select,
|
|
87
|
+
Ie as Skeleton,
|
|
85
88
|
Pe as Slider,
|
|
86
89
|
Ae as Stepper,
|
|
87
90
|
ke as Tab,
|
|
88
91
|
Ge as TabGroup,
|
|
89
92
|
Me as Table,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
De as TableCell,
|
|
94
|
+
Re as TableHead,
|
|
95
|
+
Ne as TableHeader,
|
|
96
|
+
qe as TableRow,
|
|
97
|
+
ze as Tag,
|
|
98
|
+
Je as Textarea,
|
|
99
|
+
Oe as Toggle
|
|
94
100
|
};
|
|
@@ -41,6 +41,9 @@ export { default as Tab } from '../../components/tab/theme/Tab.carbon.theme';
|
|
|
41
41
|
export { default as TabGroup } from '../../components/tab/theme/TabGroup.carbon.theme';
|
|
42
42
|
export { default as Table } from '../../components/table/theme/Table.carbon.theme';
|
|
43
43
|
export { default as TableCell } from '../../components/table/theme/TableCell.carbon.theme';
|
|
44
|
+
export { default as TableHead } from '../../components/table/theme/TableHead.carbon.theme';
|
|
45
|
+
export { default as TableHeader } from '../../components/table/theme/TableHeader.carbon.theme';
|
|
46
|
+
export { default as TableRow } from '../../components/table/theme/TableRow.carbon.theme';
|
|
44
47
|
export { default as Tag } from '../../components/tag/theme/Tag.carbon.theme';
|
|
45
48
|
export { default as Textarea } from '../../components/textarea/theme/Textarea.carbon.theme';
|
|
46
49
|
export { default as Toggle } from '../../components/toggle/theme/Toggle.carbon.theme';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as a } from "../../components/accordion/theme/Accordion.carbon.theme.js";
|
|
2
2
|
import { default as t } from "../../components/accordion/theme/AccordionItem.carbon.theme.js";
|
|
3
3
|
import { default as l } from "../../components/alert/theme/Alert.carbon.theme.js";
|
|
4
|
-
import { default as
|
|
4
|
+
import { default as u } from "../../components/avatar/theme/Avatar.carbon.theme.js";
|
|
5
5
|
import { default as m } from "../../components/badge/theme/Badge.carbon.theme.js";
|
|
6
6
|
import { default as x } from "../../components/breadcrumbs/theme/Breadcrumbs.carbon.theme.js";
|
|
7
7
|
import { default as i } from "../../components/button/theme/Button.carbon.theme.js";
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
8
|
+
import { default as c } from "../../components/button/theme/ButtonGroup.carbon.theme.js";
|
|
9
|
+
import { default as g } from "../../components/card/theme/Card.carbon.theme.js";
|
|
10
|
+
import { default as I } from "../../components/carousel/theme/Carousel.carbon.theme.js";
|
|
11
11
|
import { default as P } from "../../components/carousel/theme/CarouselSlide.carbon.theme.js";
|
|
12
12
|
import { default as A } from "../../components/checkbox/theme/Checkbox.carbon.theme.js";
|
|
13
13
|
import { default as k } from "../../components/container/theme/Container.carbon.theme.js";
|
|
14
14
|
import { default as G } from "../../components/divider/theme/Divider.carbon.theme.js";
|
|
15
15
|
import { default as M } from "../../components/drawer/theme/Drawer.carbon.theme.js";
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
16
|
+
import { default as D } from "../../components/form/theme/Form.carbon.theme.js";
|
|
17
|
+
import { default as R } from "../../components/formGroup/theme/FormGroup.carbon.theme.js";
|
|
18
|
+
import { default as N } from "../../components/icon/theme/Icon.carbon.theme.js";
|
|
19
|
+
import { default as q } from "../../components/image/theme/Image.carbon.theme.js";
|
|
20
|
+
import { default as z } from "../../components/input/theme/Input.carbon.theme.js";
|
|
21
21
|
import { default as J } from "../../components/inputFooter/theme/InputFooter.carbon.theme.js";
|
|
22
22
|
import { default as O } from "../../components/label/theme/Label.carbon.theme.js";
|
|
23
23
|
import { default as U } from "../../components/link/theme/Link.carbon.theme.js";
|
|
@@ -25,46 +25,49 @@ import { default as W } from "../../components/loader/theme/Loader.carbon.theme.
|
|
|
25
25
|
import { default as Y } from "../../components/menu/theme/Menu.carbon.theme.js";
|
|
26
26
|
import { default as _ } from "../../components/menu/theme/MenuItem.carbon.theme.js";
|
|
27
27
|
import { default as ee } from "../../components/modal/theme/Modal.carbon.theme.js";
|
|
28
|
-
import { default as
|
|
28
|
+
import { default as ae } from "../../components/notifications/theme/Notifications.carbon.theme.js";
|
|
29
29
|
import { default as te } from "../../components/pagination/theme/Pagination.carbon.theme.js";
|
|
30
30
|
import { default as le } from "../../components/pagination/theme/PaginationItem.carbon.theme.js";
|
|
31
|
-
import { default as
|
|
31
|
+
import { default as ue } from "../../components/popover/theme/Popover.carbon.theme.js";
|
|
32
32
|
import { default as me } from "../../components/popover/theme/PopoverContainer.carbon.theme.js";
|
|
33
33
|
import { default as xe } from "../../components/progress/theme/Progress.carbon.theme.js";
|
|
34
34
|
import { default as ie } from "../../components/radio/theme/Radio.carbon.theme.js";
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
35
|
+
import { default as ce } from "../../components/scroll/theme/Scroll.carbon.theme.js";
|
|
36
|
+
import { default as ge } from "../../components/select/theme/Select.carbon.theme.js";
|
|
37
|
+
import { default as Ie } from "../../components/skeleton/theme/Skeleton.carbon.theme.js";
|
|
38
38
|
import { default as Pe } from "../../components/slider/theme/Slider.carbon.theme.js";
|
|
39
39
|
import { default as Ae } from "../../components/stepper/theme/Stepper.carbon.theme.js";
|
|
40
40
|
import { default as ke } from "../../components/tab/theme/Tab.carbon.theme.js";
|
|
41
41
|
import { default as Ge } from "../../components/tab/theme/TabGroup.carbon.theme.js";
|
|
42
42
|
import { default as Me } from "../../components/table/theme/Table.carbon.theme.js";
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
43
|
+
import { default as De } from "../../components/table/theme/TableCell.carbon.theme.js";
|
|
44
|
+
import { default as Re } from "../../components/table/theme/TableHead.carbon.theme.js";
|
|
45
|
+
import { default as Ne } from "../../components/table/theme/TableHeader.carbon.theme.js";
|
|
46
|
+
import { default as qe } from "../../components/table/theme/TableRow.carbon.theme.js";
|
|
47
|
+
import { default as ze } from "../../components/tag/theme/Tag.carbon.theme.js";
|
|
48
|
+
import { default as Je } from "../../components/textarea/theme/Textarea.carbon.theme.js";
|
|
49
|
+
import { default as Oe } from "../../components/toggle/theme/Toggle.carbon.theme.js";
|
|
47
50
|
export {
|
|
48
|
-
|
|
51
|
+
a as Accordion,
|
|
49
52
|
t as AccordionItem,
|
|
50
53
|
l as Alert,
|
|
51
|
-
|
|
54
|
+
u as Avatar,
|
|
52
55
|
m as Badge,
|
|
53
56
|
x as Breadcrumbs,
|
|
54
57
|
i as Button,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
c as ButtonGroup,
|
|
59
|
+
g as Card,
|
|
60
|
+
I as Carousel,
|
|
58
61
|
P as CarouselSlide,
|
|
59
62
|
A as Checkbox,
|
|
60
63
|
k as Container,
|
|
61
64
|
G as Divider,
|
|
62
65
|
M as Drawer,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
D as Form,
|
|
67
|
+
R as FormGroup,
|
|
68
|
+
N as Icon,
|
|
69
|
+
q as Image,
|
|
70
|
+
z as Input,
|
|
68
71
|
J as InputFooter,
|
|
69
72
|
O as Label,
|
|
70
73
|
U as Link,
|
|
@@ -72,23 +75,26 @@ export {
|
|
|
72
75
|
Y as Menu,
|
|
73
76
|
_ as MenuItem,
|
|
74
77
|
ee as Modal,
|
|
75
|
-
|
|
78
|
+
ae as Notifications,
|
|
76
79
|
te as Pagination,
|
|
77
80
|
le as PaginationItem,
|
|
78
|
-
|
|
81
|
+
ue as Popover,
|
|
79
82
|
me as PopoverContainer,
|
|
80
83
|
xe as Progress,
|
|
81
84
|
ie as Radio,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
ce as Scroll,
|
|
86
|
+
ge as Select,
|
|
87
|
+
Ie as Skeleton,
|
|
85
88
|
Pe as Slider,
|
|
86
89
|
Ae as Stepper,
|
|
87
90
|
ke as Tab,
|
|
88
91
|
Ge as TabGroup,
|
|
89
92
|
Me as Table,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
De as TableCell,
|
|
94
|
+
Re as TableHead,
|
|
95
|
+
Ne as TableHeader,
|
|
96
|
+
qe as TableRow,
|
|
97
|
+
ze as Tag,
|
|
98
|
+
Je as Textarea,
|
|
99
|
+
Oe as Toggle
|
|
94
100
|
};
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.0.0-dev-
|
|
1
|
+
declare const _default: "0.0.0-dev-20240129122517";
|
|
2
2
|
export default _default;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
package/src/common/icons.ts
CHANGED
|
@@ -11,7 +11,8 @@ export const dotsIcon = '<path d="M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2
|
|
|
11
11
|
export const prevIcon = '<path d="M15 19l-7-7 7-7" />'
|
|
12
12
|
export const nextIcon = '<path d="M9 5l7 7-7 7" />'
|
|
13
13
|
export const checkIcon = '<path d="M5 13l4 4L19 7" />'
|
|
14
|
-
export const
|
|
14
|
+
export const selectIcon = '<path d="M8 9l4-4 4 4m0 6l-4 4-4-4" />'
|
|
15
15
|
export const externalIcon = '<line x1="7" y1="17" x2="17" y2="7" /><polyline points="7 7 17 7 17 17" />'
|
|
16
16
|
export const stepperPristineIcon = '<path d="M7.5 4.21v.01M4.21 7.5v.01M3 12v.01m1.21 4.49v.01m3.29 3.28v.01M12 21v.01m4.5-1.22v.01m3.29-3.3v.01M21 12v.01M19.79 7.5v.01m-3.29-3.3v.01M12 3v.01"/>'
|
|
17
17
|
export const stepperIncompleteIcon = '<svg focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" viewBox="0 0 32 32" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><path d="M23.7642 6.8593l1.2851-1.5315A13.976 13.976 0 0020.8672 2.887l-.6836 1.8776A11.9729 11.9729 0 0123.7642 6.8593zM27.81 14l1.9677-.4128A13.8888 13.8888 0 0028.14 9.0457L26.4087 10A12.52 12.52 0 0127.81 14zM20.1836 27.2354l.6836 1.8776a13.976 13.976 0 004.1821-2.4408l-1.2851-1.5315A11.9729 11.9729 0 0120.1836 27.2354zM26.4087 22L28.14 23a14.14 14.14 0 001.6382-4.5872L27.81 18.0659A12.1519 12.1519 0 0126.4087 22zM16 30V2a14 14 0 000 28z"></path></svg>'
|
|
18
|
+
export const chevronDownIcon = '<path d="M19 9l-7 7-7-7" />'
|
|
@@ -2,7 +2,15 @@ import type { IconTheme } from '../Icon.vue'
|
|
|
2
2
|
|
|
3
3
|
const theme: IconTheme = {
|
|
4
4
|
classes: {
|
|
5
|
-
wrapper:
|
|
5
|
+
wrapper: ({ props }) => {
|
|
6
|
+
const classes = 'inline shrink-0'
|
|
7
|
+
|
|
8
|
+
if (props.size === 'xs') return classes + ' h-3 w-3'
|
|
9
|
+
else if (props.size === 'lg') return classes + ' h-5 w-5'
|
|
10
|
+
else if (props.size === 'xl') return classes + ' h-8 w-8'
|
|
11
|
+
|
|
12
|
+
return classes + ' h-4 w-4'
|
|
13
|
+
},
|
|
6
14
|
},
|
|
7
15
|
}
|
|
8
16
|
|
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
import type { LinkTheme } from '../Link.vue'
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const theme: LinkTheme = {
|
|
4
|
+
classes: {
|
|
5
|
+
wrapper: 'transition duration-300 ease-in-out cursor-pointer inline-flex text-sm',
|
|
6
|
+
},
|
|
4
7
|
|
|
5
|
-
|
|
8
|
+
styles: ({ colors, props, css }) => {
|
|
9
|
+
const color = colors.getPalette(props.color || 'gray')
|
|
10
|
+
|
|
11
|
+
return css.variables({
|
|
12
|
+
text: props.color ? color[600] : '',
|
|
13
|
+
hover: {
|
|
14
|
+
text: !props.shadow ? color[700] : '',
|
|
15
|
+
},
|
|
16
|
+
shadow: color[100],
|
|
17
|
+
dark: {
|
|
18
|
+
text: props.color ? color[400] : '',
|
|
19
|
+
hover: {
|
|
20
|
+
text: color[300],
|
|
21
|
+
},
|
|
22
|
+
shadow: color[900],
|
|
23
|
+
},
|
|
24
|
+
})
|
|
25
|
+
},
|
|
26
|
+
}
|
|
6
27
|
|
|
7
28
|
export default theme
|
|
@@ -128,7 +128,7 @@ const { styles, classes, className } = useTheme('MenuItem', {}, computedProps, {
|
|
|
128
128
|
ref="elRef"
|
|
129
129
|
v-bind="computedProps.attrs"
|
|
130
130
|
:to="computedProps.to"
|
|
131
|
-
:href="computedProps.href"
|
|
131
|
+
:href="computedProps.href || computedProps.to || ''"
|
|
132
132
|
:target="computedProps.target"
|
|
133
133
|
:color="computedProps.color"
|
|
134
134
|
:style="styles"
|
|
@@ -37,7 +37,7 @@ import { useCommon } from '../../composables/useCommon'
|
|
|
37
37
|
import { useInputtable } from '../../composables/useInputtable'
|
|
38
38
|
import { useInteractive } from '../../composables/useInteractive'
|
|
39
39
|
import { useTheme, type ThemeComponent } from '../../composables/useTheme'
|
|
40
|
-
import { checkIcon,
|
|
40
|
+
import { checkIcon, selectIcon } from '../../common/icons'
|
|
41
41
|
|
|
42
42
|
import XLabel from '../label/Label.vue'
|
|
43
43
|
import XTag from '../tag/Tag.vue'
|
|
@@ -334,7 +334,8 @@ defineExpose({ focus, blur, reset, validate, setError })
|
|
|
334
334
|
<x-tag
|
|
335
335
|
v-for="value in selected"
|
|
336
336
|
:key="value"
|
|
337
|
-
size="
|
|
337
|
+
size="xs"
|
|
338
|
+
outlined
|
|
338
339
|
removable
|
|
339
340
|
@remove="(e: Event) => { handleRemove(e, value) }"
|
|
340
341
|
>{{ getLabel(value) }}</x-tag>
|
|
@@ -369,7 +370,8 @@ defineExpose({ focus, blur, reset, validate, setError })
|
|
|
369
370
|
<x-tag
|
|
370
371
|
v-for="value in selected"
|
|
371
372
|
:key="value"
|
|
372
|
-
size="
|
|
373
|
+
size="xs"
|
|
374
|
+
outlined
|
|
373
375
|
removable
|
|
374
376
|
@remove="(e: Event) => { handleRemove(e, value) }"
|
|
375
377
|
>{{ getLabel(value) }}</x-tag>
|
|
@@ -439,7 +441,7 @@ defineExpose({ focus, blur, reset, validate, setError })
|
|
|
439
441
|
<x-spinner v-if="loading" :size="size" />
|
|
440
442
|
<slot v-else name="icon">
|
|
441
443
|
<x-icon
|
|
442
|
-
:icon="
|
|
444
|
+
:icon="selectIcon"
|
|
443
445
|
:class="[classes.icon]"
|
|
444
446
|
/>
|
|
445
447
|
</slot>
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
const shapes = ['line', 'circle'] as const
|
|
3
|
+
|
|
4
|
+
export type SkeletonShape = typeof shapes[number]
|
|
5
|
+
|
|
6
|
+
const validators = {
|
|
7
|
+
shape: shapes,
|
|
8
|
+
}
|
|
9
|
+
|
|
2
10
|
const skeletonProps = {
|
|
3
11
|
tag: {
|
|
4
12
|
type: String,
|
|
5
13
|
default: 'div',
|
|
6
14
|
},
|
|
15
|
+
shape: {
|
|
16
|
+
type: String as PropType<SkeletonShape>,
|
|
17
|
+
default: 'line',
|
|
18
|
+
validator: (val: SkeletonShape) => validators.shape.includes(val),
|
|
19
|
+
},
|
|
7
20
|
}
|
|
8
21
|
|
|
9
22
|
export type SkeletonProps = ExtractPublicPropTypes<typeof skeletonProps>
|
|
@@ -11,11 +24,14 @@ export type SkeletonProps = ExtractPublicPropTypes<typeof skeletonProps>
|
|
|
11
24
|
type InternalClasses = 'wrapper'
|
|
12
25
|
export interface SkeletonTheme extends ThemeComponent<SkeletonProps, InternalClasses> {}
|
|
13
26
|
|
|
14
|
-
export default {
|
|
27
|
+
export default {
|
|
28
|
+
name: 'XSkeleton',
|
|
29
|
+
validators,
|
|
30
|
+
}
|
|
15
31
|
</script>
|
|
16
32
|
|
|
17
33
|
<script setup lang="ts">
|
|
18
|
-
import type { ExtractPublicPropTypes } from 'vue'
|
|
34
|
+
import type { ExtractPublicPropTypes, PropType } from 'vue'
|
|
19
35
|
import { useTheme, type ThemeComponent } from '../../composables/useTheme'
|
|
20
36
|
|
|
21
37
|
const props = defineProps(skeletonProps)
|
|
@@ -2,7 +2,14 @@ import type { SkeletonTheme } from '../Skeleton.vue'
|
|
|
2
2
|
|
|
3
3
|
const theme: SkeletonTheme = {
|
|
4
4
|
classes: {
|
|
5
|
-
wrapper:
|
|
5
|
+
wrapper: ({ props }) => {
|
|
6
|
+
const classes = ['animate-pulse bg-gray-300 dark:bg-gray-600']
|
|
7
|
+
|
|
8
|
+
if (props.shape === 'circle') classes.push('w-8 h-8 rounded-full')
|
|
9
|
+
else classes.push('rounded-md')
|
|
10
|
+
|
|
11
|
+
return classes
|
|
12
|
+
},
|
|
6
13
|
},
|
|
7
14
|
}
|
|
8
15
|
|