@texturehq/edges 1.28.1 → 1.28.3

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/server.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- export { A as ActionItem, a as ActionMenuProps, b as AppShell, c as AppShellProps, d as AvatarProps, B as BadgeProps, e as BaseDataPoint, C as ChartMargin, f as CodeEditorProps, g as CodeLanguage, h as CodeTheme, E as ENTITY_CONFIG, i as EntityConfig, j as EntityType, H as Heading, I as InteractiveMapProps, L as Loader, k as Logo, M as MapPoint, l as MeterProps, S as SegmentOption, m as SegmentedControlProps, n as SideNav, o as SideNavItem, p as SideNavProps, q as StaticMapProps, T as TextLink, r as TooltipData, s as TooltipSeries, t as TopNav, u as TopNavProps, Y as YFormatSettings, v as YFormatType, w as clearColorCache, x as createCategoryColorMap, y as createXScale, z as createYScale, D as defaultMargin, F as getContrastingTextColor, G as getDefaultChartColor, J as getDefaultColors, K as getEntityConfig, N as getEntityIcon, O as getEntityLabel, P as getResolvedColor, Q as getThemeCategoricalColors, R as getYFormatSettings, U as isLightColor } from './colors-BHVIdEzL.cjs';
1
+ export { A as ActionItem, a as ActionMenuProps, b as AppShell, c as AppShellProps, d as AvatarProps, B as BadgeProps, e as BaseDataPoint, C as ChartMargin, f as CodeEditorProps, g as CodeLanguage, h as CodeTheme, E as ENTITY_CONFIG, i as EntityConfig, j as EntityType, H as Heading, I as InteractiveMapProps, L as Loader, k as Logo, M as MapPoint, l as MeterProps, S as SegmentOption, m as SegmentedControlProps, n as SideNav, o as SideNavItem, p as SideNavProps, q as StaticMapProps, T as TextLink, r as TooltipData, s as TooltipSeries, t as TopNav, u as TopNavProps, Y as YFormatSettings, v as YFormatType, w as clearColorCache, x as createCategoryColorMap, y as createXScale, z as createYScale, D as defaultMargin, F as getContrastingTextColor, G as getDefaultChartColor, J as getDefaultColors, K as getEntityConfig, N as getEntityIcon, O as getEntityLabel, P as getResolvedColor, Q as getThemeCategoricalColors, R as getYFormatSettings, U as isLightColor } from './colors-CEdtNxvm.cjs';
2
2
  export { BreadcrumbProps, BreadcrumbsProps } from 'react-aria-components';
3
- export { D as DateFieldProps, F as FileUploadProps, R as RichTextEditorProps } from './RichTextEditor-7jc4jO7e.cjs';
3
+ export { D as DateFieldProps, F as FileUploadProps, R as RichTextEditorProps } from './RichTextEditor-BjXePCmA.cjs';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { IconProps } from '@phosphor-icons/react';
6
6
  import React__default from 'react';
package/dist/server.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { A as ActionItem, a as ActionMenuProps, b as AppShell, c as AppShellProps, d as AvatarProps, B as BadgeProps, e as BaseDataPoint, C as ChartMargin, f as CodeEditorProps, g as CodeLanguage, h as CodeTheme, E as ENTITY_CONFIG, i as EntityConfig, j as EntityType, H as Heading, I as InteractiveMapProps, L as Loader, k as Logo, M as MapPoint, l as MeterProps, S as SegmentOption, m as SegmentedControlProps, n as SideNav, o as SideNavItem, p as SideNavProps, q as StaticMapProps, T as TextLink, r as TooltipData, s as TooltipSeries, t as TopNav, u as TopNavProps, Y as YFormatSettings, v as YFormatType, w as clearColorCache, x as createCategoryColorMap, y as createXScale, z as createYScale, D as defaultMargin, F as getContrastingTextColor, G as getDefaultChartColor, J as getDefaultColors, K as getEntityConfig, N as getEntityIcon, O as getEntityLabel, P as getResolvedColor, Q as getThemeCategoricalColors, R as getYFormatSettings, U as isLightColor } from './colors-BArtDuqU.js';
1
+ export { A as ActionItem, a as ActionMenuProps, b as AppShell, c as AppShellProps, d as AvatarProps, B as BadgeProps, e as BaseDataPoint, C as ChartMargin, f as CodeEditorProps, g as CodeLanguage, h as CodeTheme, E as ENTITY_CONFIG, i as EntityConfig, j as EntityType, H as Heading, I as InteractiveMapProps, L as Loader, k as Logo, M as MapPoint, l as MeterProps, S as SegmentOption, m as SegmentedControlProps, n as SideNav, o as SideNavItem, p as SideNavProps, q as StaticMapProps, T as TextLink, r as TooltipData, s as TooltipSeries, t as TopNav, u as TopNavProps, Y as YFormatSettings, v as YFormatType, w as clearColorCache, x as createCategoryColorMap, y as createXScale, z as createYScale, D as defaultMargin, F as getContrastingTextColor, G as getDefaultChartColor, J as getDefaultColors, K as getEntityConfig, N as getEntityIcon, O as getEntityLabel, P as getResolvedColor, Q as getThemeCategoricalColors, R as getYFormatSettings, U as isLightColor } from './colors-BhJKDQEw.js';
2
2
  export { BreadcrumbProps, BreadcrumbsProps } from 'react-aria-components';
3
- export { D as DateFieldProps, F as FileUploadProps, R as RichTextEditorProps } from './RichTextEditor-7jc4jO7e.js';
3
+ export { D as DateFieldProps, F as FileUploadProps, R as RichTextEditorProps } from './RichTextEditor-BjXePCmA.js';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { IconProps } from '@phosphor-icons/react';
6
6
  import React__default from 'react';
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Light Theme Override
3
+ *
4
+ * Apply the `theme-light` class to any element to force light-mode tokens
5
+ * within that subtree, even when the page is in dark mode.
6
+ *
7
+ * Usage: <div className="theme-light">...</div>
8
+ */
9
+
10
+ .theme-light {
11
+ --color-background-body: #ffffff;
12
+ --color-background-surface: #ffffff;
13
+ --color-background-muted: #f3f4f6;
14
+ --color-background-hover: #f3f4f6;
15
+ --color-background-selected: #e5e7eb;
16
+ --color-background-modal: rgba(0, 0, 0, 0.15);
17
+ --color-background-input: #ffffff;
18
+ --color-text-body: #333333;
19
+ --color-text-heading: #111827;
20
+ --color-text-muted: #4b5563;
21
+ --color-text-caption: #6b7280;
22
+ --color-text-subtle: #5f6873;
23
+ --color-text-placeholder: #9ca3af;
24
+ --color-text-disabled: #9ca3af;
25
+ --color-text-link-default: #444ae1;
26
+ --color-text-link-hover: #363ccb;
27
+ --color-text-onPrimary: #ffffff;
28
+ --color-border-default: #e5e7eb;
29
+ --color-border-focus: #111827;
30
+ --color-border-muted: #e5e7eb;
31
+ --color-border-input: #d1d5db;
32
+ --color-feedback-success-text: #065f46;
33
+ --color-feedback-success-background: #d1fae5;
34
+ --color-feedback-success-border: #10b981;
35
+ --color-feedback-error-text: #b91c1c;
36
+ --color-feedback-error-background: #fee2e2;
37
+ --color-feedback-error-border: #ef4444;
38
+ --color-feedback-warning-text: #92400e;
39
+ --color-feedback-warning-background: #fef3c7;
40
+ --color-feedback-warning-border: #f59e0b;
41
+ --color-feedback-info-text: #2563eb;
42
+ --color-feedback-info-background: #dbeafe;
43
+ --color-feedback-info-border: #93c5fd;
44
+ --color-action-brand: #444ae1;
45
+ --color-action-brand-hover: #363ccb;
46
+ --color-action-brand-text: #ffffff;
47
+ --color-action-default: #333333;
48
+ --color-action-default-hover: #4b5563;
49
+ --color-action-default-text: #ffffff;
50
+ --color-skeleton-base: #e5e7eb;
51
+ --color-skeleton-highlight: #f3f4f6;
52
+ --color-skeleton-wave: rgba(255, 255, 255, 0.5);
53
+
54
+ color: #333333;
55
+ }
package/dist/styles.css CHANGED
@@ -1056,6 +1056,51 @@
1056
1056
  --color-state-importing-data: #3f6fc2;
1057
1057
  --color-state-exporting-data: #b97a19;
1058
1058
  }
1059
+ .theme-light {
1060
+ --color-background-body: #ffffff;
1061
+ --color-background-surface: #ffffff;
1062
+ --color-background-muted: #f3f4f6;
1063
+ --color-background-hover: #f3f4f6;
1064
+ --color-background-selected: #e5e7eb;
1065
+ --color-background-modal: rgba(0, 0, 0, 0.15);
1066
+ --color-background-input: #ffffff;
1067
+ --color-text-body: #333333;
1068
+ --color-text-heading: #111827;
1069
+ --color-text-muted: #4b5563;
1070
+ --color-text-caption: #6b7280;
1071
+ --color-text-subtle: #5f6873;
1072
+ --color-text-placeholder: #9ca3af;
1073
+ --color-text-disabled: #9ca3af;
1074
+ --color-text-link-default: #444ae1;
1075
+ --color-text-link-hover: #363ccb;
1076
+ --color-text-onPrimary: #ffffff;
1077
+ --color-border-default: #e5e7eb;
1078
+ --color-border-focus: #111827;
1079
+ --color-border-muted: #e5e7eb;
1080
+ --color-border-input: #d1d5db;
1081
+ --color-feedback-success-text: #065f46;
1082
+ --color-feedback-success-background: #d1fae5;
1083
+ --color-feedback-success-border: #10b981;
1084
+ --color-feedback-error-text: #b91c1c;
1085
+ --color-feedback-error-background: #fee2e2;
1086
+ --color-feedback-error-border: #ef4444;
1087
+ --color-feedback-warning-text: #92400e;
1088
+ --color-feedback-warning-background: #fef3c7;
1089
+ --color-feedback-warning-border: #f59e0b;
1090
+ --color-feedback-info-text: #2563eb;
1091
+ --color-feedback-info-background: #dbeafe;
1092
+ --color-feedback-info-border: #93c5fd;
1093
+ --color-action-brand: #444ae1;
1094
+ --color-action-brand-hover: #363ccb;
1095
+ --color-action-brand-text: #ffffff;
1096
+ --color-action-default: #333333;
1097
+ --color-action-default-hover: #4b5563;
1098
+ --color-action-default-text: #ffffff;
1099
+ --color-skeleton-base: #e5e7eb;
1100
+ --color-skeleton-highlight: #f3f4f6;
1101
+ --color-skeleton-wave: rgba(255, 255, 255, 0.5);
1102
+ color: #333333;
1103
+ }
1059
1104
  @keyframes wave {
1060
1105
  0% {
1061
1106
  transform: translateX(-100%);
@@ -1585,12 +1630,18 @@
1585
1630
  .top-2 {
1586
1631
  top: var(--spacing-2);
1587
1632
  }
1633
+ .top-3 {
1634
+ top: var(--spacing-3);
1635
+ }
1588
1636
  .top-4 {
1589
1637
  top: var(--spacing-4);
1590
1638
  }
1591
1639
  .top-5 {
1592
1640
  top: var(--spacing-5);
1593
1641
  }
1642
+ .top-6 {
1643
+ top: var(--spacing-6);
1644
+ }
1594
1645
  .top-12 {
1595
1646
  top: var(--spacing-12);
1596
1647
  }
@@ -1678,6 +1729,9 @@
1678
1729
  .left-4 {
1679
1730
  left: var(--spacing-4);
1680
1731
  }
1732
+ .left-5 {
1733
+ left: var(--spacing-5);
1734
+ }
1681
1735
  .left-6 {
1682
1736
  left: var(--spacing-6);
1683
1737
  }
@@ -2152,6 +2206,9 @@
2152
2206
  .min-h-\[200px\] {
2153
2207
  min-height: 200px;
2154
2208
  }
2209
+ .min-h-\[250px\] {
2210
+ min-height: 250px;
2211
+ }
2155
2212
  .min-h-\[280px\] {
2156
2213
  min-height: 280px;
2157
2214
  }
@@ -3855,12 +3912,18 @@
3855
3912
  .p-2 {
3856
3913
  padding: var(--spacing-2);
3857
3914
  }
3915
+ .p-2\.5 {
3916
+ padding: calc(var(--spacing) * 2.5);
3917
+ }
3858
3918
  .p-3 {
3859
3919
  padding: var(--spacing-3);
3860
3920
  }
3861
3921
  .p-4 {
3862
3922
  padding: var(--spacing-4);
3863
3923
  }
3924
+ .p-5 {
3925
+ padding: var(--spacing-5);
3926
+ }
3864
3927
  .p-6 {
3865
3928
  padding: var(--spacing-6);
3866
3929
  }
@@ -7779,28 +7842,94 @@
7779
7842
  line-height: var(--tw-leading, var(--text-sm--line-height));
7780
7843
  }
7781
7844
  }
7845
+ .\[\&_\.ProseMirror_h1\]\:mb-2 {
7846
+ & .ProseMirror h1 {
7847
+ margin-bottom: var(--spacing-2);
7848
+ }
7849
+ }
7782
7850
  .\[\&_\.ProseMirror_h1\]\:mb-4 {
7783
7851
  & .ProseMirror h1 {
7784
7852
  margin-bottom: var(--spacing-4);
7785
7853
  }
7786
7854
  }
7855
+ .\[\&_\.ProseMirror_h1\]\:mb-5 {
7856
+ & .ProseMirror h1 {
7857
+ margin-bottom: var(--spacing-5);
7858
+ }
7859
+ }
7860
+ .\[\&_\.ProseMirror_h1\]\:mb-6 {
7861
+ & .ProseMirror h1 {
7862
+ margin-bottom: var(--spacing-6);
7863
+ }
7864
+ }
7787
7865
  .\[\&_\.ProseMirror_h1\]\:text-2xl {
7788
7866
  & .ProseMirror h1 {
7789
7867
  font-size: var(--text-2xl);
7790
7868
  line-height: var(--tw-leading, var(--text-2xl--line-height));
7791
7869
  }
7792
7870
  }
7871
+ .\[\&_\.ProseMirror_h1\]\:text-3xl {
7872
+ & .ProseMirror h1 {
7873
+ font-size: var(--text-3xl);
7874
+ line-height: var(--tw-leading, var(--text-3xl--line-height));
7875
+ }
7876
+ }
7877
+ .\[\&_\.ProseMirror_h1\]\:text-4xl {
7878
+ & .ProseMirror h1 {
7879
+ font-size: var(--text-4xl);
7880
+ line-height: var(--tw-leading, var(--text-4xl--line-height));
7881
+ }
7882
+ }
7883
+ .\[\&_\.ProseMirror_h1\]\:text-base {
7884
+ & .ProseMirror h1 {
7885
+ font-size: var(--text-base);
7886
+ line-height: var(--tw-leading, var(--text-base--line-height));
7887
+ }
7888
+ }
7793
7889
  .\[\&_\.ProseMirror_h1\]\:font-bold {
7794
7890
  & .ProseMirror h1 {
7795
7891
  --tw-font-weight: var(--font-weight-bold);
7796
7892
  font-weight: var(--font-weight-bold);
7797
7893
  }
7798
7894
  }
7895
+ .\[\&_\.ProseMirror_h2\]\:mb-1\.5 {
7896
+ & .ProseMirror h2 {
7897
+ margin-bottom: calc(var(--spacing) * 1.5);
7898
+ }
7899
+ }
7799
7900
  .\[\&_\.ProseMirror_h2\]\:mb-3 {
7800
7901
  & .ProseMirror h2 {
7801
7902
  margin-bottom: var(--spacing-3);
7802
7903
  }
7803
7904
  }
7905
+ .\[\&_\.ProseMirror_h2\]\:mb-4 {
7906
+ & .ProseMirror h2 {
7907
+ margin-bottom: var(--spacing-4);
7908
+ }
7909
+ }
7910
+ .\[\&_\.ProseMirror_h2\]\:mb-5 {
7911
+ & .ProseMirror h2 {
7912
+ margin-bottom: var(--spacing-5);
7913
+ }
7914
+ }
7915
+ .\[\&_\.ProseMirror_h2\]\:text-2xl {
7916
+ & .ProseMirror h2 {
7917
+ font-size: var(--text-2xl);
7918
+ line-height: var(--tw-leading, var(--text-2xl--line-height));
7919
+ }
7920
+ }
7921
+ .\[\&_\.ProseMirror_h2\]\:text-3xl {
7922
+ & .ProseMirror h2 {
7923
+ font-size: var(--text-3xl);
7924
+ line-height: var(--tw-leading, var(--text-3xl--line-height));
7925
+ }
7926
+ }
7927
+ .\[\&_\.ProseMirror_h2\]\:text-sm {
7928
+ & .ProseMirror h2 {
7929
+ font-size: var(--text-sm);
7930
+ line-height: var(--tw-leading, var(--text-sm--line-height));
7931
+ }
7932
+ }
7804
7933
  .\[\&_\.ProseMirror_h2\]\:text-xl {
7805
7934
  & .ProseMirror h2 {
7806
7935
  font-size: var(--text-xl);
@@ -7818,31 +7947,76 @@
7818
7947
  border-color: var(--color-border-muted);
7819
7948
  }
7820
7949
  }
7950
+ .\[\&_\.ProseMirror_li\]\:mb-0\.5 {
7951
+ & .ProseMirror li {
7952
+ margin-bottom: calc(var(--spacing) * 0.5);
7953
+ }
7954
+ }
7821
7955
  .\[\&_\.ProseMirror_li\]\:mb-1 {
7822
7956
  & .ProseMirror li {
7823
7957
  margin-bottom: var(--spacing-1);
7824
7958
  }
7825
7959
  }
7960
+ .\[\&_\.ProseMirror_li\]\:mb-1\.5 {
7961
+ & .ProseMirror li {
7962
+ margin-bottom: calc(var(--spacing) * 1.5);
7963
+ }
7964
+ }
7965
+ .\[\&_\.ProseMirror_li\]\:mb-2 {
7966
+ & .ProseMirror li {
7967
+ margin-bottom: var(--spacing-2);
7968
+ }
7969
+ }
7970
+ .\[\&_\.ProseMirror_ol\]\:mb-1 {
7971
+ & .ProseMirror ol {
7972
+ margin-bottom: var(--spacing-1);
7973
+ }
7974
+ }
7826
7975
  .\[\&_\.ProseMirror_ol\]\:mb-2 {
7827
7976
  & .ProseMirror ol {
7828
7977
  margin-bottom: var(--spacing-2);
7829
7978
  }
7830
7979
  }
7980
+ .\[\&_\.ProseMirror_ol\]\:mb-3 {
7981
+ & .ProseMirror ol {
7982
+ margin-bottom: var(--spacing-3);
7983
+ }
7984
+ }
7985
+ .\[\&_\.ProseMirror_ol\]\:ml-4 {
7986
+ & .ProseMirror ol {
7987
+ margin-left: var(--spacing-4);
7988
+ }
7989
+ }
7831
7990
  .\[\&_\.ProseMirror_ol\]\:ml-6 {
7832
7991
  & .ProseMirror ol {
7833
7992
  margin-left: var(--spacing-6);
7834
7993
  }
7835
7994
  }
7995
+ .\[\&_\.ProseMirror_ol\]\:ml-8 {
7996
+ & .ProseMirror ol {
7997
+ margin-left: var(--spacing-8);
7998
+ }
7999
+ }
7836
8000
  .\[\&_\.ProseMirror_ol\]\:list-decimal {
7837
8001
  & .ProseMirror ol {
7838
8002
  list-style-type: decimal;
7839
8003
  }
7840
8004
  }
8005
+ .\[\&_\.ProseMirror_p\]\:mb-1 {
8006
+ & .ProseMirror p {
8007
+ margin-bottom: var(--spacing-1);
8008
+ }
8009
+ }
7841
8010
  .\[\&_\.ProseMirror_p\]\:mb-2 {
7842
8011
  & .ProseMirror p {
7843
8012
  margin-bottom: var(--spacing-2);
7844
8013
  }
7845
8014
  }
8015
+ .\[\&_\.ProseMirror_p\]\:mb-3 {
8016
+ & .ProseMirror p {
8017
+ margin-bottom: var(--spacing-3);
8018
+ }
8019
+ }
7846
8020
  .\[\&_\.ProseMirror_pre\]\:rounded-md {
7847
8021
  & .ProseMirror pre {
7848
8022
  border-radius: var(--radius-md);
@@ -7869,16 +8043,36 @@
7869
8043
  line-height: var(--tw-leading, var(--text-sm--line-height));
7870
8044
  }
7871
8045
  }
8046
+ .\[\&_\.ProseMirror_ul\]\:mb-1 {
8047
+ & .ProseMirror ul {
8048
+ margin-bottom: var(--spacing-1);
8049
+ }
8050
+ }
7872
8051
  .\[\&_\.ProseMirror_ul\]\:mb-2 {
7873
8052
  & .ProseMirror ul {
7874
8053
  margin-bottom: var(--spacing-2);
7875
8054
  }
7876
8055
  }
8056
+ .\[\&_\.ProseMirror_ul\]\:mb-3 {
8057
+ & .ProseMirror ul {
8058
+ margin-bottom: var(--spacing-3);
8059
+ }
8060
+ }
8061
+ .\[\&_\.ProseMirror_ul\]\:ml-4 {
8062
+ & .ProseMirror ul {
8063
+ margin-left: var(--spacing-4);
8064
+ }
8065
+ }
7877
8066
  .\[\&_\.ProseMirror_ul\]\:ml-6 {
7878
8067
  & .ProseMirror ul {
7879
8068
  margin-left: var(--spacing-6);
7880
8069
  }
7881
8070
  }
8071
+ .\[\&_\.ProseMirror_ul\]\:ml-8 {
8072
+ & .ProseMirror ul {
8073
+ margin-left: var(--spacing-8);
8074
+ }
8075
+ }
7882
8076
  .\[\&_\.ProseMirror_ul\]\:list-disc {
7883
8077
  & .ProseMirror ul {
7884
8078
  list-style-type: disc;
package/dist/theme.css CHANGED
@@ -23,6 +23,10 @@
23
23
  from the @theme block, so we load them separately in a plain :root block. */
24
24
  @import "./generated/viz-runtime.css";
25
25
 
26
+ /* Layer 1c: Light Theme Override
27
+ Allows forcing light-mode tokens on a subtree via .theme-light class */
28
+ @import "./styles/theme-light-override.css";
29
+
26
30
  /* Layer 2: Animation Features
27
31
  Keyframes and animation utilities that aren't design tokens */
28
32
  @import "./styles/animations.css";
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.28.1",
2
+ "version": "1.28.3",
3
3
  "categories": {
4
4
  "hooks": {
5
5
  "description": "React hooks for common functionality like breakpoints, debouncing, local storage, and media queries",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@texturehq/edges",
3
- "version": "1.28.1",
3
+ "version": "1.28.3",
4
4
  "author": "Nicholas Brown <nick@texturehq.com>",
5
5
  "description": "A shared component library for Texture",
6
6
  "type": "module",
@@ -15,6 +15,7 @@ try {
15
15
  "src/styles/computed.css",
16
16
  "src/styles/utilities.css",
17
17
  "src/styles/responsive-typography.css",
18
+ "src/styles/theme-light-override.css",
18
19
  ];
19
20
 
20
21
  // Create styles directory in dist