@apexcura/ui-components 0.0.14-Beta244 → 0.0.14-Beta245

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.
package/dist/index.js CHANGED
@@ -189,6 +189,9 @@ var TextareaElement = (props) => {
189
189
  // src/Components/SelectElement.tsx
190
190
  var import_react5 = __toESM(require("react"));
191
191
  var import_antd5 = require("antd");
192
+ var filterOptions = (input, option) => {
193
+ return (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
194
+ };
192
195
  var SelectElement = (props) => {
193
196
  const handleChange = (value) => {
194
197
  console.log("++=====", typeof value);
@@ -208,17 +211,12 @@ var SelectElement = (props) => {
208
211
  return /* @__PURE__ */ import_react5.default.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ import_react5.default.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ import_react5.default.createElement(
209
212
  import_antd5.Select,
210
213
  {
211
- mode: props.mode,
212
214
  options: props.options,
213
215
  placeholder: props.placeholder,
214
216
  allowClear: true,
215
- defaultValue: props.defaultValue,
216
- disabled: props.disabled,
217
- id: props.name,
218
- status: props.status,
219
- style: props.styles,
217
+ filterOption: filterOptions,
218
+ showSearch: true,
220
219
  className: props.className,
221
- variant: props.variant,
222
220
  onChange: handleChange
223
221
  }
224
222
  ));
package/dist/index.mjs CHANGED
@@ -123,6 +123,9 @@ var TextareaElement = (props) => {
123
123
  // src/Components/SelectElement.tsx
124
124
  import React5 from "react";
125
125
  import { Select } from "antd";
126
+ var filterOptions = (input, option) => {
127
+ return (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
128
+ };
126
129
  var SelectElement = (props) => {
127
130
  const handleChange = (value) => {
128
131
  console.log("++=====", typeof value);
@@ -142,17 +145,12 @@ var SelectElement = (props) => {
142
145
  return /* @__PURE__ */ React5.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ React5.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ React5.createElement(
143
146
  Select,
144
147
  {
145
- mode: props.mode,
146
148
  options: props.options,
147
149
  placeholder: props.placeholder,
148
150
  allowClear: true,
149
- defaultValue: props.defaultValue,
150
- disabled: props.disabled,
151
- id: props.name,
152
- status: props.status,
153
- style: props.styles,
151
+ filterOption: filterOptions,
152
+ showSearch: true,
154
153
  className: props.className,
155
- variant: props.variant,
156
154
  onChange: handleChange
157
155
  }
158
156
  ));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta244",
3
+ "version": "0.0.14-Beta245",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",
@@ -25,7 +25,9 @@
25
25
  "types": "./dist/index.d.ts",
26
26
  "scripts": {
27
27
  "test": "jest",
28
- "build": "tsup"
28
+ "build:css": "postcss src/styles/index.css -o dist/index.css",
29
+ "build:js": "tsup src/index.ts --out-dir dist",
30
+ "build": "npm run build:css && npm run build:js"
29
31
  },
30
32
  "devDependencies": {
31
33
  "@testing-library/jest-dom": "^6.4.2",
@@ -36,8 +38,10 @@
36
38
  "@types/react-global-configuration": "^1.3.3",
37
39
  "@types/testing-library__react": "^10.2.0",
38
40
  "antd": "^5.16.5",
41
+ "autoprefixer": "^10.4.19",
39
42
  "jest": "^29.7.0",
40
43
  "jest-environment-jsdom": "^29.7.0",
44
+ "postcss-cli": "^11.0.0",
41
45
  "react": "^18.3.1",
42
46
  "react-dom": "^18.3.1",
43
47
  "ts-jest": "^29.1.2",
@@ -49,7 +53,6 @@
49
53
  },
50
54
  "dependencies": {
51
55
  "@tinymce/tinymce-react": "^5.0.1",
52
- "autoprefixer": "^10.4.19",
53
56
  "chart.js": "^4.4.3",
54
57
  "date-fns": "^3.6.0",
55
58
  "devextreme": "^24.1.3",
@@ -59,9 +62,8 @@
59
62
  "highcharts-react-official": "^3.2.1",
60
63
  "moment": "^2.30.1",
61
64
  "postcss": "^8.4.38",
62
- "postcss-import": "^16.1.0",
63
65
  "react-chartjs-2": "^5.2.0",
64
66
  "react-icons": "^5.2.1",
65
- "tailwindcss": "^3.4.3"
67
+ "tailwindcss": "^3.4.4"
66
68
  }
67
69
  }
package/postcss.config.js CHANGED
@@ -1,6 +1,7 @@
1
- module.exports = {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- }
1
+ module.exports = {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
+ }
7
+
@@ -1,10 +1,9 @@
1
- /** @type {import('tailwindcss').Config} */
2
1
  module.exports = {
3
2
 
4
3
  content: ['./src/**/*.{js,jsx,ts,tsx}'],
4
+
5
5
  theme: {
6
6
  extend: {},
7
7
  },
8
8
  plugins: [],
9
- }
10
-
9
+ };