@ckwag/elements 0.0.1-dev.ba768cf → 0.0.1-dev.bef6bab
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 +18 -5
- package/dist/Badge/Badge.css +107 -0
- package/dist/Badge/Badge.d.ts +25 -0
- package/dist/Badge/Badge.d.ts.map +1 -0
- package/dist/Badge/Badge.js +42 -0
- package/dist/Badge/Badge.js.map +1 -0
- package/dist/Badge/index.d.ts +3 -0
- package/dist/Badge/index.d.ts.map +1 -0
- package/dist/Badge/index.js +2 -0
- package/dist/Badge/index.js.map +1 -0
- package/dist/Button/Button.css +2 -13
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/Button.d.ts.map +1 -1
- package/dist/Button/Button.js +4 -2
- package/dist/Button/Button.js.map +1 -1
- package/dist/InlineMessage/InlineMessage.css +28 -38
- package/dist/InlineMessage/InlineMessage.d.ts +2 -2
- package/dist/InlineMessage/InlineMessage.d.ts.map +1 -1
- package/dist/InlineMessage/InlineMessage.js +8 -5
- package/dist/InlineMessage/InlineMessage.js.map +1 -1
- package/dist/InputField/InputField.css +41 -11
- package/dist/InputField/InputField.d.ts +8 -2
- package/dist/InputField/InputField.d.ts.map +1 -1
- package/dist/InputField/InputField.js +9 -2
- package/dist/InputField/InputField.js.map +1 -1
- package/dist/LoadingSpinner/LoadingSpinner.d.ts +15 -0
- package/dist/LoadingSpinner/LoadingSpinner.d.ts.map +1 -0
- package/dist/LoadingSpinner/LoadingSpinner.js +44 -0
- package/dist/LoadingSpinner/LoadingSpinner.js.map +1 -0
- package/dist/LoadingSpinner/index.d.ts +3 -0
- package/dist/LoadingSpinner/index.d.ts.map +1 -0
- package/dist/LoadingSpinner/index.js +2 -0
- package/dist/LoadingSpinner/index.js.map +1 -0
- package/dist/PasswordInput/PasswordInput.css +3 -7
- package/dist/SegmentedControl/SegmentedControl.css +10 -9
- package/dist/SegmentedControl/SegmentedControl.d.ts +4 -4
- package/dist/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/SegmentedControl/SegmentedControl.js +4 -4
- package/dist/SegmentedControl/SegmentedControl.js.map +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/react/index.d.ts +3 -1
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +1 -0
- package/dist/react/index.js.map +1 -1
- package/dist/styles.css +1 -0
- package/dist/styles.layered.css +6 -0
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -22,6 +22,16 @@ Component CSS is imported as package side effects. If your bundler does not proc
|
|
|
22
22
|
@import '@ckwag/elements/styles.css';
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
For cascade-layered apps, opt in to layered package CSS instead of the default imports:
|
|
26
|
+
|
|
27
|
+
```css
|
|
28
|
+
@layer ckw-tokens, ckw-elements, app;
|
|
29
|
+
@import '@ckwag/elements-tokens/tokens.layered.css';
|
|
30
|
+
@import '@ckwag/elements/styles.layered.css';
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Gotham is licensed and is not bundled. Provide licensed Gotham files in your app with the family name `Gotham`; CKW tokens fall back to `"Helvetica Neue", Arial, system-ui, sans-serif` when Gotham is unavailable.
|
|
34
|
+
|
|
25
35
|
## Usage
|
|
26
36
|
|
|
27
37
|
```tsx
|
|
@@ -37,7 +47,7 @@ import {
|
|
|
37
47
|
export function Example() {
|
|
38
48
|
return (
|
|
39
49
|
<form>
|
|
40
|
-
<InlineMessage status="
|
|
50
|
+
<InlineMessage status="info" title="Statusmeldung">
|
|
41
51
|
Hier steht eine kurze Erklaerung zum aktuellen Status oder zur naechsten Aktion.
|
|
42
52
|
</InlineMessage>
|
|
43
53
|
<InputField label="Name" placeholder="Enter name" />
|
|
@@ -57,14 +67,17 @@ export function Example() {
|
|
|
57
67
|
|
|
58
68
|
## Exports
|
|
59
69
|
|
|
60
|
-
| Export
|
|
61
|
-
|
|
|
62
|
-
| `@ckwag/elements`
|
|
63
|
-
| `@ckwag/elements/
|
|
70
|
+
| Export | Description |
|
|
71
|
+
| ------------------------------------ | ------------------------------------------------ |
|
|
72
|
+
| `@ckwag/elements` | React component exports |
|
|
73
|
+
| `@ckwag/elements/react` | React component subpath export |
|
|
74
|
+
| `@ckwag/elements/styles.css` | Aggregate component CSS |
|
|
75
|
+
| `@ckwag/elements/styles.layered.css` | Aggregate component CSS in `@layer ckw-elements` |
|
|
64
76
|
|
|
65
77
|
## Rules
|
|
66
78
|
|
|
67
79
|
- Import `@ckwag/elements-tokens/tokens.css` before rendering components.
|
|
68
80
|
- Use semantic tokens for custom product UI.
|
|
81
|
+
- Use `ckw-text-*` typography utility classes for product text styles.
|
|
69
82
|
- Do not use primitive color tokens in product components.
|
|
70
83
|
- CKW primary actions are green through `var(--interactive-primary)`.
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Badge Styles
|
|
3
|
+
*
|
|
4
|
+
* Uses only semantic design tokens from @ckwag/elements-tokens.
|
|
5
|
+
* Statuses: Neutral, Info, Success, Warning, Error, Brand.
|
|
6
|
+
* Sizes: Medium (label-s), Small (caption-emphasized).
|
|
7
|
+
*
|
|
8
|
+
* With a leading icon the icon side gets less padding, so the badge looks
|
|
9
|
+
* optically balanced (same as the Figma component).
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/* ============================================
|
|
13
|
+
Root
|
|
14
|
+
============================================ */
|
|
15
|
+
|
|
16
|
+
.ckw-badge {
|
|
17
|
+
--ckw-badge-background: var(--background-control);
|
|
18
|
+
--ckw-badge-color: var(--text-primary);
|
|
19
|
+
--ckw-badge-padding-inline: var(--spacing-s);
|
|
20
|
+
--ckw-badge-padding-inline-icon: var(--spacing-xs);
|
|
21
|
+
--ckw-badge-icon-size: var(--spacing-m);
|
|
22
|
+
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: var(--spacing-2xs);
|
|
26
|
+
max-width: 100%;
|
|
27
|
+
padding: var(--spacing-3xs) var(--ckw-badge-padding-inline);
|
|
28
|
+
border-radius: var(--border-radius-full);
|
|
29
|
+
background-color: var(--ckw-badge-background);
|
|
30
|
+
color: var(--ckw-badge-color);
|
|
31
|
+
font-family: var(--font-family-brand), sans-serif;
|
|
32
|
+
font-size: var(--label-s-size);
|
|
33
|
+
line-height: var(--label-s-height);
|
|
34
|
+
font-weight: var(--label-s-weight);
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
vertical-align: middle;
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ckw-badge--has-icon {
|
|
41
|
+
padding-left: var(--ckw-badge-padding-inline-icon);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* ============================================
|
|
45
|
+
Status
|
|
46
|
+
============================================ */
|
|
47
|
+
|
|
48
|
+
.ckw-badge--info {
|
|
49
|
+
--ckw-badge-background: var(--status-info);
|
|
50
|
+
--ckw-badge-color: var(--status-info-text);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ckw-badge--success {
|
|
54
|
+
--ckw-badge-background: var(--status-success);
|
|
55
|
+
--ckw-badge-color: var(--status-success-text);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.ckw-badge--warning {
|
|
59
|
+
--ckw-badge-background: var(--status-warning);
|
|
60
|
+
--ckw-badge-color: var(--status-warning-text);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ckw-badge--error {
|
|
64
|
+
--ckw-badge-background: var(--status-error);
|
|
65
|
+
--ckw-badge-color: var(--status-error-text);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ckw-badge--brand {
|
|
69
|
+
--ckw-badge-background: var(--interactive-primary);
|
|
70
|
+
--ckw-badge-color: var(--text-on-interactive-primary);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* ============================================
|
|
74
|
+
Size
|
|
75
|
+
============================================ */
|
|
76
|
+
|
|
77
|
+
.ckw-badge--small {
|
|
78
|
+
--ckw-badge-padding-inline: var(--spacing-xs);
|
|
79
|
+
--ckw-badge-padding-inline-icon: var(--spacing-2xs);
|
|
80
|
+
--ckw-badge-icon-size: var(--spacing-s);
|
|
81
|
+
|
|
82
|
+
font-size: var(--caption-emphasized-size);
|
|
83
|
+
line-height: var(--caption-emphasized-height);
|
|
84
|
+
font-weight: var(--caption-emphasized-weight);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* ============================================
|
|
88
|
+
Elements
|
|
89
|
+
============================================ */
|
|
90
|
+
|
|
91
|
+
.ckw-badge__icon {
|
|
92
|
+
display: flex;
|
|
93
|
+
flex: 0 0 var(--ckw-badge-icon-size);
|
|
94
|
+
width: var(--ckw-badge-icon-size);
|
|
95
|
+
height: var(--ckw-badge-icon-size);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.ckw-badge__icon > svg {
|
|
99
|
+
width: 100%;
|
|
100
|
+
height: 100%;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.ckw-badge__label {
|
|
104
|
+
min-width: 0;
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
text-overflow: ellipsis;
|
|
107
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Badge.css';
|
|
3
|
+
export type BadgeStatus = 'neutral' | 'info' | 'success' | 'warning' | 'error' | 'brand';
|
|
4
|
+
export type BadgeSize = 'medium' | 'small';
|
|
5
|
+
export interface BadgeProps extends Omit<React.ComponentProps<'span'>, 'children'> {
|
|
6
|
+
/** Short label, one or two words. The meaning must always be in the text. */
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
/** Semantic status. Brand is the only filled variant and is meant for highlights. */
|
|
9
|
+
status?: BadgeStatus;
|
|
10
|
+
/** Badge size. */
|
|
11
|
+
size?: BadgeSize;
|
|
12
|
+
/** Shows the leading icon. Info, Success, Warning and Error have a default status icon. */
|
|
13
|
+
showIcon?: boolean;
|
|
14
|
+
/** Optional custom icon. Required for Neutral and Brand when showIcon is true. */
|
|
15
|
+
icon?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Badge shows a short, non-interactive status or attribute label,
|
|
19
|
+
* for example the status of an invoice or a "Neu" marker.
|
|
20
|
+
*
|
|
21
|
+
* The icon is decorative and hidden from assistive technology,
|
|
22
|
+
* because the label always carries the meaning.
|
|
23
|
+
*/
|
|
24
|
+
export declare function Badge({ children, status, size, showIcon, icon, className, ...props }: BadgeProps): React.JSX.Element;
|
|
25
|
+
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../src/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,aAAa,CAAC;AAErB,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AACzF,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE3C,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC;IAChF,6EAA6E;IAC7E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qFAAqF;IACrF,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,kBAAkB;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kFAAkF;IAClF,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AA0BD;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,MAAkB,EAClB,IAAe,EACf,QAAgB,EAChB,IAAI,EACJ,SAAS,EACT,GAAG,KAAK,EACT,EAAE,UAAU,qBAwBZ"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconCheckCircleFilled, IconInformation, IconWarningCircleFilled, IconWarningFilled, } from '@ckwag/elements-icons';
|
|
3
|
+
import './Badge.css';
|
|
4
|
+
function BadgeDefaultIcon({ status }) {
|
|
5
|
+
if (status === 'success') {
|
|
6
|
+
return React.createElement(IconCheckCircleFilled, null);
|
|
7
|
+
}
|
|
8
|
+
if (status === 'warning') {
|
|
9
|
+
return React.createElement(IconWarningFilled, null);
|
|
10
|
+
}
|
|
11
|
+
if (status === 'error') {
|
|
12
|
+
return React.createElement(IconWarningCircleFilled, null);
|
|
13
|
+
}
|
|
14
|
+
if (status === 'info') {
|
|
15
|
+
return React.createElement(IconInformation, null);
|
|
16
|
+
}
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Badge shows a short, non-interactive status or attribute label,
|
|
21
|
+
* for example the status of an invoice or a "Neu" marker.
|
|
22
|
+
*
|
|
23
|
+
* The icon is decorative and hidden from assistive technology,
|
|
24
|
+
* because the label always carries the meaning.
|
|
25
|
+
*/
|
|
26
|
+
export function Badge({ children, status = 'neutral', size = 'medium', showIcon = false, icon, className, ...props }) {
|
|
27
|
+
const renderedIcon = showIcon ? (icon ?? React.createElement(BadgeDefaultIcon, { status: status })) : null;
|
|
28
|
+
const hasIcon = renderedIcon !== null;
|
|
29
|
+
const rootClasses = [
|
|
30
|
+
'ckw-badge',
|
|
31
|
+
`ckw-badge--${status.toLowerCase()}`,
|
|
32
|
+
`ckw-badge--${size.toLowerCase()}`,
|
|
33
|
+
hasIcon ? 'ckw-badge--has-icon' : '',
|
|
34
|
+
className ?? '',
|
|
35
|
+
]
|
|
36
|
+
.filter(Boolean)
|
|
37
|
+
.join(' ');
|
|
38
|
+
return (React.createElement("span", { className: rootClasses, ...props },
|
|
39
|
+
hasIcon && (React.createElement("span", { className: "ckw-badge__icon", "aria-hidden": "true" }, renderedIcon)),
|
|
40
|
+
React.createElement("span", { className: "ckw-badge__label" }, children)));
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=Badge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../src/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,aAAa,CAAC;AAsBrB,SAAS,gBAAgB,CAAC,EAAE,MAAM,EAAyB;IACzD,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,oBAAC,qBAAqB,OAAG,CAAC;IACnC,CAAC;IAED,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,oBAAC,iBAAiB,OAAG,CAAC;IAC/B,CAAC;IAED,IAAI,MAAM,KAAK,OAAO,EAAE,CAAC;QACvB,OAAO,oBAAC,uBAAuB,OAAG,CAAC;IACrC,CAAC;IAED,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;QACtB,OAAO,oBAAC,eAAe,OAAG,CAAC;IAC7B,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,KAAK,CAAC,EACpB,QAAQ,EACR,MAAM,GAAG,SAAS,EAClB,IAAI,GAAG,QAAQ,EACf,QAAQ,GAAG,KAAK,EAChB,IAAI,EACJ,SAAS,EACT,GAAG,KAAK,EACG;IACX,MAAM,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,oBAAC,gBAAgB,IAAC,MAAM,EAAE,MAAM,GAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACtF,MAAM,OAAO,GAAG,YAAY,KAAK,IAAI,CAAC;IAEtC,MAAM,WAAW,GAAG;QAClB,WAAW;QACX,cAAc,MAAM,CAAC,WAAW,EAAE,EAAE;QACpC,cAAc,IAAI,CAAC,WAAW,EAAE,EAAE;QAClC,OAAO,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE;QACpC,SAAS,IAAI,EAAE;KAChB;SACE,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,CAAC;IAEb,OAAO,CACL,8BAAM,SAAS,EAAE,WAAW,KAAM,KAAK;QACpC,OAAO,IAAI,CACV,8BAAM,SAAS,EAAC,iBAAiB,iBAAa,MAAM,IACjD,YAAY,CACR,CACR;QACD,8BAAM,SAAS,EAAC,kBAAkB,IAAE,QAAQ,CAAQ,CAC/C,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/Button/Button.css
CHANGED
|
@@ -202,26 +202,15 @@
|
|
|
202
202
|
.ckw-button__spinner {
|
|
203
203
|
width: 20px;
|
|
204
204
|
height: 20px;
|
|
205
|
-
border-radius: var(--border-radius-full);
|
|
206
|
-
border: var(--border-weight-s) solid currentColor;
|
|
207
|
-
border-top-color: transparent;
|
|
208
|
-
opacity: 0.9;
|
|
209
|
-
animation: ckw-button-spin 600ms linear infinite;
|
|
210
205
|
}
|
|
211
206
|
|
|
212
207
|
.ckw-button--loading {
|
|
213
208
|
cursor: progress;
|
|
214
209
|
}
|
|
215
210
|
|
|
216
|
-
@keyframes ckw-button-spin {
|
|
217
|
-
to {
|
|
218
|
-
transform: rotate(360deg);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
211
|
@media (prefers-reduced-motion: reduce) {
|
|
223
|
-
.ckw-button__spinner {
|
|
224
|
-
animation:
|
|
212
|
+
.ckw-button__spinner svg {
|
|
213
|
+
animation-play-state: paused;
|
|
225
214
|
}
|
|
226
215
|
}
|
|
227
216
|
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './Button.css';
|
|
3
3
|
export type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
|
|
4
|
-
export type ButtonSize = '
|
|
4
|
+
export type ButtonSize = 'large' | 'medium' | 'small';
|
|
5
5
|
export interface ButtonProps extends React.ComponentProps<'button'> {
|
|
6
6
|
/** The visible button label. */
|
|
7
7
|
children: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,cAAc,CAAC;AAEtB,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;AACjE,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC;IACjE,gCAAgC;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,4BAA4B;IAC5B,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,0BAA0B;IAC1B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,wCAAwC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sCAAsC;IACtC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,qCAAqC;IACrC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,qFAAqF;IACrF,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,oGAkDjB,CAAC"}
|
package/dist/Button/Button.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { LoadingSpinner } from '../LoadingSpinner/LoadingSpinner.js';
|
|
2
3
|
import './Button.css';
|
|
3
4
|
/**
|
|
4
5
|
* Primary UI component for user interaction.
|
|
@@ -7,7 +8,7 @@ import './Button.css';
|
|
|
7
8
|
* (Large, Medium, Small), and optional leading/trailing icons. All styling
|
|
8
9
|
* uses semantic design tokens — no hardcoded colors.
|
|
9
10
|
*/
|
|
10
|
-
export const Button = React.forwardRef(function Button({ children, variant = 'primary', size = '
|
|
11
|
+
export const Button = React.forwardRef(function Button({ children, variant = 'primary', size = 'large', disabled = false, fullWidth = false, leadingIcon, trailingIcon, loading = false, className, type = 'button', 'aria-busy': ariaBusy, ...props }, ref) {
|
|
11
12
|
const variantClass = `ckw-button--${variant}`;
|
|
12
13
|
const sizeClass = `ckw-button--${size.toLowerCase()}`;
|
|
13
14
|
const classes = [
|
|
@@ -21,7 +22,8 @@ export const Button = React.forwardRef(function Button({ children, variant = 'pr
|
|
|
21
22
|
.filter(Boolean)
|
|
22
23
|
.join(' ');
|
|
23
24
|
return (React.createElement("button", { ...props, ref: ref, className: classes, type: type, disabled: disabled || loading, "aria-busy": loading ? true : ariaBusy },
|
|
24
|
-
loading ? (React.createElement("span", { className: "ckw-button__icon ckw-button__spinner", "aria-hidden": "true" }
|
|
25
|
+
loading ? (React.createElement("span", { className: "ckw-button__icon ckw-button__spinner", "aria-hidden": "true" },
|
|
26
|
+
React.createElement(LoadingSpinner, { size: 24 }))) : (leadingIcon && React.createElement("span", { className: "ckw-button__icon" }, leadingIcon)),
|
|
25
27
|
children,
|
|
26
28
|
trailingIcon && React.createElement("span", { className: "ckw-button__icon" }, trailingIcon)));
|
|
27
29
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,cAAc,CAAC;AAsBtB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAAiC,SAAS,MAAM,CACpF,EACE,QAAQ,EACR,OAAO,GAAG,SAAS,EACnB,IAAI,GAAG,OAAO,EACd,QAAQ,GAAG,KAAK,EAChB,SAAS,GAAG,KAAK,EACjB,WAAW,EACX,YAAY,EACZ,OAAO,GAAG,KAAK,EACf,SAAS,EACT,IAAI,GAAG,QAAQ,EACf,WAAW,EAAE,QAAQ,EACrB,GAAG,KAAK,EACT,EACD,GAAG;IAEH,MAAM,YAAY,GAAG,eAAe,OAAO,EAAE,CAAC;IAC9C,MAAM,SAAS,GAAG,eAAe,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;IACtD,MAAM,OAAO,GAAG;QACd,YAAY;QACZ,YAAY;QACZ,SAAS;QACT,SAAS,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE;QACzC,OAAO,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE;QACpC,SAAS,IAAI,EAAE;KAChB;SACE,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,CAAC;IAEb,OAAO,CACL,mCACM,KAAK,EACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE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,EACV,QAAQ,EAAE,QAAQ,IAAI,OAAO,eAClB,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ;QAEnC,OAAO,CAAC,CAAC,CAAC,CACT,8BAAM,SAAS,EAAC,sCAAsC,iBAAa,MAAM;YACvE,oBAAC,cAAc,IAAC,IAAI,EAAE,EAAE,GAAI,CACvB,CACR,CAAC,CAAC,CAAC,CACF,WAAW,IAAI,8BAAM,SAAS,EAAC,kBAAkB,IAAE,WAAW,CAAQ,CACvE;QACA,QAAQ;QACR,YAAY,IAAI,8BAAM,SAAS,EAAC,kBAAkB,IAAE,YAAY,CAAQ,CAClE,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
* Inline Message Styles
|
|
3
3
|
*
|
|
4
4
|
* Uses only semantic design tokens from @ckwag/elements-tokens.
|
|
5
|
-
* Variants: Info, Success, Error.
|
|
5
|
+
* Variants: Info, Success, Warning, Error.
|
|
6
6
|
* Responsive behavior follows the Figma Desktop/Mobile variants by default.
|
|
7
|
+
*
|
|
8
|
+
* Layout: the status bar is an inset flex item with rounded ends that stretches
|
|
9
|
+
* to the height of the content. The icon is as tall as one line of text and is
|
|
10
|
+
* top-aligned with the first line.
|
|
7
11
|
*/
|
|
8
12
|
|
|
9
13
|
/* ============================================
|
|
@@ -12,12 +16,15 @@
|
|
|
12
16
|
|
|
13
17
|
.ckw-inline-message {
|
|
14
18
|
--ckw-inline-message-status-color: var(--status-info-border);
|
|
19
|
+
--ckw-inline-message-gap: var(--spacing-s);
|
|
20
|
+
--ckw-inline-message-icon-size: var(--spacing-xl);
|
|
15
21
|
|
|
16
22
|
display: flex;
|
|
23
|
+
gap: var(--ckw-inline-message-gap);
|
|
17
24
|
width: 100%;
|
|
18
25
|
max-width: 100%;
|
|
19
|
-
|
|
20
|
-
border-radius: var(--border-radius-
|
|
26
|
+
padding: var(--spacing-m);
|
|
27
|
+
border-radius: var(--border-radius-m);
|
|
21
28
|
background-color: var(--background-default);
|
|
22
29
|
color: var(--text-primary);
|
|
23
30
|
font-family: var(--font-family-brand), sans-serif;
|
|
@@ -34,17 +41,22 @@
|
|
|
34
41
|
--ckw-inline-message-status-color: var(--status-success-border);
|
|
35
42
|
}
|
|
36
43
|
|
|
44
|
+
.ckw-inline-message--warning {
|
|
45
|
+
--ckw-inline-message-status-color: var(--status-warning-border);
|
|
46
|
+
}
|
|
47
|
+
|
|
37
48
|
.ckw-inline-message--error {
|
|
38
49
|
--ckw-inline-message-status-color: var(--status-error-border);
|
|
39
50
|
}
|
|
40
51
|
|
|
41
52
|
/* ============================================
|
|
42
|
-
Status
|
|
53
|
+
Status Bar
|
|
43
54
|
============================================ */
|
|
44
55
|
|
|
45
56
|
.ckw-inline-message__status {
|
|
46
|
-
flex: 0 0 var(--spacing-
|
|
47
|
-
|
|
57
|
+
flex: 0 0 var(--spacing-2xs);
|
|
58
|
+
align-self: stretch;
|
|
59
|
+
border-radius: var(--border-radius-full);
|
|
48
60
|
background-color: var(--ckw-inline-message-status-color);
|
|
49
61
|
}
|
|
50
62
|
|
|
@@ -56,26 +68,20 @@
|
|
|
56
68
|
display: flex;
|
|
57
69
|
flex: 1 1 auto;
|
|
58
70
|
min-width: 0;
|
|
59
|
-
gap: var(--
|
|
71
|
+
gap: var(--ckw-inline-message-gap);
|
|
60
72
|
align-items: flex-start;
|
|
61
|
-
padding: var(--spacing-m) var(--spacing-l);
|
|
62
|
-
background-color: var(--background-default);
|
|
63
73
|
}
|
|
64
74
|
|
|
65
75
|
.ckw-inline-message__icon {
|
|
66
76
|
display: flex;
|
|
67
77
|
align-items: center;
|
|
68
78
|
justify-content: center;
|
|
69
|
-
flex: 0 0
|
|
70
|
-
width:
|
|
71
|
-
height:
|
|
79
|
+
flex: 0 0 var(--ckw-inline-message-icon-size);
|
|
80
|
+
width: var(--ckw-inline-message-icon-size);
|
|
81
|
+
height: var(--ckw-inline-message-icon-size);
|
|
72
82
|
color: var(--ckw-inline-message-status-color);
|
|
73
83
|
}
|
|
74
84
|
|
|
75
|
-
.ckw-inline-message--has-title .ckw-inline-message__icon {
|
|
76
|
-
margin-top: var(--spacing-2xs);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
85
|
.ckw-inline-message__icon > svg {
|
|
80
86
|
width: 100%;
|
|
81
87
|
height: 100%;
|
|
@@ -108,19 +114,9 @@
|
|
|
108
114
|
Mobile Breakpoint
|
|
109
115
|
============================================ */
|
|
110
116
|
|
|
111
|
-
.ckw-inline-message--breakpoint-mobile
|
|
112
|
-
gap: var(--spacing-
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.ckw-inline-message--breakpoint-mobile .ckw-inline-message__icon {
|
|
117
|
-
flex-basis: var(--spacing-xl);
|
|
118
|
-
width: var(--spacing-xl);
|
|
119
|
-
height: var(--spacing-xl);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.ckw-inline-message--breakpoint-mobile.ckw-inline-message--has-title .ckw-inline-message__icon {
|
|
123
|
-
margin-top: var(--spacing-2xs);
|
|
117
|
+
.ckw-inline-message--breakpoint-mobile {
|
|
118
|
+
--ckw-inline-message-gap: var(--spacing-xs);
|
|
119
|
+
--ckw-inline-message-icon-size: var(--spacing-l);
|
|
124
120
|
}
|
|
125
121
|
|
|
126
122
|
.ckw-inline-message--breakpoint-mobile .ckw-inline-message__title {
|
|
@@ -136,15 +132,9 @@
|
|
|
136
132
|
}
|
|
137
133
|
|
|
138
134
|
@media (max-width: 767px) {
|
|
139
|
-
.ckw-inline-message:not(.ckw-inline-message--breakpoint-desktop)
|
|
140
|
-
gap: var(--spacing-
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.ckw-inline-message:not(.ckw-inline-message--breakpoint-desktop) .ckw-inline-message__icon {
|
|
145
|
-
flex-basis: var(--spacing-xl);
|
|
146
|
-
width: var(--spacing-xl);
|
|
147
|
-
height: var(--spacing-xl);
|
|
135
|
+
.ckw-inline-message:not(.ckw-inline-message--breakpoint-desktop) {
|
|
136
|
+
--ckw-inline-message-gap: var(--spacing-xs);
|
|
137
|
+
--ckw-inline-message-icon-size: var(--spacing-l);
|
|
148
138
|
}
|
|
149
139
|
|
|
150
140
|
.ckw-inline-message:not(.ckw-inline-message--breakpoint-desktop) .ckw-inline-message__title {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './InlineMessage.css';
|
|
3
|
-
export type InlineMessageStatus = '
|
|
4
|
-
export type InlineMessageBreakpoint = '
|
|
3
|
+
export type InlineMessageStatus = 'info' | 'success' | 'warning' | 'error';
|
|
4
|
+
export type InlineMessageBreakpoint = 'auto' | 'desktop' | 'mobile';
|
|
5
5
|
export interface InlineMessageProps {
|
|
6
6
|
/** Optional headline shown above the body text. */
|
|
7
7
|
title?: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlineMessage.d.ts","sourceRoot":"","sources":["../../src/InlineMessage/InlineMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"InlineMessage.d.ts","sourceRoot":"","sources":["../../src/InlineMessage/InlineMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,qBAAqB,CAAC;AAE7B,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAC3E,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEpE,MAAM,WAAW,kBAAkB;IACjC,mDAAmD;IACnD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,oCAAoC;IACpC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,+BAA+B;IAC/B,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,mEAAmE;IACnE,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mGAAmG;IACnG,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,iDAAiD;IACjD,IAAI,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACtB,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAsBD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,QAAQ,EACR,MAAe,EACf,IAAI,EACJ,QAAe,EACf,UAAmB,EACnB,IAAa,EACb,SAAS,GACV,EAAE,kBAAkB,qBA8BpB"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IconCheckCircleFilled, IconInformation, IconWarningCircleFilled, } from '@ckwag/elements-icons';
|
|
2
|
+
import { IconCheckCircleFilled, IconInformation, IconWarningCircleFilled, IconWarningFilled, } from '@ckwag/elements-icons';
|
|
3
3
|
import './InlineMessage.css';
|
|
4
4
|
function InlineMessageDefaultIcon({ status }) {
|
|
5
|
-
if (status === '
|
|
5
|
+
if (status === 'success') {
|
|
6
6
|
return React.createElement(IconCheckCircleFilled, null);
|
|
7
7
|
}
|
|
8
|
-
if (status === '
|
|
8
|
+
if (status === 'warning') {
|
|
9
|
+
return React.createElement(IconWarningFilled, null);
|
|
10
|
+
}
|
|
11
|
+
if (status === 'error') {
|
|
9
12
|
return React.createElement(IconWarningCircleFilled, null);
|
|
10
13
|
}
|
|
11
14
|
return React.createElement(IconInformation, null);
|
|
@@ -16,13 +19,13 @@ function InlineMessageDefaultIcon({ status }) {
|
|
|
16
19
|
* Use it for non-time-critical status updates, confirmations, limitations,
|
|
17
20
|
* or errors that should remain visible near the related content.
|
|
18
21
|
*/
|
|
19
|
-
export function InlineMessage({ title, children, status = '
|
|
22
|
+
export function InlineMessage({ title, children, status = 'info', icon, showIcon = true, breakpoint = 'auto', role = 'note', className, }) {
|
|
20
23
|
const rootClasses = [
|
|
21
24
|
'ckw-inline-message',
|
|
22
25
|
`ckw-inline-message--${status.toLowerCase()}`,
|
|
23
26
|
title ? 'ckw-inline-message--has-title' : '',
|
|
24
27
|
showIcon ? 'ckw-inline-message--has-icon' : '',
|
|
25
|
-
breakpoint !== '
|
|
28
|
+
breakpoint !== 'auto' ? `ckw-inline-message--breakpoint-${breakpoint.toLowerCase()}` : '',
|
|
26
29
|
className ?? '',
|
|
27
30
|
]
|
|
28
31
|
.filter(Boolean)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlineMessage.js","sourceRoot":"","sources":["../../src/InlineMessage/InlineMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,uBAAuB,
|
|
1
|
+
{"version":3,"file":"InlineMessage.js","sourceRoot":"","sources":["../../src/InlineMessage/InlineMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,qBAAqB,CAAC;AA4B7B,SAAS,wBAAwB,CAAC,EAAE,MAAM,EAAiC;IACzE,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,oBAAC,qBAAqB,OAAG,CAAC;IACnC,CAAC;IAED,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,oBAAC,iBAAiB,OAAG,CAAC;IAC/B,CAAC;IAED,IAAI,MAAM,KAAK,OAAO,EAAE,CAAC;QACvB,OAAO,oBAAC,uBAAuB,OAAG,CAAC;IACrC,CAAC;IAED,OAAO,oBAAC,eAAe,OAAG,CAAC;AAC7B,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,EAC5B,KAAK,EACL,QAAQ,EACR,MAAM,GAAG,MAAM,EACf,IAAI,EACJ,QAAQ,GAAG,IAAI,EACf,UAAU,GAAG,MAAM,EACnB,IAAI,GAAG,MAAM,EACb,SAAS,GACU;IACnB,MAAM,WAAW,GAAG;QAClB,oBAAoB;QACpB,uBAAuB,MAAM,CAAC,WAAW,EAAE,EAAE;QAC7C,KAAK,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,EAAE;QAC5C,QAAQ,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,EAAE;QAC9C,UAAU,KAAK,MAAM,CAAC,CAAC,CAAC,kCAAkC,UAAU,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE;QACzF,SAAS,IAAI,EAAE;KAChB;SACE,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,CAAC;IAEb,MAAM,YAAY,GAAG,IAAI,IAAI,oBAAC,wBAAwB,IAAC,MAAM,EAAE,MAAM,GAAI,CAAC;IAE1E,OAAO,CACL,6BAAK,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI;QACrC,6BAAK,SAAS,EAAC,4BAA4B,iBAAa,MAAM,GAAG;QACjE,6BAAK,SAAS,EAAC,6BAA6B;YACzC,QAAQ,IAAI,CACX,8BAAM,SAAS,EAAC,0BAA0B,iBAAa,MAAM,IAC1D,YAAY,CACR,CACR;YACD,6BAAK,SAAS,EAAC,0BAA0B;gBACtC,KAAK,IAAI,6BAAK,SAAS,EAAC,2BAA2B,IAAE,KAAK,CAAO;gBAClE,6BAAK,SAAS,EAAC,0BAA0B,IAAE,QAAQ,CAAO,CACtD,CACF,CACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Border strategy (no layout shift):
|
|
8
8
|
* - The base border is always border-weight-s (1px) via CSS border.
|
|
9
|
-
* - Hover
|
|
9
|
+
* - Hover turns the 1px border green (border-active); the outline ring is reserved for focus.
|
|
10
|
+
* - Focus keeps the white field and adds the green border plus a soft outline ring.
|
|
10
11
|
* - Active/Focus uses an inset box-shadow for the thick active border
|
|
11
12
|
* to avoid changing border-width (which causes layout shift).
|
|
12
13
|
* - Error uses the same inset box-shadow technique.
|
|
@@ -48,7 +49,7 @@
|
|
|
48
49
|
font-size: var(--label-s-size);
|
|
49
50
|
line-height: var(--label-s-height);
|
|
50
51
|
font-weight: var(--label-s-weight);
|
|
51
|
-
color: var(--text-
|
|
52
|
+
color: var(--text-secondary);
|
|
52
53
|
overflow: hidden;
|
|
53
54
|
text-overflow: ellipsis;
|
|
54
55
|
white-space: nowrap;
|
|
@@ -124,7 +125,7 @@
|
|
|
124
125
|
/* Hover — soft green outline */
|
|
125
126
|
.ckw-input-field:not(.ckw-input-field--error):not(.ckw-input-field--disabled)
|
|
126
127
|
.ckw-input-field__inner:hover {
|
|
127
|
-
|
|
128
|
+
border-color: var(--border-active);
|
|
128
129
|
}
|
|
129
130
|
|
|
130
131
|
/* Focus — green outline + dark green inset shadow + green background */
|
|
@@ -133,7 +134,6 @@
|
|
|
133
134
|
outline-color: var(--border-hover);
|
|
134
135
|
border-color: var(--border-active);
|
|
135
136
|
box-shadow: inset 0 0 0 1px var(--border-active);
|
|
136
|
-
background-color: var(--background-active);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
/* ============================================
|
|
@@ -149,9 +149,9 @@
|
|
|
149
149
|
padding: 0;
|
|
150
150
|
margin: 0;
|
|
151
151
|
font-family: var(--font-family-brand), sans-serif;
|
|
152
|
-
font-size: var(--body-m-
|
|
153
|
-
line-height: var(--body-m-
|
|
154
|
-
font-weight: var(--body-m-
|
|
152
|
+
font-size: var(--body-m-size);
|
|
153
|
+
line-height: var(--body-m-height);
|
|
154
|
+
font-weight: var(--body-m-weight);
|
|
155
155
|
color: var(--text-primary);
|
|
156
156
|
text-overflow: ellipsis;
|
|
157
157
|
white-space: nowrap;
|
|
@@ -162,6 +162,20 @@
|
|
|
162
162
|
color: var(--text-tertiary);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
/* ============================================
|
|
166
|
+
Prefix / Suffix
|
|
167
|
+
============================================ */
|
|
168
|
+
|
|
169
|
+
.ckw-input-field__affix {
|
|
170
|
+
flex-shrink: 0;
|
|
171
|
+
font-family: var(--font-family-brand), sans-serif;
|
|
172
|
+
font-size: var(--body-m-size);
|
|
173
|
+
line-height: var(--body-m-height);
|
|
174
|
+
font-weight: var(--body-m-weight);
|
|
175
|
+
color: var(--text-secondary);
|
|
176
|
+
white-space: nowrap;
|
|
177
|
+
}
|
|
178
|
+
|
|
165
179
|
/* ============================================
|
|
166
180
|
Trailing Icon
|
|
167
181
|
============================================ */
|
|
@@ -173,7 +187,7 @@
|
|
|
173
187
|
width: 20px;
|
|
174
188
|
height: 20px;
|
|
175
189
|
flex-shrink: 0;
|
|
176
|
-
color: var(--text-
|
|
190
|
+
color: var(--text-secondary);
|
|
177
191
|
}
|
|
178
192
|
|
|
179
193
|
.ckw-input-field__icon > svg {
|
|
@@ -181,6 +195,23 @@
|
|
|
181
195
|
height: 100%;
|
|
182
196
|
}
|
|
183
197
|
|
|
198
|
+
/* ============================================
|
|
199
|
+
Description (help text)
|
|
200
|
+
============================================ */
|
|
201
|
+
|
|
202
|
+
.ckw-input-field__description {
|
|
203
|
+
margin: 0;
|
|
204
|
+
font-family: var(--font-family-brand), sans-serif;
|
|
205
|
+
font-size: var(--caption-size);
|
|
206
|
+
line-height: var(--caption-height);
|
|
207
|
+
font-weight: var(--caption-weight);
|
|
208
|
+
color: var(--text-secondary);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.ckw-input-field--disabled .ckw-input-field__description {
|
|
212
|
+
color: var(--text-tertiary);
|
|
213
|
+
}
|
|
214
|
+
|
|
184
215
|
/* ============================================
|
|
185
216
|
Error State
|
|
186
217
|
============================================ */
|
|
@@ -245,6 +276,7 @@
|
|
|
245
276
|
color: var(--text-tertiary);
|
|
246
277
|
}
|
|
247
278
|
|
|
279
|
+
.ckw-input-field--disabled .ckw-input-field__affix,
|
|
248
280
|
.ckw-input-field--disabled .ckw-input-field__icon {
|
|
249
281
|
color: var(--text-tertiary);
|
|
250
282
|
}
|
|
@@ -255,7 +287,7 @@
|
|
|
255
287
|
|
|
256
288
|
.ckw-input-field--state-hover:not(.ckw-input-field--error):not(.ckw-input-field--disabled)
|
|
257
289
|
.ckw-input-field__inner {
|
|
258
|
-
|
|
290
|
+
border-color: var(--border-active);
|
|
259
291
|
}
|
|
260
292
|
|
|
261
293
|
.ckw-input-field--state-active:not(.ckw-input-field--error):not(.ckw-input-field--disabled)
|
|
@@ -263,7 +295,6 @@
|
|
|
263
295
|
outline-color: var(--border-hover);
|
|
264
296
|
border-color: var(--border-active);
|
|
265
297
|
box-shadow: inset 0 0 0 1px var(--border-active);
|
|
266
|
-
background-color: var(--background-active);
|
|
267
298
|
}
|
|
268
299
|
|
|
269
300
|
.ckw-input-field--state-focus-visible:not(.ckw-input-field--error):not(.ckw-input-field--disabled)
|
|
@@ -271,5 +302,4 @@
|
|
|
271
302
|
outline-color: var(--border-hover);
|
|
272
303
|
border-color: var(--border-active);
|
|
273
304
|
box-shadow: inset 0 0 0 1px var(--border-active);
|
|
274
|
-
background-color: var(--background-active);
|
|
275
305
|
}
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './InputField.css';
|
|
3
|
-
export type InputFieldState = '
|
|
4
|
-
export interface InputFieldProps extends Omit<React.ComponentProps<'input'>, 'className' | 'type'> {
|
|
3
|
+
export type InputFieldState = 'default' | 'hover' | 'active' | 'error' | 'disabled';
|
|
4
|
+
export interface InputFieldProps extends Omit<React.ComponentProps<'input'>, 'className' | 'type' | 'prefix'> {
|
|
5
5
|
/** Label text above the input. */
|
|
6
6
|
label?: string;
|
|
7
7
|
/** Placeholder text shown when empty. */
|
|
8
8
|
placeholder?: string;
|
|
9
9
|
/** Whether the field is optional (shows "(optional)" next to label). */
|
|
10
10
|
optional?: boolean;
|
|
11
|
+
/** Help text shown below the input, e.g. where to find a contract number. */
|
|
12
|
+
description?: React.ReactNode;
|
|
11
13
|
/** Error text shown below the input. Pass a non-empty string to trigger the error state. */
|
|
12
14
|
errorText?: string;
|
|
15
|
+
/** Short text before the value inside the field, e.g. a currency such as "CHF". */
|
|
16
|
+
prefix?: string;
|
|
17
|
+
/** Short text after the value inside the field, e.g. a unit such as "kWp". */
|
|
18
|
+
suffix?: string;
|
|
13
19
|
/** Trailing icon inside the input. */
|
|
14
20
|
icon?: React.ReactNode;
|
|
15
21
|
/** Info icon next to the label. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputField.d.ts","sourceRoot":"","sources":["../../src/InputField/InputField.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,kBAAkB,CAAC;AAE1B,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;AAEpF,MAAM,WAAW,eAAgB,SAAQ,IAAI,
|
|
1
|
+
{"version":3,"file":"InputField.d.ts","sourceRoot":"","sources":["../../src/InputField/InputField.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,kBAAkB,CAAC;AAE1B,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;AAEpF,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAC7B,WAAW,GAAG,MAAM,GAAG,QAAQ,CAChC;IACC,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6EAA6E;IAC7E,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,4FAA4F;IAC5F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACzD,iCAAiC;IACjC,IAAI,CAAC,EAAE,KAAK,CAAC,sBAAsB,CAAC;IACpC;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,uGA2GrB,CAAC"}
|
|
@@ -10,12 +10,16 @@ import './InputField.css';
|
|
|
10
10
|
* Hover and Active states are handled via CSS pseudo-classes in real usage;
|
|
11
11
|
* the explicit state prop is primarily for Storybook documentation.
|
|
12
12
|
*/
|
|
13
|
-
export const InputField = React.forwardRef(function InputField({ label = 'Label', placeholder = 'Placeholder', disabled = false, optional = false, errorText, icon, showInfo = false, onInfoClick, type = 'text', id, className, 'aria-describedby': ariaDescribedBy, 'aria-invalid': ariaInvalid, ...inputProps }, ref) {
|
|
13
|
+
export const InputField = React.forwardRef(function InputField({ label = 'Label', placeholder = 'Placeholder', disabled = false, optional = false, description, errorText, prefix, suffix, icon, showInfo = false, onInfoClick, type = 'text', id, className, 'aria-describedby': ariaDescribedBy, 'aria-invalid': ariaInvalid, ...inputProps }, ref) {
|
|
14
14
|
const hasError = Boolean(errorText);
|
|
15
15
|
const reactId = React.useId();
|
|
16
16
|
const inputId = id ?? `ckw-input-${reactId}`;
|
|
17
17
|
const errorId = hasError ? `ckw-input-error-${reactId}` : undefined;
|
|
18
|
-
const
|
|
18
|
+
const prefixId = prefix ? `ckw-input-prefix-${reactId}` : undefined;
|
|
19
|
+
const suffixId = suffix ? `ckw-input-suffix-${reactId}` : undefined;
|
|
20
|
+
const descriptionId = description ? `ckw-input-description-${reactId}` : undefined;
|
|
21
|
+
const describedBy = [ariaDescribedBy, prefixId, suffixId, descriptionId, errorId].filter(Boolean).join(' ') ||
|
|
22
|
+
undefined;
|
|
19
23
|
const rootClasses = [
|
|
20
24
|
'ckw-input-field',
|
|
21
25
|
hasError && 'ckw-input-field--error',
|
|
@@ -32,8 +36,11 @@ export const InputField = React.forwardRef(function InputField({ label = 'Label'
|
|
|
32
36
|
React.createElement(IconInformation, { size: 18 })))),
|
|
33
37
|
React.createElement("div", { className: "ckw-input-field__outer" },
|
|
34
38
|
React.createElement("div", { className: "ckw-input-field__inner" },
|
|
39
|
+
prefix && (React.createElement("span", { className: "ckw-input-field__affix", id: prefixId }, prefix)),
|
|
35
40
|
React.createElement("input", { ...inputProps, ref: ref, className: "ckw-input-field__input", id: inputId, type: type, placeholder: placeholder, disabled: disabled, "aria-invalid": hasError ? true : ariaInvalid, "aria-describedby": describedBy }),
|
|
41
|
+
suffix && (React.createElement("span", { className: "ckw-input-field__affix", id: suffixId }, suffix)),
|
|
36
42
|
icon && React.createElement("span", { className: "ckw-input-field__icon" }, icon))),
|
|
43
|
+
description && (React.createElement("p", { className: "ckw-input-field__description", id: descriptionId }, description)),
|
|
37
44
|
hasError && (React.createElement("div", { className: "ckw-input-field__error", id: errorId },
|
|
38
45
|
React.createElement("span", { className: "ckw-input-field__error-icon" },
|
|
39
46
|
React.createElement(IconWarningCircle, { size: 16 })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputField.js","sourceRoot":"","sources":["../../src/InputField/InputField.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,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M,SAAS,EAAC,wBAAwB,EAAC,EAAE,EAAE,QAAQ,IAClD,MAAM,CACF,CACR;gBACA,IAAI,IAAI,8BAAM,SAAS,EAAC,uBAAuB,IAAE,IAAI,CAAQ,CAC1D,CACF;QAGL,WAAW,IAAI,CACd,2BAAG,SAAS,EAAC,8BAA8B,EAAC,EAAE,EAAE,aAAa,IAC1D,WAAW,CACV,CACL;QAGA,QAAQ,IAAI,CACX,6BAAK,SAAS,EAAC,wBAAwB,EAAC,EAAE,EAAE,OAAO;YACjD,8BAAM,SAAS,EAAC,6BAA6B;gBAC3C,oBAAC,iBAAiB,IAAC,IAAI,EAAE,EAAE,GAAI,CAC1B;YACP,8BAAM,SAAS,EAAC,6BAA6B,IAAE,SAAS,CAAQ,CAC5D,CACP,CACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface LoadingSpinnerProps {
|
|
3
|
+
/** Width and height of the spinner in pixels. */
|
|
4
|
+
size?: number;
|
|
5
|
+
/** Additional CSS class name. */
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Animated loading spinner with orbiting dots in CKW brand green shades.
|
|
10
|
+
*
|
|
11
|
+
* Uses an inline SVG with SMIL animations — no external dependencies needed.
|
|
12
|
+
* Each instance generates a unique filter ID to avoid SVG reference collisions.
|
|
13
|
+
*/
|
|
14
|
+
export declare function LoadingSpinner({ size, className }: LoadingSpinnerProps): React.JSX.Element;
|
|
15
|
+
//# sourceMappingURL=LoadingSpinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingSpinner.d.ts","sourceRoot":"","sources":["../../src/LoadingSpinner/LoadingSpinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,mBAAmB;IAClC,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAAE,IAAS,EAAE,SAAS,EAAE,EAAE,mBAAmB,qBAqJ3E"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
let idCounter = 0;
|
|
3
|
+
/**
|
|
4
|
+
* Animated loading spinner with orbiting dots in CKW brand green shades.
|
|
5
|
+
*
|
|
6
|
+
* Uses an inline SVG with SMIL animations — no external dependencies needed.
|
|
7
|
+
* Each instance generates a unique filter ID to avoid SVG reference collisions.
|
|
8
|
+
*/
|
|
9
|
+
export function LoadingSpinner({ size = 20, className }) {
|
|
10
|
+
const [filterId] = React.useState(() => `ckw-spinner-filter-${++idCounter}`);
|
|
11
|
+
return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, width: size, height: size, viewBox: "15 15 70 70", preserveAspectRatio: "xMidYMid", "aria-hidden": "true", role: "presentation", style: { display: 'block', shapeRendering: 'auto' } },
|
|
12
|
+
React.createElement("defs", null,
|
|
13
|
+
React.createElement("filter", { id: filterId, x: "-100%", y: "-100%", width: "300%", height: "300%", colorInterpolationFilters: "sRGB" },
|
|
14
|
+
React.createElement("feGaussianBlur", { in: "SourceGraphic", stdDeviation: "2.4" }),
|
|
15
|
+
React.createElement("feComponentTransfer", { result: "cutoff" },
|
|
16
|
+
React.createElement("feFuncA", { type: "table", tableValues: "0 0 0 0 0 0 1 1 1 1 1" })))),
|
|
17
|
+
React.createElement("g", { filter: `url(#${filterId})` },
|
|
18
|
+
React.createElement("g", { transform: "translate(50 50)" },
|
|
19
|
+
React.createElement("g", null,
|
|
20
|
+
React.createElement("circle", { cx: "20", cy: "0", r: "5", fill: "#f2f5cc" },
|
|
21
|
+
React.createElement("animate", { attributeName: "r", keyTimes: "0;0.5;1", values: "3.6;8.4;3.6", dur: "5.556s", repeatCount: "indefinite", begin: "-0.18s" })),
|
|
22
|
+
React.createElement("animateTransform", { attributeName: "transform", type: "rotate", keyTimes: "0;1", values: "0;360", dur: "5.556s", repeatCount: "indefinite", begin: "0s" }))),
|
|
23
|
+
React.createElement("g", { transform: "translate(50 50)" },
|
|
24
|
+
React.createElement("g", null,
|
|
25
|
+
React.createElement("circle", { cx: "20", cy: "0", r: "5", fill: "#e4ec9a" },
|
|
26
|
+
React.createElement("animate", { attributeName: "r", keyTimes: "0;0.5;1", values: "3.6;8.4;3.6", dur: "2.778s", repeatCount: "indefinite", begin: "-0.144s" })),
|
|
27
|
+
React.createElement("animateTransform", { attributeName: "transform", type: "rotate", keyTimes: "0;1", values: "0;360", dur: "2.778s", repeatCount: "indefinite", begin: "-0.036s" }))),
|
|
28
|
+
React.createElement("g", { transform: "translate(50 50)" },
|
|
29
|
+
React.createElement("g", null,
|
|
30
|
+
React.createElement("circle", { cx: "20", cy: "0", r: "5", fill: "#d7e267" },
|
|
31
|
+
React.createElement("animate", { attributeName: "r", keyTimes: "0;0.5;1", values: "3.6;8.4;3.6", dur: "1.852s", repeatCount: "indefinite", begin: "-0.108s" })),
|
|
32
|
+
React.createElement("animateTransform", { attributeName: "transform", type: "rotate", keyTimes: "0;1", values: "0;360", dur: "1.852s", repeatCount: "indefinite", begin: "-0.072s" }))),
|
|
33
|
+
React.createElement("g", { transform: "translate(50 50)" },
|
|
34
|
+
React.createElement("g", null,
|
|
35
|
+
React.createElement("circle", { cx: "20", cy: "0", r: "5", fill: "#c9d935" },
|
|
36
|
+
React.createElement("animate", { attributeName: "r", keyTimes: "0;0.5;1", values: "3.6;8.4;3.6", dur: "1.389s", repeatCount: "indefinite", begin: "-0.072s" })),
|
|
37
|
+
React.createElement("animateTransform", { attributeName: "transform", type: "rotate", keyTimes: "0;1", values: "0;360", dur: "1.389s", repeatCount: "indefinite", begin: "-0.108s" }))),
|
|
38
|
+
React.createElement("g", { transform: "translate(50 50)" },
|
|
39
|
+
React.createElement("g", null,
|
|
40
|
+
React.createElement("circle", { cx: "20", cy: "0", r: "5", fill: "#bccf02" },
|
|
41
|
+
React.createElement("animate", { attributeName: "r", keyTimes: "0;0.5;1", values: "3.6;8.4;3.6", dur: "1.111s", repeatCount: "indefinite", begin: "-0.036s" })),
|
|
42
|
+
React.createElement("animateTransform", { attributeName: "transform", type: "rotate", keyTimes: "0;1", values: "0;360", dur: "1.111s", repeatCount: "indefinite", begin: "-0.144s" }))))));
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=LoadingSpinner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingSpinner.js","sourceRoot":"","sources":["../../src/LoadingSpinner/LoadingSpinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,IAAI,SAAS,GAAG,CAAC,CAAC;AAElB;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,EAAE,IAAI,GAAG,EAAE,EAAE,SAAS,EAAuB;IAC1E,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,sBAAsB,EAAE,SAAS,EAAE,CAAC,CAAC;IAE7E,OAAO,CACL,6BACE,KAAK,EAAC,4BAA4B,EAClC,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,IAAI,EACZ,OAAO,EAAC,aAAa,EACrB,mBAAmB,EAAC,UAAU,iBAClB,MAAM,EAClB,IAAI,EAAC,cAAc,EACnB,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE;QAEnD;YACE,gCACE,EAAE,EAAE,QAAQ,EACZ,CAAC,EAAC,OAAO,EACT,CAAC,EAAC,OAAO,EACT,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,yBAAyB,EAAC,MAAM;gBAEhC,wCAAgB,EAAE,EAAC,eAAe,EAAC,YAAY,EAAC,KAAK,GAAG;gBACxD,6CA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T,0CACE,aAAa,EAAC,WAAW,EACzB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAC,KAAK,EACd,MAAM,EAAC,OAAO,EACd,GAAG,EAAC,QAAQ,EACZ,WAAW,EAAC,YAAY,EACxB,KAAK,EAAC,SAAS,GACf,CACA,CACF,CACF,CACA,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/LoadingSpinner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LoadingSpinner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -9,11 +9,6 @@
|
|
|
9
9
|
display: none;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.ckw-password-input .ckw-input-field__icon {
|
|
13
|
-
width: var(--spacing-xl);
|
|
14
|
-
height: var(--spacing-xl);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
12
|
.ckw-password-input__toggle {
|
|
18
13
|
display: flex;
|
|
19
14
|
align-items: center;
|
|
@@ -22,11 +17,12 @@
|
|
|
22
17
|
height: var(--spacing-xl);
|
|
23
18
|
flex-shrink: 0;
|
|
24
19
|
padding: 0;
|
|
25
|
-
|
|
20
|
+
/* 24px hit target inside the 20px icon slot, so the layout matches Input Field. */
|
|
21
|
+
margin: calc((var(--spacing-l) - var(--spacing-xl)) / 2);
|
|
26
22
|
border: none;
|
|
27
23
|
border-radius: var(--border-radius-full);
|
|
28
24
|
background: transparent;
|
|
29
|
-
color: var(--
|
|
25
|
+
color: var(--text-secondary);
|
|
30
26
|
cursor: pointer;
|
|
31
27
|
outline: none;
|
|
32
28
|
transition:
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* Uses only semantic design tokens from @ckwag/elements-tokens.
|
|
5
5
|
* Container is a pill-shaped track with a sliding indicator behind segments.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Variants: default (auto-width), fill (equal-width stretch)
|
|
8
8
|
* Content modes: label, icon-label, icon-compact
|
|
9
|
-
* States: Default, Hover, Active (sliding indicator)
|
|
9
|
+
* States: Default, Hover, Active (white sliding indicator with shadow-xs), Focus
|
|
10
10
|
*
|
|
11
11
|
* Icon-compact uses CSS grid `0fr → 1fr` on each segment to animate the label
|
|
12
12
|
* width. The indicator is positioned via offsetLeft/offsetWidth in a
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
gap: var(--spacing-3xs);
|
|
25
25
|
padding: var(--spacing-2xs);
|
|
26
26
|
background-color: var(--background-control);
|
|
27
|
-
|
|
27
|
+
/* inset border keeps the track at 40px, like the Figma component */
|
|
28
|
+
box-shadow: inset 0 0 0 var(--border-weight-s) var(--border-soft);
|
|
28
29
|
border-radius: var(--border-radius-full);
|
|
29
30
|
}
|
|
30
31
|
|
|
@@ -43,8 +44,8 @@
|
|
|
43
44
|
bottom: var(--spacing-2xs);
|
|
44
45
|
left: 0;
|
|
45
46
|
box-sizing: border-box;
|
|
46
|
-
background-color: var(--background-
|
|
47
|
-
|
|
47
|
+
background-color: var(--background-input);
|
|
48
|
+
box-shadow: var(--shadow-xs);
|
|
48
49
|
border-radius: var(--border-radius-full);
|
|
49
50
|
pointer-events: none;
|
|
50
51
|
will-change: transform, width;
|
|
@@ -159,7 +160,7 @@
|
|
|
159
160
|
}
|
|
160
161
|
|
|
161
162
|
.ckw-segmented-control__segment--active .ckw-segmented-control__label {
|
|
162
|
-
color: var(--text-
|
|
163
|
+
color: var(--text-primary);
|
|
163
164
|
}
|
|
164
165
|
|
|
165
166
|
/*
|
|
@@ -212,7 +213,7 @@
|
|
|
212
213
|
}
|
|
213
214
|
|
|
214
215
|
.ckw-segmented-control__segment--active .ckw-segmented-control__icon {
|
|
215
|
-
color: var(--text-
|
|
216
|
+
color: var(--text-primary);
|
|
216
217
|
}
|
|
217
218
|
|
|
218
219
|
/* ============================================
|
|
@@ -220,11 +221,11 @@
|
|
|
220
221
|
============================================ */
|
|
221
222
|
|
|
222
223
|
.ckw-segmented-control--state-hover
|
|
223
|
-
.ckw-segmented-control__segment:first-
|
|
224
|
+
.ckw-segmented-control__segment:first-of-type:not(.ckw-segmented-control__segment--active) {
|
|
224
225
|
background-color: var(--background-hover);
|
|
225
226
|
}
|
|
226
227
|
|
|
227
|
-
.ckw-segmented-control--state-focus-visible .ckw-segmented-control__segment:first-
|
|
228
|
+
.ckw-segmented-control--state-focus-visible .ckw-segmented-control__segment:first-of-type {
|
|
228
229
|
outline: var(--border-weight-m) solid var(--border-active);
|
|
229
230
|
outline-offset: 2px;
|
|
230
231
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './SegmentedControl.css';
|
|
3
|
-
export type
|
|
3
|
+
export type SegmentedControlVariant = 'default' | 'fill';
|
|
4
4
|
export type SegmentedControlContentMode = 'label' | 'icon-label' | 'icon-compact';
|
|
5
5
|
export interface Segment {
|
|
6
6
|
/** Unique value identifying this segment. */
|
|
@@ -17,8 +17,8 @@ export interface SegmentedControlProps {
|
|
|
17
17
|
activeValue: string;
|
|
18
18
|
/** Called when the user selects a different segment. */
|
|
19
19
|
onChange?: (value: string) => void;
|
|
20
|
-
/** Layout
|
|
21
|
-
|
|
20
|
+
/** Layout variant. default = auto-width segments; fill = equal-width stretch. */
|
|
21
|
+
variant?: SegmentedControlVariant;
|
|
22
22
|
/**
|
|
23
23
|
* Content display mode:
|
|
24
24
|
* - `label` — label only (default)
|
|
@@ -46,5 +46,5 @@ export interface SegmentedControlProps {
|
|
|
46
46
|
* Two layout types: Default (auto-width) and Fill (equal-width stretch).
|
|
47
47
|
* All styling uses semantic design tokens.
|
|
48
48
|
*/
|
|
49
|
-
export declare function SegmentedControl({ segments, activeValue, onChange,
|
|
49
|
+
export declare function SegmentedControl({ segments, activeValue, onChange, variant, contentMode, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, className, }: SegmentedControlProps): React.JSX.Element;
|
|
50
50
|
//# sourceMappingURL=SegmentedControl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../src/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,wBAAwB,CAAC;AAEhC,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../src/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,wBAAwB,CAAC;AAEhC,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,MAAM,CAAC;AACzD,MAAM,MAAM,2BAA2B,GAAG,OAAO,GAAG,YAAY,GAAG,cAAc,CAAC;AAKlF,MAAM,WAAW,OAAO;IACtB,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,8CAA8C;IAC9C,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,mDAAmD;IACnD,WAAW,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,iFAAiF;IACjF,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAClC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oDAAoD;IACpD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,OAAmB,EACnB,WAAqB,EACrB,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,SAAS,GACV,EAAE,qBAAqB,qBAmLvB"}
|
|
@@ -15,7 +15,7 @@ const useIsomorphicLayoutEffect = typeof window === 'undefined' ? React.useEffec
|
|
|
15
15
|
* Two layout types: Default (auto-width) and Fill (equal-width stretch).
|
|
16
16
|
* All styling uses semantic design tokens.
|
|
17
17
|
*/
|
|
18
|
-
export function SegmentedControl({ segments, activeValue, onChange,
|
|
18
|
+
export function SegmentedControl({ segments, activeValue, onChange, variant = 'default', contentMode = 'label', 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, className, }) {
|
|
19
19
|
const containerRef = React.useRef(null);
|
|
20
20
|
const segmentRefs = React.useRef(new Map());
|
|
21
21
|
const [indicator, setIndicator] = React.useState(null);
|
|
@@ -43,7 +43,7 @@ export function SegmentedControl({ segments, activeValue, onChange, type = 'Defa
|
|
|
43
43
|
requestAnimationFrame(() => setHasAnimated(true));
|
|
44
44
|
}
|
|
45
45
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
46
|
-
}, [activeValue, segmentsKey,
|
|
46
|
+
}, [activeValue, segmentsKey, variant, contentMode, hasAnimated]);
|
|
47
47
|
// For compact mode: the grid transition changes segment widths over 250ms.
|
|
48
48
|
// We need to keep re-measuring the indicator during the transition so it
|
|
49
49
|
// tracks the active segment's position as it expands/collapses.
|
|
@@ -89,7 +89,7 @@ export function SegmentedControl({ segments, activeValue, onChange, type = 'Defa
|
|
|
89
89
|
const classes = [
|
|
90
90
|
'ckw-segmented-control',
|
|
91
91
|
isCompact ? 'ckw-segmented-control--compact' : '',
|
|
92
|
-
|
|
92
|
+
variant === 'fill' ? 'ckw-segmented-control--fill' : '',
|
|
93
93
|
className ?? '',
|
|
94
94
|
]
|
|
95
95
|
.filter(Boolean)
|
|
@@ -129,7 +129,7 @@ export function SegmentedControl({ segments, activeValue, onChange, type = 'Defa
|
|
|
129
129
|
else {
|
|
130
130
|
segmentRefs.current.delete(segment.value);
|
|
131
131
|
}
|
|
132
|
-
}, className: segmentClasses, role: "
|
|
132
|
+
}, className: segmentClasses, role: "radio", "aria-checked": isActive, "aria-label": segment.label, tabIndex: isActive ? 0 : -1, onClick: () => onChange?.(segment.value) }, isCompact ? (
|
|
133
133
|
/* Compact: inner wrapper so icon+label stay grouped for centering */
|
|
134
134
|
React.createElement("span", { className: "ckw-segmented-control__compact-inner" },
|
|
135
135
|
segment.icon && (React.createElement("span", { className: "ckw-segmented-control__icon" }, segment.icon)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedControl.js","sourceRoot":"","sources":["../../src/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,wBAAwB,CAAC;AAKhC,MAAM,yBAAyB,GAC7B,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC;AAoC1E,MAAM;AAEN;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,gBAAgB,CAAC,EAC/B,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,
|
|
1
|
+
{"version":3,"file":"SegmentedControl.js","sourceRoot":"","sources":["../../src/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,wBAAwB,CAAC;AAKhC,MAAM,yBAAyB,GAC7B,OAAO,M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BACA,SAAS,IAAI,OAAO,CAAC,KAAK,IAAI,CAC7B,8BAAM,SAAS,EAAE,YAAY,IAAG,OAAO,CAAC,KAAK,CAAQ,CACtD,CACA,CACJ,CACM,CACV,CAAC;QACJ,CAAC,CAAC,CACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { SegmentedControl } from './SegmentedControl.js';
|
|
2
|
-
export type { Segment, SegmentedControlContentMode, SegmentedControlProps,
|
|
2
|
+
export type { Segment, SegmentedControlContentMode, SegmentedControlProps, SegmentedControlVariant, } from './SegmentedControl.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/SegmentedControl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,YAAY,EACV,OAAO,EACP,2BAA2B,EAC3B,qBAAqB,EACrB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/SegmentedControl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,YAAY,EACV,OAAO,EACP,2BAA2B,EAC3B,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,uBAAuB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,12 @@ export { InputField } from './InputField/index.js';
|
|
|
4
4
|
export type { InputFieldProps, InputFieldState } from './InputField/index.js';
|
|
5
5
|
export { PasswordInput } from './PasswordInput/index.js';
|
|
6
6
|
export type { PasswordInputProps } from './PasswordInput/index.js';
|
|
7
|
+
export { Badge } from './Badge/index.js';
|
|
8
|
+
export type { BadgeProps, BadgeSize, BadgeStatus } from './Badge/index.js';
|
|
7
9
|
export { InlineMessage } from './InlineMessage/index.js';
|
|
8
10
|
export type { InlineMessageBreakpoint, InlineMessageProps, InlineMessageStatus, } from './InlineMessage/index.js';
|
|
9
11
|
export { SegmentedControl } from './SegmentedControl/index.js';
|
|
10
|
-
export type { Segment, SegmentedControlContentMode, SegmentedControlProps,
|
|
12
|
+
export type { Segment, SegmentedControlContentMode, SegmentedControlProps, SegmentedControlVariant, } from './SegmentedControl/index.js';
|
|
13
|
+
export { LoadingSpinner } from './LoadingSpinner/index.js';
|
|
14
|
+
export type { LoadingSpinnerProps } from './LoadingSpinner/index.js';
|
|
11
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,YAAY,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,YAAY,EACV,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,YAAY,EACV,OAAO,EACP,2BAA2B,EAC3B,qBAAqB,EACrB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,YAAY,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,YAAY,EACV,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,YAAY,EACV,OAAO,EACP,2BAA2B,EAC3B,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,YAAY,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
export { Button } from './Button/index.js';
|
|
3
3
|
export { InputField } from './InputField/index.js';
|
|
4
4
|
export { PasswordInput } from './PasswordInput/index.js';
|
|
5
|
+
export { Badge } from './Badge/index.js';
|
|
5
6
|
export { InlineMessage } from './InlineMessage/index.js';
|
|
6
7
|
export { SegmentedControl } from './SegmentedControl/index.js';
|
|
8
|
+
export { LoadingSpinner } from './LoadingSpinner/index.js';
|
|
7
9
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAMzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAMzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAO/D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC"}
|
package/dist/react/index.d.ts
CHANGED
|
@@ -4,8 +4,10 @@ export { InputField } from '../InputField/index.js';
|
|
|
4
4
|
export type { InputFieldProps, InputFieldState } from '../InputField/index.js';
|
|
5
5
|
export { PasswordInput } from '../PasswordInput/index.js';
|
|
6
6
|
export type { PasswordInputProps } from '../PasswordInput/index.js';
|
|
7
|
+
export { Badge } from '../Badge/index.js';
|
|
8
|
+
export type { BadgeProps, BadgeSize, BadgeStatus } from '../Badge/index.js';
|
|
7
9
|
export { InlineMessage } from '../InlineMessage/index.js';
|
|
8
10
|
export type { InlineMessageBreakpoint, InlineMessageProps, InlineMessageStatus, } from '../InlineMessage/index.js';
|
|
9
11
|
export { SegmentedControl } from '../SegmentedControl/index.js';
|
|
10
|
-
export type { Segment, SegmentedControlContentMode, SegmentedControlProps,
|
|
12
|
+
export type { Segment, SegmentedControlContentMode, SegmentedControlProps, SegmentedControlVariant, } from '../SegmentedControl/index.js';
|
|
11
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,YAAY,EACV,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,YAAY,EACV,OAAO,EACP,2BAA2B,EAC3B,qBAAqB,EACrB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,YAAY,EACV,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,YAAY,EACV,OAAO,EACP,2BAA2B,EAC3B,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,8BAA8B,CAAC"}
|
package/dist/react/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export { Button } from '../Button/index.js';
|
|
3
3
|
export { InputField } from '../InputField/index.js';
|
|
4
4
|
export { PasswordInput } from '../PasswordInput/index.js';
|
|
5
|
+
export { Badge } from '../Badge/index.js';
|
|
5
6
|
export { InlineMessage } from '../InlineMessage/index.js';
|
|
6
7
|
export { SegmentedControl } from '../SegmentedControl/index.js';
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
package/dist/react/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAM1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAM1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC"}
|
package/dist/styles.css
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
@import './Badge/Badge.css' layer(ckw-elements);
|
|
2
|
+
@import './Button/Button.css' layer(ckw-elements);
|
|
3
|
+
@import './InlineMessage/InlineMessage.css' layer(ckw-elements);
|
|
4
|
+
@import './InputField/InputField.css' layer(ckw-elements);
|
|
5
|
+
@import './PasswordInput/PasswordInput.css' layer(ckw-elements);
|
|
6
|
+
@import './SegmentedControl/SegmentedControl.css' layer(ckw-elements);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckwag/elements",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.bef6bab",
|
|
4
4
|
"description": "CKW Elements UI Components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,12 @@
|
|
|
31
31
|
"types": "./dist/index.d.ts",
|
|
32
32
|
"import": "./dist/index.js"
|
|
33
33
|
},
|
|
34
|
+
"./react": {
|
|
35
|
+
"types": "./dist/react/index.d.ts",
|
|
36
|
+
"import": "./dist/react/index.js"
|
|
37
|
+
},
|
|
34
38
|
"./styles.css": "./dist/styles.css",
|
|
39
|
+
"./styles.layered.css": "./dist/styles.layered.css",
|
|
35
40
|
"./package.json": "./package.json"
|
|
36
41
|
},
|
|
37
42
|
"files": [
|
|
@@ -42,8 +47,8 @@
|
|
|
42
47
|
"access": "public"
|
|
43
48
|
},
|
|
44
49
|
"dependencies": {
|
|
45
|
-
"@ckwag/elements-icons": "0.0.1-dev.
|
|
46
|
-
"@ckwag/elements-tokens": "0.0.1-dev.
|
|
50
|
+
"@ckwag/elements-icons": "0.0.1-dev.bef6bab",
|
|
51
|
+
"@ckwag/elements-tokens": "0.0.1-dev.bef6bab"
|
|
47
52
|
},
|
|
48
53
|
"peerDependencies": {
|
|
49
54
|
"react": ">=18 <20",
|