@wallarm-org/design-system 4.7.0 → 4.8.0-rc-fix-claude-code.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.
- package/README.md +4 -2
- package/dist/components/BulkBar/index.d.ts +5 -0
- package/dist/components/Drawer/classes.js +1 -1
- package/dist/components/NotificationCenter/NotificationCenter.d.ts +20 -0
- package/dist/components/NotificationCenter/NotificationCenter.js +65 -0
- package/dist/components/NotificationCenter/NotificationCenterBody.d.ts +18 -0
- package/dist/components/NotificationCenter/NotificationCenterBody.js +202 -0
- package/dist/components/NotificationCenter/NotificationCenterContent.d.ts +5 -0
- package/dist/components/NotificationCenter/NotificationCenterContent.js +42 -0
- package/dist/components/NotificationCenter/NotificationCenterHeader.d.ts +20 -0
- package/dist/components/NotificationCenter/NotificationCenterHeader.js +202 -0
- package/dist/components/NotificationCenter/NotificationCenterItem.d.ts +26 -0
- package/dist/components/NotificationCenter/NotificationCenterItem.js +211 -0
- package/dist/components/NotificationCenter/NotificationCenterItemTime.d.ts +9 -0
- package/dist/components/NotificationCenter/NotificationCenterItemTime.js +148 -0
- package/dist/components/NotificationCenter/NotificationCenterItemTitle.d.ts +14 -0
- package/dist/components/NotificationCenter/NotificationCenterItemTitle.js +115 -0
- package/dist/components/NotificationCenter/NotificationCenterTabs.d.ts +10 -0
- package/dist/components/NotificationCenter/NotificationCenterTabs.js +77 -0
- package/dist/components/NotificationCenter/NotificationCenterTrigger.d.ts +13 -0
- package/dist/components/NotificationCenter/NotificationCenterTrigger.js +138 -0
- package/dist/components/NotificationCenter/index.d.ts +9 -0
- package/dist/components/NotificationCenter/index.js +9 -0
- package/dist/components/Overlay/Overlay.js +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +7 -5
- package/dist/components/SearchInput/SearchInput.js +119 -101
- package/dist/components/Select/SelectSearchInput.d.ts +1 -1
- package/dist/components/Table/types.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -0
- package/dist/components/Tabs/Tabs.js +30 -28
- package/dist/components/Tabs/TabsList/index.d.ts +1 -1
- package/dist/components/Tabs/index.d.ts +2 -2
- package/dist/components/Tour/TourPositioner.d.ts +3 -0
- package/dist/components/Tour/TourPositioner.js +4 -4
- package/dist/guidelines/foundations/color.md +157 -0
- package/dist/guidelines/foundations/focus.md +122 -0
- package/dist/guidelines/foundations/layering.md +131 -0
- package/dist/guidelines/foundations/radius-elevation.md +111 -0
- package/dist/guidelines/foundations/spacing.md +117 -0
- package/dist/guidelines/foundations/typography.md +114 -0
- package/dist/guidelines/patterns/app-layout.md +1567 -0
- package/dist/guidelines/patterns/auth-page.md +668 -0
- package/dist/guidelines/patterns/confirmation-dialogs.md +605 -0
- package/dist/guidelines/patterns/create-edit-forms.md +768 -0
- package/dist/guidelines/patterns/detail-drawer.md +868 -0
- package/dist/guidelines/patterns/empty-states.md +461 -0
- package/dist/guidelines/patterns/entity-table.md +533 -0
- package/dist/guidelines/patterns/feedback-toasts.md +493 -0
- package/dist/guidelines/patterns/filtering.md +630 -0
- package/dist/guidelines/patterns/resource-list-page.md +558 -0
- package/dist/guidelines/patterns/settings-page.md +752 -0
- package/dist/guidelines/rules.md +25 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/metadata/components.json +12641 -9320
- package/dist/metadata/guidelines.json +1705 -0
- package/dist/theme/typography.css +5 -0
- package/dist/utils/formatDateTime.d.ts +6 -0
- package/dist/utils/formatDateTime.js +13 -1
- package/package.json +6 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Every numeric utility is in px, not 4px steps: p-16 is 16px, p-4 is 4px. Translate Tailwind habits (p-4 → p-16, gap-6 → gap-24, w-64 → w-256).
|
|
2
|
+
|
|
3
|
+
Before composing a screen, call get_guideline for the pattern (app shell, list page, table, drawer, form, dialog, filters, empty state, settings, auth). Wrong → right:
|
|
4
|
+
|
|
5
|
+
- p-5, gap-3, p-10 → stay on the scale: 1, 2, 4, 6, 8, 12, 16, 20, 24, 28, 32, 40, 48, 64…
|
|
6
|
+
- space-y-4, margins per child → <VStack gap={16}>, <HStack gap={8}>
|
|
7
|
+
- Padded page wrapper → Page > PageHeader / PageToolbar / PageContent own the 24px gutter
|
|
8
|
+
- p-* on Card, DrawerBody, DialogBody, PageToolbar, Table → none; they own their padding
|
|
9
|
+
- className on Text, Heading, Field, Drawer/Dialog Header/Body/Footer → wrap in your own element
|
|
10
|
+
- Raw <h1>, <p>, <label> → <Heading as="h2" size="lg">, <Text size="sm">, Field
|
|
11
|
+
- <Text> default (16px) for body → size="sm" (md is only an alias of sm)
|
|
12
|
+
- leading-none (0px), leading-5 (5px) → leading-sm or leading-20
|
|
13
|
+
- weight="semibold" → weight is light|regular|medium|bold (medium = 450)
|
|
14
|
+
- bg-primary, text-muted, bg-card, bg-white, text-gray-500 → bg-bg-primary, text-text-secondary, bg-bg-surface-1
|
|
15
|
+
- text-error, bg-red-500 → danger tokens; categorical color → Badge color
|
|
16
|
+
- dark: variant, setting data-theme → semantic tokens, useTheme().setTheme()
|
|
17
|
+
- rounded-lg, rounded, rounded-[15px] → rounded-8 (controls), rounded-12 (panels)
|
|
18
|
+
- shadow-* on DS components, z-* on overlays → never; they own both
|
|
19
|
+
- focus:ring → focus-visible:ring-3 ring-focus-primary outline-none
|
|
20
|
+
- size, DIALOG_SIZES, DRAWER_SIZES → width: Dialog 400 confirm, 560 default, 960 picker; Drawer 640 default, 700 Timeline form
|
|
21
|
+
- Dialog, useToast from the root → @wallarm-org/design-system/Dialog, /Toast
|
|
22
|
+
- Field invalid → error on the control + FieldError
|
|
23
|
+
- Hand-built side menu → RemoteShell config={NavConfig}
|
|
24
|
+
- ConfirmDialog, FilterBar, Combobox → compose Dialog parts, PageToolbar + FilterDropdown, Select + useSelectSearch
|
|
25
|
+
- data-slot in tests → data-testid
|
package/dist/index.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ export { Loader, type LoaderProps } from './components/Loader/index.js';
|
|
|
68
68
|
export { Logo, type LogoProps, type LogoSize, type LogoStyle, type LogoType, } from './components/Logo/index.js';
|
|
69
69
|
export { MessageAction, type MessageActionProps, MessageActions, type MessageActionsProps, MessageTimestamp, type MessageTimestampProps, } from './components/MessageActions/index.js';
|
|
70
70
|
export { NavRail, NavRailBody, type NavRailBodyProps, NavRailFooter, type NavRailFooterProps, NavRailItem, type NavRailItemProps, type NavRailMode, type NavRailProps, NavRailSeparator, type NavRailSeparatorProps, NavRailSkeleton, type NavRailSkeletonProps, } from './components/NavRail/index.js';
|
|
71
|
+
export { NotificationCenter, NotificationCenterBody, type NotificationCenterBodyProps, NotificationCenterContent, type NotificationCenterContentProps, NotificationCenterEmpty, type NotificationCenterEmptyProps, NotificationCenterHeader, NotificationCenterHeaderAction, type NotificationCenterHeaderActionProps, NotificationCenterHeaderActions, type NotificationCenterHeaderActionsProps, type NotificationCenterHeaderProps, NotificationCenterItem, NotificationCenterItemActions, type NotificationCenterItemActionsProps, NotificationCenterItemDescription, type NotificationCenterItemDescriptionProps, type NotificationCenterItemProps, NotificationCenterItemTime, type NotificationCenterItemTimeProps, NotificationCenterItemTitle, type NotificationCenterItemTitleProps, NotificationCenterList, type NotificationCenterListProps, type NotificationCenterProps, NotificationCenterSkeleton, type NotificationCenterSkeletonProps, NotificationCenterTabs, NotificationCenterTabsList, type NotificationCenterTabsListProps, type NotificationCenterTabsProps, NotificationCenterTitle, type NotificationCenterTitleProps, NotificationCenterTrigger, type NotificationCenterTriggerProps, } from './components/NotificationCenter/index.js';
|
|
71
72
|
export { NumberInput, type NumberInputProps } from './components/NumberInput/index.js';
|
|
72
73
|
export { NumericBadge, type NumericBadgeProps, } from './components/NumericBadge/index.js';
|
|
73
74
|
export { OverflowTooltip, OverflowTooltipContent, type OverflowTooltipContentProps, type OverflowTooltipProps, } from './components/OverflowTooltip/index.js';
|
|
@@ -98,7 +99,7 @@ export { HStack, type HStackProps, Stack, type StackProps, VStack, type VStackPr
|
|
|
98
99
|
export { Stepper, StepperContent, type StepperContentProps, StepperDescription, type StepperDescriptionProps, StepperIndicator, type StepperIndicatorProps, StepperItem, type StepperItemContextValue, type StepperItemProps, type StepperItemStatus, StepperList, type StepperListProps, StepperNextTrigger, type StepperNextTriggerProps, StepperPrevTrigger, type StepperPrevTriggerProps, type StepperProps, StepperRootProvider, type StepperRootProviderProps, StepperSeparator, type StepperSeparatorProps, type StepperStatusLabels, StepperTitle, type StepperTitleProps, StepperTrigger, type StepperTriggerProps, type StepperVisualStatus, type UseStepperContextReturn, type UseStepperProps, type UseStepperReturn, useStepper, useStepperContext, useStepperItemContext, } from './components/Stepper/index.js';
|
|
99
100
|
export { Switch, SwitchControl, SwitchDescription, type SwitchDescriptionProps, SwitchLabel, type SwitchLabelProps, type SwitchProps, } from './components/Switch/index.js';
|
|
100
101
|
export { createTableColumnHelper, type DSTableFeatures, EDITABLE_CELL_COLUMN_META, EditableSelectCell, type EditableSelectCellProps, EditableTextCell, type EditableTextCellProps, editableCellVariants, Table, type TableAccessorColumnDef, TableActionBar, type TableCellContext, type TableColumnBase, type TableColumnDef, type TableColumnHelper, TableColumnMenu, TableColumnMenuHideItem, type TableColumnMenuHideItemProps, TableColumnMenuMoveLeftItem, type TableColumnMenuMoveLeftItemProps, TableColumnMenuMoveRightItem, type TableColumnMenuMoveRightItemProps, TableColumnMenuPinItem, type TableColumnMenuPinItemProps, type TableColumnMenuProps, TableColumnMenuSortItem, type TableColumnMenuSortItemProps, type TableColumnMeta, type TableColumnPinningState, type TableColumnSizingState, type TableDisplayColumnDef, TableEmptyState, type TableExpandedState, type TableGroupingState, type TableHandle, type TableOnChangeFn, type TableProps, type TableRow, type TableRowSelectionState, type TableScrollToRowOptions, TableSettingsMenu, type TableSortingState, TableSortTrigger, type TableSortTriggerProps, type TableUpdater, type TableVisibilityState, } from './components/Table/index.js';
|
|
101
|
-
export { Tabs, TabsButton, TabsContent, TabsLineActions, TabsList, TabsSeparator, TabsTrigger, } from './components/Tabs/index.js';
|
|
102
|
+
export { Tabs, TabsButton, TabsContent, TabsLineActions, TabsList, type TabsListProps, type TabsProps, TabsSeparator, TabsTrigger, } from './components/Tabs/index.js';
|
|
102
103
|
export { Tag, TagClose, type TagProps } from './components/Tag/index.js';
|
|
103
104
|
export { Text, type TextProps } from './components/Text/index.js';
|
|
104
105
|
export { Textarea, type TextareaProps } from './components/Textarea/index.js';
|
package/dist/index.js
CHANGED
|
@@ -57,6 +57,7 @@ export { Loader } from "./components/Loader/index.js";
|
|
|
57
57
|
export { Logo } from "./components/Logo/index.js";
|
|
58
58
|
export { MessageAction, MessageActions, MessageTimestamp } from "./components/MessageActions/index.js";
|
|
59
59
|
export { NavRail, NavRailBody, NavRailFooter, NavRailItem, NavRailSeparator, NavRailSkeleton } from "./components/NavRail/index.js";
|
|
60
|
+
export { NotificationCenter, NotificationCenterBody, NotificationCenterContent, NotificationCenterEmpty, NotificationCenterHeader, NotificationCenterHeaderAction, NotificationCenterHeaderActions, NotificationCenterItem, NotificationCenterItemActions, NotificationCenterItemDescription, NotificationCenterItemTime, NotificationCenterItemTitle, NotificationCenterList, NotificationCenterSkeleton, NotificationCenterTabs, NotificationCenterTabsList, NotificationCenterTitle, NotificationCenterTrigger } from "./components/NotificationCenter/index.js";
|
|
60
61
|
export { NumberInput } from "./components/NumberInput/index.js";
|
|
61
62
|
export { NumericBadge } from "./components/NumericBadge/index.js";
|
|
62
63
|
export { OverflowTooltip, OverflowTooltipContent } from "./components/OverflowTooltip/index.js";
|