@texturehq/edges 1.3.1 → 1.4.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
@@ -2346,6 +2346,9 @@
2346
2346
  .border-green-200 {
2347
2347
  border-color: var(--color-green-200);
2348
2348
  }
2349
+ .border-green-600 {
2350
+ border-color: var(--color-green-600);
2351
+ }
2349
2352
  .border-orange-200 {
2350
2353
  border-color: var(--color-orange-200);
2351
2354
  }
@@ -2535,6 +2538,9 @@
2535
2538
  .bg-green-500 {
2536
2539
  background-color: var(--color-green-500);
2537
2540
  }
2541
+ .bg-green-600 {
2542
+ background-color: var(--color-green-600);
2543
+ }
2538
2544
  .bg-inherit {
2539
2545
  background-color: inherit;
2540
2546
  }
@@ -3071,6 +3077,9 @@
3071
3077
  .text-green-800 {
3072
3078
  color: var(--color-green-800);
3073
3079
  }
3080
+ .text-green-900 {
3081
+ color: var(--color-green-900);
3082
+ }
3074
3083
  .text-inherit {
3075
3084
  color: inherit;
3076
3085
  }
@@ -1,10 +1,36 @@
1
1
  {
2
- "version": "1.3.1",
3
- "generatedAt": "2025-10-09T16:15:03.889Z",
2
+ "version": "1.4.0",
3
+ "generatedAt": "2025-10-09T18:20:15.870Z",
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",
@@ -2033,12 +2110,12 @@
2033
2110
  }
2034
2111
  },
2035
2112
  "summary": {
2036
- "totalUtilities": 201,
2113
+ "totalUtilities": 207,
2037
2114
  "totalCategories": 5,
2038
2115
  "categories": [
2039
2116
  {
2040
2117
  "name": "hooks",
2041
- "count": 5
2118
+ "count": 11
2042
2119
  },
2043
2120
  {
2044
2121
  "name": "formatting",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@texturehq/edges",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "author": "Nicholas Brown <nick@texturehq.com>",
5
5
  "description": "A shared component library for Texture",
6
6
  "type": "module",