listpage-next 0.0.196 → 0.0.198

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.
@@ -28,10 +28,10 @@ const InlineLabel = styled_components.label`
28
28
  font-weight: 400;
29
29
  flex-shrink: 0;
30
30
  color: ${(props)=>{
31
- if ('disabled' === props.$status) return '#9ca3af';
32
- if ('error' === props.$status) return '#ef4444';
33
- if ('focused' === props.$status) return '#3b82f6';
34
- return '#374151';
31
+ if ('disabled' === props.$status) return 'var(--ant-color-text-disabled)';
32
+ if ('error' === props.$status) return 'var(--ant-color-error)';
33
+ if ('focused' === props.$status) return 'var(--ant-color-primary)';
34
+ return 'var(--ant-color-text)';
35
35
  }};
36
36
  `;
37
37
  const Label = styled_components.label`
@@ -61,14 +61,14 @@ const Label = styled_components.label`
61
61
  1px 1px 1px white;
62
62
 
63
63
  color: ${(props)=>{
64
- if ('disabled' === props.$status) return '#9ca3af';
65
- if ('error' === props.$status) return '#ef4444';
66
- if ('focused' === props.$status) return '#3b82f6';
67
- return '#374151';
64
+ if ('disabled' === props.$status) return 'var(--ant-color-text-disabled)';
65
+ if ('error' === props.$status) return 'var(--ant-color-error)';
66
+ if ('focused' === props.$status) return 'var(--ant-color-primary)';
67
+ return 'var(--ant-color-text)';
68
68
  }};
69
69
  `;
70
70
  const ErrorMessage = styled_components.div`
71
- color: #ef4444;
71
+ color: var(--ant-color-error);
72
72
  font-size: 0.75rem;
73
73
  margin-top: 0.25rem;
74
74
  `;
@@ -1,16 +1,4 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { styled } from "styled-components";
3
- const LinkStyle = styled.a`
4
- color: #1677ff;
5
- &:hover {
6
- color: #69b1ff;
7
- }
8
- outline: 0;
9
- text-decoration: none;
10
- transition: color 0.3s;
11
- background-color: transparent;
12
- cursor: pointer;
13
- `;
14
2
  const getPropName = (propName, record)=>{
15
3
  if ('function' == typeof propName) return propName(record);
16
4
  return record[propName];
@@ -18,7 +6,7 @@ const getPropName = (propName, record)=>{
18
6
  const linkRender = (value, record, index, props)=>{
19
7
  const title = getPropName(props?.titlePropName || 'title', record);
20
8
  const href = getPropName(props?.hrefPropName || 'href', record);
21
- return /*#__PURE__*/ jsx(LinkStyle, {
9
+ return /*#__PURE__*/ jsx("a", {
22
10
  href: href,
23
11
  target: props?.target,
24
12
  children: title
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage-next",
3
- "version": "0.0.196",
3
+ "version": "0.0.198",
4
4
  "description": "A React component library for creating filter forms with Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",