@docsplain-kit/core 0.0.49 → 0.0.51

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 (80) hide show
  1. package/README.md +36 -0
  2. package/SERVER_COMPONENTS.md +256 -0
  3. package/auto-complete/auto-complete-theme.d.ts +29 -0
  4. package/auto-complete/auto-complete-theme.js +53 -0
  5. package/auto-complete/auto-complete-theme.js.map +1 -0
  6. package/auto-complete/auto-complete.js +23 -3
  7. package/auto-complete/auto-complete.js.map +1 -1
  8. package/index.d.ts +1 -0
  9. package/index.js +7 -1
  10. package/index.js.map +1 -1
  11. package/label/label-theme.d.ts +17 -0
  12. package/label/label-theme.js +35 -0
  13. package/label/label-theme.js.map +1 -0
  14. package/label/label.js +21 -3
  15. package/label/label.js.map +1 -1
  16. package/media/media.js +1 -1
  17. package/media/media.js.map +1 -1
  18. package/modal/modal-theme.d.ts +17 -0
  19. package/modal/modal-theme.js +32 -0
  20. package/modal/modal-theme.js.map +1 -0
  21. package/modal/modal.d.ts +1 -1
  22. package/modal/modal.js +22 -5
  23. package/modal/modal.js.map +1 -1
  24. package/mouse-popup/mouse-popup-theme.d.ts +17 -0
  25. package/mouse-popup/mouse-popup-theme.js +32 -0
  26. package/mouse-popup/mouse-popup-theme.js.map +1 -0
  27. package/mouse-popup/mouse-popup.js +19 -1
  28. package/mouse-popup/mouse-popup.js.map +1 -1
  29. package/multi-select/index.js.map +1 -1
  30. package/multi-select/multi-select-theme.d.ts +54 -0
  31. package/multi-select/multi-select-theme.js +127 -0
  32. package/multi-select/multi-select-theme.js.map +1 -0
  33. package/multi-select/multi-select.js +44 -10
  34. package/multi-select/multi-select.js.map +1 -1
  35. package/multi-select/multi-select.style.d.ts +97 -1
  36. package/multi-select/multi-select.style.js +99 -3
  37. package/multi-select/multi-select.style.js.map +1 -1
  38. package/package.json +1 -1
  39. package/popper/popper-content/popper-content.js +19 -1
  40. package/popper/popper-content/popper-content.js.map +1 -1
  41. package/popper/popper-theme.d.ts +21 -0
  42. package/popper/popper-theme.js +39 -0
  43. package/popper/popper-theme.js.map +1 -0
  44. package/select/select-theme.d.ts +50 -0
  45. package/select/select-theme.js +120 -0
  46. package/select/select-theme.js.map +1 -0
  47. package/select/select.js +44 -10
  48. package/select/select.js.map +1 -1
  49. package/select/select.style.d.ts +48 -16
  50. package/select/select.style.js +97 -65
  51. package/select/select.style.js.map +1 -1
  52. package/server/client-wrapper.d.ts +116 -0
  53. package/server/client-wrapper.js +249 -0
  54. package/server/client-wrapper.js.map +1 -0
  55. package/server/index.d.ts +22 -0
  56. package/server/index.js +40 -0
  57. package/server/index.js.map +1 -0
  58. package/tab/tab-item/tab-item.style.js +21 -6
  59. package/tab/tab-item/tab-item.style.js.map +1 -1
  60. package/tab/tab-theme.d.ts +42 -0
  61. package/tab/tab-theme.js +242 -0
  62. package/tab/tab-theme.js.map +1 -0
  63. package/tab/tab.js +21 -3
  64. package/tab/tab.js.map +1 -1
  65. package/text-input/text-input-theme.d.ts +30 -0
  66. package/text-input/text-input-theme.js +73 -0
  67. package/text-input/text-input-theme.js.map +1 -0
  68. package/text-input/text-input.js +26 -4
  69. package/text-input/text-input.js.map +1 -1
  70. package/text-input/text-input.style.d.ts +33 -1
  71. package/text-input/text-input.style.js +34 -2
  72. package/text-input/text-input.style.js.map +1 -1
  73. package/textarea/textarea-theme.d.ts +30 -0
  74. package/textarea/textarea-theme.js +73 -0
  75. package/textarea/textarea-theme.js.map +1 -0
  76. package/textarea/textarea.js +26 -4
  77. package/textarea/textarea.js.map +1 -1
  78. package/textarea/textarea.style.d.ts +33 -1
  79. package/textarea/textarea.style.js +34 -2
  80. package/textarea/textarea.style.js.map +1 -1
@@ -1,4 +1,4 @@
1
- export declare const COLORS: {
1
+ export declare const LIGHT_MULTI_SELECT_COLORS: {
2
2
  primary: string;
3
3
  danger: string;
4
4
  warning: string;
@@ -30,6 +30,102 @@ export declare const COLORS: {
30
30
  pink: string;
31
31
  rose: string;
32
32
  };
33
+ export declare const DARK_MULTI_SELECT_COLORS: {
34
+ primary: string;
35
+ danger: string;
36
+ warning: string;
37
+ secondary: string;
38
+ tertiary: string;
39
+ success: string;
40
+ info: string;
41
+ control: string;
42
+ inherit: string;
43
+ slate: string;
44
+ zinc: string;
45
+ neutral: string;
46
+ stone: string;
47
+ red: string;
48
+ orange: string;
49
+ amber: string;
50
+ yellow: string;
51
+ lime: string;
52
+ green: string;
53
+ emerald: string;
54
+ teal: string;
55
+ cyan: string;
56
+ sky: string;
57
+ blue: string;
58
+ indigo: string;
59
+ violet: string;
60
+ purple: string;
61
+ fuchsia: string;
62
+ pink: string;
63
+ rose: string;
64
+ };
65
+ export declare const LIGHT_HOVER_COLORS: {
66
+ primary: string;
67
+ danger: string;
68
+ warning: string;
69
+ secondary: string;
70
+ control: string;
71
+ tertiary: string;
72
+ success: string;
73
+ info: string;
74
+ inherit: string;
75
+ slate: string;
76
+ zinc: string;
77
+ neutral: string;
78
+ stone: string;
79
+ red: string;
80
+ orange: string;
81
+ amber: string;
82
+ yellow: string;
83
+ lime: string;
84
+ green: string;
85
+ emerald: string;
86
+ teal: string;
87
+ cyan: string;
88
+ sky: string;
89
+ blue: string;
90
+ indigo: string;
91
+ violet: string;
92
+ purple: string;
93
+ fuchsia: string;
94
+ pink: string;
95
+ rose: string;
96
+ };
97
+ export declare const DARK_HOVER_COLORS: {
98
+ primary: string;
99
+ danger: string;
100
+ warning: string;
101
+ secondary: string;
102
+ control: string;
103
+ tertiary: string;
104
+ success: string;
105
+ info: string;
106
+ inherit: string;
107
+ slate: string;
108
+ zinc: string;
109
+ neutral: string;
110
+ stone: string;
111
+ red: string;
112
+ orange: string;
113
+ amber: string;
114
+ yellow: string;
115
+ lime: string;
116
+ green: string;
117
+ emerald: string;
118
+ teal: string;
119
+ cyan: string;
120
+ sky: string;
121
+ blue: string;
122
+ indigo: string;
123
+ violet: string;
124
+ purple: string;
125
+ fuchsia: string;
126
+ pink: string;
127
+ rose: string;
128
+ };
33
129
  export declare const SIZES: {
34
130
  huge: string;
35
131
  large: string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
- exports.DROPDOWN_COLORS = exports.TEXT_SIZE = exports.VARIANTS = exports.ROUNDED = exports.HOVER_COLORS = exports.SIZES = exports.COLORS = void 0;
4
- exports.COLORS = {
3
+ exports.DROPDOWN_COLORS = exports.TEXT_SIZE = exports.VARIANTS = exports.ROUNDED = exports.HOVER_COLORS = exports.SIZES = exports.DARK_HOVER_COLORS = exports.LIGHT_HOVER_COLORS = exports.DARK_MULTI_SELECT_COLORS = exports.LIGHT_MULTI_SELECT_COLORS = void 0;
4
+ exports.LIGHT_MULTI_SELECT_COLORS = {
5
5
  primary: 'bg-primary-50 border-control-light hover:border-control-dark focus:border-primary-dark',
6
6
  danger: 'bg-danger-100 border-control-light hover:border-control-dark focus:border-danger-dark',
7
7
  warning: 'bg-warning-100 border-control-light hover:border-control-dark focus:border-warning-dark',
@@ -33,6 +33,102 @@ exports.COLORS = {
33
33
  pink: 'bg-pink-100 border-control-light hover:border-control-dark focus:border-pink-700',
34
34
  rose: 'bg-rose-100 border-control-light hover:border-control-dark focus:border-rose-700'
35
35
  };
36
+ exports.DARK_MULTI_SELECT_COLORS = {
37
+ primary: 'bg-primary-950/40 border-control-light hover:border-control-300 focus:border-primary-300',
38
+ danger: 'bg-danger-950/40 border-control-light hover:border-control-300 focus:border-danger-300',
39
+ warning: 'bg-warning-950/40 border-control-light hover:border-control-300 focus:border-warning-300',
40
+ secondary: 'bg-secondary-950/40 border-control-light hover:border-control-300 focus:border-secondary-300',
41
+ tertiary: 'bg-tertiary-950/40 border-control-light hover:border-control-300 focus:border-tertiary-300',
42
+ success: 'bg-success-950/40 border-control-light hover:border-control-300 focus:border-success-300',
43
+ info: 'bg-info-950/40 border-control-light hover:border-control-300 focus:border-info-300',
44
+ control: 'bg-control-950/40 border-control-light hover:border-control-300 focus:border-control-300',
45
+ inherit: 'bg-transparent border-transparent focus:border hover:border-transparent',
46
+ slate: 'bg-slate-900 border-control-light hover:border-control-300 focus:border-slate-300',
47
+ zinc: 'bg-zinc-900 border-control-light hover:border-control-300 focus:border-zinc-300',
48
+ neutral: 'bg-neutral-900 border-control-light hover:border-control-300 focus:border-neutral-300',
49
+ stone: 'bg-stone-900 border-control-light hover:border-control-300 focus:border-stone-300',
50
+ red: 'bg-red-900 border-control-light hover:border-control-300 focus:border-red-300',
51
+ orange: 'bg-orange-900 border-control-light hover:border-control-300 focus:border-orange-300',
52
+ amber: 'bg-amber-900 border-control-light hover:border-control-300 focus:border-amber-300',
53
+ yellow: 'bg-yellow-900 border-control-light hover:border-control-300 focus:border-yellow-300',
54
+ lime: 'bg-lime-900 border-control-light hover:border-control-300 focus:border-lime-300',
55
+ green: 'bg-green-900 border-control-light hover:border-control-300 focus:border-green-300',
56
+ emerald: 'bg-emerald-900 border-control-light hover:border-control-300 focus:border-emerald-300',
57
+ teal: 'bg-teal-900 border-control-light hover:border-control-300 focus:border-teal-300',
58
+ cyan: 'bg-cyan-900 border-control-light hover:border-control-300 focus:border-cyan-300',
59
+ sky: 'bg-sky-900 border-control-light hover:border-control-300 focus:border-sky-300',
60
+ blue: 'bg-blue-900 border-control-light hover:border-control-300 focus:border-blue-300',
61
+ indigo: 'bg-indigo-900 border-control-light hover:border-control-300 focus:border-indigo-300',
62
+ violet: 'bg-violet-900 border-control-light hover:border-control-300 focus:border-violet-300',
63
+ purple: 'bg-purple-900 border-control-light hover:border-control-300 focus:border-purple-300',
64
+ fuchsia: 'bg-fuchsia-900 border-control-light hover:border-control-300 focus:border-fuchsia-300',
65
+ pink: 'bg-pink-900 border-control-light hover:border-control-300 focus:border-pink-300',
66
+ rose: 'bg-rose-900 border-control-light hover:border-control-300 focus:border-rose-300'
67
+ };
68
+ exports.LIGHT_HOVER_COLORS = {
69
+ primary: 'hover:bg-primary-100 hover:text-primary-700',
70
+ danger: 'hover:bg-danger-100 hover:text-danger-700',
71
+ warning: 'hover:bg-warning-100 hover:text-warning-700',
72
+ secondary: 'hover:bg-secondary-100 hover:text-secondary-700',
73
+ control: 'hover:bg-control-100 hover:text-control-700',
74
+ tertiary: 'hover:bg-tertiary-100 hover:text-tertiary-700',
75
+ success: 'hover:bg-success-100 hover:text-success-700',
76
+ info: 'hover:bg-info-100 hover:text-info-700',
77
+ inherit: 'bg-transparent hover:bg-transparent',
78
+ slate: 'hover:bg-slate-100 hover:text-slate-700',
79
+ zinc: 'hover:bg-zinc-100 hover:text-zinc-700',
80
+ neutral: 'hover:bg-neutral-100 hover:text-neutral-700',
81
+ stone: 'hover:bg-stone-100 hover:text-stone-700',
82
+ red: 'hover:bg-red-100 hover:text-red-700',
83
+ orange: 'hover:bg-orange-100 hover:text-orange-700',
84
+ amber: 'hover:bg-amber-100 hover:text-amber-700',
85
+ yellow: 'hover:bg-yellow-100 hover:text-yellow-700',
86
+ lime: 'hover:bg-lime-100 hover:text-lime-700',
87
+ green: 'hover:bg-green-100 hover:text-green-700',
88
+ emerald: 'hover:bg-emerald-100 hover:text-emerald-700',
89
+ teal: 'hover:bg-teal-100 hover:text-teal-700',
90
+ cyan: 'hover:bg-cyan-100 hover:text-cyan-700',
91
+ sky: 'hover:bg-sky-100 hover:text-sky-700',
92
+ blue: 'hover:bg-blue-100 hover:text-blue-700',
93
+ indigo: 'hover:bg-indigo-100 hover:text-indigo-700',
94
+ violet: 'hover:bg-violet-100 hover:text-violet-700',
95
+ purple: 'hover:bg-purple-100 hover:text-purple-700',
96
+ fuchsia: 'hover:bg-fuchsia-100 hover:text-fuchsia-700',
97
+ pink: 'hover:bg-pink-100 hover:text-pink-700',
98
+ rose: 'hover:bg-rose-100 hover:text-rose-700'
99
+ };
100
+ exports.DARK_HOVER_COLORS = {
101
+ primary: 'hover:bg-primary-950/40 hover:text-white',
102
+ danger: 'hover:bg-danger-950/40 hover:text-white',
103
+ warning: 'hover:bg-warning-950/40 hover:text-white',
104
+ secondary: 'hover:bg-secondary-950/40 hover:text-white',
105
+ control: 'hover:bg-control-950/40 hover:text-white',
106
+ tertiary: 'hover:bg-tertiary-950/40 hover:text-white',
107
+ success: 'hover:bg-success-950/40 hover:text-white',
108
+ info: 'hover:bg-info-950/40 hover:text-white',
109
+ inherit: 'bg-transparent hover:bg-transparent',
110
+ slate: 'hover:bg-slate-950/40 hover:text-white',
111
+ zinc: 'hover:bg-zinc-950/40 hover:text-white',
112
+ neutral: 'hover:bg-neutral-950/40 hover:text-white',
113
+ stone: 'hover:bg-stone-950/40 hover:text-white',
114
+ red: 'hover:bg-red-950/40 hover:text-white',
115
+ orange: 'hover:bg-orange-950/40 hover:text-white',
116
+ amber: 'hover:bg-amber-950/40 hover:text-white',
117
+ yellow: 'hover:bg-yellow-950/40 hover:text-white',
118
+ lime: 'hover:bg-lime-950/40 hover:text-white',
119
+ green: 'hover:bg-green-950/40 hover:text-white',
120
+ emerald: 'hover:bg-emerald-950/40 hover:text-white',
121
+ teal: 'hover:bg-teal-950/40 hover:text-white',
122
+ cyan: 'hover:bg-cyan-950/40 hover:text-white',
123
+ sky: 'hover:bg-sky-950/40 hover:text-white',
124
+ blue: 'hover:bg-blue-950/40 hover:text-white',
125
+ indigo: 'hover:bg-indigo-950/40 hover:text-white',
126
+ violet: 'hover:bg-violet-950/40 hover:text-white',
127
+ purple: 'hover:bg-purple-950/40 hover:text-white',
128
+ fuchsia: 'hover:bg-fuchsia-950/40 hover:text-white',
129
+ pink: 'hover:bg-pink-950/40 hover:text-white',
130
+ rose: 'hover:bg-rose-950/40 hover:text-white'
131
+ };
36
132
  exports.SIZES = {
37
133
  huge: 'min-h-14 md:!min-h-16 h-auto',
38
134
  large: 'min-h-12 md:!min-h-14 h-auto',
@@ -83,7 +179,7 @@ exports.ROUNDED = {
83
179
  };
84
180
  exports.VARIANTS = {
85
181
  filled: 'text-m-sm md:text-d-sm flex',
86
- outlined: 'text-control !bg-white border border-control-light hover:border-control-dark flex',
182
+ outlined: 'text-control border border-control-light hover:border-control-dark flex',
87
183
  text: 'text-control !bg-transparent border-none flex'
88
184
  };
89
185
  exports.TEXT_SIZE = {
@@ -1 +1 @@
1
- {"version":3,"file":"multi-select.style.js","sourceRoot":"","sources":["../../multi-select/multi-select.style.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IACpB,OAAO,EAAE,wFAAwF;IACjG,MAAM,EAAE,uFAAuF;IAC/F,OAAO,EAAE,yFAAyF;IAClG,SAAS,EAAE,6FAA6F;IACxG,QAAQ,EAAE,2FAA2F;IACrG,OAAO,EAAE,yFAAyF;IAClG,IAAI,EAAE,mFAAmF;IACzF,OAAO,EAAE,yFAAyF;IAClG,OAAO,EAAE,yEAAyE;IAClF,KAAK,EAAE,oFAAoF;IAC3F,IAAI,EAAE,kFAAkF;IACxF,OAAO,EAAE,wFAAwF;IACjG,KAAK,EAAE,oFAAoF;IAC3F,GAAG,EAAE,gFAAgF;IACrF,MAAM,EAAE,sFAAsF;IAC9F,KAAK,EAAE,oFAAoF;IAC3F,MAAM,EAAE,sFAAsF;IAC9F,IAAI,EAAE,kFAAkF;IACxF,KAAK,EAAE,oFAAoF;IAC3F,OAAO,EAAE,wFAAwF;IACjG,IAAI,EAAE,kFAAkF;IACxF,IAAI,EAAE,kFAAkF;IACxF,GAAG,EAAE,gFAAgF;IACrF,IAAI,EAAE,kFAAkF;IACxF,MAAM,EAAE,sFAAsF;IAC9F,MAAM,EAAE,sFAAsF;IAC9F,MAAM,EAAE,sFAAsF;IAC9F,OAAO,EAAE,wFAAwF;IACjG,IAAI,EAAE,kFAAkF;IACxF,IAAI,EAAE,kFAAkF;CACzF,CAAC;AAEW,QAAA,KAAK,GAAG;IACnB,IAAI,EAAE,8BAA8B;IACpC,KAAK,EAAE,8BAA8B;IACrC,MAAM,EAAE,8BAA8B;IACtC,KAAK,EAAE,6BAA6B;IACpC,IAAI,EAAE,4BAA4B;CACnC,CAAC;AAEW,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAE,6CAA6C;IACtD,MAAM,EAAE,2CAA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AkB;IACzB,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,oBAAoB;IAC7B,KAAK,EAAE,kBAAkB;IACzB,GAAG,EAAE,gBAAgB;IACrB,MAAM,EAAE,mBAAmB;IAC3B,KAAK,EAAE,kBAAkB;IACzB,MAAM,EAAE,mBAAmB;IAC3B,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,kBAAkB;IACzB,OAAO,EAAE,oBAAoB;IAC7B,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,iBAAiB;IACvB,GAAG,EAAE,gBAAgB;IACrB,IAAI,EAAE,iBAAiB;IACvB,MAAM,EAAE,mBAAmB;IAC3B,MAAM,EAAE,mBAAmB;IAC3B,MAAM,EAAE,mBAAmB;IAC3B,OAAO,EAAE,oBAAoB;IAC7B,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,iBAAiB;CACxB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docsplain-kit/core",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "main": "./index.js",
5
5
  "module": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -4,9 +4,27 @@ var tslib_1 = require("tslib");
4
4
  var react_1 = tslib_1.__importDefault(require("react"));
5
5
  var div_1 = tslib_1.__importDefault(require("../../div"));
6
6
  var tailwind_merge_config_1 = require("../../tailwind-merge-config");
7
+ var popper_theme_1 = require("../popper-theme");
8
+ // Try to import the theme provider, but make it optional
9
+ var useThemeSafe = function () { return 'light'; };
10
+ try {
11
+ var useTheme = require('../../provider').useTheme;
12
+ useThemeSafe = useTheme;
13
+ }
14
+ catch (_a) {
15
+ // Provider not available, use default
16
+ }
7
17
  var PopperContent = function (_a) {
8
18
  var className = _a.className, children = _a.children, ref = _a.ref;
9
- return (react_1["default"].createElement(div_1["default"], { ref: ref, className: (0, tailwind_merge_config_1.twMerge)('h-auto w-full', className) }, children));
19
+ // Try to get theme from provider, fallback to 'light'
20
+ var theme = 'light';
21
+ try {
22
+ theme = useThemeSafe();
23
+ }
24
+ catch (_b) {
25
+ // Not in provider, use default
26
+ }
27
+ return (react_1["default"].createElement(div_1["default"], { ref: ref, className: (0, tailwind_merge_config_1.twMerge)('h-auto w-full rounded-lg shadow-lg', (0, popper_theme_1.getPopperBackground)(theme), (0, popper_theme_1.getPopperBorder)(theme), 'border', className) }, children));
10
28
  };
11
29
  PopperContent.displayName = 'PopperContent';
12
30
  exports["default"] = PopperContent;
@@ -1 +1 @@
1
- {"version":3,"file":"popper-content.js","sourceRoot":"","sources":["../../../popper/popper-content/popper-content.tsx"],"names":[],"mappings":";;;AAAA,wDAA0B;AAE1B,0DAA4B;AAC5B,qEAAsD;AAEtD,IAAM,aAAa,GAAG,UAAC,EAAgD;QAA9C,SAAS,eAAA,EAAE,QAAQ,cAAA,EAAE,GAAG,SAAA;IAC/C,OAAO,CACL,iCAAC,gBAAG,IACF,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,+BAAO,EAChB,eAAe,EACf,SAAS,CACV,IAEA,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC;AAE5C,qBAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"popper-content.js","sourceRoot":"","sources":["../../../popper/popper-content/popper-content.tsx"],"names":[],"mappings":";;;AAAA,wDAA0B;AAE1B,0DAA4B;AAC5B,qEAAsD;AACtD,gDAGyB;AAEzB,yDAAyD;AACzD,IAAI,YAAY,GAA2B,cAAM,OAAA,OAAO,EAAP,CAAO,CAAC;AACzD,IAAI;IACM,IAAA,QAAQ,GAAK,OAAO,CAAC,gBAAgB,CAAC,SAA9B,CAA+B;IAC/C,YAAY,GAAG,QAAQ,CAAC;CACzB;AAAC,WAAM;IACN,sCAAsC;CACvC;AAED,IAAM,aAAa,GAAG,UAAC,EAAgD;QAA9C,SAAS,eAAA,EAAE,QAAQ,cAAA,EAAE,GAAG,SAAA;IAC/C,sDAAsD;IACtD,IAAI,KAAK,GAAqB,OAAO,CAAC;IACtC,IAAI;QACF,KAAK,GAAG,YAAY,EAAE,CAAC;KACxB;IAAC,WAAM;QACN,+BAA+B;KAChC;IAED,OAAO,CACL,iCAAC,gBAAG,IACF,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,+BAAO,EAChB,oCAAoC,EACpC,IAAA,kCAAmB,EAAC,KAAK,CAAC,EAC1B,IAAA,8BAAe,EAAC,KAAK,CAAC,EACtB,QAAQ,EACR,SAAS,CACV,IAEA,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC;AAE5C,qBAAe,aAAa,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { Theme } from '../provider';
2
+ /**
3
+ * Get popper content background color based on theme
4
+ */
5
+ export declare const getPopperBackground: (theme: Theme) => string;
6
+ /**
7
+ * Get popper content border color based on theme
8
+ */
9
+ export declare const getPopperBorder: (theme: Theme) => string;
10
+ /**
11
+ * Get popper content text color based on theme
12
+ */
13
+ export declare const getPopperTextColor: (theme: Theme) => string;
14
+ /**
15
+ * Get popper content secondary text color based on theme
16
+ */
17
+ export declare const getPopperSecondaryTextColor: (theme: Theme) => string;
18
+ /**
19
+ * Get popper content hover background color based on theme
20
+ */
21
+ export declare const getPopperHoverBackground: (theme: Theme) => string;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.getPopperHoverBackground = exports.getPopperSecondaryTextColor = exports.getPopperTextColor = exports.getPopperBorder = exports.getPopperBackground = void 0;
4
+ /**
5
+ * Get popper content background color based on theme
6
+ */
7
+ var getPopperBackground = function (theme) {
8
+ return theme === 'dark' ? 'bg-gray-800' : 'bg-white';
9
+ };
10
+ exports.getPopperBackground = getPopperBackground;
11
+ /**
12
+ * Get popper content border color based on theme
13
+ */
14
+ var getPopperBorder = function (theme) {
15
+ return theme === 'dark' ? 'border-gray-700' : 'border-gray-200';
16
+ };
17
+ exports.getPopperBorder = getPopperBorder;
18
+ /**
19
+ * Get popper content text color based on theme
20
+ */
21
+ var getPopperTextColor = function (theme) {
22
+ return theme === 'dark' ? 'text-gray-100' : 'text-gray-900';
23
+ };
24
+ exports.getPopperTextColor = getPopperTextColor;
25
+ /**
26
+ * Get popper content secondary text color based on theme
27
+ */
28
+ var getPopperSecondaryTextColor = function (theme) {
29
+ return theme === 'dark' ? 'text-gray-300' : 'text-gray-600';
30
+ };
31
+ exports.getPopperSecondaryTextColor = getPopperSecondaryTextColor;
32
+ /**
33
+ * Get popper content hover background color based on theme
34
+ */
35
+ var getPopperHoverBackground = function (theme) {
36
+ return theme === 'dark' ? 'hover:bg-gray-700' : 'hover:bg-gray-100';
37
+ };
38
+ exports.getPopperHoverBackground = getPopperHoverBackground;
39
+ //# sourceMappingURL=popper-theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popper-theme.js","sourceRoot":"","sources":["../../popper/popper-theme.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACI,IAAM,mBAAmB,GAAG,UAAC,KAAY;IAC9C,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,UAAU,CAAC;AACvD,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B;AAEF;;GAEG;AACI,IAAM,eAAe,GAAG,UAAC,KAAY;IAC1C,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC;AAClE,CAAC,CAAC;AAFW,QAAA,eAAe,mBAE1B;AAEF;;GAEG;AACI,IAAM,kBAAkB,GAAG,UAAC,KAAY;IAC7C,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,CAAC;AAC9D,CAAC,CAAC;AAFW,QAAA,kBAAkB,sBAE7B;AAEF;;GAEG;AACI,IAAM,2BAA2B,GAAG,UAAC,KAAY;IACtD,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,CAAC;AAC9D,CAAC,CAAC;AAFW,QAAA,2BAA2B,+BAEtC;AAEF;;GAEG;AACI,IAAM,wBAAwB,GAAG,UAAC,KAAY;IACnD,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,mBAAmB,CAAC;AACtE,CAAC,CAAC;AAFW,QAAA,wBAAwB,4BAEnC"}
@@ -0,0 +1,50 @@
1
+ import { Theme } from '../provider';
2
+ import { Colors } from '../types';
3
+ /**
4
+ * Get select background based on theme and variant
5
+ */
6
+ export declare const getSelectBackground: (theme: Theme, variant: 'outlined' | 'filled', color: Colors) => string;
7
+ /**
8
+ * Get select text color based on theme
9
+ */
10
+ export declare const getSelectTextColor: (theme: Theme) => string;
11
+ /**
12
+ * Get select placeholder color based on theme
13
+ */
14
+ export declare const getSelectPlaceholderColor: (theme: Theme) => string;
15
+ /**
16
+ * Get select label background based on theme
17
+ */
18
+ export declare const getSelectLabelBackground: (theme: Theme) => string;
19
+ /**
20
+ * Get select border color based on theme and color
21
+ */
22
+ export declare const getSelectBorderColor: (theme: Theme, _color: Colors, error: boolean, disabled: boolean) => string;
23
+ /**
24
+ * Get select focus border color based on theme and color
25
+ */
26
+ export declare const getSelectFocusBorderColor: (theme: Theme, color: Colors) => string;
27
+ /**
28
+ * Get select icon color based on theme
29
+ */
30
+ export declare const getSelectIconColor: (theme: Theme) => string;
31
+ /**
32
+ * Get dropdown background based on theme
33
+ */
34
+ export declare const getDropdownBackground: (theme: Theme) => string;
35
+ /**
36
+ * Get dropdown border color based on theme and color
37
+ */
38
+ export declare const getDropdownBorderColor: (theme: Theme, color: Colors) => string;
39
+ /**
40
+ * Get dropdown item hover background based on theme
41
+ */
42
+ export declare const getDropdownItemHoverBackground: (theme: Theme) => string;
43
+ /**
44
+ * Get dropdown item selected background based on theme
45
+ */
46
+ export declare const getDropdownItemSelectedBackground: (theme: Theme) => string;
47
+ /**
48
+ * Get dropdown text color based on theme
49
+ */
50
+ export declare const getDropdownTextColor: (theme: Theme, isSelected: boolean) => string;
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.getDropdownTextColor = exports.getDropdownItemSelectedBackground = exports.getDropdownItemHoverBackground = exports.getDropdownBorderColor = exports.getDropdownBackground = exports.getSelectIconColor = exports.getSelectFocusBorderColor = exports.getSelectBorderColor = exports.getSelectLabelBackground = exports.getSelectPlaceholderColor = exports.getSelectTextColor = exports.getSelectBackground = void 0;
4
+ var select_style_1 = require("./select.style");
5
+ /**
6
+ * Get select background based on theme and variant
7
+ */
8
+ var getSelectBackground = function (theme, variant, color) {
9
+ if (variant === 'filled') {
10
+ return theme === 'dark' ? select_style_1.DARK_SELECT_COLORS[color] : select_style_1.LIGHT_SELECT_COLORS[color];
11
+ }
12
+ return theme === 'dark' ? '!bg-control-800' : '!bg-white';
13
+ };
14
+ exports.getSelectBackground = getSelectBackground;
15
+ /**
16
+ * Get select text color based on theme
17
+ */
18
+ var getSelectTextColor = function (theme) {
19
+ return theme === 'dark' ? 'text-control-100' : 'text-control-800';
20
+ };
21
+ exports.getSelectTextColor = getSelectTextColor;
22
+ /**
23
+ * Get select placeholder color based on theme
24
+ */
25
+ var getSelectPlaceholderColor = function (theme) {
26
+ return theme === 'dark' ? 'text-control-400' : 'text-control';
27
+ };
28
+ exports.getSelectPlaceholderColor = getSelectPlaceholderColor;
29
+ /**
30
+ * Get select label background based on theme
31
+ */
32
+ var getSelectLabelBackground = function (theme) {
33
+ return theme === 'dark' ? 'bg-control-800' : 'bg-white';
34
+ };
35
+ exports.getSelectLabelBackground = getSelectLabelBackground;
36
+ /**
37
+ * Get select border color based on theme and color
38
+ */
39
+ var getSelectBorderColor = function (theme, _color, error, disabled) {
40
+ if (disabled) {
41
+ return theme === 'dark' ? 'border-control-600' : 'border-control-100';
42
+ }
43
+ if (error) {
44
+ return theme === 'dark' ? 'border-danger-500' : 'border-danger';
45
+ }
46
+ // Default border colors for different themes
47
+ return theme === 'dark' ? 'border-control-600 hover:border-control-500' : 'border-control-light hover:border-control-dark';
48
+ };
49
+ exports.getSelectBorderColor = getSelectBorderColor;
50
+ /**
51
+ * Get select focus border color based on theme and color
52
+ */
53
+ var getSelectFocusBorderColor = function (theme, color) {
54
+ var colorMap = {
55
+ primary: theme === 'dark' ? 'focus:border-primary-400' : 'focus:border-primary-dark',
56
+ secondary: theme === 'dark' ? 'focus:border-secondary-400' : 'focus:border-secondary-dark',
57
+ info: theme === 'dark' ? 'focus:border-info-400' : 'focus:border-info-dark',
58
+ success: theme === 'dark' ? 'focus:border-success-400' : 'focus:border-success-dark',
59
+ warning: theme === 'dark' ? 'focus:border-warning-400' : 'focus:border-warning-dark',
60
+ danger: theme === 'dark' ? 'focus:border-danger-400' : 'focus:border-danger-dark',
61
+ control: theme === 'dark' ? 'focus:border-control-400' : 'focus:border-control-dark'
62
+ };
63
+ return colorMap[color] || colorMap['primary'];
64
+ };
65
+ exports.getSelectFocusBorderColor = getSelectFocusBorderColor;
66
+ /**
67
+ * Get select icon color based on theme
68
+ */
69
+ var getSelectIconColor = function (theme) {
70
+ return theme === 'dark' ? 'text-control-300' : 'text-control';
71
+ };
72
+ exports.getSelectIconColor = getSelectIconColor;
73
+ /**
74
+ * Get dropdown background based on theme
75
+ */
76
+ var getDropdownBackground = function (theme) {
77
+ return theme === 'dark' ? 'bg-control-800' : 'bg-white';
78
+ };
79
+ exports.getDropdownBackground = getDropdownBackground;
80
+ /**
81
+ * Get dropdown border color based on theme and color
82
+ */
83
+ var getDropdownBorderColor = function (theme, color) {
84
+ var colorMap = {
85
+ primary: theme === 'dark' ? 'border-primary-400' : 'border-primary-dark',
86
+ secondary: theme === 'dark' ? 'border-secondary-400' : 'border-secondary-dark',
87
+ info: theme === 'dark' ? 'border-info-400' : 'border-info-dark',
88
+ success: theme === 'dark' ? 'border-success-400' : 'border-success-dark',
89
+ warning: theme === 'dark' ? 'border-warning-400' : 'border-warning-dark',
90
+ danger: theme === 'dark' ? 'border-danger-400' : 'border-danger-dark',
91
+ control: theme === 'dark' ? 'border-control-400' : 'border-control-dark'
92
+ };
93
+ return colorMap[color] || colorMap['primary'];
94
+ };
95
+ exports.getDropdownBorderColor = getDropdownBorderColor;
96
+ /**
97
+ * Get dropdown item hover background based on theme
98
+ */
99
+ var getDropdownItemHoverBackground = function (theme) {
100
+ return theme === 'dark' ? 'hover:bg-control-700' : 'hover:bg-control-100';
101
+ };
102
+ exports.getDropdownItemHoverBackground = getDropdownItemHoverBackground;
103
+ /**
104
+ * Get dropdown item selected background based on theme
105
+ */
106
+ var getDropdownItemSelectedBackground = function (theme) {
107
+ return theme === 'dark' ? 'bg-control-700' : 'bg-control-100';
108
+ };
109
+ exports.getDropdownItemSelectedBackground = getDropdownItemSelectedBackground;
110
+ /**
111
+ * Get dropdown text color based on theme
112
+ */
113
+ var getDropdownTextColor = function (theme, isSelected) {
114
+ if (isSelected) {
115
+ return theme === 'dark' ? 'text-control-100' : 'text-control-800';
116
+ }
117
+ return theme === 'dark' ? 'text-control-300' : 'text-control-600';
118
+ };
119
+ exports.getDropdownTextColor = getDropdownTextColor;
120
+ //# sourceMappingURL=select-theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-theme.js","sourceRoot":"","sources":["../../select/select-theme.ts"],"names":[],"mappings":";;;AAEA,+CAAyE;AAEzE;;GAEG;AACI,IAAM,mBAAmB,GAAG,UAAC,KAAY,EAAE,OAA8B,EAAE,KAAa;IAC7F,IAAI,OAAO,KAAK,QAAQ,EAAE;QACxB,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,iCAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,kCAAmB,CAAC,KAAK,CAAC,CAAC;KAClF;IACD,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,WAAW,CAAC;AAC5D,C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