@rockshin/tao-ui 0.0.16 → 0.0.19

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/README.md CHANGED
@@ -28,7 +28,7 @@ import { TaoProvider, Input, Select, Switch } from '@rockshin/tao-ui';
28
28
 
29
29
  export default function App() {
30
30
  return (
31
- <TaoProvider size="middle">
31
+ <TaoProvider size="medium">
32
32
  <Input placeholder="Search" />
33
33
  <Select options={[{ label: 'A', value: 'a' }]} />
34
34
  <Switch defaultChecked />
@@ -37,6 +37,31 @@ export default function App() {
37
37
  }
38
38
  ```
39
39
 
40
+ ### Dark mode
41
+
42
+ Pure-CSS dark algorithm — no JS runtime. One prop flips every component, including portaled popups (Modal, Drawer, Select dropdowns):
43
+
44
+ ```tsx
45
+ <TaoProvider theme={{ mode: 'dark' }}>
46
+ <App />
47
+ </TaoProvider>
48
+ ```
49
+
50
+ ### Fonts
51
+
52
+ Like antd, tao-ui **does not bundle fonts**. The stack is Geist-first with a full system fallback (incl. CJK), so everything renders well out of the box. To get the designed Geist look:
53
+
54
+ ```bash
55
+ pnpm add @fontsource/geist-sans @fontsource/geist-mono
56
+ ```
57
+
58
+ ```ts
59
+ import '@fontsource/geist-sans/400.css';
60
+ import '@fontsource/geist-sans/500.css';
61
+ import '@fontsource/geist-sans/600.css';
62
+ import '@fontsource/geist-mono/400.css';
63
+ ```
64
+
40
65
  ### Customizing internal parts
41
66
 
42
67
  ```tsx
@@ -52,10 +77,10 @@ export default function App() {
52
77
  |----------|-----------|
53
78
  | General | `Button` |
54
79
  | Layout | `Stack`, `FormLayout`, `Splitter` |
55
- | Navigation | `Tabs`, `Pagination` |
56
- | Data Entry | `Input`, `Select`, `Checkbox`, `Radio`, `Switch`, `DatePicker`, `RangePicker`, `FormField`, `FormSection`, `FormActions` |
57
- | Data Display | `Table`, `Tag`, `ScrollArea` |
58
- | Feedback | `Drawer` |
80
+ | Navigation | `Tabs`, `Pagination`, `Breadcrumb`, `Menu`, `Dropdown`, `ContextMenu` |
81
+ | Data Entry | `Input`, `Textarea`, `InputNumber`, `Select`, `Checkbox`, `Radio`, `Switch`, `DatePicker`, `RangePicker`, `FormField`, `FormSection`, `FormActions` |
82
+ | Data Display | `Table`, `Tag`, `ScrollArea`, `Collapsible` |
83
+ | Feedback | `Modal`, `Drawer`, `Sonner`, `Spinner` |
59
84
  | Config | `TaoProvider`, `useTaoConfig` |
60
85
 
61
86
  Headless utilities: `useNumberInput` / `NumberInput`, and the `cx` semantic-class helper.
@@ -101,6 +101,57 @@ button[data-tao-button]:disabled {
101
101
  cursor: not-allowed;
102
102
  }
103
103
 
104
+ [data-tao-button-icon] {
105
+ flex: none;
106
+ justify-content: center;
107
+ align-items: center;
108
+ width: 1.25em;
109
+ height: 1.25em;
110
+ display: inline-flex;
111
+ position: relative;
112
+ }
113
+
114
+ [data-tao-button-icon-idle], [data-tao-button-icon-spin] {
115
+ transition: opacity var(--tao-motion-duration-fast) var(--tao-motion-ease-out);
116
+ justify-content: center;
117
+ align-items: center;
118
+ line-height: 0;
119
+ display: inline-flex;
120
+ position: absolute;
121
+ inset: 0;
122
+ }
123
+
124
+ [data-tao-button-icon-idle] > svg, [data-tao-button-spinner] {
125
+ width: 1.25em;
126
+ height: 1.25em;
127
+ }
128
+
129
+ [data-tao-button-icon]:not([data-tao-loading]) [data-tao-button-icon-spin] {
130
+ opacity: 0;
131
+ }
132
+
133
+ [data-tao-button-icon]:not([data-tao-loading]) [data-tao-button-icon-idle] {
134
+ opacity: 1;
135
+ }
136
+
137
+ [data-tao-button-icon][data-tao-loading] [data-tao-button-icon-idle] {
138
+ opacity: 0;
139
+ }
140
+
141
+ [data-tao-button-icon][data-tao-loading] [data-tao-button-icon-spin] {
142
+ opacity: 1;
143
+ }
144
+
145
+ [data-tao-button-spinner] {
146
+ animation: .8s linear infinite tao-button-spin;
147
+ }
148
+
149
+ @keyframes tao-button-spin {
150
+ to {
151
+ transform: rotate(360deg);
152
+ }
153
+ }
154
+
104
155
  button[data-tao-button]:focus-visible {
105
156
  box-shadow: 0 0 0 var(--tao-ring-width) var(--tao-control-outline);
106
157
  outline: none;
@@ -8,8 +8,12 @@ export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement
8
8
  size?: TaoSize;
9
9
  disabled?: boolean;
10
10
  loading?: boolean;
11
+ /** Left-leading decorative icon (non-loading state). */
12
+ icon?: ReactNode;
13
+ /** Icon shown while loading. Defaults to a built-in spinner. */
14
+ loadingIcon?: ReactNode;
11
15
  children?: ReactNode;
12
16
  classNames?: SemanticClassNames<ButtonSemanticPart>;
13
17
  styles?: SemanticStyles<ButtonSemanticPart>;
14
18
  }
15
- export declare function Button({ variant, size, disabled, loading, children, className, style, classNames, styles, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function Button({ variant, size, disabled, loading, icon, loadingIcon, children, className, style, classNames, styles, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,73 +1,102 @@
1
- import { jsx } from "react/jsx-runtime";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { c } from "react/compiler-runtime";
3
3
  import { useTaoConfig } from "../../provider/tao-provider.js";
4
4
  import { cx } from "../../utils/semantic.js";
5
5
  import "./button.css";
6
6
  function Button(t0) {
7
- const $ = c(26);
7
+ const $ = c(34);
8
8
  let children;
9
9
  let className;
10
10
  let classNames;
11
11
  let disabled;
12
+ let icon;
12
13
  let loading;
14
+ let loadingIcon;
13
15
  let rest;
14
16
  let size;
15
17
  let style;
16
18
  let styles;
17
19
  let t1;
18
20
  if ($[0] !== t0) {
19
- ({ variant: t1, size, disabled, loading, children, className, style, classNames, styles, ...rest } = t0);
21
+ ({ variant: t1, size, disabled, loading, icon, loadingIcon, children, className, style, classNames, styles, ...rest } = t0);
20
22
  $[0] = t0;
21
23
  $[1] = children;
22
24
  $[2] = className;
23
25
  $[3] = classNames;
24
26
  $[4] = disabled;
25
- $[5] = loading;
26
- $[6] = rest;
27
- $[7] = size;
28
- $[8] = style;
29
- $[9] = styles;
30
- $[10] = t1;
27
+ $[5] = icon;
28
+ $[6] = loading;
29
+ $[7] = loadingIcon;
30
+ $[8] = rest;
31
+ $[9] = size;
32
+ $[10] = style;
33
+ $[11] = styles;
34
+ $[12] = t1;
31
35
  } else {
32
36
  children = $[1];
33
37
  className = $[2];
34
38
  classNames = $[3];
35
39
  disabled = $[4];
36
- loading = $[5];
37
- rest = $[6];
38
- size = $[7];
39
- style = $[8];
40
- styles = $[9];
41
- t1 = $[10];
40
+ icon = $[5];
41
+ loading = $[6];
42
+ loadingIcon = $[7];
43
+ rest = $[8];
44
+ size = $[9];
45
+ style = $[10];
46
+ styles = $[11];
47
+ t1 = $[12];
42
48
  }
43
49
  const variant = void 0 === t1 ? "primary" : t1;
44
50
  const ctx = useTaoConfig();
45
51
  const resolvedSize = size ?? ctx.size;
46
52
  const resolvedDisabled = disabled ?? ctx.disabled ?? false;
47
53
  const isDisabled = resolvedDisabled || loading;
54
+ const hasIconSlot = null != icon || loading;
48
55
  const t2 = classNames?.root;
49
56
  let t3;
50
- if ($[11] !== className || $[12] !== t2) {
57
+ if ($[13] !== className || $[14] !== t2) {
51
58
  t3 = cx(t2, className);
52
- $[11] = className;
53
- $[12] = t2;
54
- $[13] = t3;
55
- } else t3 = $[13];
59
+ $[13] = className;
60
+ $[14] = t2;
61
+ $[15] = t3;
62
+ } else t3 = $[15];
56
63
  const t4 = styles?.root;
57
64
  let t5;
58
- if ($[14] !== style || $[15] !== t4) {
65
+ if ($[16] !== style || $[17] !== t4) {
59
66
  t5 = {
60
67
  ...t4,
61
68
  ...style
62
69
  };
63
- $[14] = style;
64
- $[15] = t4;
65
- $[16] = t5;
66
- } else t5 = $[16];
70
+ $[16] = style;
71
+ $[17] = t4;
72
+ $[18] = t5;
73
+ } else t5 = $[18];
67
74
  const t6 = loading || void 0;
68
75
  let t7;
69
- if ($[17] !== children || $[18] !== isDisabled || $[19] !== resolvedSize || $[20] !== rest || $[21] !== t3 || $[22] !== t5 || $[23] !== t6 || $[24] !== variant) {
70
- t7 = /*#__PURE__*/ jsx("button", {
76
+ if ($[19] !== hasIconSlot || $[20] !== icon || $[21] !== loading || $[22] !== loadingIcon) {
77
+ t7 = hasIconSlot && /*#__PURE__*/ jsxs("span", {
78
+ "data-tao-button-icon": "",
79
+ "data-tao-loading": loading || void 0,
80
+ children: [
81
+ null != icon && /*#__PURE__*/ jsx("span", {
82
+ "data-tao-button-icon-idle": "",
83
+ children: icon
84
+ }),
85
+ /*#__PURE__*/ jsx("span", {
86
+ "data-tao-button-icon-spin": "",
87
+ children: loadingIcon ?? /*#__PURE__*/ jsx(LoadingSpinner, {})
88
+ })
89
+ ]
90
+ });
91
+ $[19] = hasIconSlot;
92
+ $[20] = icon;
93
+ $[21] = loading;
94
+ $[22] = loadingIcon;
95
+ $[23] = t7;
96
+ } else t7 = $[23];
97
+ let t8;
98
+ if ($[24] !== children || $[25] !== isDisabled || $[26] !== resolvedSize || $[27] !== rest || $[28] !== t3 || $[29] !== t5 || $[30] !== t6 || $[31] !== t7 || $[32] !== variant) {
99
+ t8 = /*#__PURE__*/ jsxs("button", {
71
100
  type: "button",
72
101
  ...rest,
73
102
  className: t3,
@@ -77,18 +106,46 @@ function Button(t0) {
77
106
  "data-tao-button": "",
78
107
  "data-tao-variant": variant,
79
108
  "data-tao-size": resolvedSize,
80
- children: children
109
+ children: [
110
+ t7,
111
+ children
112
+ ]
113
+ });
114
+ $[24] = children;
115
+ $[25] = isDisabled;
116
+ $[26] = resolvedSize;
117
+ $[27] = rest;
118
+ $[28] = t3;
119
+ $[29] = t5;
120
+ $[30] = t6;
121
+ $[31] = t7;
122
+ $[32] = variant;
123
+ $[33] = t8;
124
+ } else t8 = $[33];
125
+ return t8;
126
+ }
127
+ function LoadingSpinner() {
128
+ const $ = c(1);
129
+ let t0;
130
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
131
+ t0 = /*#__PURE__*/ jsx("svg", {
132
+ "data-tao-button-spinner": "",
133
+ viewBox: "0 0 50 50",
134
+ fill: "none",
135
+ "aria-hidden": "true",
136
+ focusable: "false",
137
+ children: /*#__PURE__*/ jsx("circle", {
138
+ cx: "25",
139
+ cy: "25",
140
+ r: "20",
141
+ stroke: "currentColor",
142
+ strokeWidth: "5",
143
+ strokeLinecap: "round",
144
+ strokeDasharray: "90 40"
145
+ })
81
146
  });
82
- $[17] = children;
83
- $[18] = isDisabled;
84
- $[19] = resolvedSize;
85
- $[20] = rest;
86
- $[21] = t3;
87
- $[22] = t5;
88
- $[23] = t6;
89
- $[24] = variant;
90
- $[25] = t7;
91
- } else t7 = $[25];
92
- return t7;
147
+ $[0] = t0;
148
+ } else t0 = $[0];
149
+ return t0;
93
150
  }
94
151
  export { Button };
@@ -4,7 +4,7 @@ import { createContext, useContext, useState } from "react";
4
4
  import { useTaoConfig } from "../../provider/tao-provider.js";
5
5
  import { cx } from "../../utils/semantic.js";
6
6
  import "./collapsible.css";
7
- import * as __rspack_external__radix_ui_react_collapsible_4615ddd5 from "@radix-ui/react-collapsible";
7
+ import * as __rspack_external__radix_ui_react_collapsible_4aef300f from "@radix-ui/react-collapsible";
8
8
  const Ctx = /*#__PURE__*/ createContext({});
9
9
  function Collapsible(props) {
10
10
  const $ = c(22);
@@ -56,7 +56,7 @@ function Collapsible(props) {
56
56
  } else t5 = $[11];
57
57
  let t6;
58
58
  if ($[12] !== children || $[13] !== realOpen || $[14] !== resolvedDisabled || $[15] !== setOpen || $[16] !== t3 || $[17] !== t5) {
59
- t6 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_collapsible_4615ddd5.Root, {
59
+ t6 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_collapsible_4aef300f.Root, {
60
60
  open: realOpen,
61
61
  onOpenChange: setOpen,
62
62
  disabled: resolvedDisabled,
@@ -110,7 +110,7 @@ function CollapsibleTrigger(props) {
110
110
  } else t3 = $[5];
111
111
  let t4;
112
112
  if ($[6] !== asChild || $[7] !== children || $[8] !== t1 || $[9] !== t3) {
113
- t4 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_collapsible_4615ddd5.Trigger, {
113
+ t4 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_collapsible_4aef300f.Trigger, {
114
114
  asChild: asChild,
115
115
  "data-tao-collapsible-trigger": "",
116
116
  className: t1,
@@ -150,7 +150,7 @@ function CollapsibleContent(props) {
150
150
  } else t3 = $[5];
151
151
  let t4;
152
152
  if ($[6] !== children || $[7] !== t1 || $[8] !== t3) {
153
- t4 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_collapsible_4615ddd5.Content, {
153
+ t4 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_collapsible_4aef300f.Content, {
154
154
  "data-tao-collapsible-content": "",
155
155
  className: t1,
156
156
  style: t3,
@@ -4,20 +4,20 @@ import { TaoPortalScope, useTaoConfig } from "../../provider/tao-provider.js";
4
4
  import { cx } from "../../utils/semantic.js";
5
5
  import { useMenuController } from "../menu/menu-render.js";
6
6
  import "./context-menu.css";
7
- import * as __rspack_external__radix_ui_react_context_menu_293d36e3 from "@radix-ui/react-context-menu";
7
+ import * as __rspack_external__radix_ui_react_context_menu_d8b375cc from "@radix-ui/react-context-menu";
8
8
  const CM = {
9
- Item: __rspack_external__radix_ui_react_context_menu_293d36e3.Item,
10
- CheckboxItem: __rspack_external__radix_ui_react_context_menu_293d36e3.CheckboxItem,
11
- RadioGroup: __rspack_external__radix_ui_react_context_menu_293d36e3.RadioGroup,
12
- RadioItem: __rspack_external__radix_ui_react_context_menu_293d36e3.RadioItem,
13
- Label: __rspack_external__radix_ui_react_context_menu_293d36e3.Label,
14
- Separator: __rspack_external__radix_ui_react_context_menu_293d36e3.Separator,
15
- Group: __rspack_external__radix_ui_react_context_menu_293d36e3.Group,
16
- Sub: __rspack_external__radix_ui_react_context_menu_293d36e3.Sub,
17
- SubTrigger: __rspack_external__radix_ui_react_context_menu_293d36e3.SubTrigger,
18
- SubContent: __rspack_external__radix_ui_react_context_menu_293d36e3.SubContent,
19
- Portal: __rspack_external__radix_ui_react_context_menu_293d36e3.Portal,
20
- ItemIndicator: __rspack_external__radix_ui_react_context_menu_293d36e3.ItemIndicator
9
+ Item: __rspack_external__radix_ui_react_context_menu_d8b375cc.Item,
10
+ CheckboxItem: __rspack_external__radix_ui_react_context_menu_d8b375cc.CheckboxItem,
11
+ RadioGroup: __rspack_external__radix_ui_react_context_menu_d8b375cc.RadioGroup,
12
+ RadioItem: __rspack_external__radix_ui_react_context_menu_d8b375cc.RadioItem,
13
+ Label: __rspack_external__radix_ui_react_context_menu_d8b375cc.Label,
14
+ Separator: __rspack_external__radix_ui_react_context_menu_d8b375cc.Separator,
15
+ Group: __rspack_external__radix_ui_react_context_menu_d8b375cc.Group,
16
+ Sub: __rspack_external__radix_ui_react_context_menu_d8b375cc.Sub,
17
+ SubTrigger: __rspack_external__radix_ui_react_context_menu_d8b375cc.SubTrigger,
18
+ SubContent: __rspack_external__radix_ui_react_context_menu_d8b375cc.SubContent,
19
+ Portal: __rspack_external__radix_ui_react_context_menu_d8b375cc.Portal,
20
+ ItemIndicator: __rspack_external__radix_ui_react_context_menu_d8b375cc.ItemIndicator
21
21
  };
22
22
  function ContextMenu(t0) {
23
23
  const $ = c(22);
@@ -37,7 +37,7 @@ function ContextMenu(t0) {
37
37
  const content = useMenuController(menu, CM, t1);
38
38
  let t2;
39
39
  if ($[3] !== children || $[4] !== resolvedDisabled) {
40
- t2 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_context_menu_293d36e3.Trigger, {
40
+ t2 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_context_menu_d8b375cc.Trigger, {
41
41
  disabled: resolvedDisabled,
42
42
  "data-tao-context-menu-trigger": "",
43
43
  children: children
@@ -67,10 +67,10 @@ function ContextMenu(t0) {
67
67
  } else t6 = $[11];
68
68
  let t7;
69
69
  if ($[12] !== content || $[13] !== size || $[14] !== t4 || $[15] !== t6) {
70
- t7 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_context_menu_293d36e3.Portal, {
70
+ t7 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_context_menu_d8b375cc.Portal, {
71
71
  children: /*#__PURE__*/ jsx(TaoPortalScope, {
72
72
  asChild: true,
73
- children: /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_context_menu_293d36e3.Content, {
73
+ children: /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_context_menu_d8b375cc.Content, {
74
74
  "data-tao-menu-content": "",
75
75
  "data-tao-context-menu": "",
76
76
  "data-tao-size": size,
@@ -88,7 +88,7 @@ function ContextMenu(t0) {
88
88
  } else t7 = $[16];
89
89
  let t8;
90
90
  if ($[17] !== onOpenChange || $[18] !== open || $[19] !== t2 || $[20] !== t7) {
91
- t8 = /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_context_menu_293d36e3.Root, {
91
+ t8 = /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_context_menu_d8b375cc.Root, {
92
92
  open: open,
93
93
  onOpenChange: onOpenChange,
94
94
  children: [
@@ -1,4 +1,4 @@
1
- button[data-tao-picker-trigger] {
1
+ [data-tao-picker-trigger] {
2
2
  align-items: center;
3
3
  gap: var(--tao-padding-xs);
4
4
  width: 100%;
@@ -10,21 +10,21 @@ button[data-tao-picker-trigger] {
10
10
  display: flex;
11
11
  }
12
12
 
13
- button[data-tao-picker-trigger][data-tao-size="small"] {
13
+ [data-tao-picker-trigger][data-tao-size="small"] {
14
14
  height: var(--tao-control-height-sm);
15
15
  padding-inline: var(--tao-padding-xs);
16
16
  font-size: var(--tao-font-size-sm);
17
17
  border-radius: var(--tao-radius-sm);
18
18
  }
19
19
 
20
- button[data-tao-picker-trigger][data-tao-size="medium"] {
20
+ [data-tao-picker-trigger][data-tao-size="medium"] {
21
21
  height: var(--tao-control-height);
22
22
  padding-inline: var(--tao-padding-sm);
23
23
  font-size: var(--tao-font-size-base);
24
24
  border-radius: var(--tao-radius-md);
25
25
  }
26
26
 
27
- button[data-tao-picker-trigger][data-tao-size="large"] {
27
+ [data-tao-picker-trigger][data-tao-size="large"] {
28
28
  height: var(--tao-control-height-lg);
29
29
  padding-inline: var(--tao-padding-sm);
30
30
  font-size: var(--tao-font-size-lg);
@@ -40,7 +40,15 @@ button[data-tao-picker-trigger][data-tao-size="large"] {
40
40
  overflow: hidden;
41
41
  }
42
42
 
43
- [data-tao-picker-placeholder] {
43
+ input[data-tao-picker-input] {
44
+ font: inherit;
45
+ background: none;
46
+ border: 0;
47
+ outline: 0;
48
+ padding: 0;
49
+ }
50
+
51
+ input[data-tao-picker-input]::placeholder, [data-tao-picker-placeholder] {
44
52
  color: var(--tao-color-text-placeholder);
45
53
  }
46
54
 
@@ -72,6 +80,14 @@ button[data-tao-picker-trigger][data-tao-size="large"] {
72
80
  color: var(--tao-color-text-tertiary);
73
81
  }
74
82
 
83
+ [data-tao-picker-icons][data-tao-clearable] [data-tao-picker-clear], [data-tao-picker-trigger]:hover [data-tao-picker-icons][data-tao-clearable] [data-tao-picker-suffix] {
84
+ display: none;
85
+ }
86
+
87
+ [data-tao-picker-trigger]:hover [data-tao-picker-icons][data-tao-clearable] [data-tao-picker-clear] {
88
+ display: flex;
89
+ }
90
+
75
91
  [data-tao-picker-clear] {
76
92
  color: var(--tao-color-text-quaternary);
77
93
  cursor: pointer;
@@ -93,7 +109,7 @@ button[data-tao-picker-trigger][data-tao-size="large"] {
93
109
  z-index: var(--tao-z-index-popup);
94
110
  width: auto;
95
111
  animation: tao-picker-in var(--tao-motion-duration-fast)
96
- cubic-bezier(.16, 1, .3, 1);
112
+ var(--tao-motion-ease-out-expo);
97
113
  overflow: hidden;
98
114
  }
99
115
 
@@ -550,7 +566,7 @@ button[data-tao-picker-footer-btn][data-tao-primary]:hover {
550
566
  background: var(--tao-primary-hover);
551
567
  }
552
568
 
553
- button[data-tao-range-trigger] {
569
+ [data-tao-range-trigger] {
554
570
  width: 100%;
555
571
  font-family: var(--tao-font-family);
556
572
  cursor: pointer;
@@ -562,21 +578,21 @@ button[data-tao-range-trigger] {
562
578
  display: flex;
563
579
  }
564
580
 
565
- button[data-tao-range-trigger][data-tao-size="small"] {
581
+ [data-tao-range-trigger][data-tao-size="small"] {
566
582
  height: var(--tao-control-height-sm);
567
583
  padding-inline: var(--tao-padding-xs);
568
584
  font-size: var(--tao-font-size-sm);
569
585
  border-radius: var(--tao-radius-sm);
570
586
  }
571
587
 
572
- button[data-tao-range-trigger][data-tao-size="medium"] {
588
+ [data-tao-range-trigger][data-tao-size="medium"] {
573
589
  height: var(--tao-control-height);
574
590
  padding-inline: var(--tao-padding-sm);
575
591
  font-size: var(--tao-font-size-base);
576
592
  border-radius: var(--tao-radius-md);
577
593
  }
578
594
 
579
- button[data-tao-range-trigger][data-tao-size="large"] {
595
+ [data-tao-range-trigger][data-tao-size="large"] {
580
596
  height: var(--tao-control-height-lg);
581
597
  padding-inline: var(--tao-padding-sm);
582
598
  font-size: var(--tao-font-size-lg);
@@ -588,11 +604,24 @@ button[data-tao-range-trigger][data-tao-size="large"] {
588
604
  white-space: nowrap;
589
605
  min-width: 0;
590
606
  color: var(--tao-color-text);
591
- text-align: center;
607
+ text-align: start;
592
608
  flex: 1;
593
609
  overflow: hidden;
594
610
  }
595
611
 
612
+ input[data-tao-range-input] {
613
+ font: inherit;
614
+ cursor: text;
615
+ background: none;
616
+ border: 0;
617
+ outline: 0;
618
+ padding: 0;
619
+ }
620
+
621
+ input[data-tao-range-input]::placeholder {
622
+ color: var(--tao-color-text-placeholder);
623
+ }
624
+
596
625
  [data-tao-range-input][data-tao-active] {
597
626
  color: var(--tao-primary);
598
627
  }