@texturehq/edges 1.3.1 → 1.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/styles.css CHANGED
@@ -62,8 +62,6 @@
62
62
  --color-brand-light: #f7f7ff;
63
63
  --color-brand-dark: #363ccb;
64
64
  --color-brand-background: #f6f7ff;
65
- --color-skeleton-base: #e5e7eb;
66
- --color-skeleton-highlight: #f3f4f6;
67
65
  --color-neutral-white: #ffffff;
68
66
  --color-neutral-black: #000000;
69
67
  --color-viz-default: #444ae1;
@@ -2346,6 +2344,9 @@
2346
2344
  .border-green-200 {
2347
2345
  border-color: var(--color-green-200);
2348
2346
  }
2347
+ .border-green-600 {
2348
+ border-color: var(--color-green-600);
2349
+ }
2349
2350
  .border-orange-200 {
2350
2351
  border-color: var(--color-orange-200);
2351
2352
  }
@@ -2445,6 +2446,12 @@
2445
2446
  background-color: color-mix(in oklab, var(--color-background-surface) 80%, transparent);
2446
2447
  }
2447
2448
  }
2449
+ .bg-background-surface\/90 {
2450
+ background-color: color-mix(in srgb, #ffffff 90%, transparent);
2451
+ @supports (color: color-mix(in lab, red, red)) {
2452
+ background-color: color-mix(in oklab, var(--color-background-surface) 90%, transparent);
2453
+ }
2454
+ }
2448
2455
  .bg-black\/50 {
2449
2456
  background-color: color-mix(in srgb, #000000 50%, transparent);
2450
2457
  @supports (color: color-mix(in lab, red, red)) {
@@ -2535,6 +2542,9 @@
2535
2542
  .bg-green-500 {
2536
2543
  background-color: var(--color-green-500);
2537
2544
  }
2545
+ .bg-green-600 {
2546
+ background-color: var(--color-green-600);
2547
+ }
2538
2548
  .bg-inherit {
2539
2549
  background-color: inherit;
2540
2550
  }
@@ -2789,6 +2799,9 @@
2789
2799
  .py-12 {
2790
2800
  padding-block: var(--spacing-12);
2791
2801
  }
2802
+ .pt-1 {
2803
+ padding-top: var(--spacing-1);
2804
+ }
2792
2805
  .pt-3 {
2793
2806
  padding-top: var(--spacing-3);
2794
2807
  }
@@ -3071,6 +3084,9 @@
3071
3084
  .text-green-800 {
3072
3085
  color: var(--color-green-800);
3073
3086
  }
3087
+ .text-green-900 {
3088
+ color: var(--color-green-900);
3089
+ }
3074
3090
  .text-inherit {
3075
3091
  color: inherit;
3076
3092
  }
@@ -3796,6 +3812,13 @@
3796
3812
  }
3797
3813
  }
3798
3814
  }
3815
+ .hover\:bg-gray-50 {
3816
+ &:hover {
3817
+ @media (hover: hover) {
3818
+ background-color: var(--color-gray-50);
3819
+ }
3820
+ }
3821
+ }
3799
3822
  .hover\:bg-gray-100 {
3800
3823
  &:hover {
3801
3824
  @media (hover: hover) {
@@ -3939,13 +3962,6 @@
3939
3962
  }
3940
3963
  }
3941
3964
  }
3942
- .hover\:opacity-90 {
3943
- &:hover {
3944
- @media (hover: hover) {
3945
- opacity: 90%;
3946
- }
3947
- }
3948
- }
3949
3965
  .hover\:opacity-100 {
3950
3966
  &:hover {
3951
3967
  @media (hover: hover) {
@@ -1,10 +1,36 @@
1
1
  {
2
- "version": "1.3.1",
3
- "generatedAt": "2025-10-09T16:15:03.889Z",
2
+ "version": "1.5.0",
3
+ "generatedAt": "2025-10-09T19:04:07.680Z",
4
4
  "categories": {
5
5
  "hooks": {
6
6
  "description": "React hooks for common functionality like debouncing, local storage, and time controls",
7
7
  "utilities": [
8
+ {
9
+ "name": "Breakpoint",
10
+ "type": "type",
11
+ "description": "",
12
+ "example": null,
13
+ "category": "hooks",
14
+ "file": "hooks/useBreakpoint.ts"
15
+ },
16
+ {
17
+ "name": "BREAKPOINTS",
18
+ "type": "constant",
19
+ "description": "Tailwind CSS default breakpoints These match the standard Tailwind breakpoints used in your CSS",
20
+ "params": [],
21
+ "returns": null,
22
+ "example": null,
23
+ "category": "hooks",
24
+ "file": "hooks/useBreakpoint.ts"
25
+ },
26
+ {
27
+ "name": "BreakpointState",
28
+ "type": "type",
29
+ "description": "",
30
+ "example": null,
31
+ "category": "hooks",
32
+ "file": "hooks/useBreakpoint.ts"
33
+ },
8
34
  {
9
35
  "name": "handleChartExport",
10
36
  "type": "function",
@@ -23,6 +49,33 @@
23
49
  "category": "hooks",
24
50
  "file": "hooks/useTimeControls.ts"
25
51
  },
52
+ {
53
+ "name": "useBreakpoint",
54
+ "type": "function",
55
+ "description": "Hook to detect which Tailwind breakpoint is currently active Returns an object with boolean flags for each breakpoint and convenience helpers. All breakpoints use min-width queries to match Tailwind's mobile-first approach. ```tsx const { isMobile, isDesktop, current } = useBreakpoint(); // Conditional rendering based on screen size return isMobile ? <MobileNav /> : <DesktopNav />; // Check specific breakpoint if (isLg) { // Show expanded view on large screens } // Use current breakpoint console.log(`Current breakpoint: ${current}`); // \"md\", \"lg\", etc. ```",
56
+ "params": [
57
+ {
58
+ "name": "defaultBreakpoint",
59
+ "type": "unknown",
60
+ "description": "The breakpoint to assume during SSR or before first render (defaults to \"base\" for mobile-first)"
61
+ }
62
+ ],
63
+ "returns": {
64
+ "type": "unknown",
65
+ "description": "An object containing breakpoint state information"
66
+ },
67
+ "example": "const { isMobile, isDesktop, current } = useBreakpoint();\n\n// Conditional rendering based on screen size\nreturn isMobile ? <MobileNav /> : <DesktopNav />;\n\n// Check specific breakpoint\nif (isLg) {\n // Show expanded view on large screens\n}\n\n// Use current breakpoint\nconsole.log(`Current breakpoint: ${current}`); // \"md\", \"lg\", etc.",
68
+ "category": "hooks",
69
+ "file": "hooks/useBreakpoint.ts"
70
+ },
71
+ {
72
+ "name": "UseBreakpointReturn",
73
+ "type": "type",
74
+ "description": "Public return type alias for useBreakpoint hook Provides a stable public API for barrel re-exports",
75
+ "example": null,
76
+ "category": "hooks",
77
+ "file": "hooks/useBreakpoint.ts"
78
+ },
26
79
  {
27
80
  "name": "useDebounce",
28
81
  "type": "function",
@@ -57,6 +110,30 @@
57
110
  "category": "hooks",
58
111
  "file": "hooks/useLocalStorage.ts"
59
112
  },
113
+ {
114
+ "name": "useMediaQuery",
115
+ "type": "function",
116
+ "description": "Hook to check if a media query matches the current viewport ```tsx const isMobile = useMediaQuery('(max-width: 767px)'); const prefersReducedMotion = useMediaQuery('(prefers-reduced-motion: reduce)'); const isLandscape = useMediaQuery('(orientation: landscape)'); ```",
117
+ "params": [
118
+ {
119
+ "name": "query",
120
+ "type": "unknown",
121
+ "description": "A CSS media query string (e.g., \"(min-width: 768px)\")"
122
+ },
123
+ {
124
+ "name": "defaultValue",
125
+ "type": "unknown",
126
+ "description": "The default value to return during SSR or before the first render"
127
+ }
128
+ ],
129
+ "returns": {
130
+ "type": "unknown",
131
+ "description": "A boolean indicating whether the media query matches"
132
+ },
133
+ "example": "const isMobile = useMediaQuery('(max-width: 767px)');\nconst prefersReducedMotion = useMediaQuery('(prefers-reduced-motion: reduce)');\nconst isLandscape = useMediaQuery('(orientation: landscape)');",
134
+ "category": "hooks",
135
+ "file": "hooks/useMediaQuery.ts"
136
+ },
60
137
  {
61
138
  "name": "useTimeControls",
62
139
  "type": "function",
@@ -1984,6 +2061,14 @@
1984
2061
  "category": "colors",
1985
2062
  "file": "utils/colors.ts"
1986
2063
  },
2064
+ {
2065
+ "name": "MapboxExpression",
2066
+ "type": "type",
2067
+ "description": "Type for Mapbox GL JS expressions Represents nested array structures used by Mapbox for data-driven styling",
2068
+ "example": null,
2069
+ "category": "colors",
2070
+ "file": "utils/colors.ts"
2071
+ },
1987
2072
  {
1988
2073
  "name": "mapValuesToCategoricalColors",
1989
2074
  "type": "constant",
@@ -2033,12 +2118,12 @@
2033
2118
  }
2034
2119
  },
2035
2120
  "summary": {
2036
- "totalUtilities": 201,
2121
+ "totalUtilities": 208,
2037
2122
  "totalCategories": 5,
2038
2123
  "categories": [
2039
2124
  {
2040
2125
  "name": "hooks",
2041
- "count": 5
2126
+ "count": 11
2042
2127
  },
2043
2128
  {
2044
2129
  "name": "formatting",
@@ -2050,7 +2135,7 @@
2050
2135
  },
2051
2136
  {
2052
2137
  "name": "colors",
2053
- "count": 20
2138
+ "count": 21
2054
2139
  },
2055
2140
  {
2056
2141
  "name": "general",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@texturehq/edges",
3
- "version": "1.3.1",
3
+ "version": "1.5.0",
4
4
  "author": "Nicholas Brown <nick@texturehq.com>",
5
5
  "description": "A shared component library for Texture",
6
6
  "type": "module",
Binary file
Binary file
Binary file
Binary file
Binary file