@traefik-labs/faency 12.0.11 → 12.1.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.
Files changed (75) hide show
  1. package/dist/components/AriaTable/AriaTable.cjs.map +1 -1
  2. package/dist/components/AriaTable/AriaTable.js.map +1 -1
  3. package/dist/components/Avatar/Avatar.vanilla.css.cjs +3 -3
  4. package/dist/components/Avatar/Avatar.vanilla.css.js +1 -1
  5. package/dist/components/Badge/Badge.vanilla.css.cjs +3 -3
  6. package/dist/components/Badge/Badge.vanilla.css.js +1 -1
  7. package/dist/components/Blockquote/Blockquote.vanilla.css.cjs +2 -2
  8. package/dist/components/Blockquote/Blockquote.vanilla.css.js +1 -1
  9. package/dist/components/Bubble/Bubble.vanilla.css.cjs +2 -2
  10. package/dist/components/Bubble/Bubble.vanilla.css.js +1 -1
  11. package/dist/components/Button/Button.cjs +2 -1
  12. package/dist/components/Button/Button.cjs.map +1 -1
  13. package/dist/components/Button/Button.js +2 -1
  14. package/dist/components/Button/Button.js.map +1 -1
  15. package/dist/components/Button/Button.vanilla.css.cjs +2 -2
  16. package/dist/components/Button/Button.vanilla.css.js +1 -1
  17. package/dist/components/Card/Card.vanilla.css.cjs +3 -3
  18. package/dist/components/Card/Card.vanilla.css.js +1 -1
  19. package/dist/components/CodeBlock/CodeBlock.cjs +108 -0
  20. package/dist/components/CodeBlock/CodeBlock.cjs.map +1 -0
  21. package/dist/components/CodeBlock/CodeBlock.js +108 -0
  22. package/dist/components/CodeBlock/CodeBlock.js.map +1 -0
  23. package/dist/components/CodeBlock/CodeBlock.vanilla.cjs +103 -0
  24. package/dist/components/CodeBlock/CodeBlock.vanilla.cjs.map +1 -0
  25. package/dist/components/CodeBlock/CodeBlock.vanilla.css.cjs +18 -0
  26. package/dist/components/CodeBlock/CodeBlock.vanilla.css.cjs.map +1 -0
  27. package/dist/components/CodeBlock/CodeBlock.vanilla.css.js +18 -0
  28. package/dist/components/CodeBlock/CodeBlock.vanilla.css.js.map +1 -0
  29. package/dist/components/CodeBlock/CodeBlock.vanilla.js +103 -0
  30. package/dist/components/CodeBlock/CodeBlock.vanilla.js.map +1 -0
  31. package/dist/components/Container/Container.vanilla.css.cjs +2 -2
  32. package/dist/components/Container/Container.vanilla.css.js +1 -1
  33. package/dist/components/DateTimePicker/DateTimePicker.cjs +1 -1
  34. package/dist/components/DateTimePicker/DateTimePicker.js +1 -1
  35. package/dist/components/Elevation/Elevation.vanilla.css.cjs +2 -2
  36. package/dist/components/Elevation/Elevation.vanilla.css.js +1 -1
  37. package/dist/components/FaencyProvider.cjs +2 -1
  38. package/dist/components/FaencyProvider.cjs.map +1 -1
  39. package/dist/components/FaencyProvider.js +2 -1
  40. package/dist/components/FaencyProvider.js.map +1 -1
  41. package/dist/components/Flex/Flex.vanilla.css.cjs +2 -2
  42. package/dist/components/Flex/Flex.vanilla.css.js +1 -1
  43. package/dist/components/Grid/Grid.vanilla.css.cjs +2 -2
  44. package/dist/components/Grid/Grid.vanilla.css.js +1 -1
  45. package/dist/components/IconButton/IconButton.vanilla.css.cjs +2 -2
  46. package/dist/components/IconButton/IconButton.vanilla.css.js +1 -1
  47. package/dist/components/Input/Input.vanilla.css.cjs +4 -4
  48. package/dist/components/Input/Input.vanilla.css.js +1 -1
  49. package/dist/components/Label/Label.vanilla.css.cjs +2 -2
  50. package/dist/components/Label/Label.vanilla.css.js +1 -1
  51. package/dist/components/List/List.cjs +36 -7
  52. package/dist/components/List/List.cjs.map +1 -1
  53. package/dist/components/List/List.js +36 -7
  54. package/dist/components/List/List.js.map +1 -1
  55. package/dist/components/Paragraph/Paragraph.vanilla.css.cjs +2 -2
  56. package/dist/components/Paragraph/Paragraph.vanilla.css.js +1 -1
  57. package/dist/components/Skeleton/Skeleton.vanilla.css.cjs +2 -2
  58. package/dist/components/Skeleton/Skeleton.vanilla.css.js +1 -1
  59. package/dist/components/Textarea/Textarea.vanilla.css.cjs +3 -3
  60. package/dist/components/Textarea/Textarea.vanilla.css.js +1 -1
  61. package/dist/components/colorSchemeContext.cjs +45 -0
  62. package/dist/components/colorSchemeContext.cjs.map +1 -0
  63. package/dist/components/colorSchemeContext.js +45 -0
  64. package/dist/components/colorSchemeContext.js.map +1 -0
  65. package/dist/faency.css +135 -107
  66. package/dist/index.cjs +6 -0
  67. package/dist/index.cjs.map +1 -1
  68. package/dist/index.d.ts +388 -0
  69. package/dist/index.js +6 -0
  70. package/dist/index.js.map +1 -1
  71. package/package.json +35 -28
  72. package/dist/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.cjs +0 -109
  73. package/dist/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.cjs.map +0 -1
  74. package/dist/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js +0 -109
  75. package/dist/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ import { AspectRatio } from '@radix-ui/react-aspect-ratio';
5
5
  import { AtRule } from '@stitches/react/types/css';
6
6
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
7
7
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
8
+ import { Language as CodeBlockLanguage } from 'prism-react-renderer';
8
9
  import { ComponentProps } from 'react';
9
10
  import { ComponentPropsWithRef } from 'react';
10
11
  import { ComponentType } from 'react';
@@ -23,6 +24,7 @@ import { ExoticComponent } from 'react';
23
24
  import { FC } from 'react';
24
25
  import { ForwardRefExoticComponent } from 'react';
25
26
  import { Function as Function_2 } from '@stitches/react/types/util';
27
+ import { HTMLAttributes } from 'react';
26
28
  import { IconProps } from '@radix-ui/react-icons/dist/types';
27
29
  import { JSXElementConstructor } from 'react';
28
30
  import * as LabelPrimitive from '@radix-ui/react-label';
@@ -6442,12 +6444,47 @@ declare type CheckboxProps = CheckboxPrimitiveProps & CheckboxVariants & {
6442
6444
 
6443
6445
  declare type CheckboxVariants = VariantProps<typeof StyledCheckbox>;
6444
6446
 
6447
+ export declare const CodeBlock: default_2.ForwardRefExoticComponent<Omit<CodeBlockProps, "ref"> & default_2.RefAttributes<HTMLPreElement>>;
6448
+
6449
+ export { CodeBlockLanguage }
6450
+
6451
+ export declare type CodeBlockProps = {
6452
+ lang: CodeBlockLanguage;
6453
+ code: string;
6454
+ copyable?: boolean;
6455
+ copyText?: string;
6456
+ copiedText?: string;
6457
+ copyButtonAlign?: 'top' | 'bottom';
6458
+ noBorder?: boolean;
6459
+ wrapText?: boolean;
6460
+ colorScheme?: 'light' | 'dark';
6461
+ maxHeight?: number | string;
6462
+ css?: CSS_2;
6463
+ } & Omit<ComponentProps<typeof Pre>, 'css'>;
6464
+
6465
+ export declare const CodeBlockVanilla: default_2.ForwardRefExoticComponent<CodeBlockVanillaProps & default_2.RefAttributes<HTMLPreElement>>;
6466
+
6467
+ export declare interface CodeBlockVanillaProps extends Omit<HTMLAttributes<HTMLPreElement>, 'css'>, CSSProps {
6468
+ lang: CodeBlockLanguage;
6469
+ code: string;
6470
+ copyable?: boolean;
6471
+ copyText?: string;
6472
+ copiedText?: string;
6473
+ copyButtonAlign?: 'top' | 'bottom';
6474
+ noBorder?: boolean;
6475
+ wrapText?: boolean;
6476
+ colorScheme?: 'light' | 'dark';
6477
+ maxHeight?: number | string;
6478
+ }
6479
+
6445
6480
  declare type COLOR_VALUES = (typeof BADGE_COLORS_VANILLA)[number];
6446
6481
 
6447
6482
  declare type ColorMap = {
6448
6483
  [key: string]: string;
6449
6484
  };
6450
6485
 
6486
+ declare type ColorScheme = 'light' | 'dark';
6487
+
6451
6488
  declare type ColorVariants = Record<COLOR_VALUES, {
6452
6489
  bc: string;
6453
6490
  color: string;
@@ -18312,6 +18349,355 @@ export declare const PopoverTrigger: default_2.ForwardRefExoticComponent<Popover
18312
18349
 
18313
18350
  export { Portal }
18314
18351
 
18352
+ declare const Pre: StyledComponent<"pre", {
18353
+ noBorder?: boolean | "true" | undefined;
18354
+ }, {
18355
+ bp1: "(min-width: 520px) and (max-width: 899px)";
18356
+ bp2: "(min-width: 900px) and (max-width: 1199px)";
18357
+ bp3: "(min-width: 1200px) and (max-width: 1799px)";
18358
+ bp4: "(min-width: 1800px)";
18359
+ motion: "(prefers-reduced-motion)";
18360
+ hover: "(any-hover: hover)";
18361
+ dark: "(prefers-color-scheme: dark)";
18362
+ light: "(prefers-color-scheme: light)";
18363
+ }, CSS_4< {
18364
+ bp1: "(min-width: 520px) and (max-width: 899px)";
18365
+ bp2: "(min-width: 900px) and (max-width: 1199px)";
18366
+ bp3: "(min-width: 1200px) and (max-width: 1799px)";
18367
+ bp4: "(min-width: 1800px)";
18368
+ motion: "(prefers-reduced-motion)";
18369
+ hover: "(any-hover: hover)";
18370
+ dark: "(prefers-color-scheme: dark)";
18371
+ light: "(prefers-color-scheme: light)";
18372
+ }, {
18373
+ colors: {
18374
+ sidePanelBackground: Property;
18375
+ headingDefault: Property;
18376
+ textareaBg: Property;
18377
+ textareaBorder: Property;
18378
+ textareaFocusBg: Property;
18379
+ textareaFocusBorder: Property;
18380
+ textareaHoverBg: Property;
18381
+ textareaText: Property;
18382
+ textareaPlaceholder: Property;
18383
+ textareaDisabledText: Property;
18384
+ textareaInvalidBorder: Property;
18385
+ tooltipContentBg: Property;
18386
+ tooltipText: Property;
18387
+ iconButtonBackground: Property;
18388
+ iconButtonHoverBorder: Property;
18389
+ iconButtonHoverBackground: Property;
18390
+ iconButtonFocusBorder: Property;
18391
+ dialogBackground: Property;
18392
+ skeletonBackground: Property;
18393
+ skeletonAnimation: Property;
18394
+ selectBg: Property;
18395
+ selectBorder: Property;
18396
+ selectFocusBg: Property;
18397
+ selectFocusBorder: Property;
18398
+ selectHoverBg: Property;
18399
+ selectText: Property;
18400
+ selectPlaceholder: Property;
18401
+ selectDisabledText: Property;
18402
+ selectInvalidBorder: Property;
18403
+ textSubtle: Property;
18404
+ textDefault: Property;
18405
+ textContrast: Property;
18406
+ textInvalid: Property;
18407
+ textRed: Property;
18408
+ tableText: Property;
18409
+ tableSubtleText: Property;
18410
+ tableHoverBackground: Property;
18411
+ tableActiveText: Property;
18412
+ tableActiveHoverText: Property;
18413
+ tableHeaderLayerBackground: Property;
18414
+ tableFooterLayerBackground: Property;
18415
+ tableHeaderText: Property;
18416
+ tableFooterText: Property;
18417
+ tableHoverText: Property;
18418
+ tableRowBorder: Property;
18419
+ inputBg: Property;
18420
+ inputBorder: Property;
18421
+ inputFocusBg: Property;
18422
+ inputFocusBorder: Property;
18423
+ inputHoverBg: Property;
18424
+ inputText: Property;
18425
+ inputPlaceholder: Property;
18426
+ inputDisabledText: Property;
18427
+ inputInvalidBorder: Property;
18428
+ radioBorder: Property;
18429
+ radioHoverBg: Property;
18430
+ radioHoverBorder: Property;
18431
+ radioFocusBorder: Property;
18432
+ radioDisabledBg: Property;
18433
+ radioDisabledBorder: Property;
18434
+ radioIndicatorDisabledBg: Property;
18435
+ listItemHoverBg: Property;
18436
+ listItemActiveBg: Property;
18437
+ listItemFocusBorder: Property;
18438
+ linkSubtle: Property;
18439
+ linkBlueTextDecoration: Property;
18440
+ linkBlueHoverTextDecoration: Property;
18441
+ linkBlueFocusOutline: Property;
18442
+ linkContrast: Property;
18443
+ linkContrastTextDecoration: Property;
18444
+ linkContrastHoverTextDecoration: Property;
18445
+ linkContrastFocusOutline: Property;
18446
+ linkSubtleTextDecoration: Property;
18447
+ linkSubtleHoverTextDecoration: Property;
18448
+ linkSubtleFocusOutline: Property;
18449
+ linkPrimary: Property;
18450
+ linkPrimaryTextDecoration: Property;
18451
+ linkPrimaryHoverTextDecoration: Property;
18452
+ linkPrimaryFocusOutline: Property;
18453
+ checkboxIcon: Property;
18454
+ checkboxBg: Property;
18455
+ checkboxCheckedBg: Property;
18456
+ checkboxBorder: Property;
18457
+ checkboxCheckedIcon: Property;
18458
+ checkboxCheckedHoverBg: Property;
18459
+ checkboxHoverBg: Property;
18460
+ checkboxHoverBorder: Property;
18461
+ checkboxFocusBorder: Property;
18462
+ checkboxDisabledBg: Property;
18463
+ checkboxDisabledBorder: Property;
18464
+ checkboxIndicatorDisabledBg: Property;
18465
+ cardBackground: Property;
18466
+ cardBorder: Property;
18467
+ cardShadow: Property;
18468
+ cardHoverBackground: Property;
18469
+ cardHoverBorder: Property;
18470
+ cardActiveBackground: Property;
18471
+ cardActiveBorder: Property;
18472
+ cardGhostBackground: Property;
18473
+ innerCardBgColor: Property;
18474
+ switchBackground: Property;
18475
+ switchActiveBackground: Property;
18476
+ switchFocusBorder: Property;
18477
+ switchThumb: Property;
18478
+ buttonSwitchContainerBg: Property;
18479
+ buttonSwitchActiveBg: Property;
18480
+ buttonSwitchOffBg: Property;
18481
+ buttonSwitchOffColor: Property;
18482
+ buttonSwitchActiveColor: Property;
18483
+ buttonPrimaryBg: Property;
18484
+ buttonPrimaryText: Property;
18485
+ buttonPrimaryFocusBorder: Property;
18486
+ buttonPrimaryGhostHoverText: Property;
18487
+ buttonSecondaryBg: Property;
18488
+ buttonSecondaryText: Property;
18489
+ buttonSecondaryBorder: Property;
18490
+ buttonSecondaryFocusBorder: Property;
18491
+ buttonRedBg: Property;
18492
+ buttonRedText: Property;
18493
+ buttonRedHoverText: Property;
18494
+ buttonRedFocusBg: Property;
18495
+ badgeInteractiveBackgroundActive: Property;
18496
+ badgeInteractiveBackgroundHover: Property;
18497
+ accordionBackground: Property;
18498
+ accordionHoverShadow: Property;
18499
+ accordionActiveShadow: Property;
18500
+ accordionText: Property;
18501
+ accordionLabel: Property;
18502
+ };
18503
+ fonts: {
18504
+ rubik: "Rubik, -apple-system, system-ui, \"Segoe UI\", \"Helvetica Neue\", helvetica, arial, sans-serif";
18505
+ };
18506
+ space: {
18507
+ 1: "4px";
18508
+ 2: "8px";
18509
+ 3: "16px";
18510
+ 4: "20px";
18511
+ 5: "24px";
18512
+ 6: "32px";
18513
+ 7: "48px";
18514
+ 8: "64px";
18515
+ 9: "80px";
18516
+ };
18517
+ sizes: {
18518
+ 1: "4px";
18519
+ 2: "8px";
18520
+ 3: "16px";
18521
+ 4: "20px";
18522
+ 5: "24px";
18523
+ 6: "32px";
18524
+ 7: "40px";
18525
+ 8: "48px";
18526
+ 9: "64px";
18527
+ 10: "80px";
18528
+ };
18529
+ fontSizes: {
18530
+ 0: "11px";
18531
+ 1: "12px";
18532
+ 2: "13px";
18533
+ 3: "14px";
18534
+ 4: "16px";
18535
+ 5: "18px";
18536
+ 6: "20px";
18537
+ 7: "22px";
18538
+ 8: "24px";
18539
+ 9: "26px";
18540
+ 10: "28px";
18541
+ 11: "32px";
18542
+ 12: "38px";
18543
+ };
18544
+ fontWeights: {
18545
+ light: 300;
18546
+ regular: 400;
18547
+ medium: 500;
18548
+ semiBold: 600;
18549
+ bold: 700;
18550
+ };
18551
+ radii: {
18552
+ 1: "4px";
18553
+ 2: "6px";
18554
+ 3: "8px";
18555
+ 4: "12px";
18556
+ round: "50%";
18557
+ pill: "9999px";
18558
+ };
18559
+ zIndices: {
18560
+ 1: "100";
18561
+ 2: "200";
18562
+ 3: "300";
18563
+ 4: "400";
18564
+ max: "999";
18565
+ };
18566
+ }, DefaultThemeMap, {
18567
+ p: (value: PropertyValue<"padding">) => {
18568
+ padding: WithPropertyValue<"padding">;
18569
+ };
18570
+ pt: (value: PropertyValue<"paddingTop">) => {
18571
+ paddingTop: WithPropertyValue<"paddingTop">;
18572
+ };
18573
+ pr: (value: PropertyValue<"paddingRight">) => {
18574
+ paddingRight: WithPropertyValue<"paddingRight">;
18575
+ };
18576
+ pb: (value: PropertyValue<"paddingBottom">) => {
18577
+ paddingBottom: WithPropertyValue<"paddingBottom">;
18578
+ };
18579
+ pl: (value: PropertyValue<"paddingLeft">) => {
18580
+ paddingLeft: WithPropertyValue<"paddingLeft">;
18581
+ };
18582
+ px: (value: PropertyValue<"paddingLeft">) => {
18583
+ paddingLeft: WithPropertyValue<"paddingLeft">;
18584
+ paddingRight: WithPropertyValue<"paddingLeft">;
18585
+ };
18586
+ py: (value: PropertyValue<"paddingTop">) => {
18587
+ paddingTop: WithPropertyValue<"paddingTop">;
18588
+ paddingBottom: WithPropertyValue<"paddingTop">;
18589
+ };
18590
+ m: (value: PropertyValue<"margin">) => {
18591
+ margin: WithPropertyValue<"margin">;
18592
+ };
18593
+ mt: (value: PropertyValue<"marginTop">) => {
18594
+ marginTop: WithPropertyValue<"marginTop">;
18595
+ };
18596
+ mr: (value: PropertyValue<"marginRight">) => {
18597
+ marginRight: WithPropertyValue<"marginRight">;
18598
+ };
18599
+ mb: (value: PropertyValue<"marginBottom">) => {
18600
+ marginBottom: WithPropertyValue<"marginBottom">;
18601
+ };
18602
+ ml: (value: PropertyValue<"marginLeft">) => {
18603
+ marginLeft: WithPropertyValue<"marginLeft">;
18604
+ };
18605
+ mx: (value: PropertyValue<"marginLeft">) => {
18606
+ marginLeft: WithPropertyValue<"marginLeft">;
18607
+ marginRight: WithPropertyValue<"marginLeft">;
18608
+ };
18609
+ my: (value: PropertyValue<"marginTop">) => {
18610
+ marginTop: WithPropertyValue<"marginTop">;
18611
+ marginBottom: WithPropertyValue<"marginTop">;
18612
+ };
18613
+ ta: (value: PropertyValue<"textAlign">) => {
18614
+ textAlign: WithPropertyValue<"textAlign">;
18615
+ };
18616
+ fd: (value: PropertyValue<"flexDirection">) => {
18617
+ flexDirection: WithPropertyValue<"flexDirection">;
18618
+ };
18619
+ fw: (value: PropertyValue<"flexWrap">) => {
18620
+ flexWrap: WithPropertyValue<"flexWrap">;
18621
+ };
18622
+ ai: (value: PropertyValue<"alignItems">) => {
18623
+ alignItems: WithPropertyValue<"alignItems">;
18624
+ };
18625
+ ac: (value: PropertyValue<"alignContent">) => {
18626
+ alignContent: WithPropertyValue<"alignContent">;
18627
+ };
18628
+ jc: (value: PropertyValue<"justifyContent">) => {
18629
+ justifyContent: WithPropertyValue<"justifyContent">;
18630
+ };
18631
+ as: (value: PropertyValue<"alignSelf">) => {
18632
+ alignSelf: WithPropertyValue<"alignSelf">;
18633
+ };
18634
+ fg: (value: PropertyValue<"flexGrow">) => {
18635
+ flexGrow: WithPropertyValue<"flexGrow">;
18636
+ };
18637
+ fs: (value: PropertyValue<"flexShrink">) => {
18638
+ flexShrink: WithPropertyValue<"flexShrink">;
18639
+ };
18640
+ fb: (value: PropertyValue<"flexBasis">) => {
18641
+ flexBasis: WithPropertyValue<"flexBasis">;
18642
+ };
18643
+ bc: (value: PropertyValue<"backgroundColor">) => {
18644
+ backgroundColor: WithPropertyValue<"backgroundColor">;
18645
+ };
18646
+ br: (value: PropertyValue<"borderRadius">) => {
18647
+ borderRadius: WithPropertyValue<"borderRadius">;
18648
+ };
18649
+ btrr: (value: PropertyValue<"borderTopRightRadius">) => {
18650
+ borderTopRightRadius: WithPropertyValue<"borderTopRightRadius">;
18651
+ };
18652
+ bbrr: (value: PropertyValue<"borderBottomRightRadius">) => {
18653
+ borderBottomRightRadius: WithPropertyValue<"borderBottomRightRadius">;
18654
+ };
18655
+ bblr: (value: PropertyValue<"borderBottomLeftRadius">) => {
18656
+ borderBottomLeftRadius: WithPropertyValue<"borderBottomLeftRadius">;
18657
+ };
18658
+ btlr: (value: PropertyValue<"borderTopLeftRadius">) => {
18659
+ borderTopLeftRadius: WithPropertyValue<"borderTopLeftRadius">;
18660
+ };
18661
+ bs: (value: PropertyValue<"boxShadow">) => {
18662
+ boxShadow: WithPropertyValue<"boxShadow">;
18663
+ };
18664
+ c: (value: PropertyValue<"color">) => {
18665
+ color: WithPropertyValue<"color">;
18666
+ };
18667
+ lh: (value: PropertyValue<"lineHeight">) => {
18668
+ lineHeight: WithPropertyValue<"lineHeight">;
18669
+ };
18670
+ ox: (value: PropertyValue<"overflowX">) => {
18671
+ overflowX: WithPropertyValue<"overflowX">;
18672
+ };
18673
+ oy: (value: PropertyValue<"overflowY">) => {
18674
+ overflowY: WithPropertyValue<"overflowY">;
18675
+ };
18676
+ pe: (value: PropertyValue<"pointerEvents">) => {
18677
+ pointerEvents: WithPropertyValue<"pointerEvents">;
18678
+ };
18679
+ us: (value: PropertyValue<"userSelect">) => {
18680
+ WebkitUserSelect: WithPropertyValue<"userSelect">;
18681
+ userSelect: WithPropertyValue<"userSelect">;
18682
+ };
18683
+ userSelect: (value: PropertyValue<"userSelect">) => {
18684
+ WebkitUserSelect: WithPropertyValue<"userSelect">;
18685
+ userSelect: WithPropertyValue<"userSelect">;
18686
+ };
18687
+ size: (value: PropertyValue<"width">) => {
18688
+ width: WithPropertyValue<"width">;
18689
+ height: WithPropertyValue<"width">;
18690
+ };
18691
+ appearance: (value: PropertyValue<"appearance">) => {
18692
+ WebkitAppearance: WithPropertyValue<"appearance">;
18693
+ appearance: WithPropertyValue<"appearance">;
18694
+ };
18695
+ backgroundClip: (value: PropertyValue<"backgroundClip">) => {
18696
+ WebkitBackgroundClip: WithPropertyValue<"backgroundClip">;
18697
+ backgroundClip: WithPropertyValue<"backgroundClip">;
18698
+ };
18699
+ }>>;
18700
+
18315
18701
  export declare type PrimaryColor = 'neon' | 'blue' | 'orange' | 'red' | 'green' | 'deepBlue' | 'grayBlue';
18316
18702
 
18317
18703
  declare type PrimaryColor_2 = 'neon' | 'blue' | 'orange' | 'red' | 'green' | 'deepBlue' | 'grayBlue';
@@ -33842,6 +34228,8 @@ declare type TrProps = ComponentProps<typeof StyledTr_2> & VariantProps<typeof S
33842
34228
 
33843
34229
  export declare const Ul: default_2.ForwardRefExoticComponent<Omit<ListProps, "ref"> & default_2.RefAttributes<HTMLUListElement>>;
33844
34230
 
34231
+ export declare function useColorScheme(): ColorScheme;
34232
+
33845
34233
  export declare function useVanillaExtractTheme(): ThemeContextValue;
33846
34234
 
33847
34235
  export declare const vanillaDarkTheme: string;
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { FaencyProvider } from "./components/FaencyProvider.js";
2
+ import { useColorScheme } from "./components/colorSchemeContext.js";
2
3
  import { Overlay } from "./components/Overlay.js";
3
4
  import { AspectRatio } from "@radix-ui/react-aspect-ratio";
4
5
  import { Portal } from "@radix-ui/react-portal";
@@ -18,6 +19,8 @@ import { Blockquote } from "./components/Blockquote/Blockquote.js";
18
19
  import { BlockquoteVanilla } from "./components/Blockquote/Blockquote.vanilla.js";
19
20
  import { Box } from "./components/Box/Box.js";
20
21
  import { BoxVanilla } from "./components/Box/Box.vanilla.js";
22
+ import { CodeBlock } from "./components/CodeBlock/CodeBlock.js";
23
+ import { CodeBlockVanilla } from "./components/CodeBlock/CodeBlock.vanilla.js";
21
24
  import { Bubble } from "./components/Bubble/Bubble.js";
22
25
  import { BubbleVanilla } from "./components/Bubble/Bubble.vanilla.js";
23
26
  import { Button } from "./components/Button/Button.js";
@@ -114,6 +117,8 @@ export {
114
117
  Card,
115
118
  CardVanilla,
116
119
  Checkbox,
120
+ CodeBlock,
121
+ CodeBlockVanilla,
117
122
  Container,
118
123
  ContainerVanilla,
119
124
  DateTimePicker,
@@ -235,6 +240,7 @@ export {
235
240
  lightTheme,
236
241
  panelStyles,
237
242
  styled,
243
+ useColorScheme,
238
244
  useVanillaExtractTheme,
239
245
  darkTheme2 as vanillaDarkTheme,
240
246
  lightTheme2 as vanillaLightTheme,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@traefik-labs/faency",
3
3
  "description": "Traefik Labs design system",
4
- "version": "12.0.11",
4
+ "version": "12.1.0",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
7
7
  "traefiklabs",
@@ -85,10 +85,10 @@
85
85
  "@radix-ui/react-use-layout-effect": "^1.0.0",
86
86
  "@radix-ui/react-visually-hidden": "^1.0.1",
87
87
  "@rehookify/datepicker": "^6.6.7",
88
- "@semantic-release/commit-analyzer": "^9.0.2",
89
- "@semantic-release/github": "^8.0.2",
90
- "@semantic-release/npm": "^9.0.0",
91
- "@semantic-release/release-notes-generator": "^10.0.3",
88
+ "@semantic-release/commit-analyzer": "^13.0.1",
89
+ "@semantic-release/github": "^12.0.6",
90
+ "@semantic-release/npm": "^13.1.5",
91
+ "@semantic-release/release-notes-generator": "^14.1.0",
92
92
  "@stitches/react": "1.2.8",
93
93
  "@storybook/addon-docs": "10.2.10",
94
94
  "@storybook/addon-links": "10.2.10",
@@ -107,7 +107,7 @@
107
107
  "@vanilla-extract/vite-plugin": "^5.1.1",
108
108
  "@vitejs/plugin-react": "^5.1.1",
109
109
  "babel-loader": "^8.2.2",
110
- "conventional-changelog-conventionalcommits": "^4.6.3",
110
+ "conventional-changelog-conventionalcommits": "^9.2.0",
111
111
  "cross-env": "^7.0.3",
112
112
  "date-fns": "^4.1.0",
113
113
  "husky": "^8.0.0",
@@ -116,23 +116,24 @@
116
116
  "np": "^8.0.4",
117
117
  "patch-package": "^8.0.0",
118
118
  "prettier": "^3.6.2",
119
+ "prism-react-renderer": "2.4.1",
119
120
  "react": "18.2.0",
120
121
  "react-dom": "18.2.0",
121
- "semantic-release": "^19.0.2",
122
+ "semantic-release": "^25.0.3",
122
123
  "storybook": "10.2.10",
123
124
  "tinycolor2": "^1.4.2",
124
125
  "typescript": "^5.8.3",
125
126
  "use-debounce": "9.0.2",
126
- "vite": "7.1.3",
127
+ "vite": "7.1.11",
127
128
  "vite-plugin-dts": "^4.5.4"
128
129
  },
129
130
  "devDependencies": {
130
131
  "@eslint/compat": "^1.3.1",
131
132
  "@eslint/js": "^9.32.0",
132
- "@storybook/addon-docs": "10.0.8",
133
- "@storybook/addon-links": "10.0.8",
134
- "@storybook/builder-vite": "10.0.8",
135
- "@storybook/react-vite": "10.0.8",
133
+ "@storybook/addon-docs": "10.2.10",
134
+ "@storybook/addon-links": "10.2.10",
135
+ "@storybook/builder-vite": "10.2.10",
136
+ "@storybook/react-vite": "10.2.10",
136
137
  "@testing-library/jest-dom": "^5.16.5",
137
138
  "@testing-library/react": "^13.4.0",
138
139
  "@vueless/storybook-dark-mode": "^10.0.3",
@@ -148,9 +149,9 @@
148
149
  "globals": "^15.8.0",
149
150
  "jest": "^27.5.1",
150
151
  "jest-axe": "^6.0.0",
151
- "storybook": "10.0.8",
152
+ "storybook": "10.2.10",
152
153
  "typescript-eslint": "^8.38.0",
153
- "webpack": "^5.94.0"
154
+ "webpack": "5.104.1"
154
155
  },
155
156
  "resolutions": {
156
157
  "@typescript-eslint/project-service@^8.56.0": "8.56.0",
@@ -160,22 +161,23 @@
160
161
  "@typescript-eslint/typescript-estree@^8.56.0": "8.56.0",
161
162
  "@typescript-eslint/utils@^8.56.0": "8.56.0",
162
163
  "@typescript-eslint/visitor-keys@^8.56.0": "8.56.0",
163
- "balanced-match@^4.0.2": "4.0.3",
164
- "brace-expansion@^5.0.2": "5.0.2",
165
- "glob@^13.0.1": "13.0.5",
166
- "minimatch@^3.0.4": "3.1.2",
167
- "minimatch@^3.1.1": "3.1.2",
168
- "minimatch@^5.0.1": "5.1.2",
169
- "minimatch@^5.1.0": "5.1.2",
170
- "minimatch@^9.0.0": "9.0.5",
171
- "minimatch@^9.0.5": "9.0.5",
172
- "minimatch@^10.2.1": "10.2.1",
173
- "minimatch@^10.2.2": "10.2.1",
174
- "path-scurry@^2.0.0": "2.0.1"
164
+ "baseline-browser-mapping@^2.9.0": "2.10.8",
165
+ "browserslist@^4.28.1": "4.28.1",
166
+ "caniuse-lite@^1.0.30001759": "1.0.30001779",
167
+ "conventional-changelog-angular@^8.0.0": "8.3.0",
168
+ "conventional-changelog-conventionalcommits@^9.2.0": "9.2.0",
169
+ "conventional-commits-parser@^6.0.0": "6.3.0",
170
+ "electron-to-chromium@^1.5.263": "1.5.313",
171
+ "minimatch@^10.0.3": "10.2.4",
172
+ "minimatch@^10.1.1": "10.2.4",
173
+ "minimatch@^10.2.1": "10.2.4",
174
+ "minimatch@^10.2.2": "10.2.4",
175
+ "minimatch@^10.2.4": "10.2.4",
176
+ "undici@^7.0.0": "7.24.4"
175
177
  },
176
178
  "publishConfig": {
177
179
  "access": "public",
178
- "registry": "https://registry.npmjs.org"
180
+ "registry": "https://registry.npmjs.org/"
179
181
  },
180
182
  "lint-staged": {
181
183
  "*.{ts,tsx,js,jsx,css,md}": "prettier --write"
@@ -198,7 +200,12 @@
198
200
  "preset": "conventionalcommits"
199
201
  }
200
202
  ],
201
- "@semantic-release/npm",
203
+ [
204
+ "@semantic-release/npm",
205
+ {
206
+ "provenance": true
207
+ }
208
+ ],
202
209
  "@semantic-release/github"
203
210
  ]
204
211
  },