@orfium/ictinus 5.4.0 → 5.5.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/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export { rem } from 'polished';
3
3
  import * as react_media from 'react-media';
4
4
  import * as _emotion_react from '@emotion/react';
5
5
  import { CSSObject as CSSObject$1 } from '@emotion/react';
6
+ import { DotKeys as DotKeys$1 } from 'theme/tokens/utils';
6
7
  export { default as ClickAwayListener } from 'components/utils/ClickAwayListener';
7
8
  import * as utils_types from 'utils/types';
8
9
  import { TestId as TestId$1, TestProps as TestProps$1 } from 'utils/types';
@@ -94,7 +95,7 @@ declare namespace elevation_d {
94
95
  };
95
96
  }
96
97
 
97
- declare const spacing$1: {
98
+ declare const spacing$2: {
98
99
  readonly '0': {
99
100
  readonly value: "0px";
100
101
  readonly type: "spacing";
@@ -149,11 +150,11 @@ declare const spacing$1: {
149
150
  };
150
151
  };
151
152
 
152
- type SpacingKey = keyof typeof spacing$1;
153
+ type SpacingKey = keyof typeof spacing$2;
153
154
  type Spacing = {
154
155
  get: (val: SpacingKey, fn?: (val: string) => unknown) => string;
155
156
  };
156
- declare const spacing: Spacing;
157
+ declare const spacing$1: Spacing;
157
158
 
158
159
  type spacing_d_Spacing = Spacing;
159
160
  type spacing_d_SpacingKey = SpacingKey;
@@ -161,7 +162,7 @@ declare namespace spacing_d {
161
162
  export {
162
163
  spacing_d_Spacing as Spacing,
163
164
  spacing_d_SpacingKey as SpacingKey,
164
- spacing as default,
165
+ spacing$1 as default,
165
166
  };
166
167
  }
167
168
 
@@ -421,6 +422,228 @@ declare namespace overrides_d {
421
422
  };
422
423
  }
423
424
 
425
+ declare const borderRadius$1: {
426
+ readonly none: {
427
+ readonly value: "{borderRadius.0}";
428
+ readonly type: "borderRadius";
429
+ };
430
+ readonly sm: {
431
+ readonly value: "{borderRadius.1}";
432
+ readonly type: "borderRadius";
433
+ };
434
+ readonly md: {
435
+ readonly value: "{borderRadius.2}";
436
+ readonly type: "borderRadius";
437
+ };
438
+ readonly lg: {
439
+ readonly value: "{borderRadius.3}";
440
+ readonly type: "borderRadius";
441
+ };
442
+ readonly xl: {
443
+ readonly value: "{borderRadius.4}";
444
+ readonly type: "borderRadius";
445
+ };
446
+ readonly circle: {
447
+ readonly value: "{borderRadius.7}";
448
+ readonly type: "borderRadius";
449
+ readonly description: "Circular border radius (100%)";
450
+ };
451
+ };
452
+
453
+ type DimensionBorderRadiusKey = DotKeys$1<typeof borderRadius$1>;
454
+ type DimensionBorderRadius = {
455
+ get: (val: DimensionBorderRadiusKey, fn?: (val: string) => unknown) => string;
456
+ };
457
+
458
+ declare const borderWidth$1: {
459
+ readonly default: {
460
+ readonly value: "{borderWidth.1}";
461
+ readonly type: "borderWidth";
462
+ readonly description: "Sets 'default' border width for components";
463
+ };
464
+ readonly active: {
465
+ readonly value: "{borderWidth.2}";
466
+ readonly type: "borderWidth";
467
+ readonly description: "Sets 'active' border width for components ";
468
+ };
469
+ readonly focused: {
470
+ readonly value: "{borderWidth.3}";
471
+ readonly type: "borderWidth";
472
+ readonly description: "Sets focused container borderWidth for component";
473
+ };
474
+ readonly innerFocused: {
475
+ readonly value: "{borderWidth.2}";
476
+ readonly type: "borderWidth";
477
+ readonly description: "Alternative borderWidth for nested focused elements";
478
+ };
479
+ };
480
+
481
+ type DimensionBorderWidthKey = DotKeys$1<typeof borderWidth$1>;
482
+ type DimensionBorderWidth = {
483
+ get: (val: DimensionBorderWidthKey, fn?: (val: string) => unknown) => string;
484
+ };
485
+
486
+ declare const minHeight: {
487
+ readonly tableRow: {
488
+ readonly sm: {
489
+ readonly value: "{sizing.11}";
490
+ readonly type: "sizing";
491
+ readonly description: "Sets min.height for small table row (44px)";
492
+ };
493
+ readonly md: {
494
+ readonly value: "{sizing.13}";
495
+ readonly type: "sizing";
496
+ readonly description: "Sets min. height for medium table row (52px)";
497
+ };
498
+ readonly lg: {
499
+ readonly value: "{sizing.15}";
500
+ readonly type: "sizing";
501
+ readonly description: "Sets min. height for large table row (60px)";
502
+ };
503
+ };
504
+ };
505
+
506
+ type DimensionMinHeightKey = DotKeys$1<typeof minHeight>;
507
+ type DimensionMinHeight = {
508
+ get: (val: DimensionMinHeightKey, fn?: (val: string) => unknown) => string;
509
+ };
510
+
511
+ declare const opacity$1: {
512
+ readonly disabled: {
513
+ readonly value: "50%";
514
+ readonly type: "opacity";
515
+ readonly description: "'Disabled' state";
516
+ };
517
+ readonly enabled: {
518
+ readonly value: "100%";
519
+ readonly type: "opacity";
520
+ readonly description: "'enabled' state";
521
+ };
522
+ readonly hidden: {
523
+ readonly value: "0%";
524
+ readonly type: "opacity";
525
+ readonly description: "'hidden' state";
526
+ };
527
+ };
528
+
529
+ type DimensionOpacityKey = DotKeys$1<typeof opacity$1>;
530
+ type DimensionOpacity = {
531
+ get: (val: DimensionOpacityKey, fn?: (val: string) => unknown) => string;
532
+ };
533
+
534
+ declare const sizing$1: {
535
+ readonly icon: {
536
+ readonly xs: {
537
+ readonly value: "{sizing.3}";
538
+ readonly type: "sizing";
539
+ readonly description: "Sets extra small size for icon";
540
+ };
541
+ readonly sm: {
542
+ readonly value: "{sizing.4}";
543
+ readonly type: "sizing";
544
+ readonly description: "Sets small size for icon";
545
+ };
546
+ readonly md: {
547
+ readonly value: "{sizing.5}";
548
+ readonly type: "sizing";
549
+ readonly description: "Sets medium size for icon";
550
+ };
551
+ readonly lg: {
552
+ readonly value: "{sizing.6}";
553
+ readonly type: "sizing";
554
+ readonly description: "Sets large size for icon";
555
+ };
556
+ readonly xl: {
557
+ readonly value: "{sizing.9}";
558
+ readonly type: "sizing";
559
+ readonly description: "Sets extra large size for icon";
560
+ };
561
+ };
562
+ };
563
+
564
+ type DimensionSizingKey = DotKeys$1<typeof sizing$1>;
565
+ type DimensionSizing = {
566
+ get: (val: DimensionSizingKey, fn?: (val: string) => unknown) => string;
567
+ };
568
+
569
+ declare const spacing: {
570
+ readonly none: {
571
+ readonly value: "{spacing.0}";
572
+ readonly type: "spacing";
573
+ };
574
+ readonly '2xs': {
575
+ readonly value: "{spacing.2}";
576
+ readonly type: "spacing";
577
+ };
578
+ readonly xs: {
579
+ readonly value: "{spacing.3}";
580
+ readonly type: "spacing";
581
+ };
582
+ readonly sm: {
583
+ readonly value: "{spacing.4}";
584
+ readonly type: "spacing";
585
+ };
586
+ readonly md: {
587
+ readonly value: "{spacing.5}";
588
+ readonly type: "spacing";
589
+ };
590
+ readonly lg: {
591
+ readonly value: "{spacing.6}";
592
+ readonly type: "spacing";
593
+ };
594
+ readonly xl: {
595
+ readonly value: "{spacing.7}";
596
+ readonly type: "spacing";
597
+ };
598
+ readonly '2xl': {
599
+ readonly value: "{spacing.8}";
600
+ readonly type: "spacing";
601
+ };
602
+ readonly '3xl': {
603
+ readonly value: "{spacing.9}";
604
+ readonly type: "spacing";
605
+ };
606
+ readonly '4xl': {
607
+ readonly value: "{spacing.12}";
608
+ readonly type: "spacing";
609
+ };
610
+ };
611
+
612
+ type DimensionSpacingKey = DotKeys$1<typeof spacing>;
613
+ type DimensionSpacing = {
614
+ get: (val: DimensionSpacingKey, fn?: (val: string) => unknown) => string;
615
+ };
616
+
617
+ declare const state$1: {
618
+ readonly hover: {
619
+ readonly xs: {
620
+ readonly value: "{sizing.7}";
621
+ readonly type: "sizing";
622
+ readonly description: "Sets extra small hover size";
623
+ };
624
+ readonly sm: {
625
+ readonly value: "{sizing.8}";
626
+ readonly type: "sizing";
627
+ readonly description: "Sets small hover size";
628
+ };
629
+ readonly md: {
630
+ readonly value: "{sizing.9}";
631
+ readonly type: "sizing";
632
+ readonly description: "Sets medium hover size";
633
+ };
634
+ readonly lg: {
635
+ readonly value: "{sizing.10}";
636
+ readonly type: "sizing";
637
+ readonly description: "Sets large hover size";
638
+ };
639
+ };
640
+ };
641
+
642
+ type DimensionStateKey = DotKeys$1<typeof state$1>;
643
+ type DimensionState = {
644
+ get: (val: DimensionStateKey, fn?: (val: string) => unknown) => string;
645
+ };
646
+
424
647
  declare const borderRadius: {
425
648
  readonly '0': {
426
649
  readonly value: "0 px";
@@ -458,7 +681,7 @@ declare const borderRadius: {
458
681
  readonly description: "Corner radius = 48px";
459
682
  };
460
683
  readonly '7': {
461
- readonly value: "100px";
684
+ readonly value: "9999px";
462
685
  readonly type: "borderRadius";
463
686
  readonly description: "Corner radius = 100px used for circles and pill shaped elements";
464
687
  };
@@ -929,7 +1152,7 @@ declare const sizing: {
929
1152
  readonly type: "sizing";
930
1153
  };
931
1154
  readonly '15': {
932
- readonly value: "64px";
1155
+ readonly value: "60px";
933
1156
  readonly type: "sizing";
934
1157
  };
935
1158
  readonly '16': {
@@ -1330,6 +1553,11 @@ declare const colors: {
1330
1553
  readonly type: "color";
1331
1554
  readonly description: "Sets borderColor for success";
1332
1555
  };
1556
+ readonly focused: {
1557
+ readonly value: "{colors.purple.5}";
1558
+ readonly type: "color";
1559
+ readonly description: "Sets focused container borderColor for component";
1560
+ };
1333
1561
  };
1334
1562
  };
1335
1563
  readonly indicators: {
@@ -1376,58 +1604,7 @@ type SemanticDisabledState = {
1376
1604
  get: (val: DotKeys<typeof disabledState>) => string;
1377
1605
  };
1378
1606
 
1379
- declare const icon: {
1380
- readonly size: {
1381
- readonly '1': {
1382
- readonly value: "{sizing.3}";
1383
- readonly type: "sizing";
1384
- readonly description: "Sets extra small icon size";
1385
- };
1386
- readonly '2': {
1387
- readonly value: "{sizing.4}";
1388
- readonly type: "sizing";
1389
- readonly description: "Sets small icon size";
1390
- };
1391
- readonly '3': {
1392
- readonly value: "{sizing.5}";
1393
- readonly type: "sizing";
1394
- readonly description: "Sets medium icon size";
1395
- };
1396
- readonly '4': {
1397
- readonly value: "{sizing.6}";
1398
- readonly type: "sizing";
1399
- readonly description: "Sets lage icon size";
1400
- };
1401
- };
1402
- };
1403
-
1404
- type SemanticIcon = {
1405
- get: (val: DotKeys<typeof icon>) => string;
1406
- };
1407
-
1408
1607
  declare const state: {
1409
- readonly hover: {
1410
- readonly '1': {
1411
- readonly value: "{sizing.7}";
1412
- readonly type: "sizing";
1413
- readonly description: "Sets extra small hover size";
1414
- };
1415
- readonly '2': {
1416
- readonly value: "{sizing.8}";
1417
- readonly type: "sizing";
1418
- readonly description: "Sets small hover size";
1419
- };
1420
- readonly '3': {
1421
- readonly value: "{sizing.9}";
1422
- readonly type: "sizing";
1423
- readonly description: "Sets medium hover size";
1424
- };
1425
- readonly '4': {
1426
- readonly value: "{sizing.10}";
1427
- readonly type: "sizing";
1428
- readonly description: "Sets lage hover size";
1429
- };
1430
- };
1431
1608
  readonly borderRadius: {
1432
1609
  readonly hover: {
1433
1610
  readonly value: "{borderRadius.7}";
@@ -1442,6 +1619,13 @@ declare const state: {
1442
1619
  readonly description: "Sets transparent overlay for interactive icon on hover";
1443
1620
  };
1444
1621
  };
1622
+ readonly loading: {
1623
+ readonly gradient: {
1624
+ readonly value: "{colors.gradient.1}";
1625
+ readonly type: "color";
1626
+ readonly description: "Alt loading state gradient";
1627
+ };
1628
+ };
1445
1629
  };
1446
1630
 
1447
1631
  type SemanticState = {
@@ -1819,11 +2003,19 @@ type ColorScheme = 'semantic' | 'dark';
1819
2003
  type SemanticTheme = {
1820
2004
  colors: SemanticColors;
1821
2005
  disabledState: SemanticDisabledState;
1822
- icon: SemanticIcon;
1823
2006
  state: SemanticState;
1824
2007
  typography: SemanticTypography;
1825
2008
  boxShadow: SemanticBoxShadow;
1826
2009
  };
2010
+ type Dimension = {
2011
+ borderRadius: DimensionBorderRadius;
2012
+ borderWidth: DimensionBorderWidth;
2013
+ minHeight: DimensionMinHeight;
2014
+ opacity: DimensionOpacity;
2015
+ sizing: DimensionSizing;
2016
+ spacing: DimensionSpacing;
2017
+ state: DimensionState;
2018
+ };
1827
2019
  /** Will add more themes in the future (e.g.: DarkTheme) */
1828
2020
  type Tokens = SemanticTheme;
1829
2021
  type Theme = {
@@ -1838,6 +2030,7 @@ type Theme = {
1838
2030
  opacity: Opacity;
1839
2031
  sizing: Sizing;
1840
2032
  };
2033
+ dimension: Dimension;
1841
2034
  tokens: Tokens;
1842
2035
  colorScheme: ColorScheme;
1843
2036
  overrides: Overrides;
@@ -2032,7 +2225,7 @@ type AvatarStackProps = {
2032
2225
  color?: AvatarColors;
2033
2226
  };
2034
2227
 
2035
- declare const AvatarStack: React__default.ForwardRefExoticComponent<Omit<AvatarStackProps & TestProps$1 & Partial<Omit<React__default.HTMLProps<HTMLDivElement>, "color" | "size" | "css">>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
2228
+ declare const AvatarStack: React__default.ForwardRefExoticComponent<Omit<AvatarStackProps & TestProps$1 & Partial<Omit<React__default.HTMLProps<HTMLDivElement>, "color" | "css" | "size">>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
2036
2229
 
2037
2230
  type BreadcrumbItem = {
2038
2231
  /** Defines the label used for a link breadcrumb item */
@@ -2141,7 +2334,7 @@ declare const Button: React__default.ForwardRefExoticComponent<{
2141
2334
  sx?: {
2142
2335
  container?: _emotion_serialize.CSSObject;
2143
2336
  };
2144
- } & TestProps$1 & EventButtonProps & Partial<Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "size" | "onClick" | "onBlur" | "css" | "disabled">> & {
2337
+ } & TestProps$1 & EventButtonProps & Partial<Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "disabled" | "onClick" | "onBlur" | "css" | "size">> & {
2145
2338
  /** An optional icon to put on the right of the button */
2146
2339
  iconRightName?: AcceptedIconNames$1;
2147
2340
  /** An optional icon to put on the left of the button */
@@ -2483,10 +2676,12 @@ type ExpandCollapseProps = SharedProps & (InternalProps | ExternalProps);
2483
2676
 
2484
2677
  declare const ExpandCollapse: (props: ExpandCollapseProps) => _emotion_react_jsx_runtime.JSX.Element;
2485
2678
 
2679
+ type LinkSizes = 1 | 2 | 3;
2680
+
2486
2681
  declare const Link: React__default.ForwardRefExoticComponent<React__default.AnchorHTMLAttributes<HTMLAnchorElement> & {
2487
- type?: "inverted" | "primary";
2682
+ type?: "primary" | "inverted";
2488
2683
  placement?: "inline" | "block";
2489
- size?: 2 | 1 | 3;
2684
+ size?: LinkSizes;
2490
2685
  iconName?: components_Icon.AcceptedIconNames;
2491
2686
  isDisabled?: boolean;
2492
2687
  component?: prop_types.ReactComponentLike;
@@ -2996,7 +3191,7 @@ type TagProps = {
2996
3191
  onClear?: () => void;
2997
3192
  } & TestProps$1;
2998
3193
 
2999
- declare const Tag: React__default.ForwardRefExoticComponent<Omit<Partial<Omit<React__default.HTMLProps<HTMLDivElement>, "color" | "size" | "css">> & {
3194
+ declare const Tag: React__default.ForwardRefExoticComponent<Omit<Partial<Omit<React__default.HTMLProps<HTMLDivElement>, "color" | "css" | "size">> & {
3000
3195
  color?: TagColors;
3001
3196
  size?: TagSizes;
3002
3197
  iconName?: AcceptedIconNames;
@@ -3016,7 +3211,7 @@ type SearchProps = {
3016
3211
 
3017
3212
  declare const _default$3: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<{
3018
3213
  onClear: () => void;
3019
- } & Omit<TextFieldProps, "size" | "label" | "mask" | "status" | "isInteractive" | "isMulti" | "tags" | "onMultiValueDelete" | "onMultiValueClearAll" | "suffix"> & SearchFilterConfig & React__default.RefAttributes<HTMLInputElement>>>;
3214
+ } & Omit<TextFieldProps, "label" | "mask" | "status" | "size" | "isInteractive" | "isMulti" | "tags" | "onMultiValueDelete" | "onMultiValueClearAll" | "suffix"> & SearchFilterConfig & React__default.RefAttributes<HTMLInputElement>>>;
3020
3215
 
3021
3216
  declare const _default$2: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<Partial<SearchProps> & React__default.RefAttributes<HTMLInputElement>>>;
3022
3217