@apexcura/ui-components 0.0.12-Beta63 → 0.0.12-Beta65

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.css CHANGED
@@ -451,6 +451,34 @@ video {
451
451
  :where(.css-dev-only-do-not-override-1r287do).ant-radio-button-wrapper {
452
452
  border: 1px solid #919191;
453
453
  }
454
+ :where(.css-dev-only-do-not-override-1r287do).ant-input-affix-wrapper {
455
+ border: solid 1px #919191;
456
+ width: 275px;
457
+ height: 16px;
458
+ padding: 16px;
459
+ gap: 10px;
460
+ }
461
+ :where(.css-dev-only-do-not-override-1r287do).ant-input-outlined:hover {
462
+ border: solid 1px #919191;
463
+ }
464
+ :where(.css-dev-only-do-not-override-1r287do).ant-input-outlined:focus {
465
+ border: solid 1px #919191;
466
+ }
467
+ :where(.css-dev-only-do-not-override-1r287do).ant-input-outlined:focus-within {
468
+ border: solid 1px #919191;
469
+ }
470
+ :where(.css-dev-only-do-not-override-1r287do).ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before {
471
+ display: none;
472
+ }
473
+ :where(.css-dev-only-do-not-override-1r287do).ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::after {
474
+ display: none;
475
+ }
476
+ :where(.css-dev-only-do-not-override-1r287do).ant-radio-button-wrapper:not(:first-child)::before {
477
+ width: 0;
478
+ }
479
+ :where(.css-dev-only-do-not-override-1r287do).ant-radio-button-wrapper:first-child {
480
+ border-inline-start: 1px solid rgb(145 145 145);
481
+ }
454
482
  .hover\:bg-\[\#F2F2F2\]:hover {
455
483
  --tw-bg-opacity: 1;
456
484
  background-color: rgb(242 242 242 / var(--tw-bg-opacity));
package/dist/index.js CHANGED
@@ -187,6 +187,7 @@ var import_react6 = __toESM(require("react"));
187
187
  var import_antd6 = require("antd");
188
188
  var containerClassName = " ";
189
189
  var className = "bg-[#F2F2F2] border border-[#919191] !rounded-[8px] !m-[10px] hover:bg-[#F2F2F2] !text-center !text-black !shadow-[0px_0px_1px_1px_#919191]";
190
+ var selectedClassName = "!bg-[#E2D6F8] !border !border-[#B8A4DE] rounded-[8px] p-[6px] m-[10px] shadow-[0px_0px_1px_1px_#B8A4DE] text-center !text-black shadow-[0px_0px_1px_1px_#919191]";
190
191
  var RadioElement = (props) => {
191
192
  const [isDisabled, setIsDisabled] = (0, import_react6.useState)(props.disabled);
192
193
  const [selectedValue, setSelectedValue] = (0, import_react6.useState)(props.value);
@@ -200,6 +201,9 @@ var RadioElement = (props) => {
200
201
  props.onChange(selectedOptions);
201
202
  }
202
203
  };
204
+ const getButtonStyle = (option) => {
205
+ return selectedValue === option.value ? `${selectedClassName} ${option.selectedClassName}` : `${className} ${option.className}`;
206
+ };
203
207
  return /* @__PURE__ */ import_react6.default.createElement("div", { className: containerClassName }, /* @__PURE__ */ import_react6.default.createElement(
204
208
  import_antd6.Radio.Group,
205
209
  {
@@ -214,7 +218,7 @@ var RadioElement = (props) => {
214
218
  key: option.value,
215
219
  value: option.value,
216
220
  disabled: isDisabled && selectedValue !== option.value,
217
- className,
221
+ className: getButtonStyle(option),
218
222
  style: { pointerEvents: isDisabled && selectedValue !== option.value ? "none" : "auto" }
219
223
  },
220
224
  option.label
package/dist/index.mjs CHANGED
@@ -140,6 +140,7 @@ import React6, { useState as useState2 } from "react";
140
140
  import { Radio } from "antd";
141
141
  var containerClassName = " ";
142
142
  var className = "bg-[#F2F2F2] border border-[#919191] !rounded-[8px] !m-[10px] hover:bg-[#F2F2F2] !text-center !text-black !shadow-[0px_0px_1px_1px_#919191]";
143
+ var selectedClassName = "!bg-[#E2D6F8] !border !border-[#B8A4DE] rounded-[8px] p-[6px] m-[10px] shadow-[0px_0px_1px_1px_#B8A4DE] text-center !text-black shadow-[0px_0px_1px_1px_#919191]";
143
144
  var RadioElement = (props) => {
144
145
  const [isDisabled, setIsDisabled] = useState2(props.disabled);
145
146
  const [selectedValue, setSelectedValue] = useState2(props.value);
@@ -153,6 +154,9 @@ var RadioElement = (props) => {
153
154
  props.onChange(selectedOptions);
154
155
  }
155
156
  };
157
+ const getButtonStyle = (option) => {
158
+ return selectedValue === option.value ? `${selectedClassName} ${option.selectedClassName}` : `${className} ${option.className}`;
159
+ };
156
160
  return /* @__PURE__ */ React6.createElement("div", { className: containerClassName }, /* @__PURE__ */ React6.createElement(
157
161
  Radio.Group,
158
162
  {
@@ -167,7 +171,7 @@ var RadioElement = (props) => {
167
171
  key: option.value,
168
172
  value: option.value,
169
173
  disabled: isDisabled && selectedValue !== option.value,
170
- className,
174
+ className: getButtonStyle(option),
171
175
  style: { pointerEvents: isDisabled && selectedValue !== option.value ? "none" : "auto" }
172
176
  },
173
177
  option.label
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.12-Beta63",
3
+ "version": "0.0.12-Beta65",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",
@@ -25,9 +25,7 @@
25
25
  "types": "./dist/index.d.ts",
26
26
  "scripts": {
27
27
  "test": "jest",
28
- "build:css": "npx tailwindcss -i ./src/styles/index.css -o ./dist/styles.css",
29
- "build:ts": "tsup",
30
- "build": "npm run build:css && npm run build:ts"
28
+ "build": "tsup"
31
29
  },
32
30
  "devDependencies": {
33
31
  "@testing-library/jest-dom": "^6.4.2",
package/postcss.config.js CHANGED
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
2
+ plugins: [
3
+ require('tailwindcss'),
4
+ require('autoprefixer'),
5
+ ]
6
6
  }
@@ -1,10 +1,9 @@
1
- /** @type {import('tailwindcss').Config} */
2
1
  module.exports = {
3
2
  content: [
4
- "./src/**/*.{js,jsx,ts,tsx}",
3
+ "./src/**/*.{js,jsx,ts,tsx}", // Adjust this path according to your project structure
5
4
  ],
6
5
  theme: {
7
6
  extend: {},
8
7
  },
9
8
  plugins: [],
10
- }
9
+ };