seblify 0.2.1 → 0.3.0
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 +118 -45
- package/dist/components/action/input/select/checkbox/Checkbox.svelte +378 -16
- package/dist/components/action/input/select/checkbox/Checkbox.svelte.d.ts +7 -0
- package/dist/components/action/input/select/checkbox/checkbox-relations.svelte.d.ts +47 -0
- package/dist/components/action/input/select/checkbox/checkbox-relations.svelte.js +154 -0
- package/dist/components/action/input/select/switch/Switch.svelte +349 -40
- package/dist/components/action/input/select/switch/Switch.svelte.d.ts +8 -3
- package/dist/components/display/annotation/tag/Tag.svelte +19 -0
- package/dist/components/display/data-display/metric/duration/Duration.svelte +64 -0
- package/dist/components/display/data-display/metric/duration/Duration.svelte.d.ts +16 -0
- package/dist/components/display/data-display/metric/relative-time/RelativeTime.svelte +104 -0
- package/dist/components/display/data-display/metric/relative-time/RelativeTime.svelte.d.ts +16 -0
- package/dist/components/display/data-display/visual/timeline/TimelineItem.svelte +19 -0
- package/dist/components/display/feedback/loading/loading-dots/LoadingDots.svelte +19 -0
- package/dist/components/display/feedback/loading/spinner/Spinner.svelte +19 -0
- package/dist/components/display/motion/collapse/Collapse.svelte +115 -0
- package/dist/components/display/motion/collapse/Collapse.svelte.d.ts +17 -0
- package/dist/components/display/typography/accordion/Accordion.svelte +347 -0
- package/dist/components/display/typography/accordion/Accordion.svelte.d.ts +13 -0
- package/dist/components/display/typography/accordion/AccordionGroup.svelte +132 -0
- package/dist/components/display/typography/accordion/AccordionGroup.svelte.d.ts +11 -0
- package/dist/components/display/typography/accordion/context.d.ts +8 -0
- package/dist/components/display/typography/accordion/context.js +8 -0
- package/dist/components/framework/overlay/tooltip/Tooltip.svelte +1012 -0
- package/dist/components/framework/overlay/tooltip/Tooltip.svelte.d.ts +31 -0
- package/dist/components/utility/format/duration/formatDuration.d.ts +15 -0
- package/dist/components/utility/format/duration/formatDuration.js +218 -0
- package/dist/components/utility/format/relative-time/formatRelativeTime.d.ts +35 -0
- package/dist/components/utility/format/relative-time/formatRelativeTime.js +343 -0
- package/dist/design-system/reserved-props/allowed-options.d.ts +6 -3
- package/dist/design-system/theme/tokens.js +48 -0
- package/dist/icons/generated/check-thick.svelte +16 -0
- package/dist/icons/generated/check-thick.svelte.d.ts +7 -0
- package/dist/icons/generated/check.svelte +16 -0
- package/dist/icons/generated/check.svelte.d.ts +7 -0
- package/dist/icons/generated/close-thick.svelte +16 -0
- package/dist/icons/generated/close-thick.svelte.d.ts +7 -0
- package/dist/icons/generated/close.svelte +16 -0
- package/dist/icons/generated/close.svelte.d.ts +7 -0
- package/dist/icons/generated/index.d.ts +4 -0
- package/dist/icons/generated/index.js +4 -0
- package/dist/icons/generated/manifest.js +28 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +9 -0
- package/dist/styles/tone-context.css +19 -0
- package/dist/theme.css +22 -0
- package/package.json +15 -3
|
@@ -113,6 +113,30 @@ const themeTokens = [
|
|
|
113
113
|
value: '#ffffff',
|
|
114
114
|
description: 'Text or foreground placed on accent fills.',
|
|
115
115
|
},
|
|
116
|
+
{
|
|
117
|
+
name: '--seblify-color-fill-secondary',
|
|
118
|
+
category: 'Fill',
|
|
119
|
+
value: '#5b5fc7',
|
|
120
|
+
description: 'Secondary accent fill for alternate selected states.',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: '--seblify-color-fill-secondary-text',
|
|
124
|
+
category: 'Fill',
|
|
125
|
+
value: '#ffffff',
|
|
126
|
+
description: 'Text or foreground placed on secondary fills.',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: '--seblify-color-fill-strong',
|
|
130
|
+
category: 'Fill',
|
|
131
|
+
value: '#172033',
|
|
132
|
+
description: 'Strong neutral fill for high-contrast emphasis.',
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: '--seblify-color-fill-strong-text',
|
|
136
|
+
category: 'Fill',
|
|
137
|
+
value: '#ffffff',
|
|
138
|
+
description: 'Text or foreground placed on strong neutral fills.',
|
|
139
|
+
},
|
|
116
140
|
{
|
|
117
141
|
name: '--seblify-color-info-surface',
|
|
118
142
|
category: 'Status',
|
|
@@ -131,6 +155,24 @@ const themeTokens = [
|
|
|
131
155
|
value: '#102f55',
|
|
132
156
|
description: 'Text on info status surfaces.',
|
|
133
157
|
},
|
|
158
|
+
{
|
|
159
|
+
name: '--seblify-color-secondary-surface',
|
|
160
|
+
category: 'Status',
|
|
161
|
+
value: '#f0efff',
|
|
162
|
+
description: 'Secondary tone surface.',
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: '--seblify-color-secondary-border',
|
|
166
|
+
category: 'Status',
|
|
167
|
+
value: '#c8c6f4',
|
|
168
|
+
description: 'Secondary tone border.',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: '--seblify-color-secondary-text',
|
|
172
|
+
category: 'Status',
|
|
173
|
+
value: '#2f316f',
|
|
174
|
+
description: 'Text on secondary tone surfaces.',
|
|
175
|
+
},
|
|
134
176
|
{
|
|
135
177
|
name: '--seblify-color-success-surface',
|
|
136
178
|
category: 'Status',
|
|
@@ -215,5 +257,11 @@ const themeTokens = [
|
|
|
215
257
|
value: '0 10px 24px rgb(20 61 37 / 14%)',
|
|
216
258
|
description: 'Soft shadow for status messages.',
|
|
217
259
|
},
|
|
260
|
+
{
|
|
261
|
+
name: '--seblify-z-index-tooltip',
|
|
262
|
+
category: 'Layer',
|
|
263
|
+
value: '30',
|
|
264
|
+
description: 'Layer for portaled tooltip bubbles.',
|
|
265
|
+
},
|
|
218
266
|
];
|
|
219
267
|
export default themeTokens;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconGlyph from '../../components/display/media/icon/IconGlyph.svelte';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
label?: string;
|
|
6
|
+
size?: number | string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
let { label, size }: Props = $props();
|
|
10
|
+
const source = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11
|
+
<path d="M8.99906 20.4199L2.78906 14.2099L5.61906 11.3799L8.99906 14.7699L18.8791 4.87988L21.7091 7.70988L8.99906 20.4199Z" fill="black"/>
|
|
12
|
+
</svg>
|
|
13
|
+
`;
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<IconGlyph {label} {size} {source} />
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconGlyph from '../../components/display/media/icon/IconGlyph.svelte';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
label?: string;
|
|
6
|
+
size?: number | string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
let { label, size }: Props = $props();
|
|
10
|
+
const source = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11
|
+
<path d="M21 6.99984L9 18.9998L3.5 13.4998L4.91 12.0898L9 16.1698L19.59 5.58984L21 6.99984Z" fill="black"/>
|
|
12
|
+
</svg>
|
|
13
|
+
`;
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<IconGlyph {label} {size} {source} />
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconGlyph from '../../components/display/media/icon/IconGlyph.svelte';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
label?: string;
|
|
6
|
+
size?: number | string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
let { label, size }: Props = $props();
|
|
10
|
+
const source = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11
|
+
<path d="M20 6.91L17.09 4L12 9.09L6.91 4L4 6.91L9.09 12L4 17.09L6.91 20L12 14.91L17.09 20L20 17.09L14.91 12L20 6.91Z" fill="black"/>
|
|
12
|
+
</svg>
|
|
13
|
+
`;
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<IconGlyph {label} {size} {source} />
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconGlyph from '../../components/display/media/icon/IconGlyph.svelte';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
label?: string;
|
|
6
|
+
size?: number | string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
let { label, size }: Props = $props();
|
|
10
|
+
const source = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11
|
+
<path d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z" fill="black"/>
|
|
12
|
+
</svg>
|
|
13
|
+
`;
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<IconGlyph {label} {size} {source} />
|
|
@@ -34,6 +34,8 @@ export { default as ChatProcessingIcon } from './chat-processing.svelte';
|
|
|
34
34
|
export { default as ChatQuestionOutlineIcon } from './chat-question-outline.svelte';
|
|
35
35
|
export { default as ChatQuestionIcon } from './chat-question.svelte';
|
|
36
36
|
export { default as ChatIcon } from './chat.svelte';
|
|
37
|
+
export { default as CheckThickIcon } from './check-thick.svelte';
|
|
38
|
+
export { default as CheckIcon } from './check.svelte';
|
|
37
39
|
export { default as ChevronDoubleDownIcon } from './chevron-double-down.svelte';
|
|
38
40
|
export { default as ChevronDoubleLeftIcon } from './chevron-double-left.svelte';
|
|
39
41
|
export { default as ChevronDoubleRightIcon } from './chevron-double-right.svelte';
|
|
@@ -61,6 +63,8 @@ export { default as ClipboardTextOutlineIcon } from './clipboard-text-outline.sv
|
|
|
61
63
|
export { default as ClipboardTextIcon } from './clipboard-text.svelte';
|
|
62
64
|
export { default as ClockOutlineIcon } from './clock-outline.svelte';
|
|
63
65
|
export { default as ClockIcon } from './clock.svelte';
|
|
66
|
+
export { default as CloseThickIcon } from './close-thick.svelte';
|
|
67
|
+
export { default as CloseIcon } from './close.svelte';
|
|
64
68
|
export { default as CogOutlineIcon } from './cog-outline.svelte';
|
|
65
69
|
export { default as CogIcon } from './cog.svelte';
|
|
66
70
|
export { default as CopyIcon } from './copy.svelte';
|
|
@@ -34,6 +34,8 @@ export { default as ChatProcessingIcon } from './chat-processing.svelte';
|
|
|
34
34
|
export { default as ChatQuestionOutlineIcon } from './chat-question-outline.svelte';
|
|
35
35
|
export { default as ChatQuestionIcon } from './chat-question.svelte';
|
|
36
36
|
export { default as ChatIcon } from './chat.svelte';
|
|
37
|
+
export { default as CheckThickIcon } from './check-thick.svelte';
|
|
38
|
+
export { default as CheckIcon } from './check.svelte';
|
|
37
39
|
export { default as ChevronDoubleDownIcon } from './chevron-double-down.svelte';
|
|
38
40
|
export { default as ChevronDoubleLeftIcon } from './chevron-double-left.svelte';
|
|
39
41
|
export { default as ChevronDoubleRightIcon } from './chevron-double-right.svelte';
|
|
@@ -61,6 +63,8 @@ export { default as ClipboardTextOutlineIcon } from './clipboard-text-outline.sv
|
|
|
61
63
|
export { default as ClipboardTextIcon } from './clipboard-text.svelte';
|
|
62
64
|
export { default as ClockOutlineIcon } from './clock-outline.svelte';
|
|
63
65
|
export { default as ClockIcon } from './clock.svelte';
|
|
66
|
+
export { default as CloseThickIcon } from './close-thick.svelte';
|
|
67
|
+
export { default as CloseIcon } from './close.svelte';
|
|
64
68
|
export { default as CogOutlineIcon } from './cog-outline.svelte';
|
|
65
69
|
export { default as CogIcon } from './cog.svelte';
|
|
66
70
|
export { default as CopyIcon } from './copy.svelte';
|
|
@@ -308,6 +308,20 @@ export const iconManifest = [
|
|
|
308
308
|
"name": "chat",
|
|
309
309
|
"tags": []
|
|
310
310
|
},
|
|
311
|
+
{
|
|
312
|
+
"componentName": "CheckThickIcon",
|
|
313
|
+
"folder": "check",
|
|
314
|
+
"name": "check-thick",
|
|
315
|
+
"tags": [
|
|
316
|
+
"thick"
|
|
317
|
+
]
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"componentName": "CheckIcon",
|
|
321
|
+
"folder": "check",
|
|
322
|
+
"name": "check",
|
|
323
|
+
"tags": []
|
|
324
|
+
},
|
|
311
325
|
{
|
|
312
326
|
"componentName": "ChevronDoubleDownIcon",
|
|
313
327
|
"folder": "chevron",
|
|
@@ -537,6 +551,20 @@ export const iconManifest = [
|
|
|
537
551
|
"name": "clock",
|
|
538
552
|
"tags": []
|
|
539
553
|
},
|
|
554
|
+
{
|
|
555
|
+
"componentName": "CloseThickIcon",
|
|
556
|
+
"folder": "close",
|
|
557
|
+
"name": "close-thick",
|
|
558
|
+
"tags": [
|
|
559
|
+
"thick"
|
|
560
|
+
]
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"componentName": "CloseIcon",
|
|
564
|
+
"folder": "close",
|
|
565
|
+
"name": "close",
|
|
566
|
+
"tags": []
|
|
567
|
+
},
|
|
540
568
|
{
|
|
541
569
|
"componentName": "CogOutlineIcon",
|
|
542
570
|
"folder": "cog",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
export { default as AppShell } from './components/framework/layout/container/app-shell/AppShell.svelte';
|
|
2
|
+
export { default as Accordion } from './components/display/typography/accordion/Accordion.svelte';
|
|
3
|
+
export { default as AccordionGroup } from './components/display/typography/accordion/AccordionGroup.svelte';
|
|
2
4
|
export { default as Badge } from './components/display/annotation/badge/Badge.svelte';
|
|
3
5
|
export { default as Banner } from './components/Banner.svelte';
|
|
4
6
|
export { default as Button } from './components/Button.svelte';
|
|
5
7
|
export { default as Breadcrumb } from './components/framework/navigation/context/breadcrumb/Breadcrumb.svelte';
|
|
6
8
|
export { default as Checkbox } from './components/action/input/select/checkbox/Checkbox.svelte';
|
|
9
|
+
export { createCheckboxRelations, type CheckboxRelations, type CheckboxRelationsConfig, type CheckboxRelationsGroupConfig, type CheckboxRelationsGroupState, type CheckboxRelationsId, type CheckboxRelationsItemConfig, type CheckboxRelationsItemState, type CheckboxRelationsVisualState, } from './components/action/input/select/checkbox/checkbox-relations.svelte';
|
|
7
10
|
export { default as Cluster } from './components/framework/layout/alignment/cluster/Cluster.svelte';
|
|
11
|
+
export { default as Collapse } from './components/display/motion/collapse/Collapse.svelte';
|
|
8
12
|
export { default as CodeSnippet } from './components/display/typography/code-snippet/CodeSnippet.svelte';
|
|
13
|
+
export { default as Duration } from './components/display/data-display/metric/duration/Duration.svelte';
|
|
9
14
|
export { default as Eyebrow } from './components/display/typography/eyebrow/Eyebrow.svelte';
|
|
10
15
|
export { default as Grid } from './components/framework/layout/alignment/grid/Grid.svelte';
|
|
11
16
|
export { default as Highlight } from './components/display/typography/highlight/Highlight.svelte';
|
|
@@ -14,6 +19,7 @@ export { default as LoadingDots } from './components/display/feedback/loading/lo
|
|
|
14
19
|
export { default as Paper } from './components/framework/surface/paper/Paper.svelte';
|
|
15
20
|
export { default as PageHeader } from './components/framework/layout/container/page-header/PageHeader.svelte';
|
|
16
21
|
export { default as PinInput } from './components/action/input/field/pin-input/PinInput.svelte';
|
|
22
|
+
export { default as RelativeTime } from './components/display/data-display/metric/relative-time/RelativeTime.svelte';
|
|
17
23
|
export { default as Row } from './components/framework/layout/alignment/row/Row.svelte';
|
|
18
24
|
export { default as Sidebar } from './components/framework/navigation/sidebar/sidebar/Sidebar.svelte';
|
|
19
25
|
export { default as SegmentControl } from './components/action/input/select/segment-control/SegmentControl.svelte';
|
|
@@ -30,6 +36,9 @@ export { default as ThemeSwitch } from './components/action/input/select/theme-s
|
|
|
30
36
|
export { default as Timeline } from './components/display/data-display/visual/timeline/Timeline.svelte';
|
|
31
37
|
export { default as TimelineItem } from './components/display/data-display/visual/timeline/TimelineItem.svelte';
|
|
32
38
|
export { default as Toast } from './components/Toast.svelte';
|
|
39
|
+
export { default as Tooltip } from './components/framework/overlay/tooltip/Tooltip.svelte';
|
|
40
|
+
export { formatDuration, type DurationFormat, type DurationRounding, type DurationStyle, type DurationUnit, type FormatDurationOptions, } from './components/utility/format/duration/formatDuration';
|
|
41
|
+
export { formatRelativeTime, type FormatRelativeTimeOptions, type RelativeTimeDirection, type RelativeTimeInput, type RelativeTimeLabel, type RelativeTimeMode, type RelativeTimePresentation, type RelativeTimeState, type RelativeTimeStyle, type RelativeTimeUnit, type RelativeTimeUnitSteps, } from './components/utility/format/relative-time/formatRelativeTime';
|
|
33
42
|
export type { SidenavActionDetail, SidenavIconComponent, SidenavItemData, SidenavItemKind, } from './components/framework/navigation/sidebar/sidenav/sidenav';
|
|
34
43
|
export type { ComponentDocExample, ComponentDocMetadata, ComponentStatus, DocPageMetadata, DocSectionMetadata, } from './components/component-doc';
|
|
35
44
|
export type { SeblifyProps } from './design-system/reserved-props/type';
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
export { default as AppShell } from './components/framework/layout/container/app-shell/AppShell.svelte';
|
|
2
|
+
export { default as Accordion } from './components/display/typography/accordion/Accordion.svelte';
|
|
3
|
+
export { default as AccordionGroup } from './components/display/typography/accordion/AccordionGroup.svelte';
|
|
2
4
|
export { default as Badge } from './components/display/annotation/badge/Badge.svelte';
|
|
3
5
|
export { default as Banner } from './components/Banner.svelte';
|
|
4
6
|
export { default as Button } from './components/Button.svelte';
|
|
5
7
|
export { default as Breadcrumb } from './components/framework/navigation/context/breadcrumb/Breadcrumb.svelte';
|
|
6
8
|
export { default as Checkbox } from './components/action/input/select/checkbox/Checkbox.svelte';
|
|
9
|
+
export { createCheckboxRelations, } from './components/action/input/select/checkbox/checkbox-relations.svelte';
|
|
7
10
|
export { default as Cluster } from './components/framework/layout/alignment/cluster/Cluster.svelte';
|
|
11
|
+
export { default as Collapse } from './components/display/motion/collapse/Collapse.svelte';
|
|
8
12
|
export { default as CodeSnippet } from './components/display/typography/code-snippet/CodeSnippet.svelte';
|
|
13
|
+
export { default as Duration } from './components/display/data-display/metric/duration/Duration.svelte';
|
|
9
14
|
export { default as Eyebrow } from './components/display/typography/eyebrow/Eyebrow.svelte';
|
|
10
15
|
export { default as Grid } from './components/framework/layout/alignment/grid/Grid.svelte';
|
|
11
16
|
export { default as Highlight } from './components/display/typography/highlight/Highlight.svelte';
|
|
@@ -14,6 +19,7 @@ export { default as LoadingDots } from './components/display/feedback/loading/lo
|
|
|
14
19
|
export { default as Paper } from './components/framework/surface/paper/Paper.svelte';
|
|
15
20
|
export { default as PageHeader } from './components/framework/layout/container/page-header/PageHeader.svelte';
|
|
16
21
|
export { default as PinInput } from './components/action/input/field/pin-input/PinInput.svelte';
|
|
22
|
+
export { default as RelativeTime } from './components/display/data-display/metric/relative-time/RelativeTime.svelte';
|
|
17
23
|
export { default as Row } from './components/framework/layout/alignment/row/Row.svelte';
|
|
18
24
|
export { default as Sidebar } from './components/framework/navigation/sidebar/sidebar/Sidebar.svelte';
|
|
19
25
|
export { default as SegmentControl } from './components/action/input/select/segment-control/SegmentControl.svelte';
|
|
@@ -30,3 +36,6 @@ export { default as ThemeSwitch } from './components/action/input/select/theme-s
|
|
|
30
36
|
export { default as Timeline } from './components/display/data-display/visual/timeline/Timeline.svelte';
|
|
31
37
|
export { default as TimelineItem } from './components/display/data-display/visual/timeline/TimelineItem.svelte';
|
|
32
38
|
export { default as Toast } from './components/Toast.svelte';
|
|
39
|
+
export { default as Tooltip } from './components/framework/overlay/tooltip/Tooltip.svelte';
|
|
40
|
+
export { formatDuration, } from './components/utility/format/duration/formatDuration';
|
|
41
|
+
export { formatRelativeTime, } from './components/utility/format/relative-time/formatRelativeTime';
|
|
@@ -37,6 +37,14 @@
|
|
|
37
37
|
--seblify-tone-border: var(--seblify-color-border, #c8d2df);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
:where(.seblify-tone-context[data-seblify-tone='strong']) {
|
|
41
|
+
--seblify-tone-fill: var(--seblify-color-fill-strong, #172033);
|
|
42
|
+
--seblify-tone-fill-text: var(--seblify-color-fill-strong-text, #ffffff);
|
|
43
|
+
--seblify-tone-surface: var(--seblify-color-surface-raised, #ffffff);
|
|
44
|
+
--seblify-tone-text: var(--seblify-color-text, #172033);
|
|
45
|
+
--seblify-tone-border: var(--seblify-color-border-strong, #aab7c5);
|
|
46
|
+
}
|
|
47
|
+
|
|
40
48
|
:where(.seblify-tone-context[data-seblify-tone='primary']) {
|
|
41
49
|
--seblify-tone-fill: var(--seblify-color-fill-primary, #146a6f);
|
|
42
50
|
--seblify-tone-fill-text: var(--seblify-color-fill-primary-text, #ffffff);
|
|
@@ -45,6 +53,17 @@
|
|
|
45
53
|
--seblify-tone-border: var(--seblify-color-border-accent, #9ab7ba);
|
|
46
54
|
}
|
|
47
55
|
|
|
56
|
+
:where(.seblify-tone-context[data-seblify-tone='secondary']) {
|
|
57
|
+
--seblify-tone-fill: var(--seblify-color-fill-secondary, #5b5fc7);
|
|
58
|
+
--seblify-tone-fill-text: var(
|
|
59
|
+
--seblify-color-fill-secondary-text,
|
|
60
|
+
#ffffff
|
|
61
|
+
);
|
|
62
|
+
--seblify-tone-surface: var(--seblify-color-secondary-surface, #f0efff);
|
|
63
|
+
--seblify-tone-text: var(--seblify-color-secondary-text, #2f316f);
|
|
64
|
+
--seblify-tone-border: var(--seblify-color-secondary-border, #c8c6f4);
|
|
65
|
+
}
|
|
66
|
+
|
|
48
67
|
:where(.seblify-tone-context[data-seblify-tone='success']) {
|
|
49
68
|
--seblify-tone-fill: var(--seblify-color-fill-success, #1f7a3f);
|
|
50
69
|
--seblify-tone-fill-text: var(--seblify-color-fill-success-text, #ffffff);
|
package/dist/theme.css
CHANGED
|
@@ -21,8 +21,12 @@
|
|
|
21
21
|
--seblify-color-fill-accent-text: #ffffff;
|
|
22
22
|
--seblify-color-fill-primary: var(--seblify-color-fill-accent);
|
|
23
23
|
--seblify-color-fill-primary-text: var(--seblify-color-fill-accent-text);
|
|
24
|
+
--seblify-color-fill-secondary: #5b5fc7;
|
|
25
|
+
--seblify-color-fill-secondary-text: #ffffff;
|
|
24
26
|
--seblify-color-fill-neutral: #516176;
|
|
25
27
|
--seblify-color-fill-neutral-text: #ffffff;
|
|
28
|
+
--seblify-color-fill-strong: #172033;
|
|
29
|
+
--seblify-color-fill-strong-text: #ffffff;
|
|
26
30
|
--seblify-color-fill-success: #1f7a3f;
|
|
27
31
|
--seblify-color-fill-success-text: #ffffff;
|
|
28
32
|
--seblify-color-fill-danger: #c93434;
|
|
@@ -36,6 +40,9 @@
|
|
|
36
40
|
--seblify-color-info-surface: #eaf3ff;
|
|
37
41
|
--seblify-color-info-border: #bfd1ea;
|
|
38
42
|
--seblify-color-info-text: #102f55;
|
|
43
|
+
--seblify-color-secondary-surface: #f0efff;
|
|
44
|
+
--seblify-color-secondary-border: #c8c6f4;
|
|
45
|
+
--seblify-color-secondary-text: #2f316f;
|
|
39
46
|
--seblify-color-success-surface: #e8f8ee;
|
|
40
47
|
--seblify-color-success-border: #b8ddc7;
|
|
41
48
|
--seblify-color-success-text: #143d25;
|
|
@@ -50,6 +57,7 @@
|
|
|
50
57
|
--seblify-shadow-control: 0 1px 3px rgb(16 24 40 / 24%);
|
|
51
58
|
--seblify-shadow-raised: 0 12px 28px rgb(23 32 51 / 22%);
|
|
52
59
|
--seblify-shadow-status: 0 10px 24px rgb(20 61 37 / 14%);
|
|
60
|
+
--seblify-z-index-tooltip: 30;
|
|
53
61
|
}
|
|
54
62
|
|
|
55
63
|
[data-theme='dark'] {
|
|
@@ -74,8 +82,12 @@
|
|
|
74
82
|
--seblify-color-fill-accent-text: #092d31;
|
|
75
83
|
--seblify-color-fill-primary: var(--seblify-color-fill-accent);
|
|
76
84
|
--seblify-color-fill-primary-text: var(--seblify-color-fill-accent-text);
|
|
85
|
+
--seblify-color-fill-secondary: #b8baff;
|
|
86
|
+
--seblify-color-fill-secondary-text: #16172f;
|
|
77
87
|
--seblify-color-fill-neutral: #aab7c5;
|
|
78
88
|
--seblify-color-fill-neutral-text: #12181f;
|
|
89
|
+
--seblify-color-fill-strong: #020617;
|
|
90
|
+
--seblify-color-fill-strong-text: #ffffff;
|
|
79
91
|
--seblify-color-fill-success: #58d77b;
|
|
80
92
|
--seblify-color-fill-success-text: #082211;
|
|
81
93
|
--seblify-color-fill-danger: #ff7a7a;
|
|
@@ -89,6 +101,9 @@
|
|
|
89
101
|
--seblify-color-info-surface: #10243a;
|
|
90
102
|
--seblify-color-info-border: #2f5f91;
|
|
91
103
|
--seblify-color-info-text: #b9dcff;
|
|
104
|
+
--seblify-color-secondary-surface: #24234a;
|
|
105
|
+
--seblify-color-secondary-border: #6c6fd1;
|
|
106
|
+
--seblify-color-secondary-text: #dbddff;
|
|
92
107
|
--seblify-color-success-surface: #123220;
|
|
93
108
|
--seblify-color-success-border: #3d7951;
|
|
94
109
|
--seblify-color-success-text: #b9f3c8;
|
|
@@ -128,8 +143,12 @@
|
|
|
128
143
|
--seblify-color-fill-accent-text: #092d31;
|
|
129
144
|
--seblify-color-fill-primary: var(--seblify-color-fill-accent);
|
|
130
145
|
--seblify-color-fill-primary-text: var(--seblify-color-fill-accent-text);
|
|
146
|
+
--seblify-color-fill-secondary: #b8baff;
|
|
147
|
+
--seblify-color-fill-secondary-text: #16172f;
|
|
131
148
|
--seblify-color-fill-neutral: #aab7c5;
|
|
132
149
|
--seblify-color-fill-neutral-text: #12181f;
|
|
150
|
+
--seblify-color-fill-strong: #020617;
|
|
151
|
+
--seblify-color-fill-strong-text: #ffffff;
|
|
133
152
|
--seblify-color-fill-success: #58d77b;
|
|
134
153
|
--seblify-color-fill-success-text: #082211;
|
|
135
154
|
--seblify-color-fill-danger: #ff7a7a;
|
|
@@ -143,6 +162,9 @@
|
|
|
143
162
|
--seblify-color-info-surface: #10243a;
|
|
144
163
|
--seblify-color-info-border: #2f5f91;
|
|
145
164
|
--seblify-color-info-text: #b9dcff;
|
|
165
|
+
--seblify-color-secondary-surface: #24234a;
|
|
166
|
+
--seblify-color-secondary-border: #6c6fd1;
|
|
167
|
+
--seblify-color-secondary-text: #dbddff;
|
|
146
168
|
--seblify-color-success-surface: #123220;
|
|
147
169
|
--seblify-color-success-border: #3d7951;
|
|
148
170
|
--seblify-color-success-text: #b9f3c8;
|
package/package.json
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
"name": "seblify",
|
|
3
3
|
"private": false,
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.3.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "svelte-package --input src --output dist --tsconfig ./tsconfig.json",
|
|
8
|
+
"build": "svelte-package --input src --output dist --tsconfig ./tsconfig.json && node ./scripts/test-results/clean-package-artifacts.mjs",
|
|
9
9
|
"generate:icons": "node ./scripts/generate-icons.mjs",
|
|
10
|
+
"test": "node ./scripts/test-results/run-tests.mjs",
|
|
10
11
|
"doc": "node ./scripts/change-log/document-change.mjs",
|
|
11
12
|
"change-log:validate": "node ./scripts/change-log/validate-pending.mjs",
|
|
12
13
|
"prepare-release": "node ./scripts/prepare-release.mjs",
|
|
@@ -24,6 +25,13 @@
|
|
|
24
25
|
"!dist/**/doc-section.d.ts",
|
|
25
26
|
"!dist/**/doc-section.js",
|
|
26
27
|
"!dist/**/examples/**",
|
|
28
|
+
"!dist/**/*.test.d.ts",
|
|
29
|
+
"!dist/**/*.test.js",
|
|
30
|
+
"!dist/**/*.visual.d.ts",
|
|
31
|
+
"!dist/**/*.visual.js",
|
|
32
|
+
"!dist/**/*.test-results.json",
|
|
33
|
+
"!dist/testing/**",
|
|
34
|
+
"!dist/visual-tests/**",
|
|
27
35
|
"!dist/icons/svg/**"
|
|
28
36
|
],
|
|
29
37
|
"exports": {
|
|
@@ -52,9 +60,13 @@
|
|
|
52
60
|
"svelte": "^5.0.0"
|
|
53
61
|
},
|
|
54
62
|
"devDependencies": {
|
|
63
|
+
"@playwright/test": "^1.60.0",
|
|
55
64
|
"@sveltejs/package": "^2.5.0",
|
|
56
65
|
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
57
|
-
"svelte": "^5.
|
|
66
|
+
"@testing-library/svelte": "^5.3.1",
|
|
67
|
+
"jsdom": "^29.1.1",
|
|
68
|
+
"svelte": "^5.38.6",
|
|
69
|
+
"vitest": "^4.0.0"
|
|
58
70
|
},
|
|
59
71
|
"dependencies": {
|
|
60
72
|
"prompts": "^2.4.2",
|