@kenpan/zds-r8f3v1 0.2.0 → 0.3.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/dist/_virtual/index.js +5 -3
- package/dist/_virtual/index.js.map +1 -1
- package/dist/_virtual/index2.js +3 -2
- package/dist/_virtual/index2.js.map +1 -1
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index5.js.map +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/AppBar/AppBar.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Autocomplete/Autocomplete.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Avatar/Avatar.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Backdrop/Backdrop.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Box/Box.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Button/Button.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/ButtonBase/ButtonBase.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/ButtonBase/Ripple.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/ButtonBase/TouchRipple.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Checkbox/Checkbox.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Chip/Chip.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/CircularProgress/CircularProgress.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/ClickAwayListener/ClickAwayListener.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Collapse/Collapse.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Dialog/Dialog.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Divider/Divider.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Drawer/Drawer.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Fade/Fade.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/FilledInput/FilledInput.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/FormControl/FormControl.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/FormGroup/FormGroup.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/FormHelperText/FormHelperText.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/FormLabel/FormLabel.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Grow/Grow.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/IconButton/IconButton.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Input/Input.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/InputAdornment/InputAdornment.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/InputBase/InputBase.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/InputLabel/InputLabel.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/LinearProgress/LinearProgress.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/List/List.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/ListItemButton/ListItemButton.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/ListItemIcon/ListItemIcon.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/ListItemText/ListItemText.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/ListSubheader/ListSubheader.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Menu/Menu.js +2 -2
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/MenuItem/MenuItem.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/MenuList/MenuList.js +2 -2
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Modal/Modal.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Paper/Paper.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Popover/Popover.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Popper/BasePopper.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Popper/Popper.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Portal/Portal.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Radio/Radio.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Radio/RadioButtonIcon.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/RadioGroup/RadioGroup.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Select/Select.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Select/SelectInput.js +2 -2
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Skeleton/Skeleton.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Slide/Slide.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Slider/Slider.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Slider/SliderValueLabel.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Snackbar/Snackbar.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/SnackbarContent/SnackbarContent.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Stack/Stack.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Step/Step.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/StepConnector/StepConnector.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/StepIcon/StepIcon.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/StepLabel/StepLabel.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Stepper/Stepper.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/SvgIcon/SvgIcon.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Switch/Switch.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Tab/Tab.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/TabScrollButton/TabScrollButton.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Tabs/ScrollbarSize.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Tabs/Tabs.js +2 -2
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/TextField/TextField.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/TextareaAutosize/TextareaAutosize.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Toolbar/Toolbar.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Tooltip/Tooltip.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Typography/Typography.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Unstable_TrapFocus/FocusTrap.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/material/esm/internal/SwitchBase.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/system/esm/RtlProvider/index.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/system/esm/responsivePropType/responsivePropType.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +1 -1
- package/dist/packages/zenith-ui/node_modules/@mui/utils/esm/refType/refType.js +1 -1
- package/dist/packages/zenith-ui/node_modules/prop-types/index.js +1 -1
- package/dist/packages/zenith-ui/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/packages/zenith-ui/node_modules/react-is/index.js +1 -1
- package/dist/packages/zenith-ui/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/packages/zenith-ui/node_modules/react-transition-group/esm/TransitionGroup.js +1 -1
- package/dist/packages/zenith-ui/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
- package/guidelines/Guidelines.md +67 -0
- package/guidelines/components/button.md +127 -43
- package/guidelines/components/dialog.md +164 -87
- package/guidelines/components/forms.md +239 -77
- package/guidelines/components/table.md +221 -87
- package/guidelines/design-tokens/colors.md +181 -0
- package/guidelines/design-tokens/spacing.md +135 -0
- package/guidelines/design-tokens/typography.md +146 -0
- package/guidelines/overview-components.md +136 -0
- package/guidelines/overview-icons.md +144 -0
- package/package.json +1 -1
- package/guidelines/overview.md +0 -81
- package/guidelines/tokens.md +0 -149
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import { clsx } from "../../../../clsx/dist/clsx.js";
|
|
4
4
|
import StepperContext from "../Stepper/StepperContext.js";
|
|
5
5
|
import StepContext from "./StepContext.js";
|
package/dist/packages/zenith-ui/node_modules/@mui/material/esm/StepConnector/StepConnector.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import { clsx } from "../../../../clsx/dist/clsx.js";
|
|
4
4
|
import memoTheme from "../utils/memoTheme.js";
|
|
5
5
|
import StepperContext from "../Stepper/StepperContext.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import { clsx } from "../../../../clsx/dist/clsx.js";
|
|
4
4
|
import memoTheme from "../utils/memoTheme.js";
|
|
5
5
|
import CheckCircle from "../internal/svg-icons/CheckCircle.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { clsx } from "../../../../clsx/dist/clsx.js";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import StepContext from "../Step/StepContext.js";
|
|
5
5
|
import StepperContext from "../Stepper/StepperContext.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import { clsx } from "../../../../clsx/dist/clsx.js";
|
|
4
4
|
import { getStepperUtilityClass } from "./stepperClasses.js";
|
|
5
5
|
import StepperContext from "./StepperContext.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import { clsx } from "../../../../clsx/dist/clsx.js";
|
|
4
4
|
import memoTheme from "../utils/memoTheme.js";
|
|
5
5
|
import { getSvgIconUtilityClass } from "./svgIconClasses.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import { clsx } from "../../../../clsx/dist/clsx.js";
|
|
4
4
|
import createSimplePaletteValueFilter from "../utils/createSimplePaletteValueFilter.js";
|
|
5
5
|
import SwitchBase from "../internal/SwitchBase.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import { clsx } from "../../../../clsx/dist/clsx.js";
|
|
4
4
|
import memoTheme from "../utils/memoTheme.js";
|
|
5
5
|
import tabClasses, { getTabUtilityClass } from "./tabClasses.js";
|
package/dist/packages/zenith-ui/node_modules/@mui/material/esm/TabScrollButton/TabScrollButton.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import { clsx } from "../../../../clsx/dist/clsx.js";
|
|
4
4
|
import { useRtl } from "../../../system/esm/RtlProvider/index.js";
|
|
5
5
|
import KeyboardArrowLeft from "../internal/svg-icons/KeyboardArrowLeft.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import useEnhancedEffect from "../../../utils/esm/useEnhancedEffect/useEnhancedEffect.js";
|
|
5
5
|
import debounce from "../../../utils/esm/debounce/debounce.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { r as reactIsExports } from "../../../../../../../_virtual/
|
|
3
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import { r as reactIsExports } from "../../../../../../../_virtual/index2.js";
|
|
3
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
4
4
|
import { clsx } from "../../../../clsx/dist/clsx.js";
|
|
5
5
|
import { useRtl } from "../../../system/esm/RtlProvider/index.js";
|
|
6
6
|
import useTheme from "../styles/useTheme.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import { clsx } from "../../../../clsx/dist/clsx.js";
|
|
4
4
|
import { getTextFieldUtilityClass } from "./textFieldClasses.js";
|
|
5
5
|
import useSlot from "../utils/useSlot.js";
|
package/dist/packages/zenith-ui/node_modules/@mui/material/esm/TextareaAutosize/TextareaAutosize.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
4
|
import useForkRef from "../../../utils/esm/useForkRef/useForkRef.js";
|
|
5
5
|
import ownerWindow from "../../../utils/esm/ownerWindow/ownerWindow.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import { clsx } from "../../../../clsx/dist/clsx.js";
|
|
4
4
|
import memoTheme from "../utils/memoTheme.js";
|
|
5
5
|
import { getToolbarUtilityClass } from "./toolbarClasses.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import { clsx } from "../../../../clsx/dist/clsx.js";
|
|
4
4
|
import { useRtl } from "../../../system/esm/RtlProvider/index.js";
|
|
5
5
|
import useTheme from "../styles/useTheme.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import { clsx } from "../../../../clsx/dist/clsx.js";
|
|
4
4
|
import { internal_createExtendSxProp } from "../zero-styled/index.js";
|
|
5
5
|
import memoTheme from "../utils/memoTheme.js";
|
package/dist/packages/zenith-ui/node_modules/@mui/material/esm/Unstable_TrapFocus/FocusTrap.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
4
|
import useForkRef from "../../../utils/esm/useForkRef/useForkRef.js";
|
|
5
5
|
import getReactElementRef from "../../../utils/esm/getReactElementRef/getReactElementRef.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import rootShouldForwardProp from "../styles/rootShouldForwardProp.js";
|
|
4
4
|
import useFormControl from "../FormControl/useFormControl.js";
|
|
5
5
|
import { getSwitchBaseUtilityClass } from "./switchBaseClasses.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import resolveProps from "../../../utils/esm/resolveProps/resolveProps.js";
|
|
5
5
|
const PropsContext = /* @__PURE__ */ React.createContext(void 0);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
2
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
const RtlContext = /* @__PURE__ */ React.createContext();
|
|
5
5
|
process.env.NODE_ENV !== "production" ? {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
1
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
2
2
|
const responsivePropType = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) : {};
|
|
3
3
|
export {
|
|
4
4
|
responsivePropType as default
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { r as reactIsExports } from "../../../../../../../_virtual/
|
|
2
|
+
import { r as reactIsExports } from "../../../../../../../_virtual/index2.js";
|
|
3
3
|
function isPlainObject(item) {
|
|
4
4
|
if (typeof item !== "object" || item === null) {
|
|
5
5
|
return false;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import PropTypes from "../../../../../../../_virtual/
|
|
1
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import chainPropTypes from "../chainPropTypes/chainPropTypes.js";
|
|
4
4
|
function isClassComponent(elementType) {
|
package/dist/packages/zenith-ui/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactIsExports } from "../../../../../../../_virtual/
|
|
1
|
+
import { r as reactIsExports } from "../../../../../../../_virtual/index2.js";
|
|
2
2
|
function getFunctionComponentName(Component, fallback = "") {
|
|
3
3
|
return Component.displayName || Component.name || fallback;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as propTypes } from "../../../../_virtual/
|
|
1
|
+
import { __module as propTypes } from "../../../../_virtual/index3.js";
|
|
2
2
|
import { __require as requireReactIs } from "./node_modules/react-is/index.js";
|
|
3
3
|
import { __require as requireFactoryWithTypeCheckers } from "./factoryWithTypeCheckers.js";
|
|
4
4
|
import { __require as requireFactoryWithThrowingShims } from "./factoryWithThrowingShims.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as reactIs } from "../../../../../../_virtual/
|
|
1
|
+
import { __module as reactIs } from "../../../../../../_virtual/index4.js";
|
|
2
2
|
import { __require as requireReactIs_production_min } from "./cjs/react-is.production.min.js";
|
|
3
3
|
import { __require as requireReactIs_development } from "./cjs/react-is.development.js";
|
|
4
4
|
var hasRequiredReactIs;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as reactIs } from "../../../../_virtual/
|
|
1
|
+
import { __module as reactIs } from "../../../../_virtual/index5.js";
|
|
2
2
|
import { __require as requireReactIs_production } from "./cjs/react-is.production.js";
|
|
3
3
|
import { __require as requireReactIs_development } from "./cjs/react-is.development.js";
|
|
4
4
|
var hasRequiredReactIs;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
|
|
2
2
|
import _inheritsLoose from "../../@babel/runtime/helpers/esm/inheritsLoose.js";
|
|
3
|
-
import PropTypes from "../../../../../_virtual/
|
|
3
|
+
import PropTypes from "../../../../../_virtual/index.js";
|
|
4
4
|
import React__default from "react";
|
|
5
5
|
import ReactDOM__default from "react-dom";
|
|
6
6
|
import config from "./config.js";
|
|
@@ -2,7 +2,7 @@ import _objectWithoutPropertiesLoose from "../../@babel/runtime/helpers/esm/obje
|
|
|
2
2
|
import _extends from "../../@babel/runtime/helpers/esm/extends.js";
|
|
3
3
|
import _assertThisInitialized from "../../@babel/runtime/helpers/esm/assertThisInitialized.js";
|
|
4
4
|
import _inheritsLoose from "../../@babel/runtime/helpers/esm/inheritsLoose.js";
|
|
5
|
-
import PropTypes from "../../../../../_virtual/
|
|
5
|
+
import PropTypes from "../../../../../_virtual/index.js";
|
|
6
6
|
import React__default from "react";
|
|
7
7
|
import TransitionGroupContext from "./TransitionGroupContext.js";
|
|
8
8
|
import { getInitialChildMapping, getNextChildMapping, getChildMapping } from "./utils/ChildMapping.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import PropTypes from "../../../../../../_virtual/
|
|
1
|
+
import PropTypes from "../../../../../../_virtual/index.js";
|
|
2
2
|
var timeoutsShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
3
3
|
enter: PropTypes.number,
|
|
4
4
|
exit: PropTypes.number,
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# ZDS Design System Guidelines
|
|
2
|
+
|
|
3
|
+
This project has access to a custom Design System called ZDS (Zenith Design System) that's installed via the `@kenpan/zds-r8f3v1` npm package. Files in the guidelines directory show how to use ZDS.
|
|
4
|
+
|
|
5
|
+
## How to Read Guidelines
|
|
6
|
+
|
|
7
|
+
**Always read:**
|
|
8
|
+
- All files with a name that starts with `overview-`
|
|
9
|
+
- All files in the `design-tokens/` folder
|
|
10
|
+
|
|
11
|
+
**Read component guidelines when needed:**
|
|
12
|
+
Read the files in the `guidelines/components/` directory when you want to use the component with that name. For example, if you want to use Button, read `guidelines/components/button.md`.
|
|
13
|
+
|
|
14
|
+
## Component Usage Guidelines - READ THIS FIRST
|
|
15
|
+
|
|
16
|
+
**IMPORTANT:** Always prefer to use components from ZDS if they exist. For example, prefer to use a Button component from ZDS, rather than regular button or MUI button components.
|
|
17
|
+
|
|
18
|
+
**IMPORTANT:** Follow these steps IN ORDER before writing any code:
|
|
19
|
+
|
|
20
|
+
### Step 1: Read Overview Files (REQUIRED)
|
|
21
|
+
Read ALL files with a name that starts with "overview-" in the guidelines directory:
|
|
22
|
+
- `overview-components.md`
|
|
23
|
+
- `overview-icons.md`
|
|
24
|
+
|
|
25
|
+
### Step 2: Read Design Tokens (REQUIRED)
|
|
26
|
+
Read ALL files in the `design-tokens/` folder. Do NOT skip this step.
|
|
27
|
+
|
|
28
|
+
### Step 3: Plan what components you need to use (REQUIRED)
|
|
29
|
+
|
|
30
|
+
### Step 4: Read Component Guidelines BEFORE Using Components (REQUIRED)
|
|
31
|
+
BEFORE using ANY component, you MUST read its guidelines file first:
|
|
32
|
+
- Using Button? → Read `guidelines/components/button.md` FIRST
|
|
33
|
+
- Using Dialog? → Read `guidelines/components/dialog.md` FIRST
|
|
34
|
+
- Using Table? → Read `guidelines/components/table.md` FIRST
|
|
35
|
+
- Using Forms? → Read `guidelines/components/forms.md` FIRST
|
|
36
|
+
|
|
37
|
+
### Step 5: Plan what icons you need to use (REQUIRED)
|
|
38
|
+
Before using ANY icon, you must check to see if that icon exists in the ZDS package. If it doesn't, pick a different icon and verify the new icon.
|
|
39
|
+
|
|
40
|
+
**DO NOT write code using a component until you have read its specific guidelines.**
|
|
41
|
+
|
|
42
|
+
## Quick Start
|
|
43
|
+
|
|
44
|
+
```tsx
|
|
45
|
+
import { ThemeProvider } from '@mui/material/styles'
|
|
46
|
+
import { theme, Button, Card, Alert } from '@kenpan/zds-r8f3v1'
|
|
47
|
+
|
|
48
|
+
function App() {
|
|
49
|
+
return (
|
|
50
|
+
<ThemeProvider theme={theme}>
|
|
51
|
+
<Card>
|
|
52
|
+
<Alert color="info" size="sm">Welcome to ZDS</Alert>
|
|
53
|
+
<Button variant="primary" size="medium">Get Started</Button>
|
|
54
|
+
</Card>
|
|
55
|
+
</ThemeProvider>
|
|
56
|
+
)
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Package Structure
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
@kenpan/zds-r8f3v1
|
|
64
|
+
├── (main) - All components and utilities
|
|
65
|
+
├── /theme - Theme configuration and design tokens
|
|
66
|
+
└── /icons - Icon components (1194 icons)
|
|
67
|
+
```
|
|
@@ -1,89 +1,173 @@
|
|
|
1
1
|
# Button Component
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Purpose**: Trigger actions or navigate users. Use for primary and secondary actions.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**Import**:
|
|
6
|
+
```tsx
|
|
7
|
+
import { Button } from '@kenpan/zds-r8f3v1'
|
|
8
|
+
```
|
|
6
9
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
## Props
|
|
11
|
+
|
|
12
|
+
| Prop | Type | Default | Description |
|
|
13
|
+
|------|------|---------|-------------|
|
|
14
|
+
| `variant` | `'primary' \| 'secondary-gray' \| 'secondary-color' \| 'tertiary-gray' \| 'tertiary-color' \| 'link-gray' \| 'link-color'` | `'primary'` | Button style variant |
|
|
15
|
+
| `size` | `'xs' \| 'small' \| 'medium' \| 'large' \| 'xl' \| 'xxl'` | `'medium'` | Button size |
|
|
16
|
+
| `destructive` | `boolean` | `false` | Use red color for destructive actions |
|
|
17
|
+
| `disabled` | `boolean` | `false` | Disable the button |
|
|
18
|
+
| `iconLeading` | `ReactNode` | - | Icon before text |
|
|
19
|
+
| `iconTrailing` | `ReactNode` | - | Icon after text |
|
|
20
|
+
| `iconOnly` | `boolean` | `false` | Icon-only button (no text) |
|
|
21
|
+
| `fullWidth` | `boolean` | `false` | Full width button |
|
|
22
|
+
| `loading` | `boolean` | `false` | Show loading state |
|
|
23
|
+
| `children` | `ReactNode` | - | Button text |
|
|
24
|
+
| `onClick` | `(e) => void` | - | Click handler |
|
|
11
25
|
|
|
12
26
|
## Variants
|
|
13
27
|
|
|
14
|
-
### Primary
|
|
28
|
+
### Primary
|
|
29
|
+
Main call-to-action. Use sparingly - one per section.
|
|
30
|
+
```tsx
|
|
31
|
+
<Button variant="primary">Save Changes</Button>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Secondary (Gray)
|
|
35
|
+
Secondary actions that complement primary.
|
|
36
|
+
```tsx
|
|
37
|
+
<Button variant="secondary-gray">Cancel</Button>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Secondary (Color)
|
|
41
|
+
Secondary actions with brand color.
|
|
42
|
+
```tsx
|
|
43
|
+
<Button variant="secondary-color">Learn More</Button>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Tertiary (Gray)
|
|
47
|
+
Low-emphasis actions.
|
|
15
48
|
```tsx
|
|
16
|
-
<Button variant="
|
|
17
|
-
<Button variant="primary" color="destructive">Delete</Button>
|
|
49
|
+
<Button variant="tertiary-gray">Edit</Button>
|
|
18
50
|
```
|
|
19
51
|
|
|
20
|
-
###
|
|
52
|
+
### Tertiary (Color)
|
|
53
|
+
Low-emphasis actions with brand color.
|
|
21
54
|
```tsx
|
|
22
|
-
<Button variant="
|
|
23
|
-
<Button variant="secondary-gray">Gray Secondary</Button>
|
|
55
|
+
<Button variant="tertiary-color">View Details</Button>
|
|
24
56
|
```
|
|
25
57
|
|
|
26
|
-
###
|
|
58
|
+
### Link (Gray)
|
|
59
|
+
Text-like buttons for inline actions.
|
|
27
60
|
```tsx
|
|
28
|
-
<Button variant="
|
|
29
|
-
<Button variant="tertiary-gray">Gray Tertiary</Button>
|
|
61
|
+
<Button variant="link-gray">Forgot password?</Button>
|
|
30
62
|
```
|
|
31
63
|
|
|
32
|
-
### Link
|
|
64
|
+
### Link (Color)
|
|
65
|
+
Colored link buttons.
|
|
33
66
|
```tsx
|
|
34
|
-
<Button variant="link">
|
|
35
|
-
<Button variant="link-gray">Gray Link</Button>
|
|
67
|
+
<Button variant="link-color">Learn more</Button>
|
|
36
68
|
```
|
|
37
69
|
|
|
38
70
|
## Sizes
|
|
39
71
|
|
|
40
72
|
```tsx
|
|
41
|
-
<Button size="
|
|
42
|
-
<Button size="
|
|
43
|
-
<Button size="
|
|
44
|
-
<Button size="
|
|
45
|
-
<Button size="
|
|
73
|
+
<Button size="xs">Extra Small</Button> // 32px height
|
|
74
|
+
<Button size="small">Small</Button> // 36px height
|
|
75
|
+
<Button size="medium">Medium</Button> // 40px height (default)
|
|
76
|
+
<Button size="large">Large</Button> // 44px height
|
|
77
|
+
<Button size="xl">Extra Large</Button> // 48px height
|
|
78
|
+
<Button size="xxl">XXL</Button> // 60px height
|
|
46
79
|
```
|
|
47
80
|
|
|
48
81
|
## With Icons
|
|
49
82
|
|
|
50
83
|
```tsx
|
|
51
|
-
import {
|
|
84
|
+
import { PlusIcon, ChevronRightIcon } from '@kenpan/zds-r8f3v1/icons'
|
|
52
85
|
|
|
53
|
-
//
|
|
54
|
-
<Button
|
|
86
|
+
// Leading icon
|
|
87
|
+
<Button variant="primary" iconLeading={<PlusIcon size={20} />}>
|
|
88
|
+
Add Item
|
|
89
|
+
</Button>
|
|
55
90
|
|
|
56
|
-
//
|
|
57
|
-
<Button
|
|
91
|
+
// Trailing icon
|
|
92
|
+
<Button variant="secondary-gray" iconTrailing={<ChevronRightIcon size={20} />}>
|
|
93
|
+
Next
|
|
94
|
+
</Button>
|
|
58
95
|
|
|
59
96
|
// Icon only
|
|
60
|
-
<Button iconOnly
|
|
97
|
+
<Button variant="tertiary-gray" iconOnly iconLeading={<PlusIcon size={20} />} />
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Destructive Actions
|
|
101
|
+
|
|
102
|
+
Use `destructive` prop for delete/remove actions:
|
|
103
|
+
```tsx
|
|
104
|
+
<Button variant="primary" destructive>Delete</Button>
|
|
105
|
+
<Button variant="secondary-gray" destructive>Remove</Button>
|
|
106
|
+
<Button variant="tertiary-gray" destructive>Cancel Subscription</Button>
|
|
61
107
|
```
|
|
62
108
|
|
|
63
109
|
## States
|
|
64
110
|
|
|
65
111
|
```tsx
|
|
66
112
|
// Disabled
|
|
67
|
-
<Button disabled>
|
|
113
|
+
<Button disabled>Can't Click</Button>
|
|
68
114
|
|
|
69
|
-
// Loading
|
|
70
|
-
<Button
|
|
115
|
+
// Loading
|
|
116
|
+
<Button loading>Saving...</Button>
|
|
117
|
+
|
|
118
|
+
// Full width
|
|
119
|
+
<Button fullWidth>Submit Form</Button>
|
|
71
120
|
```
|
|
72
121
|
|
|
73
|
-
##
|
|
122
|
+
## Usage Guidelines
|
|
74
123
|
|
|
75
|
-
|
|
124
|
+
### Do:
|
|
125
|
+
- Use primary buttons for the main action in a section
|
|
126
|
+
- Use secondary/tertiary for supporting actions
|
|
127
|
+
- Keep button text short and action-oriented (e.g., "Save", "Cancel", "Add Item")
|
|
128
|
+
- Use destructive variant for irreversible actions
|
|
129
|
+
- Use appropriate size for context (medium for most cases)
|
|
76
130
|
|
|
131
|
+
### Don't:
|
|
132
|
+
- Don't use multiple primary buttons in the same section
|
|
133
|
+
- Don't use long button text (more than 3-4 words)
|
|
134
|
+
- Don't use buttons for navigation (use links instead)
|
|
135
|
+
- Don't disable buttons without explaining why
|
|
136
|
+
|
|
137
|
+
## Common Patterns
|
|
138
|
+
|
|
139
|
+
### Form Actions
|
|
77
140
|
```tsx
|
|
78
|
-
<
|
|
79
|
-
<Button variant="secondary"
|
|
80
|
-
<Button variant="
|
|
141
|
+
<Stack direction="row" spacing={3}>
|
|
142
|
+
<Button variant="secondary-gray">Cancel</Button>
|
|
143
|
+
<Button variant="primary">Save Changes</Button>
|
|
144
|
+
</Stack>
|
|
81
145
|
```
|
|
82
146
|
|
|
83
|
-
|
|
147
|
+
### Dialog Actions
|
|
148
|
+
```tsx
|
|
149
|
+
<DialogFooter>
|
|
150
|
+
<Button variant="secondary-gray" onClick={onClose}>Cancel</Button>
|
|
151
|
+
<Button variant="primary" onClick={onConfirm}>Confirm</Button>
|
|
152
|
+
</DialogFooter>
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Destructive Confirmation
|
|
156
|
+
```tsx
|
|
157
|
+
<Stack direction="row" spacing={3}>
|
|
158
|
+
<Button variant="secondary-gray">Keep</Button>
|
|
159
|
+
<Button variant="primary" destructive>Delete</Button>
|
|
160
|
+
</Stack>
|
|
161
|
+
```
|
|
84
162
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
163
|
+
### Icon Button
|
|
164
|
+
```tsx
|
|
165
|
+
import { DotsVerticalIcon } from '@kenpan/zds-r8f3v1/icons'
|
|
166
|
+
|
|
167
|
+
<Button
|
|
168
|
+
variant="tertiary-gray"
|
|
169
|
+
iconOnly
|
|
170
|
+
iconLeading={<DotsVerticalIcon size={20} />}
|
|
171
|
+
aria-label="More options"
|
|
172
|
+
/>
|
|
173
|
+
```
|