@infonomic/uikit 5.32.0 → 5.33.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.
@@ -2,14 +2,6 @@
2
2
 
3
3
  @layer infonomic-components {
4
4
 
5
- .root,
6
- :global(.infonomic-accordion-root) {
7
- border-radius: 6px;
8
- width: 300px;
9
- background-color: var(--canvas-25);
10
- box-shadow: var(--shadow-md);
11
- }
12
-
13
5
  .item,
14
6
  :global(.infonomic-accordion-item) {
15
7
  overflow: hidden;
@@ -1,6 +1,5 @@
1
1
  import "./accordion_module.css";
2
2
  const accordion_module = {
3
- root: "root-YYzqsy",
4
3
  item: "item-iZzmBc",
5
4
  header: "header-MBm53y",
6
5
  trigger: "trigger-CJlwli",
@@ -1,13 +1,6 @@
1
1
  @layer infonomic-base, infonomic-utilities, infonomic-theme;
2
2
 
3
3
  @layer infonomic-components {
4
- :is(.root-YYzqsy, .infonomic-accordion-root) {
5
- background-color: var(--canvas-25);
6
- width: 300px;
7
- box-shadow: var(--shadow-md);
8
- border-radius: 6px;
9
- }
10
-
11
4
  :is(.item-iZzmBc, .infonomic-accordion-item) {
12
5
  margin-top: 1px;
13
6
  overflow: hidden;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@infonomic/uikit",
3
3
  "private": false,
4
4
  "license": "MIT",
5
- "version": "5.32.0",
5
+ "version": "5.33.0",
6
6
  "type": "module",
7
7
  "description": "Infonomic UI kit is a collection of reusable UI components and utilities for React and Astro.",
8
8
  "keywords": [
@@ -2,14 +2,6 @@
2
2
 
3
3
  @layer infonomic-components {
4
4
 
5
- .root,
6
- :global(.infonomic-accordion-root) {
7
- border-radius: 6px;
8
- width: 300px;
9
- background-color: var(--canvas-25);
10
- box-shadow: var(--shadow-md);
11
- }
12
-
13
5
  .item,
14
6
  :global(.infonomic-accordion-item) {
15
7
  overflow: hidden;
@@ -16,19 +16,27 @@ export default meta
16
16
 
17
17
  type Story = StoryObj<typeof AccordionComponent.Root>
18
18
 
19
+
20
+ /**
21
+ * NOTE: Accordions are very much context specific in terms of styling
22
+ * and so we apply very little styling to the default accordion component.
23
+ * Below is an example of a custom (albeit basic) styled accordion for demo
24
+ * purposes.
25
+ */
19
26
  export const Accordion: Story = {
20
27
  args: {
21
28
  type: 'single',
22
29
  asChild: true,
23
30
  defaultValue: 'item-1',
24
31
  collapsible: true,
25
- className: 'accordion-root border',
32
+ className: 'accordion-root',
26
33
  },
27
34
  render: (args) => (
28
35
  <div style={{ maxWidth: '600px', margin: '2rem auto' }}>
29
36
  <style>
30
37
  {`
31
38
  .accordion-root {
39
+ border: 1px solid var(--gray-100);
32
40
  border-radius: 6px;
33
41
  padding: 12px 6px;
34
42
  width: 300px;
@@ -58,6 +66,7 @@ export const Accordion: Story = {
58
66
  }
59
67
 
60
68
  .dark .accordion-root {
69
+ border: 1px solid var(--gray-600);
61
70
  background-color: var(--canvas-700);
62
71
  }
63
72