@crisp-ui-kit/crisp 0.7.3 → 0.7.4
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/dist/cjs/components/avatar/avatar.recipe.js +0 -7
- package/dist/cjs/components/badge/badge.recipe.js +0 -8
- package/dist/cjs/components/button/button.recipe.js +0 -10
- package/dist/cjs/components/checkbox/checkbox.recipe.js +0 -6
- package/dist/cjs/components/input/input.recipe.js +0 -1
- package/dist/cjs/components/kbd/kbd.recipe.js +0 -7
- package/dist/cjs/components/switch/switch.recipe.js +0 -1
- package/dist/cjs/components/wheelpicker/wheelpicker.recipe.js +0 -1
- package/dist/cjs/product/appshell/appshell.recipe.js +0 -1
- package/dist/cjs/product/command/command.recipe.js +0 -6
- package/dist/cjs/product/navitem/navitem.recipe.js +0 -8
- package/dist/cjs/product/recordpanel/recordpanel.recipe.js +0 -1
- package/dist/cjs/product/recordstable/recordstable.recipe.js +12 -8
- package/dist/cjs/product/sidebar/sidebar.recipe.js +0 -5
- package/dist/esm/components/avatar/avatar.recipe.js +0 -7
- package/dist/esm/components/badge/badge.recipe.js +0 -8
- package/dist/esm/components/button/button.recipe.js +0 -10
- package/dist/esm/components/checkbox/checkbox.recipe.js +0 -6
- package/dist/esm/components/input/input.recipe.js +0 -1
- package/dist/esm/components/kbd/kbd.recipe.js +0 -7
- package/dist/esm/components/switch/switch.recipe.js +0 -1
- package/dist/esm/components/wheelpicker/wheelpicker.recipe.js +0 -1
- package/dist/esm/product/appshell/appshell.recipe.js +0 -1
- package/dist/esm/product/command/command.recipe.js +0 -6
- package/dist/esm/product/navitem/navitem.recipe.js +0 -8
- package/dist/esm/product/recordpanel/recordpanel.recipe.js +0 -1
- package/dist/esm/product/recordstable/recordstable.recipe.js +12 -8
- package/dist/esm/product/sidebar/sidebar.recipe.js +0 -5
- package/dist/recordstable.css +12 -2
- package/dist/styles.css +1639 -1629
- package/dist/types/components/avatar/avatar.d.ts +0 -7
- package/dist/types/components/avatar/avatar.recipe.d.ts +0 -7
- package/dist/types/components/badge/badge.d.ts +0 -8
- package/dist/types/components/badge/badge.recipe.d.ts +0 -8
- package/dist/types/components/button/button.d.ts +0 -10
- package/dist/types/components/button/button.recipe.d.ts +0 -10
- package/dist/types/components/checkbox/checkbox.recipe.d.ts +0 -6
- package/dist/types/components/input/input.d.ts +0 -7
- package/dist/types/components/input/input.recipe.d.ts +0 -7
- package/dist/types/components/kbd/kbd.recipe.d.ts +0 -7
- package/dist/types/components/switch/switch.recipe.d.ts +0 -9
- package/dist/types/components/wheelpicker/wheelpicker.recipe.d.ts +0 -6
- package/dist/types/product/appshell/appshell.recipe.d.ts +0 -5
- package/dist/types/product/command/command.recipe.d.ts +0 -6
- package/dist/types/product/navitem/navitem.recipe.d.ts +0 -8
- package/dist/types/product/recordpanel/recordpanel.recipe.d.ts +0 -5
- package/dist/types/product/recordstable/recordstable.recipe.d.ts +0 -6
- package/dist/types/product/sidebar/sidebar.recipe.d.ts +0 -5
- package/package.json +2 -1
|
@@ -31,12 +31,5 @@ const config = (0, core_1.defineRecipe)({
|
|
|
31
31
|
});
|
|
32
32
|
exports.avatarRecipe = Object.assign((0, core_1.resolveRecipe)(config), {
|
|
33
33
|
config,
|
|
34
|
-
meta: {
|
|
35
|
-
lg: {
|
|
36
|
-
height: "24px",
|
|
37
|
-
fontSize: "12px",
|
|
38
|
-
fontWeight: "600",
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
34
|
});
|
|
42
35
|
exports.default = config;
|
|
@@ -56,13 +56,5 @@ const config = (0, core_1.defineRecipe)({
|
|
|
56
56
|
});
|
|
57
57
|
exports.badgeRecipe = Object.assign((0, core_1.resolveRecipe)(config), {
|
|
58
58
|
config,
|
|
59
|
-
meta: {
|
|
60
|
-
medium: {
|
|
61
|
-
height: "20px",
|
|
62
|
-
borderRadius: "6px",
|
|
63
|
-
fontSize: "12px",
|
|
64
|
-
fontWeight: "500",
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
59
|
});
|
|
68
60
|
exports.default = config;
|
|
@@ -44,15 +44,5 @@ const config = (0, core_1.defineRecipe)({
|
|
|
44
44
|
});
|
|
45
45
|
exports.buttonRecipe = Object.assign((0, core_1.resolveRecipe)(config), {
|
|
46
46
|
config,
|
|
47
|
-
meta: {
|
|
48
|
-
primary: {
|
|
49
|
-
height: "28px",
|
|
50
|
-
borderRadius: "8px",
|
|
51
|
-
fontWeight: "500",
|
|
52
|
-
fontSize: "14px",
|
|
53
|
-
background: "rgb(38, 109, 240)",
|
|
54
|
-
color: "rgb(255, 255, 255)",
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
47
|
});
|
|
58
48
|
exports.default = config;
|
|
@@ -12,12 +12,5 @@ const config = (0, core_1.defineRecipe)({
|
|
|
12
12
|
});
|
|
13
13
|
exports.kbdRecipe = Object.assign((0, core_1.resolveRecipe)(config), {
|
|
14
14
|
config,
|
|
15
|
-
meta: {
|
|
16
|
-
chip: {
|
|
17
|
-
height: "20px",
|
|
18
|
-
borderRadius: "6px",
|
|
19
|
-
fontSize: "11px",
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
15
|
});
|
|
23
16
|
exports.default = config;
|
|
@@ -37,11 +37,5 @@ const config = (0, core_1.defineRecipe)({
|
|
|
37
37
|
});
|
|
38
38
|
exports.commandRecipe = Object.assign((0, core_1.resolveRecipe)(config), {
|
|
39
39
|
config,
|
|
40
|
-
meta: {
|
|
41
|
-
content: {
|
|
42
|
-
maxWidth: "720px",
|
|
43
|
-
borderRadius: "16px",
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
40
|
});
|
|
47
41
|
exports.default = config;
|
|
@@ -24,13 +24,5 @@ const config = (0, core_1.defineRecipe)({
|
|
|
24
24
|
});
|
|
25
25
|
exports.navitemRecipe = Object.assign((0, core_1.resolveRecipe)(config), {
|
|
26
26
|
config,
|
|
27
|
-
meta: {
|
|
28
|
-
row: {
|
|
29
|
-
height: "28px",
|
|
30
|
-
borderRadius: "9px",
|
|
31
|
-
fontSize: "14px",
|
|
32
|
-
fontWeight: "500",
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
27
|
});
|
|
36
28
|
exports.default = config;
|
|
@@ -97,11 +97,21 @@ ${(0, tabletoolbar_chrome_1.toolbarChromeBody)("recordstable")}
|
|
|
97
97
|
& .recordstable-col-check { width: 40px; min-width: 40px; padding: 0; }
|
|
98
98
|
& .recordstable-check-inner { display: flex; align-items: center; justify-content: center; height: 100%; }
|
|
99
99
|
& .recordstable-col-check, & .recordstable-col-entity { position: sticky; z-index: 3; background: ${tokens_1.contract.bgSurface}; }
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
/* The sticky pin is a LOGICAL offset: with physical \`left\` these columns
|
|
101
|
+
were not pinned at all under RTL -- scrolled, they left the viewport
|
|
102
|
+
entirely (measured: viewport 13..773, check column at x=1333). Nothing in
|
|
103
|
+
JS measures these, so converting them is safe; the two properties below
|
|
104
|
+
that have no logical form get an explicit RTL rule rather than being
|
|
105
|
+
left to point the wrong way. */
|
|
106
|
+
& .recordstable-col-check { inset-inline-start: 0; }
|
|
107
|
+
& .recordstable-col-entity { inset-inline-start: 40px; clip-path: inset(0 -38px 0 0); transition: box-shadow .2s ease; }
|
|
108
|
+
[dir="rtl"] & .recordstable-col-entity { clip-path: inset(0 0 0 -38px); }
|
|
102
109
|
& thead .recordstable-col-check, & thead .recordstable-col-entity { z-index: 4; }
|
|
103
110
|
/* soft shadow on the sticky column edge once the grid is scrolled horizontally */
|
|
104
111
|
& .recordstable-scroll[data-scrolled] .recordstable-col-entity { box-shadow: 6px 0 16px 4px rgba(0,0,0,0.12); }
|
|
112
|
+
/* box-shadow has no logical form either: the bleed follows the scrolled
|
|
113
|
+
content, which is the opposite side under RTL. */
|
|
114
|
+
[dir="rtl"] & .recordstable-scroll[data-scrolled] .recordstable-col-entity { box-shadow: -6px 0 16px 4px rgba(0,0,0,0.12); }
|
|
105
115
|
/* AI-enriched values carry a purple wash. Measured from Attio:
|
|
106
116
|
a full-bleed overlay at #9b69ff 4% (== bgPurple), composited OVER
|
|
107
117
|
whatever row-state background the cell already has, which is why it
|
|
@@ -142,11 +152,5 @@ ${(0, tabletoolbar_chrome_1.toolbarChromeBody)("recordstable")}
|
|
|
142
152
|
});
|
|
143
153
|
exports.recordstableRecipe = Object.assign((0, core_1.resolveRecipe)(config), {
|
|
144
154
|
config,
|
|
145
|
-
meta: {
|
|
146
|
-
row: {
|
|
147
|
-
height: "36px",
|
|
148
|
-
gridLine: "1px",
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
155
|
});
|
|
152
156
|
exports.default = config;
|
|
@@ -53,13 +53,5 @@ const config = defineRecipe({
|
|
|
53
53
|
});
|
|
54
54
|
export const badgeRecipe = Object.assign(resolveRecipe(config), {
|
|
55
55
|
config,
|
|
56
|
-
meta: {
|
|
57
|
-
medium: {
|
|
58
|
-
height: "20px",
|
|
59
|
-
borderRadius: "6px",
|
|
60
|
-
fontSize: "12px",
|
|
61
|
-
fontWeight: "500",
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
56
|
});
|
|
65
57
|
export default config;
|
|
@@ -41,15 +41,5 @@ const config = defineRecipe({
|
|
|
41
41
|
});
|
|
42
42
|
export const buttonRecipe = Object.assign(resolveRecipe(config), {
|
|
43
43
|
config,
|
|
44
|
-
meta: {
|
|
45
|
-
primary: {
|
|
46
|
-
height: "28px",
|
|
47
|
-
borderRadius: "8px",
|
|
48
|
-
fontWeight: "500",
|
|
49
|
-
fontSize: "14px",
|
|
50
|
-
background: "rgb(38, 109, 240)",
|
|
51
|
-
color: "rgb(255, 255, 255)",
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
44
|
});
|
|
55
45
|
export default config;
|
|
@@ -21,13 +21,5 @@ const config = defineRecipe({
|
|
|
21
21
|
});
|
|
22
22
|
export const navitemRecipe = Object.assign(resolveRecipe(config), {
|
|
23
23
|
config,
|
|
24
|
-
meta: {
|
|
25
|
-
row: {
|
|
26
|
-
height: "28px",
|
|
27
|
-
borderRadius: "9px",
|
|
28
|
-
fontSize: "14px",
|
|
29
|
-
fontWeight: "500",
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
24
|
});
|
|
33
25
|
export default config;
|
|
@@ -94,11 +94,21 @@ ${toolbarChromeBody("recordstable")}
|
|
|
94
94
|
& .recordstable-col-check { width: 40px; min-width: 40px; padding: 0; }
|
|
95
95
|
& .recordstable-check-inner { display: flex; align-items: center; justify-content: center; height: 100%; }
|
|
96
96
|
& .recordstable-col-check, & .recordstable-col-entity { position: sticky; z-index: 3; background: ${c.bgSurface}; }
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
/* The sticky pin is a LOGICAL offset: with physical \`left\` these columns
|
|
98
|
+
were not pinned at all under RTL -- scrolled, they left the viewport
|
|
99
|
+
entirely (measured: viewport 13..773, check column at x=1333). Nothing in
|
|
100
|
+
JS measures these, so converting them is safe; the two properties below
|
|
101
|
+
that have no logical form get an explicit RTL rule rather than being
|
|
102
|
+
left to point the wrong way. */
|
|
103
|
+
& .recordstable-col-check { inset-inline-start: 0; }
|
|
104
|
+
& .recordstable-col-entity { inset-inline-start: 40px; clip-path: inset(0 -38px 0 0); transition: box-shadow .2s ease; }
|
|
105
|
+
[dir="rtl"] & .recordstable-col-entity { clip-path: inset(0 0 0 -38px); }
|
|
99
106
|
& thead .recordstable-col-check, & thead .recordstable-col-entity { z-index: 4; }
|
|
100
107
|
/* soft shadow on the sticky column edge once the grid is scrolled horizontally */
|
|
101
108
|
& .recordstable-scroll[data-scrolled] .recordstable-col-entity { box-shadow: 6px 0 16px 4px rgba(0,0,0,0.12); }
|
|
109
|
+
/* box-shadow has no logical form either: the bleed follows the scrolled
|
|
110
|
+
content, which is the opposite side under RTL. */
|
|
111
|
+
[dir="rtl"] & .recordstable-scroll[data-scrolled] .recordstable-col-entity { box-shadow: -6px 0 16px 4px rgba(0,0,0,0.12); }
|
|
102
112
|
/* AI-enriched values carry a purple wash. Measured from Attio:
|
|
103
113
|
a full-bleed overlay at #9b69ff 4% (== bgPurple), composited OVER
|
|
104
114
|
whatever row-state background the cell already has, which is why it
|
|
@@ -139,11 +149,5 @@ ${toolbarChromeBody("recordstable")}
|
|
|
139
149
|
});
|
|
140
150
|
export const recordstableRecipe = Object.assign(resolveRecipe(config), {
|
|
141
151
|
config,
|
|
142
|
-
meta: {
|
|
143
|
-
row: {
|
|
144
|
-
height: "36px",
|
|
145
|
-
gridLine: "1px",
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
152
|
});
|
|
149
153
|
export default config;
|
package/dist/recordstable.css
CHANGED
|
@@ -149,11 +149,21 @@
|
|
|
149
149
|
& .recordstable-col-check { width: 40px; min-width: 40px; padding: 0; }
|
|
150
150
|
& .recordstable-check-inner { display: flex; align-items: center; justify-content: center; height: 100%; }
|
|
151
151
|
& .recordstable-col-check, & .recordstable-col-entity { position: sticky; z-index: 3; background: var(--bg-surface); }
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
/* The sticky pin is a LOGICAL offset: with physical `left` these columns
|
|
153
|
+
were not pinned at all under RTL -- scrolled, they left the viewport
|
|
154
|
+
entirely (measured: viewport 13..773, check column at x=1333). Nothing in
|
|
155
|
+
JS measures these, so converting them is safe; the two properties below
|
|
156
|
+
that have no logical form get an explicit RTL rule rather than being
|
|
157
|
+
left to point the wrong way. */
|
|
158
|
+
& .recordstable-col-check { inset-inline-start: 0; }
|
|
159
|
+
& .recordstable-col-entity { inset-inline-start: 40px; clip-path: inset(0 -38px 0 0); transition: box-shadow .2s ease; }
|
|
160
|
+
[dir="rtl"] & .recordstable-col-entity { clip-path: inset(0 0 0 -38px); }
|
|
154
161
|
& thead .recordstable-col-check, & thead .recordstable-col-entity { z-index: 4; }
|
|
155
162
|
/* soft shadow on the sticky column edge once the grid is scrolled horizontally */
|
|
156
163
|
& .recordstable-scroll[data-scrolled] .recordstable-col-entity { box-shadow: 6px 0 16px 4px rgba(0,0,0,0.12); }
|
|
164
|
+
/* box-shadow has no logical form either: the bleed follows the scrolled
|
|
165
|
+
content, which is the opposite side under RTL. */
|
|
166
|
+
[dir="rtl"] & .recordstable-scroll[data-scrolled] .recordstable-col-entity { box-shadow: -6px 0 16px 4px rgba(0,0,0,0.12); }
|
|
157
167
|
/* AI-enriched values carry a purple wash. Measured from Attio:
|
|
158
168
|
a full-bleed overlay at #9b69ff 4% (== bgPurple), composited OVER
|
|
159
169
|
whatever row-state background the cell already has, which is why it
|