@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.
Files changed (31) hide show
  1. package/dist/components/Table/FromTanstack.d.ts +1 -4
  2. package/dist/components/Table/FromTanstack.d.ts.map +1 -1
  3. package/dist/components/Table/Table.d.ts +2 -10
  4. package/dist/components/Table/Table.d.ts.map +1 -1
  5. package/dist/components/Table/Table.stories.d.ts +1 -0
  6. package/dist/components/Table/Table.stories.d.ts.map +1 -1
  7. package/dist/components/Tag/Tag.d.ts +9 -1
  8. package/dist/components/Tag/Tag.d.ts.map +1 -1
  9. package/dist/components/Tag/Tag.stories.d.ts +1 -0
  10. package/dist/components/Tag/Tag.stories.d.ts.map +1 -1
  11. package/dist/components/Tag/styles.css.d.ts +7 -0
  12. package/dist/components/Tag/styles.css.d.ts.map +1 -1
  13. package/dist/components/VirtualTable/VirtualTable.d.ts +12 -1
  14. package/dist/components/VirtualTable/VirtualTable.d.ts.map +1 -1
  15. package/dist/components/VirtualTable/VirtualTable.stories.d.ts +1 -0
  16. package/dist/components/VirtualTable/VirtualTable.stories.d.ts.map +1 -1
  17. package/dist/components/VirtualTable/styles.css.d.ts +40 -0
  18. package/dist/components/VirtualTable/styles.css.d.ts.map +1 -1
  19. package/dist/index.css +1 -1
  20. package/dist/index.js +2189 -2090
  21. package/dist/index.js.map +1 -1
  22. package/package.json +2 -2
  23. package/src/components/Table/FromTanstack.tsx +0 -5
  24. package/src/components/Table/Table.stories.tsx +61 -4
  25. package/src/components/Table/Table.tsx +67 -22
  26. package/src/components/Tag/Tag.stories.tsx +22 -0
  27. package/src/components/Tag/Tag.tsx +10 -0
  28. package/src/components/Tag/styles.css.ts +12 -0
  29. package/src/components/VirtualTable/VirtualTable.stories.tsx +29 -0
  30. package/src/components/VirtualTable/VirtualTable.tsx +152 -58
  31. 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,