@appcorp/stellar-solutions-modules 0.1.54 → 0.1.56

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 (112) hide show
  1. package/global-modules/bank/bank.d.ts +7 -1
  2. package/global-modules/bank/bank.js +8 -22
  3. package/global-modules/bank/constants.js +5 -5
  4. package/global-modules/bank/context.js +40 -42
  5. package/global-modules/bank/drawer.d.ts +0 -4
  6. package/global-modules/bank/drawer.js +10 -8
  7. package/global-modules/bank/form.d.ts +0 -3
  8. package/global-modules/bank/form.js +18 -15
  9. package/global-modules/bank/types.d.ts +1 -1
  10. package/global-modules/bank/validate.js +2 -2
  11. package/global-modules/branch/branch.d.ts +7 -1
  12. package/global-modules/branch/branch.js +8 -22
  13. package/global-modules/branch/constants.js +1 -1
  14. package/global-modules/branch/context.js +36 -22
  15. package/global-modules/branch/drawer.d.ts +0 -4
  16. package/global-modules/branch/drawer.js +10 -8
  17. package/global-modules/branch/form.d.ts +0 -3
  18. package/global-modules/branch/form.js +13 -14
  19. package/global-modules/branch/types.d.ts +1 -1
  20. package/global-modules/branch/validate.js +6 -6
  21. package/global-modules/payment-mode/constants.js +1 -1
  22. package/global-modules/payment-mode/context.js +8 -10
  23. package/global-modules/payment-mode/drawer.d.ts +0 -4
  24. package/global-modules/payment-mode/drawer.js +10 -8
  25. package/global-modules/payment-mode/form.d.ts +0 -3
  26. package/global-modules/payment-mode/form.js +8 -9
  27. package/global-modules/payment-mode/payment-mode.d.ts +1 -1
  28. package/global-modules/payment-mode/payment-mode.js +40 -44
  29. package/global-modules/payment-mode/types.d.ts +1 -1
  30. package/global-modules/payment-mode/validate.js +2 -2
  31. package/global-modules/preferences/constants.d.ts +0 -4
  32. package/global-modules/preferences/constants.js +14 -17
  33. package/global-modules/preferences/currency.js +2 -2
  34. package/global-modules/preferences/preferences.js +2 -6
  35. package/global-modules/tax/constants.js +1 -1
  36. package/global-modules/tax/context.js +6 -3
  37. package/global-modules/tax/drawer.d.ts +0 -4
  38. package/global-modules/tax/drawer.js +10 -8
  39. package/global-modules/tax/form.d.ts +0 -4
  40. package/global-modules/tax/form.js +8 -9
  41. package/global-modules/tax/tax.d.ts +1 -1
  42. package/global-modules/tax/tax.js +39 -43
  43. package/global-modules/tax/types.d.ts +1 -1
  44. package/index.d.ts +0 -30
  45. package/index.js +0 -46
  46. package/lib/toast-utils.d.ts +0 -44
  47. package/lib/toast-utils.js +240 -212
  48. package/lib/utils.d.ts +0 -2
  49. package/lib/utils.js +5 -12
  50. package/package.json +6 -7
  51. package/components/theme-provider.d.ts +0 -9
  52. package/components/theme-provider.js +0 -122
  53. package/components/theme-switcher.d.ts +0 -4
  54. package/components/theme-switcher.js +0 -60
  55. package/components/ui/badge.d.ts +0 -9
  56. package/components/ui/badge.js +0 -82
  57. package/components/ui/button.d.ts +0 -10
  58. package/components/ui/button.js +0 -91
  59. package/components/ui/card.d.ts +0 -9
  60. package/components/ui/card.js +0 -94
  61. package/components/ui/carousel.d.ts +0 -19
  62. package/components/ui/carousel.js +0 -168
  63. package/components/ui/checkbox.d.ts +0 -9
  64. package/components/ui/checkbox.js +0 -87
  65. package/components/ui/combobox.d.ts +0 -70
  66. package/components/ui/combobox.js +0 -315
  67. package/components/ui/command.d.ts +0 -18
  68. package/components/ui/command.js +0 -115
  69. package/components/ui/dialog.d.ts +0 -15
  70. package/components/ui/dialog.js +0 -118
  71. package/components/ui/drawer.d.ts +0 -13
  72. package/components/ui/drawer.js +0 -115
  73. package/components/ui/dropdown-menu.d.ts +0 -25
  74. package/components/ui/dropdown-menu.js +0 -148
  75. package/components/ui/enhanced-dropzone.d.ts +0 -21
  76. package/components/ui/enhanced-dropzone.js +0 -187
  77. package/components/ui/enhanced-table-footer-action.d.ts +0 -35
  78. package/components/ui/enhanced-table-footer-action.js +0 -110
  79. package/components/ui/enhanced-table-footer-page.d.ts +0 -34
  80. package/components/ui/enhanced-table-footer-page.js +0 -132
  81. package/components/ui/enhanced-table-footer-pagination.d.ts +0 -38
  82. package/components/ui/enhanced-table-footer-pagination.js +0 -116
  83. package/components/ui/enhanced-table-header-action.d.ts +0 -7
  84. package/components/ui/enhanced-table-header-action.js +0 -21
  85. package/components/ui/enhanced-table-header-search.d.ts +0 -12
  86. package/components/ui/enhanced-table-header-search.js +0 -17
  87. package/components/ui/enhanced-table.d.ts +0 -87
  88. package/components/ui/enhanced-table.js +0 -221
  89. package/components/ui/form.d.ts +0 -24
  90. package/components/ui/form.js +0 -125
  91. package/components/ui/input.d.ts +0 -8
  92. package/components/ui/input.js +0 -86
  93. package/components/ui/label.d.ts +0 -7
  94. package/components/ui/label.js +0 -68
  95. package/components/ui/popover.d.ts +0 -7
  96. package/components/ui/popover.js +0 -82
  97. package/components/ui/select.d.ts +0 -15
  98. package/components/ui/select.js +0 -127
  99. package/components/ui/separator.d.ts +0 -4
  100. package/components/ui/separator.js +0 -66
  101. package/components/ui/shadcn-io/color-picker/index.d.ts +0 -43
  102. package/components/ui/shadcn-io/color-picker/index.js +0 -304
  103. package/components/ui/shadcn-io/dropzone/index.d.ts +0 -19
  104. package/components/ui/shadcn-io/dropzone/index.js +0 -131
  105. package/components/ui/sonner.d.ts +0 -4
  106. package/components/ui/sonner.js +0 -54
  107. package/components/ui/switch.d.ts +0 -9
  108. package/components/ui/switch.js +0 -89
  109. package/components/ui/table.d.ts +0 -10
  110. package/components/ui/table.js +0 -101
  111. package/components/ui/textarea.d.ts +0 -8
  112. package/components/ui/textarea.js +0 -86
@@ -1,68 +0,0 @@
1
- "use client";
2
- "use strict";
3
- var __assign = (this && this.__assign) || function () {
4
- __assign = Object.assign || function(t) {
5
- for (var s, i = 1, n = arguments.length; i < n; i++) {
6
- s = arguments[i];
7
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
8
- t[p] = s[p];
9
- }
10
- return t;
11
- };
12
- return __assign.apply(this, arguments);
13
- };
14
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
- if (k2 === undefined) k2 = k;
16
- var desc = Object.getOwnPropertyDescriptor(m, k);
17
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
18
- desc = { enumerable: true, get: function() { return m[k]; } };
19
- }
20
- Object.defineProperty(o, k2, desc);
21
- }) : (function(o, m, k, k2) {
22
- if (k2 === undefined) k2 = k;
23
- o[k2] = m[k];
24
- }));
25
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
26
- Object.defineProperty(o, "default", { enumerable: true, value: v });
27
- }) : function(o, v) {
28
- o["default"] = v;
29
- });
30
- var __importStar = (this && this.__importStar) || (function () {
31
- var ownKeys = function(o) {
32
- ownKeys = Object.getOwnPropertyNames || function (o) {
33
- var ar = [];
34
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
35
- return ar;
36
- };
37
- return ownKeys(o);
38
- };
39
- return function (mod) {
40
- if (mod && mod.__esModule) return mod;
41
- var result = {};
42
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
43
- __setModuleDefault(result, mod);
44
- return result;
45
- };
46
- })();
47
- var __rest = (this && this.__rest) || function (s, e) {
48
- var t = {};
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
- t[p] = s[p];
51
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
- t[p[i]] = s[p[i]];
55
- }
56
- return t;
57
- };
58
- Object.defineProperty(exports, "__esModule", { value: true });
59
- exports.Label = Label;
60
- var React = __importStar(require("react"));
61
- var LabelPrimitive = __importStar(require("@radix-ui/react-label"));
62
- var utils_1 = require("../../lib/utils");
63
- function Label(_a) {
64
- var className = _a.className, _b = _a.required, required = _b === void 0 ? false : _b, children = _a.children, props = __rest(_a, ["className", "required", "children"]);
65
- return (React.createElement(LabelPrimitive.Root, __assign({ "data-slot": "label", className: (0, utils_1.cn)("flex items-center gap-1 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className) }, props),
66
- children,
67
- required && (React.createElement("span", { className: "text-destructive text-sm", "aria-label": "required" }, "*"))));
68
- }
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- import * as PopoverPrimitive from "@radix-ui/react-popover";
3
- declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): React.JSX.Element;
4
- declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): React.JSX.Element;
5
- declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): React.JSX.Element;
6
- declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): React.JSX.Element;
7
- export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
@@ -1,82 +0,0 @@
1
- "use client";
2
- "use strict";
3
- var __assign = (this && this.__assign) || function () {
4
- __assign = Object.assign || function(t) {
5
- for (var s, i = 1, n = arguments.length; i < n; i++) {
6
- s = arguments[i];
7
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
8
- t[p] = s[p];
9
- }
10
- return t;
11
- };
12
- return __assign.apply(this, arguments);
13
- };
14
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
- if (k2 === undefined) k2 = k;
16
- var desc = Object.getOwnPropertyDescriptor(m, k);
17
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
18
- desc = { enumerable: true, get: function() { return m[k]; } };
19
- }
20
- Object.defineProperty(o, k2, desc);
21
- }) : (function(o, m, k, k2) {
22
- if (k2 === undefined) k2 = k;
23
- o[k2] = m[k];
24
- }));
25
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
26
- Object.defineProperty(o, "default", { enumerable: true, value: v });
27
- }) : function(o, v) {
28
- o["default"] = v;
29
- });
30
- var __importStar = (this && this.__importStar) || (function () {
31
- var ownKeys = function(o) {
32
- ownKeys = Object.getOwnPropertyNames || function (o) {
33
- var ar = [];
34
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
35
- return ar;
36
- };
37
- return ownKeys(o);
38
- };
39
- return function (mod) {
40
- if (mod && mod.__esModule) return mod;
41
- var result = {};
42
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
43
- __setModuleDefault(result, mod);
44
- return result;
45
- };
46
- })();
47
- var __rest = (this && this.__rest) || function (s, e) {
48
- var t = {};
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
- t[p] = s[p];
51
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
- t[p[i]] = s[p[i]];
55
- }
56
- return t;
57
- };
58
- Object.defineProperty(exports, "__esModule", { value: true });
59
- exports.Popover = Popover;
60
- exports.PopoverTrigger = PopoverTrigger;
61
- exports.PopoverContent = PopoverContent;
62
- exports.PopoverAnchor = PopoverAnchor;
63
- var React = __importStar(require("react"));
64
- var PopoverPrimitive = __importStar(require("@radix-ui/react-popover"));
65
- var utils_1 = require("../../lib/utils");
66
- function Popover(_a) {
67
- var props = __rest(_a, []);
68
- return React.createElement(PopoverPrimitive.Root, __assign({ "data-slot": "popover" }, props));
69
- }
70
- function PopoverTrigger(_a) {
71
- var props = __rest(_a, []);
72
- return React.createElement(PopoverPrimitive.Trigger, __assign({ "data-slot": "popover-trigger" }, props));
73
- }
74
- function PopoverContent(_a) {
75
- var className = _a.className, _b = _a.align, align = _b === void 0 ? "center" : _b, _c = _a.sideOffset, sideOffset = _c === void 0 ? 4 : _c, props = __rest(_a, ["className", "align", "sideOffset"]);
76
- return (React.createElement(PopoverPrimitive.Portal, null,
77
- React.createElement(PopoverPrimitive.Content, __assign({ "data-slot": "popover-content", align: align, sideOffset: sideOffset, className: (0, utils_1.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", className) }, props))));
78
- }
79
- function PopoverAnchor(_a) {
80
- var props = __rest(_a, []);
81
- return React.createElement(PopoverPrimitive.Anchor, __assign({ "data-slot": "popover-anchor" }, props));
82
- }
@@ -1,15 +0,0 @@
1
- import * as React from "react";
2
- import * as SelectPrimitive from "@radix-ui/react-select";
3
- declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): React.JSX.Element;
4
- declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): React.JSX.Element;
5
- declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): React.JSX.Element;
6
- declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
7
- size?: "sm" | "default";
8
- }): React.JSX.Element;
9
- declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): React.JSX.Element;
10
- declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): React.JSX.Element;
11
- declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): React.JSX.Element;
12
- declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): React.JSX.Element;
13
- declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): React.JSX.Element;
14
- declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): React.JSX.Element;
15
- export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
@@ -1,127 +0,0 @@
1
- "use client";
2
- "use strict";
3
- var __assign = (this && this.__assign) || function () {
4
- __assign = Object.assign || function(t) {
5
- for (var s, i = 1, n = arguments.length; i < n; i++) {
6
- s = arguments[i];
7
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
8
- t[p] = s[p];
9
- }
10
- return t;
11
- };
12
- return __assign.apply(this, arguments);
13
- };
14
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
- if (k2 === undefined) k2 = k;
16
- var desc = Object.getOwnPropertyDescriptor(m, k);
17
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
18
- desc = { enumerable: true, get: function() { return m[k]; } };
19
- }
20
- Object.defineProperty(o, k2, desc);
21
- }) : (function(o, m, k, k2) {
22
- if (k2 === undefined) k2 = k;
23
- o[k2] = m[k];
24
- }));
25
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
26
- Object.defineProperty(o, "default", { enumerable: true, value: v });
27
- }) : function(o, v) {
28
- o["default"] = v;
29
- });
30
- var __importStar = (this && this.__importStar) || (function () {
31
- var ownKeys = function(o) {
32
- ownKeys = Object.getOwnPropertyNames || function (o) {
33
- var ar = [];
34
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
35
- return ar;
36
- };
37
- return ownKeys(o);
38
- };
39
- return function (mod) {
40
- if (mod && mod.__esModule) return mod;
41
- var result = {};
42
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
43
- __setModuleDefault(result, mod);
44
- return result;
45
- };
46
- })();
47
- var __rest = (this && this.__rest) || function (s, e) {
48
- var t = {};
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
- t[p] = s[p];
51
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
- t[p[i]] = s[p[i]];
55
- }
56
- return t;
57
- };
58
- Object.defineProperty(exports, "__esModule", { value: true });
59
- exports.Select = Select;
60
- exports.SelectContent = SelectContent;
61
- exports.SelectGroup = SelectGroup;
62
- exports.SelectItem = SelectItem;
63
- exports.SelectLabel = SelectLabel;
64
- exports.SelectScrollDownButton = SelectScrollDownButton;
65
- exports.SelectScrollUpButton = SelectScrollUpButton;
66
- exports.SelectSeparator = SelectSeparator;
67
- exports.SelectTrigger = SelectTrigger;
68
- exports.SelectValue = SelectValue;
69
- var React = __importStar(require("react"));
70
- var SelectPrimitive = __importStar(require("@radix-ui/react-select"));
71
- var lucide_react_1 = require("lucide-react");
72
- var utils_1 = require("../../lib/utils");
73
- function Select(_a) {
74
- var props = __rest(_a, []);
75
- return React.createElement(SelectPrimitive.Root, __assign({ "data-slot": "select" }, props));
76
- }
77
- function SelectGroup(_a) {
78
- var props = __rest(_a, []);
79
- return React.createElement(SelectPrimitive.Group, __assign({ "data-slot": "select-group" }, props));
80
- }
81
- function SelectValue(_a) {
82
- var props = __rest(_a, []);
83
- return React.createElement(SelectPrimitive.Value, __assign({ "data-slot": "select-value" }, props));
84
- }
85
- function SelectTrigger(_a) {
86
- var className = _a.className, _b = _a.size, size = _b === void 0 ? "default" : _b, children = _a.children, props = __rest(_a, ["className", "size", "children"]);
87
- return (React.createElement(SelectPrimitive.Trigger, __assign({ "data-slot": "select-trigger", "data-size": size, className: (0, utils_1.cn)("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-full items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className) }, props),
88
- children,
89
- React.createElement(SelectPrimitive.Icon, { asChild: true },
90
- React.createElement(lucide_react_1.ChevronDownIcon, { className: "size-4 opacity-50" }))));
91
- }
92
- function SelectContent(_a) {
93
- var className = _a.className, children = _a.children, _b = _a.position, position = _b === void 0 ? "popper" : _b, props = __rest(_a, ["className", "children", "position"]);
94
- return (React.createElement(SelectPrimitive.Portal, null,
95
- React.createElement(SelectPrimitive.Content, __assign({ "data-slot": "select-content", className: (0, utils_1.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", position === "popper" &&
96
- "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className), position: position }, props),
97
- React.createElement(SelectScrollUpButton, null),
98
- React.createElement(SelectPrimitive.Viewport, { className: (0, utils_1.cn)("p-1", position === "popper" &&
99
- "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1") }, children),
100
- React.createElement(SelectScrollDownButton, null))));
101
- }
102
- function SelectLabel(_a) {
103
- var className = _a.className, props = __rest(_a, ["className"]);
104
- return (React.createElement(SelectPrimitive.Label, __assign({ "data-slot": "select-label", className: (0, utils_1.cn)("text-muted-foreground px-2 py-1.5 text-xs", className) }, props)));
105
- }
106
- function SelectItem(_a) {
107
- var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
108
- return (React.createElement(SelectPrimitive.Item, __assign({ "data-slot": "select-item", className: (0, utils_1.cn)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className) }, props),
109
- React.createElement("span", { className: "absolute right-2 flex size-3.5 items-center justify-center" },
110
- React.createElement(SelectPrimitive.ItemIndicator, null,
111
- React.createElement(lucide_react_1.CheckIcon, { className: "size-4" }))),
112
- React.createElement(SelectPrimitive.ItemText, null, children)));
113
- }
114
- function SelectSeparator(_a) {
115
- var className = _a.className, props = __rest(_a, ["className"]);
116
- return (React.createElement(SelectPrimitive.Separator, __assign({ "data-slot": "select-separator", className: (0, utils_1.cn)("bg-border pointer-events-none -mx-1 my-1 h-px", className) }, props)));
117
- }
118
- function SelectScrollUpButton(_a) {
119
- var className = _a.className, props = __rest(_a, ["className"]);
120
- return (React.createElement(SelectPrimitive.ScrollUpButton, __assign({ "data-slot": "select-scroll-up-button", className: (0, utils_1.cn)("flex cursor-default items-center justify-center py-1", className) }, props),
121
- React.createElement(lucide_react_1.ChevronUpIcon, { className: "size-4" })));
122
- }
123
- function SelectScrollDownButton(_a) {
124
- var className = _a.className, props = __rest(_a, ["className"]);
125
- return (React.createElement(SelectPrimitive.ScrollDownButton, __assign({ "data-slot": "select-scroll-down-button", className: (0, utils_1.cn)("flex cursor-default items-center justify-center py-1", className) }, props),
126
- React.createElement(lucide_react_1.ChevronDownIcon, { className: "size-4" })));
127
- }
@@ -1,4 +0,0 @@
1
- import * as React from "react";
2
- import * as SeparatorPrimitive from "@radix-ui/react-separator";
3
- declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): React.JSX.Element;
4
- export { Separator };
@@ -1,66 +0,0 @@
1
- "use client";
2
- "use strict";
3
- var __assign = (this && this.__assign) || function () {
4
- __assign = Object.assign || function(t) {
5
- for (var s, i = 1, n = arguments.length; i < n; i++) {
6
- s = arguments[i];
7
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
8
- t[p] = s[p];
9
- }
10
- return t;
11
- };
12
- return __assign.apply(this, arguments);
13
- };
14
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
- if (k2 === undefined) k2 = k;
16
- var desc = Object.getOwnPropertyDescriptor(m, k);
17
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
18
- desc = { enumerable: true, get: function() { return m[k]; } };
19
- }
20
- Object.defineProperty(o, k2, desc);
21
- }) : (function(o, m, k, k2) {
22
- if (k2 === undefined) k2 = k;
23
- o[k2] = m[k];
24
- }));
25
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
26
- Object.defineProperty(o, "default", { enumerable: true, value: v });
27
- }) : function(o, v) {
28
- o["default"] = v;
29
- });
30
- var __importStar = (this && this.__importStar) || (function () {
31
- var ownKeys = function(o) {
32
- ownKeys = Object.getOwnPropertyNames || function (o) {
33
- var ar = [];
34
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
35
- return ar;
36
- };
37
- return ownKeys(o);
38
- };
39
- return function (mod) {
40
- if (mod && mod.__esModule) return mod;
41
- var result = {};
42
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
43
- __setModuleDefault(result, mod);
44
- return result;
45
- };
46
- })();
47
- var __rest = (this && this.__rest) || function (s, e) {
48
- var t = {};
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
- t[p] = s[p];
51
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
- t[p[i]] = s[p[i]];
55
- }
56
- return t;
57
- };
58
- Object.defineProperty(exports, "__esModule", { value: true });
59
- exports.Separator = Separator;
60
- var React = __importStar(require("react"));
61
- var SeparatorPrimitive = __importStar(require("@radix-ui/react-separator"));
62
- var utils_1 = require("../../lib/utils");
63
- function Separator(_a) {
64
- var className = _a.className, _b = _a.orientation, orientation = _b === void 0 ? "horizontal" : _b, _c = _a.decorative, decorative = _c === void 0 ? true : _c, props = __rest(_a, ["className", "orientation", "decorative"]);
65
- return (React.createElement(SeparatorPrimitive.Root, __assign({ "data-slot": "separator", decorative: decorative, orientation: orientation, className: (0, utils_1.cn)("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px", className) }, props)));
66
- }
@@ -1,43 +0,0 @@
1
- import React from "react";
2
- import Color from "color";
3
- import { Slider } from "radix-ui";
4
- import { type ComponentProps, type HTMLAttributes } from "react";
5
- import { Button } from "../../button";
6
- import { SelectTrigger } from "../../select";
7
- interface ColorPickerContextValue {
8
- hue: number;
9
- saturation: number;
10
- lightness: number;
11
- alpha: number;
12
- mode: string;
13
- setHue: (hue: number) => void;
14
- setSaturation: (saturation: number) => void;
15
- setLightness: (lightness: number) => void;
16
- setAlpha: (alpha: number) => void;
17
- setMode: (mode: string) => void;
18
- }
19
- export declare const useColorPicker: () => ColorPickerContextValue;
20
- export type ColorPickerProps = Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & {
21
- value?: Parameters<typeof Color>[0];
22
- defaultValue?: Parameters<typeof Color>[0];
23
- onChange?: (value: [number, number, number, number]) => void;
24
- error?: string;
25
- info?: string;
26
- label?: string;
27
- required?: boolean;
28
- id?: string;
29
- };
30
- export declare const ColorPicker: ({ value, defaultValue, onChange, className, error, info, label, required, id, ...props }: ColorPickerProps) => React.JSX.Element;
31
- export type ColorPickerSelectionProps = HTMLAttributes<HTMLDivElement>;
32
- export declare const ColorPickerSelection: React.MemoExoticComponent<({ className, ...props }: ColorPickerSelectionProps) => React.JSX.Element>;
33
- export type ColorPickerHueProps = ComponentProps<typeof Slider.Root>;
34
- export declare const ColorPickerHue: ({ className, ...props }: ColorPickerHueProps) => React.JSX.Element;
35
- export type ColorPickerAlphaProps = ComponentProps<typeof Slider.Root>;
36
- export declare const ColorPickerAlpha: ({ className, ...props }: ColorPickerAlphaProps) => React.JSX.Element;
37
- export type ColorPickerEyeDropperProps = ComponentProps<typeof Button>;
38
- export declare const ColorPickerEyeDropper: ({ className, ...props }: ColorPickerEyeDropperProps) => React.JSX.Element;
39
- export type ColorPickerOutputProps = ComponentProps<typeof SelectTrigger>;
40
- export declare const ColorPickerOutput: ({ className, ...props }: ColorPickerOutputProps) => React.JSX.Element;
41
- export type ColorPickerFormatProps = HTMLAttributes<HTMLDivElement>;
42
- export declare const ColorPickerFormat: ({ className, ...props }: ColorPickerFormatProps) => React.JSX.Element | null;
43
- export {};