Skip to content

Commit 62f3867

Browse files
committed
Update stories
1 parent 0225291 commit 62f3867

File tree

3 files changed

+9
-60
lines changed

3 files changed

+9
-60
lines changed

src/stories/dark.stories.tsx

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -110,61 +110,3 @@ export const Undefined: StoryObj<TYPE_FC> = {
110110
src: undefined
111111
}
112112
}
113-
114-
export const Collapsed_Boolean: StoryObj<TYPE_FC> = {
115-
args: {
116-
src: {
117-
string: 'string',
118-
longString: 'long string long string long string long string long string long string',
119-
number: 123456,
120-
boolean: false,
121-
null: null,
122-
func: function () {},
123-
Symbol: Symbol('JSON View'),
124-
obj: {
125-
k1: 123,
126-
k2: '123',
127-
k3: false
128-
},
129-
arr: ['string', 123456, false, null]
130-
},
131-
collapsed: true
132-
},
133-
decorators: [
134-
Story => (
135-
<div style={{ minWidth: 300 }}>
136-
<Story />
137-
</div>
138-
)
139-
]
140-
}
141-
142-
export const Collapsed_Number: StoryObj<TYPE_FC> = {
143-
args: {
144-
src: {
145-
boolean: false,
146-
null: null,
147-
obj: {
148-
k1: 123,
149-
k2: '123',
150-
k3: false,
151-
k4: {
152-
k: {
153-
k: {
154-
k: 'k5'
155-
}
156-
}
157-
}
158-
},
159-
arr: ['string', 123456, false, null, [123, 123, 123, [123, 123, 123]]]
160-
},
161-
collapsed: 2
162-
},
163-
decorators: [
164-
Story => (
165-
<div style={{ minWidth: 300 }}>
166-
<Story />
167-
</div>
168-
)
169-
]
170-
}

src/stories/json-view.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ export const Collapsed_Function: StoryObj<TYPE_FC> = {
363363
},
364364
collapsed: params => {
365365
if (params.depth > 3) return true
366-
if (params.depth > 1 && params.size > 4) return true
367-
else return false
366+
if (params.depth > 2 && params.size > 4) return true
367+
return false
368368
}
369369
},
370370
decorators: [

src/stories/share.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ export const argTypes = {
99
defaultValue: { summary: false }
1010
}
1111
},
12+
theme: {
13+
control: 'select',
14+
options: ['default', 'a11y', 'github', 'vscode', 'atom', 'winter-is-coming'],
15+
table: {
16+
defaultValue: { summary: false }
17+
}
18+
},
1219
collapseStringsAfterLength: {
1320
control: 'number',
1421
description:

0 commit comments

Comments
 (0)