@websolutespa/ask-ui 1.0.5 → 1.0.7

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.
@@ -92,7 +92,7 @@ function CarouselItem({ className, ...props }) {
92
92
  role: "group",
93
93
  "aria-roledescription": "slide",
94
94
  "data-slot": "carousel-item",
95
- className: cn("min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className),
95
+ className: cn("min-w-0 max-w-full shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className),
96
96
  ...props
97
97
  });
98
98
  }
@@ -0,0 +1,7 @@
1
+ const config = {
2
+ plugins: {
3
+ '@tailwindcss/postcss': {},
4
+ },
5
+ };
6
+
7
+ export default config;
package/dist/styles.css CHANGED
@@ -234,6 +234,9 @@
234
234
  container-type: inline-size;
235
235
  container-name: field-group;
236
236
  }
237
+ .\@container {
238
+ container-type: inline-size;
239
+ }
237
240
  .pointer-events-auto {
238
241
  pointer-events: auto;
239
242
  }
@@ -769,6 +772,9 @@
769
772
  .max-h-96 {
770
773
  max-height: calc(var(--spacing) * 96);
771
774
  }
775
+ .max-h-100 {
776
+ max-height: calc(var(--spacing) * 100);
777
+ }
772
778
  .max-h-\[240px\] {
773
779
  max-height: 240px;
774
780
  }
@@ -979,6 +985,9 @@
979
985
  .max-w-\[calc\(100vw-560px\)\] {
980
986
  max-width: calc(100vw - 560px);
981
987
  }
988
+ .max-w-\[min\(800px\,100vw-40px\)\] {
989
+ max-width: min(800px, 100vw - 40px);
990
+ }
982
991
  .max-w-full {
983
992
  max-width: 100%;
984
993
  }
@@ -5514,11 +5523,6 @@
5514
5523
  max-width: var(--container-md);
5515
5524
  }
5516
5525
  }
5517
- .sm\:grid-cols-2 {
5518
- @media (width >= 40rem) {
5519
- grid-template-columns: repeat(2, minmax(0, 1fr));
5520
- }
5521
- }
5522
5526
  .sm\:flex-row {
5523
5527
  @media (width >= 40rem) {
5524
5528
  flex-direction: row;
@@ -5613,16 +5617,6 @@
5613
5617
  position: absolute;
5614
5618
  }
5615
5619
  }
5616
- .md\:order-1 {
5617
- @media (width >= 48rem) {
5618
- order: 1;
5619
- }
5620
- }
5621
- .md\:order-2 {
5622
- @media (width >= 48rem) {
5623
- order: 2;
5624
- }
5625
- }
5626
5620
  .md\:block {
5627
5621
  @media (width >= 48rem) {
5628
5622
  display: block;
@@ -5643,11 +5637,6 @@
5643
5637
  width: auto;
5644
5638
  }
5645
5639
  }
5646
- .md\:grid-cols-2 {
5647
- @media (width >= 48rem) {
5648
- grid-template-columns: repeat(2, minmax(0, 1fr));
5649
- }
5650
- }
5651
5640
  .md\:flex-row {
5652
5641
  @media (width >= 48rem) {
5653
5642
  flex-direction: row;
@@ -5730,9 +5719,24 @@
5730
5719
  }
5731
5720
  }
5732
5721
  }
5733
- .lg\:grid-cols-3 {
5734
- @media (width >= 64rem) {
5735
- grid-template-columns: repeat(3, minmax(0, 1fr));
5722
+ .\@sm\:grid-cols-2 {
5723
+ @container (width >= 24rem) {
5724
+ grid-template-columns: repeat(2, minmax(0, 1fr));
5725
+ }
5726
+ }
5727
+ .\@md\:order-1 {
5728
+ @container (width >= 28rem) {
5729
+ order: 1;
5730
+ }
5731
+ }
5732
+ .\@md\:order-2 {
5733
+ @container (width >= 28rem) {
5734
+ order: 2;
5735
+ }
5736
+ }
5737
+ .\@md\:grid-cols-2 {
5738
+ @container (width >= 28rem) {
5739
+ grid-template-columns: repeat(2, minmax(0, 1fr));
5736
5740
  }
5737
5741
  }
5738
5742
  .\@md\/field-group\:flex-row {
@@ -5745,6 +5749,16 @@
5745
5749
  align-items: center;
5746
5750
  }
5747
5751
  }
5752
+ .\@md\:gap-16 {
5753
+ @container (width >= 28rem) {
5754
+ gap: calc(var(--spacing) * 16);
5755
+ }
5756
+ }
5757
+ .\@md\:py-8 {
5758
+ @container (width >= 28rem) {
5759
+ padding-block: calc(var(--spacing) * 8);
5760
+ }
5761
+ }
5748
5762
  .\@md\/field-group\:\*\:w-auto {
5749
5763
  @container field-group (width >= 28rem) {
5750
5764
  :is(& > *) {
@@ -5768,6 +5782,11 @@
5768
5782
  }
5769
5783
  }
5770
5784
  }
5785
+ .\@lg\:grid-cols-3 {
5786
+ @container (width >= 32rem) {
5787
+ grid-template-columns: repeat(3, minmax(0, 1fr));
5788
+ }
5789
+ }
5771
5790
  .ltr\:-translate-x-1\/2 {
5772
5791
  &:where(:dir(ltr), [dir="ltr"], [dir="ltr"] *) {
5773
5792
  --tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websolutespa/ask-ui",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Ask UI",
5
5
  "type": "module",
6
6
  "files": [
@@ -11,6 +11,7 @@
11
11
  "copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
12
12
  "compile:tsdown": "tsdown",
13
13
  "compile:copy": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
14
+ "compile:postcss": "copyfiles \"postcss.config.mjs\" dist/",
14
15
  "compile:tailwind": "tailwindcss build --input \"./src/globals.css\" --output \"./dist/styles.css\"",
15
16
  "compile": "run-s compile:*",
16
17
  "lint": "eslint",
@@ -19,8 +20,8 @@
19
20
  "test:e2e": "playwright test",
20
21
  "test:int": "vitest",
21
22
  "types": "tsc --noEmit",
22
- "prepack": "node ../../scripts/pack.js prepack",
23
- "postpack": "node ../../scripts/pack.js postpack"
23
+ "release:package": "node ../../.node/publish.js",
24
+ "release:dry-run": "node ../../.node/publish.js --dry-run"
24
25
  },
25
26
  "dependencies": {
26
27
  "@base-ui/react": "^1.3.0",
@@ -66,47 +67,17 @@
66
67
  "tsdown": "^0.21.7",
67
68
  "typescript": "^5.9.3"
68
69
  },
69
- "prepack": {
70
- "exports": {
71
- ".": {
72
- "import": "./dist/index.mjs",
73
- "types": "./dist/index.d.mts",
74
- "default": "./dist/index.mjs"
75
- },
76
- "./components/*": "./dist/components/*.mjs",
77
- "./hooks/*": "./dist/hooks/*.mjs",
78
- "./lib/*": "./dist/lib/*.mjs",
79
- "./globals.css": "./dist/globals.css"
80
- },
81
- "main": "./dist/index.mjs",
82
- "types": "./dist/index.d.mts"
83
- },
84
- "postpack": {
85
- "exports": {
86
- ".": {
87
- "import": "./src/index.ts",
88
- "types": "./src/index.ts",
89
- "default": "./src/index.ts"
90
- },
91
- "./components/*": "./src/components/*.tsx",
92
- "./hooks/*": "./src/hooks/*.ts",
93
- "./lib/*": "./src/lib/*.ts",
94
- "./globals.css": "./src/globals.css"
95
- },
96
- "main": "./src/index.ts",
97
- "types": "./src/index.ts"
98
- },
99
70
  "exports": {
100
71
  ".": {
72
+ "default": "./dist/index.mjs",
101
73
  "import": "./dist/index.mjs",
102
- "types": "./dist/index.d.mts",
103
- "default": "./dist/index.mjs"
74
+ "types": "./dist/index.d.mts"
104
75
  },
105
76
  "./components/*": "./dist/components/*.mjs",
106
77
  "./hooks/*": "./dist/hooks/*.mjs",
107
78
  "./lib/*": "./dist/lib/*.mjs",
108
79
  "./globals.css": "./dist/globals.css",
109
- "./postcss.config": "./postcss.config.mjs"
80
+ "./postcss.config": "./dist/postcss.config.mjs"
110
81
  },
111
82
  "main": "./dist/index.mjs",
112
83
  "types": "./dist/index.d.mts",