@fragments-sdk/ui 0.7.2 → 0.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fragments-sdk/ui",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Customizable UI components built on Base UI headless primitives",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -50,7 +50,7 @@
50
50
  "react-dom": "^19.0.0",
51
51
  "sass": "^1.83.0",
52
52
  "typescript": "^5.7.0",
53
- "@fragments-sdk/cli": "0.5.1"
53
+ "@fragments-sdk/cli": "0.5.2"
54
54
  },
55
55
  "files": [
56
56
  "src",
@@ -4,15 +4,19 @@
4
4
  .accordion {
5
5
  font-family: var(--fui-font-sans, $fui-font-sans);
6
6
  width: 100%;
7
- }
8
7
 
9
- .item {
10
- border-bottom: 1px solid var(--fui-border, $fui-border);
8
+ // Borders target direct children (BaseCollapsible.Root wrappers)
9
+ // so :first-child/:last-child selectors work correctly
10
+ > * {
11
+ border-bottom: 1px solid var(--fui-border, $fui-border);
11
12
 
12
- &:first-child {
13
- border-top: 1px solid var(--fui-border, $fui-border);
13
+ &:last-child {
14
+ border-bottom: none;
15
+ }
14
16
  }
17
+ }
15
18
 
19
+ .item {
16
20
  &[data-disabled] {
17
21
  opacity: 0.5;
18
22
  pointer-events: none;
@@ -34,7 +38,7 @@
34
38
  align-items: center;
35
39
  justify-content: space-between;
36
40
  width: 100%;
37
- padding: var(--fui-padding-item-md, $fui-padding-item-md) 0;
41
+ padding: var(--fui-padding-item-xs, $fui-padding-item-xs) 0;
38
42
  font-size: var(--fui-font-size-sm, $fui-font-size-sm);
39
43
  font-weight: var(--fui-font-weight-medium, $fui-font-weight-medium);
40
44
  color: var(--fui-text-primary, $fui-text-primary);
@@ -87,7 +91,7 @@
87
91
  }
88
92
 
89
93
  .contentInner {
90
- padding-bottom: var(--fui-padding-item-md, $fui-padding-item-md);
94
+ padding-bottom: var(--fui-padding-item-xs, $fui-padding-item-xs);
91
95
  font-size: var(--fui-font-size-sm, $fui-font-size-sm);
92
96
  color: var(--fui-text-secondary, $fui-text-secondary);
93
97
  line-height: var(--fui-line-height-normal, $fui-line-height-normal);
@@ -9,7 +9,7 @@
9
9
  display: flex;
10
10
  align-items: center;
11
11
  width: 100%;
12
- padding: var(--fui-space-2, $fui-space-2);
12
+ padding: var(--fui-padding-item-xs);
13
13
  background: transparent;
14
14
  border: none;
15
15
  border-radius: var(--fui-radius-md, $fui-radius-md);
@@ -176,7 +176,7 @@
176
176
  var(--fui-space-1, #{$fui-space-1}) * 2
177
177
  ) !important;
178
178
  overflow-y: auto !important;
179
- padding: var(--fui-space-1, $fui-space-1);
179
+ padding: var(--fui-padding-item-xs, $fui-padding-item-xs);
180
180
  box-shadow: var(--fui-shadow-md, $fui-shadow-md);
181
181
 
182
182
  // Animation
@@ -208,7 +208,7 @@
208
208
  align-items: center;
209
209
  gap: var(--fui-space-2, $fui-space-2);
210
210
  width: 100%;
211
- padding: var(--fui-space-2, $fui-space-2) var(--fui-space-3, $fui-space-3);
211
+ padding: var(--fui-padding-item-xs, $fui-padding-item-xs) var(--fui-padding-item-md, $fui-padding-item-md);
212
212
  border-radius: var(--fui-radius-sm, $fui-radius-sm);
213
213
  cursor: pointer;
214
214
  outline: none;
@@ -254,7 +254,7 @@
254
254
  display: flex;
255
255
  align-items: center;
256
256
  justify-content: center;
257
- padding: var(--fui-space-4, $fui-space-4) var(--fui-space-3, $fui-space-3);
257
+ padding: var(--fui-padding-item-lg, $fui-padding-item-lg) var(--fui-padding-item-md, $fui-padding-item-md);
258
258
  color: var(--fui-text-tertiary, $fui-text-tertiary);
259
259
  font-size: var(--fui-font-size-sm, $fui-font-size-sm);
260
260
  }
@@ -270,7 +270,7 @@
270
270
 
271
271
  // Group label
272
272
  .groupLabel {
273
- padding: var(--fui-space-1, $fui-space-1) var(--fui-space-3, $fui-space-3);
273
+ padding: var(--fui-padding-item-xs, $fui-padding-item-xs) var(--fui-padding-item-md, $fui-padding-item-md);
274
274
  font-size: var(--fui-font-size-xs, $fui-font-size-xs);
275
275
  font-weight: var(--fui-font-weight-medium, $fui-font-weight-medium);
276
276
  color: var(--fui-text-tertiary, $fui-text-tertiary);
@@ -92,7 +92,7 @@
92
92
 
93
93
  // Header area
94
94
  .header {
95
- padding: var(--fui-padding-container-md, $fui-padding-container-md) var(--fui-padding-container-lg, $fui-padding-container-lg);
95
+ padding: var(--fui-padding-container-sm, $fui-padding-container-sm) var(--fui-padding-container-md, $fui-padding-container-md);
96
96
  }
97
97
 
98
98
  // Title
@@ -114,7 +114,7 @@
114
114
 
115
115
  // Body content
116
116
  .body {
117
- padding: 0 var(--fui-padding-container-lg, $fui-padding-container-lg) var(--fui-padding-container-md, $fui-padding-container-md);
117
+ padding: 0 var(--fui-padding-container-md, $fui-padding-container-md) var(--fui-padding-container-sm, $fui-padding-container-sm);
118
118
  }
119
119
 
120
120
  // Footer for actions
@@ -122,8 +122,8 @@
122
122
  display: flex;
123
123
  align-items: center;
124
124
  justify-content: flex-end;
125
- gap: var(--fui-space-3, $fui-space-3);
126
- padding: var(--fui-padding-container-sm, $fui-padding-container-sm) var(--fui-padding-container-lg, $fui-padding-container-lg);
125
+ gap: var(--fui-space-1, $fui-space-1);
126
+ padding: var(--fui-padding-inline-sm, $fui-padding-inline-sm) var(--fui-padding-container-md, $fui-padding-container-md);
127
127
  border-top: 1px solid var(--fui-border, $fui-border);
128
128
  background-color: var(--fui-bg-secondary, $fui-bg-secondary);
129
129
  border-radius: 0 0 var(--fui-radius-lg, $fui-radius-lg) var(--fui-radius-lg, $fui-radius-lg);
@@ -8,7 +8,7 @@
8
8
  @include surface-elevated;
9
9
 
10
10
  min-width: 12rem;
11
- padding: var(--fui-space-1, 0.25rem);
11
+ padding: var(--fui-padding-item-xs, 0.25rem);
12
12
  box-shadow: var(--fui-shadow-lg);
13
13
  max-height: 320px;
14
14
  overflow-y: auto;
@@ -26,7 +26,7 @@
26
26
  align-items: center;
27
27
  gap: var(--fui-space-2, 0.5rem);
28
28
  width: 100%;
29
- padding: var(--fui-space-2, 0.5rem) var(--fui-space-3, 0.75rem);
29
+ padding: var(--fui-padding-item-xs, 0.25rem) var(--fui-padding-item-md, 0.75rem);
30
30
  border-radius: var(--fui-radius-sm, 0.25rem);
31
31
  cursor: pointer;
32
32
  outline: none;
@@ -64,7 +64,7 @@
64
64
  }
65
65
 
66
66
  .groupLabel {
67
- padding: var(--fui-space-1, 0.25rem) var(--fui-space-3, 0.75rem);
67
+ padding: var(--fui-padding-item-xs, 0.25rem) var(--fui-padding-item-md, 0.75rem);
68
68
  font-size: var(--fui-font-size-xs, 0.75rem);
69
69
  font-weight: var(--fui-font-weight-medium, 500);
70
70
  color: var(--fui-text-tertiary);
@@ -75,7 +75,7 @@
75
75
  // ============================================
76
76
 
77
77
  .empty {
78
- padding: var(--fui-space-3, 0.75rem);
78
+ padding: var(--fui-padding-item-md, 0.75rem);
79
79
  font-size: var(--fui-font-size-sm, 0.875rem);
80
80
  color: var(--fui-text-secondary);
81
81
  text-align: center;
@@ -96,7 +96,7 @@
96
96
  var(--fui-space-1, #{$fui-space-1}) * 2
97
97
  ) !important;
98
98
  overflow-y: auto !important;
99
- padding: var(--fui-space-1, $fui-space-1);
99
+ padding: var(--fui-padding-item-xs, $fui-padding-item-xs);
100
100
  box-shadow: var(--fui-shadow-md, $fui-shadow-md);
101
101
 
102
102
  // Animation
@@ -128,7 +128,7 @@
128
128
  align-items: center;
129
129
  gap: var(--fui-space-2, $fui-space-2);
130
130
  width: 100%;
131
- padding: var(--fui-space-2, $fui-space-2) var(--fui-space-3, $fui-space-3);
131
+ padding: var(--fui-padding-item-xs, $fui-padding-item-xs) var(--fui-padding-item-md, $fui-padding-item-md);
132
132
  border-radius: var(--fui-radius-sm, $fui-radius-sm);
133
133
  cursor: pointer;
134
134
  outline: none;
@@ -178,7 +178,7 @@
178
178
 
179
179
  // Group label
180
180
  .groupLabel {
181
- padding: var(--fui-space-1, $fui-space-1) var(--fui-space-3, $fui-space-3);
181
+ padding: var(--fui-padding-item-xs, $fui-padding-item-xs) var(--fui-padding-item-md, $fui-padding-item-md);
182
182
  font-size: var(--fui-font-size-xs, $fui-font-size-xs);
183
183
  font-weight: var(--fui-font-weight-medium, $fui-font-weight-medium);
184
184
  color: var(--fui-text-tertiary, $fui-text-tertiary);
@@ -33,7 +33,7 @@
33
33
  .sm {
34
34
  .th,
35
35
  .td {
36
- padding: var(--fui-space-1, $fui-space-1) var(--fui-space-3, $fui-space-3);
36
+ padding: var(--fui-padding-item-xs, $fui-padding-item-xs) var(--fui-padding-item-md, $fui-padding-item-md);
37
37
  font-size: var(--fui-font-size-xs, $fui-font-size-xs);
38
38
  }
39
39
  }
@@ -41,7 +41,7 @@
41
41
  .md {
42
42
  .th,
43
43
  .td {
44
- padding: var(--fui-space-2, $fui-space-2) var(--fui-space-3, $fui-space-3);
44
+ padding: var(--fui-padding-item-xs, $fui-padding-item-xs) var(--fui-padding-item-md, $fui-padding-item-md);
45
45
  font-size: var(--fui-font-size-sm, $fui-font-size-sm);
46
46
  }
47
47
  }
@@ -51,7 +51,6 @@
51
51
  position: sticky;
52
52
  top: 0;
53
53
  z-index: 1;
54
- background-color: var(--fui-bg-tertiary, $fui-bg-tertiary);
55
54
  }
56
55
 
57
56
  .headerRow {
@@ -112,9 +111,7 @@
112
111
  }
113
112
 
114
113
  // Body
115
- .tbody {
116
- background-color: var(--fui-bg-primary, $fui-bg-primary);
117
- }
114
+ .tbody {}
118
115
 
119
116
  .row {
120
117
  border-bottom: 1px solid var(--fui-border, $fui-border);
@@ -123,6 +120,10 @@
123
120
  &:last-child {
124
121
  border-bottom: none;
125
122
  }
123
+
124
+ &:hover {
125
+ background-color: var(--fui-bg-hover, $fui-bg-hover);
126
+ }
126
127
  }
127
128
 
128
129
  .clickable {
@@ -55,7 +55,7 @@
55
55
  align-items: center;
56
56
  justify-content: center;
57
57
  gap: var(--fui-space-2, $fui-space-2);
58
- padding: var(--fui-padding-item-sm, $fui-padding-item-sm) var(--fui-padding-item-md, $fui-padding-item-md);
58
+ padding: var(--fui-padding-item-xs, $fui-padding-item-xs) var(--fui-padding-item-md, $fui-padding-item-md);
59
59
  font-size: var(--fui-font-size-sm, $fui-font-size-sm);
60
60
  font-weight: var(--fui-font-weight-medium, $fui-font-weight-medium);
61
61
  color: var(--fui-text-secondary, $fui-text-secondary);
@@ -80,7 +80,7 @@
80
80
  .tabUnderline {
81
81
  border-radius: 0;
82
82
  margin-bottom: -1px;
83
- padding-bottom: calc(var(--fui-padding-item-sm, $fui-padding-item-sm) + 1px);
83
+ padding-bottom: calc(var(--fui-padding-item-xs, $fui-padding-item-xs) + 1px);
84
84
 
85
85
  &:hover:not([data-disabled]) {
86
86
  background-color: transparent;
@@ -91,8 +91,6 @@
91
91
  .tabPills {
92
92
  border-radius: var(--fui-radius-md, $fui-radius-md);
93
93
  transition: all 0.15s ease;
94
- padding: var(--fui-space-1-5, 6px) var(--fui-space-3, $fui-space-3);
95
- font-size: var(--fui-font-size-sm, $fui-font-size-sm);
96
94
 
97
95
  &:hover:not([data-disabled]):not([data-active]) {
98
96
  background-color: transparent;