@orfium/ictinus 5.41.0 → 5.41.2
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/.turbo/turbo-build.log +17 -21
- package/CHANGELOG.md +13 -0
- package/dist/_virtual/index8.js +2 -2
- package/dist/_virtual/index9.js +2 -2
- package/dist/components/ThemeProvider/ThemeProvider.style.js +6 -4
- package/dist/node_modules/is-bigint/index.js +1 -1
- package/dist/node_modules/is-symbol/index.js +1 -1
- package/dist/node_modules/is-weakset/index.js +1 -1
- package/dist/src/components/ThemeProvider/ThemeProvider.style.d.ts +1 -3
- package/dist/src/sprinkles/properties.css.d.ts +36 -0
- package/dist/src/sprinkles/sprinkles.d.ts +53 -1
- package/dist/src/vanilla/Box/Box.d.ts +8 -0
- package/dist/src/vanilla/Box/extractBoxProps.d.ts +2 -2
- package/dist/src/vanilla/Table/Table.d.ts +8 -0
- package/dist/src/vanilla/Table/TableBody.d.ts +8 -0
- package/dist/src/vanilla/Table/TableCell.d.ts +8 -0
- package/dist/src/vanilla/Table/TableFooter.d.ts +8 -0
- package/dist/src/vanilla/Table/TableHeader.d.ts +8 -0
- package/dist/src/vanilla/Table/TableHeaderCell.d.ts +8 -0
- package/dist/src/vanilla/Table/TableRow.d.ts +8 -0
- package/dist/src/vanilla/Text/Text.d.ts +10 -2
- package/dist/vanilla/Table/Table-css.js +3 -3
- package/dist/vanilla/Table/TableCell-css.js +3 -3
- package/dist/vanilla/Table/TableHeader.js +10 -1
- package/dist/vanilla/Table/TableHeaderCell-css.js +6 -4
- package/dist/vanilla/Table/TableRow-css.js +1 -1
- package/dist/vanilla/Text/Text.js +1 -1
- package/dist/vanilla/assets/src/sprinkles/{properties.css.ts.vanilla-BQPG2W33.css → properties.css.ts.vanilla-Ckyezauv.css} +2440 -2410
- package/dist/vanilla/assets/src/vanilla/Table/{TableHeaderCell.css.ts.vanilla-DesAfHw6.css → TableHeaderCell.css.ts.vanilla-DHGpcMTl.css} +4 -1
- package/dist/vanilla/index.d.ts +95 -11446
- package/dist/vanilla/package.json.js +1 -1
- package/dist/vanilla/src/sprinkles/properties-css.js +4 -4
- package/package.json +3 -3
- package/src/components/ThemeProvider/ThemeProvider.style.ts +2 -32
- package/src/sprinkles/properties.css.ts +3 -0
- package/src/vanilla/Table/TableHeader.tsx +6 -1
- package/src/vanilla/Table/TableHeaderCell.css.ts +12 -2
- package/src/vanilla/Text/Text.tsx +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orfium/ictinus",
|
|
3
|
-
"version": "5.41.
|
|
3
|
+
"version": "5.41.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -59,9 +59,7 @@
|
|
|
59
59
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
60
60
|
"@typescript-eslint/parser": "^7.18.0",
|
|
61
61
|
"@vanilla-extract/css": "^1.17.4",
|
|
62
|
-
"@vanilla-extract/recipes": "^0.5.7",
|
|
63
62
|
"@vanilla-extract/rollup-plugin": "^1.4.1",
|
|
64
|
-
"@vanilla-extract/sprinkles": "^1.6.5",
|
|
65
63
|
"@vanilla-extract/vite-plugin": "^5.1.1",
|
|
66
64
|
"@vitejs/plugin-react": "^4.1.0",
|
|
67
65
|
"@vitest/coverage-v8": "^3.2.4",
|
|
@@ -96,6 +94,8 @@
|
|
|
96
94
|
"dependencies": {
|
|
97
95
|
"@radix-ui/react-slot": "^1.2.3",
|
|
98
96
|
"@tanstack/react-table": "^8.21.3",
|
|
97
|
+
"@vanilla-extract/recipes": "^0.5.7",
|
|
98
|
+
"@vanilla-extract/sprinkles": "^1.6.5",
|
|
99
99
|
"clsx": "^2.1.1",
|
|
100
100
|
"dayjs": "^2.0.0-alpha.4",
|
|
101
101
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
@@ -1,37 +1,7 @@
|
|
|
1
|
-
import type { SerializedStyles } from '@emotion/react';
|
|
2
1
|
import { css } from '@emotion/react';
|
|
3
|
-
import type { Theme } from 'theme';
|
|
4
|
-
import {
|
|
5
|
-
headline01,
|
|
6
|
-
headline02,
|
|
7
|
-
headline03,
|
|
8
|
-
headline04,
|
|
9
|
-
headline05,
|
|
10
|
-
} from '../Typography/Typography.config.styles';
|
|
11
|
-
|
|
12
|
-
export const globalStyles = (theme: Theme): SerializedStyles => css`
|
|
13
|
-
h1 {
|
|
14
|
-
${headline01(theme)}
|
|
15
|
-
}
|
|
16
|
-
h2 {
|
|
17
|
-
${headline02(theme)}
|
|
18
|
-
}
|
|
19
|
-
h3 {
|
|
20
|
-
${headline03(theme)}
|
|
21
|
-
}
|
|
22
|
-
h4 {
|
|
23
|
-
${headline04(theme)}
|
|
24
|
-
}
|
|
25
|
-
h5 {
|
|
26
|
-
${headline05(theme)}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// default outline for all focused elements defined by the design team
|
|
30
|
-
// our lightGrey base color (500 shade) with opacity at 50%
|
|
31
|
-
*:focus {
|
|
32
|
-
outline: 0;
|
|
33
|
-
}
|
|
34
2
|
|
|
3
|
+
// TODO: View transitions used by toast remove when toast is migrated to vanilla extract
|
|
4
|
+
export const globalStyles = () => css`
|
|
35
5
|
::view-transition-group(*) {
|
|
36
6
|
animation-duration: 250ms;
|
|
37
7
|
/* swift out */
|
|
@@ -284,6 +284,7 @@ export const responsiveProps = defineProperties({
|
|
|
284
284
|
maxWidth: { ...vars.sizing, full: '100%', screen: '100vw' },
|
|
285
285
|
maxHeight: { ...vars.sizing, full: '100%', screen: '100vh' },
|
|
286
286
|
flexDirection: ['column', 'row', 'column-reverse', 'row-reverse'] as const,
|
|
287
|
+
flexShrink: ['0', '1'] as const,
|
|
287
288
|
position: ['absolute', 'fixed', 'relative', 'sticky'] as const,
|
|
288
289
|
gap: vars.spacing,
|
|
289
290
|
gridGap: vars.spacing,
|
|
@@ -345,12 +346,14 @@ export const unresponsiveProps = defineProperties({
|
|
|
345
346
|
fontSize: vars['font-size'],
|
|
346
347
|
typography,
|
|
347
348
|
fontWeight: vars.weight,
|
|
349
|
+
fontStyle: ['italic'] as const,
|
|
348
350
|
lineHeight: vars['line-height'],
|
|
349
351
|
letterSpacing: vars['letter-spacing'],
|
|
350
352
|
isolation: ['isolate'] as const,
|
|
351
353
|
objectFit: ['contain', 'cover'] as const,
|
|
352
354
|
pointerEvents: ['auto', 'none'] as const,
|
|
353
355
|
textTransform: ['capitalize', 'none', 'uppercase'] as const,
|
|
356
|
+
textDecoration: ['underline'] as const,
|
|
354
357
|
visibility: ['hidden', 'visible'] as const,
|
|
355
358
|
wordBreak: ['break-word'] as const,
|
|
356
359
|
wordWrap: ['normal', 'break-word'] as const,
|
|
@@ -8,7 +8,12 @@ export type TableHeaderProps = BoxProps<'thead', NonNullable<styles.HeaderVarian
|
|
|
8
8
|
|
|
9
9
|
export const TableHeader = forwardRef<HTMLTableSectionElement, TableHeaderProps>(
|
|
10
10
|
({ children, className, pinned, ...props }, ref) => (
|
|
11
|
-
<Box
|
|
11
|
+
<Box
|
|
12
|
+
asChild
|
|
13
|
+
data-pinned={pinned ? '' : undefined}
|
|
14
|
+
className={cn(styles.header({ pinned }), className)}
|
|
15
|
+
{...props}
|
|
16
|
+
>
|
|
12
17
|
<thead ref={ref}>{children}</thead>
|
|
13
18
|
</Box>
|
|
14
19
|
)
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { vars } from '@orfium/tokens';
|
|
2
1
|
import { recipe, type RecipeVariants } from '@vanilla-extract/recipes';
|
|
3
2
|
|
|
4
3
|
import { sprinkles } from '../../sprinkles';
|
|
5
4
|
import { style } from '../../vanilla-extract';
|
|
5
|
+
import * as headerStyles from './TableHeader.css';
|
|
6
|
+
import * as rowStyles from './TableRow.css';
|
|
7
|
+
|
|
8
|
+
const header = headerStyles.className;
|
|
9
|
+
const row = rowStyles.className;
|
|
6
10
|
|
|
7
11
|
export const cell = recipe({
|
|
8
12
|
base: [
|
|
@@ -49,7 +53,13 @@ export const content = recipe({
|
|
|
49
53
|
borderColor: 'decorative.default',
|
|
50
54
|
}),
|
|
51
55
|
style({
|
|
52
|
-
|
|
56
|
+
borderBottomWidth: '1px',
|
|
57
|
+
|
|
58
|
+
selectors: {
|
|
59
|
+
[`${header}:not([data-pinned]) ${row}:last-child &`]: {
|
|
60
|
+
borderBottomWidth: 0,
|
|
61
|
+
},
|
|
62
|
+
},
|
|
53
63
|
}),
|
|
54
64
|
],
|
|
55
65
|
variants: {
|
|
@@ -8,19 +8,19 @@ import * as styles from './Text.css';
|
|
|
8
8
|
|
|
9
9
|
const Slot = createSlot('@orfium/ictinus/Text');
|
|
10
10
|
|
|
11
|
-
export type TextProps<T extends ElementType = '
|
|
11
|
+
export type TextProps<T extends ElementType = 'span', P = unknown> = BoxProps<
|
|
12
12
|
T,
|
|
13
13
|
ExtendProps<styles.TextVariants, P>
|
|
14
14
|
>;
|
|
15
15
|
|
|
16
|
-
export const Text = forwardRef<
|
|
16
|
+
export const Text = forwardRef<HTMLSpanElement, TextProps>(
|
|
17
17
|
({ asChild, children, className, lineClamp, truncate, ...props }, ref) => {
|
|
18
|
-
const Comp = asChild ? Slot : '
|
|
18
|
+
const Comp = asChild ? Slot : 'span';
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
21
|
<Box
|
|
22
22
|
asChild
|
|
23
|
-
ref={ref}
|
|
23
|
+
ref={ref as any} // Box expects HTMLDivElement ref, but asChild forwards to span at runtime
|
|
24
24
|
className={cn(styles.text({ lineClamp, truncate }), className)}
|
|
25
25
|
{...props}
|
|
26
26
|
>
|