@tale-ui/react-styles 0.0.3

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.
@@ -0,0 +1,124 @@
1
+ /*
2
+ * Toolbar — @tale-ui/react
3
+ *
4
+ * Styled with @tale-ui/core design tokens.
5
+ * Base-ui Toolbar provides a horizontal row of buttons, inputs, and controls
6
+ * with keyboard navigation (arrow keys to move between items).
7
+ *
8
+ * Usage:
9
+ * <Toolbar.Root className="tale-toolbar">
10
+ * <Toolbar.Button className="tale-toolbar__button">Bold</Toolbar.Button>
11
+ * <Toolbar.Separator className="tale-toolbar__separator" />
12
+ * <Toolbar.Button className="tale-toolbar__button">Italic</Toolbar.Button>
13
+ * <Toolbar.Link className="tale-toolbar__link" href="/">Link</Toolbar.Link>
14
+ * <Toolbar.Input className="tale-toolbar__input tale-input" />
15
+ * </Toolbar.Root>
16
+ */
17
+
18
+ /* ─── Root — horizontal toolbar container ─────────────────────────────────── */
19
+
20
+ .tale-toolbar {
21
+ display: flex;
22
+ align-items: center;
23
+ gap: var(--space-4xs);
24
+ padding: var(--space-4xs) var(--space-3xs);
25
+ background-color: var(--neutral-12);
26
+ border: 1px solid var(--neutral-20);
27
+ border-radius: 0.8rem;
28
+ }
29
+
30
+ /* ─── Button ───────────────────────────────────────────────────────────────── */
31
+
32
+ .tale-toolbar__button {
33
+ display: inline-flex;
34
+ align-items: center;
35
+ justify-content: center;
36
+ gap: var(--space-4xs);
37
+ padding: var(--space-4xs) var(--space-3xs);
38
+ min-height: 3.2rem;
39
+ border: none;
40
+ border-radius: 0.5rem;
41
+ background-color: transparent;
42
+ color: var(--neutral-70);
43
+ font-family: var(--label-font-family);
44
+ font-size: var(--label-m-font-size);
45
+ font-weight: var(--label-font-weight);
46
+ cursor: pointer;
47
+ outline: none;
48
+ transition: background-color 0.15s ease, color 0.15s ease;
49
+ user-select: none;
50
+ }
51
+
52
+ .tale-toolbar__button:hover:not([disabled]) {
53
+ background-color: var(--neutral-18);
54
+ color: var(--neutral-90);
55
+ }
56
+
57
+ .tale-toolbar__button:active:not([disabled]) {
58
+ background-color: var(--neutral-22);
59
+ }
60
+
61
+ .tale-toolbar__button[aria-pressed="true"],
62
+ .tale-toolbar__button[data-pressed] {
63
+ background-color: var(--neutral-20);
64
+ color: var(--neutral-90);
65
+ }
66
+
67
+ .tale-toolbar__button:focus-visible {
68
+ box-shadow: 0 0 0 2px var(--color-60);
69
+ }
70
+
71
+ .tale-toolbar__button[disabled] {
72
+ opacity: 0.45;
73
+ cursor: not-allowed;
74
+ }
75
+
76
+ /* ─── Separator ────────────────────────────────────────────────────────────── */
77
+
78
+ .tale-toolbar__separator {
79
+ width: 1px;
80
+ height: 2rem;
81
+ background-color: var(--neutral-22);
82
+ flex-shrink: 0;
83
+ margin: 0 var(--space-4xs);
84
+ }
85
+
86
+ /* ─── Link ─────────────────────────────────────────────────────────────────── */
87
+
88
+ .tale-toolbar__link {
89
+ display: inline-flex;
90
+ align-items: center;
91
+ padding: var(--space-4xs) var(--space-3xs);
92
+ min-height: 3.2rem;
93
+ border-radius: 0.5rem;
94
+ color: var(--color-60);
95
+ font-family: var(--label-font-family);
96
+ font-size: var(--label-m-font-size);
97
+ font-weight: var(--label-font-weight);
98
+ text-decoration: none;
99
+ outline: none;
100
+ transition: background-color 0.15s ease;
101
+ }
102
+
103
+ .tale-toolbar__link:hover {
104
+ background-color: var(--neutral-14);
105
+ }
106
+
107
+ .tale-toolbar__link:focus-visible {
108
+ box-shadow: 0 0 0 2px var(--color-60);
109
+ }
110
+
111
+ /* ─── Group ────────────────────────────────────────────────────────────────── */
112
+
113
+ .tale-toolbar__group {
114
+ display: flex;
115
+ align-items: center;
116
+ gap: 0;
117
+ }
118
+
119
+ /* ─── Input ────────────────────────────────────────────────────────────────── */
120
+
121
+ .tale-toolbar__input {
122
+ height: 3.2rem;
123
+ min-height: unset;
124
+ }
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Tooltip — @tale-ui/react
3
+ *
4
+ * Styled with @tale-ui/core design tokens.
5
+ * Base-ui Tooltip exposes:
6
+ * Popup: [data-open] [data-closed] [data-starting-style] [data-ending-style]
7
+ * [data-side] [data-align] [data-instant]
8
+ * Trigger: [data-popup-open] [data-trigger-disabled]
9
+ *
10
+ * Usage:
11
+ * <Tooltip.Provider>
12
+ * <Tooltip.Root>
13
+ * <Tooltip.Trigger>Hover me</Tooltip.Trigger>
14
+ * <Tooltip.Portal>
15
+ * <Tooltip.Positioner>
16
+ * <Tooltip.Popup className="tale-tooltip__popup">Tooltip text</Tooltip.Popup>
17
+ * </Tooltip.Positioner>
18
+ * </Tooltip.Portal>
19
+ * </Tooltip.Root>
20
+ * </Tooltip.Provider>
21
+ */
22
+
23
+ /* ─── Popup ────────────────────────────────────────────────────────────────── */
24
+
25
+ .tale-tooltip__popup {
26
+ background-color: var(--neutral-80);
27
+ color: var(--neutral-10);
28
+ font-family: var(--label-font-family);
29
+ font-size: var(--label-s-font-size);
30
+ font-weight: var(--label-font-weight);
31
+ line-height: 1.4;
32
+ padding: var(--space-4xs) var(--space-3xs);
33
+ border-radius: 0.5rem;
34
+ max-width: 24rem;
35
+ word-break: break-word;
36
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
37
+ transition: opacity 0.1s ease, transform 0.1s ease;
38
+ pointer-events: none;
39
+ }
40
+
41
+ .tale-tooltip__popup[data-starting-style],
42
+ .tale-tooltip__popup[data-ending-style] {
43
+ opacity: 0;
44
+ transform: scale(0.96);
45
+ }
46
+
47
+ /* ─── Arrow ────────────────────────────────────────────────────────────────── */
48
+
49
+ .tale-tooltip__arrow {
50
+ width: 0.8rem;
51
+ height: 0.4rem;
52
+ fill: var(--neutral-80);
53
+ }