@max-ts/kit 1.2.0 → 1.3.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/lib/components/AlertDialog/types.d.ts +1 -1
- package/lib/components/AlertDialog/types.d.ts.map +1 -1
- package/lib/components/Avatar/Avatar.d.ts.map +1 -1
- package/lib/components/Avatar/types.d.ts +1 -1
- package/lib/components/Avatar/types.d.ts.map +1 -1
- package/lib/components/Button/types.d.ts +1 -1
- package/lib/components/Button/types.d.ts.map +1 -1
- package/lib/components/Combobox/styles.css.d.ts +1 -1
- package/lib/components/Combobox/styles.css.d.ts.map +1 -1
- package/lib/components/DataGrid/DataGrid.d.ts +1 -2
- package/lib/components/DataGrid/DataGrid.d.ts.map +1 -1
- package/lib/components/DataGrid/Header/Header.d.ts +1 -2
- package/lib/components/DataGrid/Header/Header.d.ts.map +1 -1
- package/lib/components/DataGrid/Header/styles.css.d.ts +1 -1
- package/lib/components/DataGrid/Header/styles.css.d.ts.map +1 -1
- package/lib/components/Input/Input.d.ts +1 -1
- package/lib/components/Input/Input.d.ts.map +1 -1
- package/lib/components/Input/styles.css.d.ts +1 -1
- package/lib/components/Input/styles.css.d.ts.map +1 -1
- package/lib/components/InputGroup/styles.css.d.ts +1 -1
- package/lib/components/InputGroup/styles.css.d.ts.map +1 -1
- package/lib/components/InputGroup/types.d.ts +1 -1
- package/lib/components/InputGroup/types.d.ts.map +1 -1
- package/lib/components/Placeholder/constants.d.ts +12 -12
- package/lib/components/Placeholder/constants.d.ts.map +1 -1
- package/lib/components/Placeholder/types.d.ts +1 -1
- package/lib/components/Placeholder/types.d.ts.map +1 -1
- package/lib/components/RangeInput/RangeInput.d.ts +1 -1
- package/lib/components/RangeInput/RangeInput.d.ts.map +1 -1
- package/lib/components/RangeInput/styles.css.d.ts +1 -1
- package/lib/components/RangeInput/styles.css.d.ts.map +1 -1
- package/lib/components/Select/Select.d.ts +1 -1
- package/lib/components/Select/Select.d.ts.map +1 -1
- package/lib/components/Select/styles.css.d.ts +1 -1
- package/lib/components/Select/styles.css.d.ts.map +1 -1
- package/lib/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/lib/components/Sidebar/types.d.ts +2 -2
- package/lib/components/Sidebar/types.d.ts.map +1 -1
- package/lib/components/Tabs/TabsTrigger.d.ts +1 -1
- package/lib/components/Tabs/TabsTrigger.d.ts.map +1 -1
- package/lib/components/Tabs/styles.css.d.ts +1 -1
- package/lib/components/Tabs/styles.css.d.ts.map +1 -1
- package/lib/components/Textarea/styles.css.d.ts.map +1 -1
- package/lib/components/ToggleGroup/ToggleGroup.d.ts +1 -1
- package/lib/components/ToggleGroup/ToggleGroup.d.ts.map +1 -1
- package/lib/index.mjs +73 -76
- package/lib/stories/Button.stories.d.ts.map +1 -1
- package/lib/stories/DataGrid.stories.d.ts.map +1 -1
- package/lib/stories/Input.stories.d.ts.map +1 -1
- package/lib/stories/InputGroup.stories.d.ts.map +1 -1
- package/lib/stories/ToggleGroup.stories.d.ts +1 -1
- package/lib/styles.css +72 -58
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -127,11 +127,11 @@ Accordion_Accordion.Trigger = Trigger;
|
|
|
127
127
|
Accordion_Accordion.Content = Accordion_Content;
|
|
128
128
|
var buttonBase = 'style__1ersxw10';
|
|
129
129
|
var buttonSizes = {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
small: 'small__1ersxw19',
|
|
131
|
+
medium: 'medium__1ersxw1a',
|
|
132
|
+
large: 'large__1ersxw1b',
|
|
133
133
|
icon: 'icon__1ersxw1c',
|
|
134
|
-
|
|
134
|
+
iconSmall: 'iconSmall__1ersxw1d'
|
|
135
135
|
};
|
|
136
136
|
var buttonVariants = {
|
|
137
137
|
default: 'default__1ersxw14',
|
|
@@ -144,7 +144,7 @@ var button_css_endAdornment = 'style__1ersxw1f';
|
|
|
144
144
|
var fullWidthStyle = 'style__1ersxw13';
|
|
145
145
|
var loading = 'style__1ersxw12';
|
|
146
146
|
var button_css_startAdornment = 'style__1ersxw1e';
|
|
147
|
-
const Button_Button = ({ className, variant = 'default', size = '
|
|
147
|
+
const Button_Button = ({ className, variant = 'default', size = 'medium', startAdornment, endAdornment, isLoading = false, fullWidth, children, nativeButton, ...props })=>/*#__PURE__*/ jsxs(Button, {
|
|
148
148
|
nativeButton: nativeButton ?? !props.render,
|
|
149
149
|
className: clsx(buttonBase, buttonVariants[variant], buttonSizes[size], {
|
|
150
150
|
[fullWidthStyle]: fullWidth,
|
|
@@ -190,7 +190,7 @@ function Overlay({ className, ...props }) {
|
|
|
190
190
|
...props
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
function AlertDialog_Content({ className, size = '
|
|
193
|
+
function AlertDialog_Content({ className, size = 'medium', ...props }) {
|
|
194
194
|
return /*#__PURE__*/ jsxs(Portal, {
|
|
195
195
|
children: [
|
|
196
196
|
/*#__PURE__*/ jsx(Overlay, {}),
|
|
@@ -245,7 +245,7 @@ function Action({ className, ...props }) {
|
|
|
245
245
|
...props
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
|
-
function Cancel({ className, variant = 'outline', size = '
|
|
248
|
+
function Cancel({ className, variant = 'outline', size = 'medium', ...props }) {
|
|
249
249
|
return /*#__PURE__*/ jsx(AlertDialog.Close, {
|
|
250
250
|
"data-slot": "alert-dialog-cancel",
|
|
251
251
|
className: className,
|
|
@@ -281,10 +281,10 @@ var addonAlign = {
|
|
|
281
281
|
};
|
|
282
282
|
var styles_css_button = 'style__1rv6t1j6';
|
|
283
283
|
var buttonSize = {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
284
|
+
extraSmall: 'extraSmall__1rv6t1j7',
|
|
285
|
+
small: 'small__1rv6t1j8',
|
|
286
|
+
iconExtraSmall: 'iconExtraSmall__1rv6t1j9',
|
|
287
|
+
iconSmall: 'iconSmall__1rv6t1ja'
|
|
288
288
|
};
|
|
289
289
|
var control = 'style__1rv6t1jc';
|
|
290
290
|
var input = 'style__1rv6t1jd';
|
|
@@ -306,7 +306,7 @@ function Addon({ className, align = 'inline-start', ...props }) {
|
|
|
306
306
|
...props
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
|
-
function InputGroup_Button({ className, type = 'button', variant = 'ghost', size = '
|
|
309
|
+
function InputGroup_Button({ className, type = 'button', variant = 'ghost', size = 'extraSmall', ...props }) {
|
|
310
310
|
return /*#__PURE__*/ jsx(Button_Button, {
|
|
311
311
|
type: type,
|
|
312
312
|
"data-size": size,
|
|
@@ -345,7 +345,7 @@ var chip = 'style__1udu12rh';
|
|
|
345
345
|
var chipRemove = 'style__1udu12rj';
|
|
346
346
|
var chipRemoveButton = 'style__1udu12rk';
|
|
347
347
|
var chipRemoveSize = {
|
|
348
|
-
|
|
348
|
+
iconExtraSmall: 'iconExtraSmall__1udu12rm'
|
|
349
349
|
};
|
|
350
350
|
var chipWithRemove = 'style__1udu12ri';
|
|
351
351
|
var chips = 'style__1udu12rg';
|
|
@@ -515,7 +515,7 @@ function Chip({ className, children, showRemove = true, ...props }) {
|
|
|
515
515
|
children: [
|
|
516
516
|
children,
|
|
517
517
|
showRemove && /*#__PURE__*/ jsx(Combobox.ChipRemove, {
|
|
518
|
-
className: clsx(chipRemove, chipRemoveButton, chipRemoveSize
|
|
518
|
+
className: clsx(chipRemove, chipRemoveButton, chipRemoveSize.iconExtraSmall),
|
|
519
519
|
"data-slot": "combobox-chip-remove",
|
|
520
520
|
children: /*#__PURE__*/ jsx(XIcon, {})
|
|
521
521
|
})
|
|
@@ -746,7 +746,7 @@ var group = 'style__hhcrfl4';
|
|
|
746
746
|
var groupCount = 'style__hhcrfl5';
|
|
747
747
|
var styles_css_image = 'style__hhcrfl1';
|
|
748
748
|
var Avatar_styles_css_root = 'style__hhcrfl0';
|
|
749
|
-
function Avatar_Avatar({ className, size = '
|
|
749
|
+
function Avatar_Avatar({ className, size = 'medium', ...props }) {
|
|
750
750
|
return /*#__PURE__*/ jsx(Avatar.Root, {
|
|
751
751
|
"data-slot": "avatar",
|
|
752
752
|
"data-size": size,
|
|
@@ -1502,7 +1502,7 @@ const ConfirmAction_useLogic_useLogic = ({ skipConfirm, onConfirm, confirmButton
|
|
|
1502
1502
|
};
|
|
1503
1503
|
const confirmButtonProps = {
|
|
1504
1504
|
variant: externalConfirmButtonProps?.isAccented ? 'destructive' : 'default',
|
|
1505
|
-
size: '
|
|
1505
|
+
size: 'small',
|
|
1506
1506
|
onClick: handleConfirm
|
|
1507
1507
|
};
|
|
1508
1508
|
const onActionComponentClick = ()=>{
|
|
@@ -1553,7 +1553,7 @@ const ConfirmAction = (props)=>{
|
|
|
1553
1553
|
className: actionsClass,
|
|
1554
1554
|
children: [
|
|
1555
1555
|
/*#__PURE__*/ jsx(Button_Button, {
|
|
1556
|
-
size: "
|
|
1556
|
+
size: "small",
|
|
1557
1557
|
variant: "ghost",
|
|
1558
1558
|
onClick: onCancel,
|
|
1559
1559
|
children: "Отмена"
|
|
@@ -1571,53 +1571,53 @@ const ConfirmAction = (props)=>{
|
|
|
1571
1571
|
});
|
|
1572
1572
|
};
|
|
1573
1573
|
var sizes = {
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1574
|
+
small: 'small__1o97kvm1',
|
|
1575
|
+
medium: 'medium__1o97kvm2',
|
|
1576
|
+
large: 'large__1o97kvm3'
|
|
1577
1577
|
};
|
|
1578
1578
|
var Image_styles_css_wrapper = 'style__1o97kvm0';
|
|
1579
1579
|
const Image_Image = (props)=>/*#__PURE__*/ jsx("img", {
|
|
1580
1580
|
alt: props.alt,
|
|
1581
1581
|
src: props.src,
|
|
1582
|
-
className: clsx_0(Image_styles_css_wrapper, sizes[props.size || '
|
|
1582
|
+
className: clsx_0(Image_styles_css_wrapper, sizes[props.size || 'medium'], props.className),
|
|
1583
1583
|
width: props.width,
|
|
1584
1584
|
height: props.height
|
|
1585
1585
|
});
|
|
1586
1586
|
const SIZE = {
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1587
|
+
small: 'small',
|
|
1588
|
+
medium: 'medium',
|
|
1589
|
+
large: 'large'
|
|
1590
1590
|
};
|
|
1591
1591
|
const IMAGE_WIDTH = {
|
|
1592
|
-
[SIZE.
|
|
1593
|
-
[SIZE.
|
|
1594
|
-
[SIZE.
|
|
1592
|
+
[SIZE.small]: '239px',
|
|
1593
|
+
[SIZE.medium]: '323px',
|
|
1594
|
+
[SIZE.large]: '458px'
|
|
1595
1595
|
};
|
|
1596
1596
|
const IMAGE_HEIGHT = {
|
|
1597
|
-
[SIZE.
|
|
1598
|
-
[SIZE.
|
|
1599
|
-
[SIZE.
|
|
1597
|
+
[SIZE.small]: '119px',
|
|
1598
|
+
[SIZE.medium]: '161px',
|
|
1599
|
+
[SIZE.large]: '229px'
|
|
1600
1600
|
};
|
|
1601
1601
|
const MAX_INNER_WIDTH = {
|
|
1602
|
-
[SIZE.
|
|
1603
|
-
[SIZE.
|
|
1604
|
-
[SIZE.
|
|
1602
|
+
[SIZE.small]: '384px',
|
|
1603
|
+
[SIZE.medium]: '400px',
|
|
1604
|
+
[SIZE.large]: '460px'
|
|
1605
1605
|
};
|
|
1606
1606
|
const TITLE_HEADER_LEVEL = {
|
|
1607
|
-
[SIZE.
|
|
1608
|
-
[SIZE.
|
|
1609
|
-
[SIZE.
|
|
1607
|
+
[SIZE.small]: 'subtitle1',
|
|
1608
|
+
[SIZE.medium]: 'h6',
|
|
1609
|
+
[SIZE.large]: 'h5'
|
|
1610
1610
|
};
|
|
1611
1611
|
var descriptionClass = 'style__1nenzg05';
|
|
1612
1612
|
var footerClass = 'style__1nenzg06';
|
|
1613
1613
|
var innerContainer = 'style__1nenzg04';
|
|
1614
1614
|
var styles_css_sizes = {
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1615
|
+
small: 'small__1nenzg01',
|
|
1616
|
+
medium: 'medium__1nenzg02',
|
|
1617
|
+
large: 'large__1nenzg03'
|
|
1618
1618
|
};
|
|
1619
1619
|
var Placeholder_styles_css_wrapper = 'style__1nenzg00';
|
|
1620
|
-
const Placeholder = ({ className, title, imgSrc, imgAlt, description, actions, size = '
|
|
1620
|
+
const Placeholder = ({ className, title, imgSrc, imgAlt, description, actions, size = 'small', renderImage })=>{
|
|
1621
1621
|
const RenderImage = useMemo(()=>renderImage || Image_Image, [
|
|
1622
1622
|
renderImage
|
|
1623
1623
|
]);
|
|
@@ -2014,13 +2014,11 @@ function HeaderCell({ column, height, width }) {
|
|
|
2014
2014
|
children: column.renderHeaderCell?.(column) || column.title
|
|
2015
2015
|
});
|
|
2016
2016
|
}
|
|
2017
|
-
var
|
|
2018
|
-
function Header_Header({ columns, height
|
|
2017
|
+
var headerRow = 'style__fkgoub0';
|
|
2018
|
+
function Header_Header({ columns, height }) {
|
|
2019
2019
|
return /*#__PURE__*/ jsx("thead", {
|
|
2020
2020
|
children: /*#__PURE__*/ jsx("tr", {
|
|
2021
|
-
className: clsx(
|
|
2022
|
-
[stickyClass]: sticky
|
|
2023
|
-
}),
|
|
2021
|
+
className: clsx(headerRow),
|
|
2024
2022
|
children: columns.map((col)=>/*#__PURE__*/ jsx(HeaderCell, {
|
|
2025
2023
|
column: col,
|
|
2026
2024
|
height: height,
|
|
@@ -2035,7 +2033,7 @@ var fullHeight = 'style__1gqvluf2';
|
|
|
2035
2033
|
var styles_css_loading = 'style__1gqvluf4';
|
|
2036
2034
|
var table = 'style__1gqvluf1';
|
|
2037
2035
|
var titleClass = 'style__1gqvluf5';
|
|
2038
|
-
function DataGrid({ rows, columns, height = '100%', className, rowHeight = 40, headerHeight = 40, keyId, onRowClick, isLoading, isDisabled, isError, emptyState, errorState, footer, title,
|
|
2036
|
+
function DataGrid({ rows, columns, height = '100%', className, rowHeight = 40, headerHeight = 40, keyId, onRowClick, isLoading, isDisabled, isError, emptyState, errorState, footer, title, onRetry }) {
|
|
2039
2037
|
const isFullHeight = isLoading || isError || 0 === rows.length;
|
|
2040
2038
|
return /*#__PURE__*/ jsxs("div", {
|
|
2041
2039
|
"data-slot": "data-grid",
|
|
@@ -2057,8 +2055,7 @@ function DataGrid({ rows, columns, height = '100%', className, rowHeight = 40, h
|
|
|
2057
2055
|
}),
|
|
2058
2056
|
/*#__PURE__*/ jsx(Header_Header, {
|
|
2059
2057
|
columns: columns,
|
|
2060
|
-
height: headerHeight
|
|
2061
|
-
sticky: stickyHeader
|
|
2058
|
+
height: headerHeight
|
|
2062
2059
|
}),
|
|
2063
2060
|
/*#__PURE__*/ jsx(Body, {
|
|
2064
2061
|
rows: rows,
|
|
@@ -2326,7 +2323,7 @@ const MainAction = ({ action, onActionClick, isDisabled, tooltipPlacement })=>{
|
|
|
2326
2323
|
...props,
|
|
2327
2324
|
key: nestedActionName,
|
|
2328
2325
|
render: /*#__PURE__*/ jsx(Button_Button, {
|
|
2329
|
-
size: "
|
|
2326
|
+
size: "small",
|
|
2330
2327
|
onClick: onActionClick(onClickNested),
|
|
2331
2328
|
children: nestedActionName
|
|
2332
2329
|
})
|
|
@@ -2364,7 +2361,7 @@ const SecondaryActions = ({ actions, onActionClick, tooltipPlacement, isDisabled
|
|
|
2364
2361
|
onClick: onActionClick(onClick),
|
|
2365
2362
|
isLoading: isLoading,
|
|
2366
2363
|
variant: "ghost",
|
|
2367
|
-
size: "
|
|
2364
|
+
size: "small",
|
|
2368
2365
|
fullWidth: true,
|
|
2369
2366
|
children: name
|
|
2370
2367
|
})
|
|
@@ -2477,7 +2474,7 @@ const ErrorState = ({ onRetry })=>/*#__PURE__*/ jsxs("li", {
|
|
|
2477
2474
|
children: ERROR_MESSAGE
|
|
2478
2475
|
}),
|
|
2479
2476
|
/*#__PURE__*/ jsx(Button_Button, {
|
|
2480
|
-
size: "
|
|
2477
|
+
size: "small",
|
|
2481
2478
|
onClick: onRetry,
|
|
2482
2479
|
children: "Попробовать снова"
|
|
2483
2480
|
})
|
|
@@ -2581,9 +2578,9 @@ var errorClass = 'style__1blk89u5';
|
|
|
2581
2578
|
var fullWidthClass = 'style__1blk89u3';
|
|
2582
2579
|
var styles_css_input = 'style__1blk89u6';
|
|
2583
2580
|
var Input_styles_css_sizes = {
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2581
|
+
small: 'small__1blk89u7',
|
|
2582
|
+
medium: 'medium__1blk89u8',
|
|
2583
|
+
large: 'large__1blk89u9'
|
|
2587
2584
|
};
|
|
2588
2585
|
var Input_styles_css_variants = {
|
|
2589
2586
|
outlined: 'outlined__1blk89u1',
|
|
@@ -2591,7 +2588,7 @@ var Input_styles_css_variants = {
|
|
|
2591
2588
|
};
|
|
2592
2589
|
var withEndAdornment = 'style__1blk89uc';
|
|
2593
2590
|
var withStartAdornment = 'style__1blk89ub';
|
|
2594
|
-
const Input_Input = ({ error, variant = 'outlined', size = '
|
|
2591
|
+
const Input_Input = ({ error, variant = 'outlined', size = 'medium', startAdornment, endAdornment, className, disabled, fullWidth, value, ref, ...props })=>/*#__PURE__*/ jsxs("div", {
|
|
2595
2592
|
className: clsx(Input_styles_css_container, Input_styles_css_variants[variant], {
|
|
2596
2593
|
[errorClass]: error
|
|
2597
2594
|
}, {
|
|
@@ -2942,7 +2939,7 @@ function Dialog_Content({ className, children, showCloseButton = true, ...props
|
|
|
2942
2939
|
"data-slot": "dialog-close",
|
|
2943
2940
|
render: /*#__PURE__*/ jsx(Button_Button, {
|
|
2944
2941
|
variant: "ghost",
|
|
2945
|
-
size: "
|
|
2942
|
+
size: "iconSmall",
|
|
2946
2943
|
className: styles_css_closeButton
|
|
2947
2944
|
}),
|
|
2948
2945
|
children: [
|
|
@@ -3944,9 +3941,9 @@ var activeClass = 'style__1pnwkko1';
|
|
|
3944
3941
|
var RangeInput_styles_css_container = 'style__1pnwkko0';
|
|
3945
3942
|
var inputClass = 'style__1pnwkko6';
|
|
3946
3943
|
var RangeInput_styles_css_sizes = {
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3944
|
+
small: 'small__1pnwkko2',
|
|
3945
|
+
medium: 'medium__1pnwkko3',
|
|
3946
|
+
large: 'large__1pnwkko4'
|
|
3950
3947
|
};
|
|
3951
3948
|
var sliderClass = 'style__1pnwkko7';
|
|
3952
3949
|
var styles_css_textClass = 'style__1pnwkko5';
|
|
@@ -3999,7 +3996,7 @@ const RangeInput_useLogic_useLogic_useLogic = ({ min, max, maxValue, minValue, o
|
|
|
3999
3996
|
onConfirm
|
|
4000
3997
|
};
|
|
4001
3998
|
};
|
|
4002
|
-
function RangeInput({ min, max, onChange, minValue, maxValue, width = 150, unit = '', size = '
|
|
3999
|
+
function RangeInput({ min, max, onChange, minValue, maxValue, width = 150, unit = '', size = 'medium', className, isActive, minInputRef, maxInputRef }) {
|
|
4003
4000
|
const { onMinValueChange, onMaxValueChange, minVal, maxVal, onKeyDown, onValueChange, onConfirm, minId, maxId } = RangeInput_useLogic_useLogic_useLogic({
|
|
4004
4001
|
min,
|
|
4005
4002
|
max,
|
|
@@ -4108,9 +4105,9 @@ var Select_styles_css_positioner = 'style__5ilg7o7';
|
|
|
4108
4105
|
var scrollButton = 'style__5ilg7o6';
|
|
4109
4106
|
var Select_styles_css_separator = 'style__5ilg7od';
|
|
4110
4107
|
var Select_styles_css_sizes = {
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4108
|
+
small: 'small__5ilg7o3',
|
|
4109
|
+
medium: 'medium__5ilg7o4',
|
|
4110
|
+
large: 'large__5ilg7o5'
|
|
4114
4111
|
};
|
|
4115
4112
|
var Select_styles_css_trigger = 'style__5ilg7o2';
|
|
4116
4113
|
var styles_css_viewport = 'style__5ilg7o9';
|
|
@@ -4122,7 +4119,7 @@ const Select_Select = ({ onValueChange, ...props })=>/*#__PURE__*/ jsx(Select.Ro
|
|
|
4122
4119
|
});
|
|
4123
4120
|
const SelectGroup = Select.Group;
|
|
4124
4121
|
const SelectValue = Select.Value;
|
|
4125
|
-
const SelectTrigger = ({ className, children, size = '
|
|
4122
|
+
const SelectTrigger = ({ className, children, size = 'medium', ...props })=>/*#__PURE__*/ jsxs(Select.Trigger, {
|
|
4126
4123
|
"data-slot": "select-trigger",
|
|
4127
4124
|
className: clsx(Select_styles_css_trigger, Select_styles_css_sizes[size], className),
|
|
4128
4125
|
...props,
|
|
@@ -4255,7 +4252,7 @@ function Sheet_Content({ className, children, side = 'right', showCloseButton =
|
|
|
4255
4252
|
render: /*#__PURE__*/ jsx(Button_Button, {
|
|
4256
4253
|
variant: "ghost",
|
|
4257
4254
|
className: Sheet_styles_css_closeButton,
|
|
4258
|
-
size: "
|
|
4255
|
+
size: "iconSmall"
|
|
4259
4256
|
}),
|
|
4260
4257
|
children: [
|
|
4261
4258
|
/*#__PURE__*/ jsx(XIcon, {}),
|
|
@@ -4326,9 +4323,9 @@ var menuAction = 'style__1xiua9nu';
|
|
|
4326
4323
|
var menuBadge = 'style__1xiua9nv';
|
|
4327
4324
|
var menuButton = 'style__1xiua9no';
|
|
4328
4325
|
var menuButtonSizes = {
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4326
|
+
medium: 'medium__1xiua9nr',
|
|
4327
|
+
small: 'small__1xiua9ns',
|
|
4328
|
+
large: 'large__1xiua9nt'
|
|
4332
4329
|
};
|
|
4333
4330
|
var menuButtonVariants = {
|
|
4334
4331
|
default: 'default__1xiua9np',
|
|
@@ -4339,8 +4336,8 @@ var menuSkeleton = 'style__1xiua9nw';
|
|
|
4339
4336
|
var menuSub = 'style__1xiua9n10';
|
|
4340
4337
|
var menuSubButton = 'style__1xiua9n12';
|
|
4341
4338
|
var menuSubButtonSizes = {
|
|
4342
|
-
|
|
4343
|
-
|
|
4339
|
+
small: 'small__1xiua9n13',
|
|
4340
|
+
medium: 'medium__1xiua9n14'
|
|
4344
4341
|
};
|
|
4345
4342
|
var menuSubItem = 'style__1xiua9n11';
|
|
4346
4343
|
var mobileContent = 'style__1xiua9n7';
|
|
@@ -4646,7 +4643,7 @@ function getTooltipProps(tooltip) {
|
|
|
4646
4643
|
...props
|
|
4647
4644
|
};
|
|
4648
4645
|
}
|
|
4649
|
-
function MenuButton({ isActive = false, variant = 'default', size = '
|
|
4646
|
+
function MenuButton({ isActive = false, variant = 'default', size = 'medium', tooltip, className, render, ...props }) {
|
|
4650
4647
|
const { isMobile, state } = useSidebar();
|
|
4651
4648
|
const button = useRender({
|
|
4652
4649
|
defaultTagName: 'button',
|
|
@@ -4726,7 +4723,7 @@ function MenuSubItem({ className, ...props }) {
|
|
|
4726
4723
|
...props
|
|
4727
4724
|
});
|
|
4728
4725
|
}
|
|
4729
|
-
function MenuSubButton({ size = '
|
|
4726
|
+
function MenuSubButton({ size = 'medium', isActive = false, className, render, ...props }) {
|
|
4730
4727
|
return useRender({
|
|
4731
4728
|
defaultTagName: 'a',
|
|
4732
4729
|
render,
|
|
@@ -4766,9 +4763,9 @@ const Sidebar_Sidebar = Object.assign(SidebarRoot, {
|
|
|
4766
4763
|
var Tabs_styles_css_contentClass = 'style__hworoa5';
|
|
4767
4764
|
var listClass = 'style__hworoa0';
|
|
4768
4765
|
var Tabs_styles_css_sizes = {
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4766
|
+
small: 'small__hworoa2',
|
|
4767
|
+
medium: 'medium__hworoa3',
|
|
4768
|
+
large: 'large__hworoa4'
|
|
4772
4769
|
};
|
|
4773
4770
|
var styles_css_triggerClass = 'style__hworoa1';
|
|
4774
4771
|
const TabsContent = ({ className, ...props })=>/*#__PURE__*/ jsx(Tabs.Panel, {
|
|
@@ -4781,7 +4778,7 @@ const TabsList = ({ className, ...props })=>/*#__PURE__*/ jsx(Tabs.List, {
|
|
|
4781
4778
|
className: clsx(listClass, className),
|
|
4782
4779
|
...props
|
|
4783
4780
|
});
|
|
4784
|
-
const TabsTrigger = ({ className, size = '
|
|
4781
|
+
const TabsTrigger = ({ className, size = 'medium', ...props })=>/*#__PURE__*/ jsx(Tabs.Tab, {
|
|
4785
4782
|
"data-slot": "tabs-trigger",
|
|
4786
4783
|
className: clsx(styles_css_triggerClass, Tabs_styles_css_sizes[size], className),
|
|
4787
4784
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Button.stories.tsx"],"names":[],"mappings":";;;;;;;;AAGA,wBAOgC;AAGhC,eAAO,MAAM,OAAO,mCAAiC,CAAC;AAEtD,eAAO,MAAM,OAAO,mCAAmD,CAAC;AAExE,eAAO,MAAM,WAAW,mCAEvB,CAAC;AAEF,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Button.stories.tsx"],"names":[],"mappings":";;;;;;;;AAGA,wBAOgC;AAGhC,eAAO,MAAM,OAAO,mCAAiC,CAAC;AAEtD,eAAO,MAAM,OAAO,mCAAmD,CAAC;AAExE,eAAO,MAAM,WAAW,mCAEvB,CAAC;AAEF,eAAO,MAAM,KAAK,mCAA4C,CAAC;AAE/D,eAAO,MAAM,KAAK,mCAA4C,CAAC;AAE/D,eAAO,MAAM,IAAI,mCAA6C,CAAC;AAE/D,eAAO,MAAM,KAAK,mCAA+C,CAAC;AAElE,eAAO,MAAM,QAAQ,mCAMpB,CAAC;AAEF,eAAO,MAAM,OAAO,mCAA2C,CAAC;AAEhE,eAAO,MAAM,cAAc,mCAE1B,CAAC;AAEF,eAAO,MAAM,UAAU,mCAEtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataGrid.stories.d.ts","sourceRoot":"","sources":["../../src/stories/DataGrid.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,EACN,QAAQ,EAMR,MAAM,cAAc,CAAC;;;;;;;;;AAGtB,wBAOkC;AA6JlC,eAAO,MAAM,WAAW,mCAMvB,CAAC;AAEF,eAAO,MAAM,WAAW,mCA6BvB,CAAC;AAEF,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"DataGrid.stories.d.ts","sourceRoot":"","sources":["../../src/stories/DataGrid.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,EACN,QAAQ,EAMR,MAAM,cAAc,CAAC;;;;;;;;;AAGtB,wBAOkC;AA6JlC,eAAO,MAAM,WAAW,mCAMvB,CAAC;AAEF,eAAO,MAAM,WAAW,mCA6BvB,CAAC;AAEF,eAAO,MAAM,WAAW,mCAmDvB,CAAC;AAEF,eAAO,MAAM,OAAO,mCAEnB,CAAC;AAEF,eAAO,MAAM,UAAU,mCAEtB,CAAC;AAEF,eAAO,MAAM,UAAU,mCAEtB,CAAC;AAEF,eAAO,MAAM,cAAc,mCAsB1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Input.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAU,KAAK,EAAE,MAAM,cAAc,CAAC;wBASxC,IAAI,CAAC,OAAO,KAAK,CAAC;AAPvB,wBAOwB;AAExB,eAAO,MAAM,OAAO,mCAsCnB,CAAC;AAEF,eAAO,MAAM,QAAQ,mCAEpB,CAAC;AAEF,eAAO,MAAM,KAAK,mCAEjB,CAAC;AAEF,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"Input.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Input.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAU,KAAK,EAAE,MAAM,cAAc,CAAC;wBASxC,IAAI,CAAC,OAAO,KAAK,CAAC;AAPvB,wBAOwB;AAExB,eAAO,MAAM,OAAO,mCAsCnB,CAAC;AAEF,eAAO,MAAM,QAAQ,mCAEpB,CAAC;AAEF,eAAO,MAAM,KAAK,mCAEjB,CAAC;AAEF,eAAO,MAAM,cAAc,mCAO1B,CAAC;AAEF,eAAO,MAAM,QAAQ,mCAOpB,CAAC;AAEF,eAAO,MAAM,aAAa,mCAOzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputGroup.stories.d.ts","sourceRoot":"","sources":["../../src/stories/InputGroup.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;wBASrC,IAAI,CAAC,OAAO,UAAU,CAAC;AAP5B,wBAO6B;AAE7B,wBAAgB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"InputGroup.stories.d.ts","sourceRoot":"","sources":["../../src/stories/InputGroup.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;wBASrC,IAAI,CAAC,OAAO,UAAU,CAAC;AAP5B,wBAO6B;AAE7B,wBAAgB,gBAAgB,gCAkB/B;AAED,wBAAgB,aAAa,gCAS5B;AAED,wBAAgB,YAAY,gCAS3B"}
|
|
@@ -12,7 +12,7 @@ declare const _default: {
|
|
|
12
12
|
}[];
|
|
13
13
|
value: Multiple extends true ? T[] : T;
|
|
14
14
|
onChange: (value: Multiple extends true ? T[] : T) => void;
|
|
15
|
-
size?: "
|
|
15
|
+
size?: "small" | "large" | "medium" | "icon";
|
|
16
16
|
className?: string;
|
|
17
17
|
label?: string;
|
|
18
18
|
multiple?: Multiple | undefined;
|