@godxjp/ui 33.1.1 → 33.2.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/README.md +4 -4
- package/agent/START-HERE.md +6 -6
- package/agent/components/Command.json +9 -1
- package/agent/components/TranslatableInput.json +92 -0
- package/agent/components/TranslatableTextarea.json +84 -0
- package/agent/components-index.json +10 -0
- package/agent/components.json +185 -1
- package/agent/index.json +7 -7
- package/agent/llms.txt +7 -7
- package/agent/tokens.json +12 -0
- package/dist/components/data-entry/command.d.ts +22 -1
- package/dist/components/data-entry/command.js +14 -1
- package/dist/components/data-entry/form-field.js +10 -4
- package/dist/components/data-entry/index.d.ts +4 -2
- package/dist/components/data-entry/index.js +6 -1
- package/dist/components/data-entry/translatable-input.d.ts +29 -0
- package/dist/components/data-entry/translatable-input.js +184 -0
- package/dist/contracts/measurement.json +1 -1
- package/dist/i18n/messages/en.json +4 -0
- package/dist/i18n/messages/ja.json +4 -0
- package/dist/i18n/messages/vi.json +4 -0
- package/dist/lib/field-a11y.d.ts +15 -0
- package/dist/lib/field-a11y.js +13 -1
- package/dist/lib/intl-cache.d.ts +1 -0
- package/dist/lib/intl-cache.js +4 -0
- package/dist/props/components/data-entry.prop.d.ts +46 -0
- package/dist/props/components/index.d.ts +1 -1
- package/dist/props/registry.d.ts +51 -0
- package/dist/props/registry.js +79 -0
- package/dist/styles/control.css +15 -0
- package/dist/styles/data-entry-layout.css +25 -0
- package/dist/styles/layers.json +19 -1
- package/dist/styles.css +1 -1
- package/dist/tokens/components/data-entry.css +4 -0
- package/package.json +2 -2
package/dist/props/registry.js
CHANGED
|
@@ -1854,6 +1854,17 @@ const COMPONENT_PROP_REGISTRY = {
|
|
|
1854
1854
|
}
|
|
1855
1855
|
]
|
|
1856
1856
|
},
|
|
1857
|
+
CommandSeparatorProp: {
|
|
1858
|
+
group: "data-entry",
|
|
1859
|
+
file: "components/data-entry.prop.ts",
|
|
1860
|
+
vocabulary: [
|
|
1861
|
+
{
|
|
1862
|
+
field: "alwaysRender",
|
|
1863
|
+
local: true,
|
|
1864
|
+
reason: "cmdk's own Command.Separator prop name, kept so the cmdk docs still apply; only its default differs (true) so the rule stays above a `+ Create` group while the user types (gh#1335)."
|
|
1865
|
+
}
|
|
1866
|
+
]
|
|
1867
|
+
},
|
|
1857
1868
|
TextareaProp: {
|
|
1858
1869
|
group: "data-entry",
|
|
1859
1870
|
file: "components/data-entry.prop.ts",
|
|
@@ -1867,6 +1878,74 @@ const COMPONENT_PROP_REGISTRY = {
|
|
|
1867
1878
|
"ClassNameProp"
|
|
1868
1879
|
]
|
|
1869
1880
|
},
|
|
1881
|
+
TranslatableInputProp: {
|
|
1882
|
+
group: "data-entry",
|
|
1883
|
+
file: "components/data-entry.prop.ts",
|
|
1884
|
+
vocabulary: [
|
|
1885
|
+
"ValueProp",
|
|
1886
|
+
"DefaultValueProp",
|
|
1887
|
+
"OnValueChangeProp",
|
|
1888
|
+
"SizeProp",
|
|
1889
|
+
"PlaceholderProp",
|
|
1890
|
+
"DisabledProp",
|
|
1891
|
+
"IdProp",
|
|
1892
|
+
"ClassNameProp",
|
|
1893
|
+
{
|
|
1894
|
+
field: "locales",
|
|
1895
|
+
local: true,
|
|
1896
|
+
reason: "The BCP-47 tags the field edits, in tab order (gh#1336). Defaults to the app's registered locales; a per-field list, not a value."
|
|
1897
|
+
},
|
|
1898
|
+
{
|
|
1899
|
+
field: "defaultLocale",
|
|
1900
|
+
local: true,
|
|
1901
|
+
reason: "The locale tab selected first \u2014 the AppProvider's own `defaultLocale` spelling, scoped to one field. Defaults to the active app locale."
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
field: "fallbackLocale",
|
|
1905
|
+
local: true,
|
|
1906
|
+
reason: "The locale whose text an EMPTY locale shows as its placeholder \u2014 the AppProvider's own `fallbackLocale` spelling, scoped to one field."
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
field: "errors",
|
|
1910
|
+
local: true,
|
|
1911
|
+
reason: "Per-locale validation messages keyed by BCP-47 tag; marks each locale's tab and sends the ACTIVE one through FormField. `error` (one message) cannot say which locale failed."
|
|
1912
|
+
}
|
|
1913
|
+
]
|
|
1914
|
+
},
|
|
1915
|
+
TranslatableTextareaProp: {
|
|
1916
|
+
group: "data-entry",
|
|
1917
|
+
file: "components/data-entry.prop.ts",
|
|
1918
|
+
vocabulary: [
|
|
1919
|
+
"ValueProp",
|
|
1920
|
+
"DefaultValueProp",
|
|
1921
|
+
"OnValueChangeProp",
|
|
1922
|
+
"SizeProp",
|
|
1923
|
+
"PlaceholderProp",
|
|
1924
|
+
"DisabledProp",
|
|
1925
|
+
"IdProp",
|
|
1926
|
+
"ClassNameProp",
|
|
1927
|
+
{
|
|
1928
|
+
field: "locales",
|
|
1929
|
+
local: true,
|
|
1930
|
+
reason: "The BCP-47 tags the field edits, in tab order (gh#1336). Defaults to the app's registered locales; a per-field list, not a value."
|
|
1931
|
+
},
|
|
1932
|
+
{
|
|
1933
|
+
field: "defaultLocale",
|
|
1934
|
+
local: true,
|
|
1935
|
+
reason: "The locale tab selected first \u2014 the AppProvider's own `defaultLocale` spelling, scoped to one field. Defaults to the active app locale."
|
|
1936
|
+
},
|
|
1937
|
+
{
|
|
1938
|
+
field: "fallbackLocale",
|
|
1939
|
+
local: true,
|
|
1940
|
+
reason: "The locale whose text an EMPTY locale shows as its placeholder \u2014 the AppProvider's own `fallbackLocale` spelling, scoped to one field."
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
field: "errors",
|
|
1944
|
+
local: true,
|
|
1945
|
+
reason: "Per-locale validation messages keyed by BCP-47 tag; marks each locale's tab and sends the ACTIVE one through FormField. `error` (one message) cannot say which locale failed."
|
|
1946
|
+
}
|
|
1947
|
+
]
|
|
1948
|
+
},
|
|
1870
1949
|
NumberInputProp: {
|
|
1871
1950
|
group: "data-entry",
|
|
1872
1951
|
file: "components/data-entry.prop.ts",
|
package/dist/styles/control.css
CHANGED
|
@@ -966,6 +966,17 @@
|
|
|
966
966
|
opacity: 0.5;
|
|
967
967
|
}
|
|
968
968
|
|
|
969
|
+
.ui-command-separator {
|
|
970
|
+
height: var(--command-item-divider-width, var(--stroke-hairline));
|
|
971
|
+
margin-block: var(--command-group-padding);
|
|
972
|
+
background: hsl(var(--command-item-divider-color, var(--border)));
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
.ui-command-group[hidden] + .ui-command-separator,
|
|
976
|
+
.ui-command-separator:has(+ .ui-command-group[hidden]) {
|
|
977
|
+
display: none;
|
|
978
|
+
}
|
|
979
|
+
|
|
969
980
|
.ui-command[data-split] .ui-command-group {
|
|
970
981
|
padding: var(--command-list-split-padding);
|
|
971
982
|
}
|
|
@@ -990,6 +1001,10 @@
|
|
|
990
1001
|
hsl(var(--command-item-divider-color, var(--border)));
|
|
991
1002
|
}
|
|
992
1003
|
|
|
1004
|
+
.ui-command[data-split] .ui-command-separator {
|
|
1005
|
+
display: none;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
993
1008
|
[data-slot="dialog-content"].ui-command-palette {
|
|
994
1009
|
top: var(--command-palette-inset-top);
|
|
995
1010
|
width: min(
|
|
@@ -868,3 +868,28 @@
|
|
|
868
868
|
border-radius: var(--radius-md);
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
|
+
|
|
872
|
+
@layer components {
|
|
873
|
+
|
|
874
|
+
.ui-translatable-field {
|
|
875
|
+
display: flex;
|
|
876
|
+
flex-direction: column;
|
|
877
|
+
align-items: stretch;
|
|
878
|
+
gap: var(--translatable-field-gap);
|
|
879
|
+
min-inline-size: 0;
|
|
880
|
+
}
|
|
881
|
+
.ui-translatable-field-tabs {
|
|
882
|
+
align-self: flex-start;
|
|
883
|
+
max-inline-size: 100%;
|
|
884
|
+
}
|
|
885
|
+
.ui-translatable-field-panel {
|
|
886
|
+
min-inline-size: 0;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.ui-translatable-field-error-mark {
|
|
890
|
+
inline-size: var(--translatable-field-error-icon-size);
|
|
891
|
+
block-size: var(--translatable-field-error-icon-size);
|
|
892
|
+
flex: none;
|
|
893
|
+
color: hsl(var(--text-error));
|
|
894
|
+
}
|
|
895
|
+
}
|
package/dist/styles/layers.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "33.
|
|
2
|
+
"version": "33.2.1",
|
|
3
3
|
"generatedBy": "scripts/gen-style-layers.mjs — do not edit by hand; run `pnpm gen:style-layers`",
|
|
4
4
|
"base": "base.css",
|
|
5
5
|
"fonts": "fonts.css",
|
|
@@ -1097,6 +1097,24 @@
|
|
|
1097
1097
|
"navigation-layout.css"
|
|
1098
1098
|
]
|
|
1099
1099
|
},
|
|
1100
|
+
"TranslatableInput": {
|
|
1101
|
+
"layers": [
|
|
1102
|
+
"control.css",
|
|
1103
|
+
"toggle.css",
|
|
1104
|
+
"dialog-layout.css",
|
|
1105
|
+
"data-entry-layout.css",
|
|
1106
|
+
"navigation-layout.css"
|
|
1107
|
+
]
|
|
1108
|
+
},
|
|
1109
|
+
"TranslatableTextarea": {
|
|
1110
|
+
"layers": [
|
|
1111
|
+
"control.css",
|
|
1112
|
+
"toggle.css",
|
|
1113
|
+
"dialog-layout.css",
|
|
1114
|
+
"data-entry-layout.css",
|
|
1115
|
+
"navigation-layout.css"
|
|
1116
|
+
]
|
|
1117
|
+
},
|
|
1100
1118
|
"Tree": {
|
|
1101
1119
|
"layers": [
|
|
1102
1120
|
"layout.css",
|