@brightlocal/ui-components 3.0.0 → 3.1.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/README.md +2 -1
- package/component-meta.json +90 -19
- package/deprecations.json +113 -3
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.d.ts +36 -0
- package/dist/accordion.d.ts.map +1 -1
- package/dist/accordion.js +74 -61
- package/dist/blocks/empty-state.cjs +1 -1
- package/dist/blocks/empty-state.d.ts.map +1 -1
- package/dist/blocks/empty-state.js +41 -49
- package/dist/button-group.cjs +1 -0
- package/dist/button-group.d.ts +36 -0
- package/dist/button-group.d.ts.map +1 -0
- package/dist/button-group.js +47 -0
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +20 -2
- package/dist/card.d.ts.map +1 -1
- package/dist/card.js +83 -75
- package/dist/chart.cjs +2 -2
- package/dist/chart.d.ts +40 -12
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +86 -71
- package/dist/chip.cjs +1 -1
- package/dist/chip.d.ts +38 -4
- package/dist/chip.d.ts.map +1 -1
- package/dist/chip.js +95 -81
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts +23 -1
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js +250 -224
- package/dist/data-table.cjs +1 -1
- package/dist/data-table.d.ts +32 -1
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +340 -330
- package/dist/date-picker.cjs +1 -1
- package/dist/date-picker.d.ts +13 -5
- package/dist/date-picker.d.ts.map +1 -1
- package/dist/date-picker.js +54 -53
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts +8 -1
- package/dist/field.d.ts.map +1 -1
- package/dist/field.js +79 -52
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.d.ts +105 -13
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +146 -129
- package/dist/grid.d.ts +2 -2
- package/dist/hooks/use-mobile.cjs +1 -0
- package/dist/hooks/use-mobile.js +8 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +547 -538
- package/dist/input-password.cjs +1 -1
- package/dist/input-password.d.ts +17 -9
- package/dist/input-password.d.ts.map +1 -1
- package/dist/input-password.js +26 -25
- package/dist/lib/empty-chip.cjs +1 -0
- package/dist/lib/empty-chip.d.ts +4 -0
- package/dist/lib/empty-chip.d.ts.map +1 -0
- package/dist/lib/empty-chip.js +13 -0
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +3 -0
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +57 -57
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.d.ts +15 -6
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/scroll-area.js +38 -36
- package/dist/select.cjs +2 -2
- package/dist/select.d.ts +13 -2
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +87 -83
- package/dist/typography-heading.cjs +1 -1
- package/dist/typography-heading.d.ts +13 -0
- package/dist/typography-heading.d.ts.map +1 -1
- package/dist/typography-heading.js +32 -21
- package/dist/typography-text.cjs +1 -1
- package/dist/typography-text.d.ts +14 -0
- package/dist/typography-text.d.ts.map +1 -1
- package/dist/typography-text.js +35 -24
- package/package.json +1 -1
- package/src/blocks/empty-state.tsx +9 -21
- package/src/components/accordion.tsx +82 -27
- package/src/components/button-group.tsx +112 -0
- package/src/components/button.tsx +1 -1
- package/src/components/card.tsx +38 -3
- package/src/components/chart.tsx +63 -18
- package/src/components/chip.tsx +83 -10
- package/src/components/command.tsx +55 -3
- package/src/components/data-table.tsx +67 -7
- package/src/components/date-picker.tsx +18 -7
- package/src/components/field.tsx +81 -12
- package/src/components/global-layout.tsx +176 -38
- package/src/components/grid.tsx +2 -2
- package/src/components/input-password.tsx +23 -11
- package/src/components/pagination.tsx +10 -3
- package/src/components/scroll-area.tsx +23 -10
- package/src/components/select.tsx +30 -6
- package/src/components/typography-heading.tsx +24 -0
- package/src/components/typography-text.tsx +26 -1
- package/src/index.ts +1 -0
- package/src/lib/empty-chip.ts +24 -0
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ pnpm add @brightlocal/tokens
|
|
|
24
24
|
|
|
25
25
|
## Components
|
|
26
26
|
|
|
27
|
-
This package includes
|
|
27
|
+
This package includes 77 components and 4 blocks built on Radix UI primitives and other React libraries. All components are fully typed with TypeScript and follow BrightLocal's design system patterns.
|
|
28
28
|
|
|
29
29
|
### Layout Components
|
|
30
30
|
|
|
@@ -53,6 +53,7 @@ This package includes 76 components and 4 blocks built on Radix UI primitives an
|
|
|
53
53
|
### Form Components
|
|
54
54
|
|
|
55
55
|
- **Button** - Interactive buttons with variants
|
|
56
|
+
- **ButtonGroup** - Attached group joining Buttons and a Select trigger with merged borders
|
|
56
57
|
- **Calendar** - Date selection calendar
|
|
57
58
|
- **Checkbox** - Checkbox inputs
|
|
58
59
|
- **Combobox** - Searchable select inputs
|
package/component-meta.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightlocal/ui-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Machine-readable registry of all components in the BrightLocal Design System",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
@@ -761,6 +761,48 @@
|
|
|
761
761
|
"figmaOnly": []
|
|
762
762
|
}
|
|
763
763
|
},
|
|
764
|
+
{
|
|
765
|
+
"name": "ButtonGroup",
|
|
766
|
+
"import": "@brightlocal/ui-components/button-group",
|
|
767
|
+
"category": "interactive",
|
|
768
|
+
"exports": [
|
|
769
|
+
"ButtonGroup",
|
|
770
|
+
"ButtonGroupSeparator"
|
|
771
|
+
],
|
|
772
|
+
"compound": true,
|
|
773
|
+
"dataHookRequired": true,
|
|
774
|
+
"variants": {},
|
|
775
|
+
"props": [],
|
|
776
|
+
"description": "Joins Buttons and a Select trigger into one attached control with merged borders",
|
|
777
|
+
"aliases": [
|
|
778
|
+
"button group",
|
|
779
|
+
"attached buttons",
|
|
780
|
+
"split button",
|
|
781
|
+
"segmented actions",
|
|
782
|
+
"run navigator"
|
|
783
|
+
],
|
|
784
|
+
"whenToUse": [
|
|
785
|
+
"Prev/next steppers attached around a Select (RunNavigator recipe)",
|
|
786
|
+
"A primary action with an attached menu trigger (SplitButton recipe)",
|
|
787
|
+
"A row of related actions that should read as one control"
|
|
788
|
+
],
|
|
789
|
+
"doNotUseFor": [
|
|
790
|
+
"on/off or single-choice selection (use ToggleGroup — it owns the selected state and keyboard model)",
|
|
791
|
+
"quick filters over a collection (use the Lab SegmentedControl)",
|
|
792
|
+
"attaching icons or buttons to a text input (use InputGroup)"
|
|
793
|
+
],
|
|
794
|
+
"states": [
|
|
795
|
+
"default",
|
|
796
|
+
"hover",
|
|
797
|
+
"focus",
|
|
798
|
+
"disabled"
|
|
799
|
+
],
|
|
800
|
+
"a11yContract": [
|
|
801
|
+
"role=group on the container",
|
|
802
|
+
"icon-only child Buttons need aria-label",
|
|
803
|
+
"children keep their own focus order — no roving focus"
|
|
804
|
+
]
|
|
805
|
+
},
|
|
764
806
|
{
|
|
765
807
|
"name": "Calendar",
|
|
766
808
|
"import": "@brightlocal/ui-components/calendar",
|
|
@@ -904,7 +946,7 @@
|
|
|
904
946
|
"props": [
|
|
905
947
|
"maxWidth"
|
|
906
948
|
],
|
|
907
|
-
"description": "Content container with consistent styling. Full-width by default — constrain width via className (e.g., className='max-w-sm'). Supports a density prop: 'default' uses generous spacing (gap-8, py-section-md, px-section-md) for standalone cards; 'condensed' uses compact spacing (gap-3, py-3, px-3) for cards nested inside other cards as sub-sections, inline stat panels, or dense dashboard widgets.",
|
|
949
|
+
"description": "Content container with consistent styling. Full-width by default — constrain width via className (e.g., className='max-w-sm'). Supports a density prop: 'default' uses generous spacing (gap-8, py-section-md, px-section-md) for standalone cards; 'condensed' uses compact spacing (gap-3, py-3, px-3) for cards nested inside other cards as sub-sections, inline stat panels, or dense dashboard widgets. CardHeader takes align ('left' | 'center' | 'right') for header layout; CardDescription takes its own align with the same values to pin the description's text alignment when it would otherwise inherit it (e.g. centred inside a button trigger) — omitted, it inherits as before.",
|
|
908
950
|
"aliases": [
|
|
909
951
|
"container",
|
|
910
952
|
"panel",
|
|
@@ -1399,7 +1441,8 @@
|
|
|
1399
1441
|
"i18nProps": {
|
|
1400
1442
|
"Chip": {
|
|
1401
1443
|
"loadingLabel": "string — default: \"Loading\"",
|
|
1402
|
-
"removeAriaLabel": "string — default: \"Remove {name}\""
|
|
1444
|
+
"removeAriaLabel": "string — default: \"Remove {name}\"",
|
|
1445
|
+
"removableAriaLabel": "string — default: \"{name}, press Delete to remove\""
|
|
1403
1446
|
}
|
|
1404
1447
|
},
|
|
1405
1448
|
"description": "Removable chip/tag element",
|
|
@@ -2063,11 +2106,12 @@
|
|
|
2063
2106
|
"import": "@brightlocal/ui-components/date-picker",
|
|
2064
2107
|
"category": "form",
|
|
2065
2108
|
"exports": [
|
|
2066
|
-
"
|
|
2109
|
+
"DatePicker",
|
|
2067
2110
|
"DatePickerTrigger",
|
|
2068
2111
|
"DatePickerContent",
|
|
2069
2112
|
"DatePickerCalendar",
|
|
2070
|
-
"DatePickerPresets"
|
|
2113
|
+
"DatePickerPresets",
|
|
2114
|
+
"DatePickerRoot"
|
|
2071
2115
|
],
|
|
2072
2116
|
"compound": true,
|
|
2073
2117
|
"dataHookRequired": true,
|
|
@@ -2101,7 +2145,7 @@
|
|
|
2101
2145
|
"nodeId": "334:4051",
|
|
2102
2146
|
"figmaName": "Date Picker",
|
|
2103
2147
|
"kind": "componentSet",
|
|
2104
|
-
"export": "
|
|
2148
|
+
"export": "DatePicker",
|
|
2105
2149
|
"note": "Draws the closed field with label/description scaffolding. Code's `mode` variant (single|range) has no axis here — the range panel is drawn as the separate 'Date Picker / Range' set (see figmaOnly).",
|
|
2106
2150
|
"axes": [
|
|
2107
2151
|
{
|
|
@@ -2137,13 +2181,17 @@
|
|
|
2137
2181
|
{
|
|
2138
2182
|
"export": "DatePickerCalendar",
|
|
2139
2183
|
"reason": "An instance of the Calendar component inside the panel (Calendar is mapped separately)"
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
"export": "DatePickerRoot",
|
|
2187
|
+
"reason": "Deprecated alias of DatePicker (DS-853)"
|
|
2140
2188
|
}
|
|
2141
2189
|
],
|
|
2142
2190
|
"figmaOnly": [
|
|
2143
2191
|
{
|
|
2144
2192
|
"nodeId": "247:3751",
|
|
2145
2193
|
"figmaName": "Date Picker / Range",
|
|
2146
|
-
"reason": "Range-mode panel drawn as a separate set (code expresses mode=range on
|
|
2194
|
+
"reason": "Range-mode panel drawn as a separate set (code expresses mode=range on DatePicker); its Size md|sm axis is Figma-only"
|
|
2147
2195
|
},
|
|
2148
2196
|
{
|
|
2149
2197
|
"nodeId": "244:3640",
|
|
@@ -2689,12 +2737,14 @@
|
|
|
2689
2737
|
"GlobalLayout",
|
|
2690
2738
|
"GlobalLayoutSidebar",
|
|
2691
2739
|
"GlobalLayoutContent",
|
|
2692
|
-
"
|
|
2740
|
+
"GlobalLayoutActions",
|
|
2693
2741
|
"GlobalLayoutContentHeader",
|
|
2694
2742
|
"GlobalLayoutBackLink",
|
|
2695
2743
|
"GlobalLayoutSubtitle",
|
|
2696
|
-
"
|
|
2697
|
-
"GlobalLayoutMobileHeader"
|
|
2744
|
+
"GlobalLayoutBody",
|
|
2745
|
+
"GlobalLayoutMobileHeader",
|
|
2746
|
+
"GlobalLayoutContentActions",
|
|
2747
|
+
"GlobalLayoutContentBody"
|
|
2698
2748
|
],
|
|
2699
2749
|
"compound": true,
|
|
2700
2750
|
"dataHookRequired": true,
|
|
@@ -2758,7 +2808,7 @@
|
|
|
2758
2808
|
"reason": "Drawn as a Sidebar instance inside the Global Layout composition"
|
|
2759
2809
|
},
|
|
2760
2810
|
{
|
|
2761
|
-
"export": "
|
|
2811
|
+
"export": "GlobalLayoutActions",
|
|
2762
2812
|
"reason": "Drawn inside the Content set, structural slot"
|
|
2763
2813
|
},
|
|
2764
2814
|
{
|
|
@@ -2774,12 +2824,20 @@
|
|
|
2774
2824
|
"reason": "Drawn inside the Content header composition"
|
|
2775
2825
|
},
|
|
2776
2826
|
{
|
|
2777
|
-
"export": "
|
|
2827
|
+
"export": "GlobalLayoutBody",
|
|
2778
2828
|
"reason": "Structural slot, drawn implicitly as the content area"
|
|
2779
2829
|
},
|
|
2780
2830
|
{
|
|
2781
2831
|
"export": "GlobalLayoutMobileHeader",
|
|
2782
2832
|
"reason": "No standalone Figma representation found (2026-08-18)"
|
|
2833
|
+
},
|
|
2834
|
+
{
|
|
2835
|
+
"export": "GlobalLayoutContentActions",
|
|
2836
|
+
"reason": "Deprecated alias of GlobalLayoutActions (DS-855)"
|
|
2837
|
+
},
|
|
2838
|
+
{
|
|
2839
|
+
"export": "GlobalLayoutContentBody",
|
|
2840
|
+
"reason": "Deprecated alias of GlobalLayoutBody (DS-855)"
|
|
2783
2841
|
}
|
|
2784
2842
|
],
|
|
2785
2843
|
"figmaOnly": []
|
|
@@ -3258,10 +3316,11 @@
|
|
|
3258
3316
|
"import": "@brightlocal/ui-components/input-password",
|
|
3259
3317
|
"category": "form",
|
|
3260
3318
|
"exports": [
|
|
3261
|
-
"
|
|
3319
|
+
"InputPassword",
|
|
3262
3320
|
"InputPasswordField",
|
|
3263
3321
|
"InputPasswordToggle",
|
|
3264
|
-
"InputPasswordStrength"
|
|
3322
|
+
"InputPasswordStrength",
|
|
3323
|
+
"InputPasswordRoot"
|
|
3265
3324
|
],
|
|
3266
3325
|
"compound": false,
|
|
3267
3326
|
"dataHookRequired": true,
|
|
@@ -3285,7 +3344,7 @@
|
|
|
3285
3344
|
"nodeId": "25242:1860",
|
|
3286
3345
|
"figmaName": "Input Password",
|
|
3287
3346
|
"kind": "componentSet",
|
|
3288
|
-
"export": "
|
|
3347
|
+
"export": "InputPassword",
|
|
3289
3348
|
"note": "Draws the assembled password field; the 'Progress' BOOLEAN corresponds to the showMeter prop (booleans are globally exempt)",
|
|
3290
3349
|
"axes": [
|
|
3291
3350
|
{
|
|
@@ -3310,6 +3369,10 @@
|
|
|
3310
3369
|
{
|
|
3311
3370
|
"export": "InputPasswordStrength",
|
|
3312
3371
|
"reason": "Drawn inside the Input Password set ('Progress' BOOLEAN toggle)"
|
|
3372
|
+
},
|
|
3373
|
+
{
|
|
3374
|
+
"export": "InputPasswordRoot",
|
|
3375
|
+
"reason": "Deprecated alias of InputPassword (DS-853)"
|
|
3313
3376
|
}
|
|
3314
3377
|
],
|
|
3315
3378
|
"figmaOnly": []
|
|
@@ -4524,6 +4587,7 @@
|
|
|
4524
4587
|
"category": "layout",
|
|
4525
4588
|
"exports": [
|
|
4526
4589
|
"ScrollArea",
|
|
4590
|
+
"ScrollAreaScrollbar",
|
|
4527
4591
|
"ScrollBar"
|
|
4528
4592
|
],
|
|
4529
4593
|
"compound": true,
|
|
@@ -4544,13 +4608,17 @@
|
|
|
4544
4608
|
"figmaName": "Scroll Area",
|
|
4545
4609
|
"kind": "component",
|
|
4546
4610
|
"export": "ScrollArea",
|
|
4547
|
-
"note": "Code's orientation variant (on
|
|
4611
|
+
"note": "Code's orientation variant (on ScrollAreaScrollbar) has no Figma axis — the scrollbar is drawn vertically only"
|
|
4548
4612
|
}
|
|
4549
4613
|
],
|
|
4550
4614
|
"unmappedExports": [
|
|
4551
4615
|
{
|
|
4552
|
-
"export": "
|
|
4616
|
+
"export": "ScrollAreaScrollbar",
|
|
4553
4617
|
"reason": "Drawn implicitly inside the Scroll Area node, not a standalone Figma component"
|
|
4618
|
+
},
|
|
4619
|
+
{
|
|
4620
|
+
"export": "ScrollBar",
|
|
4621
|
+
"reason": "Deprecated alias of ScrollAreaScrollbar (DS-853)"
|
|
4554
4622
|
}
|
|
4555
4623
|
],
|
|
4556
4624
|
"figmaOnly": []
|
|
@@ -4590,7 +4658,8 @@
|
|
|
4590
4658
|
"onOpenChange",
|
|
4591
4659
|
"onClose",
|
|
4592
4660
|
"disabled",
|
|
4593
|
-
"error"
|
|
4661
|
+
"error",
|
|
4662
|
+
"hint"
|
|
4594
4663
|
],
|
|
4595
4664
|
"description": "Dropdown select input",
|
|
4596
4665
|
"aliases": [
|
|
@@ -6081,6 +6150,7 @@
|
|
|
6081
6150
|
"color",
|
|
6082
6151
|
"align",
|
|
6083
6152
|
"tabular",
|
|
6153
|
+
"truncate",
|
|
6084
6154
|
"asChild"
|
|
6085
6155
|
],
|
|
6086
6156
|
"description": "Semantic heading with decoupled axes: level sets the h1-h6 tag (document outline), variant sets the visual style from the semantic type scale, color carries the colour role (DS-714)",
|
|
@@ -6183,6 +6253,7 @@
|
|
|
6183
6253
|
"variant",
|
|
6184
6254
|
"color",
|
|
6185
6255
|
"tabular",
|
|
6256
|
+
"truncate",
|
|
6186
6257
|
"align",
|
|
6187
6258
|
"asChild"
|
|
6188
6259
|
],
|
|
@@ -6253,7 +6324,7 @@
|
|
|
6253
6324
|
"titleLevel",
|
|
6254
6325
|
"className"
|
|
6255
6326
|
],
|
|
6256
|
-
"description": "The empty block. Four parts in reading order: a visual, a real heading, one supporting line, and the actions row — children render in source order, so the primary action goes last and lands rightmost. size sets visual prominence and nothing else — the block is pure content and owns no page layout, so position is always the consumer's composition. size=\"md\" (default) is for the box a working page gives it (a card, a panel, a zero-row table): an icon in a 40px muted chip and a
|
|
6327
|
+
"description": "The empty block. Four parts in reading order: a visual, a real heading, one supporting line, and the actions row — children render in source order, so the primary action goes last and lands rightmost. size sets visual prominence and nothing else — the block is pure content and owns no page layout, so position is always the consumer's composition. size=\"md\" (default) is for the box a working page gives it (a card, a panel, a zero-row table): an icon in a 40px muted chip and a 16/24 title. size=\"lg\" is for the moment the whole page has nothing to show: a 130px illustration and a 20/28 title, composed inside Grid variant=\"centered\" for the page body's optical centre — the same spot ProgressState uses. The props are a discriminated union on size: illustration exists only at lg and align only at md, so a 130px drawing inside a card will not compile. Pass the illustration without a size; the block sets it. titleLevel stays the consumer's, for the document outline. (sm is reserved — a compact row-level tier is not designed yet.)",
|
|
6257
6328
|
"aliases": [
|
|
6258
6329
|
"empty state",
|
|
6259
6330
|
"empty block",
|
package/deprecations.json
CHANGED
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"type": "type",
|
|
195
195
|
"since": "2.24.0",
|
|
196
196
|
"reason": "Paired with the deprecated TableCaption component",
|
|
197
|
-
"replacement": "None
|
|
197
|
+
"replacement": "None — remove the import",
|
|
198
198
|
"ticket": "DS-779"
|
|
199
199
|
},
|
|
200
200
|
{
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
"item": "TextRevealMotion",
|
|
359
359
|
"type": "component",
|
|
360
360
|
"since": "2.28.0",
|
|
361
|
-
"reason": "Cycling phrases on a holdTime timer violates the Loading pattern's Honesty principle
|
|
361
|
+
"reason": "Cycling phrases on a holdTime timer violates the Loading pattern's Honesty principle — the phrases are not stages the backend reported; the motif duplicates Loading's shapes and gradient",
|
|
362
362
|
"replacement": "Section skeleton, or a named-stages running screen driven by real stage data (Patterns / Loading)",
|
|
363
363
|
"ticket": "DS-907"
|
|
364
364
|
},
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
"type": "type",
|
|
371
371
|
"since": "2.28.0",
|
|
372
372
|
"reason": "Paired with the deprecated TextRevealMotion component",
|
|
373
|
-
"replacement": "None
|
|
373
|
+
"replacement": "None — remove the import",
|
|
374
374
|
"ticket": "DS-907"
|
|
375
375
|
},
|
|
376
376
|
{
|
|
@@ -394,5 +394,115 @@
|
|
|
394
394
|
"reason": "Paired with the deprecated ProgressScreen alias, renamed to ProgressState",
|
|
395
395
|
"replacement": "ProgressStateProps",
|
|
396
396
|
"ticket": "DS-931"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"id": "global-layout-content-actions-renamed",
|
|
400
|
+
"component": "GlobalLayout",
|
|
401
|
+
"file": "components/global-layout.tsx",
|
|
402
|
+
"item": "GlobalLayoutContentActions",
|
|
403
|
+
"type": "component",
|
|
404
|
+
"since": "3.1.0",
|
|
405
|
+
"reason": "Renamed to GlobalLayoutActions: the Content middle segment was an unearned discriminator — no sibling actions row exists to discriminate against (DS-809 names discriminate siblings only)",
|
|
406
|
+
"replacement": "GlobalLayoutActions",
|
|
407
|
+
"ticket": "DS-855"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"id": "global-layout-content-actions-props-renamed",
|
|
411
|
+
"component": "GlobalLayout",
|
|
412
|
+
"file": "components/global-layout.tsx",
|
|
413
|
+
"item": "GlobalLayoutContentActionsProps",
|
|
414
|
+
"type": "type",
|
|
415
|
+
"since": "3.1.0",
|
|
416
|
+
"reason": "Paired with the deprecated GlobalLayoutContentActions alias, renamed to GlobalLayoutActions",
|
|
417
|
+
"replacement": "GlobalLayoutActionsProps",
|
|
418
|
+
"ticket": "DS-855"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"id": "global-layout-content-body-renamed",
|
|
422
|
+
"component": "GlobalLayout",
|
|
423
|
+
"file": "components/global-layout.tsx",
|
|
424
|
+
"item": "GlobalLayoutContentBody",
|
|
425
|
+
"type": "component",
|
|
426
|
+
"since": "3.1.0",
|
|
427
|
+
"reason": "Renamed to GlobalLayoutBody: the Content middle segment was an unearned discriminator — no sibling body region exists to discriminate against (DS-809 names discriminate siblings only)",
|
|
428
|
+
"replacement": "GlobalLayoutBody",
|
|
429
|
+
"ticket": "DS-855"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"id": "global-layout-content-body-props-renamed",
|
|
433
|
+
"component": "GlobalLayout",
|
|
434
|
+
"file": "components/global-layout.tsx",
|
|
435
|
+
"item": "GlobalLayoutContentBodyProps",
|
|
436
|
+
"type": "type",
|
|
437
|
+
"since": "3.1.0",
|
|
438
|
+
"reason": "Paired with the deprecated GlobalLayoutContentBody alias, renamed to GlobalLayoutBody",
|
|
439
|
+
"replacement": "GlobalLayoutBodyProps",
|
|
440
|
+
"ticket": "DS-855"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"id": "date-picker-root",
|
|
444
|
+
"component": "DatePicker",
|
|
445
|
+
"file": "components/date-picker.tsx",
|
|
446
|
+
"item": "DatePickerRoot",
|
|
447
|
+
"type": "component",
|
|
448
|
+
"since": "3.1.0",
|
|
449
|
+
"reason": "Family roots are bare names (DS-809); renamed to DatePicker",
|
|
450
|
+
"replacement": "DatePicker",
|
|
451
|
+
"ticket": "DS-853"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"id": "date-picker-root-props",
|
|
455
|
+
"component": "DatePicker",
|
|
456
|
+
"file": "components/date-picker.tsx",
|
|
457
|
+
"item": "DatePickerRootProps",
|
|
458
|
+
"type": "type",
|
|
459
|
+
"since": "3.1.0",
|
|
460
|
+
"reason": "Follows the DatePickerRoot → DatePicker rename",
|
|
461
|
+
"replacement": "DatePickerProps",
|
|
462
|
+
"ticket": "DS-853"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"id": "input-password-root",
|
|
466
|
+
"component": "InputPassword",
|
|
467
|
+
"file": "components/input-password.tsx",
|
|
468
|
+
"item": "InputPasswordRoot",
|
|
469
|
+
"type": "component",
|
|
470
|
+
"since": "3.1.0",
|
|
471
|
+
"reason": "Family roots are bare names (DS-809); renamed to InputPassword",
|
|
472
|
+
"replacement": "InputPassword",
|
|
473
|
+
"ticket": "DS-853"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"id": "input-password-root-props",
|
|
477
|
+
"component": "InputPassword",
|
|
478
|
+
"file": "components/input-password.tsx",
|
|
479
|
+
"item": "InputPasswordRootProps",
|
|
480
|
+
"type": "type",
|
|
481
|
+
"since": "3.1.0",
|
|
482
|
+
"reason": "Follows the InputPasswordRoot → InputPassword rename",
|
|
483
|
+
"replacement": "InputPasswordProps",
|
|
484
|
+
"ticket": "DS-853"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"id": "scroll-bar",
|
|
488
|
+
"component": "ScrollArea",
|
|
489
|
+
"file": "components/scroll-area.tsx",
|
|
490
|
+
"item": "ScrollBar",
|
|
491
|
+
"type": "component",
|
|
492
|
+
"since": "3.1.0",
|
|
493
|
+
"reason": "Family parts carry the family prefix exactly once (DS-809); renamed to ScrollAreaScrollbar",
|
|
494
|
+
"replacement": "ScrollAreaScrollbar",
|
|
495
|
+
"ticket": "DS-853"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"id": "scroll-bar-props",
|
|
499
|
+
"component": "ScrollArea",
|
|
500
|
+
"file": "components/scroll-area.tsx",
|
|
501
|
+
"item": "ScrollBarProps",
|
|
502
|
+
"type": "type",
|
|
503
|
+
"since": "3.1.0",
|
|
504
|
+
"reason": "Follows the ScrollBar → ScrollAreaScrollbar rename",
|
|
505
|
+
"replacement": "ScrollAreaScrollbarProps",
|
|
506
|
+
"ticket": "DS-853"
|
|
397
507
|
}
|
|
398
508
|
]
|
package/dist/accordion.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),y=require("react"),x=require("@radix-ui/react-accordion"),j=require("@brightlocal/icons"),s=require("@brightlocal/ui-components/lib/utils");function m(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const l=m(y),d=m(x),b=l.forwardRef((e,t)=>{const{dataHook:a,trackingEl:o,trackingLabel:n,disabled:r,dir:c,orientation:u,className:g,children:f}=e;return e.type==="single"?i.jsx(d.Root,{ref:t,className:g,collapsible:e.collapsible,"data-hook":a,"data-slot":"accordion","data-tracking-el":o,"data-tracking-label":n,defaultValue:e.defaultValue,dir:c,disabled:r,orientation:u,type:"single",value:e.value,onValueChange:e.onValueChange,children:f}):i.jsx(d.Root,{ref:t,className:g,"data-hook":a,"data-slot":"accordion","data-tracking-el":o,"data-tracking-label":n,defaultValue:e.defaultValue,dir:c,disabled:r,orientation:u,type:"multiple",value:e.value,onValueChange:e.onValueChange,children:f})});b.displayName="Accordion";const k=l.forwardRef(({className:e,dataHook:t,trackingEl:a,trackingLabel:o,...n},r)=>i.jsx(d.Item,{ref:r,className:s.cn("border-b last:border-b-0",e),"data-hook":t,"data-slot":"accordion-item","data-tracking-el":a,"data-tracking-label":o,...n}));k.displayName="AccordionItem";const h=l.forwardRef(({className:e,children:t,dataHook:a,trackingEl:o,trackingLabel:n,...r},c)=>i.jsx(d.Header,{className:"flex",children:i.jsxs(d.Trigger,{ref:c,className:s.cn("focus-visible:border-ring focus-visible:shadow-default duration-fast text-label flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left transition-shadow ease-out outline-none hover:underline disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),"data-hook":a,"data-slot":"accordion-trigger","data-tracking-el":o,"data-tracking-label":n,...r,children:[t,i.jsx(j.ChevronDown,{className:"text-muted-foreground duration-base pointer-events-none shrink-0 translate-y-0.5 transition-transform ease-in-out"})]})}));h.displayName="AccordionTrigger";const v=l.forwardRef(({className:e,children:t,dataHook:a,trackingEl:o,trackingLabel:n,...r},c)=>i.jsx(d.Content,{ref:c,className:"text-body-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden","data-hook":a,"data-slot":"accordion-content","data-tracking-el":o,"data-tracking-label":n,...r,children:i.jsx("div",{className:s.cn("pt-0 pb-4",e),children:t})}));v.displayName="AccordionContent";exports.Accordion=b;exports.AccordionContent=v;exports.AccordionItem=k;exports.AccordionTrigger=h;
|
package/dist/accordion.d.ts
CHANGED
|
@@ -54,6 +54,18 @@ export interface AccordionItemProps extends React.ComponentProps<typeof Accordio
|
|
|
54
54
|
* A unique value for the item (REQUIRED)
|
|
55
55
|
*/
|
|
56
56
|
value: string;
|
|
57
|
+
/**
|
|
58
|
+
* Data hook for automated testing
|
|
59
|
+
*/
|
|
60
|
+
dataHook?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Tracking element identifier for analytics
|
|
63
|
+
*/
|
|
64
|
+
trackingEl?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Tracking label for analytics context
|
|
67
|
+
*/
|
|
68
|
+
trackingLabel?: string;
|
|
57
69
|
/**
|
|
58
70
|
* Whether the accordion item is disabled
|
|
59
71
|
*/
|
|
@@ -81,6 +93,18 @@ export interface AccordionTriggerProps extends React.ComponentProps<typeof Accor
|
|
|
81
93
|
* Whether the trigger is disabled
|
|
82
94
|
*/
|
|
83
95
|
disabled?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Data hook for automated testing
|
|
98
|
+
*/
|
|
99
|
+
dataHook?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Tracking element identifier for analytics
|
|
102
|
+
*/
|
|
103
|
+
trackingEl?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Tracking label for analytics context
|
|
106
|
+
*/
|
|
107
|
+
trackingLabel?: string;
|
|
84
108
|
}
|
|
85
109
|
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
86
110
|
export interface AccordionContentProps extends React.ComponentProps<typeof AccordionPrimitive.Content> {
|
|
@@ -96,6 +120,18 @@ export interface AccordionContentProps extends React.ComponentProps<typeof Accor
|
|
|
96
120
|
* Force mounting of the content when true
|
|
97
121
|
*/
|
|
98
122
|
forceMount?: true;
|
|
123
|
+
/**
|
|
124
|
+
* Data hook for automated testing
|
|
125
|
+
*/
|
|
126
|
+
dataHook?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Tracking element identifier for analytics
|
|
129
|
+
*/
|
|
130
|
+
trackingEl?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Tracking label for analytics context
|
|
133
|
+
*/
|
|
134
|
+
trackingLabel?: string;
|
|
99
135
|
}
|
|
100
136
|
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
101
137
|
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
package/dist/accordion.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../src/components/accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAKhE,UAAU,kBAAkB;IAC1B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,UAAU,oBAAqB,SAAQ,kBAAkB;IACvD,IAAI,EAAE,QAAQ,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,UAAU,sBAAuB,SAAQ,kBAAkB;IACzD,IAAI,EAAE,UAAU,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,EAAE,CA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