@vlrc-fe/components 3.1.0 → 3.3.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/CHANGELOG.md +30 -0
- package/README.md +34 -22
- package/bin/registry.mjs +48 -0
- package/bin/vlrc.mjs +40 -1
- package/dist/DataTable/DataTable.cjs +8 -4
- package/dist/DataTable/DataTable.d.ts +1 -1
- package/dist/DataTable/DataTable.d.ts.map +1 -1
- package/dist/DataTable/DataTable.js +8 -4
- package/dist/DataTable/components/DataTablePagination.cjs +48 -174
- package/dist/DataTable/components/DataTablePagination.d.ts +2 -1
- package/dist/DataTable/components/DataTablePagination.d.ts.map +1 -1
- package/dist/DataTable/components/DataTablePagination.js +48 -174
- package/dist/DataTable/components/DataTableTable.cjs +43 -79
- package/dist/DataTable/components/DataTableTable.d.ts +2 -1
- package/dist/DataTable/components/DataTableTable.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableTable.js +43 -79
- package/dist/DataTable/components/DataTableToolbar.cjs +25 -29
- package/dist/DataTable/components/DataTableToolbar.d.ts +2 -1
- package/dist/DataTable/components/DataTableToolbar.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableToolbar.js +25 -29
- package/dist/DataTable/types.d.ts +3 -0
- package/dist/DataTable/types.d.ts.map +1 -1
- package/dist/FilterPopup/FilterPopup.cjs +289 -0
- package/dist/FilterPopup/FilterPopup.d.ts +21 -0
- package/dist/FilterPopup/FilterPopup.d.ts.map +1 -0
- package/dist/FilterPopup/FilterPopup.js +287 -0
- package/dist/FilterPopup/assets/Divider.svg.cjs +3 -0
- package/dist/FilterPopup/assets/Divider.svg.js +3 -0
- package/dist/FilterPopup/assets/IconCheck.svg.cjs +3 -0
- package/dist/FilterPopup/assets/IconCheck.svg.js +3 -0
- package/dist/FilterPopup/assets/IconClose.svg.cjs +3 -0
- package/dist/FilterPopup/assets/IconClose.svg.js +3 -0
- package/dist/FilterPopup/assets/IconSearch.svg.cjs +3 -0
- package/dist/FilterPopup/assets/IconSearch.svg.js +3 -0
- package/dist/FilterPopup/index.d.ts +3 -0
- package/dist/FilterPopup/index.d.ts.map +1 -0
- package/dist/FilterPopup/styles.cjs +151 -0
- package/dist/FilterPopup/styles.d.ts +134 -0
- package/dist/FilterPopup/styles.d.ts.map +1 -0
- package/dist/FilterPopup/styles.js +149 -0
- package/dist/FilterPopup/types.d.ts +13 -0
- package/dist/FilterPopup/types.d.ts.map +1 -0
- package/dist/Form/Form.cjs +4 -2
- package/dist/Form/Form.d.ts.map +1 -1
- package/dist/Form/Form.js +4 -2
- package/dist/Icons/Icons.cjs +5 -0
- package/dist/Icons/Icons.d.ts +5 -0
- package/dist/Icons/Icons.d.ts.map +1 -1
- package/dist/Icons/Icons.js +6 -1
- package/dist/Icons/JiraIcons.cjs +99 -0
- package/dist/Icons/JiraIcons.js +100 -2
- package/dist/Icons/index.cjs +11 -0
- package/dist/Icons/index.js +3 -0
- package/dist/Select/BaseSelect.cjs +8 -4
- package/dist/Select/BaseSelect.d.ts.map +1 -1
- package/dist/Select/BaseSelect.js +8 -4
- package/dist/Select/type.d.ts +1 -0
- package/dist/Select/type.d.ts.map +1 -1
- package/dist/assets/stylex.css +174 -12
- package/dist/index.cjs +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/stylex-config.cjs +56 -0
- package/dist/stylex-config.d.ts +14 -0
- package/dist/stylex-config.d.ts.map +1 -0
- package/dist/stylex-config.js +55 -0
- package/dist/theme/tokens.stylex.cjs +24 -23
- package/dist/theme/tokens.stylex.d.ts +48 -48
- package/dist/theme/tokens.stylex.d.ts.map +1 -1
- package/dist/theme/tokens.stylex.js +24 -23
- package/dist/theme.css +179 -13
- package/dist/ui/button.cjs +3 -3
- package/dist/ui/button.js +3 -3
- package/dist/ui/checkbox.cjs +2 -2
- package/dist/ui/checkbox.d.ts +3 -2
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +2 -2
- package/dist/ui/popover.cjs +6 -1
- package/dist/ui/popover.d.ts +3 -1
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +6 -1
- package/dist/ui/scroll-area.cjs +4 -2
- package/dist/ui/scroll-area.d.ts.map +1 -1
- package/dist/ui/scroll-area.js +4 -2
- package/package.json +11 -4
- package/src/theme/woodland.css +39 -0
|
@@ -50,7 +50,7 @@ function isMultiProps(props) {
|
|
|
50
50
|
return props.isMulti === true;
|
|
51
51
|
}
|
|
52
52
|
function BaseSelect(props) {
|
|
53
|
-
const { options, injectOptions = EMPTY_INJECT_OPTIONS, placeholder = "Select...", isClearable = true, isSearchable = true, isLoading = false, className = "", disabled = false, onSearchTextChange, hasNextPage = false, isFetchingNextPage = false, fetchNextPage, maxTagCount = "responsive", tagRender, showSelectAll = false, width } = props;
|
|
53
|
+
const { options, injectOptions = EMPTY_INJECT_OPTIONS, placeholder = "Select...", isClearable = true, isSearchable = true, isLoading = false, className = "", disabled = false, onSearchTextChange, hasNextPage = false, isFetchingNextPage = false, fetchNextPage, maxTagCount = "responsive", tagRender, showSelectAll = false, suffixIcon, width } = props;
|
|
54
54
|
const isMulti = isMultiProps(props);
|
|
55
55
|
const { value } = props;
|
|
56
56
|
const resolvedWidth = resolveWidth(width);
|
|
@@ -195,12 +195,16 @@ function BaseSelect(props) {
|
|
|
195
195
|
onRemove: handleRemoveTag,
|
|
196
196
|
disabled,
|
|
197
197
|
tagRender
|
|
198
|
-
}) : displayLabel ? /* @__PURE__ */ jsx(
|
|
198
|
+
}) : displayLabel ? /* @__PURE__ */ jsxs(Fragment, { children: [selectedOptions[0]?.icon && /* @__PURE__ */ jsx("span", {
|
|
199
|
+
className: "x3nfvp2 x2lah0s x6s0dn4",
|
|
200
|
+
"aria-hidden": "true",
|
|
201
|
+
children: selectedOptions[0].icon
|
|
202
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
199
203
|
ellipsis: true,
|
|
200
204
|
tooltip: true,
|
|
201
205
|
sx: styles.labelArea,
|
|
202
206
|
children: displayLabel
|
|
203
|
-
}) : /* @__PURE__ */ jsx(Text, {
|
|
207
|
+
})] }) : /* @__PURE__ */ jsx(Text, {
|
|
204
208
|
sx: [styles.labelArea, styles.placeholder],
|
|
205
209
|
children: placeholder
|
|
206
210
|
}),
|
|
@@ -208,7 +212,7 @@ function BaseSelect(props) {
|
|
|
208
212
|
className: "x1xvt488 xf08kfj x13zjp5t xw3nh4a x2lah0s x1ypdohk x1mqvv6a",
|
|
209
213
|
onClick: handleClear
|
|
210
214
|
}),
|
|
211
|
-
/* @__PURE__ */ jsx(Icons.ChevronDownIcon, { className: "x1xvt488 xf08kfj x13zjp5t xw3nh4a x2lah0s" })
|
|
215
|
+
suffixIcon ?? /* @__PURE__ */ jsx(Icons.ChevronDownIcon, { className: "x1xvt488 xf08kfj x13zjp5t xw3nh4a x2lah0s" })
|
|
212
216
|
]
|
|
213
217
|
})
|
|
214
218
|
}), /* @__PURE__ */ jsxs(PopoverContent, {
|
package/dist/Select/type.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export interface BaseSelectCommonProps<T extends SelectValue = SelectValue> {
|
|
|
32
32
|
tagRender?: (option: BaseSelectOption<T>, onRemove: () => void) => ReactNode;
|
|
33
33
|
showSelectAll?: boolean;
|
|
34
34
|
allowClear?: boolean;
|
|
35
|
+
suffixIcon?: ReactNode;
|
|
35
36
|
/** Configurable component width (presets: 'full', 'auto', 'md', px number, or custom CSS string) */
|
|
36
37
|
width?: ComponentWidth;
|
|
37
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/Select/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAA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C,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB,CACpC,CAAC,SAAS,WAAW,GAAG,WAAW,CACnC,SAAQ,qBAAqB,CAAC,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IACjD,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAC3D,oBAAoB,CAAC,CAAC,CAAC,GACvB,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,0BAA0B,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,IAAI,CAChF,qBAAqB,CAAC,CAAC,CAAC,EACtB,SAAS,GACT,eAAe,GACf,aAAa,GACb,aAAa,GACb,cAAc,GACd,WAAW,GACX,WAAW,GACX,UAAU,GACV,oBAAoB,GACpB,aAAa,GACb,oBAAoB,GACpB,eAAe,GACf,aAAa,GACb,WAAW,GACX,eAAe,GACf,YAAY,GACZ,OAAO,CACV,CAAC"}
|
package/dist/assets/stylex.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@layer reset, astryx-base, astryx-theme, priority1;
|
|
1
|
+
@layer reset, astryx-base, astryx-theme, vlrc.priority1;
|
|
2
2
|
|
|
3
|
-
@layer priority2 {
|
|
3
|
+
@layer vlrc.priority2 {
|
|
4
4
|
.x10a8y8t {
|
|
5
5
|
inset: 0;
|
|
6
6
|
}
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
@layer priority3 {
|
|
173
|
+
@layer vlrc.priority3 {
|
|
174
174
|
.xzu61vc {
|
|
175
175
|
border-color: color-mix(in srgb,var(--border) 60%,transparent);
|
|
176
176
|
}
|
|
@@ -211,6 +211,10 @@
|
|
|
211
211
|
border-color: var(--x1q702uj);
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
+
.x1j35chg {
|
|
215
|
+
border-color: var(--x1u5ybgr);
|
|
216
|
+
}
|
|
217
|
+
|
|
214
218
|
.x1f1eyqo {
|
|
215
219
|
border-color: var(--x1xraw52);
|
|
216
220
|
}
|
|
@@ -275,6 +279,10 @@
|
|
|
275
279
|
border-radius: var(--x1noa836);
|
|
276
280
|
}
|
|
277
281
|
|
|
282
|
+
.x1ch3zq1 {
|
|
283
|
+
border-radius: var(--x1nqusgl);
|
|
284
|
+
}
|
|
285
|
+
|
|
278
286
|
.xrijj7p {
|
|
279
287
|
border-radius: var(--x3avj71);
|
|
280
288
|
}
|
|
@@ -787,6 +795,10 @@
|
|
|
787
795
|
padding-inline: var(--x84y4gn);
|
|
788
796
|
}
|
|
789
797
|
|
|
798
|
+
.xim7yig {
|
|
799
|
+
padding-inline: var(--x8a1uhy);
|
|
800
|
+
}
|
|
801
|
+
|
|
790
802
|
.x7ai2fz {
|
|
791
803
|
padding-inline: var(--xf0d99x);
|
|
792
804
|
}
|
|
@@ -854,9 +866,15 @@
|
|
|
854
866
|
.xt0b8zv:hover {
|
|
855
867
|
text-decoration: underline;
|
|
856
868
|
}
|
|
869
|
+
|
|
870
|
+
@media (width <= 37rem) {
|
|
871
|
+
.x15nl2py.x15nl2py {
|
|
872
|
+
padding-inline: 0;
|
|
873
|
+
}
|
|
874
|
+
}
|
|
857
875
|
}
|
|
858
876
|
|
|
859
|
-
@layer priority4 {
|
|
877
|
+
@layer vlrc.priority4 {
|
|
860
878
|
.x1lugfcp {
|
|
861
879
|
-webkit-appearance: none;
|
|
862
880
|
}
|
|
@@ -897,6 +915,10 @@
|
|
|
897
915
|
align-self: start;
|
|
898
916
|
}
|
|
899
917
|
|
|
918
|
+
.xkh2ocl {
|
|
919
|
+
align-self: stretch;
|
|
920
|
+
}
|
|
921
|
+
|
|
900
922
|
.xtsvl71 {
|
|
901
923
|
animation-duration: .15s;
|
|
902
924
|
}
|
|
@@ -925,6 +947,10 @@
|
|
|
925
947
|
animation-iteration-count: infinite;
|
|
926
948
|
}
|
|
927
949
|
|
|
950
|
+
.x1a5igra {
|
|
951
|
+
animation-name: none;
|
|
952
|
+
}
|
|
953
|
+
|
|
928
954
|
.xcx56e2 {
|
|
929
955
|
animation-name: x13kz0yu-B;
|
|
930
956
|
}
|
|
@@ -1053,6 +1079,10 @@
|
|
|
1053
1079
|
background-color: color-mix(in srgb,var(--primary, #3b82f6) 12%,transparent);
|
|
1054
1080
|
}
|
|
1055
1081
|
|
|
1082
|
+
.xaxqfo8 {
|
|
1083
|
+
background-color: color-mix(in srgb,var(--primary, var(--xn4ba8t)) 65%,var(--foreground, var(--x1msym1h)));
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1056
1086
|
.xa0uij2 {
|
|
1057
1087
|
background-color: color-mix(in srgb,var(--primary) 15%,transparent);
|
|
1058
1088
|
}
|
|
@@ -1121,6 +1151,10 @@
|
|
|
1121
1151
|
background-color: var(--x1q702uj);
|
|
1122
1152
|
}
|
|
1123
1153
|
|
|
1154
|
+
.x1p8vxlw {
|
|
1155
|
+
background-color: var(--x1q8wz0t);
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1124
1158
|
.x6nzc14 {
|
|
1125
1159
|
background-color: var(--x1s7f8q0);
|
|
1126
1160
|
}
|
|
@@ -1129,6 +1163,10 @@
|
|
|
1129
1163
|
background-color: var(--x1sd5jsm);
|
|
1130
1164
|
}
|
|
1131
1165
|
|
|
1166
|
+
.x1skizrm {
|
|
1167
|
+
background-color: var(--x1u5ybgr);
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1132
1170
|
.xqtjmn6 {
|
|
1133
1171
|
background-color: var(--x1w51zn2);
|
|
1134
1172
|
}
|
|
@@ -1169,6 +1207,10 @@
|
|
|
1169
1207
|
background-color: var(--xn4ba8t);
|
|
1170
1208
|
}
|
|
1171
1209
|
|
|
1210
|
+
.x1e8bw6h {
|
|
1211
|
+
background-color: var(--xonagrb);
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1172
1214
|
.xf0tell {
|
|
1173
1215
|
background-color: var(--xx06z7z);
|
|
1174
1216
|
}
|
|
@@ -1177,12 +1219,12 @@
|
|
|
1177
1219
|
background-image: linear-gradient(135deg,var(--primary) 0%,var(--chart-4) 50%,var(--chart-5) 100%);
|
|
1178
1220
|
}
|
|
1179
1221
|
|
|
1180
|
-
.
|
|
1181
|
-
background-image: linear-gradient(to right,var(--
|
|
1222
|
+
.x1chj0te {
|
|
1223
|
+
background-image: linear-gradient(to right,color-mix(in srgb,var(--primary, var(--xn4ba8t)) 65%,var(--foreground, var(--x1msym1h))),color-mix(in srgb,var(--chart-4, var(--x10agjwg)) 50%,var(--foreground, var(--x1msym1h))));
|
|
1182
1224
|
}
|
|
1183
1225
|
|
|
1184
|
-
.
|
|
1185
|
-
background-image: linear-gradient(to right,var(--
|
|
1226
|
+
.x1uzkeai {
|
|
1227
|
+
background-image: linear-gradient(to right,var(--chart-2),var(--color-success));
|
|
1186
1228
|
}
|
|
1187
1229
|
|
|
1188
1230
|
.x1mwwwfo {
|
|
@@ -1253,6 +1295,10 @@
|
|
|
1253
1295
|
color: var(--color-fg-muted, #64748b);
|
|
1254
1296
|
}
|
|
1255
1297
|
|
|
1298
|
+
.x1h9mnhn {
|
|
1299
|
+
color: var(--primary-foreground, var(--x1dcoxaw));
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1256
1302
|
.x14nva5f {
|
|
1257
1303
|
color: var(--tag-geekblue-fg, #3b82f6);
|
|
1258
1304
|
}
|
|
@@ -1333,6 +1379,10 @@
|
|
|
1333
1379
|
color: var(--xyhg5qh);
|
|
1334
1380
|
}
|
|
1335
1381
|
|
|
1382
|
+
.xguee2a {
|
|
1383
|
+
column-gap: var(--x84y4gn);
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1336
1386
|
.xt0e3qv {
|
|
1337
1387
|
cursor: default;
|
|
1338
1388
|
}
|
|
@@ -1469,6 +1519,10 @@
|
|
|
1469
1519
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
1470
1520
|
}
|
|
1471
1521
|
|
|
1522
|
+
.x1o9apwc {
|
|
1523
|
+
font-family: var(--font-family-body, system-ui,sans-serif);
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1472
1526
|
.x6phcfz {
|
|
1473
1527
|
font-size: .5rem;
|
|
1474
1528
|
}
|
|
@@ -1593,10 +1647,18 @@
|
|
|
1593
1647
|
grid-template-columns: auto 1fr;
|
|
1594
1648
|
}
|
|
1595
1649
|
|
|
1650
|
+
.x1laftvf {
|
|
1651
|
+
grid-template-columns: minmax(0, 200fr) 1px minmax(0, 294fr);
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1596
1654
|
.x1wlfl8j {
|
|
1597
1655
|
grid-template-columns: repeat(3, 1fr);
|
|
1598
1656
|
}
|
|
1599
1657
|
|
|
1658
|
+
.x1h51kgi {
|
|
1659
|
+
grid-template-rows: 1fr auto;
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1600
1662
|
.xl56j7k {
|
|
1601
1663
|
justify-content: center;
|
|
1602
1664
|
}
|
|
@@ -1629,6 +1691,10 @@
|
|
|
1629
1691
|
justify-self: end;
|
|
1630
1692
|
}
|
|
1631
1693
|
|
|
1694
|
+
.x1lqcxt8 {
|
|
1695
|
+
justify-self: start;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1632
1698
|
.x1w69ole {
|
|
1633
1699
|
letter-spacing: -.025em;
|
|
1634
1700
|
}
|
|
@@ -1653,6 +1719,10 @@
|
|
|
1653
1719
|
letter-spacing: normal;
|
|
1654
1720
|
}
|
|
1655
1721
|
|
|
1722
|
+
.x1jo673t {
|
|
1723
|
+
line-height: .875rem;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1656
1726
|
.x1159mfc {
|
|
1657
1727
|
line-height: 1.1;
|
|
1658
1728
|
}
|
|
@@ -1809,6 +1879,10 @@
|
|
|
1809
1879
|
row-gap: var(--gutter-y, 0px);
|
|
1810
1880
|
}
|
|
1811
1881
|
|
|
1882
|
+
.x1597r2g {
|
|
1883
|
+
scrollbar-width: thin;
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1812
1886
|
.x19u12o8 {
|
|
1813
1887
|
stroke: var(--x13pi5nw);
|
|
1814
1888
|
}
|
|
@@ -1893,6 +1967,10 @@
|
|
|
1893
1967
|
transform: rotate(45deg);
|
|
1894
1968
|
}
|
|
1895
1969
|
|
|
1970
|
+
.xvxagb8 {
|
|
1971
|
+
transform: translate(-50%, -50%) rotate(90deg);
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1896
1974
|
.xb9cejc {
|
|
1897
1975
|
transform: translate(-50%, -50%) scale(1.05);
|
|
1898
1976
|
}
|
|
@@ -2286,6 +2364,10 @@
|
|
|
2286
2364
|
background-color: var(--x1s7f8q0);
|
|
2287
2365
|
}
|
|
2288
2366
|
|
|
2367
|
+
.x1ukakyg:hover {
|
|
2368
|
+
background-color: var(--x1sd5jsm);
|
|
2369
|
+
}
|
|
2370
|
+
|
|
2289
2371
|
.x1439r81:hover {
|
|
2290
2372
|
background-color: var(--xn4ba8t);
|
|
2291
2373
|
}
|
|
@@ -2397,9 +2479,15 @@
|
|
|
2397
2479
|
.x4bdkwq:active {
|
|
2398
2480
|
color: var(--xyhg5qh);
|
|
2399
2481
|
}
|
|
2482
|
+
|
|
2483
|
+
@media (width <= 37rem) {
|
|
2484
|
+
.x1tx6lya.x1tx6lya {
|
|
2485
|
+
column-gap: var(--x1j1c1xi);
|
|
2486
|
+
}
|
|
2487
|
+
}
|
|
2400
2488
|
}
|
|
2401
2489
|
|
|
2402
|
-
@layer priority5 {
|
|
2490
|
+
@layer vlrc.priority5 {
|
|
2403
2491
|
.x16stqrj {
|
|
2404
2492
|
border-bottom-color: #0000;
|
|
2405
2493
|
}
|
|
@@ -2772,6 +2860,10 @@
|
|
|
2772
2860
|
height: auto;
|
|
2773
2861
|
}
|
|
2774
2862
|
|
|
2863
|
+
.xynngkc {
|
|
2864
|
+
height: var(--x7ynofz);
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2775
2867
|
.x1a7i7vh {
|
|
2776
2868
|
left: -3rem;
|
|
2777
2869
|
}
|
|
@@ -3068,6 +3160,18 @@
|
|
|
3068
3160
|
max-height: calc(100vh - 120px);
|
|
3069
3161
|
}
|
|
3070
3162
|
|
|
3163
|
+
.xedcshv {
|
|
3164
|
+
max-height: inherit;
|
|
3165
|
+
}
|
|
3166
|
+
|
|
3167
|
+
.x1mjfrbz {
|
|
3168
|
+
max-height: min(15.5rem, 40dvh);
|
|
3169
|
+
}
|
|
3170
|
+
|
|
3171
|
+
.xu39rbg {
|
|
3172
|
+
max-height: var(--radix-popover-content-available-height);
|
|
3173
|
+
}
|
|
3174
|
+
|
|
3071
3175
|
.x193iq5w {
|
|
3072
3176
|
max-width: 100%;
|
|
3073
3177
|
}
|
|
@@ -3264,6 +3368,14 @@
|
|
|
3264
3368
|
max-width: max-content;
|
|
3265
3369
|
}
|
|
3266
3370
|
|
|
3371
|
+
.x1x1rfll {
|
|
3372
|
+
max-width: none;
|
|
3373
|
+
}
|
|
3374
|
+
|
|
3375
|
+
.xuhc1l6 {
|
|
3376
|
+
max-width: var(--radix-popover-content-available-width);
|
|
3377
|
+
}
|
|
3378
|
+
|
|
3267
3379
|
.x2lwn1j {
|
|
3268
3380
|
min-height: 0;
|
|
3269
3381
|
}
|
|
@@ -3344,6 +3456,18 @@
|
|
|
3344
3456
|
min-height: 8rem;
|
|
3345
3457
|
}
|
|
3346
3458
|
|
|
3459
|
+
.x1ymur96 {
|
|
3460
|
+
min-height: min(15.5rem, 40dvh);
|
|
3461
|
+
}
|
|
3462
|
+
|
|
3463
|
+
.x1p3atzf {
|
|
3464
|
+
min-height: var(--x1hwxhyl);
|
|
3465
|
+
}
|
|
3466
|
+
|
|
3467
|
+
.xwz81cq {
|
|
3468
|
+
min-height: var(--x5jgjd1);
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3347
3471
|
.xeuugli {
|
|
3348
3472
|
min-width: 0;
|
|
3349
3473
|
}
|
|
@@ -3440,6 +3564,10 @@
|
|
|
3440
3564
|
min-width: 8rem;
|
|
3441
3565
|
}
|
|
3442
3566
|
|
|
3567
|
+
.x1obl2fl {
|
|
3568
|
+
min-width: var(--xnxmmo7);
|
|
3569
|
+
}
|
|
3570
|
+
|
|
3443
3571
|
.xw2csxc {
|
|
3444
3572
|
overflow-x: auto;
|
|
3445
3573
|
}
|
|
@@ -3796,6 +3924,10 @@
|
|
|
3796
3924
|
width: 3.75rem;
|
|
3797
3925
|
}
|
|
3798
3926
|
|
|
3927
|
+
.x64frv8 {
|
|
3928
|
+
width: 34.375rem;
|
|
3929
|
+
}
|
|
3930
|
+
|
|
3799
3931
|
.x188tqju {
|
|
3800
3932
|
width: 3rem;
|
|
3801
3933
|
}
|
|
@@ -3867,15 +3999,21 @@
|
|
|
3867
3999
|
.x1f6h9sa:last-child {
|
|
3868
4000
|
border-top-right-radius: var(--x3avj71);
|
|
3869
4001
|
}
|
|
4002
|
+
|
|
4003
|
+
@media (pointer: coarse) {
|
|
4004
|
+
.xgt7kqx.xgt7kqx {
|
|
4005
|
+
min-height: var(--x1qtdo4e);
|
|
4006
|
+
}
|
|
4007
|
+
}
|
|
3870
4008
|
}
|
|
3871
4009
|
|
|
3872
|
-
@layer priority6 {
|
|
4010
|
+
@layer vlrc.priority6 {
|
|
3873
4011
|
.xoo4nqz::file-selector-button {
|
|
3874
4012
|
border-width: 0;
|
|
3875
4013
|
}
|
|
3876
4014
|
}
|
|
3877
4015
|
|
|
3878
|
-
@layer priority7 {
|
|
4016
|
+
@layer vlrc.priority7 {
|
|
3879
4017
|
.xu197gb::file-selector-button {
|
|
3880
4018
|
background-color: #0000;
|
|
3881
4019
|
}
|
|
@@ -3905,7 +4043,7 @@
|
|
|
3905
4043
|
}
|
|
3906
4044
|
}
|
|
3907
4045
|
|
|
3908
|
-
@layer priority8 {
|
|
4046
|
+
@layer vlrc.priority8 {
|
|
3909
4047
|
.x1c4dosm::file-selector-button {
|
|
3910
4048
|
height: 1.75rem;
|
|
3911
4049
|
}
|
|
@@ -4114,6 +4252,30 @@
|
|
|
4114
4252
|
--x1jandvh: var(--sidebar-ring, var(--ring, #3b82f6));
|
|
4115
4253
|
}
|
|
4116
4254
|
|
|
4255
|
+
:root, .x4c2p08 {
|
|
4256
|
+
--x1kiqd8p: var(--border, #e2e8f0);
|
|
4257
|
+
--x14mrwvj: var(--card, #fff);
|
|
4258
|
+
--x1qofsth: var(--secondary, #f1f5f9);
|
|
4259
|
+
--x17c503t: var(--accent, #f1f5f9);
|
|
4260
|
+
--x1aih6qb: var(--foreground, #0f172a);
|
|
4261
|
+
--x1092rtw: var(--muted-foreground, #64748b);
|
|
4262
|
+
--xwy751l: var(--primary, #3b82f6);
|
|
4263
|
+
--xtj4p: var(--destructive, #ef4444);
|
|
4264
|
+
--x1lg8uq7: var(--color-success, #16a34a);
|
|
4265
|
+
--x3r9ek7: var(--color-warning, #eab308);
|
|
4266
|
+
--x1dm4898: var(--muted, #f1f5f9);
|
|
4267
|
+
--x15yt3bl: var(--secondary, #f1f5f9);
|
|
4268
|
+
--xu427zx: var(--spacing-xs, .5rem);
|
|
4269
|
+
--xps8v7d: var(--spacing-sm, .75rem);
|
|
4270
|
+
--xibqxoo: var(--spacing-md, 1rem);
|
|
4271
|
+
--xi4ug46: var(--spacing-lg, 1.5rem);
|
|
4272
|
+
--xcaq7qd: var(--spacing-xl, 2rem);
|
|
4273
|
+
--x1rajreh: var(--radius-sm, 2px);
|
|
4274
|
+
--xy57vz4: var(--radius-md, 6px);
|
|
4275
|
+
--xg0j1i6: var(--radius-lg, 8px);
|
|
4276
|
+
--x1wvvzt7: var(--radius-full, 9999px);
|
|
4277
|
+
}
|
|
4278
|
+
|
|
4117
4279
|
:root, .x1cpnoih {
|
|
4118
4280
|
--x1p7pofw: var(--spacing-0, 0rem);
|
|
4119
4281
|
--x1epcrpp: var(--spacing-1, .25rem);
|
package/dist/index.cjs
CHANGED
|
@@ -117,6 +117,7 @@ const require_FileUpload = require("./Form/FormFileUpload/FileUpload.cjs");
|
|
|
117
117
|
const require_index$1 = require("./Form/FormFileUpload/index.cjs");
|
|
118
118
|
const require_Dropdown = require("./Dropdown/Dropdown.cjs");
|
|
119
119
|
const require_Tag = require("./Tag/Tag.cjs");
|
|
120
|
+
const require_FilterPopup = require("./FilterPopup/FilterPopup.cjs");
|
|
120
121
|
let _astryxdesign_core = require("@astryxdesign/core");
|
|
121
122
|
let sonner = require("sonner");
|
|
122
123
|
exports.Accordion = require_accordion.Accordion;
|
|
@@ -391,6 +392,7 @@ exports.FileUploadItemProgress = require_file_upload.FileUploadItemProgress;
|
|
|
391
392
|
exports.FileUploadList = require_file_upload.FileUploadList;
|
|
392
393
|
exports.FileUploadTrigger = require_file_upload.FileUploadTrigger;
|
|
393
394
|
exports.FileUploader = require_file_upload.FileUploader;
|
|
395
|
+
exports.FilterPopup = require_FilterPopup.FilterPopup;
|
|
394
396
|
exports.Flex = require_flex.Flex;
|
|
395
397
|
exports.Form = require_form.Form;
|
|
396
398
|
exports.FormCheckbox = require_Form.FormCheckbox;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,4 +23,6 @@ export { getNextRovingIndex, unstyledButtonStyles, srOnlyStyles, cn } from './ut
|
|
|
23
23
|
export type { RovingNavigationOptions } from './utils';
|
|
24
24
|
export { InternationalizationProvider, InternationalizationContext, useLocale, useDirection, useCollator, useTranslator, getLocaleDirection, DATE_FORMAT_LONG, DATE_FORMAT_SHORT, DATE_FORMAT_MONTH_YEAR, DATE_FORMAT_SHORT_WITH_WEEKDAY, DATE_FORMAT_SHORT_WITH_YEAR, DATE_FORMAT_WEEKDAY_ONLY, DATE_FORMAT_WITH_WEEKDAY, DATE_FORMAT_MONTH_ONLY, } from '@astryxdesign/core';
|
|
25
25
|
export type { InternationalizationProviderProps, InternationalizationContextValue, TranslatorFn, CalendarSystem, Translator, Locale, } from '@astryxdesign/core';
|
|
26
|
+
export { FilterPopup } from './FilterPopup';
|
|
27
|
+
export type { FilterPopupCategory, FilterPopupOption, FilterPopupSelection } from './FilterPopup';
|
|
26
28
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EACL,SAAS,EACT,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,cAAc,EACd,2BAA2B,EAC3B,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACzD,YAAY,EACV,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,YAAY,GACb,MAAM,SAAS,CAAC;AACjB,cAAc,MAAM,CAAC;AACrB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CA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M,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -118,5 +118,6 @@ import { FileUpload } from "./Form/FormFileUpload/FileUpload.js";
|
|
|
118
118
|
import { FormFileUpload, FormFileUploader } from "./Form/FormFileUpload/index.js";
|
|
119
119
|
import { Dropdown, PopupMenu } from "./Dropdown/Dropdown.js";
|
|
120
120
|
import { Tag } from "./Tag/Tag.js";
|
|
121
|
+
import { FilterPopup } from "./FilterPopup/FilterPopup.js";
|
|
121
122
|
import { DATE_FORMAT_LONG, DATE_FORMAT_MONTH_ONLY, DATE_FORMAT_MONTH_YEAR, DATE_FORMAT_SHORT, DATE_FORMAT_SHORT_WITH_WEEKDAY, DATE_FORMAT_SHORT_WITH_YEAR, DATE_FORMAT_WEEKDAY_ONLY, DATE_FORMAT_WITH_WEEKDAY, InternationalizationContext, InternationalizationProvider, getLocaleDirection, useCollator, useDirection, useLocale, useTranslator } from "@astryxdesign/core";
|
|
122
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarClose, ActionBarGroup, ActionBarItem, ActionBarSelection, ActionBarSeparator, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, AstryxField, AstryxFieldLabel, AstryxFieldStatus, AstryxGrid, Avatar, AvatarFallback, AvatarGroup, AvatarImage, AvatarStatusDot, BREAKPOINTS, Badge, BadgeOverflow, Blockquote, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, COMPONENT_SIZES, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Center, Checkbox, CircularProgress, Code, CodeBlock, CodeBlockContent, CodeBlockCopyButton, CodeBlockExpandButton, CodeBlockHeader, CodeBlockLanguage, CodeBlockTitle, CodeBlockWrapButton, Col, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CompareSlider, ComponentSpacingPresetMap, ComponentWidthPresetMap, ConfirmModal, Container, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, DATE_FORMAT_LONG, DATE_FORMAT_MONTH_ONLY, DATE_FORMAT_MONTH_YEAR, DATE_FORMAT_SHORT, DATE_FORMAT_SHORT_WITH_WEEKDAY, DATE_FORMAT_SHORT_WITH_YEAR, DATE_FORMAT_WEEKDAY_ONLY, DATE_FORMAT_WITH_WEEKDAY, DEFAULT_COMPONENT_SIZE, DataTable, DataTableColumnHeader, DataTableFacetedFilter, SingleDatePicker as DatePicker, RangeDatePicker as DateRangePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Divider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Dropdown, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editable, EditableArea, EditableCancel, EditableInput, EditablePreview, EditableSubmit, EditableToolbar, EditableTrigger, Empty, Empty as EmptyState, EmptyActions, EmptyDescription, EmptyImage, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FileUpload as FileDropzone, FileUploadRoot as FileUpload, FileUploadClear, FileUploadDropzone, FileUploadItem, FileUploadItemDelete, FileUploadItemMetadata, FileUploadItemPreview, FileUploadItemProgress, FileUploadList, FileUploadTrigger, FileUploader, Flex, Form, FormCheckbox, FormControl, FormDatePicker, FormDescription, FormField, FormFileUpload, FormFileUploader, FormInput, FormItem, FormLabel, FormMessage, FormMultiSelect, FormNumberInput, FormRadio as FormRadioGroup, FormSelect, FormSimpleSelect, FormSwitch, FormTextarea, Gauge, Grid, GridItem, GridRoot, GridSpan, HStack, Heading, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, Icons, Input, InputClearButton, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InternationalizationContext, InternationalizationProvider, IssueIcon, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, Link, Marker, MarkerContent, MarkerIcon, Masonry, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Modal, MultiSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Paragraph, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PopupMenu, PriorityIcon, Progress, Questionnaire, QuestionnaireActions, QuestionnaireContent, QuestionnaireDescription, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, QuestionnaireSkip, QuestionnaireTitle, RadioGroup, RadioGroupItem, RangeDatePicker, Rating, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveDialog, ResponsiveDialogClose, ResponsiveDialogContent, ResponsiveDialogDescription, ResponsiveDialogFooter, ResponsiveDialogHeader, ResponsiveDialogTitle, ResponsiveDialogTrigger, Row, RowContext, ScrollArea, ScrollBar, Segmented, BaseSelect as Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SignaturePad, SignaturePadArea, SignaturePadClear, SignaturePadControls, SignaturePadGuide, SignaturePadPlaceholder, SignaturePadRedo, SignaturePadUndo, SingleDatePicker, Skeleton, Slider, Spinner, Stack, StackItem, Stat, StatDescription, StatHeader, StatIndicator, StatLabel, StatTrend, StatValue, StatusDot, Stepper, StepperContent, StepperDescription, StepperIndicator, StepperItem, StepperList, StepperNext, StepperPrev, StepperSeparator, StepperText, StepperTitle, StepperTrigger, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TagsInput, TagsInputClear, TagsInputInput, TagsInputItem, TagsInputItemDelete, TagsInputItemText, Text, Textarea, Timeline, TimelineConnector, TimelineContent, TimelineDescription, TimelineDot, TimelineHeader, TimelineItem, TimelineTime, TimelineTitle, TimelineTrack, Title, Toaster, Toggle, ToggleButton, ToggleButtonGroup, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, TypographyWeightMap, VStack, ZIndexContext, ZIndexProvider, Z_INDEX_LAYERS, alertVariants, badgeVariants, buttonVariants, cardVariants, cn, colors, createApiUploadHandler, createExpanderColumn, createRowActionsColumn, createS3PresignedUploadHandler, createSelectionColumn, createStore, createUploadThingUploadHandler, duration, easing, formatFileSize, gaps, getHighestBreakpoint, getLocaleDirection, getNextRovingIndex, gutters, isComponentSize, lazyLoad, navigationMenuTriggerStyle, radii, radius, resolveGap, resolveSpacing, resolveSpacingPixel, resolveWidth, responsiveMap, shadow, sidebarMenuButtonVariants, spacing, srOnlyStyles, textColors, theme_exports as theme, toast, toggleSizeStyles, toggleStyles, toggleVariantStyles, tokens, typography, unstyledButtonStyles, useBreakpoint, useButtonGroup, useCodeBlock, useCollator, useDirection, useFileUpload, useFormField, useLocale, useQuestionnaire, useResponsiveDialogContext, useRowContext, useSidebar, useSignaturePad, useTranslator, useUploadFile, useZIndex };
|
|
123
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarClose, ActionBarGroup, ActionBarItem, ActionBarSelection, ActionBarSeparator, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, AstryxField, AstryxFieldLabel, AstryxFieldStatus, AstryxGrid, Avatar, AvatarFallback, AvatarGroup, AvatarImage, AvatarStatusDot, BREAKPOINTS, Badge, BadgeOverflow, Blockquote, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, COMPONENT_SIZES, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Center, Checkbox, CircularProgress, Code, CodeBlock, CodeBlockContent, CodeBlockCopyButton, CodeBlockExpandButton, CodeBlockHeader, CodeBlockLanguage, CodeBlockTitle, CodeBlockWrapButton, Col, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CompareSlider, ComponentSpacingPresetMap, ComponentWidthPresetMap, ConfirmModal, Container, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, DATE_FORMAT_LONG, DATE_FORMAT_MONTH_ONLY, DATE_FORMAT_MONTH_YEAR, DATE_FORMAT_SHORT, DATE_FORMAT_SHORT_WITH_WEEKDAY, DATE_FORMAT_SHORT_WITH_YEAR, DATE_FORMAT_WEEKDAY_ONLY, DATE_FORMAT_WITH_WEEKDAY, DEFAULT_COMPONENT_SIZE, DataTable, DataTableColumnHeader, DataTableFacetedFilter, SingleDatePicker as DatePicker, RangeDatePicker as DateRangePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Divider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Dropdown, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editable, EditableArea, EditableCancel, EditableInput, EditablePreview, EditableSubmit, EditableToolbar, EditableTrigger, Empty, Empty as EmptyState, EmptyActions, EmptyDescription, EmptyImage, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FileUpload as FileDropzone, FileUploadRoot as FileUpload, FileUploadClear, FileUploadDropzone, FileUploadItem, FileUploadItemDelete, FileUploadItemMetadata, FileUploadItemPreview, FileUploadItemProgress, FileUploadList, FileUploadTrigger, FileUploader, FilterPopup, Flex, Form, FormCheckbox, FormControl, FormDatePicker, FormDescription, FormField, FormFileUpload, FormFileUploader, FormInput, FormItem, FormLabel, FormMessage, FormMultiSelect, FormNumberInput, FormRadio as FormRadioGroup, FormSelect, FormSimpleSelect, FormSwitch, FormTextarea, Gauge, Grid, GridItem, GridRoot, GridSpan, HStack, Heading, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, Icons, Input, InputClearButton, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InternationalizationContext, InternationalizationProvider, IssueIcon, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, Link, Marker, MarkerContent, MarkerIcon, Masonry, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Modal, MultiSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Paragraph, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PopupMenu, PriorityIcon, Progress, Questionnaire, QuestionnaireActions, QuestionnaireContent, QuestionnaireDescription, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, QuestionnaireSkip, QuestionnaireTitle, RadioGroup, RadioGroupItem, RangeDatePicker, Rating, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveDialog, ResponsiveDialogClose, ResponsiveDialogContent, ResponsiveDialogDescription, ResponsiveDialogFooter, ResponsiveDialogHeader, ResponsiveDialogTitle, ResponsiveDialogTrigger, Row, RowContext, ScrollArea, ScrollBar, Segmented, BaseSelect as Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SignaturePad, SignaturePadArea, SignaturePadClear, SignaturePadControls, SignaturePadGuide, SignaturePadPlaceholder, SignaturePadRedo, SignaturePadUndo, SingleDatePicker, Skeleton, Slider, Spinner, Stack, StackItem, Stat, StatDescription, StatHeader, StatIndicator, StatLabel, StatTrend, StatValue, StatusDot, Stepper, StepperContent, StepperDescription, StepperIndicator, StepperItem, StepperList, StepperNext, StepperPrev, StepperSeparator, StepperText, StepperTitle, StepperTrigger, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TagsInput, TagsInputClear, TagsInputInput, TagsInputItem, TagsInputItemDelete, TagsInputItemText, Text, Textarea, Timeline, TimelineConnector, TimelineContent, TimelineDescription, TimelineDot, TimelineHeader, TimelineItem, TimelineTime, TimelineTitle, TimelineTrack, Title, Toaster, Toggle, ToggleButton, ToggleButtonGroup, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, TypographyWeightMap, VStack, ZIndexContext, ZIndexProvider, Z_INDEX_LAYERS, alertVariants, badgeVariants, buttonVariants, cardVariants, cn, colors, createApiUploadHandler, createExpanderColumn, createRowActionsColumn, createS3PresignedUploadHandler, createSelectionColumn, createStore, createUploadThingUploadHandler, duration, easing, formatFileSize, gaps, getHighestBreakpoint, getLocaleDirection, getNextRovingIndex, gutters, isComponentSize, lazyLoad, navigationMenuTriggerStyle, radii, radius, resolveGap, resolveSpacing, resolveSpacingPixel, resolveWidth, responsiveMap, shadow, sidebarMenuButtonVariants, spacing, srOnlyStyles, textColors, theme_exports as theme, toast, toggleSizeStyles, toggleStyles, toggleVariantStyles, tokens, typography, unstyledButtonStyles, useBreakpoint, useButtonGroup, useCodeBlock, useCollator, useDirection, useFileUpload, useFormField, useLocale, useQuestionnaire, useResponsiveDialogContext, useRowContext, useSidebar, useSignaturePad, useTranslator, useUploadFile, useZIndex };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let node_fs = require("node:fs");
|
|
3
|
+
let node_module = require("node:module");
|
|
4
|
+
let node_path = require("node:path");
|
|
5
|
+
// src/stylex-config.ts
|
|
6
|
+
var extensions = [
|
|
7
|
+
"",
|
|
8
|
+
".js",
|
|
9
|
+
".ts",
|
|
10
|
+
".tsx",
|
|
11
|
+
".jsx",
|
|
12
|
+
".mjs",
|
|
13
|
+
".cjs"
|
|
14
|
+
];
|
|
15
|
+
function resolveStylexFile(importPath, sourceFilePath) {
|
|
16
|
+
const require$1 = (0, node_module.createRequire)(sourceFilePath);
|
|
17
|
+
for (const extension of extensions) try {
|
|
18
|
+
return require$1.resolve(importPath + extension);
|
|
19
|
+
} catch {}
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
function getCanonicalFilePath(filePath) {
|
|
23
|
+
let directory = (0, node_path.dirname)(filePath);
|
|
24
|
+
while (true) {
|
|
25
|
+
const manifest = (0, node_path.join)(directory, "package.json");
|
|
26
|
+
if ((0, node_fs.existsSync)(manifest)) {
|
|
27
|
+
const { name } = JSON.parse((0, node_fs.readFileSync)(manifest, "utf8"));
|
|
28
|
+
if (name) {
|
|
29
|
+
const packagePath = (0, node_path.relative)(directory, filePath).split(node_path.sep).join("/");
|
|
30
|
+
if (name === "@vlrc-fe/components" && /^dist\/theme\/tokens\.stylex\.[cm]?js$/.test(packagePath)) return `${name}:src/theme/tokens.stylex.ts`;
|
|
31
|
+
return `${name}:${packagePath}`;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
const parent = (0, node_path.dirname)(directory);
|
|
35
|
+
if (parent === directory) return filePath;
|
|
36
|
+
directory = parent;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/** StyleX compiler options for a Vite app consuming the precompiled components. */
|
|
40
|
+
function vlrcStylexOptions(rootDir) {
|
|
41
|
+
return {
|
|
42
|
+
useCSSLayers: { before: [
|
|
43
|
+
"reset",
|
|
44
|
+
"astryx-base",
|
|
45
|
+
"astryx-theme",
|
|
46
|
+
"vlrc",
|
|
47
|
+
"product"
|
|
48
|
+
] },
|
|
49
|
+
unstable_moduleResolution: {
|
|
50
|
+
type: "custom",
|
|
51
|
+
filePathResolver: (importPath, sourceFilePath) => resolveStylexFile(importPath, (0, node_path.resolve)(rootDir, sourceFilePath)),
|
|
52
|
+
getCanonicalFilePath
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.vlrcStylexOptions = vlrcStylexOptions;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare function getCanonicalFilePath(filePath: string): string;
|
|
2
|
+
/** StyleX compiler options for a Vite app consuming the precompiled components. */
|
|
3
|
+
export declare function vlrcStylexOptions(rootDir: string): {
|
|
4
|
+
useCSSLayers: {
|
|
5
|
+
before: string[];
|
|
6
|
+
};
|
|
7
|
+
unstable_moduleResolution: {
|
|
8
|
+
type: 'custom';
|
|
9
|
+
filePathResolver: (importPath: string, sourceFilePath: string) => string | null;
|
|
10
|
+
getCanonicalFilePath: typeof getCanonicalFilePath;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=stylex-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stylex-config.d.ts","sourceRoot":"","sources":["../src/stylex-config.ts"],"names":[],"mappings":"AAsBA,iBAAS,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAsBtD;AAED,mFAAmF;AACnF,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM;;QAE7B,MAAM;;;cAEd,QAAQ;uCACiB,MAAM,kBAAkB,MAAM;;;EAKlE"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import { dirname, join, relative, resolve, sep } from "node:path";
|
|
4
|
+
// src/stylex-config.ts
|
|
5
|
+
var extensions = [
|
|
6
|
+
"",
|
|
7
|
+
".js",
|
|
8
|
+
".ts",
|
|
9
|
+
".tsx",
|
|
10
|
+
".jsx",
|
|
11
|
+
".mjs",
|
|
12
|
+
".cjs"
|
|
13
|
+
];
|
|
14
|
+
function resolveStylexFile(importPath, sourceFilePath) {
|
|
15
|
+
const require = createRequire(sourceFilePath);
|
|
16
|
+
for (const extension of extensions) try {
|
|
17
|
+
return require.resolve(importPath + extension);
|
|
18
|
+
} catch {}
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
function getCanonicalFilePath(filePath) {
|
|
22
|
+
let directory = dirname(filePath);
|
|
23
|
+
while (true) {
|
|
24
|
+
const manifest = join(directory, "package.json");
|
|
25
|
+
if (existsSync(manifest)) {
|
|
26
|
+
const { name } = JSON.parse(readFileSync(manifest, "utf8"));
|
|
27
|
+
if (name) {
|
|
28
|
+
const packagePath = relative(directory, filePath).split(sep).join("/");
|
|
29
|
+
if (name === "@vlrc-fe/components" && /^dist\/theme\/tokens\.stylex\.[cm]?js$/.test(packagePath)) return `${name}:src/theme/tokens.stylex.ts`;
|
|
30
|
+
return `${name}:${packagePath}`;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
const parent = dirname(directory);
|
|
34
|
+
if (parent === directory) return filePath;
|
|
35
|
+
directory = parent;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
/** StyleX compiler options for a Vite app consuming the precompiled components. */
|
|
39
|
+
function vlrcStylexOptions(rootDir) {
|
|
40
|
+
return {
|
|
41
|
+
useCSSLayers: { before: [
|
|
42
|
+
"reset",
|
|
43
|
+
"astryx-base",
|
|
44
|
+
"astryx-theme",
|
|
45
|
+
"vlrc",
|
|
46
|
+
"product"
|
|
47
|
+
] },
|
|
48
|
+
unstable_moduleResolution: {
|
|
49
|
+
type: "custom",
|
|
50
|
+
filePathResolver: (importPath, sourceFilePath) => resolveStylexFile(importPath, resolve(rootDir, sourceFilePath)),
|
|
51
|
+
getCanonicalFilePath
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export { vlrcStylexOptions };
|