@duro-app/ui 5.34.1 → 5.34.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": "@duro-app/ui",
3
- "version": "5.34.1",
3
+ "version": "5.34.3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -92,7 +92,7 @@
92
92
  "dependencies": {
93
93
  "@tanstack/react-virtual": "^3.14.13",
94
94
  "qrcode": "^1.5.4",
95
- "@duro-app/tokens": "^5.34.1"
95
+ "@duro-app/tokens": "^5.34.3"
96
96
  },
97
97
  "devDependencies": {
98
98
  "@babel/preset-typescript": "^7.28.0",
@@ -3,7 +3,8 @@ import {html} from 'react-strict-dom'
3
3
  import {styles} from './styles.css'
4
4
 
5
5
  export type CardVariant = 'elevated' | 'outlined' | 'filled' | 'interactive'
6
- export type CardSize = 'default' | 'compact' | 'full'
6
+ /** `flush`: no padding, the content reaching the card's rounded edge (a List of rows). */
7
+ export type CardSize = 'default' | 'compact' | 'full' | 'flush'
7
8
 
8
9
  interface CardProps {
9
10
  variant?: CardVariant
@@ -17,6 +18,7 @@ const sizeMap = {
17
18
  default: styles.sizeDefault,
18
19
  compact: styles.sizeCompact,
19
20
  full: styles.sizeFull,
21
+ flush: styles.sizeFlush,
20
22
  } as const
21
23
 
22
24
  export function Card({
@@ -65,6 +65,11 @@ export const styles = css.create({
65
65
  sizeFull: {
66
66
  padding: spacing.xl,
67
67
  },
68
+ // Rows reach the edge; the rounded corners clip them.
69
+ sizeFlush: {
70
+ padding: 0,
71
+ overflow: 'hidden',
72
+ },
68
73
  // Header
69
74
  header: {
70
75
  fontSize: typography.fontSizeLg,
@@ -2,6 +2,7 @@ import type {Meta, StoryObj} from '@storybook/react'
2
2
  import {css, html} from 'react-strict-dom'
3
3
  import {Icon} from './Icon'
4
4
  import type {IconName} from './Icon'
5
+ import {PHOSPHOR_GLYPHS} from './phosphor-glyphs'
5
6
  import {spacing} from '@duro-app/tokens/tokens/spacing.css'
6
7
  import {colors} from '@duro-app/tokens/tokens/colors.css'
7
8
  import {typography} from '@duro-app/tokens/tokens/typography.css'
@@ -69,6 +70,11 @@ const groups: ReadonlyArray<{title: string; names: readonly IconName[]}> = [
69
70
  'lock-filled',
70
71
  ],
71
72
  },
73
+ // Generated from @phosphor-icons/core (scripts/generate-phosphor-icons.mjs), alphabetical.
74
+ {
75
+ title: 'Phosphor',
76
+ names: (Object.keys(PHOSPHOR_GLYPHS) as IconName[]).sort(),
77
+ },
72
78
  ]
73
79
 
74
80
  const styles = css.create({