@orfium/ictinus 5.41.3 → 5.42.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/.turbo/turbo-build.log +904 -898
- package/CHANGELOG.md +17 -0
- package/dist/components/Link/Link.js +18 -18
- package/dist/components/Link/Link.style.js +6 -6
- package/dist/index.js +248 -242
- package/dist/layers/layers.css.js +9 -0
- package/dist/layers/layers.css.ts.vanilla.css +1 -0
- package/dist/sprinkles/properties.css.js +9 -0
- package/dist/sprinkles/properties.css.ts.vanilla.css +1 -0
- package/dist/sprinkles/sprinkles.js +8 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/sprinkles/properties.css.d.ts +648 -542
- package/dist/src/sprinkles/sprinkles.d.ts +1394 -999
- package/dist/src/vanilla/Box/Box.d.ts +101 -56
- package/dist/src/vanilla/Box/extractBoxProps.d.ts +2 -2
- package/dist/src/vanilla/Table/Table.d.ts +101 -56
- package/dist/src/vanilla/Table/TableBody.d.ts +101 -56
- package/dist/src/vanilla/Table/TableCell.d.ts +101 -56
- package/dist/src/vanilla/Table/TableFooter.d.ts +101 -56
- package/dist/src/vanilla/Table/TableHeader.d.ts +101 -56
- package/dist/src/vanilla/Table/TableHeaderCell.d.ts +101 -56
- package/dist/src/vanilla/Table/TableRow.d.ts +101 -56
- package/dist/src/vanilla/Text/Text.d.ts +101 -56
- package/dist/src/vanilla/Tooltip/Tooltip.d.ts +11 -3
- package/dist/vanilla/Table/Table-css.js +3 -3
- package/dist/vanilla/Table/TableCell-css.js +3 -3
- package/dist/vanilla/Table/TableHeaderCell-css.js +3 -3
- package/dist/vanilla/Table/TableRow-css.js +1 -1
- package/dist/vanilla/Tooltip/Tooltip-css.js +2 -2
- package/dist/vanilla/Tooltip/Tooltip.js +20 -25
- package/dist/vanilla/assets/src/sprinkles/{properties.css.ts.vanilla-Ckyezauv.css → properties.css.ts.vanilla-X1_krF6y.css} +1478 -1319
- package/dist/vanilla/index.d.ts +2342 -1886
- package/dist/vanilla/package.json.js +1 -1
- package/dist/vanilla/src/sprinkles/properties-css.js +4 -4
- package/dist/vanilla-extract/global.css.ts.vanilla.css +1 -0
- package/package.json +2 -2
- package/src/components/Link/Link.style.ts +2 -3
- package/src/components/Link/Link.tsx +3 -3
- package/src/index.ts +3 -0
- package/src/sprinkles/properties.css.ts +13 -19
- package/src/vanilla/Tooltip/Tooltip.tsx +36 -33
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{src:url(https://fonts.gstatic.com/s/roboto/v48/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBHMdazQ.woff2) format("woff2");font-style:normal;font-weight:300;font-stretch:100%;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;font-family:Roboto}@font-face{src:url(https://fonts.gstatic.com/s/roboto/v48/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBHMdazQ.woff2) format("woff2");font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;font-family:Roboto}@font-face{src:url(https://fonts.gstatic.com/s/roboto/v48/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBHMdazQ.woff2) format("woff2");font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;font-family:Roboto}@font-face{src:url(https://fonts.gstatic.com/s/roboto/v48/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBHMdazQ.woff2) format("woff2");font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;font-family:Roboto}@font-face{src:url(https://fonts.gstatic.com/s/roboto/v48/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBHMdazQ.woff2) format("woff2");font-style:normal;font-weight:900;font-stretch:100%;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;font-family:Roboto}@font-face{src:url(https://fonts.gstatic.com/s/robotomono/v30/L0x5DF4xlVMF-BfR8bXMIjhLq3-cXbKD.woff2) format("woff2");font-style:normal;font-weight:300;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;font-family:Roboto Mono}@font-face{src:url(https://fonts.gstatic.com/s/robotomono/v30/L0x5DF4xlVMF-BfR8bXMIjhLq3-cXbKD.woff2) format("woff2");font-style:normal;font-weight:400;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;font-family:Roboto Mono}@font-face{src:url(https://fonts.gstatic.com/s/robotomono/v30/L0x5DF4xlVMF-BfR8bXMIjhLq3-cXbKD.woff2) format("woff2");font-style:normal;font-weight:500;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;font-family:Roboto Mono}@font-face{src:url(https://fonts.gstatic.com/s/robotomono/v30/L0x5DF4xlVMF-BfR8bXMIjhLq3-cXbKD.woff2) format("woff2");font-style:normal;font-weight:700;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;font-family:Roboto Mono}@layer ictinus.reset;@layer ictinus.reset{*{box-sizing:border-box;margin:0;padding:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;scrollbar-width:thin;scrollbar-color:var(--ictinus-color-palette-primary-muted) transparent;border:0 solid}html,body{background-color:var(--ictinus-color-background-default);color:var(--ictinus-color-text-default-primary);font-family:var(--ictinus-font-sans)}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{text-decoration:none}[role=button]{background:none}input,button,select,optgroup,textarea{border:none;line-height:inherit;color:inherit;font-family:inherit;font-size:inherit}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:none}input,textarea{appearance:none;-webkit-appearance:none}ul,ol{list-style:none}button,a{cursor:pointer}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orfium/ictinus",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.42.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"recharts": "^2.8.0",
|
|
119
119
|
"tslib": "^2.4.1",
|
|
120
120
|
"uuid": "^8.3.2",
|
|
121
|
-
"@orfium/tokens": "5.1.
|
|
121
|
+
"@orfium/tokens": "5.1.3"
|
|
122
122
|
},
|
|
123
123
|
"overrides": {
|
|
124
124
|
"trim": "^1.0.0",
|
|
@@ -2,10 +2,10 @@ import type { SerializedStyles } from '@emotion/react';
|
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import type { Theme } from 'theme';
|
|
4
4
|
|
|
5
|
+
import { generateStylesFromTokens } from 'components/Typography/utils';
|
|
5
6
|
import type { LinkTokens } from './Link.tokens';
|
|
6
7
|
import { getLinkTokens } from './Link.tokens';
|
|
7
8
|
import type { LinkProps } from './Link.types';
|
|
8
|
-
import { generateStylesFromTokens } from 'components/Typography/utils';
|
|
9
9
|
|
|
10
10
|
export const linkContainer =
|
|
11
11
|
({
|
|
@@ -62,10 +62,9 @@ export const linkContainer =
|
|
|
62
62
|
|
|
63
63
|
opacity: ${isDisabled ? theme.tokens.disabledState.get('default') : 1};
|
|
64
64
|
|
|
65
|
-
width: fit-content;
|
|
66
65
|
align-items: center;
|
|
67
66
|
cursor: ${isDisabled ? 'default' : 'pointer'};
|
|
68
|
-
pointer-events: ${isDisabled ? 'none' : '
|
|
67
|
+
pointer-events: ${isDisabled ? 'none' : 'auto'};
|
|
69
68
|
|
|
70
69
|
${generateStylesFromTokens(tokens(`${placement}.${size}` as LinkTokens))}
|
|
71
70
|
`;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import useTheme from 'hooks/useTheme';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
+
import Icon from 'components/Icon';
|
|
5
|
+
import { useSlotProps } from '../utils/Slots';
|
|
4
6
|
import { iconSize } from './constants';
|
|
5
7
|
import { linkContainer } from './Link.style';
|
|
6
8
|
import type { LinkProps } from './Link.types';
|
|
7
|
-
import { useSlotProps } from '../utils/Slots';
|
|
8
|
-
import Icon from 'components/Icon';
|
|
9
9
|
|
|
10
10
|
const Link = React.forwardRef<HTMLAnchorElement, LinkProps>((props, ref) => {
|
|
11
11
|
props = useSlotProps(props, 'link');
|
|
@@ -37,7 +37,7 @@ const Link = React.forwardRef<HTMLAnchorElement, LinkProps>((props, ref) => {
|
|
|
37
37
|
{...componentProps}
|
|
38
38
|
{...rest}
|
|
39
39
|
>
|
|
40
|
-
|
|
40
|
+
{children}
|
|
41
41
|
{iconName && (
|
|
42
42
|
<Icon
|
|
43
43
|
name={iconName}
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { vars } from '@orfium/tokens';
|
|
1
|
+
import { breakpoints, vars } from '@orfium/tokens';
|
|
2
2
|
import { defineProperties } from '@vanilla-extract/sprinkles';
|
|
3
3
|
|
|
4
4
|
import { layers } from '../layers';
|
|
@@ -8,12 +8,6 @@ import { layers } from '../layers';
|
|
|
8
8
|
import '../vanilla-extract/global.css';
|
|
9
9
|
/* DO NOT MOVE THIS LINE */
|
|
10
10
|
|
|
11
|
-
export const breakpoints = {
|
|
12
|
-
md: 768 as const,
|
|
13
|
-
lg: 1024 as const,
|
|
14
|
-
xl: 1280 as const,
|
|
15
|
-
} as const;
|
|
16
|
-
|
|
17
11
|
// Flattened colors for sprinkles - autogenerating them here breaks autocomplete
|
|
18
12
|
// Can also supply them flattened from the actual tokens to avoid duplication
|
|
19
13
|
const colors = {
|
|
@@ -241,9 +235,9 @@ const typography = {
|
|
|
241
235
|
|
|
242
236
|
export const responsiveProps = defineProperties({
|
|
243
237
|
'@layer': layers.utilities,
|
|
244
|
-
defaultCondition: '
|
|
238
|
+
defaultCondition: 'base',
|
|
245
239
|
conditions: {
|
|
246
|
-
|
|
240
|
+
base: {},
|
|
247
241
|
md: { '@media': `(min-width: ${breakpoints.md}px)` },
|
|
248
242
|
lg: { '@media': `(min-width: ${breakpoints.lg}px)` },
|
|
249
243
|
xl: { '@media': `(min-width: ${breakpoints.xl}px)` },
|
|
@@ -298,6 +292,10 @@ export const responsiveProps = defineProperties({
|
|
|
298
292
|
paddingLeft: vars.spacing,
|
|
299
293
|
paddingRight: vars.spacing,
|
|
300
294
|
paddingTop: vars.spacing,
|
|
295
|
+
borderTopWidth: vars['border-width'],
|
|
296
|
+
borderRightWidth: vars['border-width'],
|
|
297
|
+
borderBottomWidth: vars['border-width'],
|
|
298
|
+
borderLeftWidth: vars['border-width'],
|
|
301
299
|
},
|
|
302
300
|
shorthands: {
|
|
303
301
|
maxH: ['maxHeight'],
|
|
@@ -319,6 +317,11 @@ export const responsiveProps = defineProperties({
|
|
|
319
317
|
mr: ['marginRight'],
|
|
320
318
|
mx: ['marginLeft', 'marginRight'],
|
|
321
319
|
my: ['marginTop', 'marginBottom'],
|
|
320
|
+
border: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],
|
|
321
|
+
borderB: ['borderBottomWidth'],
|
|
322
|
+
borderL: ['borderLeftWidth'],
|
|
323
|
+
borderR: ['borderRightWidth'],
|
|
324
|
+
borderT: ['borderTopWidth'],
|
|
322
325
|
},
|
|
323
326
|
});
|
|
324
327
|
|
|
@@ -327,15 +330,11 @@ export const unresponsiveProps = defineProperties({
|
|
|
327
330
|
properties: {
|
|
328
331
|
borderColor: borderTokens,
|
|
329
332
|
borderStyle: ['solid', 'dashed'],
|
|
330
|
-
borderLeftWidth: vars['border-width'],
|
|
331
333
|
borderRadius: vars['border-radius'],
|
|
332
334
|
borderTopLeftRadius: vars['border-radius'],
|
|
333
335
|
borderTopRightRadius: vars['border-radius'],
|
|
334
336
|
borderBottomLeftRadius: vars['border-radius'],
|
|
335
337
|
borderBottomRightRadius: vars['border-radius'],
|
|
336
|
-
borderRightWidth: vars['border-width'],
|
|
337
|
-
borderTopWidth: vars['border-width'],
|
|
338
|
-
borderBottomWidth: vars['border-width'],
|
|
339
338
|
boxShadow: vars['box-shadow'],
|
|
340
339
|
cursor: ['default', 'pointer', 'not-allowed'] as const,
|
|
341
340
|
overflowX: ['auto', 'hidden', 'visible'] as const,
|
|
@@ -355,7 +354,7 @@ export const unresponsiveProps = defineProperties({
|
|
|
355
354
|
textTransform: ['capitalize', 'none', 'uppercase'] as const,
|
|
356
355
|
textDecoration: ['underline'] as const,
|
|
357
356
|
visibility: ['hidden', 'visible'] as const,
|
|
358
|
-
wordBreak: ['break-word'] as const,
|
|
357
|
+
wordBreak: ['break-all', 'break-word'] as const,
|
|
359
358
|
wordWrap: ['normal', 'break-word'] as const,
|
|
360
359
|
textAlign: ['end', 'start', 'center', 'justify'] as const,
|
|
361
360
|
transitionProperty: {
|
|
@@ -391,11 +390,6 @@ export const unresponsiveProps = defineProperties({
|
|
|
391
390
|
},
|
|
392
391
|
shorthands: {
|
|
393
392
|
overflow: ['overflowX', 'overflowY'],
|
|
394
|
-
border: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],
|
|
395
|
-
borderB: ['borderBottomWidth'],
|
|
396
|
-
borderL: ['borderLeftWidth'],
|
|
397
|
-
borderR: ['borderRightWidth'],
|
|
398
|
-
borderT: ['borderTopWidth'],
|
|
399
393
|
shadow: ['boxShadow'],
|
|
400
394
|
rounded: ['borderRadius'],
|
|
401
395
|
roundedT: ['borderTopLeftRadius', 'borderTopRightRadius'],
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
} from 'react';
|
|
10
10
|
import type { TooltipProps as TooltipPrimitiveProps } from 'react-aria-components';
|
|
11
11
|
import {
|
|
12
|
-
composeRenderProps,
|
|
13
12
|
Focusable,
|
|
14
13
|
OverlayArrow,
|
|
15
14
|
Tooltip as TooltipPrimitive,
|
|
@@ -17,6 +16,8 @@ import {
|
|
|
17
16
|
} from 'react-aria-components';
|
|
18
17
|
|
|
19
18
|
import { cn } from '../../utils/cn';
|
|
19
|
+
import { type ExtendProps } from '../../utils/ExtendProps';
|
|
20
|
+
import { Box, extractBoxProps, type BoxProps } from '../Box';
|
|
20
21
|
import * as styles from './Tooltip.css';
|
|
21
22
|
|
|
22
23
|
const TooltipContext = createContext<{
|
|
@@ -68,56 +69,58 @@ const Tooltip = ({
|
|
|
68
69
|
|
|
69
70
|
Tooltip.displayName = 'Tooltip';
|
|
70
71
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
72
|
+
type TooltipContentProps = Omit<TooltipPrimitiveProps, 'children'> &
|
|
73
|
+
ExtendProps<BoxProps, NonNullable<styles.TooltipVariants>> & {
|
|
74
|
+
showArrow?: boolean;
|
|
75
|
+
children?: ReactNode;
|
|
76
|
+
};
|
|
77
77
|
|
|
78
78
|
const TooltipContent = ({
|
|
79
79
|
offset = 8,
|
|
80
80
|
inverse = false,
|
|
81
81
|
showArrow = true,
|
|
82
82
|
children,
|
|
83
|
+
className,
|
|
83
84
|
...props
|
|
84
85
|
}: TooltipContentProps) => {
|
|
86
|
+
const { boxProps, restProps } = extractBoxProps(props);
|
|
87
|
+
|
|
85
88
|
return (
|
|
86
|
-
<
|
|
87
|
-
{...
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
</OverlayArrow>
|
|
109
|
-
)}
|
|
110
|
-
{children}
|
|
111
|
-
</TooltipPrimitive>
|
|
89
|
+
<Box asChild className={cn(styles.tooltip({ inverse }), className)} {...boxProps}>
|
|
90
|
+
<TooltipPrimitive {...restProps} offset={offset}>
|
|
91
|
+
{showArrow && (
|
|
92
|
+
<OverlayArrow>
|
|
93
|
+
{inverse ? (
|
|
94
|
+
<svg width={18} height={8} viewBox="0 0 18 8" className={styles.arrowInverse()}>
|
|
95
|
+
<path d="M9.00744 6.52304L1.6397 0.000488281L16.3752 0.000489658L9.00744 6.52304Z" />
|
|
96
|
+
<path
|
|
97
|
+
d="M9.00337 6.51095L16.3588 0.00158653H18.0034L9.00337 8.00049L0.00337219 0.00158653L1.6397 0.000488281L9.00337 6.51095Z"
|
|
98
|
+
className={styles.arrowInverseBorder}
|
|
99
|
+
/>
|
|
100
|
+
</svg>
|
|
101
|
+
) : (
|
|
102
|
+
<svg width={15} height={6} viewBox="0 0 15 6" className={styles.arrow()}>
|
|
103
|
+
<path d="M7.5 6L0.500001 -1.22392e-06L14.5 0L7.5 6Z" />
|
|
104
|
+
</svg>
|
|
105
|
+
)}
|
|
106
|
+
</OverlayArrow>
|
|
107
|
+
)}
|
|
108
|
+
{children}
|
|
109
|
+
</TooltipPrimitive>
|
|
110
|
+
</Box>
|
|
112
111
|
);
|
|
113
112
|
};
|
|
114
113
|
|
|
114
|
+
TooltipContent.displayName = 'TooltipContent';
|
|
115
|
+
|
|
115
116
|
function TooltipTrigger({ ...props }: ComponentProps<typeof Focusable>) {
|
|
116
117
|
const { triggerRef } = useContext(TooltipContext);
|
|
117
118
|
|
|
118
119
|
return <Focusable ref={triggerRef} data-slot="tooltip-trigger" {...props} />;
|
|
119
120
|
}
|
|
120
121
|
|
|
122
|
+
TooltipTrigger.displayName = 'TooltipTrigger';
|
|
123
|
+
|
|
121
124
|
const hasTruncatedContent = (element: HTMLElement) => {
|
|
122
125
|
let truncated = false;
|
|
123
126
|
|