@gridui/composer 2.1.4 → 3.0.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.
@@ -0,0 +1,126 @@
1
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
2
+ @layer properties;
3
+ @layer theme, base, components, utilities;
4
+ @layer theme {
5
+ :root, :host {
6
+ --spacing: 0.25rem;
7
+ }
8
+ }
9
+ @layer utilities {
10
+ .gridui-u-composer--col-span-full {
11
+ grid-column: 1 / -1;
12
+ }
13
+ .gridui-u-composer--m-0 {
14
+ margin: 0px;
15
+ }
16
+ .gridui-u-composer--flex {
17
+ display: flex;
18
+ }
19
+ .gridui-u-composer--grid {
20
+ display: grid;
21
+ }
22
+ .gridui-u-composer--hidden {
23
+ display: none;
24
+ }
25
+ .gridui-u-composer--min-w-0 {
26
+ min-width: 0px;
27
+ }
28
+ .gridui-u-composer--flex-1 {
29
+ flex: 1;
30
+ }
31
+ .gridui-u-composer--list-none {
32
+ list-style-type: none;
33
+ }
34
+ .gridui-u-composer--grid-cols-\[minmax\(0\,1fr\)_auto\] {
35
+ grid-template-columns: minmax(0,1fr) auto;
36
+ }
37
+ .gridui-u-composer--flex-col {
38
+ flex-direction: column;
39
+ }
40
+ .gridui-u-composer--flex-nowrap {
41
+ flex-wrap: nowrap;
42
+ }
43
+ .gridui-u-composer--flex-wrap {
44
+ flex-wrap: wrap;
45
+ }
46
+ .gridui-u-composer--items-center {
47
+ align-items: center;
48
+ }
49
+ .gridui-u-composer--items-end {
50
+ align-items: flex-end;
51
+ }
52
+ .gridui-u-composer--items-stretch {
53
+ align-items: stretch;
54
+ }
55
+ .gridui-u-composer--justify-end {
56
+ justify-content: flex-end;
57
+ }
58
+ .gridui-u-composer--gap-\(--gridui-composer-padding\,var\(--gridui-space-8\)\) {
59
+ gap: var(--gridui-composer-padding,var(--gridui-space-8));
60
+ }
61
+ .gridui-u-composer--gap-gridui-8 {
62
+ gap: var(--gridui-space-8);
63
+ }
64
+ .gridui-u-composer--border-b {
65
+ border-bottom-style: var(--tw-border-style);
66
+ border-bottom-width: 1px;
67
+ }
68
+ .gridui-u-composer--border-border {
69
+ border-color: var(--gridui-border);
70
+ }
71
+ .gridui-u-composer--p-\(--gridui-composer-padding\,var\(--gridui-space-8\)\) {
72
+ padding: var(--gridui-composer-padding,var(--gridui-space-8));
73
+ }
74
+ .gridui-u-composer--p-0 {
75
+ padding: 0px;
76
+ }
77
+ .gridui-u-composer--py-\(--gridui-attachment-block\) {
78
+ padding-block: var(--gridui-attachment-block);
79
+ }
80
+ .gridui-u-composer--type-caption {
81
+ font: var(--gridui-type-caption);
82
+ font-family: var(--gridui-font-body);
83
+ letter-spacing: normal;
84
+ }
85
+ .gridui-u-composer--wrap-anywhere {
86
+ overflow-wrap: anywhere;
87
+ }
88
+ .gridui-u-composer--text-foreground {
89
+ color: var(--gridui-foreground);
90
+ }
91
+ .gridui-u-composer--text-muted {
92
+ color: var(--gridui-muted);
93
+ }
94
+ .gridui-u-composer--focus\:min-h-11:focus {
95
+ min-height: calc(var(--spacing) * 11);
96
+ }
97
+ .gridui-u-composer--data-\[state\=error\]\:text-status-danger-text[data-state="error"] {
98
+ color: var(--gridui-status-danger-text);
99
+ }
100
+ }
101
+ @layer components {
102
+ .gridui-input-group[data-size="small"].gridui-composer {
103
+ --gridui-composer-padding: var(--gridui-space-4);
104
+ }
105
+ .gridui-input-group[data-size="large"].gridui-composer {
106
+ --gridui-composer-padding: var(--gridui-space-12);
107
+ }
108
+ .gridui-attachment-list {
109
+ --gridui-attachment-block: var(--gridui-space-8);
110
+ }
111
+ .gridui-attachment-list[data-density="compact"] {
112
+ --gridui-attachment-block: var(--gridui-space-4);
113
+ }
114
+ }
115
+ @property --tw-border-style {
116
+ syntax: "*";
117
+ inherits: false;
118
+ initial-value: solid;
119
+ }
120
+ @layer properties {
121
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
122
+ *, ::before, ::after, ::backdrop {
123
+ --tw-border-style: solid;
124
+ }
125
+ }
126
+ }
package/docs/catalog.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "name": "@gridui/composer",
4
- "version": "2.1.4",
4
+ "version": "3.0.0",
5
5
  "category": "dashboard",
6
6
  "description": "GridUI React composer",
7
7
  "usage": "Button and keyboard submission share the textarea's native constraint validation, including `required`, `minLength`, and custom validity. Invalid enabled inputs report their validation message and retain focus. Textarea and submit button refs are forwarded through their respective props. A disabled fieldset blocks both submission paths.",
@@ -113,6 +113,7 @@
113
113
  "@gridui/file-picker/styles.css",
114
114
  "@gridui/composer/styles.css"
115
115
  ],
116
+ "styledImport": "@gridui/composer/styled",
116
117
  "examples": [
117
118
  "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-dashboard/composer/stories/attachments.mdx",
118
119
  "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-dashboard/composer/stories/getting-started.mdx",
@@ -47,6 +47,12 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
47
47
 
48
48
  Called when the corresponding interaction occurs; inspect the arguments in Actions.
49
49
 
50
+ ### density
51
+
52
+ ``Density | undefined`` · Optional
53
+
54
+ Default: ``"comfortable"``
55
+
50
56
  ### items
51
57
 
52
58
  ``readonly AttachmentItem[]`` · Required
@@ -53,6 +53,10 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
53
53
 
54
54
  Called when the corresponding interaction occurs; inspect the arguments in Actions.
55
55
 
56
+ ### density
57
+
58
+ ``Density | undefined`` · Optional
59
+
56
60
  ### removeLabel
57
61
 
58
62
  ``(item: AttachmentItem) => string`` · Required
@@ -23,6 +23,12 @@ The public Props type is the source of these signatures. Defaults below are expl
23
23
 
24
24
  ``ReactNode`` · Required
25
25
 
26
+ ### size
27
+
28
+ ``Size | undefined`` · Optional
29
+
30
+ Component size preset.
31
+
26
32
  ### icon
27
33
 
28
34
  ``ReactNode`` · Optional
@@ -31,6 +31,12 @@ Caller-owned footer content; footer handles share this row.
31
31
 
32
32
  Content rendered inside the component.
33
33
 
34
+ ### size
35
+
36
+ ``Size | undefined`` · Optional
37
+
38
+ Component size preset.
39
+
34
40
  ### onFocus
35
41
 
36
42
  ``(event: FocusEvent<HTMLTextAreaElement, Element>): void`` · Optional
@@ -61,10 +67,6 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
61
67
 
62
68
  Called when the corresponding interaction occurs; inspect the arguments in Actions.
63
69
 
64
- ### controlSize
65
-
66
- ``"small" | "standard" | undefined`` · Optional
67
-
68
70
  ### autoSize
69
71
 
70
72
  ``boolean | undefined`` · Optional
@@ -33,7 +33,7 @@ Visual variant.
33
33
 
34
34
  ### size
35
35
 
36
- ``"small" | "standard" | "large" | "extra-large" | null | undefined`` · Optional
36
+ ``ActionSize | undefined`` · Optional
37
37
 
38
38
  Component size preset.
39
39
 
@@ -81,7 +81,7 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
81
81
 
82
82
  ### startIconSize
83
83
 
84
- ``"standard" | "large" | "extra-large" | undefined`` · Optional
84
+ ``"medium" | "large" | "extra-large" | undefined`` · Optional
85
85
 
86
86
  ### endIcon
87
87
 
@@ -33,7 +33,7 @@ Visual variant.
33
33
 
34
34
  ### size
35
35
 
36
- ``"small" | "standard" | "large" | "extra-large" | null | undefined`` · Optional
36
+ ``ActionSize | undefined`` · Optional
37
37
 
38
38
  Component size preset.
39
39
 
@@ -81,7 +81,7 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
81
81
 
82
82
  ### startIconSize
83
83
 
84
- ``"standard" | "large" | "extra-large" | undefined`` · Optional
84
+ ``"medium" | "large" | "extra-large" | undefined`` · Optional
85
85
 
86
86
  ### endIcon
87
87
 
@@ -49,6 +49,14 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
49
49
 
50
50
  Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
51
 
52
+ ### size
53
+
54
+ ``Size | undefined`` · Optional
55
+
56
+ Default: ``"medium"``
57
+
58
+ Component size preset.
59
+
52
60
  ### value
53
61
 
54
62
  ``string`` · Required
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridui/composer",
3
- "version": "2.1.4",
3
+ "version": "3.0.0",
4
4
  "description": "GridUI React composer",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -10,14 +10,19 @@
10
10
  "docs"
11
11
  ],
12
12
  "sideEffects": [
13
- "**/*.css"
13
+ "**/*.css",
14
+ "./dist/styled.js"
14
15
  ],
15
16
  "exports": {
16
17
  ".": {
17
18
  "types": "./dist/index.d.ts",
18
19
  "import": "./dist/index.js"
19
20
  },
20
- "./styles.css": "./dist/styles.css"
21
+ "./styles.css": "./dist/styles.css",
22
+ "./styled": {
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/styled.js"
25
+ }
21
26
  },
22
27
  "publishConfig": {
23
28
  "access": "public"
@@ -27,12 +32,12 @@
27
32
  "react-dom": "^19.2.0"
28
33
  },
29
34
  "dependencies": {
30
- "@gridui/button": "^5.1.0",
31
- "@gridui/file-picker": "^1.0.12",
32
- "@gridui/input": "^4.0.2",
35
+ "@gridui/button": "^6.0.0",
36
+ "@gridui/file-picker": "^1.2.0",
37
+ "@gridui/input": "^5.0.0",
33
38
  "@gridui/interaction": "^1.3.0",
34
- "@gridui/style-utils": "^4.0.0",
35
- "@gridui/theme": "^3.0.0",
39
+ "@gridui/style-utils": "^4.1.0",
40
+ "@gridui/theme": "^5.0.0",
36
41
  "class-variance-authority": "0.7.1"
37
42
  },
38
43
  "devDependencies": {