@turk.net/mui 3.0.8 → 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 +17 -5
- package/.opencode/skills/onehub-design-verification/SKILL.md +4 -4
- package/.opencode/skills/turknet-onehub-component-usage/SKILL.md +73 -14
- package/COMPONENT_MAP.md +678 -57
- 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 +60 -6
- package/PAGE_PATTERNS.md +62 -0
- 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/theme/index.js
CHANGED
|
@@ -1734,6 +1734,7 @@ function createButtonBase() {
|
|
|
1734
1734
|
return {
|
|
1735
1735
|
styleOverrides: {
|
|
1736
1736
|
root: ({ theme: theme2 }) => ({
|
|
1737
|
+
textTransform: "unset",
|
|
1737
1738
|
[`&.${material.buttonClasses.root}.${material.buttonClasses.disabled}`]: {
|
|
1738
1739
|
backgroundColor: theme2.vars?.palette.neutral.background.disabled.rest,
|
|
1739
1740
|
color: theme2.vars?.palette.neutral.foreground.disabled.rest,
|
|
@@ -1784,10 +1785,11 @@ function createButton() {
|
|
|
1784
1785
|
props: { size: "extra-small" },
|
|
1785
1786
|
style: {
|
|
1786
1787
|
gap: theme2.spacing(2),
|
|
1787
|
-
"--padding-x": theme2.spacing(3
|
|
1788
|
+
"--padding-x": theme2.spacing(3),
|
|
1788
1789
|
"--padding-y": theme2.spacing(2.75),
|
|
1789
1790
|
fontSize: theme2.typography.text.xs.medium.fontSize,
|
|
1790
1791
|
fontWeight: theme2.typography.text.xs.medium.fontWeight,
|
|
1792
|
+
minWidth: theme2.spacing(8.5),
|
|
1791
1793
|
[`.${material.buttonClasses.icon}`]: {
|
|
1792
1794
|
marginTop: theme2.spacing(-0.5),
|
|
1793
1795
|
marginBottom: theme2.spacing(-0.5)
|
|
@@ -1819,6 +1821,7 @@ function createButton() {
|
|
|
1819
1821
|
gap: theme2.spacing(2.5),
|
|
1820
1822
|
"--padding-y": theme2.spacing(3.25),
|
|
1821
1823
|
"--padding-x": theme2.spacing(4),
|
|
1824
|
+
minWidth: theme2.spacing(10),
|
|
1822
1825
|
// -- ONLY ICON SIZE & SPACES
|
|
1823
1826
|
[`& svg.${material.svgIconClasses.root}`]: {
|
|
1824
1827
|
width: theme2.spacing(4),
|
|
@@ -1846,6 +1849,7 @@ function createButton() {
|
|
|
1846
1849
|
fontSize: theme2.typography.text.md.medium.fontSize,
|
|
1847
1850
|
fontWeight: theme2.typography.text.md.medium.fontWeight,
|
|
1848
1851
|
gap: theme2.spacing(3),
|
|
1852
|
+
minWidth: theme2.spacing(12),
|
|
1849
1853
|
"--padding-x": theme2.spacing(4.5),
|
|
1850
1854
|
"--padding-y": theme2.spacing(4),
|
|
1851
1855
|
[`.${material.buttonClasses.icon}`]: {
|
|
@@ -1876,6 +1880,7 @@ function createButton() {
|
|
|
1876
1880
|
fontSize: theme2.typography.text.md.medium.fontSize,
|
|
1877
1881
|
fontWeight: theme2.typography.text.md.medium.fontWeight,
|
|
1878
1882
|
gap: theme2.spacing(3.5),
|
|
1883
|
+
minWidth: theme2.spacing(13),
|
|
1879
1884
|
"--padding-x": theme2.spacing(5),
|
|
1880
1885
|
"--padding-y": theme2.spacing(4.5),
|
|
1881
1886
|
[`.${material.buttonClasses.icon}`]: {
|
|
@@ -1906,6 +1911,7 @@ function createButton() {
|
|
|
1906
1911
|
fontSize: theme2.typography.text.lg.medium.fontSize,
|
|
1907
1912
|
fontWeight: theme2.typography.text.lg.medium.fontWeight,
|
|
1908
1913
|
gap: theme2.spacing(4),
|
|
1914
|
+
minWidth: theme2.spacing(15),
|
|
1909
1915
|
"--padding-x": theme2.spacing(5.5),
|
|
1910
1916
|
"--padding-y": theme2.spacing(5.25),
|
|
1911
1917
|
[`.${material.buttonClasses.icon}`]: {
|
|
@@ -3513,9 +3519,72 @@ function createBadge() {
|
|
|
3513
3519
|
}
|
|
3514
3520
|
};
|
|
3515
3521
|
}
|
|
3522
|
+
function createTabs() {
|
|
3523
|
+
return {
|
|
3524
|
+
styleOverrides: {
|
|
3525
|
+
root: ({ theme: theme2 }) => ({
|
|
3526
|
+
minHeight: "32px",
|
|
3527
|
+
variants: [
|
|
3528
|
+
{
|
|
3529
|
+
props: { indicatorColor: "primary" },
|
|
3530
|
+
style: {
|
|
3531
|
+
[`.${material.tabsClasses.indicator}`]: {
|
|
3532
|
+
backgroundColor: theme2.vars?.palette.brand.stroke.compound.rest
|
|
3533
|
+
}
|
|
3534
|
+
}
|
|
3535
|
+
},
|
|
3536
|
+
{
|
|
3537
|
+
props: { textColor: "primary" },
|
|
3538
|
+
style: {
|
|
3539
|
+
[`.${material.tabClasses.root}.${material.tabClasses.textColorPrimary}`]: {
|
|
3540
|
+
color: theme2.vars?.palette.neutral.foreground[2].rest
|
|
3541
|
+
},
|
|
3542
|
+
[`.${material.tabClasses.root}.${material.tabClasses.textColorPrimary}.${material.tabClasses.selected}`]: {
|
|
3543
|
+
color: theme2.vars?.palette.brand.foreground.compound.rest
|
|
3544
|
+
}
|
|
3545
|
+
}
|
|
3546
|
+
}
|
|
3547
|
+
]
|
|
3548
|
+
})
|
|
3549
|
+
}
|
|
3550
|
+
};
|
|
3551
|
+
}
|
|
3552
|
+
function createTab() {
|
|
3553
|
+
return {
|
|
3554
|
+
defaultProps: {
|
|
3555
|
+
disableRipple: true,
|
|
3556
|
+
disableFocusRipple: true,
|
|
3557
|
+
disableTouchRipple: true
|
|
3558
|
+
},
|
|
3559
|
+
styleOverrides: {
|
|
3560
|
+
root: ({ theme: theme2 }) => ({
|
|
3561
|
+
textTransform: "unset",
|
|
3562
|
+
minHeight: theme2.spacing(8),
|
|
3563
|
+
height: theme2.spacing(8),
|
|
3564
|
+
padding: "0px 4px 11px",
|
|
3565
|
+
":not(:last-child)": {
|
|
3566
|
+
marginRight: theme2.spacing(4)
|
|
3567
|
+
},
|
|
3568
|
+
variants: [
|
|
3569
|
+
{
|
|
3570
|
+
props: { color: "primary" },
|
|
3571
|
+
style: {
|
|
3572
|
+
color: theme2.vars?.palette.brand.foreground.compound.rest
|
|
3573
|
+
}
|
|
3574
|
+
}
|
|
3575
|
+
]
|
|
3576
|
+
}),
|
|
3577
|
+
labelIcon: ({ theme: theme2 }) => ({
|
|
3578
|
+
padding: "0px 4px 11px",
|
|
3579
|
+
minHeight: theme2.spacing(8),
|
|
3580
|
+
height: theme2.spacing(8)
|
|
3581
|
+
})
|
|
3582
|
+
}
|
|
3583
|
+
};
|
|
3584
|
+
}
|
|
3516
3585
|
|
|
3517
3586
|
// theme/components/index.tsx
|
|
3518
|
-
var
|
|
3587
|
+
var Components23 = {
|
|
3519
3588
|
MuiAutocomplete: createAutocomplete(),
|
|
3520
3589
|
MuiAvatar: createAvatar(),
|
|
3521
3590
|
MuiBadge: createBadge(),
|
|
@@ -3549,7 +3618,9 @@ var Components22 = {
|
|
|
3549
3618
|
MuiSlider: createSlider(),
|
|
3550
3619
|
MuiSwitch: createSwitch(),
|
|
3551
3620
|
MuiTextField: createTextField(),
|
|
3552
|
-
MuiTypography: createTypography()
|
|
3621
|
+
MuiTypography: createTypography(),
|
|
3622
|
+
MuiTab: createTab(),
|
|
3623
|
+
MuiTabs: createTabs()
|
|
3553
3624
|
};
|
|
3554
3625
|
|
|
3555
3626
|
// theme/typography/typographyVariants.ts
|
|
@@ -3917,7 +3988,7 @@ var theme = styles.createTheme({
|
|
|
3917
3988
|
shape: {
|
|
3918
3989
|
borderRadius: 8
|
|
3919
3990
|
},
|
|
3920
|
-
components:
|
|
3991
|
+
components: Components23,
|
|
3921
3992
|
colorSchemes: colorSchemes_default
|
|
3922
3993
|
});
|
|
3923
3994
|
var theme_default = theme;
|