@cfx-dev/ui-components 4.5.15 → 4.5.17

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 (63) hide show
  1. package/dist/{Combination-2dfXEDc9.js → Combination-CcTTSYNP.js} +1 -1
  2. package/dist/{DropdownContent-CLtPVRZg.js → DropdownContent-MvHlrWi6.js} +4 -4
  3. package/dist/assets/all_css.css +3 -0
  4. package/dist/assets/css/AccordionShowcase.css +1 -0
  5. package/dist/assets/css/Avatar.css +1 -1
  6. package/dist/assets/css/Badge.css +1 -1
  7. package/dist/assets/css/DropdownSelect.css +1 -1
  8. package/dist/assets/css/Range.css +1 -0
  9. package/dist/assets/css/RangeInput.css +1 -0
  10. package/dist/assets/css/RichInput.css +1 -1
  11. package/dist/assets/css/Select.css +1 -1
  12. package/dist/assets/css/StyledInput.css +1 -1
  13. package/dist/assets/general/global.css +1 -1
  14. package/dist/cfxIcons-B4SQ4Ljd.js +100 -0
  15. package/dist/components/Accordion/Accordion.d.ts +11 -1
  16. package/dist/components/Accordion/Accordion.js +105 -98
  17. package/dist/components/Accordion/AccordionShowcase.js +129 -95
  18. package/dist/components/Avatar/Avatar.d.ts +1 -1
  19. package/dist/components/Avatar/Avatar.js +21 -19
  20. package/dist/components/Avatar/AvatarShowcase.js +20 -12
  21. package/dist/components/Badge/Badge.js +16 -17
  22. package/dist/components/Badge/BadgeShowcase.js +10 -0
  23. package/dist/components/Button/Button.d.ts +2 -1
  24. package/dist/components/Button/Button.js +78 -72
  25. package/dist/components/Button/ButtonShowcase.js +16 -5
  26. package/dist/components/Checkbox/Checkbox.js +22 -21
  27. package/dist/components/DropdownContent/DropdownContent.js +1 -1
  28. package/dist/components/DropdownContent/index.js +1 -1
  29. package/dist/components/DropdownMenu/DropdownMenu.js +1 -1
  30. package/dist/components/DropdownSelect/DropdownSelect.js +1 -1
  31. package/dist/components/Icon/Icon.js +1 -1
  32. package/dist/components/IconBig/IconBig.js +3 -2
  33. package/dist/components/Icons/IconsShowcase.js +1 -1
  34. package/dist/components/Icons/cfx-icons/Filter.d.ts +5 -0
  35. package/dist/components/Icons/cfx-icons/Filter.js +23 -0
  36. package/dist/components/Icons/cfxIcons.d.ts +1 -0
  37. package/dist/components/Icons/cfxIcons.js +80 -78
  38. package/dist/components/Icons/index.js +1 -1
  39. package/dist/components/Range/Range.d.ts +4 -0
  40. package/dist/components/Range/Range.js +90 -0
  41. package/dist/components/Range/Range.types.d.ts +9 -0
  42. package/dist/components/Range/Range.types.js +1 -0
  43. package/dist/components/Range/RangeInput.d.ts +13 -0
  44. package/dist/components/Range/RangeInput.js +78 -0
  45. package/dist/components/Range/RangeShowcase.d.ts +2 -0
  46. package/dist/components/Range/RangeShowcase.js +41 -0
  47. package/dist/components/Range/RangeWithInputs.d.ts +8 -0
  48. package/dist/components/Range/RangeWithInputs.js +81 -0
  49. package/dist/components/Range/index.d.ts +6 -0
  50. package/dist/components/Range/index.js +8 -0
  51. package/dist/components/Select/Select.js +3 -3
  52. package/dist/components/Slider/Slider.js +64 -472
  53. package/dist/components/Slider/SliderShowcase.js +6 -4
  54. package/dist/components/Switch/Switch.js +1 -1
  55. package/dist/{index-DWzyrn_L.js → index-3ctv5u9o.js} +1 -1
  56. package/dist/{index-BMU9X4M-.js → index-9LBuZ7x4.js} +7 -7
  57. package/dist/{index-DCuJlMqr.js → index-CfQtbUfi.js} +6 -6
  58. package/dist/index-D5SMGei3.js +427 -0
  59. package/dist/main.d.ts +2 -0
  60. package/dist/main.js +105 -99
  61. package/dist/styles-scss/_ui.scss +23 -16
  62. package/package.json +1 -1
  63. package/dist/cfxIcons-B9nzO6TW.js +0 -98
@@ -1,9 +1,9 @@
1
1
  import { jsx as s, jsxs as w, Fragment as $ } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
3
  import G from "react";
4
- import { c as K, P as g, d as X, u as B, e as q, f as J } from "../../index-DCuJlMqr.js";
4
+ import { c as K, P as g, u as X, b as B, a as q, d as J } from "../../index-CfQtbUfi.js";
5
5
  import { u as Q } from "../../index-BZPx6jYI.js";
6
- import { P as V } from "../../index-DWzyrn_L.js";
6
+ import { P as V } from "../../index-3ctv5u9o.js";
7
7
  import "../Icons/cfx-icons/Close.js";
8
8
  import "../Icons/cfx-icons/Controller.js";
9
9
  import "../Icons/cfx-icons/Copy.js";
@@ -12,6 +12,7 @@ import "../Icons/cfx-icons/DownChevron.js";
12
12
  import "../Icons/cfx-icons/Download.js";
13
13
  import "../Icons/cfx-icons/Expand.js";
14
14
  import "../Icons/cfx-icons/ExternalLink.js";
15
+ import "../Icons/cfx-icons/Filter.js";
15
16
  import "../Icons/cfx-icons/Heart.js";
16
17
  import "../Icons/cfx-icons/HeartFilled.js";
17
18
  import "../Icons/cfx-icons/Help.js";
@@ -57,7 +58,7 @@ import "../Icons/cfx-icons-big/Warning.js";
57
58
  import "../Icons/cfx-icons-big/Confirm.js";
58
59
  import { clsx as N } from "../../utils/clsx.js";
59
60
  import { getColor as Z } from "../../utils/color.js";
60
- var R = "Checkbox", [ee, ho] = K(R), [oe, E] = ee(R);
61
+ var R = "Checkbox", [ee, bo] = K(R), [oe, E] = ee(R);
61
62
  function te(o) {
62
63
  const {
63
64
  __scopeCheckbox: a,
@@ -69,10 +70,10 @@ function te(o) {
69
70
  name: _,
70
71
  onCheckedChange: d,
71
72
  required: h,
72
- value: C = "on",
73
+ value: b = "on",
73
74
  // @ts-expect-error
74
75
  internal_do_not_use_render: p
75
- } = o, [i, b] = X({
76
+ } = o, [i, C] = X({
76
77
  prop: n,
77
78
  defaultProp: r ?? !1,
78
79
  onChange: d,
@@ -83,12 +84,12 @@ function te(o) {
83
84
  ), P = {
84
85
  checked: i,
85
86
  disabled: e,
86
- setChecked: b,
87
+ setChecked: C,
87
88
  control: u,
88
89
  setControl: k,
89
90
  name: _,
90
91
  form: f,
91
- value: C,
92
+ value: b,
92
93
  hasConsumerStoppedPropagationRef: c,
93
94
  required: h,
94
95
  defaultChecked: v(r) ? !1 : r,
@@ -113,12 +114,12 @@ var T = "CheckboxTrigger", M = l.forwardRef(
113
114
  disabled: _,
114
115
  checked: d,
115
116
  required: h,
116
- setControl: C,
117
+ setControl: b,
117
118
  setChecked: p,
118
119
  hasConsumerStoppedPropagationRef: i,
119
- isFormControl: b,
120
+ isFormControl: C,
120
121
  bubbleInput: u
121
- } = E(T, o), k = B(r, C), I = l.useRef(d);
122
+ } = E(T, o), k = B(r, b), I = l.useRef(d);
122
123
  return l.useEffect(() => {
123
124
  const t = e == null ? void 0 : e.form;
124
125
  if (t) {
@@ -142,7 +143,7 @@ var T = "CheckboxTrigger", M = l.forwardRef(
142
143
  t.key === "Enter" && t.preventDefault();
143
144
  }),
144
145
  onClick: q(n, (t) => {
145
- p((c) => v(c) ? !0 : !c), u && b && (i.current = t.isPropagationStopped(), i.current || t.stopPropagation());
146
+ p((c) => v(c) ? !0 : !c), u && C && (i.current = t.isPropagationStopped(), i.current || t.stopPropagation());
146
147
  })
147
148
  }
148
149
  );
@@ -160,7 +161,7 @@ var U = l.forwardRef(
160
161
  disabled: _,
161
162
  value: d,
162
163
  onCheckedChange: h,
163
- form: C,
164
+ form: b,
164
165
  ...p
165
166
  } = o;
166
167
  return /* @__PURE__ */ s(
@@ -173,7 +174,7 @@ var U = l.forwardRef(
173
174
  required: f,
174
175
  onCheckedChange: h,
175
176
  name: m,
176
- form: C,
177
+ form: b,
177
178
  value: d,
178
179
  internal_do_not_use_render: ({ isFormControl: i }) => /* @__PURE__ */ w($, { children: [
179
180
  /* @__PURE__ */ s(
@@ -228,11 +229,11 @@ var F = "CheckboxBubbleInput", L = l.forwardRef(
228
229
  required: _,
229
230
  disabled: d,
230
231
  name: h,
231
- value: C,
232
+ value: b,
232
233
  form: p,
233
234
  bubbleInput: i,
234
- setBubbleInput: b
235
- } = E(F, o), u = B(n, b), k = Q(e), I = J(m);
235
+ setBubbleInput: C
236
+ } = E(F, o), u = B(n, C), k = Q(e), I = J(m);
236
237
  l.useEffect(() => {
237
238
  const c = i;
238
239
  if (!c) return;
@@ -255,7 +256,7 @@ var F = "CheckboxBubbleInput", L = l.forwardRef(
255
256
  required: _,
256
257
  disabled: d,
257
258
  name: h,
258
- value: C,
259
+ value: b,
259
260
  form: p,
260
261
  ...a,
261
262
  tabIndex: -1,
@@ -308,10 +309,10 @@ function de(o) {
308
309
  squareClassName: _,
309
310
  colorToken: d,
310
311
  color: h,
311
- opacity: C,
312
+ opacity: b,
312
313
  luminance: p,
313
314
  checked: i,
314
- name: b,
315
+ name: C,
315
316
  iconIndicator: u = z,
316
317
  iconSquare: k = W,
317
318
  ...I
@@ -340,11 +341,11 @@ function de(o) {
340
341
  style: { color: t },
341
342
  className: c,
342
343
  children: [
343
- b && /* @__PURE__ */ s(
344
+ C && /* @__PURE__ */ s(
344
345
  "input",
345
346
  {
346
347
  type: "hidden",
347
- name: b,
348
+ name: C,
348
349
  value: i ? "on" : ""
349
350
  }
350
351
  ),
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { D as a, g as i } from "../../DropdownContent-CLtPVRZg.js";
2
+ import { D as a, g as i } from "../../DropdownContent-MvHlrWi6.js";
3
3
  import "react";
4
4
  import "../../utils/clsx.js";
5
5
  import "../../utils/ui/ui.js";
@@ -1,4 +1,4 @@
1
- import { D as n, g as t } from "../../DropdownContent-CLtPVRZg.js";
1
+ import { D as n, g as t } from "../../DropdownContent-MvHlrWi6.js";
2
2
  export {
3
3
  n as DropdownContent,
4
4
  t as getDropdownContentSizeClassNames
@@ -1,5 +1,5 @@
1
1
  import { jsxs as d, jsx as o } from "react/jsx-runtime";
2
- import { R as m, T as p, D as f } from "../../DropdownContent-CLtPVRZg.js";
2
+ import { R as m, T as p, D as f } from "../../DropdownContent-MvHlrWi6.js";
3
3
  import u from "react";
4
4
  function h(t) {
5
5
  const {
@@ -1,5 +1,5 @@
1
1
  import { jsxs as f, jsx as l } from "react/jsx-runtime";
2
- import { g as W, R as N, T as R, D as v } from "../../DropdownContent-CLtPVRZg.js";
2
+ import { g as W, R as N, T as R, D as v } from "../../DropdownContent-MvHlrWi6.js";
3
3
  import _, { useRef as b, useState as z, useEffect as I } from "react";
4
4
  import T from "../Flex/Flex.js";
5
5
  import { clsx as j } from "../../utils/clsx.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import n from "react";
3
- import { I as u } from "../../cfxIcons-B9nzO6TW.js";
3
+ import { I as u } from "../../cfxIcons-B4SQ4Ljd.js";
4
4
  import "../Icons/cfx-icons-big/Like.js";
5
5
  import "../Icons/cfx-icons-big/Subscriptions.js";
6
6
  import "../Icons/cfx-icons-big/Upload.js";
@@ -7,6 +7,7 @@ import "../Icons/cfx-icons/DownChevron.js";
7
7
  import "../Icons/cfx-icons/Download.js";
8
8
  import "../Icons/cfx-icons/Expand.js";
9
9
  import "../Icons/cfx-icons/ExternalLink.js";
10
+ import "../Icons/cfx-icons/Filter.js";
10
11
  import "../Icons/cfx-icons/Heart.js";
11
12
  import "../Icons/cfx-icons/HeartFilled.js";
12
13
  import "../Icons/cfx-icons/Help.js";
@@ -56,7 +57,7 @@ const z = "cfxui__IconBig__root__f259a", i = {
56
57
  "size-normal": "cfxui__IconBig__size-normal__6ab6d",
57
58
  "size-large": "cfxui__IconBig__size-large__753d2"
58
59
  };
59
- function Io(o) {
60
+ function Bo(o) {
60
61
  const {
61
62
  as: r = "div",
62
63
  size: m = "normal",
@@ -73,5 +74,5 @@ function Io(o) {
73
74
  return /* @__PURE__ */ t(r, { ref: n, style: e, className: _, children: /* @__PURE__ */ t(a, {}) });
74
75
  }
75
76
  export {
76
- Io as IconBig
77
+ Bo as IconBig
77
78
  };
@@ -1,5 +1,5 @@
1
1
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import { I as s } from "../../cfxIcons-B9nzO6TW.js";
2
+ import { I as s } from "../../cfxIcons-B4SQ4Ljd.js";
3
3
  import { I as c } from "../../cfxIconsBig-BLJjMT-Y.js";
4
4
  function d() {
5
5
  const l = Object.entries(s).map(([i, t]) => ({
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare function Filter(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
4
+ declare const _default: React.MemoExoticComponent<typeof Filter>;
5
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import { jsx as L } from "react/jsx-runtime";
2
+ import t from "react";
3
+ function r(C) {
4
+ return /* @__PURE__ */ L(
5
+ "svg",
6
+ {
7
+ viewBox: "0 0 16 16",
8
+ fill: "currentColor",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ ...C,
11
+ children: /* @__PURE__ */ L(
12
+ "path",
13
+ {
14
+ d: "M5.10059 2.75049C4.68314 2.75049 4.49263 3.04698 4.44141 3.13232C4.34409 3.29452 4.24749 3.6495 4.5127 3.96338L4.51172 3.96533L7.55176 7.71533L7.55859 7.72314C7.58931 7.75949 7.61026 7.81367 7.61035 7.86963V11.8296C7.61035 12.1307 7.79031 12.3983 8.05762 12.5171L8.05957 12.5181L8.7002 12.7983L9.40039 13.105V7.88037C9.40039 7.82424 9.42133 7.76934 9.45215 7.73291L9.45898 7.7251L12.498 3.97412C12.6116 3.83456 12.6699 3.67251 12.6699 3.50732C12.6699 3.39084 12.6419 3.29111 12.6064 3.21338L12.5693 3.14307L12.5029 3.04736C12.4084 2.92777 12.2235 2.76025 11.9102 2.76025H5.60059V2.75049H5.10059ZM7.11035 7.98291L6.99902 7.84521L4.12891 4.30518C3.82147 3.92624 3.76376 3.42241 3.97168 2.98486C4.15353 2.60236 4.5096 2.34183 4.9209 2.28271L5.10059 2.27002H11.9102C12.3995 2.27002 12.8308 2.5409 13.0371 2.98193L13.0391 2.98486C13.248 3.42457 13.1872 3.93559 12.8848 4.30127L12.8818 4.30518L10.0117 7.84521L9.90039 7.98291V13.5005C9.90022 13.5802 9.85643 13.6655 9.7832 13.7144C9.76756 13.7248 9.74498 13.7331 9.71973 13.7397H9.65039C9.61876 13.7397 9.58068 13.7335 9.53516 13.7153L7.8584 12.9907C7.40145 12.7897 7.11038 12.3402 7.11035 11.8501V7.98291Z"
15
+ }
16
+ )
17
+ }
18
+ );
19
+ }
20
+ const l = t.memo(r);
21
+ export {
22
+ l as default
23
+ };
@@ -6,6 +6,7 @@ export { default as DownChevron } from './cfx-icons/DownChevron';
6
6
  export { default as Download } from './cfx-icons/Download';
7
7
  export { default as Expand } from './cfx-icons/Expand';
8
8
  export { default as ExternalLink } from './cfx-icons/ExternalLink';
9
+ export { default as Filter } from './cfx-icons/Filter';
9
10
  export { default as Heart } from './cfx-icons/Heart';
10
11
  export { default as HeartFilled } from './cfx-icons/HeartFilled';
11
12
  export { default as Help } from './cfx-icons/Help';
@@ -1,94 +1,96 @@
1
1
  import { default as o } from "./cfx-icons/Close.js";
2
- import { default as t } from "./cfx-icons/Controller.js";
2
+ import { default as a } from "./cfx-icons/Controller.js";
3
3
  import { default as l } from "./cfx-icons/Copy.js";
4
4
  import { default as p } from "./cfx-icons/DownArrow.js";
5
5
  import { default as u } from "./cfx-icons/DownChevron.js";
6
6
  import { default as m } from "./cfx-icons/Download.js";
7
7
  import { default as n } from "./cfx-icons/Expand.js";
8
8
  import { default as C } from "./cfx-icons/ExternalLink.js";
9
- import { default as w } from "./cfx-icons/Heart.js";
10
- import { default as c } from "./cfx-icons/HeartFilled.js";
11
- import { default as R } from "./cfx-icons/Help.js";
12
- import { default as g } from "./cfx-icons/LeftArrow.js";
13
- import { default as A } from "./cfx-icons/LeftChevron.js";
14
- import { default as D } from "./cfx-icons/Map.js";
15
- import { default as L } from "./cfx-icons/Menu.js";
16
- import { default as T } from "./cfx-icons/Minus.js";
17
- import { default as b } from "./cfx-icons/More.js";
18
- import { default as E } from "./cfx-icons/MoreInfo.js";
19
- import { default as F } from "./cfx-icons/Pencil.js";
20
- import { default as O } from "./cfx-icons/Play.js";
21
- import { default as j } from "./cfx-icons/Plus.js";
22
- import { default as G } from "./cfx-icons/Radio.js";
23
- import { default as K } from "./cfx-icons/Refresh.js";
24
- import { default as Q } from "./cfx-icons/RightArrow.js";
25
- import { default as Y } from "./cfx-icons/RightChevron.js";
26
- import { default as _ } from "./cfx-icons/Search.js";
27
- import { default as rr } from "./cfx-icons/Sort.js";
28
- import { default as or } from "./cfx-icons/Square.js";
29
- import { default as tr } from "./cfx-icons/SquareCheck.js";
30
- import { default as lr } from "./cfx-icons/Stop.js";
31
- import { default as pr } from "./cfx-icons/Tick.js";
32
- import { default as ur } from "./cfx-icons/Transfer.js";
33
- import { default as mr } from "./cfx-icons/Trash.js";
34
- import { default as nr } from "./cfx-icons/Undo.js";
35
- import { default as Cr } from "./cfx-icons/UpArrow.js";
36
- import { default as wr } from "./cfx-icons/UpChevron.js";
37
- import { default as cr } from "./cfx-icons/Upload.js";
38
- import { default as Rr } from "./cfx-icons/Users.js";
39
- import { default as gr } from "./cfx-icons/Visibility.js";
40
- import { default as Ar } from "./cfx-icons/VisibilityOff.js";
41
- import { default as Dr } from "./cfx-icons/Warning.js";
42
- import { default as Lr } from "./cfx-icons/Cart.js";
43
- import { default as Tr } from "./cfx-icons/User.js";
44
- import { default as br } from "./cfx-icons/Verified.js";
45
- import { default as Er } from "./cfx-icons/UpvotesBurst.js";
46
- import { default as Fr } from "./cfx-icons/UpvotesRecurring.js";
9
+ import { default as w } from "./cfx-icons/Filter.js";
10
+ import { default as c } from "./cfx-icons/Heart.js";
11
+ import { default as R } from "./cfx-icons/HeartFilled.js";
12
+ import { default as g } from "./cfx-icons/Help.js";
13
+ import { default as A } from "./cfx-icons/LeftArrow.js";
14
+ import { default as D } from "./cfx-icons/LeftChevron.js";
15
+ import { default as L } from "./cfx-icons/Map.js";
16
+ import { default as T } from "./cfx-icons/Menu.js";
17
+ import { default as b } from "./cfx-icons/Minus.js";
18
+ import { default as E } from "./cfx-icons/More.js";
19
+ import { default as B } from "./cfx-icons/MoreInfo.js";
20
+ import { default as O } from "./cfx-icons/Pencil.js";
21
+ import { default as j } from "./cfx-icons/Play.js";
22
+ import { default as G } from "./cfx-icons/Plus.js";
23
+ import { default as K } from "./cfx-icons/Radio.js";
24
+ import { default as Q } from "./cfx-icons/Refresh.js";
25
+ import { default as Y } from "./cfx-icons/RightArrow.js";
26
+ import { default as _ } from "./cfx-icons/RightChevron.js";
27
+ import { default as rr } from "./cfx-icons/Search.js";
28
+ import { default as or } from "./cfx-icons/Sort.js";
29
+ import { default as ar } from "./cfx-icons/Square.js";
30
+ import { default as lr } from "./cfx-icons/SquareCheck.js";
31
+ import { default as pr } from "./cfx-icons/Stop.js";
32
+ import { default as ur } from "./cfx-icons/Tick.js";
33
+ import { default as mr } from "./cfx-icons/Transfer.js";
34
+ import { default as nr } from "./cfx-icons/Trash.js";
35
+ import { default as Cr } from "./cfx-icons/Undo.js";
36
+ import { default as wr } from "./cfx-icons/UpArrow.js";
37
+ import { default as cr } from "./cfx-icons/UpChevron.js";
38
+ import { default as Rr } from "./cfx-icons/Upload.js";
39
+ import { default as gr } from "./cfx-icons/Users.js";
40
+ import { default as Ar } from "./cfx-icons/Visibility.js";
41
+ import { default as Dr } from "./cfx-icons/VisibilityOff.js";
42
+ import { default as Lr } from "./cfx-icons/Warning.js";
43
+ import { default as Tr } from "./cfx-icons/Cart.js";
44
+ import { default as br } from "./cfx-icons/User.js";
45
+ import { default as Er } from "./cfx-icons/Verified.js";
46
+ import { default as Br } from "./cfx-icons/UpvotesBurst.js";
47
+ import { default as Or } from "./cfx-icons/UpvotesRecurring.js";
47
48
  export {
48
- Lr as Cart,
49
+ Tr as Cart,
49
50
  o as Close,
50
- t as Controller,
51
+ a as Controller,
51
52
  l as Copy,
52
53
  p as DownArrow,
53
54
  u as DownChevron,
54
55
  m as Download,
55
56
  n as Expand,
56
57
  C as ExternalLink,
57
- w as Heart,
58
- c as HeartFilled,
59
- R as Help,
60
- g as LeftArrow,
61
- A as LeftChevron,
62
- D as Map,
63
- L as Menu,
64
- T as Minus,
65
- b as More,
66
- E as MoreInfo,
67
- F as Pencil,
68
- O as Play,
69
- j as Plus,
70
- G as Radio,
71
- K as Refresh,
72
- Q as RightArrow,
73
- Y as RightChevron,
74
- _ as Search,
75
- rr as Sort,
76
- or as Square,
77
- tr as SquareCheck,
78
- lr as Stop,
79
- pr as Tick,
80
- ur as Transfer,
81
- mr as Trash,
82
- nr as Undo,
83
- Cr as UpArrow,
84
- wr as UpChevron,
85
- cr as Upload,
86
- Er as UpvotesBurst,
87
- Fr as UpvotesRecurring,
88
- Tr as User,
89
- Rr as Users,
90
- br as Verified,
91
- gr as Visibility,
92
- Ar as VisibilityOff,
93
- Dr as Warning
58
+ w as Filter,
59
+ c as Heart,
60
+ R as HeartFilled,
61
+ g as Help,
62
+ A as LeftArrow,
63
+ D as LeftChevron,
64
+ L as Map,
65
+ T as Menu,
66
+ b as Minus,
67
+ E as More,
68
+ B as MoreInfo,
69
+ O as Pencil,
70
+ j as Play,
71
+ G as Plus,
72
+ K as Radio,
73
+ Q as Refresh,
74
+ Y as RightArrow,
75
+ _ as RightChevron,
76
+ rr as Search,
77
+ or as Sort,
78
+ ar as Square,
79
+ lr as SquareCheck,
80
+ pr as Stop,
81
+ ur as Tick,
82
+ mr as Transfer,
83
+ nr as Trash,
84
+ Cr as Undo,
85
+ wr as UpArrow,
86
+ cr as UpChevron,
87
+ Rr as Upload,
88
+ Br as UpvotesBurst,
89
+ Or as UpvotesRecurring,
90
+ br as User,
91
+ gr as Users,
92
+ Er as Verified,
93
+ Ar as Visibility,
94
+ Dr as VisibilityOff,
95
+ Lr as Warning
94
96
  };
@@ -1,4 +1,4 @@
1
- import { I as s } from "../../cfxIcons-B9nzO6TW.js";
1
+ import { I as s } from "../../cfxIcons-B4SQ4Ljd.js";
2
2
  import { I as a } from "../../cfxIconsBig-BLJjMT-Y.js";
3
3
  export {
4
4
  s as Icons,
@@ -0,0 +1,4 @@
1
+ import { RangeProps } from './Range.types';
2
+
3
+ declare function Range(props: RangeProps): import("react/jsx-runtime").JSX.Element;
4
+ export default Range;
@@ -0,0 +1,90 @@
1
+ import { jsxs as R, jsx as a } from "react/jsx-runtime";
2
+ import { R as p, T as w, a as N, b as s } from "../../index-D5SMGei3.js";
3
+ import L from "react";
4
+ import { clsx as r } from "../../utils/clsx.js";
5
+ const k = "cfxui__Range__root__9b6c3", v = "cfxui__Range__disabled__1bbc7", I = "cfxui__Range__track__28130", T = "cfxui__Range__range__2adcc", V = "cfxui__Range__thumb__905e9", B = "cfxui__Range__thumbIcon__acb4e", e = {
6
+ root: k,
7
+ disabled: v,
8
+ track: I,
9
+ range: T,
10
+ thumb: V,
11
+ thumbIcon: B
12
+ };
13
+ function j(t) {
14
+ return /* @__PURE__ */ a(
15
+ "svg",
16
+ {
17
+ viewBox: "0 0 16 22",
18
+ xmlns: "http://www.w3.org/2000/svg",
19
+ ...t,
20
+ children: /* @__PURE__ */ a(
21
+ "path",
22
+ {
23
+ fill: "currentColor",
24
+ d: "M0 1.74333C0 0.595035 1.29793 -0.0729044 2.23234 0.594526L15.1917 9.8512C15.9799 10.4142 15.9799 11.5858 15.1917 12.1488L2.23234 21.4055C1.29793 22.0729 0 21.405 0 20.2567V1.74333Z"
25
+ }
26
+ )
27
+ }
28
+ );
29
+ }
30
+ function M(t) {
31
+ return /* @__PURE__ */ a(
32
+ "svg",
33
+ {
34
+ viewBox: "0 0 16 22",
35
+ xmlns: "http://www.w3.org/2000/svg",
36
+ ...t,
37
+ children: /* @__PURE__ */ a(
38
+ "path",
39
+ {
40
+ fill: "currentColor",
41
+ d: "M15.8 20.2567C15.8 21.405 14.5021 22.0729 13.5677 21.4055L0.608372 12.1488C-0.179886 11.5858 -0.179887 10.4142 0.608371 9.8512L13.5677 0.594526C14.5021 -0.0729047 15.8001 0.595036 15.8001 1.74333L15.8 20.2567Z"
42
+ }
43
+ )
44
+ }
45
+ );
46
+ }
47
+ function P(t) {
48
+ const {
49
+ value: o,
50
+ defaultValue: l,
51
+ ariaLabelStart: u,
52
+ ariaLabelEnd: _,
53
+ className: i,
54
+ trackClassName: m,
55
+ min: b = 0,
56
+ max: h,
57
+ minStepsBetweenThumbs: d = 1,
58
+ onValueChange: n,
59
+ ref: f,
60
+ disabled: c = !1,
61
+ ...g
62
+ } = t, x = L.useCallback((C) => {
63
+ n && n(C);
64
+ }, [n]);
65
+ return /* @__PURE__ */ R(
66
+ p,
67
+ {
68
+ ...g,
69
+ defaultValue: l,
70
+ ref: f,
71
+ min: b,
72
+ max: h,
73
+ value: o,
74
+ minStepsBetweenThumbs: d,
75
+ className: r(e.root, i, {
76
+ [e.disabled]: c
77
+ }),
78
+ onValueChange: x,
79
+ disabled: c,
80
+ children: [
81
+ /* @__PURE__ */ a(w, { className: r(e.track, m), children: /* @__PURE__ */ a(N, { className: e.range }) }),
82
+ /* @__PURE__ */ a(s, { className: e.thumb, "aria-label": u, children: /* @__PURE__ */ a(j, { className: e.thumbIcon }) }),
83
+ /* @__PURE__ */ a(s, { className: e.thumb, "aria-label": _, children: /* @__PURE__ */ a(M, { className: e.thumbIcon }) })
84
+ ]
85
+ }
86
+ );
87
+ }
88
+ export {
89
+ P as default
90
+ };
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import * as RadixSlider from '@radix-ui/react-slider';
3
+ export interface RangeProps extends RadixSlider.SliderProps {
4
+ ariaLabelStart?: string;
5
+ ariaLabelEnd?: string;
6
+ ref?: React.Ref<HTMLSpanElement>;
7
+ className?: string;
8
+ trackClassName?: string;
9
+ }
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ import { StyledInputProps } from '../StyledInput';
3
+
4
+ export interface RangeInputProps extends Omit<StyledInputProps, 'onChange'> {
5
+ fullWidth?: boolean;
6
+ containerClassName?: string;
7
+ sign?: string;
8
+ onChange?: (value: string) => void;
9
+ onSubmit?: () => void;
10
+ onKeyDown?(event: React.KeyboardEvent<HTMLInputElement>): void;
11
+ }
12
+ declare function RangeInput(props: RangeInputProps): import("react/jsx-runtime").JSX.Element;
13
+ export default RangeInput;
@@ -0,0 +1,78 @@
1
+ import { jsxs as k, jsx as g } from "react/jsx-runtime";
2
+ import a from "react";
3
+ import v from "../StyledInput/StyledInput.js";
4
+ import { clsx as h } from "../../utils/clsx.js";
5
+ const A = "cfxui__RangeInput__root__d7257", D = "cfxui__RangeInput__fullWidth__4ffc7", K = "cfxui__RangeInput__input__3bdcc", j = "cfxui__RangeInput__sign__c4033", n = {
6
+ root: A,
7
+ fullWidth: D,
8
+ input: K,
9
+ sign: j
10
+ };
11
+ function X(o) {
12
+ const {
13
+ fullWidth: R = !1,
14
+ value: e,
15
+ defaultValue: _,
16
+ onChange: s,
17
+ onSubmit: l,
18
+ onKeyDown: u,
19
+ pattern: F,
20
+ className: x,
21
+ containerClassName: y,
22
+ type: N = "number",
23
+ ref: b,
24
+ sign: f,
25
+ ...I
26
+ } = o, [i, C] = a.useState(e || _), w = typeof i < "u" && i !== "" && i !== null || typeof e < "u" && e !== "" && e !== null;
27
+ let r, m, d;
28
+ if (o.type === "number") {
29
+ const {
30
+ min: t,
31
+ max: c,
32
+ step: W
33
+ } = o;
34
+ d = W ?? 1, r = t ?? Number.MIN_SAFE_INTEGER, m = c ?? Number.MAX_SAFE_INTEGER;
35
+ }
36
+ const p = a.useCallback((t) => {
37
+ C(t), s && s(t);
38
+ }, [s]), E = a.useCallback(
39
+ (t) => {
40
+ const {
41
+ value: c
42
+ } = t.target;
43
+ p(c);
44
+ },
45
+ [p]
46
+ ), S = a.useCallback((t) => {
47
+ u && u(t), l && t.key === "Enter" && l();
48
+ }, [u, l]), V = h(
49
+ n.root,
50
+ y,
51
+ {
52
+ [n.fullWidth]: R,
53
+ [n.empty]: !w
54
+ }
55
+ );
56
+ return /* @__PURE__ */ k("div", { className: V, children: [
57
+ f && /* @__PURE__ */ g("div", { className: n.sign, children: f }),
58
+ /* @__PURE__ */ g(
59
+ v,
60
+ {
61
+ ref: b,
62
+ type: N,
63
+ className: h(n.input, x),
64
+ value: e,
65
+ onChange: E,
66
+ onKeyDown: S,
67
+ min: r,
68
+ max: m,
69
+ step: d,
70
+ defaultValue: _,
71
+ ...I
72
+ }
73
+ )
74
+ ] });
75
+ }
76
+ export {
77
+ X as default
78
+ };
@@ -0,0 +1,2 @@
1
+ declare function RangeShowcase(): import("react/jsx-runtime").JSX.Element;
2
+ export default RangeShowcase;