@duro-app/ui 0.45.0 → 0.46.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/components/Table/FromTanstack.d.ts +1 -4
- package/dist/components/Table/FromTanstack.d.ts.map +1 -1
- package/dist/components/Table/Table.d.ts +2 -10
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.stories.d.ts +1 -0
- package/dist/components/Table/Table.stories.d.ts.map +1 -1
- package/dist/components/Tag/Tag.d.ts +9 -1
- package/dist/components/Tag/Tag.d.ts.map +1 -1
- package/dist/components/Tag/Tag.stories.d.ts +1 -0
- package/dist/components/Tag/Tag.stories.d.ts.map +1 -1
- package/dist/components/Tag/styles.css.d.ts +7 -0
- package/dist/components/Tag/styles.css.d.ts.map +1 -1
- package/dist/components/VirtualTable/VirtualTable.d.ts +12 -1
- package/dist/components/VirtualTable/VirtualTable.d.ts.map +1 -1
- package/dist/components/VirtualTable/VirtualTable.stories.d.ts +1 -0
- package/dist/components/VirtualTable/VirtualTable.stories.d.ts.map +1 -1
- package/dist/components/VirtualTable/styles.css.d.ts +40 -0
- package/dist/components/VirtualTable/styles.css.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +2189 -2090
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Table/FromTanstack.tsx +0 -5
- package/src/components/Table/Table.stories.tsx +61 -4
- package/src/components/Table/Table.tsx +67 -22
- package/src/components/Tag/Tag.stories.tsx +22 -0
- package/src/components/Tag/Tag.tsx +10 -0
- package/src/components/Tag/styles.css.ts +12 -0
- package/src/components/VirtualTable/VirtualTable.stories.tsx +29 -0
- package/src/components/VirtualTable/VirtualTable.tsx +152 -58
- package/src/components/VirtualTable/styles.css.ts +43 -0
|
@@ -105,6 +105,49 @@ export const styles = css.create({
|
|
|
105
105
|
flexBasis: 0,
|
|
106
106
|
minWidth: 0,
|
|
107
107
|
}),
|
|
108
|
+
// --- Stack (card) mode: narrow containers ---
|
|
109
|
+
// The scroll frame drops its border/background so each row card stands on
|
|
110
|
+
// its own; windowing is off in this mode so no capped viewport.
|
|
111
|
+
stackScroll: {
|
|
112
|
+
position: 'relative',
|
|
113
|
+
width: '100%',
|
|
114
|
+
backgroundColor: 'transparent',
|
|
115
|
+
},
|
|
116
|
+
stackBody: {
|
|
117
|
+
display: 'flex',
|
|
118
|
+
flexDirection: 'column',
|
|
119
|
+
gap: spacing.sm,
|
|
120
|
+
},
|
|
121
|
+
stackRow: {
|
|
122
|
+
display: 'flex',
|
|
123
|
+
flexDirection: 'column',
|
|
124
|
+
gap: spacing.xs,
|
|
125
|
+
width: '100%',
|
|
126
|
+
padding: spacing.sm,
|
|
127
|
+
borderWidth: 1,
|
|
128
|
+
borderStyle: 'solid',
|
|
129
|
+
borderColor: colors.border,
|
|
130
|
+
borderRadius: radii.sm,
|
|
131
|
+
backgroundColor: colors.bgCard,
|
|
132
|
+
},
|
|
133
|
+
stackCell: {
|
|
134
|
+
display: 'grid',
|
|
135
|
+
gridTemplateColumns: '1fr 2fr',
|
|
136
|
+
gap: spacing.sm,
|
|
137
|
+
alignItems: 'center',
|
|
138
|
+
fontFamily: typography.fontFamily,
|
|
139
|
+
fontSize: typography.fontSizeSm,
|
|
140
|
+
color: colors.text,
|
|
141
|
+
},
|
|
142
|
+
stackCellLabel: {
|
|
143
|
+
color: colors.textMuted,
|
|
144
|
+
fontWeight: typography.fontWeightMedium,
|
|
145
|
+
fontSize: typography.fontSizeXs,
|
|
146
|
+
},
|
|
147
|
+
stackCellValue: {
|
|
148
|
+
minWidth: 0,
|
|
149
|
+
overflowWrap: 'break-word',
|
|
150
|
+
},
|
|
108
151
|
empty: {
|
|
109
152
|
paddingTop: spacing.xl,
|
|
110
153
|
paddingBottom: spacing.xl,
|