@duro-app/ui 0.25.0 → 0.27.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/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.meta.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.stories.d.ts.map +1 -1
- package/dist/components/Field/Field.d.ts.map +1 -1
- package/dist/components/Field/Field.stories.d.ts.map +1 -1
- package/dist/components/Form/Form.d.ts.map +1 -1
- package/dist/components/ScrollArea/ScrollArea.d.ts.map +1 -1
- package/dist/components/ScrollArea/ScrollAreaContext.d.ts +1 -0
- package/dist/components/ScrollArea/ScrollAreaContext.d.ts.map +1 -1
- package/dist/components/ScrollArea/useScrollAreaRoot.d.ts.map +1 -1
- package/dist/components/Table/Table.stories.d.ts.map +1 -1
- package/dist/components/Tag/Tag.d.ts +18 -0
- package/dist/components/Tag/Tag.d.ts.map +1 -0
- package/dist/components/Tag/Tag.meta.d.ts +3 -0
- package/dist/components/Tag/Tag.meta.d.ts.map +1 -0
- package/dist/components/Tag/Tag.stories.d.ts +11 -0
- package/dist/components/Tag/Tag.stories.d.ts.map +1 -0
- package/dist/components/Tag/styles.css.d.ts +82 -0
- package/dist/components/Tag/styles.css.d.ts.map +1 -0
- package/dist/components/TagGroup/TagGroup.d.ts +30 -0
- package/dist/components/TagGroup/TagGroup.d.ts.map +1 -0
- package/dist/components/TagGroup/TagGroup.meta.d.ts +3 -0
- package/dist/components/TagGroup/TagGroup.meta.d.ts.map +1 -0
- package/dist/components/TagGroup/TagGroup.stories.d.ts +11 -0
- package/dist/components/TagGroup/TagGroup.stories.d.ts.map +1 -0
- package/dist/components/TagGroup/TagGroupContext.d.ts +17 -0
- package/dist/components/TagGroup/TagGroupContext.d.ts.map +1 -0
- package/dist/components/TagGroup/styles.css.d.ts +61 -0
- package/dist/components/TagGroup/styles.css.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2479 -2128
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/CheckboxGroup/CheckboxGroup.tsx +0 -1
- package/src/components/Combobox/Combobox.meta.ts +8 -2
- package/src/components/Combobox/Combobox.stories.tsx +52 -14
- package/src/components/Combobox/Combobox.tsx +3 -15
- package/src/components/Field/Field.stories.tsx +3 -1
- package/src/components/Field/Field.tsx +1 -4
- package/src/components/Field/styles.css.ts +1 -1
- package/src/components/Form/Form.tsx +1 -5
- package/src/components/ScrollArea/ScrollArea.tsx +27 -3
- package/src/components/ScrollArea/ScrollAreaContext.ts +1 -0
- package/src/components/ScrollArea/useScrollAreaRoot.ts +3 -1
- package/src/components/Table/Table.stories.tsx +66 -11
- package/src/components/Tag/Tag.meta.ts +22 -0
- package/src/components/Tag/Tag.stories.tsx +92 -0
- package/src/components/Tag/Tag.tsx +141 -0
- package/src/components/Tag/styles.css.ts +104 -0
- package/src/components/TagGroup/TagGroup.meta.ts +27 -0
- package/src/components/TagGroup/TagGroup.stories.tsx +193 -0
- package/src/components/TagGroup/TagGroup.tsx +302 -0
- package/src/components/TagGroup/TagGroupContext.ts +22 -0
- package/src/components/TagGroup/styles.css.ts +83 -0
- package/src/index.ts +2 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import {css} from 'react-strict-dom'
|
|
2
|
+
import {colors} from '@duro-app/tokens/tokens/colors.css'
|
|
3
|
+
import {spacing, radii} from '@duro-app/tokens/tokens/spacing.css'
|
|
4
|
+
import {typography} from '@duro-app/tokens/tokens/typography.css'
|
|
5
|
+
|
|
6
|
+
export const styles = css.create({
|
|
7
|
+
root: {
|
|
8
|
+
display: 'flex',
|
|
9
|
+
flexDirection: 'column',
|
|
10
|
+
},
|
|
11
|
+
container: {
|
|
12
|
+
display: 'flex',
|
|
13
|
+
flexDirection: 'column',
|
|
14
|
+
gap: spacing.sm,
|
|
15
|
+
},
|
|
16
|
+
containerError: {},
|
|
17
|
+
containerDisabled: {
|
|
18
|
+
opacity: 0.5,
|
|
19
|
+
cursor: 'not-allowed',
|
|
20
|
+
},
|
|
21
|
+
// Static display (no Input) — no gap needed
|
|
22
|
+
containerStatic: {
|
|
23
|
+
gap: 0,
|
|
24
|
+
},
|
|
25
|
+
list: {
|
|
26
|
+
display: 'flex',
|
|
27
|
+
flexWrap: 'wrap',
|
|
28
|
+
gap: spacing.xs,
|
|
29
|
+
alignItems: 'center',
|
|
30
|
+
},
|
|
31
|
+
input: {
|
|
32
|
+
width: '100%',
|
|
33
|
+
borderWidth: 1,
|
|
34
|
+
borderStyle: 'solid',
|
|
35
|
+
borderColor: {
|
|
36
|
+
default: colors.border,
|
|
37
|
+
':focus': colors.accent,
|
|
38
|
+
},
|
|
39
|
+
borderRadius: radii.sm,
|
|
40
|
+
backgroundColor: colors.bg,
|
|
41
|
+
fontFamily: typography.fontFamily,
|
|
42
|
+
fontSize: typography.fontSizeSm,
|
|
43
|
+
lineHeight: typography.lineHeight,
|
|
44
|
+
color: colors.text,
|
|
45
|
+
paddingTop: spacing.sm,
|
|
46
|
+
paddingBottom: spacing.sm,
|
|
47
|
+
paddingLeft: spacing.sm,
|
|
48
|
+
paddingRight: spacing.sm,
|
|
49
|
+
minHeight: 40,
|
|
50
|
+
transitionProperty: 'border-color',
|
|
51
|
+
transitionDuration: '150ms',
|
|
52
|
+
transitionTimingFunction: 'ease',
|
|
53
|
+
outlineWidth: {
|
|
54
|
+
default: 0,
|
|
55
|
+
':focus': 2,
|
|
56
|
+
},
|
|
57
|
+
outlineStyle: {
|
|
58
|
+
default: 'none',
|
|
59
|
+
':focus': 'solid',
|
|
60
|
+
},
|
|
61
|
+
outlineColor: {
|
|
62
|
+
default: 'transparent',
|
|
63
|
+
':focus': colors.accent,
|
|
64
|
+
},
|
|
65
|
+
outlineOffset: {
|
|
66
|
+
default: 0,
|
|
67
|
+
':focus': 1,
|
|
68
|
+
},
|
|
69
|
+
boxSizing: 'border-box',
|
|
70
|
+
},
|
|
71
|
+
inputError: {
|
|
72
|
+
borderColor: {
|
|
73
|
+
default: colors.error,
|
|
74
|
+
':focus': colors.error,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
liveRegion: {
|
|
78
|
+
position: 'absolute',
|
|
79
|
+
width: 1,
|
|
80
|
+
height: 1,
|
|
81
|
+
overflow: 'hidden',
|
|
82
|
+
},
|
|
83
|
+
})
|
package/src/index.ts
CHANGED
|
@@ -43,6 +43,8 @@ export {
|
|
|
43
43
|
type StatusIconName,
|
|
44
44
|
type StatusIconVariant,
|
|
45
45
|
} from './components/StatusIcon/StatusIcon'
|
|
46
|
+
export {Tag, type TagVariant, type TagSize} from './components/Tag/Tag'
|
|
47
|
+
export {TagGroup} from './components/TagGroup/TagGroup'
|
|
46
48
|
export {Table, type TableVariant, type TableSize} from './components/Table/Table'
|
|
47
49
|
// TanStack Table: consumers install @tanstack/react-table directly and use
|
|
48
50
|
// Table.Pagination, Table.SortIndicator, Table.ColumnFilter for styled integration
|