@trackunit/react-components 0.1.127 → 0.1.129
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/index.cjs +0 -178
- package/index.js +1 -170
- package/package.json +2 -2
- package/src/index.d.ts +0 -1
- package/src/layout/helper/MinTopFullContentLayout.d.ts +0 -18
- package/src/layout/index.d.ts +0 -6
- package/src/layout/responsive/FilterListMapLayout.d.ts +0 -15
- package/src/layout/responsive/FullWidthRepeatingLayout.d.ts +0 -19
- package/src/layout/responsive/GridArea.d.ts +0 -13
- package/src/layout/responsive/IntrinsicallyResponsiveGrid.d.ts +0 -32
- package/src/layout/responsive/TitleNavContentLayout.d.ts +0 -28
package/index.cjs
CHANGED
|
@@ -38995,175 +38995,6 @@ const cvaClickable = cssClassVarianceUtilities.cvaMerge([
|
|
|
38995
38995
|
},
|
|
38996
38996
|
});
|
|
38997
38997
|
|
|
38998
|
-
/**
|
|
38999
|
-
* The MinTopFullContentLayout component.
|
|
39000
|
-
*
|
|
39001
|
-
* @param {MinTopFullContentLayoutProps} props - The props for the MinTopFullContentLayout component
|
|
39002
|
-
* @returns {JSX.Element} MinTopFullContentLayout component
|
|
39003
|
-
*/
|
|
39004
|
-
const MinTopFullContentLayout = ({ children, className, dataTestId }) => (jsxRuntime.jsx(Layout$4, { className: className, "data-testid": dataTestId, children: children }));
|
|
39005
|
-
const Layout$4 = tailwindStyledComponents.tw.span `
|
|
39006
|
-
grid
|
|
39007
|
-
h-full
|
|
39008
|
-
grid-rows-min-fr
|
|
39009
|
-
`;
|
|
39010
|
-
|
|
39011
|
-
/**
|
|
39012
|
-
* Responsive layout component setting up three grid areas
|
|
39013
|
-
* one for filtering, (result-)list and (result-map)
|
|
39014
|
-
*
|
|
39015
|
-
* List needs to handle its own min size - and map takes up the rest.
|
|
39016
|
-
*
|
|
39017
|
-
* @param {FilterListMapLayoutProps} props - The props for the FilterListMapLayout component
|
|
39018
|
-
* @returns {JSX.Element} FilterListMapLayout component
|
|
39019
|
-
*/
|
|
39020
|
-
const FilterListMapLayout = ({ children }) => jsxRuntime.jsx(Layout$3, { children: children });
|
|
39021
|
-
const Layout$3 = tailwindStyledComponents.tw.span `
|
|
39022
|
-
tu-layout-FilterListMap
|
|
39023
|
-
`;
|
|
39024
|
-
|
|
39025
|
-
/**
|
|
39026
|
-
* Layout component with repeating full width areas, default one height fraction each but option to use content height instead
|
|
39027
|
-
* Row min height can optionally be set here or managed by children
|
|
39028
|
-
* Scrolling happens if/when children's a min-height is reached
|
|
39029
|
-
*
|
|
39030
|
-
* @param {FullWidthRepeatingLayoutProps} props - The props for the FullWidthRepeatingLayout component
|
|
39031
|
-
* @returns {JSX.Element} FullWidthRepeatingLayout component
|
|
39032
|
-
*/
|
|
39033
|
-
const FullWidthRepeatingLayout = ({ children, rowSizing = "Unmanaged", rowMinHeight, dataTestId, className, }) => (jsxRuntime.jsx(Layout$2, { "data-testid": dataTestId, className: className, "$rowSizing": rowSizing, "$rowMinHeight": rowMinHeight !== null && rowMinHeight !== void 0 ? rowMinHeight : 0, children: children }));
|
|
39034
|
-
const Layout$2 = tailwindStyledComponents.tw.span `
|
|
39035
|
-
tu-layout-FullWidthRepeatingLayout
|
|
39036
|
-
|
|
39037
|
-
${({ $rowSizing }) => {
|
|
39038
|
-
switch ($rowSizing) {
|
|
39039
|
-
case "MinContent":
|
|
39040
|
-
return tailwindStyledComponents.tws ` tu-layout-FullWidthRepeatingLayout--MinContent`;
|
|
39041
|
-
case "Equal":
|
|
39042
|
-
return tailwindStyledComponents.tws ` tu-layout-FullWidthRepeatingLayout--Equal`;
|
|
39043
|
-
case "Unmanaged":
|
|
39044
|
-
default:
|
|
39045
|
-
return null;
|
|
39046
|
-
}
|
|
39047
|
-
}}
|
|
39048
|
-
`;
|
|
39049
|
-
|
|
39050
|
-
/**
|
|
39051
|
-
* Simply applies a Grid Area to the element
|
|
39052
|
-
*
|
|
39053
|
-
* @param {GridAreaProps} props - The props for the GridArea component
|
|
39054
|
-
* @returns {JSX.Element} GridArea component
|
|
39055
|
-
*/
|
|
39056
|
-
const GridArea = ({ area, dataTestId, className, children }) => (jsxRuntime.jsx("section", { className: className, "data-testid": dataTestId, style: { gridArea: area }, children: children }));
|
|
39057
|
-
|
|
39058
|
-
/**
|
|
39059
|
-
* A grid container that has a flexible number of columns.
|
|
39060
|
-
* Adds more columns if constraints allow it, otherwise wraps to next row
|
|
39061
|
-
*
|
|
39062
|
-
* @param {IntrinsicallyResponsiveGridProps} props - The props for the IntrinsicallyResponsiveGrid component
|
|
39063
|
-
* @returns {JSX.Element} IntrinsicallyResponsiveGrid component
|
|
39064
|
-
*/
|
|
39065
|
-
const IntrinsicallyResponsiveGrid = ({ children, occupation = "auto-fill", minColumnWidth = "md", rowHeight = "1fr", gap = "auto", dataTestId, className, }) => {
|
|
39066
|
-
return (jsxRuntime.jsx(Layout$1, { "$minColumnWidth": minColumnWidth, "data-testid": dataTestId, "$gap": gap, "$rowHeight": rowHeight, "$occupation": occupation, className: className, children: children }));
|
|
39067
|
-
};
|
|
39068
|
-
const Layout$1 = tailwindStyledComponents.tw.span `
|
|
39069
|
-
empty:hidden
|
|
39070
|
-
tu-layout-IntrinsicallyResponsiveGrid
|
|
39071
|
-
${({ $occupation }) => {
|
|
39072
|
-
switch ($occupation) {
|
|
39073
|
-
case "auto-fit":
|
|
39074
|
-
return tailwindStyledComponents.tws `tu-layout-IntrinsicallyResponsiveGrid--fit`;
|
|
39075
|
-
case "auto-fill":
|
|
39076
|
-
default:
|
|
39077
|
-
return tailwindStyledComponents.tws `tu-layout-IntrinsicallyResponsiveGrid--fill`;
|
|
39078
|
-
}
|
|
39079
|
-
}}
|
|
39080
|
-
|
|
39081
|
-
${({ $minColumnWidth }) => {
|
|
39082
|
-
switch ($minColumnWidth) {
|
|
39083
|
-
case "xs":
|
|
39084
|
-
return tailwindStyledComponents.tws `tu-layout-IntrinsicallyResponsiveGrid--xs`;
|
|
39085
|
-
case "sm":
|
|
39086
|
-
return tailwindStyledComponents.tws `tu-layout-IntrinsicallyResponsiveGrid--sm`;
|
|
39087
|
-
case "lg":
|
|
39088
|
-
return tailwindStyledComponents.tws `tu-layout-IntrinsicallyResponsiveGrid--lg`;
|
|
39089
|
-
case "xl":
|
|
39090
|
-
return tailwindStyledComponents.tws `tu-layout-IntrinsicallyResponsiveGrid--xl`;
|
|
39091
|
-
case "md":
|
|
39092
|
-
default:
|
|
39093
|
-
return tailwindStyledComponents.tws `tu-layout-IntrinsicallyResponsiveGrid--md`;
|
|
39094
|
-
}
|
|
39095
|
-
}}
|
|
39096
|
-
|
|
39097
|
-
${({ $gap }) => {
|
|
39098
|
-
switch ($gap) {
|
|
39099
|
-
case "tiny":
|
|
39100
|
-
return tailwindStyledComponents.tws `gap-1`;
|
|
39101
|
-
case "mini":
|
|
39102
|
-
return tailwindStyledComponents.tws `gap-2`;
|
|
39103
|
-
case "small":
|
|
39104
|
-
return tailwindStyledComponents.tws `gap-3`;
|
|
39105
|
-
case "medium":
|
|
39106
|
-
return tailwindStyledComponents.tws `gap-4`;
|
|
39107
|
-
case "large":
|
|
39108
|
-
return tailwindStyledComponents.tws `gap-6`;
|
|
39109
|
-
case "giant":
|
|
39110
|
-
return tailwindStyledComponents.tws `gap-8`;
|
|
39111
|
-
case "enormous":
|
|
39112
|
-
return tailwindStyledComponents.tws `gap-10`;
|
|
39113
|
-
case "none":
|
|
39114
|
-
return tailwindStyledComponents.tws `gap-0`;
|
|
39115
|
-
case "inherit":
|
|
39116
|
-
return tailwindStyledComponents.tws `gap-[inherit]`;
|
|
39117
|
-
case "auto":
|
|
39118
|
-
default:
|
|
39119
|
-
return tailwindStyledComponents.tws `gap-responsive-space`;
|
|
39120
|
-
}
|
|
39121
|
-
}};
|
|
39122
|
-
|
|
39123
|
-
${({ $rowHeight }) => {
|
|
39124
|
-
switch ($rowHeight) {
|
|
39125
|
-
case "auto":
|
|
39126
|
-
return tailwindStyledComponents.tws `tu-layout-IntrinsicallyResponsiveGrid--row-auto`;
|
|
39127
|
-
case "1fr":
|
|
39128
|
-
default:
|
|
39129
|
-
return tailwindStyledComponents.tws `tu-layout-IntrinsicallyResponsiveGrid--row-1fr`;
|
|
39130
|
-
}
|
|
39131
|
-
}};
|
|
39132
|
-
`;
|
|
39133
|
-
|
|
39134
|
-
/**
|
|
39135
|
-
* The TitleNavContentLayout.
|
|
39136
|
-
* Use the `TitleGridArea`, `NavGridArea` and `ContentGridArea` components to define the layout elements.
|
|
39137
|
-
*
|
|
39138
|
-
* @param {TitleNavContentLayoutProps} props - The props for the TitleNavContentLayout component
|
|
39139
|
-
* @returns {JSX.Element} TitleNavContentLayout component
|
|
39140
|
-
*/
|
|
39141
|
-
const TitleNavContentLayout = ({ children, className }) => (jsxRuntime.jsx(Layout, { className: className, children: children }));
|
|
39142
|
-
const Layout = tailwindStyledComponents.tw.div `
|
|
39143
|
-
tu-layout-TitleNavContentLayout
|
|
39144
|
-
lg:tu-layout-TitleNavContentLayout-lg
|
|
39145
|
-
`;
|
|
39146
|
-
/**
|
|
39147
|
-
* A component to define the title area of the TitleNavContentLayout.
|
|
39148
|
-
*/
|
|
39149
|
-
const TitleGridArea = tailwindStyledComponents.tw.header `
|
|
39150
|
-
tu-layout-area-title
|
|
39151
|
-
`;
|
|
39152
|
-
/**
|
|
39153
|
-
* A component to define the navigation area of the TitleNavContentLayout.
|
|
39154
|
-
* Adds the needed left padding on large screens.
|
|
39155
|
-
*/
|
|
39156
|
-
const NavGridArea = tailwindStyledComponents.tw.aside `
|
|
39157
|
-
tu-layout-area-nav
|
|
39158
|
-
`;
|
|
39159
|
-
/**
|
|
39160
|
-
* A component to define the content area of the TitleNavContentLayout.
|
|
39161
|
-
* Adds the needed right padding on large screens.
|
|
39162
|
-
*/
|
|
39163
|
-
const ContentGridArea = tailwindStyledComponents.tw.article `
|
|
39164
|
-
tu-layout-area-content
|
|
39165
|
-
`;
|
|
39166
|
-
|
|
39167
38998
|
exports.Alert = Alert;
|
|
39168
38999
|
exports.Badge = Badge;
|
|
39169
39000
|
exports.Button = Button$1;
|
|
@@ -39172,7 +39003,6 @@ exports.CardBody = CardBody;
|
|
|
39172
39003
|
exports.CardFooter = CardFooter;
|
|
39173
39004
|
exports.CardHeader = CardHeader;
|
|
39174
39005
|
exports.Collapse = Collapse;
|
|
39175
|
-
exports.ContentGridArea = ContentGridArea;
|
|
39176
39006
|
exports.CopyableText = CopyableText;
|
|
39177
39007
|
exports.DayPicker = DayPicker;
|
|
39178
39008
|
exports.DayPickerPopover = DayPickerPopover;
|
|
@@ -39181,21 +39011,15 @@ exports.DensityContainer = DensityContainer;
|
|
|
39181
39011
|
exports.Drawer = Drawer;
|
|
39182
39012
|
exports.EmptyState = EmptyState;
|
|
39183
39013
|
exports.ExternalLink = ExternalLink;
|
|
39184
|
-
exports.FilterListMapLayout = FilterListMapLayout;
|
|
39185
|
-
exports.FullWidthRepeatingLayout = FullWidthRepeatingLayout;
|
|
39186
|
-
exports.GridArea = GridArea;
|
|
39187
39014
|
exports.Heading = Heading;
|
|
39188
39015
|
exports.Icon = Icon;
|
|
39189
39016
|
exports.IconButton = IconButton;
|
|
39190
39017
|
exports.Indicator = Indicator;
|
|
39191
|
-
exports.IntrinsicallyResponsiveGrid = IntrinsicallyResponsiveGrid;
|
|
39192
39018
|
exports.MenuItem = MenuItem;
|
|
39193
39019
|
exports.MenuList = MenuList;
|
|
39194
|
-
exports.MinTopFullContentLayout = MinTopFullContentLayout;
|
|
39195
39020
|
exports.Modal = Modal;
|
|
39196
39021
|
exports.ModalBackdrop = ModalBackdrop;
|
|
39197
39022
|
exports.MoreMenu = MoreMenu;
|
|
39198
|
-
exports.NavGridArea = NavGridArea;
|
|
39199
39023
|
exports.PageHeader = PageHeader;
|
|
39200
39024
|
exports.Pagination = Pagination;
|
|
39201
39025
|
exports.Popover = Popover;
|
|
@@ -39215,8 +39039,6 @@ exports.Text = Text;
|
|
|
39215
39039
|
exports.Timeline = Timeline;
|
|
39216
39040
|
exports.TimelineElement = TimelineElement;
|
|
39217
39041
|
exports.Tip = Tip;
|
|
39218
|
-
exports.TitleGridArea = TitleGridArea;
|
|
39219
|
-
exports.TitleNavContentLayout = TitleNavContentLayout;
|
|
39220
39042
|
exports.Tooltip = Tooltip;
|
|
39221
39043
|
exports.ValueBar = ValueBar;
|
|
39222
39044
|
exports.cvaButton = cvaButton;
|
package/index.js
CHANGED
|
@@ -38968,173 +38968,4 @@ const cvaClickable = cvaMerge([
|
|
|
38968
38968
|
},
|
|
38969
38969
|
});
|
|
38970
38970
|
|
|
38971
|
-
|
|
38972
|
-
* The MinTopFullContentLayout component.
|
|
38973
|
-
*
|
|
38974
|
-
* @param {MinTopFullContentLayoutProps} props - The props for the MinTopFullContentLayout component
|
|
38975
|
-
* @returns {JSX.Element} MinTopFullContentLayout component
|
|
38976
|
-
*/
|
|
38977
|
-
const MinTopFullContentLayout = ({ children, className, dataTestId }) => (jsx(Layout$4, { className: className, "data-testid": dataTestId, children: children }));
|
|
38978
|
-
const Layout$4 = tw.span `
|
|
38979
|
-
grid
|
|
38980
|
-
h-full
|
|
38981
|
-
grid-rows-min-fr
|
|
38982
|
-
`;
|
|
38983
|
-
|
|
38984
|
-
/**
|
|
38985
|
-
* Responsive layout component setting up three grid areas
|
|
38986
|
-
* one for filtering, (result-)list and (result-map)
|
|
38987
|
-
*
|
|
38988
|
-
* List needs to handle its own min size - and map takes up the rest.
|
|
38989
|
-
*
|
|
38990
|
-
* @param {FilterListMapLayoutProps} props - The props for the FilterListMapLayout component
|
|
38991
|
-
* @returns {JSX.Element} FilterListMapLayout component
|
|
38992
|
-
*/
|
|
38993
|
-
const FilterListMapLayout = ({ children }) => jsx(Layout$3, { children: children });
|
|
38994
|
-
const Layout$3 = tw.span `
|
|
38995
|
-
tu-layout-FilterListMap
|
|
38996
|
-
`;
|
|
38997
|
-
|
|
38998
|
-
/**
|
|
38999
|
-
* Layout component with repeating full width areas, default one height fraction each but option to use content height instead
|
|
39000
|
-
* Row min height can optionally be set here or managed by children
|
|
39001
|
-
* Scrolling happens if/when children's a min-height is reached
|
|
39002
|
-
*
|
|
39003
|
-
* @param {FullWidthRepeatingLayoutProps} props - The props for the FullWidthRepeatingLayout component
|
|
39004
|
-
* @returns {JSX.Element} FullWidthRepeatingLayout component
|
|
39005
|
-
*/
|
|
39006
|
-
const FullWidthRepeatingLayout = ({ children, rowSizing = "Unmanaged", rowMinHeight, dataTestId, className, }) => (jsx(Layout$2, { "data-testid": dataTestId, className: className, "$rowSizing": rowSizing, "$rowMinHeight": rowMinHeight !== null && rowMinHeight !== void 0 ? rowMinHeight : 0, children: children }));
|
|
39007
|
-
const Layout$2 = tw.span `
|
|
39008
|
-
tu-layout-FullWidthRepeatingLayout
|
|
39009
|
-
|
|
39010
|
-
${({ $rowSizing }) => {
|
|
39011
|
-
switch ($rowSizing) {
|
|
39012
|
-
case "MinContent":
|
|
39013
|
-
return tws ` tu-layout-FullWidthRepeatingLayout--MinContent`;
|
|
39014
|
-
case "Equal":
|
|
39015
|
-
return tws ` tu-layout-FullWidthRepeatingLayout--Equal`;
|
|
39016
|
-
case "Unmanaged":
|
|
39017
|
-
default:
|
|
39018
|
-
return null;
|
|
39019
|
-
}
|
|
39020
|
-
}}
|
|
39021
|
-
`;
|
|
39022
|
-
|
|
39023
|
-
/**
|
|
39024
|
-
* Simply applies a Grid Area to the element
|
|
39025
|
-
*
|
|
39026
|
-
* @param {GridAreaProps} props - The props for the GridArea component
|
|
39027
|
-
* @returns {JSX.Element} GridArea component
|
|
39028
|
-
*/
|
|
39029
|
-
const GridArea = ({ area, dataTestId, className, children }) => (jsx("section", { className: className, "data-testid": dataTestId, style: { gridArea: area }, children: children }));
|
|
39030
|
-
|
|
39031
|
-
/**
|
|
39032
|
-
* A grid container that has a flexible number of columns.
|
|
39033
|
-
* Adds more columns if constraints allow it, otherwise wraps to next row
|
|
39034
|
-
*
|
|
39035
|
-
* @param {IntrinsicallyResponsiveGridProps} props - The props for the IntrinsicallyResponsiveGrid component
|
|
39036
|
-
* @returns {JSX.Element} IntrinsicallyResponsiveGrid component
|
|
39037
|
-
*/
|
|
39038
|
-
const IntrinsicallyResponsiveGrid = ({ children, occupation = "auto-fill", minColumnWidth = "md", rowHeight = "1fr", gap = "auto", dataTestId, className, }) => {
|
|
39039
|
-
return (jsx(Layout$1, { "$minColumnWidth": minColumnWidth, "data-testid": dataTestId, "$gap": gap, "$rowHeight": rowHeight, "$occupation": occupation, className: className, children: children }));
|
|
39040
|
-
};
|
|
39041
|
-
const Layout$1 = tw.span `
|
|
39042
|
-
empty:hidden
|
|
39043
|
-
tu-layout-IntrinsicallyResponsiveGrid
|
|
39044
|
-
${({ $occupation }) => {
|
|
39045
|
-
switch ($occupation) {
|
|
39046
|
-
case "auto-fit":
|
|
39047
|
-
return tws `tu-layout-IntrinsicallyResponsiveGrid--fit`;
|
|
39048
|
-
case "auto-fill":
|
|
39049
|
-
default:
|
|
39050
|
-
return tws `tu-layout-IntrinsicallyResponsiveGrid--fill`;
|
|
39051
|
-
}
|
|
39052
|
-
}}
|
|
39053
|
-
|
|
39054
|
-
${({ $minColumnWidth }) => {
|
|
39055
|
-
switch ($minColumnWidth) {
|
|
39056
|
-
case "xs":
|
|
39057
|
-
return tws `tu-layout-IntrinsicallyResponsiveGrid--xs`;
|
|
39058
|
-
case "sm":
|
|
39059
|
-
return tws `tu-layout-IntrinsicallyResponsiveGrid--sm`;
|
|
39060
|
-
case "lg":
|
|
39061
|
-
return tws `tu-layout-IntrinsicallyResponsiveGrid--lg`;
|
|
39062
|
-
case "xl":
|
|
39063
|
-
return tws `tu-layout-IntrinsicallyResponsiveGrid--xl`;
|
|
39064
|
-
case "md":
|
|
39065
|
-
default:
|
|
39066
|
-
return tws `tu-layout-IntrinsicallyResponsiveGrid--md`;
|
|
39067
|
-
}
|
|
39068
|
-
}}
|
|
39069
|
-
|
|
39070
|
-
${({ $gap }) => {
|
|
39071
|
-
switch ($gap) {
|
|
39072
|
-
case "tiny":
|
|
39073
|
-
return tws `gap-1`;
|
|
39074
|
-
case "mini":
|
|
39075
|
-
return tws `gap-2`;
|
|
39076
|
-
case "small":
|
|
39077
|
-
return tws `gap-3`;
|
|
39078
|
-
case "medium":
|
|
39079
|
-
return tws `gap-4`;
|
|
39080
|
-
case "large":
|
|
39081
|
-
return tws `gap-6`;
|
|
39082
|
-
case "giant":
|
|
39083
|
-
return tws `gap-8`;
|
|
39084
|
-
case "enormous":
|
|
39085
|
-
return tws `gap-10`;
|
|
39086
|
-
case "none":
|
|
39087
|
-
return tws `gap-0`;
|
|
39088
|
-
case "inherit":
|
|
39089
|
-
return tws `gap-[inherit]`;
|
|
39090
|
-
case "auto":
|
|
39091
|
-
default:
|
|
39092
|
-
return tws `gap-responsive-space`;
|
|
39093
|
-
}
|
|
39094
|
-
}};
|
|
39095
|
-
|
|
39096
|
-
${({ $rowHeight }) => {
|
|
39097
|
-
switch ($rowHeight) {
|
|
39098
|
-
case "auto":
|
|
39099
|
-
return tws `tu-layout-IntrinsicallyResponsiveGrid--row-auto`;
|
|
39100
|
-
case "1fr":
|
|
39101
|
-
default:
|
|
39102
|
-
return tws `tu-layout-IntrinsicallyResponsiveGrid--row-1fr`;
|
|
39103
|
-
}
|
|
39104
|
-
}};
|
|
39105
|
-
`;
|
|
39106
|
-
|
|
39107
|
-
/**
|
|
39108
|
-
* The TitleNavContentLayout.
|
|
39109
|
-
* Use the `TitleGridArea`, `NavGridArea` and `ContentGridArea` components to define the layout elements.
|
|
39110
|
-
*
|
|
39111
|
-
* @param {TitleNavContentLayoutProps} props - The props for the TitleNavContentLayout component
|
|
39112
|
-
* @returns {JSX.Element} TitleNavContentLayout component
|
|
39113
|
-
*/
|
|
39114
|
-
const TitleNavContentLayout = ({ children, className }) => (jsx(Layout, { className: className, children: children }));
|
|
39115
|
-
const Layout = tw.div `
|
|
39116
|
-
tu-layout-TitleNavContentLayout
|
|
39117
|
-
lg:tu-layout-TitleNavContentLayout-lg
|
|
39118
|
-
`;
|
|
39119
|
-
/**
|
|
39120
|
-
* A component to define the title area of the TitleNavContentLayout.
|
|
39121
|
-
*/
|
|
39122
|
-
const TitleGridArea = tw.header `
|
|
39123
|
-
tu-layout-area-title
|
|
39124
|
-
`;
|
|
39125
|
-
/**
|
|
39126
|
-
* A component to define the navigation area of the TitleNavContentLayout.
|
|
39127
|
-
* Adds the needed left padding on large screens.
|
|
39128
|
-
*/
|
|
39129
|
-
const NavGridArea = tw.aside `
|
|
39130
|
-
tu-layout-area-nav
|
|
39131
|
-
`;
|
|
39132
|
-
/**
|
|
39133
|
-
* A component to define the content area of the TitleNavContentLayout.
|
|
39134
|
-
* Adds the needed right padding on large screens.
|
|
39135
|
-
*/
|
|
39136
|
-
const ContentGridArea = tw.article `
|
|
39137
|
-
tu-layout-area-content
|
|
39138
|
-
`;
|
|
39139
|
-
|
|
39140
|
-
export { Alert, Badge, Button$1 as Button, Card, CardBody, CardFooter, CardHeader, Collapse, ContentGridArea, CopyableText, DayPicker, DayPickerPopover, DayRangePicker, DensityContainer, Drawer, EmptyState, ExternalLink, FilterListMapLayout, FullWidthRepeatingLayout, GridArea, Heading, Icon, IconButton, Indicator, IntrinsicallyResponsiveGrid, MenuItem, MenuList, MinTopFullContentLayout, Modal, ModalBackdrop, MoreMenu, NavGridArea, PageHeader, Pagination, Popover, PopoverContent, PopoverTitle, PopoverTrigger, Prompt, ROLE_CARD, SectionHeader, Sidebar, SkeletonLines, Spacer, Spinner, StarButton, Tag, Text, Timeline, TimelineElement, Tip, TitleGridArea, TitleNavContentLayout, Tooltip, ValueBar, cvaButton, cvaButtonSpinner, cvaClickable, cvaIconButtonContainer, cvaIndicator, cvaIndicatorIcon, cvaIndicatorIconBackground, cvaIndicatorLabel, cvaIndicatorPing, cvaMenuItem, cvaMenuItemLabel, cvaMenuItemPrefix, cvaMenuItemSuffix, docs, getDevicePixelRatio, getValueBarColorByValue, useClickOutside, useContainerProps, useDebounce, useDevicePixelRatio, useHover, useIsFirstRender, useLocalStorage, useLocalStorageReducer, useModal, usePopoverContext, usePrompt, useResize, useTimeout };
|
|
38971
|
+
export { Alert, Badge, Button$1 as Button, Card, CardBody, CardFooter, CardHeader, Collapse, CopyableText, DayPicker, DayPickerPopover, DayRangePicker, DensityContainer, Drawer, EmptyState, ExternalLink, Heading, Icon, IconButton, Indicator, MenuItem, MenuList, Modal, ModalBackdrop, MoreMenu, PageHeader, Pagination, Popover, PopoverContent, PopoverTitle, PopoverTrigger, Prompt, ROLE_CARD, SectionHeader, Sidebar, SkeletonLines, Spacer, Spinner, StarButton, Tag, Text, Timeline, TimelineElement, Tip, Tooltip, ValueBar, cvaButton, cvaButtonSpinner, cvaClickable, cvaIconButtonContainer, cvaIndicator, cvaIndicatorIcon, cvaIndicatorIconBackground, cvaIndicatorLabel, cvaIndicatorPing, cvaMenuItem, cvaMenuItemLabel, cvaMenuItemPrefix, cvaMenuItemSuffix, docs, getDevicePixelRatio, getValueBarColorByValue, useClickOutside, useContainerProps, useDebounce, useDevicePixelRatio, useHover, useIsFirstRender, useLocalStorage, useLocalStorageReducer, useModal, usePopoverContext, usePrompt, useResize, useTimeout };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.129",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@floating-ui/react": "0.22.2",
|
|
11
|
-
"@trackunit/css-class-variance-utilities": "0.0.
|
|
11
|
+
"@trackunit/css-class-variance-utilities": "0.0.8",
|
|
12
12
|
"@trackunit/css-core": "0.0.89",
|
|
13
13
|
"@trackunit/tailwind-styled-components": "0.0.58",
|
|
14
14
|
"@trackunit/ui-design-tokens": "0.0.73",
|
package/src/index.d.ts
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { CommonProps } from "../../common/CommonProps";
|
|
3
|
-
/**
|
|
4
|
-
* Pass two children. The first will be min-content and the second full height
|
|
5
|
-
* Useful when toy want the second child to have 100% height and be scrollable
|
|
6
|
-
* Example: FilterBar + Fleet List
|
|
7
|
-
*/
|
|
8
|
-
interface MinTopFullContentLayoutProps extends CommonProps {
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* The MinTopFullContentLayout component.
|
|
13
|
-
*
|
|
14
|
-
* @param {MinTopFullContentLayoutProps} props - The props for the MinTopFullContentLayout component
|
|
15
|
-
* @returns {JSX.Element} MinTopFullContentLayout component
|
|
16
|
-
*/
|
|
17
|
-
export declare const MinTopFullContentLayout: ({ children, className, dataTestId }: MinTopFullContentLayoutProps) => JSX.Element;
|
|
18
|
-
export {};
|
package/src/layout/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from "./helper/MinTopFullContentLayout";
|
|
2
|
-
export * from "./responsive/FilterListMapLayout";
|
|
3
|
-
export * from "./responsive/FullWidthRepeatingLayout";
|
|
4
|
-
export * from "./responsive/GridArea";
|
|
5
|
-
export * from "./responsive/IntrinsicallyResponsiveGrid";
|
|
6
|
-
export * from "./responsive/TitleNavContentLayout";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface FilterListMapLayoutProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Responsive layout component setting up three grid areas
|
|
7
|
-
* one for filtering, (result-)list and (result-map)
|
|
8
|
-
*
|
|
9
|
-
* List needs to handle its own min size - and map takes up the rest.
|
|
10
|
-
*
|
|
11
|
-
* @param {FilterListMapLayoutProps} props - The props for the FilterListMapLayout component
|
|
12
|
-
* @returns {JSX.Element} FilterListMapLayout component
|
|
13
|
-
*/
|
|
14
|
-
export declare const FilterListMapLayout: ({ children }: FilterListMapLayoutProps) => JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
type RowSizing = "Equal" | "MinContent" | "Unmanaged";
|
|
3
|
-
interface FullWidthRepeatingLayoutProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
rowSizing?: RowSizing;
|
|
6
|
-
rowMinHeight?: number;
|
|
7
|
-
dataTestId?: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Layout component with repeating full width areas, default one height fraction each but option to use content height instead
|
|
12
|
-
* Row min height can optionally be set here or managed by children
|
|
13
|
-
* Scrolling happens if/when children's a min-height is reached
|
|
14
|
-
*
|
|
15
|
-
* @param {FullWidthRepeatingLayoutProps} props - The props for the FullWidthRepeatingLayout component
|
|
16
|
-
* @returns {JSX.Element} FullWidthRepeatingLayout component
|
|
17
|
-
*/
|
|
18
|
-
export declare const FullWidthRepeatingLayout: ({ children, rowSizing, rowMinHeight, dataTestId, className, }: FullWidthRepeatingLayoutProps) => JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CommonProps } from "../../common/CommonProps";
|
|
3
|
-
export interface GridAreaProps extends CommonProps {
|
|
4
|
-
area: string;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Simply applies a Grid Area to the element
|
|
9
|
-
*
|
|
10
|
-
* @param {GridAreaProps} props - The props for the GridArea component
|
|
11
|
-
* @returns {JSX.Element} GridArea component
|
|
12
|
-
*/
|
|
13
|
-
export declare const GridArea: ({ area, dataTestId, className, children }: GridAreaProps) => JSX.Element;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CommonProps } from "../../common/CommonProps";
|
|
3
|
-
export type ColumnWidth = "xs" | "sm" | "md" | "lg" | "xl";
|
|
4
|
-
export type RowHeight = "auto" | "1fr";
|
|
5
|
-
export type Space = "inherit" | "auto" | "none" | "tiny" | "mini" | "small" | "medium" | "large" | "giant" | "enormous";
|
|
6
|
-
export type Occupation = "auto-fill" | "auto-fit";
|
|
7
|
-
interface IntrinsicallyResponsiveGridProps extends CommonProps {
|
|
8
|
-
/**
|
|
9
|
-
* The children to be laid out
|
|
10
|
-
*/
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Default "auto-fill" stretch a little, till there's room for another column.
|
|
14
|
-
* Optionally set "auto-fit" to stretch children to fit entire container width,
|
|
15
|
-
*/
|
|
16
|
-
occupation?: Occupation;
|
|
17
|
-
minColumnWidth?: ColumnWidth;
|
|
18
|
-
rowHeight?: RowHeight;
|
|
19
|
-
/**
|
|
20
|
-
* The gap size between children
|
|
21
|
-
*/
|
|
22
|
-
gap?: Space;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* A grid container that has a flexible number of columns.
|
|
26
|
-
* Adds more columns if constraints allow it, otherwise wraps to next row
|
|
27
|
-
*
|
|
28
|
-
* @param {IntrinsicallyResponsiveGridProps} props - The props for the IntrinsicallyResponsiveGrid component
|
|
29
|
-
* @returns {JSX.Element} IntrinsicallyResponsiveGrid component
|
|
30
|
-
*/
|
|
31
|
-
export declare const IntrinsicallyResponsiveGrid: ({ children, occupation, minColumnWidth, rowHeight, gap, dataTestId, className, }: IntrinsicallyResponsiveGridProps) => JSX.Element;
|
|
32
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CommonProps } from "../../common";
|
|
3
|
-
interface TitleNavContentLayoutProps extends CommonProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* The TitleNavContentLayout.
|
|
8
|
-
* Use the `TitleGridArea`, `NavGridArea` and `ContentGridArea` components to define the layout elements.
|
|
9
|
-
*
|
|
10
|
-
* @param {TitleNavContentLayoutProps} props - The props for the TitleNavContentLayout component
|
|
11
|
-
* @returns {JSX.Element} TitleNavContentLayout component
|
|
12
|
-
*/
|
|
13
|
-
export declare const TitleNavContentLayout: ({ children, className }: TitleNavContentLayoutProps) => JSX.Element;
|
|
14
|
-
/**
|
|
15
|
-
* A component to define the title area of the TitleNavContentLayout.
|
|
16
|
-
*/
|
|
17
|
-
export declare const TitleGridArea: import("dist/libs/ui/tailwind-styled-components/src/lib/types").TailwindComponent<import("dist/libs/ui/tailwind-styled-components/src/lib/types").TailwindHtmlComponent<"header">, {}>;
|
|
18
|
-
/**
|
|
19
|
-
* A component to define the navigation area of the TitleNavContentLayout.
|
|
20
|
-
* Adds the needed left padding on large screens.
|
|
21
|
-
*/
|
|
22
|
-
export declare const NavGridArea: import("dist/libs/ui/tailwind-styled-components/src/lib/types").TailwindComponent<import("dist/libs/ui/tailwind-styled-components/src/lib/types").TailwindHtmlComponent<"aside">, {}>;
|
|
23
|
-
/**
|
|
24
|
-
* A component to define the content area of the TitleNavContentLayout.
|
|
25
|
-
* Adds the needed right padding on large screens.
|
|
26
|
-
*/
|
|
27
|
-
export declare const ContentGridArea: import("dist/libs/ui/tailwind-styled-components/src/lib/types").TailwindComponent<import("dist/libs/ui/tailwind-styled-components/src/lib/types").TailwindHtmlComponent<"article">, {}>;
|
|
28
|
-
export {};
|