@turk.net/mui 3.0.9 → 3.0.10
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/.opencode/rules/design-compliance.md +8 -5
- package/.opencode/skills/onehub-design-verification/SKILL.md +4 -4
- package/.opencode/skills/turknet-onehub-component-usage/SKILL.md +24 -14
- package/COMPONENT_MAP.md +576 -47
- package/DESIGN_RULES.md +43 -19
- package/DESIGN_SOURCES.md +22 -0
- package/DESIGN_TOKENS_MAP.md +14 -5
- package/ESLINT_DESIGN_RULES.md +5 -3
- package/LLM_EXAMPLES.md +5 -5
- package/LLM_GUIDELINES.md +7 -7
- package/PAGE_PATTERNS.md +1 -1
- package/SKILL_SETUP.md +14 -14
- package/dist/index.js +75 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +76 -5
- package/dist/index.mjs.map +1 -1
- package/dist/theme/components/Tabs.d.mts +3 -0
- package/dist/theme/components/Tabs.d.ts +3 -0
- package/dist/theme/index.js +75 -4
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/index.mjs +76 -5
- package/dist/theme/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createTheme } from '@mui/material/styles';
|
|
2
|
-
import { switchClasses, svgIconClasses, Box, inputBaseClasses, autocompleteClasses, iconButtonClasses, outlinedInputClasses, filledInputClasses, inputClasses, selectClasses, formHelperTextClasses, inputLabelClasses, sliderClasses, radioGroupClasses, radioClasses, menuClasses, listClasses, menuItemClasses, listItemButtonClasses, formLabelClasses, formControlLabelClasses, formControlClasses, chipClasses, checkboxClasses, buttonClasses, badgeClasses } from '@mui/material';
|
|
2
|
+
import { switchClasses, svgIconClasses, Box, inputBaseClasses, autocompleteClasses, iconButtonClasses, outlinedInputClasses, filledInputClasses, tabsClasses, tabClasses, inputClasses, selectClasses, formHelperTextClasses, inputLabelClasses, sliderClasses, radioGroupClasses, radioClasses, menuClasses, listClasses, menuItemClasses, listItemButtonClasses, formLabelClasses, formControlLabelClasses, formControlClasses, chipClasses, checkboxClasses, buttonClasses, badgeClasses } from '@mui/material';
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
// theme/index.ts
|
|
@@ -1730,6 +1730,7 @@ function createButtonBase() {
|
|
|
1730
1730
|
return {
|
|
1731
1731
|
styleOverrides: {
|
|
1732
1732
|
root: ({ theme: theme2 }) => ({
|
|
1733
|
+
textTransform: "unset",
|
|
1733
1734
|
[`&.${buttonClasses.root}.${buttonClasses.disabled}`]: {
|
|
1734
1735
|
backgroundColor: theme2.vars?.palette.neutral.background.disabled.rest,
|
|
1735
1736
|
color: theme2.vars?.palette.neutral.foreground.disabled.rest,
|
|
@@ -1780,10 +1781,11 @@ function createButton() {
|
|
|
1780
1781
|
props: { size: "extra-small" },
|
|
1781
1782
|
style: {
|
|
1782
1783
|
gap: theme2.spacing(2),
|
|
1783
|
-
"--padding-x": theme2.spacing(3
|
|
1784
|
+
"--padding-x": theme2.spacing(3),
|
|
1784
1785
|
"--padding-y": theme2.spacing(2.75),
|
|
1785
1786
|
fontSize: theme2.typography.text.xs.medium.fontSize,
|
|
1786
1787
|
fontWeight: theme2.typography.text.xs.medium.fontWeight,
|
|
1788
|
+
minWidth: theme2.spacing(8.5),
|
|
1787
1789
|
[`.${buttonClasses.icon}`]: {
|
|
1788
1790
|
marginTop: theme2.spacing(-0.5),
|
|
1789
1791
|
marginBottom: theme2.spacing(-0.5)
|
|
@@ -1815,6 +1817,7 @@ function createButton() {
|
|
|
1815
1817
|
gap: theme2.spacing(2.5),
|
|
1816
1818
|
"--padding-y": theme2.spacing(3.25),
|
|
1817
1819
|
"--padding-x": theme2.spacing(4),
|
|
1820
|
+
minWidth: theme2.spacing(10),
|
|
1818
1821
|
// -- ONLY ICON SIZE & SPACES
|
|
1819
1822
|
[`& svg.${svgIconClasses.root}`]: {
|
|
1820
1823
|
width: theme2.spacing(4),
|
|
@@ -1842,6 +1845,7 @@ function createButton() {
|
|
|
1842
1845
|
fontSize: theme2.typography.text.md.medium.fontSize,
|
|
1843
1846
|
fontWeight: theme2.typography.text.md.medium.fontWeight,
|
|
1844
1847
|
gap: theme2.spacing(3),
|
|
1848
|
+
minWidth: theme2.spacing(12),
|
|
1845
1849
|
"--padding-x": theme2.spacing(4.5),
|
|
1846
1850
|
"--padding-y": theme2.spacing(4),
|
|
1847
1851
|
[`.${buttonClasses.icon}`]: {
|
|
@@ -1872,6 +1876,7 @@ function createButton() {
|
|
|
1872
1876
|
fontSize: theme2.typography.text.md.medium.fontSize,
|
|
1873
1877
|
fontWeight: theme2.typography.text.md.medium.fontWeight,
|
|
1874
1878
|
gap: theme2.spacing(3.5),
|
|
1879
|
+
minWidth: theme2.spacing(13),
|
|
1875
1880
|
"--padding-x": theme2.spacing(5),
|
|
1876
1881
|
"--padding-y": theme2.spacing(4.5),
|
|
1877
1882
|
[`.${buttonClasses.icon}`]: {
|
|
@@ -1902,6 +1907,7 @@ function createButton() {
|
|
|
1902
1907
|
fontSize: theme2.typography.text.lg.medium.fontSize,
|
|
1903
1908
|
fontWeight: theme2.typography.text.lg.medium.fontWeight,
|
|
1904
1909
|
gap: theme2.spacing(4),
|
|
1910
|
+
minWidth: theme2.spacing(15),
|
|
1905
1911
|
"--padding-x": theme2.spacing(5.5),
|
|
1906
1912
|
"--padding-y": theme2.spacing(5.25),
|
|
1907
1913
|
[`.${buttonClasses.icon}`]: {
|
|
@@ -3509,9 +3515,72 @@ function createBadge() {
|
|
|
3509
3515
|
}
|
|
3510
3516
|
};
|
|
3511
3517
|
}
|
|
3518
|
+
function createTabs() {
|
|
3519
|
+
return {
|
|
3520
|
+
styleOverrides: {
|
|
3521
|
+
root: ({ theme: theme2 }) => ({
|
|
3522
|
+
minHeight: "32px",
|
|
3523
|
+
variants: [
|
|
3524
|
+
{
|
|
3525
|
+
props: { indicatorColor: "primary" },
|
|
3526
|
+
style: {
|
|
3527
|
+
[`.${tabsClasses.indicator}`]: {
|
|
3528
|
+
backgroundColor: theme2.vars?.palette.brand.stroke.compound.rest
|
|
3529
|
+
}
|
|
3530
|
+
}
|
|
3531
|
+
},
|
|
3532
|
+
{
|
|
3533
|
+
props: { textColor: "primary" },
|
|
3534
|
+
style: {
|
|
3535
|
+
[`.${tabClasses.root}.${tabClasses.textColorPrimary}`]: {
|
|
3536
|
+
color: theme2.vars?.palette.neutral.foreground[2].rest
|
|
3537
|
+
},
|
|
3538
|
+
[`.${tabClasses.root}.${tabClasses.textColorPrimary}.${tabClasses.selected}`]: {
|
|
3539
|
+
color: theme2.vars?.palette.brand.foreground.compound.rest
|
|
3540
|
+
}
|
|
3541
|
+
}
|
|
3542
|
+
}
|
|
3543
|
+
]
|
|
3544
|
+
})
|
|
3545
|
+
}
|
|
3546
|
+
};
|
|
3547
|
+
}
|
|
3548
|
+
function createTab() {
|
|
3549
|
+
return {
|
|
3550
|
+
defaultProps: {
|
|
3551
|
+
disableRipple: true,
|
|
3552
|
+
disableFocusRipple: true,
|
|
3553
|
+
disableTouchRipple: true
|
|
3554
|
+
},
|
|
3555
|
+
styleOverrides: {
|
|
3556
|
+
root: ({ theme: theme2 }) => ({
|
|
3557
|
+
textTransform: "unset",
|
|
3558
|
+
minHeight: theme2.spacing(8),
|
|
3559
|
+
height: theme2.spacing(8),
|
|
3560
|
+
padding: "0px 4px 11px",
|
|
3561
|
+
":not(:last-child)": {
|
|
3562
|
+
marginRight: theme2.spacing(4)
|
|
3563
|
+
},
|
|
3564
|
+
variants: [
|
|
3565
|
+
{
|
|
3566
|
+
props: { color: "primary" },
|
|
3567
|
+
style: {
|
|
3568
|
+
color: theme2.vars?.palette.brand.foreground.compound.rest
|
|
3569
|
+
}
|
|
3570
|
+
}
|
|
3571
|
+
]
|
|
3572
|
+
}),
|
|
3573
|
+
labelIcon: ({ theme: theme2 }) => ({
|
|
3574
|
+
padding: "0px 4px 11px",
|
|
3575
|
+
minHeight: theme2.spacing(8),
|
|
3576
|
+
height: theme2.spacing(8)
|
|
3577
|
+
})
|
|
3578
|
+
}
|
|
3579
|
+
};
|
|
3580
|
+
}
|
|
3512
3581
|
|
|
3513
3582
|
// theme/components/index.tsx
|
|
3514
|
-
var
|
|
3583
|
+
var Components23 = {
|
|
3515
3584
|
MuiAutocomplete: createAutocomplete(),
|
|
3516
3585
|
MuiAvatar: createAvatar(),
|
|
3517
3586
|
MuiBadge: createBadge(),
|
|
@@ -3545,7 +3614,9 @@ var Components22 = {
|
|
|
3545
3614
|
MuiSlider: createSlider(),
|
|
3546
3615
|
MuiSwitch: createSwitch(),
|
|
3547
3616
|
MuiTextField: createTextField(),
|
|
3548
|
-
MuiTypography: createTypography()
|
|
3617
|
+
MuiTypography: createTypography(),
|
|
3618
|
+
MuiTab: createTab(),
|
|
3619
|
+
MuiTabs: createTabs()
|
|
3549
3620
|
};
|
|
3550
3621
|
|
|
3551
3622
|
// theme/typography/typographyVariants.ts
|
|
@@ -3913,7 +3984,7 @@ var theme = createTheme({
|
|
|
3913
3984
|
shape: {
|
|
3914
3985
|
borderRadius: 8
|
|
3915
3986
|
},
|
|
3916
|
-
components:
|
|
3987
|
+
components: Components23,
|
|
3917
3988
|
colorSchemes: colorSchemes_default
|
|
3918
3989
|
});
|
|
3919
3990
|
var theme_default = theme;
|