@rebnd/ui 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +18 -542
- package/dist/src/components/RTable/RTable.d.ts +47 -0
- package/dist/src/components/RTable/utils/table.props.d.ts +23 -0
- package/dist/src/components/RTable/utils/table.style.d.ts +4 -0
- package/dist/src/theme/animations.d.ts +3 -0
- package/dist/src/theme/tokens.d.ts +3 -0
- package/dist/src/types/component.d.ts +8 -1
- package/dist/src/types/index.d.ts +2 -2
- package/dist/styles.css +107 -17
- package/dist/ui.js +599 -456
- package/dist/ui.umd.cjs +2 -2
- package/package.json +14 -14
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
1
2
|
type AccordionDisclosure = {
|
|
2
3
|
id: string;
|
|
3
4
|
title: string;
|
|
@@ -22,5 +23,11 @@ type LinkType = 'a' | 'RouterLink' | 'NuxtLink';
|
|
|
22
23
|
type Position = 'top' | 'bottom' | 'left' | 'right';
|
|
23
24
|
type Rounded = 'none' | Size | 'full';
|
|
24
25
|
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
26
|
+
type TableColumn<T = unknown> = {
|
|
27
|
+
id: string;
|
|
28
|
+
key: keyof T | string;
|
|
29
|
+
title: string;
|
|
30
|
+
actions?: VNode | ((row: T) => VNode);
|
|
31
|
+
};
|
|
25
32
|
type Variant = 'solid' | 'ghost' | 'outlined';
|
|
26
|
-
export type { AccordionDisclosure, Alignment, AnchorPosition, ButtonType, Color, ComponentName, DropdownAction, Icon, IconName, LinkRel, LinkTarget, LinkType, Position, Rounded, Size, Variant, };
|
|
33
|
+
export type { AccordionDisclosure, Alignment, AnchorPosition, ButtonType, Color, ComponentName, DropdownAction, Icon, IconName, LinkRel, LinkTarget, LinkType, Position, Rounded, Size, TableColumn, Variant, };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AccordionDisclosure, Alignment, AnchorPosition, ButtonType, Color, ComponentName, DropdownAction, Icon, IconName, LinkRel, LinkTarget, LinkType, Position, Rounded, Size, Variant } from './component';
|
|
1
|
+
import { AccordionDisclosure, Alignment, AnchorPosition, ButtonType, Color, ComponentName, DropdownAction, Icon, IconName, LinkRel, LinkTarget, LinkType, Position, Rounded, Size, TableColumn, Variant } from './component';
|
|
2
2
|
import { FormError, FormSubmitEvent } from './form';
|
|
3
|
-
export type { AccordionDisclosure, Alignment, AnchorPosition, ButtonType, Color, ComponentName, DropdownAction, FormError, FormSubmitEvent, Icon, IconName, LinkRel, LinkTarget, LinkType, Position, Rounded, Size, Variant, };
|
|
3
|
+
export type { AccordionDisclosure, Alignment, AnchorPosition, ButtonType, Color, ComponentName, DropdownAction, FormError, FormSubmitEvent, Icon, IconName, LinkRel, LinkTarget, LinkType, Position, Rounded, Size, TableColumn, Variant, };
|
package/dist/styles.css
CHANGED
|
@@ -425,6 +425,7 @@
|
|
|
425
425
|
--animations-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
426
426
|
--animations-bounce: bounce 1s infinite;
|
|
427
427
|
--animations-shake: shake 1s linear;
|
|
428
|
+
--animations-slide: slide 3s ease-in infinite;
|
|
428
429
|
--colors-current: currentColor;
|
|
429
430
|
--colors-black: #000;
|
|
430
431
|
--colors-white: #fff;
|
|
@@ -813,6 +814,34 @@
|
|
|
813
814
|
43.5% {
|
|
814
815
|
transform: translateX(2px) rotateY(3deg);
|
|
815
816
|
}
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
@keyframes slide {
|
|
820
|
+
0% {
|
|
821
|
+
transform: scaleX(1);
|
|
822
|
+
width: 0%;
|
|
823
|
+
transform-origin: left;
|
|
824
|
+
background-color: var(--colors-dash-800);
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
50% {
|
|
828
|
+
transform: scaleX(1);
|
|
829
|
+
width: 100%;
|
|
830
|
+
transform-origin: left;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
50.01% {
|
|
834
|
+
transform: scaleX(1);
|
|
835
|
+
width: 100%;
|
|
836
|
+
transform-origin: right;
|
|
837
|
+
background-color: var(--colors-dash-600);
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
100% {
|
|
841
|
+
transform: scaleX(0);
|
|
842
|
+
width: 100%;
|
|
843
|
+
transform-origin: right;
|
|
844
|
+
}
|
|
816
845
|
}
|
|
817
846
|
}
|
|
818
847
|
|
|
@@ -1067,18 +1096,28 @@
|
|
|
1067
1096
|
color: #D3D7E4;
|
|
1068
1097
|
}
|
|
1069
1098
|
|
|
1070
|
-
.
|
|
1071
|
-
|
|
1099
|
+
.p_0\.5rem_1rem {
|
|
1100
|
+
padding: 0.5rem 1rem;
|
|
1072
1101
|
}
|
|
1073
1102
|
|
|
1074
|
-
.
|
|
1075
|
-
|
|
1076
|
-
transition-timing-function: var(--transition-easing, cubic-bezier(0.4, 0, 0.2, 1));
|
|
1077
|
-
transition-duration: var(--transition-duration, 150ms);
|
|
1103
|
+
.bd-cl_collapse {
|
|
1104
|
+
border-collapse: collapse;
|
|
1078
1105
|
}
|
|
1079
1106
|
|
|
1080
|
-
.
|
|
1081
|
-
|
|
1107
|
+
.bdr_2px {
|
|
1108
|
+
border-radius: 2px;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
.bd-b_1px_solid {
|
|
1112
|
+
border-bottom: 1px solid;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
.p_5rem\! {
|
|
1116
|
+
padding: 5rem !important;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
.ta_center {
|
|
1120
|
+
text-align: center;
|
|
1082
1121
|
}
|
|
1083
1122
|
|
|
1084
1123
|
.c_neutrals\.900 {
|
|
@@ -1249,11 +1288,6 @@
|
|
|
1249
1288
|
flex-direction: column;
|
|
1250
1289
|
}
|
|
1251
1290
|
|
|
1252
|
-
.trs-dur_400ms {
|
|
1253
|
-
--transition-duration: 400ms;
|
|
1254
|
-
transition-duration: 400ms;
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
1291
|
.jc_space-around {
|
|
1258
1292
|
justify-content: space-around;
|
|
1259
1293
|
}
|
|
@@ -1394,6 +1428,18 @@
|
|
|
1394
1428
|
vertical-align: middle;
|
|
1395
1429
|
}
|
|
1396
1430
|
|
|
1431
|
+
.\[\&_td\,_th\]\:p_1rem td,.\[\&_td\,_th\]\:p_1rem th {
|
|
1432
|
+
padding: 1rem;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
.\[\&_td\,_th\]\:white-space_nowrap td,.\[\&_td\,_th\]\:white-space_nowrap th {
|
|
1436
|
+
white-space: nowrap;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
.\[\&_tr\:not\(\:last-child\)\]\:bd-b_1px_solid tr:not(:last-child) {
|
|
1440
|
+
border-bottom: 1px solid;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1397
1443
|
[data-theme=dark] .dark\:c_neutral\.50 {
|
|
1398
1444
|
color: var(--colors-neutral-50);
|
|
1399
1445
|
}
|
|
@@ -1578,6 +1624,10 @@
|
|
|
1578
1624
|
margin-left: 0.5rem;
|
|
1579
1625
|
}
|
|
1580
1626
|
|
|
1627
|
+
.\[\&_tr\:not\(\:last-child\)\]\:bd-c_neutrals\.100 tr:not(:last-child) {
|
|
1628
|
+
border-color: var(--colors-neutrals-100);
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1581
1631
|
.\[\&_div\]\:bg-c_neutrals\.50 div {
|
|
1582
1632
|
background-color: var(--colors-neutrals-50);
|
|
1583
1633
|
}
|
|
@@ -1618,10 +1668,6 @@
|
|
|
1618
1668
|
color: var(--colors-primary-darker);
|
|
1619
1669
|
}
|
|
1620
1670
|
|
|
1621
|
-
.hover\:scale_0\.95:is(:hover, [data-hover]) {
|
|
1622
|
-
scale: 0.95;
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
1671
|
.hover\:bg-c_error\.darker:is(:hover, [data-hover]) {
|
|
1626
1672
|
background-color: var(--colors-error-darker);
|
|
1627
1673
|
}
|
|
@@ -1732,6 +1778,10 @@
|
|
|
1732
1778
|
cursor: not-allowed;
|
|
1733
1779
|
}
|
|
1734
1780
|
|
|
1781
|
+
.\[\&\.loading\]\:\[\&_tbody\]\:pos_relative.loading tbody {
|
|
1782
|
+
position: relative;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1735
1785
|
.\[\&_details\]\:hover\:bg-c_neutrals\.200 details:is(:hover, [data-hover]) {
|
|
1736
1786
|
background-color: var(--colors-neutrals-200);
|
|
1737
1787
|
}
|
|
@@ -1784,6 +1834,10 @@
|
|
|
1784
1834
|
padding-left: 2rem;
|
|
1785
1835
|
}
|
|
1786
1836
|
|
|
1837
|
+
[data-theme=dark] .\[\&_tr\:not\(\:last-child\)\]\:dark\:bd-c_neutrals\.800 tr:not(:last-child) {
|
|
1838
|
+
border-color: var(--colors-neutrals-800);
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1787
1841
|
[data-theme=dark] .\[\&_div\]\:dark\:bg-c_neutrals\.800 div {
|
|
1788
1842
|
background-color: var(--colors-neutrals-800);
|
|
1789
1843
|
}
|
|
@@ -1824,6 +1878,30 @@
|
|
|
1824
1878
|
background: #0f1015;
|
|
1825
1879
|
}
|
|
1826
1880
|
|
|
1881
|
+
.\[\&\.loading\]\:\[\&_tbody\]\:before\:d_block.loading tbody::before {
|
|
1882
|
+
display: block;
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
.\[\&\.loading\]\:\[\&_tbody\]\:before\:pos_absolute.loading tbody::before {
|
|
1886
|
+
position: absolute;
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
.\[\&\.loading\]\:\[\&_tbody\]\:before\:h_2px.loading tbody::before {
|
|
1890
|
+
height: 2px;
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
.\[\&\.loading\]\:\[\&_tbody\]\:before\:trf-o_right.loading tbody::before {
|
|
1894
|
+
transform-origin: right;
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
.\[\&\.loading\]\:\[\&_tbody\]\:before\:bg_dash\.600.loading tbody::before {
|
|
1898
|
+
background: var(--colors-dash-600);
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1901
|
+
.\[\&\.loading\]\:\[\&_tbody\]\:before\:anim_slide.loading tbody::before {
|
|
1902
|
+
animation: var(--animations-slide);
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1827
1905
|
[data-theme=dark] .\[\&_details\]\:dark\:hover\:bg-c_neutrals\.800 details:is(:hover, [data-hover]) {
|
|
1828
1906
|
background-color: var(--colors-neutrals-800);
|
|
1829
1907
|
}
|
|
@@ -1868,6 +1946,18 @@
|
|
|
1868
1946
|
background-color: #15171E;
|
|
1869
1947
|
}
|
|
1870
1948
|
|
|
1949
|
+
.\[\&\.loading\]\:\[\&_tbody\]\:before\:content_\"\".loading tbody::before {
|
|
1950
|
+
content: "";
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
.\[\&\.loading\]\:\[\&_tbody\]\:before\:top_0.loading tbody::before {
|
|
1954
|
+
top: var(--spacing-0);
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
.\[\&\.loading\]\:\[\&_tbody\]\:before\:left_0.loading tbody::before {
|
|
1958
|
+
left: var(--spacing-0);
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1871
1961
|
.\[\&_details\]\:\[\&\[open\]\]\:\[\&_\>_summary\]\:before\:trf_rotate\(-45deg\) details[open] > summary::before {
|
|
1872
1962
|
transform: rotate(-45deg);
|
|
1873
1963
|
}
|