@companix/uikit 0.0.18 → 0.0.20

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 (56) hide show
  1. package/dist/Input/Input.d.ts +1 -1
  2. package/dist/Input/InputElement.d.ts +3 -1
  3. package/dist/NumberInput/index.d.ts +22 -5
  4. package/dist/Radio/index.d.ts +1 -1
  5. package/dist/bundle.es10.js +14 -14
  6. package/dist/bundle.es11.js +55 -30
  7. package/dist/bundle.es14.js +11 -11
  8. package/dist/bundle.es19.js +1 -1
  9. package/dist/bundle.es20.js +1 -1
  10. package/dist/bundle.es23.js +1 -1
  11. package/dist/bundle.es24.js +35 -34
  12. package/dist/bundle.es25.js +4 -4
  13. package/dist/bundle.es26.js +2 -2
  14. package/dist/bundle.es29.js +2 -2
  15. package/dist/bundle.es31.js +1 -1
  16. package/dist/bundle.es32.js +1 -1
  17. package/dist/bundle.es34.js +1 -1
  18. package/dist/bundle.es37.js +1 -1
  19. package/dist/bundle.es38.js +1 -1
  20. package/dist/bundle.es40.js +3 -5
  21. package/dist/bundle.es41.js +5 -14
  22. package/dist/bundle.es42.js +13 -13
  23. package/dist/bundle.es43.js +13 -69
  24. package/dist/bundle.es44.js +3 -68
  25. package/dist/bundle.es45.js +3 -70
  26. package/dist/bundle.es46.js +68 -9
  27. package/dist/bundle.es47.js +66 -41
  28. package/dist/bundle.es48.js +69 -31
  29. package/dist/bundle.es49.js +12 -68
  30. package/dist/bundle.es50.js +42 -74
  31. package/dist/bundle.es51.js +30 -47
  32. package/dist/bundle.es52.js +67 -13
  33. package/dist/bundle.es53.js +19 -42
  34. package/dist/bundle.es54.js +2 -14
  35. package/dist/bundle.es55.js +45 -0
  36. package/dist/bundle.es56.js +22 -0
  37. package/dist/bundle.es57.js +4 -0
  38. package/dist/bundle.es58.js +23 -0
  39. package/dist/bundle.es59.js +4 -0
  40. package/dist/bundle.es60.js +22 -0
  41. package/dist/bundle.es61.js +16 -0
  42. package/dist/bundle.es62.js +78 -0
  43. package/dist/bundle.es63.js +51 -0
  44. package/dist/bundle.es64.js +4 -0
  45. package/dist/bundle.es65.js +16 -0
  46. package/dist/bundle.es66.js +5 -0
  47. package/dist/bundle.es67.js +5 -0
  48. package/dist/bundle.es68.js +22 -0
  49. package/dist/bundle.es69.js +4 -0
  50. package/dist/bundle.es70.js +22 -0
  51. package/dist/bundle.es71.js +4 -0
  52. package/dist/index.d.ts +3 -1
  53. package/package.json +3 -2
  54. package/dist/Stepper/StepperInput.scss +0 -35
  55. package/dist/Stepper/index.d.ts +0 -8
  56. package/dist/__hooks/use-stepper-input.d.ts +0 -13
@@ -0,0 +1,16 @@
1
+ import { useRef as f, useLayoutEffect as u, useEffect as s } from "react";
2
+ const o = (t, r) => {
3
+ const e = f(!1);
4
+ u(() => {
5
+ e.current = !0, t();
6
+ }, []), s(() => {
7
+ if (e.current) {
8
+ e.current = !1;
9
+ return;
10
+ }
11
+ t();
12
+ }, r);
13
+ };
14
+ export {
15
+ o as useEffectWithLayout
16
+ };
@@ -0,0 +1,5 @@
1
+ import { __require as r } from "./bundle.es68.js";
2
+ var o = /* @__PURE__ */ r();
3
+ export {
4
+ o as f
5
+ };
@@ -0,0 +1,5 @@
1
+ import { __require as r } from "./bundle.es70.js";
2
+ var o = /* @__PURE__ */ r();
3
+ export {
4
+ o as f
5
+ };
@@ -0,0 +1,22 @@
1
+ import { __exports as e } from "./bundle.es69.js";
2
+ var c;
3
+ function g() {
4
+ return c ? e : (c = 1, (function(i) {
5
+ Object.defineProperty(i, "__esModule", { value: !0 });
6
+ var r = "fas", n = "chevron-right", h = 320, v = 512, a = [9002], t = "f054", f = "M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z";
7
+ i.definition = {
8
+ prefix: r,
9
+ iconName: n,
10
+ icon: [
11
+ h,
12
+ v,
13
+ a,
14
+ t,
15
+ f
16
+ ]
17
+ }, i.faChevronRight = i.definition, i.prefix = r, i.iconName = n, i.width = h, i.height = v, i.ligatures = a, i.unicode = t, i.svgPathData = f, i.aliases = a;
18
+ })(e), e);
19
+ }
20
+ export {
21
+ g as __require
22
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,22 @@
1
+ import { __exports as i } from "./bundle.es71.js";
2
+ var c;
3
+ function o() {
4
+ return c ? i : (c = 1, (function(e) {
5
+ Object.defineProperty(e, "__esModule", { value: !0 });
6
+ var n = "fas", r = "chevron-left", f = 320, v = 512, a = [9001], t = "f053", h = "M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z";
7
+ e.definition = {
8
+ prefix: n,
9
+ iconName: r,
10
+ icon: [
11
+ f,
12
+ v,
13
+ a,
14
+ t,
15
+ h
16
+ ]
17
+ }, e.faChevronLeft = e.definition, e.prefix = n, e.iconName = r, e.width = f, e.height = v, e.ligatures = a, e.unicode = t, e.svgPathData = h, e.aliases = a;
18
+ })(i), i);
19
+ }
20
+ export {
21
+ o as __require
22
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
package/dist/index.d.ts CHANGED
@@ -26,8 +26,10 @@ export { DateInput } from './DateInput';
26
26
  export { FileOverlay } from './File';
27
27
  export { FormGroup } from './FormGroup';
28
28
  export { TimePicker } from './TimePicker';
29
- export * from './__hooks/use-local-storage';
29
+ export { useLocalStorage } from './__hooks/use-local-storage';
30
30
  export { createAlertAgent } from './DialogAlert';
31
31
  export { createToaster } from './Toaster';
32
32
  export * from './types';
33
33
  export type { Appearance } from './Button';
34
+ export type { RadioOption } from './Radio';
35
+ export type { NumberInputProps, ReactNumberFormatParams } from './NumberInput';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companix/uikit",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "module": "./dist/bundle.es.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",
@@ -37,7 +37,8 @@
37
37
  "@radix-ui/react-visually-hidden": "^1.2.4",
38
38
  "classnames": "^2.5.1",
39
39
  "react-input-mask": "^2.0.4",
40
- "react-merge-refs": "^3.0.2"
40
+ "react-merge-refs": "^3.0.2",
41
+ "react-number-format": "^5.4.4"
41
42
  },
42
43
  "devDependencies": {
43
44
  "@blueprintjs/core": "^6.2.1",
@@ -1,35 +0,0 @@
1
- .number-input-container {
2
- display: flex;
3
- gap: 4px;
4
- }
5
-
6
- .number-stepper {
7
- display: flex;
8
- flex-direction: column;
9
- height: 30px;
10
- min-height: 30px;
11
- line-height: 30px;
12
- border: 1px solid var(--border-color);
13
- box-shadow: 0 1px 2px rgb(0 0 0 / 47%);
14
- border-radius: 4px;
15
-
16
- &-splitter {
17
- height: 1px;
18
- background-color: var(--border-color);
19
- }
20
-
21
- &-slot {
22
- border-radius: 0px;
23
- height: 13.5px;
24
-
25
- &[data-slot='decrement'] {
26
- border-bottom-left-radius: 3px;
27
- border-bottom-right-radius: 3px;
28
- }
29
-
30
- &[data-slot='increment'] {
31
- border-top-left-radius: 3px;
32
- border-top-right-radius: 3px;
33
- }
34
- }
35
- }
@@ -1,8 +0,0 @@
1
- import { StepperInputOptions } from '../__hooks/use-stepper-input';
2
- interface StepperInputProps extends StepperInputOptions {
3
- buttons?: boolean;
4
- placeholder?: string;
5
- inputStyle?: React.CSSProperties;
6
- }
7
- export declare const StepperInput: ({ inputStyle, placeholder, buttons, ...options }: StepperInputProps) => import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,13 +0,0 @@
1
- export interface StepperInputOptions {
2
- value: number;
3
- onChange: (value: number) => void;
4
- step: number;
5
- minValue?: number;
6
- }
7
- export declare const useStepperInput: ({ minValue, value, onChange, step }: StepperInputOptions) => {
8
- inputRef: import('react').RefObject<HTMLInputElement>;
9
- value: string;
10
- increment: () => void;
11
- decrement: () => void;
12
- handleChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
13
- };