@crisp-ui-kit/crisp 0.33.0 → 0.33.1
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 +33 -1
- package/dist/appshell.css +1 -4
- package/dist/appshell.layered.css +1 -4
- package/dist/authshell.css +4 -19
- package/dist/authshell.layered.css +4 -19
- package/dist/avatar.css +2 -1
- package/dist/avatar.layered.css +2 -1
- package/dist/board.css +1 -4
- package/dist/board.layered.css +1 -4
- package/dist/breadcrumb.css +0 -1
- package/dist/breadcrumb.layered.css +0 -1
- package/dist/button.css +14 -6
- package/dist/button.layered.css +14 -6
- package/dist/card.css +2 -1
- package/dist/card.layered.css +2 -1
- package/dist/checkbox.css +6 -9
- package/dist/checkbox.layered.css +6 -9
- package/dist/cjs/components/avatar/avatar.recipe.js +38 -19
- package/dist/cjs/components/button/button.recipe.js +109 -18
- package/dist/cjs/components/switch/switch.recipe.js +48 -18
- package/dist/columncalc.css +2 -6
- package/dist/columncalc.layered.css +2 -6
- package/dist/command.css +9 -11
- package/dist/command.layered.css +9 -11
- package/dist/datatable.css +9 -19
- package/dist/datatable.layered.css +9 -19
- package/dist/datepicker.css +15 -80
- package/dist/datepicker.layered.css +15 -80
- package/dist/datepickerfield.css +3 -18
- package/dist/datepickerfield.layered.css +3 -18
- package/dist/donutchart.css +1 -2
- package/dist/donutchart.layered.css +1 -2
- package/dist/entitycard.css +1 -7
- package/dist/entitycard.layered.css +1 -7
- package/dist/esm/components/avatar/avatar.recipe.js +38 -19
- package/dist/esm/components/button/button.recipe.js +109 -18
- package/dist/esm/components/switch/switch.recipe.js +48 -18
- package/dist/fileupload.css +10 -60
- package/dist/fileupload.layered.css +10 -60
- package/dist/inbox.css +1 -7
- package/dist/inbox.layered.css +1 -7
- package/dist/input.css +9 -20
- package/dist/input.layered.css +9 -20
- package/dist/listpage.css +2 -12
- package/dist/listpage.layered.css +2 -12
- package/dist/menu.css +3 -19
- package/dist/menu.layered.css +3 -19
- package/dist/multiselect.css +4 -25
- package/dist/multiselect.layered.css +4 -25
- package/dist/navitem.css +5 -13
- package/dist/navitem.layered.css +5 -13
- package/dist/onboarding.css +1 -8
- package/dist/onboarding.layered.css +1 -8
- package/dist/quantitypicker.css +15 -50
- package/dist/quantitypicker.layered.css +15 -50
- package/dist/radiogroup.css +1 -6
- package/dist/radiogroup.layered.css +1 -6
- package/dist/recordpage.css +2 -10
- package/dist/recordpage.layered.css +2 -10
- package/dist/recordpanel.css +1 -13
- package/dist/recordpanel.layered.css +1 -13
- package/dist/recordstable.css +2 -11
- package/dist/recordstable.layered.css +2 -11
- package/dist/resizablepanel.css +4 -15
- package/dist/resizablepanel.layered.css +4 -15
- package/dist/richtext.css +1 -5
- package/dist/richtext.layered.css +1 -5
- package/dist/select.css +7 -30
- package/dist/select.layered.css +7 -30
- package/dist/settingsshell.css +2 -7
- package/dist/settingsshell.layered.css +2 -7
- package/dist/sidebar.css +23 -28
- package/dist/sidebar.layered.css +23 -28
- package/dist/slider.css +1 -8
- package/dist/slider.layered.css +1 -8
- package/dist/statcard.css +1 -2
- package/dist/statcard.layered.css +1 -2
- package/dist/styles.css +194 -652
- package/dist/styles.layered.css +194 -652
- package/dist/switch.css +1 -5
- package/dist/switch.layered.css +1 -5
- package/dist/table.css +2 -1
- package/dist/table.layered.css +2 -1
- package/dist/tabletoolbar.css +1 -3
- package/dist/tabletoolbar.layered.css +1 -3
- package/dist/tabs.css +1 -5
- package/dist/tabs.layered.css +1 -5
- package/dist/tasklist.css +1 -8
- package/dist/tasklist.layered.css +1 -8
- package/dist/textarea.css +2 -13
- package/dist/textarea.layered.css +2 -13
- package/dist/tooltip.css +2 -1
- package/dist/tooltip.layered.css +2 -1
- package/dist/trialbanner.css +2 -11
- package/dist/trialbanner.layered.css +2 -11
- package/dist/types/components/avatar/avatar.d.ts +30 -30
- package/dist/types/components/avatar/avatar.recipe.d.ts +136 -49
- package/dist/types/components/button/button.d.ts +30 -30
- package/dist/types/components/button/button.recipe.d.ts +193 -45
- package/dist/types/components/switch/switch.recipe.d.ts +57 -3
- package/dist/viewtoggle.css +3 -9
- package/dist/viewtoggle.layered.css +3 -9
- package/dist/wheelpicker.css +14 -59
- package/dist/wheelpicker.layered.css +14 -59
- package/package.json +1 -1
package/dist/switch.css
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
.crisp-switch {
|
|
2
|
-
|
|
3
|
-
display: inline-flex; align-items: center; flex-shrink: 0; width: 24px; height: 16px; padding: 0; margin: 0;
|
|
4
|
-
border: none; border-radius: var(--crisp-radius-full); background: color-mix(in srgb, var(--crisp-fg-primary) 9%, transparent);
|
|
5
|
-
cursor: pointer; transition: background-color .2s ease; -webkit-tap-highlight-color: transparent;
|
|
2
|
+
display: inline-flex; align-items: center; flex-shrink: 0; width: 24px; height: 16px; padding: 0; margin: 0; border: none; border-radius: var(--crisp-radius-full); background: color-mix(in srgb, var(--crisp-fg-primary) 9%, transparent); cursor: pointer; transition: background-color .2s ease; -webkit-tap-highlight-color: transparent;
|
|
6
3
|
& .crisp-switch-thumb { width: 12px; height: 12px; margin: 0 2px; border-radius: var(--crisp-radius-full); background: #fff; transition: transform .2s ease; }
|
|
7
4
|
&[data-checked] { background: var(--crisp-bg-brand-solid); }
|
|
8
5
|
&[data-checked] .crisp-switch-thumb { transform: translateX(8px); }
|
|
9
6
|
&:focus-visible { outline: 2px solid var(--crisp-bg-brand-solid); outline-offset: 2px; }
|
|
10
7
|
&:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
11
|
-
|
|
12
8
|
}
|
|
13
9
|
|
|
14
10
|
@media (prefers-reduced-motion: reduce) {
|
package/dist/switch.layered.css
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
@layer crisp-components {
|
|
2
2
|
.crisp-switch {
|
|
3
|
-
|
|
4
|
-
display: inline-flex; align-items: center; flex-shrink: 0; width: 24px; height: 16px; padding: 0; margin: 0;
|
|
5
|
-
border: none; border-radius: var(--crisp-radius-full); background: color-mix(in srgb, var(--crisp-fg-primary) 9%, transparent);
|
|
6
|
-
cursor: pointer; transition: background-color .2s ease; -webkit-tap-highlight-color: transparent;
|
|
3
|
+
display: inline-flex; align-items: center; flex-shrink: 0; width: 24px; height: 16px; padding: 0; margin: 0; border: none; border-radius: var(--crisp-radius-full); background: color-mix(in srgb, var(--crisp-fg-primary) 9%, transparent); cursor: pointer; transition: background-color .2s ease; -webkit-tap-highlight-color: transparent;
|
|
7
4
|
& .crisp-switch-thumb { width: 12px; height: 12px; margin: 0 2px; border-radius: var(--crisp-radius-full); background: #fff; transition: transform .2s ease; }
|
|
8
5
|
&[data-checked] { background: var(--crisp-bg-brand-solid); }
|
|
9
6
|
&[data-checked] .crisp-switch-thumb { transform: translateX(8px); }
|
|
10
7
|
&:focus-visible { outline: 2px solid var(--crisp-bg-brand-solid); outline-offset: 2px; }
|
|
11
8
|
&:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
12
|
-
|
|
13
9
|
}
|
|
14
10
|
|
|
15
11
|
@media (prefers-reduced-motion: reduce) {
|
package/dist/table.css
CHANGED
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
& td[data-align="center"], & th[data-align="center"] { text-align: center; }
|
|
14
14
|
}
|
|
15
15
|
.crisp-table--interactive_true {
|
|
16
|
-
& tbody tr { transition: background-color .12s; }
|
|
16
|
+
& tbody tr { transition: background-color .12s; }
|
|
17
|
+
& tbody tr:hover td { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, var(--crisp-bg-surface)); }
|
|
17
18
|
}
|
|
18
19
|
.crisp-table--interactive_false {
|
|
19
20
|
|
package/dist/table.layered.css
CHANGED
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
& td[data-align="center"], & th[data-align="center"] { text-align: center; }
|
|
15
15
|
}
|
|
16
16
|
.crisp-table--interactive_true {
|
|
17
|
-
& tbody tr { transition: background-color .12s; }
|
|
17
|
+
& tbody tr { transition: background-color .12s; }
|
|
18
|
+
& tbody tr:hover td { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, var(--crisp-bg-surface)); }
|
|
18
19
|
}
|
|
19
20
|
.crisp-table--interactive_false {
|
|
20
21
|
|
package/dist/tabletoolbar.css
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.crisp-tabletoolbar {
|
|
2
|
-
|
|
3
|
-
display: contents; font-family: var(--crisp-font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
2
|
+
display: contents; font-family: var(--crisp-font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
4
3
|
& * { box-sizing: border-box; }
|
|
5
4
|
& .crisp-tabletoolbar-toolbar { display: flex; align-items: center; gap: var(--crisp-space-1-5); padding: 0 var(--crisp-space-3) var(--crisp-space-2); }
|
|
6
5
|
& .crisp-tabletoolbar-search { display: flex; align-items: center; gap: var(--crisp-space-1-5); height: var(--crisp-size-row); padding: 0 var(--crisp-space-2-5); border: none; border-radius: var(--crisp-radius-md); background: var(--crisp-bg-surface); box-shadow: inset 0 0 0 1px var(--crisp-border-subtle); color: var(--crisp-fg-muted); }
|
|
@@ -66,7 +65,6 @@
|
|
|
66
65
|
& .crisp-tabletoolbar-count { font-size: var(--crisp-text-md); color: var(--crisp-fg-muted); }
|
|
67
66
|
& .crisp-tabletoolbar-new { display: inline-flex; align-items: center; gap: var(--crisp-space-1); height: var(--crisp-size-row); padding: 0 var(--crisp-space-2-5); border: none; border-radius: var(--crisp-radius-md); background: var(--crisp-bg-brand-solid); color: var(--crisp-fg-on-brand); font-family: inherit; font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); cursor: pointer; transition: background-color .12s; }
|
|
68
67
|
& .crisp-tabletoolbar-new:hover { background: var(--crisp-bg-brand-solid-pressed); }
|
|
69
|
-
|
|
70
68
|
}
|
|
71
69
|
|
|
72
70
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@layer crisp-components {
|
|
2
2
|
.crisp-tabletoolbar {
|
|
3
|
-
|
|
4
|
-
display: contents; font-family: var(--crisp-font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
3
|
+
display: contents; font-family: var(--crisp-font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
5
4
|
& * { box-sizing: border-box; }
|
|
6
5
|
& .crisp-tabletoolbar-toolbar { display: flex; align-items: center; gap: var(--crisp-space-1-5); padding: 0 var(--crisp-space-3) var(--crisp-space-2); }
|
|
7
6
|
& .crisp-tabletoolbar-search { display: flex; align-items: center; gap: var(--crisp-space-1-5); height: var(--crisp-size-row); padding: 0 var(--crisp-space-2-5); border: none; border-radius: var(--crisp-radius-md); background: var(--crisp-bg-surface); box-shadow: inset 0 0 0 1px var(--crisp-border-subtle); color: var(--crisp-fg-muted); }
|
|
@@ -67,7 +66,6 @@
|
|
|
67
66
|
& .crisp-tabletoolbar-count { font-size: var(--crisp-text-md); color: var(--crisp-fg-muted); }
|
|
68
67
|
& .crisp-tabletoolbar-new { display: inline-flex; align-items: center; gap: var(--crisp-space-1); height: var(--crisp-size-row); padding: 0 var(--crisp-space-2-5); border: none; border-radius: var(--crisp-radius-md); background: var(--crisp-bg-brand-solid); color: var(--crisp-fg-on-brand); font-family: inherit; font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); cursor: pointer; transition: background-color .12s; }
|
|
69
68
|
& .crisp-tabletoolbar-new:hover { background: var(--crisp-bg-brand-solid-pressed); }
|
|
70
|
-
|
|
71
69
|
}
|
|
72
70
|
|
|
73
71
|
@media (prefers-reduced-motion: reduce) {
|
package/dist/tabs.css
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
.crisp-tabs {
|
|
2
|
-
|
|
3
|
-
display: flex; flex-direction: column; min-height: 0; font-family: var(--crisp-font-sans);
|
|
4
|
-
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
5
|
-
|
|
2
|
+
display: flex; flex-direction: column; min-height: 0; font-family: var(--crisp-font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
6
3
|
& .crisp-tabs-list { position: relative; display: flex; align-items: center; gap: var(--crisp-space-1); height: var(--crisp-size-row); flex-shrink: 0; }
|
|
7
4
|
& .crisp-tabs-leading { display: inline-flex; align-items: center; margin-inline-end: var(--crisp-space-1); }
|
|
8
5
|
& .crisp-tabs-tab { position: relative; display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); height: 28px; margin: 0; padding: 0 var(--crisp-space-2); border: none; background: none; box-shadow: inset 0 0 0 1px transparent; border-radius: var(--crisp-radius-md); font-family: inherit; font-size: var(--crisp-text-lg); font-weight: var(--crisp-weight-medium); letter-spacing: -0.14px; color: var(--crisp-fg-muted); cursor: pointer; white-space: nowrap; transition: color .12s ease, background-color .12s ease, box-shadow .12s ease; }
|
|
@@ -15,7 +12,6 @@
|
|
|
15
12
|
& .crisp-tabs-indicator { position: absolute; bottom: calc(-1 * var(--crisp-space-2)); left: 0; height: 1px; background: var(--crisp-fg-primary); border-radius: 2px 2px 0 0; transition: transform .2s cubic-bezier(.4,0,.2,1), width .2s cubic-bezier(.4,0,.2,1); pointer-events: none; }
|
|
16
13
|
& .crisp-tabs-panel { flex: 1; min-height: 0; }
|
|
17
14
|
& .crisp-tabs-panel:focus-visible { outline: none; }
|
|
18
|
-
|
|
19
15
|
}
|
|
20
16
|
|
|
21
17
|
@media (prefers-reduced-motion: reduce) {
|
package/dist/tabs.layered.css
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
@layer crisp-components {
|
|
2
2
|
.crisp-tabs {
|
|
3
|
-
|
|
4
|
-
display: flex; flex-direction: column; min-height: 0; font-family: var(--crisp-font-sans);
|
|
5
|
-
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
6
|
-
|
|
3
|
+
display: flex; flex-direction: column; min-height: 0; font-family: var(--crisp-font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
7
4
|
& .crisp-tabs-list { position: relative; display: flex; align-items: center; gap: var(--crisp-space-1); height: var(--crisp-size-row); flex-shrink: 0; }
|
|
8
5
|
& .crisp-tabs-leading { display: inline-flex; align-items: center; margin-inline-end: var(--crisp-space-1); }
|
|
9
6
|
& .crisp-tabs-tab { position: relative; display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); height: 28px; margin: 0; padding: 0 var(--crisp-space-2); border: none; background: none; box-shadow: inset 0 0 0 1px transparent; border-radius: var(--crisp-radius-md); font-family: inherit; font-size: var(--crisp-text-lg); font-weight: var(--crisp-weight-medium); letter-spacing: -0.14px; color: var(--crisp-fg-muted); cursor: pointer; white-space: nowrap; transition: color .12s ease, background-color .12s ease, box-shadow .12s ease; }
|
|
@@ -16,7 +13,6 @@
|
|
|
16
13
|
& .crisp-tabs-indicator { position: absolute; bottom: calc(-1 * var(--crisp-space-2)); left: 0; height: 1px; background: var(--crisp-fg-primary); border-radius: 2px 2px 0 0; transition: transform .2s cubic-bezier(.4,0,.2,1), width .2s cubic-bezier(.4,0,.2,1); pointer-events: none; }
|
|
17
14
|
& .crisp-tabs-panel { flex: 1; min-height: 0; }
|
|
18
15
|
& .crisp-tabs-panel:focus-visible { outline: none; }
|
|
19
|
-
|
|
20
16
|
}
|
|
21
17
|
|
|
22
18
|
@media (prefers-reduced-motion: reduce) {
|
package/dist/tasklist.css
CHANGED
|
@@ -1,25 +1,18 @@
|
|
|
1
1
|
.crisp-tasklist {
|
|
2
|
-
display: flex; flex-direction: column; box-sizing: border-box; font-family: var(--crisp-font-sans);
|
|
3
|
-
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
4
|
-
|
|
2
|
+
display: flex; flex-direction: column; box-sizing: border-box; font-family: var(--crisp-font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
5
3
|
& .crisp-tasklist-group { display: flex; align-items: center; gap: var(--crisp-space-1-5); height: 36px; padding: 0 var(--crisp-space-2); font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-muted); }
|
|
6
4
|
& .crisp-tasklist-group-count { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 var(--crisp-space-1); border-radius: var(--crisp-radius-sm); background: color-mix(in srgb, var(--crisp-fg-primary) 6%, transparent); font-size: var(--crisp-text-xs); color: var(--crisp-fg-muted); }
|
|
7
|
-
|
|
8
5
|
& .crisp-tasklist-row { display: flex; align-items: center; gap: var(--crisp-space-2-5); height: 52px; padding: 0 var(--crisp-space-2); border-top: 1px solid var(--crisp-border-subtle); }
|
|
9
6
|
& .crisp-tasklist-row:first-child { border-top: none; }
|
|
10
|
-
|
|
11
7
|
& .crisp-tasklist-check { appearance: none; -webkit-appearance: none; box-sizing: border-box; flex-shrink: 0; margin: 0; width: 16px; height: 16px; border: none; border-radius: var(--crisp-radius-full); background: var(--crisp-bg-surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crisp-fg-primary) 9%, transparent); cursor: pointer; transition: background-color .12s, box-shadow .12s; }
|
|
12
8
|
& .crisp-tasklist-check:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crisp-fg-primary) 30%, transparent); }
|
|
13
9
|
& .crisp-tasklist-check:checked { background: var(--crisp-bg-brand-solid) center / 10px no-repeat; box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5 5 9l4.5-5'/%3E%3C/svg%3E"); }
|
|
14
10
|
& .crisp-tasklist-check:focus-visible { outline: 2px solid var(--crisp-bg-brand-solid); outline-offset: 1px; }
|
|
15
|
-
|
|
16
11
|
& .crisp-tasklist-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--crisp-text-lg); font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary); }
|
|
17
12
|
& .crisp-tasklist-row[data-done] .crisp-tasklist-title { color: var(--crisp-fg-muted); text-decoration: line-through; }
|
|
18
|
-
|
|
19
13
|
& .crisp-tasklist-meta { display: inline-flex; align-items: center; gap: var(--crisp-space-3); flex-shrink: 0; }
|
|
20
14
|
& .crisp-tasklist-due { font-size: var(--crisp-text-lg); color: var(--crisp-fg-muted); white-space: nowrap; }
|
|
21
15
|
& .crisp-tasklist-due[data-overdue] { color: var(--crisp-bg-danger); }
|
|
22
|
-
|
|
23
16
|
& .crisp-tasklist-empty { padding: var(--crisp-space-4) var(--crisp-space-2); text-align: center; font-size: var(--crisp-text-md); color: var(--crisp-fg-muted); }
|
|
24
17
|
}
|
|
25
18
|
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
@layer crisp-components {
|
|
2
2
|
.crisp-tasklist {
|
|
3
|
-
display: flex; flex-direction: column; box-sizing: border-box; font-family: var(--crisp-font-sans);
|
|
4
|
-
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
5
|
-
|
|
3
|
+
display: flex; flex-direction: column; box-sizing: border-box; font-family: var(--crisp-font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
6
4
|
& .crisp-tasklist-group { display: flex; align-items: center; gap: var(--crisp-space-1-5); height: 36px; padding: 0 var(--crisp-space-2); font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-muted); }
|
|
7
5
|
& .crisp-tasklist-group-count { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 var(--crisp-space-1); border-radius: var(--crisp-radius-sm); background: color-mix(in srgb, var(--crisp-fg-primary) 6%, transparent); font-size: var(--crisp-text-xs); color: var(--crisp-fg-muted); }
|
|
8
|
-
|
|
9
6
|
& .crisp-tasklist-row { display: flex; align-items: center; gap: var(--crisp-space-2-5); height: 52px; padding: 0 var(--crisp-space-2); border-top: 1px solid var(--crisp-border-subtle); }
|
|
10
7
|
& .crisp-tasklist-row:first-child { border-top: none; }
|
|
11
|
-
|
|
12
8
|
& .crisp-tasklist-check { appearance: none; -webkit-appearance: none; box-sizing: border-box; flex-shrink: 0; margin: 0; width: 16px; height: 16px; border: none; border-radius: var(--crisp-radius-full); background: var(--crisp-bg-surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crisp-fg-primary) 9%, transparent); cursor: pointer; transition: background-color .12s, box-shadow .12s; }
|
|
13
9
|
& .crisp-tasklist-check:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crisp-fg-primary) 30%, transparent); }
|
|
14
10
|
& .crisp-tasklist-check:checked { background: var(--crisp-bg-brand-solid) center / 10px no-repeat; box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5 5 9l4.5-5'/%3E%3C/svg%3E"); }
|
|
15
11
|
& .crisp-tasklist-check:focus-visible { outline: 2px solid var(--crisp-bg-brand-solid); outline-offset: 1px; }
|
|
16
|
-
|
|
17
12
|
& .crisp-tasklist-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--crisp-text-lg); font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary); }
|
|
18
13
|
& .crisp-tasklist-row[data-done] .crisp-tasklist-title { color: var(--crisp-fg-muted); text-decoration: line-through; }
|
|
19
|
-
|
|
20
14
|
& .crisp-tasklist-meta { display: inline-flex; align-items: center; gap: var(--crisp-space-3); flex-shrink: 0; }
|
|
21
15
|
& .crisp-tasklist-due { font-size: var(--crisp-text-lg); color: var(--crisp-fg-muted); white-space: nowrap; }
|
|
22
16
|
& .crisp-tasklist-due[data-overdue] { color: var(--crisp-bg-danger); }
|
|
23
|
-
|
|
24
17
|
& .crisp-tasklist-empty { padding: var(--crisp-space-4) var(--crisp-space-2); text-align: center; font-size: var(--crisp-text-md); color: var(--crisp-fg-muted); }
|
|
25
18
|
}
|
|
26
19
|
|
package/dist/textarea.css
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
.crisp-textarea {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
& .crisp-textarea-field {
|
|
6
|
-
box-sizing: border-box; display: block; width: 100%; min-height: 80px; resize: vertical;
|
|
7
|
-
margin: 0; padding: var(--crisp-space-1-5) var(--crisp-space-2-5); border: none; border-radius: var(--crisp-radius-md);
|
|
8
|
-
background: var(--crisp-bg-surface); box-shadow: inset 0 0 0 1px var(--crisp-ring-neutral), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04);
|
|
9
|
-
font-family: inherit; font-size: var(--crisp-text-lg); line-height: 20px; color: var(--crisp-fg-primary);
|
|
10
|
-
outline: none; transition: box-shadow .15s ease;
|
|
11
|
-
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
12
|
-
}
|
|
2
|
+
position: relative; display: block; width: 100%; font-family: var(--crisp-font-sans);
|
|
3
|
+
& .crisp-textarea-field { box-sizing: border-box; display: block; width: 100%; min-height: 80px; resize: vertical; margin: 0; padding: var(--crisp-space-1-5) var(--crisp-space-2-5); border: none; border-radius: var(--crisp-radius-md); background: var(--crisp-bg-surface); box-shadow: inset 0 0 0 1px var(--crisp-ring-neutral), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); font-family: inherit; font-size: var(--crisp-text-lg); line-height: 20px; color: var(--crisp-fg-primary); outline: none; transition: box-shadow .15s ease; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
|
|
13
4
|
& .crisp-textarea-field::placeholder { color: var(--crisp-fg-muted); }
|
|
14
5
|
& .crisp-textarea-field:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
15
|
-
|
|
16
6
|
/* seed-design's focus treatment, same as Input: a 2px ring on an ::after
|
|
17
7
|
overlay that is present-but-transparent at rest, so focusing never
|
|
18
8
|
shifts the box, animating only its colour. */
|
|
@@ -28,7 +18,6 @@
|
|
|
28
18
|
&[data-counted] .crisp-textarea-field { padding-bottom: var(--crisp-space-5); }
|
|
29
19
|
& .crisp-textarea-count { position: absolute; inset-inline-end: var(--crisp-space-2-5); bottom: var(--crisp-space-1-5); font-size: var(--crisp-text-sm); color: var(--crisp-fg-muted); pointer-events: none; }
|
|
30
20
|
& .crisp-textarea-count[data-over] { color: var(--crisp-bg-danger); }
|
|
31
|
-
|
|
32
21
|
}
|
|
33
22
|
|
|
34
23
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
@layer crisp-components {
|
|
2
2
|
.crisp-textarea {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
& .crisp-textarea-field {
|
|
7
|
-
box-sizing: border-box; display: block; width: 100%; min-height: 80px; resize: vertical;
|
|
8
|
-
margin: 0; padding: var(--crisp-space-1-5) var(--crisp-space-2-5); border: none; border-radius: var(--crisp-radius-md);
|
|
9
|
-
background: var(--crisp-bg-surface); box-shadow: inset 0 0 0 1px var(--crisp-ring-neutral), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04);
|
|
10
|
-
font-family: inherit; font-size: var(--crisp-text-lg); line-height: 20px; color: var(--crisp-fg-primary);
|
|
11
|
-
outline: none; transition: box-shadow .15s ease;
|
|
12
|
-
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
13
|
-
}
|
|
3
|
+
position: relative; display: block; width: 100%; font-family: var(--crisp-font-sans);
|
|
4
|
+
& .crisp-textarea-field { box-sizing: border-box; display: block; width: 100%; min-height: 80px; resize: vertical; margin: 0; padding: var(--crisp-space-1-5) var(--crisp-space-2-5); border: none; border-radius: var(--crisp-radius-md); background: var(--crisp-bg-surface); box-shadow: inset 0 0 0 1px var(--crisp-ring-neutral), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); font-family: inherit; font-size: var(--crisp-text-lg); line-height: 20px; color: var(--crisp-fg-primary); outline: none; transition: box-shadow .15s ease; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
|
|
14
5
|
& .crisp-textarea-field::placeholder { color: var(--crisp-fg-muted); }
|
|
15
6
|
& .crisp-textarea-field:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
16
|
-
|
|
17
7
|
/* seed-design's focus treatment, same as Input: a 2px ring on an ::after
|
|
18
8
|
overlay that is present-but-transparent at rest, so focusing never
|
|
19
9
|
shifts the box, animating only its colour. */
|
|
@@ -29,7 +19,6 @@
|
|
|
29
19
|
&[data-counted] .crisp-textarea-field { padding-bottom: var(--crisp-space-5); }
|
|
30
20
|
& .crisp-textarea-count { position: absolute; inset-inline-end: var(--crisp-space-2-5); bottom: var(--crisp-space-1-5); font-size: var(--crisp-text-sm); color: var(--crisp-fg-muted); pointer-events: none; }
|
|
31
21
|
& .crisp-textarea-count[data-over] { color: var(--crisp-bg-danger); }
|
|
32
|
-
|
|
33
22
|
}
|
|
34
23
|
|
|
35
24
|
@media (prefers-reduced-motion: reduce) {
|
package/dist/tooltip.css
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.crisp-tooltip {
|
|
2
|
-
position: fixed; z-index: 70; box-sizing: border-box; pointer-events: none; max-width: 260px; padding: var(--crisp-space-1) var(--crisp-space-2); border-radius: var(--crisp-radius-sm); background: #20242c; color: #fff; font-family: var(--crisp-font-sans); font-size: var(--crisp-text-sm); font-weight: var(--crisp-weight-medium); line-height: 1.45; box-shadow: 0 4px 14px -2px rgba(28,40,64,0.28), 0 0 0 1px rgba(255,255,255,0.04); opacity: 1; transition: opacity 0.12s ease;
|
|
2
|
+
position: fixed; z-index: 70; box-sizing: border-box; pointer-events: none; max-width: 260px; padding: var(--crisp-space-1) var(--crisp-space-2); border-radius: var(--crisp-radius-sm); background: #20242c; color: #fff; font-family: var(--crisp-font-sans); font-size: var(--crisp-text-sm); font-weight: var(--crisp-weight-medium); line-height: 1.45; box-shadow: 0 4px 14px -2px rgba(28,40,64,0.28), 0 0 0 1px rgba(255,255,255,0.04); opacity: 1; transition: opacity 0.12s ease;
|
|
3
|
+
@starting-style { opacity: 0; }
|
|
3
4
|
}
|
|
4
5
|
|
|
5
6
|
@media (prefers-reduced-motion: reduce) {
|
package/dist/tooltip.layered.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@layer crisp-components {
|
|
2
2
|
.crisp-tooltip {
|
|
3
|
-
position: fixed; z-index: 70; box-sizing: border-box; pointer-events: none; max-width: 260px; padding: var(--crisp-space-1) var(--crisp-space-2); border-radius: var(--crisp-radius-sm); background: #20242c; color: #fff; font-family: var(--crisp-font-sans); font-size: var(--crisp-text-sm); font-weight: var(--crisp-weight-medium); line-height: 1.45; box-shadow: 0 4px 14px -2px rgba(28,40,64,0.28), 0 0 0 1px rgba(255,255,255,0.04); opacity: 1; transition: opacity 0.12s ease;
|
|
3
|
+
position: fixed; z-index: 70; box-sizing: border-box; pointer-events: none; max-width: 260px; padding: var(--crisp-space-1) var(--crisp-space-2); border-radius: var(--crisp-radius-sm); background: #20242c; color: #fff; font-family: var(--crisp-font-sans); font-size: var(--crisp-text-sm); font-weight: var(--crisp-weight-medium); line-height: 1.45; box-shadow: 0 4px 14px -2px rgba(28,40,64,0.28), 0 0 0 1px rgba(255,255,255,0.04); opacity: 1; transition: opacity 0.12s ease;
|
|
4
|
+
@starting-style { opacity: 0; }
|
|
4
5
|
}
|
|
5
6
|
|
|
6
7
|
@media (prefers-reduced-motion: reduce) {
|
package/dist/trialbanner.css
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
.crisp-trialbanner {
|
|
2
|
-
display: flex; align-items: center; gap: var(--crisp-space-1-5); box-sizing: border-box; min-height: 28px;
|
|
3
|
-
padding: 0 var(--crisp-space-1); border-radius: var(--crisp-radius-lg); font-family: var(--crisp-font-sans);
|
|
4
|
-
font-size: var(--crisp-text-lg); color: var(--crisp-fg-primary);
|
|
5
|
-
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
6
|
-
|
|
2
|
+
display: flex; align-items: center; gap: var(--crisp-space-1-5); box-sizing: border-box; min-height: 28px; padding: 0 var(--crisp-space-1); border-radius: var(--crisp-radius-lg); font-family: var(--crisp-font-sans); font-size: var(--crisp-text-lg); color: var(--crisp-fg-primary); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
7
3
|
& .crisp-trialbanner-icon { display: inline-flex; flex-shrink: 0; color: var(--crisp-fg-muted); }
|
|
8
4
|
& .crisp-trialbanner-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
9
|
-
& .crisp-trialbanner-action { display: inline-flex; align-items: center; gap: var(--crisp-space-1); height: 20px; flex-shrink: 0;
|
|
10
|
-
padding: 0 var(--crisp-space-1-5); margin: 0; border: none; border-radius: var(--crisp-radius-sm); background: var(--crisp-bg-surface);
|
|
11
|
-
box-shadow: 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04);
|
|
12
|
-
font-family: inherit; font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary);
|
|
13
|
-
white-space: nowrap; cursor: pointer; transition: background-color .12s; }
|
|
5
|
+
& .crisp-trialbanner-action { display: inline-flex; align-items: center; gap: var(--crisp-space-1); height: 20px; flex-shrink: 0; padding: 0 var(--crisp-space-1-5); margin: 0; border: none; border-radius: var(--crisp-radius-sm); background: var(--crisp-bg-surface); box-shadow: 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); font-family: inherit; font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary); white-space: nowrap; cursor: pointer; transition: background-color .12s; }
|
|
14
6
|
& .crisp-trialbanner-action:hover { background: var(--crisp-bg-raised); }
|
|
15
|
-
|
|
16
7
|
&[data-tone="warning"] .crisp-trialbanner-icon { color: var(--crisp-bg-warning); }
|
|
17
8
|
&[data-tone="danger"] .crisp-trialbanner-icon { color: var(--crisp-bg-danger); }
|
|
18
9
|
}
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
@layer crisp-components {
|
|
2
2
|
.crisp-trialbanner {
|
|
3
|
-
display: flex; align-items: center; gap: var(--crisp-space-1-5); box-sizing: border-box; min-height: 28px;
|
|
4
|
-
padding: 0 var(--crisp-space-1); border-radius: var(--crisp-radius-lg); font-family: var(--crisp-font-sans);
|
|
5
|
-
font-size: var(--crisp-text-lg); color: var(--crisp-fg-primary);
|
|
6
|
-
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
7
|
-
|
|
3
|
+
display: flex; align-items: center; gap: var(--crisp-space-1-5); box-sizing: border-box; min-height: 28px; padding: 0 var(--crisp-space-1); border-radius: var(--crisp-radius-lg); font-family: var(--crisp-font-sans); font-size: var(--crisp-text-lg); color: var(--crisp-fg-primary); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
8
4
|
& .crisp-trialbanner-icon { display: inline-flex; flex-shrink: 0; color: var(--crisp-fg-muted); }
|
|
9
5
|
& .crisp-trialbanner-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
10
|
-
& .crisp-trialbanner-action { display: inline-flex; align-items: center; gap: var(--crisp-space-1); height: 20px; flex-shrink: 0;
|
|
11
|
-
padding: 0 var(--crisp-space-1-5); margin: 0; border: none; border-radius: var(--crisp-radius-sm); background: var(--crisp-bg-surface);
|
|
12
|
-
box-shadow: 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04);
|
|
13
|
-
font-family: inherit; font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary);
|
|
14
|
-
white-space: nowrap; cursor: pointer; transition: background-color .12s; }
|
|
6
|
+
& .crisp-trialbanner-action { display: inline-flex; align-items: center; gap: var(--crisp-space-1); height: 20px; flex-shrink: 0; padding: 0 var(--crisp-space-1-5); margin: 0; border: none; border-radius: var(--crisp-radius-sm); background: var(--crisp-bg-surface); box-shadow: 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); font-family: inherit; font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary); white-space: nowrap; cursor: pointer; transition: background-color .12s; }
|
|
15
7
|
& .crisp-trialbanner-action:hover { background: var(--crisp-bg-raised); }
|
|
16
|
-
|
|
17
8
|
&[data-tone="warning"] .crisp-trialbanner-icon { color: var(--crisp-bg-warning); }
|
|
18
9
|
&[data-tone="danger"] .crisp-trialbanner-icon { color: var(--crisp-bg-danger); }
|
|
19
10
|
}
|
|
@@ -5,43 +5,43 @@ export type AvatarProps = Omit<React.ComponentPropsWithoutRef<"span">, "color">
|
|
|
5
5
|
asChild?: boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare const Avatar: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "color"> & VariantProps<import("../..").RecipeFn<{
|
|
8
|
-
size: {
|
|
9
|
-
sm: string;
|
|
10
|
-
md: string;
|
|
11
|
-
lg: string;
|
|
12
|
-
xl: string;
|
|
8
|
+
readonly size: {
|
|
9
|
+
readonly sm: string;
|
|
10
|
+
readonly md: string;
|
|
11
|
+
readonly lg: string;
|
|
12
|
+
readonly xl: string;
|
|
13
13
|
};
|
|
14
|
-
shape: {
|
|
15
|
-
circle: string;
|
|
16
|
-
rounded: string;
|
|
14
|
+
readonly shape: {
|
|
15
|
+
readonly circle: string;
|
|
16
|
+
readonly rounded: string;
|
|
17
17
|
};
|
|
18
|
-
tone: {
|
|
19
|
-
neutral: string;
|
|
20
|
-
brand: string;
|
|
21
|
-
orange: string;
|
|
22
|
-
cyan: string;
|
|
23
|
-
purple: string;
|
|
24
|
-
green: string;
|
|
18
|
+
readonly tone: {
|
|
19
|
+
readonly neutral: string;
|
|
20
|
+
readonly brand: string;
|
|
21
|
+
readonly orange: string;
|
|
22
|
+
readonly cyan: string;
|
|
23
|
+
readonly purple: string;
|
|
24
|
+
readonly green: string;
|
|
25
25
|
};
|
|
26
26
|
}> & {
|
|
27
27
|
config: import("../..").RecipeConfig<{
|
|
28
|
-
size: {
|
|
29
|
-
sm: string;
|
|
30
|
-
md: string;
|
|
31
|
-
lg: string;
|
|
32
|
-
xl: string;
|
|
28
|
+
readonly size: {
|
|
29
|
+
readonly sm: string;
|
|
30
|
+
readonly md: string;
|
|
31
|
+
readonly lg: string;
|
|
32
|
+
readonly xl: string;
|
|
33
33
|
};
|
|
34
|
-
shape: {
|
|
35
|
-
circle: string;
|
|
36
|
-
rounded: string;
|
|
34
|
+
readonly shape: {
|
|
35
|
+
readonly circle: string;
|
|
36
|
+
readonly rounded: string;
|
|
37
37
|
};
|
|
38
|
-
tone: {
|
|
39
|
-
neutral: string;
|
|
40
|
-
brand: string;
|
|
41
|
-
orange: string;
|
|
42
|
-
cyan: string;
|
|
43
|
-
purple: string;
|
|
44
|
-
green: string;
|
|
38
|
+
readonly tone: {
|
|
39
|
+
readonly neutral: string;
|
|
40
|
+
readonly brand: string;
|
|
41
|
+
readonly orange: string;
|
|
42
|
+
readonly cyan: string;
|
|
43
|
+
readonly purple: string;
|
|
44
|
+
readonly green: string;
|
|
45
45
|
};
|
|
46
46
|
}>;
|
|
47
47
|
}> & {
|
|
@@ -1,62 +1,149 @@
|
|
|
1
|
+
declare const spec: {
|
|
2
|
+
readonly name: "avatar";
|
|
3
|
+
readonly base: {
|
|
4
|
+
readonly display: "inline-flex";
|
|
5
|
+
readonly alignItems: "center";
|
|
6
|
+
readonly justifyContent: "center";
|
|
7
|
+
readonly flexShrink: 0;
|
|
8
|
+
readonly fontFamily: `var(--${string})`;
|
|
9
|
+
readonly fontWeight: `var(--${string})`;
|
|
10
|
+
readonly overflow: "hidden";
|
|
11
|
+
readonly userSelect: "none";
|
|
12
|
+
};
|
|
13
|
+
readonly parts: [{
|
|
14
|
+
readonly slot: "image";
|
|
15
|
+
readonly selector: "& img";
|
|
16
|
+
readonly decls: {
|
|
17
|
+
readonly width: "100%";
|
|
18
|
+
readonly height: "100%";
|
|
19
|
+
readonly objectFit: "cover";
|
|
20
|
+
};
|
|
21
|
+
}];
|
|
22
|
+
readonly variants: {
|
|
23
|
+
readonly size: {
|
|
24
|
+
readonly sm: {
|
|
25
|
+
readonly height: "16px";
|
|
26
|
+
readonly width: "16px";
|
|
27
|
+
readonly fontSize: "9px";
|
|
28
|
+
};
|
|
29
|
+
readonly md: {
|
|
30
|
+
readonly height: "20px";
|
|
31
|
+
readonly width: "20px";
|
|
32
|
+
readonly fontSize: "10px";
|
|
33
|
+
};
|
|
34
|
+
readonly lg: {
|
|
35
|
+
readonly height: "24px";
|
|
36
|
+
readonly width: "24px";
|
|
37
|
+
readonly fontSize: `var(--${string})`;
|
|
38
|
+
};
|
|
39
|
+
readonly xl: {
|
|
40
|
+
readonly height: "32px";
|
|
41
|
+
readonly width: "32px";
|
|
42
|
+
readonly fontSize: `var(--${string})`;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
readonly shape: {
|
|
46
|
+
readonly circle: {
|
|
47
|
+
borderRadius: `var(--${string})`;
|
|
48
|
+
};
|
|
49
|
+
readonly rounded: {
|
|
50
|
+
readonly borderRadius: "30%";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
readonly tone: {
|
|
54
|
+
readonly neutral: {
|
|
55
|
+
readonly background: `var(--${string})`;
|
|
56
|
+
readonly color: `var(--${string})`;
|
|
57
|
+
readonly boxShadow: `inset 0 0 0 1px var(--${string})`;
|
|
58
|
+
};
|
|
59
|
+
readonly brand: {
|
|
60
|
+
readonly background: `var(--${string})`;
|
|
61
|
+
readonly color: "#fff";
|
|
62
|
+
};
|
|
63
|
+
readonly orange: {
|
|
64
|
+
readonly background: `var(--${string})`;
|
|
65
|
+
readonly color: "#fff";
|
|
66
|
+
};
|
|
67
|
+
readonly cyan: {
|
|
68
|
+
readonly background: `var(--${string})`;
|
|
69
|
+
readonly color: "#fff";
|
|
70
|
+
};
|
|
71
|
+
readonly purple: {
|
|
72
|
+
readonly background: `var(--${string})`;
|
|
73
|
+
readonly color: "#fff";
|
|
74
|
+
};
|
|
75
|
+
readonly green: {
|
|
76
|
+
readonly background: `var(--${string})`;
|
|
77
|
+
readonly color: "#fff";
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
readonly defaultVariants: {
|
|
82
|
+
readonly size: "md";
|
|
83
|
+
readonly shape: "circle";
|
|
84
|
+
readonly tone: "neutral";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
1
87
|
declare const config: import("../..").RecipeConfig<{
|
|
2
|
-
size: {
|
|
3
|
-
sm: string;
|
|
4
|
-
md: string;
|
|
5
|
-
lg: string;
|
|
6
|
-
xl: string;
|
|
7
|
-
};
|
|
8
|
-
shape: {
|
|
9
|
-
circle: string;
|
|
10
|
-
rounded: string;
|
|
11
|
-
};
|
|
12
|
-
tone: {
|
|
13
|
-
neutral: string;
|
|
14
|
-
brand: string;
|
|
15
|
-
orange: string;
|
|
16
|
-
cyan: string;
|
|
17
|
-
purple: string;
|
|
18
|
-
green: string;
|
|
88
|
+
readonly size: {
|
|
89
|
+
readonly sm: string;
|
|
90
|
+
readonly md: string;
|
|
91
|
+
readonly lg: string;
|
|
92
|
+
readonly xl: string;
|
|
93
|
+
};
|
|
94
|
+
readonly shape: {
|
|
95
|
+
readonly circle: string;
|
|
96
|
+
readonly rounded: string;
|
|
97
|
+
};
|
|
98
|
+
readonly tone: {
|
|
99
|
+
readonly neutral: string;
|
|
100
|
+
readonly brand: string;
|
|
101
|
+
readonly orange: string;
|
|
102
|
+
readonly cyan: string;
|
|
103
|
+
readonly purple: string;
|
|
104
|
+
readonly green: string;
|
|
19
105
|
};
|
|
20
106
|
}>;
|
|
21
107
|
export declare const avatarRecipe: import("../..").RecipeFn<{
|
|
22
|
-
size: {
|
|
23
|
-
sm: string;
|
|
24
|
-
md: string;
|
|
25
|
-
lg: string;
|
|
26
|
-
xl: string;
|
|
27
|
-
};
|
|
28
|
-
shape: {
|
|
29
|
-
circle: string;
|
|
30
|
-
rounded: string;
|
|
31
|
-
};
|
|
32
|
-
tone: {
|
|
33
|
-
neutral: string;
|
|
34
|
-
brand: string;
|
|
35
|
-
orange: string;
|
|
36
|
-
cyan: string;
|
|
37
|
-
purple: string;
|
|
38
|
-
green: string;
|
|
108
|
+
readonly size: {
|
|
109
|
+
readonly sm: string;
|
|
110
|
+
readonly md: string;
|
|
111
|
+
readonly lg: string;
|
|
112
|
+
readonly xl: string;
|
|
113
|
+
};
|
|
114
|
+
readonly shape: {
|
|
115
|
+
readonly circle: string;
|
|
116
|
+
readonly rounded: string;
|
|
117
|
+
};
|
|
118
|
+
readonly tone: {
|
|
119
|
+
readonly neutral: string;
|
|
120
|
+
readonly brand: string;
|
|
121
|
+
readonly orange: string;
|
|
122
|
+
readonly cyan: string;
|
|
123
|
+
readonly purple: string;
|
|
124
|
+
readonly green: string;
|
|
39
125
|
};
|
|
40
126
|
}> & {
|
|
41
127
|
config: import("../..").RecipeConfig<{
|
|
42
|
-
size: {
|
|
43
|
-
sm: string;
|
|
44
|
-
md: string;
|
|
45
|
-
lg: string;
|
|
46
|
-
xl: string;
|
|
128
|
+
readonly size: {
|
|
129
|
+
readonly sm: string;
|
|
130
|
+
readonly md: string;
|
|
131
|
+
readonly lg: string;
|
|
132
|
+
readonly xl: string;
|
|
47
133
|
};
|
|
48
|
-
shape: {
|
|
49
|
-
circle: string;
|
|
50
|
-
rounded: string;
|
|
134
|
+
readonly shape: {
|
|
135
|
+
readonly circle: string;
|
|
136
|
+
readonly rounded: string;
|
|
51
137
|
};
|
|
52
|
-
tone: {
|
|
53
|
-
neutral: string;
|
|
54
|
-
brand: string;
|
|
55
|
-
orange: string;
|
|
56
|
-
cyan: string;
|
|
57
|
-
purple: string;
|
|
58
|
-
green: string;
|
|
138
|
+
readonly tone: {
|
|
139
|
+
readonly neutral: string;
|
|
140
|
+
readonly brand: string;
|
|
141
|
+
readonly orange: string;
|
|
142
|
+
readonly cyan: string;
|
|
143
|
+
readonly purple: string;
|
|
144
|
+
readonly green: string;
|
|
59
145
|
};
|
|
60
146
|
}>;
|
|
61
147
|
};
|
|
148
|
+
export { spec };
|
|
62
149
|
export default config;
|