@vlrc-fe/components 3.1.0 → 3.2.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.
Files changed (84) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +33 -22
  3. package/dist/DataTable/DataTable.cjs +8 -4
  4. package/dist/DataTable/DataTable.d.ts +1 -1
  5. package/dist/DataTable/DataTable.d.ts.map +1 -1
  6. package/dist/DataTable/DataTable.js +8 -4
  7. package/dist/DataTable/components/DataTablePagination.cjs +48 -174
  8. package/dist/DataTable/components/DataTablePagination.d.ts +2 -1
  9. package/dist/DataTable/components/DataTablePagination.d.ts.map +1 -1
  10. package/dist/DataTable/components/DataTablePagination.js +48 -174
  11. package/dist/DataTable/components/DataTableTable.cjs +43 -79
  12. package/dist/DataTable/components/DataTableTable.d.ts +2 -1
  13. package/dist/DataTable/components/DataTableTable.d.ts.map +1 -1
  14. package/dist/DataTable/components/DataTableTable.js +43 -79
  15. package/dist/DataTable/components/DataTableToolbar.cjs +25 -29
  16. package/dist/DataTable/components/DataTableToolbar.d.ts +2 -1
  17. package/dist/DataTable/components/DataTableToolbar.d.ts.map +1 -1
  18. package/dist/DataTable/components/DataTableToolbar.js +25 -29
  19. package/dist/DataTable/types.d.ts +3 -0
  20. package/dist/DataTable/types.d.ts.map +1 -1
  21. package/dist/FilterPopup/FilterPopup.cjs +289 -0
  22. package/dist/FilterPopup/FilterPopup.d.ts +21 -0
  23. package/dist/FilterPopup/FilterPopup.d.ts.map +1 -0
  24. package/dist/FilterPopup/FilterPopup.js +287 -0
  25. package/dist/FilterPopup/assets/Divider.svg.cjs +3 -0
  26. package/dist/FilterPopup/assets/Divider.svg.js +3 -0
  27. package/dist/FilterPopup/assets/IconCheck.svg.cjs +3 -0
  28. package/dist/FilterPopup/assets/IconCheck.svg.js +3 -0
  29. package/dist/FilterPopup/assets/IconClose.svg.cjs +3 -0
  30. package/dist/FilterPopup/assets/IconClose.svg.js +3 -0
  31. package/dist/FilterPopup/assets/IconSearch.svg.cjs +3 -0
  32. package/dist/FilterPopup/assets/IconSearch.svg.js +3 -0
  33. package/dist/FilterPopup/index.d.ts +3 -0
  34. package/dist/FilterPopup/index.d.ts.map +1 -0
  35. package/dist/FilterPopup/styles.cjs +151 -0
  36. package/dist/FilterPopup/styles.d.ts +134 -0
  37. package/dist/FilterPopup/styles.d.ts.map +1 -0
  38. package/dist/FilterPopup/styles.js +149 -0
  39. package/dist/FilterPopup/types.d.ts +13 -0
  40. package/dist/FilterPopup/types.d.ts.map +1 -0
  41. package/dist/Form/Form.cjs +4 -2
  42. package/dist/Form/Form.d.ts.map +1 -1
  43. package/dist/Form/Form.js +4 -2
  44. package/dist/Icons/Icons.cjs +4 -0
  45. package/dist/Icons/Icons.d.ts +4 -0
  46. package/dist/Icons/Icons.d.ts.map +1 -1
  47. package/dist/Icons/Icons.js +5 -1
  48. package/dist/Icons/JiraIcons.cjs +99 -0
  49. package/dist/Icons/JiraIcons.js +100 -2
  50. package/dist/Icons/index.cjs +11 -0
  51. package/dist/Icons/index.js +3 -0
  52. package/dist/Select/BaseSelect.cjs +8 -4
  53. package/dist/Select/BaseSelect.d.ts.map +1 -1
  54. package/dist/Select/BaseSelect.js +8 -4
  55. package/dist/Select/type.d.ts +1 -0
  56. package/dist/Select/type.d.ts.map +1 -1
  57. package/dist/assets/stylex.css +174 -12
  58. package/dist/index.cjs +2 -0
  59. package/dist/index.d.ts +2 -0
  60. package/dist/index.d.ts.map +1 -1
  61. package/dist/index.js +2 -1
  62. package/dist/stylex-config.cjs +56 -0
  63. package/dist/stylex-config.d.ts +14 -0
  64. package/dist/stylex-config.d.ts.map +1 -0
  65. package/dist/stylex-config.js +55 -0
  66. package/dist/theme/tokens.stylex.cjs +24 -23
  67. package/dist/theme/tokens.stylex.d.ts +48 -48
  68. package/dist/theme/tokens.stylex.d.ts.map +1 -1
  69. package/dist/theme/tokens.stylex.js +24 -23
  70. package/dist/theme.css +179 -13
  71. package/dist/ui/button.cjs +3 -3
  72. package/dist/ui/button.js +3 -3
  73. package/dist/ui/checkbox.cjs +2 -2
  74. package/dist/ui/checkbox.d.ts +3 -2
  75. package/dist/ui/checkbox.d.ts.map +1 -1
  76. package/dist/ui/checkbox.js +2 -2
  77. package/dist/ui/popover.cjs +6 -1
  78. package/dist/ui/popover.d.ts +3 -1
  79. package/dist/ui/popover.d.ts.map +1 -1
  80. package/dist/ui/popover.js +6 -1
  81. package/dist/ui/scroll-area.cjs +4 -2
  82. package/dist/ui/scroll-area.d.ts.map +1 -1
  83. package/dist/ui/scroll-area.js +4 -2
  84. package/package.json +7 -2
@@ -0,0 +1,287 @@
1
+ import { Icons } from "../Icons/Icons.js";
2
+ import { Text } from "../Typography/Text.js";
3
+ import { Button } from "../ui/button.js";
4
+ import { Box } from "../layout/Box.js";
5
+ import { Popover, PopoverContent, PopoverTrigger } from "../ui/popover.js";
6
+ import { Checkbox } from "../ui/checkbox.js";
7
+ import { Input } from "../ui/input.js";
8
+ import { Tag } from "../Tag/Tag.js";
9
+ import Divider_default from "./assets/Divider.svg.js";
10
+ import IconClose_default from "./assets/IconClose.svg.js";
11
+ import IconSearch_default from "./assets/IconSearch.svg.js";
12
+ import IconCheck_default from "./assets/IconCheck.svg.js";
13
+ import { styles } from "./styles.js";
14
+ import * as stylex from "@stylexjs/stylex";
15
+ import { jsx, jsxs } from "react/jsx-runtime";
16
+ import { useId, useState } from "react";
17
+ import { c } from "react/compiler-runtime";
18
+ // src/FilterPopup/FilterPopup.tsx
19
+ var defaultCopy = {
20
+ label: "Filter",
21
+ search: "Search",
22
+ clear: "Clear",
23
+ clearAll: "Clear All",
24
+ empty: "No options found",
25
+ resultCount: (visible, total) => `${visible} of ${total}`
26
+ };
27
+ function FilterPopup(t0) {
28
+ const $ = c(29);
29
+ const { items, value, defaultValue, onChange, trigger, disabled, copy } = t0;
30
+ let t1;
31
+ if ($[0] !== defaultValue) {
32
+ t1 = defaultValue ?? {};
33
+ $[0] = defaultValue;
34
+ $[1] = t1;
35
+ } else t1 = $[1];
36
+ const [selection, setSelection] = useState(t1);
37
+ let t2;
38
+ if ($[2] !== onChange || $[3] !== value) {
39
+ t2 = (next) => {
40
+ if (value === void 0) setSelection(next);
41
+ onChange?.(next);
42
+ };
43
+ $[2] = onChange;
44
+ $[3] = value;
45
+ $[4] = t2;
46
+ } else t2 = $[4];
47
+ const handleChange = t2;
48
+ let t3;
49
+ if ($[5] !== copy) {
50
+ t3 = {
51
+ ...defaultCopy,
52
+ ...copy
53
+ };
54
+ $[5] = copy;
55
+ $[6] = t3;
56
+ } else t3 = $[6];
57
+ const labels = t3;
58
+ const selected = value ?? selection;
59
+ let t4;
60
+ if ($[7] !== selected) {
61
+ t4 = Object.values(selected).reduce(_temp, 0);
62
+ $[7] = selected;
63
+ $[8] = t4;
64
+ } else t4 = $[8];
65
+ const count = t4;
66
+ let t5;
67
+ if ($[9] !== count || $[10] !== disabled || $[11] !== labels.label || $[12] !== trigger) {
68
+ t5 = () => trigger ?? /* @__PURE__ */ jsxs(Button, {
69
+ variant: "outline",
70
+ size: "sm",
71
+ disabled,
72
+ prefix: /* @__PURE__ */ jsx(Icons.Filter, { size: 16 }),
73
+ children: [labels.label, count > 0 && /* @__PURE__ */ jsx(Tag, {
74
+ size: "sm",
75
+ label: String(count)
76
+ })]
77
+ });
78
+ $[9] = count;
79
+ $[10] = disabled;
80
+ $[11] = labels.label;
81
+ $[12] = trigger;
82
+ $[13] = t5;
83
+ } else t5 = $[13];
84
+ const renderTrigger = t5;
85
+ let t6;
86
+ if ($[14] !== renderTrigger) {
87
+ t6 = renderTrigger();
88
+ $[14] = renderTrigger;
89
+ $[15] = t6;
90
+ } else t6 = $[15];
91
+ let t7;
92
+ if ($[16] !== t6) {
93
+ t7 = /* @__PURE__ */ jsx(PopoverTrigger, {
94
+ asChild: true,
95
+ children: t6
96
+ });
97
+ $[16] = t6;
98
+ $[17] = t7;
99
+ } else t7 = $[17];
100
+ let t8;
101
+ if ($[18] !== handleChange || $[19] !== items || $[20] !== labels || $[21] !== selected) {
102
+ t8 = /* @__PURE__ */ jsx(FilterPopupContent, {
103
+ items,
104
+ selection: selected,
105
+ onChange: handleChange,
106
+ labels
107
+ });
108
+ $[18] = handleChange;
109
+ $[19] = items;
110
+ $[20] = labels;
111
+ $[21] = selected;
112
+ $[22] = t8;
113
+ } else t8 = $[22];
114
+ let t9;
115
+ if ($[23] !== labels.label || $[24] !== t8) {
116
+ t9 = /* @__PURE__ */ jsx(PopoverContent, {
117
+ align: "start",
118
+ "aria-label": labels.label,
119
+ sx: styles.popup,
120
+ children: t8
121
+ });
122
+ $[23] = labels.label;
123
+ $[24] = t8;
124
+ $[25] = t9;
125
+ } else t9 = $[25];
126
+ let t10;
127
+ if ($[26] !== t7 || $[27] !== t9) {
128
+ t10 = /* @__PURE__ */ jsxs(Popover, { children: [t7, t9] });
129
+ $[26] = t7;
130
+ $[27] = t9;
131
+ $[28] = t10;
132
+ } else t10 = $[28];
133
+ return t10;
134
+ }
135
+ function _temp(total, values) {
136
+ return total + (values?.length ?? 0);
137
+ }
138
+ function FilterPopupContent({ items, selection, onChange, labels }) {
139
+ const id = useId();
140
+ const [activeKey, setActiveKey] = useState(items[0]?.key);
141
+ const [search, setSearch] = useState("");
142
+ const category = items.find((item) => item.key === activeKey) ?? items[0];
143
+ const options = category?.options ?? [];
144
+ const selected = (category && selection[category.key]) ?? [];
145
+ const query = search.trim().toLocaleLowerCase();
146
+ const visibleOptions = options.filter((option) => option.label.toLocaleLowerCase().includes(query));
147
+ const changeCategory = (key) => {
148
+ setActiveKey(key);
149
+ setSearch("");
150
+ };
151
+ const updateCategory = (nextValues) => {
152
+ if (!category) return;
153
+ const { [category.key]: previousValues, ...otherCategories } = selection;
154
+ if (!previousValues?.length && !nextValues.length) return;
155
+ onChange(nextValues.length ? {
156
+ ...otherCategories,
157
+ [category.key]: nextValues
158
+ } : otherCategories);
159
+ };
160
+ const renderCategory = (item_0) => {
161
+ const count = selection[item_0.key]?.length ?? 0;
162
+ const active = item_0.key === category?.key;
163
+ return /* @__PURE__ */ jsxs(Button, {
164
+ variant: "ghost",
165
+ size: "sm",
166
+ "aria-pressed": active,
167
+ "aria-controls": `${id}-options`,
168
+ sx: [styles.category, active && styles.activeCategory],
169
+ onClick: () => changeCategory(item_0.key),
170
+ children: [/* @__PURE__ */ jsx(Text, {
171
+ size: "md",
172
+ ellipsis: true,
173
+ sx: styles.categoryLabel,
174
+ children: item_0.label
175
+ }), count > 0 && /* @__PURE__ */ jsx(Text, {
176
+ sx: styles.count,
177
+ children: count
178
+ })]
179
+ }, item_0.key);
180
+ };
181
+ const renderOption = (option_0, index) => {
182
+ const checked = selected.includes(option_0.value);
183
+ const optionId = `${id}-option-${index}`;
184
+ return /* @__PURE__ */ jsxs(Box, {
185
+ as: "label",
186
+ htmlFor: optionId,
187
+ sx: styles.option,
188
+ children: [
189
+ /* @__PURE__ */ jsx(Checkbox, {
190
+ id: optionId,
191
+ "aria-label": option_0.label,
192
+ size: "lg",
193
+ checked,
194
+ sx: [styles.checkbox, checked && styles.checkboxSelected],
195
+ indicator: /* @__PURE__ */ jsx("img", {
196
+ src: IconCheck_default,
197
+ alt: ""
198
+ }),
199
+ onCheckedChange: (next) => updateCategory(next === true ? [...selected, option_0.value] : selected.filter((value) => value !== option_0.value))
200
+ }),
201
+ option_0.icon,
202
+ /* @__PURE__ */ jsx(Text, {
203
+ size: "md",
204
+ type: checked ? "default" : "secondary",
205
+ ellipsis: true,
206
+ children: option_0.label
207
+ })
208
+ ]
209
+ }, option_0.value);
210
+ };
211
+ const renderClear = (label, onClick, disabled) => /* @__PURE__ */ jsxs(Button, {
212
+ variant: "ghost",
213
+ size: "xxs",
214
+ sx: styles.footerAction,
215
+ onClick,
216
+ disabled,
217
+ children: [/* @__PURE__ */ jsx("img", {
218
+ src: IconClose_default,
219
+ alt: "",
220
+ ...stylex.props(styles.closeIcon)
221
+ }), label]
222
+ });
223
+ return /* @__PURE__ */ jsxs(Box, {
224
+ sx: styles.layout,
225
+ children: [
226
+ /* @__PURE__ */ jsxs(Box, {
227
+ sx: styles.column,
228
+ children: [/* @__PURE__ */ jsx(Box, {
229
+ sx: styles.categories,
230
+ children: items.map(renderCategory)
231
+ }), renderClear(labels.clearAll, () => onChange({}), !Object.values(selection).some((values) => values?.length))]
232
+ }),
233
+ /* @__PURE__ */ jsx(Box, {
234
+ sx: styles.divider,
235
+ "aria-hidden": "true",
236
+ children: /* @__PURE__ */ jsx("img", {
237
+ src: Divider_default,
238
+ alt: "",
239
+ ...stylex.props(styles.dividerImage)
240
+ })
241
+ }),
242
+ /* @__PURE__ */ jsxs(Box, {
243
+ as: "section",
244
+ sx: styles.column,
245
+ id: `${id}-options`,
246
+ "aria-label": category?.label,
247
+ children: [/* @__PURE__ */ jsxs(Box, {
248
+ sx: styles.optionsWithSearch,
249
+ children: [/* @__PURE__ */ jsx(Input, {
250
+ size: "sm",
251
+ type: "search",
252
+ wrapperSx: styles.search,
253
+ "aria-label": labels.search,
254
+ placeholder: labels.search,
255
+ prefixIcon: /* @__PURE__ */ jsx("img", {
256
+ src: IconSearch_default,
257
+ alt: ""
258
+ }),
259
+ value: search,
260
+ onChange: (event) => setSearch(event.target.value)
261
+ }), /* @__PURE__ */ jsxs(Box, {
262
+ sx: styles.options,
263
+ children: [visibleOptions.map(renderOption), !visibleOptions.length && /* @__PURE__ */ jsx(Box, {
264
+ sx: styles.empty,
265
+ children: /* @__PURE__ */ jsx(Text, {
266
+ type: "secondary",
267
+ size: "sm",
268
+ children: labels.empty
269
+ })
270
+ })]
271
+ }, category?.key)]
272
+ }), /* @__PURE__ */ jsxs(Box, {
273
+ sx: styles.footer,
274
+ children: [renderClear(labels.clear, () => updateCategory([]), !selected.length), /* @__PURE__ */ jsx(Box, {
275
+ as: "output",
276
+ children: /* @__PURE__ */ jsx(Text, {
277
+ type: "secondary",
278
+ size: "sm",
279
+ children: labels.resultCount(visibleOptions.length, options.length)
280
+ })
281
+ })]
282
+ })]
283
+ })
284
+ ]
285
+ });
286
+ }
287
+ export { FilterPopup };
@@ -0,0 +1,3 @@
1
+ // src/FilterPopup/assets/Divider.svg
2
+ var Divider_default = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='320'%20height='8'%20viewBox='0%200%20320%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Divider'%3e%3cline%20id='Line%201'%20y1='3.5'%20x2='320'%20y2='3.5'%20stroke='%23EFF0F2'/%3e%3c/g%3e%3c/svg%3e";
3
+ exports.default = Divider_default;
@@ -0,0 +1,3 @@
1
+ // src/FilterPopup/assets/Divider.svg
2
+ var Divider_default = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='320'%20height='8'%20viewBox='0%200%20320%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Divider'%3e%3cline%20id='Line%201'%20y1='3.5'%20x2='320'%20y2='3.5'%20stroke='%23EFF0F2'/%3e%3c/g%3e%3c/svg%3e";
3
+ export { Divider_default as default };
@@ -0,0 +1,3 @@
1
+ // src/FilterPopup/assets/IconCheck.svg
2
+ var IconCheck_default = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Icon/Check'%3e%3cpath%20id='vector'%20d='M5.25001%2010.5C5.24943%2010.5%205.24885%2010.5%205.24768%2010.5C5.09193%2010.4994%204.94376%2010.437%204.83468%2010.3262L2.50135%207.95666C2.27501%207.72683%202.27793%207.35758%202.50776%207.13183C2.7376%206.90608%203.10626%206.9084%203.33259%207.13824L5.25351%209.0889L10.6715%203.67149C10.8996%203.44341%2011.2683%203.44341%2011.4963%203.67149C11.7244%203.89899%2011.7244%204.26882%2011.4963%204.49632L5.66301%2010.3297C5.55334%2010.4387%205.4046%2010.5%205.25001%2010.5Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e";
3
+ exports.default = IconCheck_default;
@@ -0,0 +1,3 @@
1
+ // src/FilterPopup/assets/IconCheck.svg
2
+ var IconCheck_default = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Icon/Check'%3e%3cpath%20id='vector'%20d='M5.25001%2010.5C5.24943%2010.5%205.24885%2010.5%205.24768%2010.5C5.09193%2010.4994%204.94376%2010.437%204.83468%2010.3262L2.50135%207.95666C2.27501%207.72683%202.27793%207.35758%202.50776%207.13183C2.7376%206.90608%203.10626%206.9084%203.33259%207.13824L5.25351%209.0889L10.6715%203.67149C10.8996%203.44341%2011.2683%203.44341%2011.4963%203.67149C11.7244%203.89899%2011.7244%204.26882%2011.4963%204.49632L5.66301%2010.3297C5.55334%2010.4387%205.4046%2010.5%205.25001%2010.5Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e";
3
+ export { IconCheck_default as default };
@@ -0,0 +1,3 @@
1
+ // src/FilterPopup/assets/IconClose.svg
2
+ var IconClose_default = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Icon/Close'%3e%3cpath%20id='vector'%20d='M5.19841%205.19841C5.46296%204.93386%205.89188%204.93386%206.15643%205.19841L12%2011.042L17.8436%205.19841C18.1081%204.93386%2018.537%204.93386%2018.8016%205.19841C19.0661%205.46296%2019.0661%205.89188%2018.8016%206.15643L12.958%2012L18.8016%2017.8436C19.0661%2018.1081%2019.0661%2018.537%2018.8016%2018.8016C18.537%2019.0661%2018.1081%2019.0661%2017.8436%2018.8016L12%2012.958L6.15643%2018.8016C5.89188%2019.0661%205.46296%2019.0661%205.19841%2018.8016C4.93386%2018.537%204.93386%2018.1081%205.19841%2017.8436L11.042%2012L5.19841%206.15643C4.93386%205.89188%204.93386%205.46296%205.19841%205.19841Z'%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23020303'/%3e%3c/g%3e%3c/svg%3e";
3
+ exports.default = IconClose_default;
@@ -0,0 +1,3 @@
1
+ // src/FilterPopup/assets/IconClose.svg
2
+ var IconClose_default = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Icon/Close'%3e%3cpath%20id='vector'%20d='M5.19841%205.19841C5.46296%204.93386%205.89188%204.93386%206.15643%205.19841L12%2011.042L17.8436%205.19841C18.1081%204.93386%2018.537%204.93386%2018.8016%205.19841C19.0661%205.46296%2019.0661%205.89188%2018.8016%206.15643L12.958%2012L18.8016%2017.8436C19.0661%2018.1081%2019.0661%2018.537%2018.8016%2018.8016C18.537%2019.0661%2018.1081%2019.0661%2017.8436%2018.8016L12%2012.958L6.15643%2018.8016C5.89188%2019.0661%205.46296%2019.0661%205.19841%2018.8016C4.93386%2018.537%204.93386%2018.1081%205.19841%2017.8436L11.042%2012L5.19841%206.15643C4.93386%205.89188%204.93386%205.46296%205.19841%205.19841Z'%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23020303'/%3e%3c/g%3e%3c/svg%3e";
3
+ export { IconClose_default as default };
@@ -0,0 +1,3 @@
1
+ // src/FilterPopup/assets/IconSearch.svg
2
+ var IconSearch_default = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Icon/Search'%3e%3cpath%20id='vector'%20d='M1.33333%207.37985C1.33333%204.04045%204.04045%201.33333%207.37985%201.33333C10.7193%201.33333%2013.4264%204.04045%2013.4264%207.37985C13.4264%208.88213%2012.8785%2010.2565%2011.9717%2011.3139L14.5304%2013.8727C14.7121%2014.0543%2014.7121%2014.3488%2014.5304%2014.5304C14.3488%2014.7121%2014.0543%2014.7121%2013.8727%2014.5304L11.3139%2011.9717C10.2565%2012.8785%208.88213%2013.4264%207.37985%2013.4264C4.04045%2013.4264%201.33333%2010.7193%201.33333%207.37985ZM7.37985%202.26357C4.5542%202.26357%202.26357%204.5542%202.26357%207.37985C2.26357%2010.2055%204.5542%2012.4961%207.37985%2012.4961C10.2055%2012.4961%2012.4961%2010.2055%2012.4961%207.37985C12.4961%204.5542%2010.2055%202.26357%207.37985%202.26357Z'%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%2399A4B0'/%3e%3c/g%3e%3c/svg%3e";
3
+ exports.default = IconSearch_default;
@@ -0,0 +1,3 @@
1
+ // src/FilterPopup/assets/IconSearch.svg
2
+ var IconSearch_default = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Icon/Search'%3e%3cpath%20id='vector'%20d='M1.33333%207.37985C1.33333%204.04045%204.04045%201.33333%207.37985%201.33333C10.7193%201.33333%2013.4264%204.04045%2013.4264%207.37985C13.4264%208.88213%2012.8785%2010.2565%2011.9717%2011.3139L14.5304%2013.8727C14.7121%2014.0543%2014.7121%2014.3488%2014.5304%2014.5304C14.3488%2014.7121%2014.0543%2014.7121%2013.8727%2014.5304L11.3139%2011.9717C10.2565%2012.8785%208.88213%2013.4264%207.37985%2013.4264C4.04045%2013.4264%201.33333%2010.7193%201.33333%207.37985ZM7.37985%202.26357C4.5542%202.26357%202.26357%204.5542%202.26357%207.37985C2.26357%2010.2055%204.5542%2012.4961%207.37985%2012.4961C10.2055%2012.4961%2012.4961%2010.2055%2012.4961%207.37985C12.4961%204.5542%2010.2055%202.26357%207.37985%202.26357Z'%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%2399A4B0'/%3e%3c/g%3e%3c/svg%3e";
3
+ export { IconSearch_default as default };
@@ -0,0 +1,3 @@
1
+ export { FilterPopup } from './FilterPopup';
2
+ export type { FilterPopupCategory, FilterPopupOption, FilterPopupSelection } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FilterPopup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,151 @@
1
+ const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
2
+ let _stylexjs_stylex = require("@stylexjs/stylex");
3
+ _stylexjs_stylex = require_runtime.__toESM(_stylexjs_stylex, 1);
4
+ // src/FilterPopup/styles.ts
5
+ var styles = {
6
+ popup: {
7
+ kB7OPa: "x9f619",
8
+ kzqmXN: "x64frv8",
9
+ kMv6JI: "x1o9apwc",
10
+ ks0D6T: "xuhc1l6",
11
+ kskxy: "xu39rbg",
12
+ kmVPX3: "x1g7u2xf",
13
+ kaIpWk: "x1ez7q3a",
14
+ kGVxlE: "x15wanwk",
15
+ kORKVm: "x1odjw0f",
16
+ kKVMdj: "x1a5igra",
17
+ $$css: true
18
+ },
19
+ layout: {
20
+ k1xSpc: "xrvj5dj",
21
+ kumcoG: "x1laftvf",
22
+ k1C7PZ: "xguee2a",
23
+ kGNEyG: "x7a106z",
24
+ kDKsTI: "x1tx6lya",
25
+ $$css: true
26
+ },
27
+ divider: {
28
+ kVAEAm: "x1n2onr6",
29
+ kSGwAc: "xkh2ocl",
30
+ kVQacm: "xb3r6kr",
31
+ $$css: true
32
+ },
33
+ dividerImage: {
34
+ kVAEAm: "x10l6tqk",
35
+ k87sOh: "xwa60dl",
36
+ kbCHJM: "x1nrll8i",
37
+ k3aq6I: "xvxagb8",
38
+ ks0D6T: "x1x1rfll",
39
+ $$css: true
40
+ },
41
+ column: {
42
+ k7Eaqz: "xeuugli",
43
+ k1xSpc: "xrvj5dj",
44
+ k9llMU: "x1h51kgi",
45
+ kOIVth: "x1m5ztt4",
46
+ $$css: true
47
+ },
48
+ categories: {
49
+ k1xSpc: "x78zum5",
50
+ kXwgrk: "xdt5ytf",
51
+ $$css: true
52
+ },
53
+ category: {
54
+ kjj79g: "xl56j7k",
55
+ kVAEAm: "x1n2onr6",
56
+ k7Eaqz: "xeuugli",
57
+ kAzted: "x1p3atzf xgt7kqx",
58
+ kg3NbH: "x7ai2fz",
59
+ k63SB2: "xo1l8bm",
60
+ $$css: true
61
+ },
62
+ categoryLabel: {
63
+ kUk6DE: "x98rzlu",
64
+ k7Eaqz: "xeuugli",
65
+ k9WMMc: "x2b8uid",
66
+ $$css: true
67
+ },
68
+ activeCategory: {
69
+ kWkggS: "x1p8vxlw",
70
+ $$css: true
71
+ },
72
+ count: {
73
+ k7Eaqz: "x1obl2fl",
74
+ kg3NbH: "xim7yig",
75
+ kMzoRj: "xmkeg23",
76
+ ksu8eU: "x1y0btm7",
77
+ kVAM5u: "xb30jbz",
78
+ kaIpWk: "xqfady0",
79
+ kWkggS: "x123ixkk",
80
+ k9WMMc: "x2b8uid",
81
+ kGuDYH: "x2ohwh0",
82
+ kLWn49: "x1jo673t",
83
+ $$css: true
84
+ },
85
+ optionsWithSearch: {
86
+ k1xSpc: "xrvj5dj",
87
+ kOIVth: "x1m5ztt4",
88
+ kAzted: "x2lwn1j",
89
+ $$css: true
90
+ },
91
+ search: {
92
+ kWkggS: "x123ixkk",
93
+ kGVxlE: "x4qz2uc",
94
+ $$css: true
95
+ },
96
+ options: {
97
+ kAzted: "x1ymur96",
98
+ kskxy: "x1mjfrbz",
99
+ kORKVm: "x1odjw0f",
100
+ k5wCbM: "x1597r2g",
101
+ $$css: true
102
+ },
103
+ option: {
104
+ k1xSpc: "x78zum5",
105
+ kGNEyG: "x6s0dn4",
106
+ kOIVth: "x1m5ztt4",
107
+ kAzted: "x1p3atzf xgt7kqx",
108
+ kg3NbH: "x7ai2fz",
109
+ kaIpWk: "x1ch3zq1",
110
+ kkrTdU: "x1ypdohk",
111
+ kGzVvX: "x1ukakyg",
112
+ $$css: true
113
+ },
114
+ checkbox: {
115
+ kWkggS: "x123ixkk",
116
+ kVAM5u: "xb30jbz",
117
+ kaIpWk: "xqfady0",
118
+ kGVxlE: "x4qz2uc",
119
+ $$css: true
120
+ },
121
+ checkboxSelected: {
122
+ kWkggS: "x1skizrm",
123
+ kVAM5u: "x1j35chg",
124
+ $$css: true
125
+ },
126
+ footer: {
127
+ k1xSpc: "x78zum5",
128
+ kwnvtZ: "x1a02dak",
129
+ kGNEyG: "x6s0dn4",
130
+ kjj79g: "x1qughib",
131
+ kg3NbH: "xco5wwd",
132
+ kag1fF: "x15nl2py",
133
+ $$css: true
134
+ },
135
+ footerAction: {
136
+ kFhvOy: "x1lqcxt8",
137
+ kAzted: "xwz81cq xgt7kqx",
138
+ $$css: true
139
+ },
140
+ closeIcon: {
141
+ kmuXW: "x2lah0s",
142
+ kzqmXN: "x1xvt488",
143
+ kZKoxP: "xf08kfj",
144
+ $$css: true
145
+ },
146
+ empty: {
147
+ kmVPX3: "x1g7u2xf",
148
+ $$css: true
149
+ }
150
+ };
151
+ exports.styles = styles;
@@ -0,0 +1,134 @@
1
+ import * as stylex from '@stylexjs/stylex';
2
+ export declare const styles: Readonly<{
3
+ readonly popup: Readonly<{
4
+ readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
5
+ readonly width: stylex.StyleXClassNameFor<"width", "34.375rem">;
6
+ readonly fontFamily: stylex.StyleXClassNameFor<"fontFamily", "var(--font-family-body, system-ui, sans-serif)">;
7
+ readonly maxWidth: stylex.StyleXClassNameFor<"maxWidth", "var(--radix-popover-content-available-width)">;
8
+ readonly maxHeight: stylex.StyleXClassNameFor<"maxHeight", "var(--radix-popover-content-available-height)">;
9
+ readonly padding: stylex.StyleXClassNameFor<"padding", string>;
10
+ readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
11
+ readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", string>;
12
+ readonly overflowY: stylex.StyleXClassNameFor<"overflowY", "auto">;
13
+ readonly animationName: stylex.StyleXClassNameFor<"animationName", "none">;
14
+ }>;
15
+ readonly layout: Readonly<{
16
+ readonly display: stylex.StyleXClassNameFor<"display", "grid">;
17
+ readonly gridTemplateColumns: stylex.StyleXClassNameFor<"gridTemplateColumns", "minmax(0, 200fr) 1px minmax(0, 294fr)">;
18
+ readonly columnGap: stylex.StyleXClassNameFor<"columnGap", string>;
19
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "start">;
20
+ readonly '@media (max-width: 37rem)': stylex.StyleXClassNameFor<"@media (max-width: 37rem)", {
21
+ readonly columnGap: stylex.StyleXVar<string>;
22
+ }>;
23
+ }>;
24
+ readonly divider: Readonly<{
25
+ readonly position: stylex.StyleXClassNameFor<"position", "relative">;
26
+ readonly alignSelf: stylex.StyleXClassNameFor<"alignSelf", "stretch">;
27
+ readonly overflow: stylex.StyleXClassNameFor<"overflow", "hidden">;
28
+ }>;
29
+ readonly dividerImage: Readonly<{
30
+ readonly position: stylex.StyleXClassNameFor<"position", "absolute">;
31
+ readonly top: stylex.StyleXClassNameFor<"top", "50%">;
32
+ readonly left: stylex.StyleXClassNameFor<"left", "50%">;
33
+ readonly transform: stylex.StyleXClassNameFor<"transform", "translate(-50%, -50%) rotate(90deg)">;
34
+ readonly maxWidth: stylex.StyleXClassNameFor<"maxWidth", "none">;
35
+ }>;
36
+ readonly column: Readonly<{
37
+ readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
38
+ readonly display: stylex.StyleXClassNameFor<"display", "grid">;
39
+ readonly gridTemplateRows: stylex.StyleXClassNameFor<"gridTemplateRows", "1fr auto">;
40
+ readonly gap: stylex.StyleXClassNameFor<"gap", string>;
41
+ }>;
42
+ readonly categories: Readonly<{
43
+ readonly display: stylex.StyleXClassNameFor<"display", "flex">;
44
+ readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
45
+ }>;
46
+ readonly category: Readonly<{
47
+ readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
48
+ readonly position: stylex.StyleXClassNameFor<"position", "relative">;
49
+ readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
50
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
51
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
52
+ readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", 400>;
53
+ }>;
54
+ readonly categoryLabel: Readonly<{
55
+ readonly flex: stylex.StyleXClassNameFor<"flex", 1>;
56
+ readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
57
+ readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "center">;
58
+ }>;
59
+ readonly activeCategory: Readonly<{
60
+ readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
61
+ }>;
62
+ readonly count: Readonly<{
63
+ readonly minWidth: stylex.StyleXClassNameFor<"minWidth", string>;
64
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
65
+ readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", 1>;
66
+ readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
67
+ readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
68
+ readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
69
+ readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
70
+ readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "center">;
71
+ readonly fontSize: stylex.StyleXClassNameFor<"fontSize", "0.625rem">;
72
+ readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", "0.875rem">;
73
+ }>;
74
+ readonly optionsWithSearch: Readonly<{
75
+ readonly display: stylex.StyleXClassNameFor<"display", "grid">;
76
+ readonly gap: stylex.StyleXClassNameFor<"gap", string>;
77
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", 0>;
78
+ }>;
79
+ readonly search: Readonly<{
80
+ readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
81
+ readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", string>;
82
+ }>;
83
+ readonly options: Readonly<{
84
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", "min(15.5rem, 40dvh)">;
85
+ readonly maxHeight: stylex.StyleXClassNameFor<"maxHeight", "min(15.5rem, 40dvh)">;
86
+ readonly overflowY: stylex.StyleXClassNameFor<"overflowY", "auto">;
87
+ readonly scrollbarWidth: stylex.StyleXClassNameFor<"scrollbarWidth", "thin">;
88
+ }>;
89
+ readonly option: Readonly<{
90
+ readonly display: stylex.StyleXClassNameFor<"display", "flex">;
91
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
92
+ readonly gap: stylex.StyleXClassNameFor<"gap", string>;
93
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
94
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
95
+ readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
96
+ readonly cursor: stylex.StyleXClassNameFor<"cursor", "pointer">;
97
+ readonly ':hover': stylex.StyleXClassNameFor<":hover", {
98
+ readonly backgroundColor: stylex.StyleXVar<string>;
99
+ }>;
100
+ }>;
101
+ readonly checkbox: Readonly<{
102
+ readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
103
+ readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
104
+ readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
105
+ readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", string>;
106
+ }>;
107
+ readonly checkboxSelected: Readonly<{
108
+ readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
109
+ readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
110
+ }>;
111
+ readonly footer: Readonly<{
112
+ readonly display: stylex.StyleXClassNameFor<"display", "flex">;
113
+ readonly flexWrap: stylex.StyleXClassNameFor<"flexWrap", "wrap">;
114
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
115
+ readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "space-between">;
116
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
117
+ readonly '@media (max-width: 37rem)': stylex.StyleXClassNameFor<"@media (max-width: 37rem)", {
118
+ readonly paddingInline: 0;
119
+ }>;
120
+ }>;
121
+ readonly footerAction: Readonly<{
122
+ readonly justifySelf: stylex.StyleXClassNameFor<"justifySelf", "start">;
123
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
124
+ }>;
125
+ readonly closeIcon: Readonly<{
126
+ readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
127
+ readonly width: stylex.StyleXClassNameFor<"width", "0.875rem">;
128
+ readonly height: stylex.StyleXClassNameFor<"height", "0.875rem">;
129
+ }>;
130
+ readonly empty: Readonly<{
131
+ readonly padding: stylex.StyleXClassNameFor<"padding", string>;
132
+ }>;
133
+ }>;
134
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/FilterPopup/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAG3C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiIjB,CAAC"}