@wallarm-org/design-system 1.1.0-rc-feature-AS-1060.1 → 1.2.0-rc-fix-inline-edit-blur-commit.1

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 (38) hide show
  1. package/dist/components/Field/FieldAction.d.ts +5 -1
  2. package/dist/components/Field/FieldAction.js +2 -2
  3. package/dist/components/Field/index.d.ts +1 -1
  4. package/dist/components/Heading/Heading.js +11 -11
  5. package/dist/components/InlineEdit/InlineEditActions.d.ts +6 -0
  6. package/dist/components/InlineEdit/InlineEditActions.js +66 -0
  7. package/dist/components/InlineEdit/InlineEditControl.d.ts +6 -0
  8. package/dist/components/InlineEdit/InlineEditControl.js +12 -5
  9. package/dist/components/Link/classes.js +1 -1
  10. package/dist/components/List/List.d.ts +14 -0
  11. package/dist/components/List/List.js +24 -0
  12. package/dist/components/List/ListIcon.d.ts +6 -0
  13. package/dist/components/List/ListIcon.js +17 -0
  14. package/dist/components/List/ListItem.d.ts +6 -0
  15. package/dist/components/List/ListItem.js +20 -0
  16. package/dist/components/List/classes.d.ts +6 -0
  17. package/dist/components/List/classes.js +26 -0
  18. package/dist/components/List/index.d.ts +3 -0
  19. package/dist/components/List/index.js +3 -0
  20. package/dist/components/PasswordComplexity/PasswordComplexity.d.ts +13 -0
  21. package/dist/components/PasswordComplexity/PasswordComplexity.js +36 -0
  22. package/dist/components/PasswordComplexity/classes.d.ts +6 -0
  23. package/dist/components/PasswordComplexity/classes.js +18 -0
  24. package/dist/components/PasswordComplexity/index.d.ts +2 -0
  25. package/dist/components/PasswordComplexity/index.js +2 -0
  26. package/dist/components/PasswordComplexity/validators.d.ts +8 -0
  27. package/dist/components/PasswordComplexity/validators.js +9 -0
  28. package/dist/components/PasswordInput/PasswordInput.d.ts +5 -0
  29. package/dist/components/PasswordInput/PasswordInput.js +53 -0
  30. package/dist/components/PasswordInput/index.d.ts +1 -0
  31. package/dist/components/PasswordInput/index.js +1 -0
  32. package/dist/components/Table/TableContext/TableProvider.js +3 -0
  33. package/dist/index.d.ts +3 -0
  34. package/dist/index.js +3 -0
  35. package/dist/metadata/components.json +1735 -38
  36. package/dist/theme/Pixel.stories.tsx +79 -0
  37. package/dist/theme/typography.css +13 -0
  38. package/package.json +1 -1
@@ -0,0 +1,79 @@
1
+ import type { Meta, StoryFn } from 'storybook-react-rsbuild';
2
+ import { HStack, VStack } from '../components/Stack';
3
+ import { Text } from '../components/Text';
4
+
5
+ const DESCRIPTION = [
6
+ 'Geist Pixel is the decorative typeface. Use it for empty states, and for moments that want personality rather than information.',
7
+ 'There is no `Pixel` component. Pixel type is composed from the `font-pixel` utility plus the shared `text-*` size utilities, so the steps below are conventions rather than a component API. The only place it ships today is `EmptyStateTitle`, at 16/24.',
8
+ 'One cut only: Square at regular weight. There is no light or bold, so `font-bold` on pixel type renders as a browser-synthesized fake — emphasis has to come from size or colour, never from weight.',
9
+ 'Not for UI copy, labels, or anything read at length; that is the text ramp. Keep it to short strings, where the blocky letterforms stay legible.',
10
+ ].join('\n\n');
11
+
12
+ const meta = {
13
+ title: 'Typography/Pixel',
14
+ parameters: {
15
+ layout: 'padded',
16
+ docs: {
17
+ description: {
18
+ component: DESCRIPTION,
19
+ },
20
+ },
21
+ },
22
+ } satisfies Meta;
23
+
24
+ export default meta;
25
+
26
+ type PixelStep = {
27
+ /** Name of the matching text style in Figma. */
28
+ token: string;
29
+ /** Utilities that reproduce it — note lg is 16px, so it maps to text-base. */
30
+ utilities: string;
31
+ /** Size / leading in px. */
32
+ metrics: string;
33
+ };
34
+
35
+ const STEPS: PixelStep[] = [
36
+ { token: 'pixel-3xl', utilities: 'font-pixel text-3xl', metrics: '30 / 36' },
37
+ { token: 'pixel-2xl', utilities: 'font-pixel text-2xl', metrics: '24 / 32' },
38
+ { token: 'pixel-xl', utilities: 'font-pixel text-xl', metrics: '20 / 28' },
39
+ { token: 'pixel-lg', utilities: 'font-pixel text-base', metrics: '16 / 24' },
40
+ ];
41
+
42
+ export const Scale: StoryFn<typeof meta> = () => (
43
+ <VStack gap={32} align='start'>
44
+ {STEPS.map(({ token, utilities, metrics }) => (
45
+ <VStack key={token} gap={8} align='start'>
46
+ <HStack gap={12} align='baseline'>
47
+ <Text size='sm' weight='medium'>
48
+ {token}
49
+ </Text>
50
+ <Text size='xs' color='secondary'>
51
+ {metrics} · {utilities}
52
+ </Text>
53
+ </HStack>
54
+ <span className={`${utilities} text-text-primary`}>The quick brown fox</span>
55
+ </VStack>
56
+ ))}
57
+ </VStack>
58
+ );
59
+
60
+ export const Decorative: StoryFn<typeof meta> = () => (
61
+ <VStack gap={40} align='start'>
62
+ <VStack gap={12} align='start'>
63
+ <Text size='xs' color='secondary'>
64
+ What it is for — a short, decorative line carrying the personality
65
+ </Text>
66
+ <span className='font-pixel text-base text-text-primary'>No attacks detected</span>
67
+ </VStack>
68
+
69
+ <VStack gap={12} align='start'>
70
+ <Text size='xs' color='secondary'>
71
+ What it is not for — running copy belongs to the text ramp
72
+ </Text>
73
+ <Text size='sm' color='secondary' className='max-w-100'>
74
+ Wallarm did not find any attacks in the selected period. Try widening the time range, or
75
+ check that the filters above are not excluding traffic you expect to see.
76
+ </Text>
77
+ </VStack>
78
+ </VStack>
79
+ );
@@ -79,4 +79,17 @@
79
79
  --leading-7xl: 72px;
80
80
  --leading-8xl: 96px;
81
81
  --leading-9xl: 128px;
82
+
83
+ /* Optical tracking for the heading ramp. Tightens as the size grows, because
84
+ large type sets too loose at the spacing Geist is drawn for.
85
+ Zero below 20px system-wide: at UI sizes the font's own spacing is already
86
+ right, and negative tracking there costs legibility. Steps sm/md/lg get no
87
+ token on purpose — they use tracking-normal. */
88
+ --tracking-xl: -0.005em;
89
+ --tracking-2xl: -0.01em;
90
+ --tracking-3xl: -0.01em;
91
+ --tracking-4xl: -0.015em;
92
+ --tracking-5xl: -0.015em;
93
+ --tracking-6xl: -0.02em;
94
+ --tracking-7xl: -0.02em;
82
95
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wallarm-org/design-system",
3
- "version": "1.1.0-rc-feature-AS-1060.1",
3
+ "version": "1.2.0-rc-fix-inline-edit-blur-commit.1",
4
4
  "description": "Core design system library with React components and Storybook documentation",
5
5
  "publishConfig": {
6
6
  "access": "public",